]>
Commit | Line | Data |
---|---|---|
71ab34df | 1 | #! /bin/sh |
71ab34df | 2 | # Guess values for system-dependent variables and create Makefiles. |
f00f02a3 | 3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
cd9a469c | 7 | # |
71ab34df | 8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
cd9a469c | 11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
b30fcfae | 14 | |
cd9a469c | 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 : | |
b30fcfae | 18 | emulate sh |
19 | NULLCMD=: | |
cd9a469c | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 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 | |
b30fcfae | 31 | fi |
b30fcfae | 32 | |
cd9a469c | 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 | } | |
b30fcfae | 79 | fi |
80 | ||
81 | ||
cd9a469c | 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. | |
f00f02a3 | 90 | as_myself= |
cd9a469c | 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 | |
b30fcfae | 122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
cd9a469c | 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 | ||
f00f02a3 | 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;} | |
cd9a469c | 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 | |
f00f02a3 | 193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
cd9a469c | 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'\" && | |
b181f265 | 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" | |
cd9a469c | 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 | |
b30fcfae | 211 | do |
cd9a469c | 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 : | |
f00f02a3 | 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 | |
cd9a469c | 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." | |
b30fcfae | 266 | else |
cd9a469c | 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." | |
b30fcfae | 271 | fi |
cd9a469c | 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 | |
b30fcfae | 301 | |
cd9a469c | 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" | |
f00f02a3 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
cd9a469c | 356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
f00f02a3 | 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 | |
cd9a469c | 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 | ||
f00f02a3 | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
cd9a469c | 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 | |
f00f02a3 | 407 | # script with STATUS, using 1 if that was 0. |
cd9a469c | 408 | as_fn_error () |
409 | { | |
f00f02a3 | 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 | |
cd9a469c | 414 | fi |
f00f02a3 | 415 | $as_echo "$as_me: error: $2" >&2 |
cd9a469c | 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 | |
b30fcfae | 421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
cd9a469c | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
cd9a469c | 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 | |
b30fcfae | 437 | |
cd9a469c | 438 | as_me=`$as_basename -- "$0" || |
b30fcfae | 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 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'` | |
b30fcfae | 456 | |
5084f823 | 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 | |
570af75a | 463 | |
b30fcfae | 464 | |
cd9a469c | 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 | | |
b30fcfae | 474 | sed ' |
cd9a469c | 475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
b30fcfae | 479 | N |
cd9a469c | 480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b30fcfae | 482 | t loop |
cd9a469c | 483 | s/-\n.*// |
b30fcfae | 484 | ' >$as_me.lineno && |
cd9a469c | 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; } | |
b30fcfae | 487 | |
f00f02a3 | 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 | |
b30fcfae | 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 | |
cd9a469c | 494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
b30fcfae | 496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
cd9a469c | 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';; | |
b30fcfae | 511 | esac |
512 | ||
cd9a469c | 513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 516 | else |
cd9a469c | 517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 519 | fi |
cd9a469c | 520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 522 | as_ln_s='ln -s' |
cd9a469c | 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. | |
f00f02a3 | 526 | # In both cases, we have to default to `cp -pR'. |
cd9a469c | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 528 | as_ln_s='cp -pR' |
cd9a469c | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
f00f02a3 | 532 | as_ln_s='cp -pR' |
5084f823 | 533 | fi |
b30fcfae | 534 | else |
f00f02a3 | 535 | as_ln_s='cp -pR' |
b30fcfae | 536 | fi |
cd9a469c | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
b30fcfae | 539 | |
540 | if mkdir -p . 2>/dev/null; then | |
cd9a469c | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
f00f02a3 | 547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
a83ffacf | 549 | |
b30fcfae | 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 | ||
f00f02a3 | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
b30fcfae | 559 | |
560 | # Name of the host. | |
f00f02a3 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b30fcfae | 562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
b30fcfae | 565 | # |
566 | # Initializations. | |
567 | # | |
71ab34df | 568 | ac_default_prefix=/usr/local |
cd9a469c | 569 | ac_clean_files= |
b30fcfae | 570 | ac_config_libobj_dir=. |
cd9a469c | 571 | LIBOBJS= |
b30fcfae | 572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
5084f823 | 576 | |
b30fcfae | 577 | # Identity of this package. |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
cd9a469c | 583 | PACKAGE_URL= |
b30fcfae | 584 | |
585 | ac_unique_file="move-if-change" | |
cd9a469c | 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 | |
3f71364d | 604 | READELF_FOR_TARGET |
cd9a469c | 605 | RANLIB_FOR_TARGET |
606 | OBJDUMP_FOR_TARGET | |
fc740d70 | 607 | OBJCOPY_FOR_TARGET |
cd9a469c | 608 | NM_FOR_TARGET |
609 | LIPO_FOR_TARGET | |
610 | LD_FOR_TARGET | |
611 | DLLTOOL_FOR_TARGET | |
612 | AS_FOR_TARGET | |
613 | AR_FOR_TARGET | |
03385ed3 | 614 | GDC_FOR_TARGET |
5ff5b630 | 615 | GOC_FOR_TARGET |
cd9a469c | 616 | GFORTRAN_FOR_TARGET |
cd9a469c | 617 | GCC_FOR_TARGET |
618 | CXX_FOR_TARGET | |
619 | CC_FOR_TARGET | |
3f71364d | 620 | READELF |
cd9a469c | 621 | OBJDUMP |
622 | OBJCOPY | |
623 | WINDMC | |
624 | WINDRES | |
625 | STRIP | |
626 | RANLIB | |
627 | NM | |
628 | LIPO | |
629 | LD | |
630 | DLLTOOL | |
631 | AS | |
632 | AR | |
633 | RUNTEST | |
634 | EXPECT | |
635 | MAKEINFO | |
636 | FLEX | |
637 | LEX | |
638 | M4 | |
639 | BISON | |
640 | YACC | |
cd9a469c | 641 | WINDRES_FOR_BUILD |
642 | WINDMC_FOR_BUILD | |
643 | RANLIB_FOR_BUILD | |
644 | NM_FOR_BUILD | |
645 | LD_FOR_BUILD | |
646 | LDFLAGS_FOR_BUILD | |
03385ed3 | 647 | GDC_FOR_BUILD |
5ff5b630 | 648 | GOC_FOR_BUILD |
cd9a469c | 649 | GFORTRAN_FOR_BUILD |
cd9a469c | 650 | DLLTOOL_FOR_BUILD |
651 | CXX_FOR_BUILD | |
652 | CXXFLAGS_FOR_BUILD | |
653 | CFLAGS_FOR_BUILD | |
654 | CC_FOR_BUILD | |
655 | AS_FOR_BUILD | |
656 | AR_FOR_BUILD | |
1fda3360 | 657 | target_configdirs |
cd9a469c | 658 | configdirs |
cd9a469c | 659 | build_configdirs |
cd9a469c | 660 | INSTALL_GDB_TK |
661 | GDB_TK | |
662 | CONFIGURE_GDB_TK | |
663 | build_tooldir | |
664 | tooldir | |
665 | GCC_SHLIB_SUBDIR | |
666 | RPATH_ENVVAR | |
372a3f1e | 667 | target_configargs |
668 | host_configargs | |
669 | build_configargs | |
719faf1c | 670 | BUILD_CONFIG |
ed9516f5 | 671 | LDFLAGS_FOR_TARGET |
cd9a469c | 672 | CXXFLAGS_FOR_TARGET |
673 | CFLAGS_FOR_TARGET | |
674 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
675 | SYSROOT_CFLAGS_FOR_TARGET | |
0812bb06 | 676 | get_gcc_base_ver |
c850ece7 | 677 | extra_host_zlib_configure_flags |
7bfefa9d | 678 | extra_host_libiberty_configure_flags |
944792ef | 679 | stage1_languages |
01b4453c | 680 | host_shared |
1015a063 | 681 | extra_linker_plugin_flags |
682 | extra_linker_plugin_configure_flags | |
87e20041 | 683 | islinc |
429cca51 | 684 | isllibs |
cd9a469c | 685 | poststage1_ldflags |
d6dfe18a | 686 | poststage1_libs |
cd9a469c | 687 | stage1_ldflags |
13687c85 | 688 | stage1_libs |
e4128452 | 689 | extra_isl_gmp_configure_flags |
cd9a469c | 690 | extra_mpc_mpfr_configure_flags |
691 | extra_mpc_gmp_configure_flags | |
692 | extra_mpfr_configure_flags | |
693 | gmpinc | |
694 | gmplibs | |
695 | do_compare | |
696 | GNATMAKE | |
697 | GNATBIND | |
698 | ac_ct_CXX | |
699 | CXXFLAGS | |
700 | CXX | |
701 | OBJEXT | |
702 | EXEEXT | |
703 | ac_ct_CC | |
704 | CPPFLAGS | |
705 | LDFLAGS | |
706 | CFLAGS | |
707 | CC | |
d3a7dd32 | 708 | extra_liboffloadmic_configure_flags |
cd9a469c | 709 | target_subdir |
710 | host_subdir | |
711 | build_subdir | |
712 | build_libsubdir | |
b181f265 | 713 | AWK |
714 | SED | |
cd9a469c | 715 | LN_S |
716 | LN | |
717 | INSTALL_DATA | |
718 | INSTALL_SCRIPT | |
719 | INSTALL_PROGRAM | |
720 | target_os | |
721 | target_vendor | |
722 | target_cpu | |
723 | target | |
724 | host_os | |
725 | host_vendor | |
726 | host_cpu | |
727 | host | |
728 | target_noncanonical | |
729 | host_noncanonical | |
730 | build_noncanonical | |
731 | build_os | |
732 | build_vendor | |
733 | build_cpu | |
734 | build | |
735 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
736 | target_alias | |
737 | host_alias | |
738 | build_alias | |
739 | LIBS | |
740 | ECHO_T | |
741 | ECHO_N | |
742 | ECHO_C | |
743 | DEFS | |
744 | mandir | |
745 | localedir | |
746 | libdir | |
747 | psdir | |
748 | pdfdir | |
749 | dvidir | |
750 | htmldir | |
751 | infodir | |
752 | docdir | |
753 | oldincludedir | |
754 | includedir | |
755 | localstatedir | |
756 | sharedstatedir | |
757 | sysconfdir | |
758 | datadir | |
759 | datarootdir | |
760 | libexecdir | |
761 | sbindir | |
762 | bindir | |
763 | program_transform_name | |
764 | prefix | |
765 | exec_prefix | |
766 | PACKAGE_URL | |
767 | PACKAGE_BUGREPORT | |
768 | PACKAGE_STRING | |
769 | PACKAGE_VERSION | |
770 | PACKAGE_TARNAME | |
771 | PACKAGE_NAME | |
772 | PATH_SEPARATOR | |
773 | SHELL' | |
774 | ac_subst_files='serialization_dependencies | |
775 | host_makefile_frag | |
776 | target_makefile_frag | |
777 | alphaieee_frag | |
778 | ospace_frag' | |
779 | ac_user_opts=' | |
780 | enable_option_checking | |
781 | with_build_libsubdir | |
6406d366 | 782 | with_system_zlib |
a3d93be3 | 783 | enable_as_accelerator_for |
784 | enable_offload_targets | |
cd9a469c | 785 | enable_gold |
1e369e5f | 786 | enable_ld |
afb6adb9 | 787 | enable_compressed_debug_sections |
d9d975ae | 788 | enable_libquadmath |
789 | enable_libquadmath_support | |
cd9a469c | 790 | enable_libada |
791 | enable_libssp | |
a3ba808f | 792 | enable_libstdcxx |
d3a7dd32 | 793 | enable_liboffloadmic |
6c59dfa4 | 794 | enable_bootstrap |
cd9a469c | 795 | with_mpc |
796 | with_mpc_include | |
797 | with_mpc_lib | |
798 | with_mpfr_dir | |
799 | with_mpfr | |
800 | with_mpfr_include | |
801 | with_mpfr_lib | |
802 | with_gmp_dir | |
803 | with_gmp | |
804 | with_gmp_include | |
805 | with_gmp_lib | |
cd9a469c | 806 | with_stage1_libs |
13687c85 | 807 | with_stage1_ldflags |
cd9a469c | 808 | with_boot_libs |
d6dfe18a | 809 | with_boot_ldflags |
87e20041 | 810 | with_isl |
811 | with_isl_include | |
812 | with_isl_lib | |
813 | enable_isl_version_check | |
7bfefa9d | 814 | enable_lto |
1015a063 | 815 | enable_linker_plugin_configure_flags |
816 | enable_linker_plugin_flags | |
01b4453c | 817 | enable_host_shared |
cd9a469c | 818 | enable_stage1_languages |
03869f98 | 819 | enable_objc_gc |
baf71228 | 820 | with_target_bdw_gc |
821 | with_target_bdw_gc_include | |
822 | with_target_bdw_gc_lib | |
0812bb06 | 823 | with_gcc_major_version_only |
cd9a469c | 824 | with_build_sysroot |
825 | with_debug_prefix_map | |
a2059f7a | 826 | with_build_config |
ee055341 | 827 | enable_vtable_verify |
cd9a469c | 828 | enable_serial_configure |
829 | with_build_time_tools | |
830 | enable_maintainer_mode | |
831 | enable_stage1_checking | |
832 | enable_werror | |
cd9a469c | 833 | ' |
834 | ac_precious_vars='build_alias | |
835 | host_alias | |
836 | target_alias | |
837 | CC | |
838 | CFLAGS | |
839 | LDFLAGS | |
840 | LIBS | |
841 | CPPFLAGS | |
842 | CXX | |
843 | CXXFLAGS | |
844 | CCC | |
372a3f1e | 845 | build_configargs |
846 | host_configargs | |
847 | target_configargs | |
cd9a469c | 848 | AR |
849 | AS | |
850 | DLLTOOL | |
851 | LD | |
852 | LIPO | |
853 | NM | |
854 | RANLIB | |
855 | STRIP | |
856 | WINDRES | |
857 | WINDMC | |
858 | OBJCOPY | |
859 | OBJDUMP | |
3f71364d | 860 | READELF |
cd9a469c | 861 | CC_FOR_TARGET |
862 | CXX_FOR_TARGET | |
863 | GCC_FOR_TARGET | |
cd9a469c | 864 | GFORTRAN_FOR_TARGET |
5ff5b630 | 865 | GOC_FOR_TARGET |
03385ed3 | 866 | GDC_FOR_TARGET |
cd9a469c | 867 | AR_FOR_TARGET |
868 | AS_FOR_TARGET | |
869 | DLLTOOL_FOR_TARGET | |
870 | LD_FOR_TARGET | |
871 | LIPO_FOR_TARGET | |
872 | NM_FOR_TARGET | |
fc740d70 | 873 | OBJCOPY_FOR_TARGET |
cd9a469c | 874 | OBJDUMP_FOR_TARGET |
875 | RANLIB_FOR_TARGET | |
3f71364d | 876 | READELF_FOR_TARGET |
cd9a469c | 877 | STRIP_FOR_TARGET |
878 | WINDRES_FOR_TARGET | |
879 | WINDMC_FOR_TARGET' | |
880 | ||
71ab34df | 881 | |
882 | # Initialize some variables set by options. | |
b30fcfae | 883 | ac_init_help= |
884 | ac_init_version=false | |
cd9a469c | 885 | ac_unrecognized_opts= |
886 | ac_unrecognized_sep= | |
71ab34df | 887 | # The variables have the same names as the options, with |
888 | # dashes changed to underlines. | |
b30fcfae | 889 | cache_file=/dev/null |
71ab34df | 890 | exec_prefix=NONE |
71ab34df | 891 | no_create= |
71ab34df | 892 | no_recursion= |
893 | prefix=NONE | |
894 | program_prefix=NONE | |
895 | program_suffix=NONE | |
896 | program_transform_name=s,x,x, | |
897 | silent= | |
898 | site= | |
899 | srcdir= | |
71ab34df | 900 | verbose= |
901 | x_includes=NONE | |
902 | x_libraries=NONE | |
b30fcfae | 903 | |
904 | # Installation directory options. | |
905 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
906 | # and all the variables that are supposed to be based on exec_prefix | |
907 | # by default will actually change. | |
908 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 909 | # (The list follows the same order as the GNU Coding Standards.) |
71ab34df | 910 | bindir='${exec_prefix}/bin' |
911 | sbindir='${exec_prefix}/sbin' | |
912 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 913 | datarootdir='${prefix}/share' |
914 | datadir='${datarootdir}' | |
71ab34df | 915 | sysconfdir='${prefix}/etc' |
916 | sharedstatedir='${prefix}/com' | |
917 | localstatedir='${prefix}/var' | |
71ab34df | 918 | includedir='${prefix}/include' |
919 | oldincludedir='/usr/include' | |
cd9a469c | 920 | docdir='${datarootdir}/doc/${PACKAGE}' |
921 | infodir='${datarootdir}/info' | |
922 | htmldir='${docdir}' | |
923 | dvidir='${docdir}' | |
924 | pdfdir='${docdir}' | |
925 | psdir='${docdir}' | |
926 | libdir='${exec_prefix}/lib' | |
927 | localedir='${datarootdir}/locale' | |
928 | mandir='${datarootdir}/man' | |
a8298541 | 929 | |
71ab34df | 930 | ac_prev= |
cd9a469c | 931 | ac_dashdash= |
71ab34df | 932 | for ac_option |
933 | do | |
71ab34df | 934 | # If the previous option needs an argument, assign it. |
935 | if test -n "$ac_prev"; then | |
cd9a469c | 936 | eval $ac_prev=\$ac_option |
71ab34df | 937 | ac_prev= |
938 | continue | |
939 | fi | |
a8298541 | 940 | |
cd9a469c | 941 | case $ac_option in |
f00f02a3 | 942 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
943 | *=) ac_optarg= ;; | |
944 | *) ac_optarg=yes ;; | |
cd9a469c | 945 | esac |
71ab34df | 946 | |
947 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
948 | ||
cd9a469c | 949 | case $ac_dashdash$ac_option in |
950 | --) | |
951 | ac_dashdash=yes ;; | |
71ab34df | 952 | |
953 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
954 | ac_prev=bindir ;; | |
955 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b30fcfae | 956 | bindir=$ac_optarg ;; |
71ab34df | 957 | |
958 | -build | --build | --buil | --bui | --bu) | |
b30fcfae | 959 | ac_prev=build_alias ;; |
71ab34df | 960 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b30fcfae | 961 | build_alias=$ac_optarg ;; |
71ab34df | 962 | |
963 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
964 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
965 | ac_prev=cache_file ;; | |
966 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
967 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b30fcfae | 968 | cache_file=$ac_optarg ;; |
969 | ||
970 | --config-cache | -C) | |
971 | cache_file=config.cache ;; | |
71ab34df | 972 | |
cd9a469c | 973 | -datadir | --datadir | --datadi | --datad) |
71ab34df | 974 | ac_prev=datadir ;; |
cd9a469c | 975 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b30fcfae | 976 | datadir=$ac_optarg ;; |
71ab34df | 977 | |
cd9a469c | 978 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
979 | | --dataroo | --dataro | --datar) | |
980 | ac_prev=datarootdir ;; | |
981 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
982 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
983 | datarootdir=$ac_optarg ;; | |
984 | ||
71ab34df | 985 | -disable-* | --disable-*) |
cd9a469c | 986 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
71ab34df | 987 | # Reject names that are not valid shell variable names. |
cd9a469c | 988 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 989 | as_fn_error $? "invalid feature name: $ac_useropt" |
cd9a469c | 990 | ac_useropt_orig=$ac_useropt |
991 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
992 | case $ac_user_opts in | |
993 | *" | |
994 | "enable_$ac_useropt" | |
995 | "*) ;; | |
996 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
997 | ac_unrecognized_sep=', ';; | |
998 | esac | |
999 | eval enable_$ac_useropt=no ;; | |
1000 | ||
1001 | -docdir | --docdir | --docdi | --doc | --do) | |
1002 | ac_prev=docdir ;; | |
1003 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1004 | docdir=$ac_optarg ;; | |
1005 | ||
1006 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1007 | ac_prev=dvidir ;; | |
1008 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1009 | dvidir=$ac_optarg ;; | |
71ab34df | 1010 | |
1011 | -enable-* | --enable-*) | |
cd9a469c | 1012 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
71ab34df | 1013 | # Reject names that are not valid shell variable names. |
cd9a469c | 1014 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1015 | as_fn_error $? "invalid feature name: $ac_useropt" |
cd9a469c | 1016 | ac_useropt_orig=$ac_useropt |
1017 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1018 | case $ac_user_opts in | |
1019 | *" | |
1020 | "enable_$ac_useropt" | |
1021 | "*) ;; | |
1022 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1023 | ac_unrecognized_sep=', ';; | |
5084f823 | 1024 | esac |
cd9a469c | 1025 | eval enable_$ac_useropt=\$ac_optarg ;; |
71ab34df | 1026 | |
1027 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1028 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1029 | | --exec | --exe | --ex) | |
1030 | ac_prev=exec_prefix ;; | |
1031 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1032 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1033 | | --exec=* | --exe=* | --ex=*) | |
b30fcfae | 1034 | exec_prefix=$ac_optarg ;; |
71ab34df | 1035 | |
1036 | -gas | --gas | --ga | --g) | |
1037 | # Obsolete; use --with-gas. | |
1038 | with_gas=yes ;; | |
1039 | ||
b30fcfae | 1040 | -help | --help | --hel | --he | -h) |
1041 | ac_init_help=long ;; | |
1042 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1043 | ac_init_help=recursive ;; | |
1044 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1045 | ac_init_help=short ;; | |
71ab34df | 1046 | |
1047 | -host | --host | --hos | --ho) | |
b30fcfae | 1048 | ac_prev=host_alias ;; |
71ab34df | 1049 | -host=* | --host=* | --hos=* | --ho=*) |
b30fcfae | 1050 | host_alias=$ac_optarg ;; |
71ab34df | 1051 | |
cd9a469c | 1052 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1053 | ac_prev=htmldir ;; | |
1054 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1055 | | --ht=*) | |
1056 | htmldir=$ac_optarg ;; | |
1057 | ||
71ab34df | 1058 | -includedir | --includedir | --includedi | --included | --include \ |
1059 | | --includ | --inclu | --incl | --inc) | |
1060 | ac_prev=includedir ;; | |
1061 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1062 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b30fcfae | 1063 | includedir=$ac_optarg ;; |
71ab34df | 1064 | |
1065 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1066 | ac_prev=infodir ;; | |
1067 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b30fcfae | 1068 | infodir=$ac_optarg ;; |
71ab34df | 1069 | |
1070 | -libdir | --libdir | --libdi | --libd) | |
1071 | ac_prev=libdir ;; | |
1072 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b30fcfae | 1073 | libdir=$ac_optarg ;; |
71ab34df | 1074 | |
1075 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1076 | | --libexe | --libex | --libe) | |
1077 | ac_prev=libexecdir ;; | |
1078 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1079 | | --libexe=* | --libex=* | --libe=*) | |
b30fcfae | 1080 | libexecdir=$ac_optarg ;; |
71ab34df | 1081 | |
cd9a469c | 1082 | -localedir | --localedir | --localedi | --localed | --locale) |
1083 | ac_prev=localedir ;; | |
1084 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1085 | localedir=$ac_optarg ;; | |
1086 | ||
71ab34df | 1087 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1088 | | --localstate | --localstat | --localsta | --localst | --locals) |
71ab34df | 1089 | ac_prev=localstatedir ;; |
1090 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1091 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b30fcfae | 1092 | localstatedir=$ac_optarg ;; |
71ab34df | 1093 | |
1094 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1095 | ac_prev=mandir ;; | |
1096 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b30fcfae | 1097 | mandir=$ac_optarg ;; |
71ab34df | 1098 | |
1099 | -nfp | --nfp | --nf) | |
1100 | # Obsolete; use --without-fp. | |
1101 | with_fp=no ;; | |
1102 | ||
1103 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b30fcfae | 1104 | | --no-cr | --no-c | -n) |
71ab34df | 1105 | no_create=yes ;; |
1106 | ||
1107 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1108 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1109 | no_recursion=yes ;; | |
1110 | ||
1111 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1112 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1113 | | --oldin | --oldi | --old | --ol | --o) | |
1114 | ac_prev=oldincludedir ;; | |
1115 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1116 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1117 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b30fcfae | 1118 | oldincludedir=$ac_optarg ;; |
71ab34df | 1119 | |
1120 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1121 | ac_prev=prefix ;; | |
1122 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b30fcfae | 1123 | prefix=$ac_optarg ;; |
71ab34df | 1124 | |
1125 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1126 | | --program-pre | --program-pr | --program-p) | |
1127 | ac_prev=program_prefix ;; | |
1128 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1129 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b30fcfae | 1130 | program_prefix=$ac_optarg ;; |
71ab34df | 1131 | |
1132 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1133 | | --program-suf | --program-su | --program-s) | |
1134 | ac_prev=program_suffix ;; | |
1135 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1136 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b30fcfae | 1137 | program_suffix=$ac_optarg ;; |
71ab34df | 1138 | |
1139 | -program-transform-name | --program-transform-name \ | |
1140 | | --program-transform-nam | --program-transform-na \ | |
1141 | | --program-transform-n | --program-transform- \ | |
1142 | | --program-transform | --program-transfor \ | |
1143 | | --program-transfo | --program-transf \ | |
1144 | | --program-trans | --program-tran \ | |
1145 | | --progr-tra | --program-tr | --program-t) | |
1146 | ac_prev=program_transform_name ;; | |
1147 | -program-transform-name=* | --program-transform-name=* \ | |
1148 | | --program-transform-nam=* | --program-transform-na=* \ | |
1149 | | --program-transform-n=* | --program-transform-=* \ | |
1150 | | --program-transform=* | --program-transfor=* \ | |
1151 | | --program-transfo=* | --program-transf=* \ | |
1152 | | --program-trans=* | --program-tran=* \ | |
1153 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b30fcfae | 1154 | program_transform_name=$ac_optarg ;; |
71ab34df | 1155 | |
cd9a469c | 1156 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1157 | ac_prev=pdfdir ;; | |
1158 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1159 | pdfdir=$ac_optarg ;; | |
1160 | ||
1161 | -psdir | --psdir | --psdi | --psd | --ps) | |
1162 | ac_prev=psdir ;; | |
1163 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1164 | psdir=$ac_optarg ;; | |
1165 | ||
71ab34df | 1166 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1167 | | -silent | --silent | --silen | --sile | --sil) | |
1168 | silent=yes ;; | |
1169 | ||
1170 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1171 | ac_prev=sbindir ;; | |
1172 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1173 | | --sbi=* | --sb=*) | |
b30fcfae | 1174 | sbindir=$ac_optarg ;; |
71ab34df | 1175 | |
1176 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1177 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1178 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1179 | | --sha | --sh) | |
1180 | ac_prev=sharedstatedir ;; | |
1181 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1182 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1183 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1184 | | --sha=* | --sh=*) | |
b30fcfae | 1185 | sharedstatedir=$ac_optarg ;; |
71ab34df | 1186 | |
1187 | -site | --site | --sit) | |
1188 | ac_prev=site ;; | |
1189 | -site=* | --site=* | --sit=*) | |
b30fcfae | 1190 | site=$ac_optarg ;; |
71ab34df | 1191 | |
1192 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1193 | ac_prev=srcdir ;; | |
1194 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b30fcfae | 1195 | srcdir=$ac_optarg ;; |
71ab34df | 1196 | |
1197 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1198 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1199 | ac_prev=sysconfdir ;; | |
1200 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1201 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b30fcfae | 1202 | sysconfdir=$ac_optarg ;; |
71ab34df | 1203 | |
1204 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b30fcfae | 1205 | ac_prev=target_alias ;; |
71ab34df | 1206 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b30fcfae | 1207 | target_alias=$ac_optarg ;; |
71ab34df | 1208 | |
1209 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1210 | verbose=yes ;; | |
1211 | ||
b30fcfae | 1212 | -version | --version | --versio | --versi | --vers | -V) |
1213 | ac_init_version=: ;; | |
71ab34df | 1214 | |
1215 | -with-* | --with-*) | |
cd9a469c | 1216 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
71ab34df | 1217 | # Reject names that are not valid shell variable names. |
cd9a469c | 1218 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1219 | as_fn_error $? "invalid package name: $ac_useropt" |
cd9a469c | 1220 | ac_useropt_orig=$ac_useropt |
1221 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1222 | case $ac_user_opts in | |
1223 | *" | |
1224 | "with_$ac_useropt" | |
1225 | "*) ;; | |
1226 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1227 | ac_unrecognized_sep=', ';; | |
5084f823 | 1228 | esac |
cd9a469c | 1229 | eval with_$ac_useropt=\$ac_optarg ;; |
71ab34df | 1230 | |
1231 | -without-* | --without-*) | |
cd9a469c | 1232 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
71ab34df | 1233 | # Reject names that are not valid shell variable names. |
cd9a469c | 1234 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1235 | as_fn_error $? "invalid package name: $ac_useropt" |
cd9a469c | 1236 | ac_useropt_orig=$ac_useropt |
1237 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1238 | case $ac_user_opts in | |
1239 | *" | |
1240 | "with_$ac_useropt" | |
1241 | "*) ;; | |
1242 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1243 | ac_unrecognized_sep=', ';; | |
1244 | esac | |
1245 | eval with_$ac_useropt=no ;; | |
71ab34df | 1246 | |
1247 | --x) | |
1248 | # Obsolete; use --with-x. | |
1249 | with_x=yes ;; | |
1250 | ||
1251 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1252 | | --x-incl | --x-inc | --x-in | --x-i) | |
1253 | ac_prev=x_includes ;; | |
1254 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1255 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b30fcfae | 1256 | x_includes=$ac_optarg ;; |
71ab34df | 1257 | |
1258 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1259 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1260 | ac_prev=x_libraries ;; | |
1261 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1262 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b30fcfae | 1263 | x_libraries=$ac_optarg ;; |
71ab34df | 1264 | |
f00f02a3 | 1265 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1266 | Try \`$0 --help' for more information" | |
71ab34df | 1267 | ;; |
1268 | ||
b30fcfae | 1269 | *=*) |
1270 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1271 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1272 | case $ac_envvar in #( |
1273 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
f00f02a3 | 1274 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
cd9a469c | 1275 | esac |
1276 | eval $ac_envvar=\$ac_optarg | |
b30fcfae | 1277 | export $ac_envvar ;; |
1278 | ||
71ab34df | 1279 | *) |
b30fcfae | 1280 | # FIXME: should be removed in autoconf 3.0. |
cd9a469c | 1281 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b30fcfae | 1282 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1283 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f00f02a3 | 1284 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
71ab34df | 1285 | ;; |
1286 | ||
1287 | esac | |
1288 | done | |
1289 | ||
1290 | if test -n "$ac_prev"; then | |
b30fcfae | 1291 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f00f02a3 | 1292 | as_fn_error $? "missing argument to $ac_option" |
ae48753c | 1293 | fi |
ae48753c | 1294 | |
cd9a469c | 1295 | if test -n "$ac_unrecognized_opts"; then |
1296 | case $enable_option_checking in | |
1297 | no) ;; | |
f00f02a3 | 1298 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
cd9a469c | 1299 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
5084f823 | 1300 | esac |
cd9a469c | 1301 | fi |
5084f823 | 1302 | |
cd9a469c | 1303 | # Check all directory arguments for consistency. |
1304 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1305 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1306 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1307 | libdir localedir mandir | |
5084f823 | 1308 | do |
cd9a469c | 1309 | eval ac_val=\$$ac_var |
1310 | # Remove trailing slashes. | |
1311 | case $ac_val in | |
1312 | */ ) | |
1313 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1314 | eval $ac_var=\$ac_val;; | |
1315 | esac | |
1316 | # Be sure to have absolute directory names. | |
5084f823 | 1317 | case $ac_val in |
cd9a469c | 1318 | [\\/$]* | ?:[\\/]* ) continue;; |
1319 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
71ab34df | 1320 | esac |
f00f02a3 | 1321 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
71ab34df | 1322 | done |
1323 | ||
b30fcfae | 1324 | # There might be people who depend on the old broken behavior: `$host' |
1325 | # used to hold the argument of --host etc. | |
1326 | # FIXME: To remove some day. | |
1327 | build=$build_alias | |
1328 | host=$host_alias | |
1329 | target=$target_alias | |
a83ffacf | 1330 | |
b30fcfae | 1331 | # FIXME: To remove some day. |
1332 | if test "x$host_alias" != x; then | |
1333 | if test "x$build_alias" = x; then | |
1334 | cross_compiling=maybe | |
b30fcfae | 1335 | elif test "x$build_alias" != "x$host_alias"; then |
1336 | cross_compiling=yes | |
1337 | fi | |
1338 | fi | |
1339 | ||
1340 | ac_tool_prefix= | |
1341 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1342 | ||
1343 | test "$silent" = yes && exec 6>/dev/null | |
71ab34df | 1344 | |
71ab34df | 1345 | |
cd9a469c | 1346 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1347 | ac_ls_di=`ls -di .` && | |
1348 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f00f02a3 | 1349 | as_fn_error $? "working directory cannot be determined" |
cd9a469c | 1350 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f00f02a3 | 1351 | as_fn_error $? "pwd does not report name of working directory" |
cd9a469c | 1352 | |
1353 | ||
71ab34df | 1354 | # Find the source files, if location was not specified. |
1355 | if test -z "$srcdir"; then | |
1356 | ac_srcdir_defaulted=yes | |
cd9a469c | 1357 | # Try the directory containing this script, then the parent directory. |
1358 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1359 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1360 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1361 | X"$as_myself" : 'X\(//\)$' \| \ | |
1362 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1363 | $as_echo X"$as_myself" | | |
1364 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1365 | s//\1/ | |
1366 | q | |
1367 | } | |
1368 | /^X\(\/\/\)[^/].*/{ | |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\/\)$/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\).*/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | s/.*/./; q'` | |
71ab34df | 1381 | srcdir=$ac_confdir |
cd9a469c | 1382 | if test ! -r "$srcdir/$ac_unique_file"; then |
71ab34df | 1383 | srcdir=.. |
1384 | fi | |
1385 | else | |
1386 | ac_srcdir_defaulted=no | |
1387 | fi | |
cd9a469c | 1388 | if test ! -r "$srcdir/$ac_unique_file"; then |
1389 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f00f02a3 | 1390 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
cd9a469c | 1391 | fi |
1392 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1393 | ac_abs_confdir=`( | |
f00f02a3 | 1394 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
cd9a469c | 1395 | pwd)` |
1396 | # When building in place, set srcdir=. | |
1397 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1398 | srcdir=. | |
1399 | fi | |
1400 | # Remove unnecessary trailing slashes from srcdir. | |
1401 | # Double slashes in file names in object file debugging info | |
1402 | # mess up M-x gdb in Emacs. | |
1403 | case $srcdir in | |
1404 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1405 | esac | |
13d2f2b2 | 1406 | case $srcdir in |
1407 | *" "*) | |
f00f02a3 | 1408 | as_fn_error $? "path to source, $srcdir, contains spaces" |
13d2f2b2 | 1409 | ;; |
1410 | esac | |
d2d2630b | 1411 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1412 | ||
cd9a469c | 1413 | for ac_var in $ac_precious_vars; do |
1414 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1415 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1416 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1417 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1418 | done | |
b30fcfae | 1419 | |
1420 | # | |
1421 | # Report the --help message. | |
1422 | # | |
1423 | if test "$ac_init_help" = "long"; then | |
1424 | # Omit some internal or obsolete options to make the list less imposing. | |
1425 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1426 | cat <<_ACEOF | |
1427 | \`configure' configures this package to adapt to many kinds of systems. | |
1428 | ||
1429 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1430 | ||
1431 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1432 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1433 | ||
1434 | Defaults for the options are specified in brackets. | |
1435 | ||
1436 | Configuration: | |
1437 | -h, --help display this help and exit | |
1438 | --help=short display options specific to this package | |
1439 | --help=recursive display the short help of all the included packages | |
1440 | -V, --version display version information and exit | |
f00f02a3 | 1441 | -q, --quiet, --silent do not print \`checking ...' messages |
b30fcfae | 1442 | --cache-file=FILE cache test results in FILE [disabled] |
1443 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1444 | -n, --no-create do not create output files | |
1445 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1446 | ||
b30fcfae | 1447 | Installation directories: |
1448 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1449 | [$ac_default_prefix] |
b30fcfae | 1450 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1451 | [PREFIX] |
b30fcfae | 1452 | |
1453 | By default, \`make install' will install all the files in | |
1454 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1455 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1456 | for instance \`--prefix=\$HOME'. | |
1457 | ||
1458 | For better control, use the options below. | |
1459 | ||
1460 | Fine tuning of the installation directories: | |
cd9a469c | 1461 | --bindir=DIR user executables [EPREFIX/bin] |
1462 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1463 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1464 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1465 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1466 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1467 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1468 | --includedir=DIR C header files [PREFIX/include] | |
1469 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1470 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1471 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1472 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1473 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1474 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1475 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1476 | --htmldir=DIR html documentation [DOCDIR] | |
1477 | --dvidir=DIR dvi documentation [DOCDIR] | |
1478 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1479 | --psdir=DIR ps documentation [DOCDIR] | |
b30fcfae | 1480 | _ACEOF |
1481 | ||
1482 | cat <<\_ACEOF | |
1483 | ||
1484 | Program names: | |
1485 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1486 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1487 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1488 | ||
1489 | System types: | |
1490 | --build=BUILD configure for building on BUILD [guessed] | |
1491 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1492 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1493 | _ACEOF | |
1494 | fi | |
1495 | ||
1496 | if test -n "$ac_init_help"; then | |
1497 | ||
1498 | cat <<\_ACEOF | |
1499 | ||
1500 | Optional Features: | |
cd9a469c | 1501 | --disable-option-checking ignore unrecognized --enable/--with options |
b30fcfae | 1502 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1503 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
a3d93be3 | 1504 | --enable-as-accelerator-for=ARG |
1505 | build as offload target compiler. Specify offload | |
1506 | host triple by ARG | |
1507 | --enable-offload-targets=LIST | |
1508 | enable offloading to devices from comma-separated | |
1509 | LIST of TARGET[=DIR]. Use optional path to find | |
1510 | offload target compiler during the build | |
1e369e5f | 1511 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
8747a938 | 1512 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
325f661b | 1513 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
afb6adb9 | 1514 | Enable compressed debug sections for gas, gold or ld |
1515 | by default | |
d9d975ae | 1516 | --disable-libquadmath do not build libquadmath directory |
1517 | --disable-libquadmath-support | |
1518 | disable libquadmath support for Fortran | |
09c2d953 | 1519 | --enable-libada build libada directory |
1520 | --enable-libssp build libssp directory | |
a3ba808f | 1521 | --disable-libstdcxx do not build libstdc++-v3 directory |
d3a7dd32 | 1522 | --enable-liboffloadmic=ARG |
1523 | build liboffloadmic [ARG={no,host,target}] | |
6c59dfa4 | 1524 | --enable-bootstrap enable bootstrapping [yes if native build] |
87e20041 | 1525 | --disable-isl-version-check |
7458b15a | 1526 | disable check for isl version |
7bfefa9d | 1527 | --enable-lto enable link time optimization support |
1015a063 | 1528 | --enable-linker-plugin-configure-flags=FLAGS |
1529 | additional flags for configuring linker plugins | |
1530 | [none] | |
1531 | --enable-linker-plugin-flags=FLAGS | |
1532 | additional flags for configuring and building linker | |
1533 | plugins [none] | |
01b4453c | 1534 | --enable-host-shared build host code as shared libraries |
8747a938 | 1535 | --enable-stage1-languages[=all] |
1536 | choose additional languages to build during stage1. | |
1537 | Mostly useful for compiler development | |
03869f98 | 1538 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1539 | Objective-C runtime | |
d5f3a33f | 1540 | --enable-vtable-verify Enable vtable verification feature |
09c2d953 | 1541 | --enable-serial-[{host,target,build}-]configure |
8747a938 | 1542 | force sequential configuration of sub-packages for |
1543 | the host, target or build machine, or all | |
1544 | sub-packages | |
1545 | --enable-maintainer-mode | |
1546 | enable make rules and dependencies not useful (and | |
1547 | sometimes confusing) to the casual installer | |
1548 | --enable-stage1-checking[=all] | |
1549 | choose additional checking for stage1 of the | |
1550 | compiler | |
b30fcfae | 1551 | --enable-werror enable -Werror in bootstrap stage2 and later |
1552 | ||
1553 | Optional Packages: | |
1554 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1555 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1556 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
6406d366 | 1557 | --with-system-zlib use installed libz |
8747a938 | 1558 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1559 | Equivalent to --with-mpc-include=PATH/include plus | |
1560 | --with-mpc-lib=PATH/lib | |
1561 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1562 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
09c2d953 | 1563 | --with-mpfr-dir=PATH this option has been REMOVED |
1564 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
8747a938 | 1565 | Equivalent to --with-mpfr-include=PATH/include plus |
1566 | --with-mpfr-lib=PATH/lib | |
b30fcfae | 1567 | --with-mpfr-include=PATH |
09c2d953 | 1568 | specify directory for installed MPFR include files |
1569 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1570 | --with-gmp-dir=PATH this option has been REMOVED | |
8747a938 | 1571 | --with-gmp=PATH specify prefix directory for the installed GMP |
1572 | package. Equivalent to | |
1573 | --with-gmp-include=PATH/include plus | |
1574 | --with-gmp-lib=PATH/lib | |
09c2d953 | 1575 | --with-gmp-include=PATH specify directory for installed GMP include files |
1576 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
13687c85 | 1577 | --with-stage1-libs=LIBS libraries for stage1 |
8747a938 | 1578 | --with-stage1-ldflags=FLAGS |
1579 | linker flags for stage1 | |
8747a938 | 1580 | --with-boot-libs=LIBS libraries for stage2 and later |
1581 | --with-boot-ldflags=FLAGS | |
1582 | linker flags for stage2 and later | |
71130ef8 | 1583 | --with-isl=PATH Specify prefix directory for the installed isl |
8747a938 | 1584 | package. Equivalent to |
87e20041 | 1585 | --with-isl-include=PATH/include plus |
1586 | --with-isl-lib=PATH/lib | |
7458b15a | 1587 | --with-isl-include=PATH Specify directory for installed isl include files |
1588 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
baf71228 | 1589 | --with-target-bdw-gc=PATHLIST |
1590 | specify prefix directory for installed bdw-gc | |
1591 | package. Equivalent to | |
1592 | --with-target-bdw-gc-include=PATH/include plus | |
1593 | --with-target-bdw-gc-lib=PATH/lib | |
1594 | --with-target-bdw-gc-include=PATHLIST | |
1595 | specify directories for installed bdw-gc include | |
1596 | files | |
1597 | --with-target-bdw-gc-lib=PATHLIST | |
1598 | specify directories for installed bdw-gc library | |
0812bb06 | 1599 | --with-gcc-major-version-only |
1600 | use only GCC major number in filesystem paths | |
09c2d953 | 1601 | --with-build-sysroot=SYSROOT |
b30fcfae | 1602 | use sysroot as the system root during the build |
5f1f2de5 | 1603 | --with-debug-prefix-map='A=B C=D ...' |
8747a938 | 1604 | map A to B, C to D ... in debug information |
1605 | --with-build-config='NAME NAME2...' | |
1606 | use config/NAME.mk build configuration | |
09c2d953 | 1607 | --with-build-time-tools=PATH |
b30fcfae | 1608 | use given path to find target tools during the build |
b30fcfae | 1609 | |
1610 | Some influential environment variables: | |
1611 | CC C compiler command | |
1612 | CFLAGS C compiler flags | |
1613 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1614 | nonstandard directory <lib dir> | |
cd9a469c | 1615 | LIBS libraries to pass to the linker, e.g. -l<library> |
f00f02a3 | 1616 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
cd9a469c | 1617 | you have headers in a nonstandard directory <include dir> |
eae5b2bc | 1618 | CXX C++ compiler command |
1619 | CXXFLAGS C++ compiler flags | |
372a3f1e | 1620 | build_configargs |
1621 | additional configure arguments for build directories | |
1622 | host_configargs | |
1623 | additional configure arguments for host directories | |
1624 | target_configargs | |
1625 | additional configure arguments for target directories | |
95a05732 | 1626 | AR AR for the host |
1627 | AS AS for the host | |
1628 | DLLTOOL DLLTOOL for the host | |
1629 | LD LD for the host | |
1630 | LIPO LIPO for the host | |
1631 | NM NM for the host | |
1632 | RANLIB RANLIB for the host | |
1633 | STRIP STRIP for the host | |
1634 | WINDRES WINDRES for the host | |
75d6a0a9 | 1635 | WINDMC WINDMC for the host |
95a05732 | 1636 | OBJCOPY OBJCOPY for the host |
1637 | OBJDUMP OBJDUMP for the host | |
3f71364d | 1638 | READELF READELF for the host |
95a05732 | 1639 | CC_FOR_TARGET |
1640 | CC for the target | |
1641 | CXX_FOR_TARGET | |
1642 | CXX for the target | |
1643 | GCC_FOR_TARGET | |
1644 | GCC for the target | |
95a05732 | 1645 | GFORTRAN_FOR_TARGET |
1646 | GFORTRAN for the target | |
5ff5b630 | 1647 | GOC_FOR_TARGET |
1648 | GOC for the target | |
03385ed3 | 1649 | GDC_FOR_TARGET |
1650 | GDC for the target | |
95a05732 | 1651 | AR_FOR_TARGET |
1652 | AR for the target | |
1653 | AS_FOR_TARGET | |
1654 | AS for the target | |
1655 | DLLTOOL_FOR_TARGET | |
1656 | DLLTOOL for the target | |
1657 | LD_FOR_TARGET | |
1658 | LD for the target | |
1659 | LIPO_FOR_TARGET | |
1660 | LIPO for the target | |
1661 | NM_FOR_TARGET | |
1662 | NM for the target | |
fc740d70 | 1663 | OBJCOPY_FOR_TARGET |
1664 | OBJCOPY for the target | |
95a05732 | 1665 | OBJDUMP_FOR_TARGET |
1666 | OBJDUMP for the target | |
1667 | RANLIB_FOR_TARGET | |
1668 | RANLIB for the target | |
3f71364d | 1669 | READELF_FOR_TARGET |
1670 | READELF for the target | |
95a05732 | 1671 | STRIP_FOR_TARGET |
1672 | STRIP for the target | |
1673 | WINDRES_FOR_TARGET | |
1674 | WINDRES for the target | |
75d6a0a9 | 1675 | WINDMC_FOR_TARGET |
1676 | WINDMC for the target | |
b30fcfae | 1677 | |
1678 | Use these variables to override the choices made by `configure' or to help | |
1679 | it to find libraries and programs with nonstandard names/locations. | |
1680 | ||
cd9a469c | 1681 | Report bugs to the package provider. |
b30fcfae | 1682 | _ACEOF |
cd9a469c | 1683 | ac_status=$? |
b30fcfae | 1684 | fi |
1685 | ||
1686 | if test "$ac_init_help" = "recursive"; then | |
1687 | # If there are subdirs, report their specific --help. | |
b30fcfae | 1688 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1689 | test -d "$ac_dir" || |
1690 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1691 | continue | |
b30fcfae | 1692 | ac_builddir=. |
1693 | ||
cd9a469c | 1694 | case "$ac_dir" in |
1695 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1696 | *) | |
1697 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1698 | # A ".." for each directory in $ac_dir_suffix. | |
1699 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1700 | case $ac_top_builddir_sub in | |
1701 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1702 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1703 | esac ;; | |
1704 | esac | |
1705 | ac_abs_top_builddir=$ac_pwd | |
1706 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1707 | # for backward compatibility: | |
1708 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 1709 | |
1710 | case $srcdir in | |
cd9a469c | 1711 | .) # We are building in place. |
b30fcfae | 1712 | ac_srcdir=. |
cd9a469c | 1713 | ac_top_srcdir=$ac_top_builddir_sub |
1714 | ac_abs_top_srcdir=$ac_pwd ;; | |
1715 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 1716 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1717 | ac_top_srcdir=$srcdir |
1718 | ac_abs_top_srcdir=$srcdir ;; | |
1719 | *) # Relative name. | |
1720 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1721 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1722 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5084f823 | 1723 | esac |
cd9a469c | 1724 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1725 | ||
1726 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1727 | # Check for guested configure. | |
1728 | if test -f "$ac_srcdir/configure.gnu"; then | |
1729 | echo && | |
1730 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1731 | elif test -f "$ac_srcdir/configure"; then | |
1732 | echo && | |
1733 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b30fcfae | 1734 | else |
cd9a469c | 1735 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1736 | fi || ac_status=$? | |
1737 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b30fcfae | 1738 | done |
1739 | fi | |
1740 | ||
cd9a469c | 1741 | test -n "$ac_init_help" && exit $ac_status |
b30fcfae | 1742 | if $ac_init_version; then |
1743 | cat <<\_ACEOF | |
cd9a469c | 1744 | configure |
f00f02a3 | 1745 | generated by GNU Autoconf 2.69 |
b30fcfae | 1746 | |
f00f02a3 | 1747 | Copyright (C) 2012 Free Software Foundation, Inc. |
b30fcfae | 1748 | This configure script is free software; the Free Software Foundation |
1749 | gives unlimited permission to copy, distribute and modify it. | |
1750 | _ACEOF | |
cd9a469c | 1751 | exit |
a83ffacf | 1752 | fi |
cd9a469c | 1753 | |
1754 | ## ------------------------ ## | |
1755 | ## Autoconf initialization. ## | |
1756 | ## ------------------------ ## | |
1757 | ||
1758 | # ac_fn_c_try_compile LINENO | |
1759 | # -------------------------- | |
1760 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1761 | ac_fn_c_try_compile () | |
1762 | { | |
1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1764 | rm -f conftest.$ac_objext | |
1765 | if { { ac_try="$ac_compile" | |
1766 | case "(($ac_try" in | |
1767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1768 | *) ac_try_echo=$ac_try;; | |
1769 | esac | |
1770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1771 | $as_echo "$ac_try_echo"; } >&5 | |
1772 | (eval "$ac_compile") 2>conftest.err | |
1773 | ac_status=$? | |
1774 | if test -s conftest.err; then | |
1775 | grep -v '^ *+' conftest.err >conftest.er1 | |
1776 | cat conftest.er1 >&5 | |
1777 | mv -f conftest.er1 conftest.err | |
1778 | fi | |
1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1780 | test $ac_status = 0; } && { | |
1781 | test -z "$ac_c_werror_flag" || | |
1782 | test ! -s conftest.err | |
1783 | } && test -s conftest.$ac_objext; then : | |
1784 | ac_retval=0 | |
1785 | else | |
1786 | $as_echo "$as_me: failed program was:" >&5 | |
1787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1788 | ||
1789 | ac_retval=1 | |
1790 | fi | |
f00f02a3 | 1791 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1792 | as_fn_set_status $ac_retval | |
cd9a469c | 1793 | |
1794 | } # ac_fn_c_try_compile | |
1795 | ||
1796 | # ac_fn_cxx_try_compile LINENO | |
1797 | # ---------------------------- | |
1798 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1799 | ac_fn_cxx_try_compile () | |
1800 | { | |
1801 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1802 | rm -f conftest.$ac_objext | |
1803 | if { { ac_try="$ac_compile" | |
1804 | case "(($ac_try" in | |
1805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1806 | *) ac_try_echo=$ac_try;; | |
1807 | esac | |
1808 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1809 | $as_echo "$ac_try_echo"; } >&5 | |
1810 | (eval "$ac_compile") 2>conftest.err | |
1811 | ac_status=$? | |
1812 | if test -s conftest.err; then | |
1813 | grep -v '^ *+' conftest.err >conftest.er1 | |
1814 | cat conftest.er1 >&5 | |
1815 | mv -f conftest.er1 conftest.err | |
1816 | fi | |
1817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1818 | test $ac_status = 0; } && { | |
1819 | test -z "$ac_cxx_werror_flag" || | |
1820 | test ! -s conftest.err | |
1821 | } && test -s conftest.$ac_objext; then : | |
1822 | ac_retval=0 | |
1823 | else | |
1824 | $as_echo "$as_me: failed program was:" >&5 | |
1825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1826 | ||
1827 | ac_retval=1 | |
1828 | fi | |
f00f02a3 | 1829 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1830 | as_fn_set_status $ac_retval | |
cd9a469c | 1831 | |
1832 | } # ac_fn_cxx_try_compile | |
1833 | ||
13687c85 | 1834 | # ac_fn_cxx_try_link LINENO |
1835 | # ------------------------- | |
1836 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1837 | ac_fn_cxx_try_link () | |
1838 | { | |
1839 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1840 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1841 | if { { ac_try="$ac_link" | |
1842 | case "(($ac_try" in | |
1843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1844 | *) ac_try_echo=$ac_try;; | |
1845 | esac | |
1846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1847 | $as_echo "$ac_try_echo"; } >&5 | |
1848 | (eval "$ac_link") 2>conftest.err | |
1849 | ac_status=$? | |
1850 | if test -s conftest.err; then | |
1851 | grep -v '^ *+' conftest.err >conftest.er1 | |
1852 | cat conftest.er1 >&5 | |
1853 | mv -f conftest.er1 conftest.err | |
1854 | fi | |
1855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1856 | test $ac_status = 0; } && { | |
1857 | test -z "$ac_cxx_werror_flag" || | |
1858 | test ! -s conftest.err | |
1859 | } && test -s conftest$ac_exeext && { | |
1860 | test "$cross_compiling" = yes || | |
f00f02a3 | 1861 | test -x conftest$ac_exeext |
13687c85 | 1862 | }; then : |
1863 | ac_retval=0 | |
1864 | else | |
1865 | $as_echo "$as_me: failed program was:" >&5 | |
1866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1867 | ||
1868 | ac_retval=1 | |
1869 | fi | |
1870 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1871 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1872 | # interfere with the next link command; also delete a directory that is | |
1873 | # left behind by Apple's compiler. We do this before executing the actions. | |
1874 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 1875 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1876 | as_fn_set_status $ac_retval | |
13687c85 | 1877 | |
1878 | } # ac_fn_cxx_try_link | |
1879 | ||
cd9a469c | 1880 | # ac_fn_c_try_link LINENO |
1881 | # ----------------------- | |
1882 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1883 | ac_fn_c_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_c_werror_flag" || | |
1904 | test ! -s conftest.err | |
1905 | } && test -s conftest$ac_exeext && { | |
1906 | test "$cross_compiling" = yes || | |
f00f02a3 | 1907 | test -x conftest$ac_exeext |
cd9a469c | 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 | |
f00f02a3 | 1921 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1922 | as_fn_set_status $ac_retval | |
cd9a469c | 1923 | |
1924 | } # ac_fn_c_try_link | |
1925 | cat >config.log <<_ACEOF | |
b30fcfae | 1926 | This file contains any messages produced by compilers while |
1927 | running configure, to aid debugging if configure makes a mistake. | |
1928 | ||
1929 | It was created by $as_me, which was | |
f00f02a3 | 1930 | generated by GNU Autoconf 2.69. Invocation command line was |
b30fcfae | 1931 | |
1932 | $ $0 $@ | |
1933 | ||
1934 | _ACEOF | |
cd9a469c | 1935 | exec 5>>config.log |
b30fcfae | 1936 | { |
1937 | cat <<_ASUNAME | |
1938 | ## --------- ## | |
1939 | ## Platform. ## | |
1940 | ## --------- ## | |
1941 | ||
1942 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1943 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1944 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1945 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1946 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1947 | ||
1948 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1949 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1950 | ||
1951 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1952 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1953 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
cd9a469c | 1954 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b30fcfae | 1955 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1956 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1957 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1958 | ||
1959 | _ASUNAME | |
1960 | ||
1961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1962 | for as_dir in $PATH | |
1963 | do | |
1964 | IFS=$as_save_IFS | |
1965 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 1966 | $as_echo "PATH: $as_dir" |
1967 | done | |
1968 | IFS=$as_save_IFS | |
b30fcfae | 1969 | |
1970 | } >&5 | |
1971 | ||
1972 | cat >&5 <<_ACEOF | |
1973 | ||
1974 | ||
1975 | ## ----------- ## | |
1976 | ## Core tests. ## | |
1977 | ## ----------- ## | |
1978 | ||
1979 | _ACEOF | |
1980 | ||
1981 | ||
1982 | # Keep a trace of the command line. | |
1983 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1984 | # Strip out --silent because we don't want to record it for future runs. | |
1985 | # Also quote any args containing shell meta-characters. | |
1986 | # Make two passes to allow for proper duplicate-argument suppression. | |
1987 | ac_configure_args= | |
1988 | ac_configure_args0= | |
1989 | ac_configure_args1= | |
b30fcfae | 1990 | ac_must_keep_next=false |
1991 | for ac_pass in 1 2 | |
1992 | do | |
1993 | for ac_arg | |
1994 | do | |
1995 | case $ac_arg in | |
1996 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1997 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1998 | | -silent | --silent | --silen | --sile | --sil) | |
1999 | continue ;; | |
cd9a469c | 2000 | *\'*) |
2001 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b30fcfae | 2002 | esac |
2003 | case $ac_pass in | |
cd9a469c | 2004 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b30fcfae | 2005 | 2) |
cd9a469c | 2006 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b30fcfae | 2007 | if test $ac_must_keep_next = true; then |
2008 | ac_must_keep_next=false # Got value, back to normal. | |
2009 | else | |
2010 | case $ac_arg in | |
2011 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2012 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2013 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2014 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2015 | case "$ac_configure_args0 " in | |
2016 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2017 | esac | |
2018 | ;; | |
2019 | -* ) ac_must_keep_next=true ;; | |
2020 | esac | |
2021 | fi | |
cd9a469c | 2022 | as_fn_append ac_configure_args " '$ac_arg'" |
b30fcfae | 2023 | ;; |
2024 | esac | |
2025 | done | |
2026 | done | |
cd9a469c | 2027 | { ac_configure_args0=; unset ac_configure_args0;} |
2028 | { ac_configure_args1=; unset ac_configure_args1;} | |
b30fcfae | 2029 | |
2030 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2031 | # config.log. We remove comments because anyway the quotes in there | |
2032 | # would cause problems or look ugly. | |
cd9a469c | 2033 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2034 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b30fcfae | 2035 | trap 'exit_status=$? |
2036 | # Save into config.log some information that might help in debugging. | |
2037 | { | |
2038 | echo | |
2039 | ||
f00f02a3 | 2040 | $as_echo "## ---------------- ## |
b30fcfae | 2041 | ## Cache variables. ## |
f00f02a3 | 2042 | ## ---------------- ##" |
b30fcfae | 2043 | echo |
2044 | # The following way of writing the cache mishandles newlines in values, | |
cd9a469c | 2045 | ( |
2046 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2047 | eval ac_val=\$$ac_var | |
2048 | case $ac_val in #( | |
2049 | *${as_nl}*) | |
2050 | case $ac_var in #( | |
2051 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2052 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2053 | esac | |
2054 | case $ac_var in #( | |
2055 | _ | IFS | as_nl) ;; #( | |
2056 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2057 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2058 | esac ;; | |
2059 | esac | |
2060 | done | |
b30fcfae | 2061 | (set) 2>&1 | |
cd9a469c | 2062 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2063 | *${as_nl}ac_space=\ *) | |
b30fcfae | 2064 | sed -n \ |
cd9a469c | 2065 | "s/'\''/'\''\\\\'\'''\''/g; |
2066 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2067 | ;; #( | |
b30fcfae | 2068 | *) |
cd9a469c | 2069 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 2070 | ;; |
cd9a469c | 2071 | esac | |
2072 | sort | |
2073 | ) | |
b30fcfae | 2074 | echo |
2075 | ||
f00f02a3 | 2076 | $as_echo "## ----------------- ## |
b30fcfae | 2077 | ## Output variables. ## |
f00f02a3 | 2078 | ## ----------------- ##" |
b30fcfae | 2079 | echo |
2080 | for ac_var in $ac_subst_vars | |
2081 | do | |
cd9a469c | 2082 | eval ac_val=\$$ac_var |
2083 | case $ac_val in | |
2084 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2085 | esac | |
2086 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2087 | done | sort |
2088 | echo | |
2089 | ||
2090 | if test -n "$ac_subst_files"; then | |
f00f02a3 | 2091 | $as_echo "## ------------------- ## |
cd9a469c | 2092 | ## File substitutions. ## |
f00f02a3 | 2093 | ## ------------------- ##" |
b30fcfae | 2094 | echo |
2095 | for ac_var in $ac_subst_files | |
2096 | do | |
cd9a469c | 2097 | eval ac_val=\$$ac_var |
2098 | case $ac_val in | |
2099 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2100 | esac | |
2101 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2102 | done | sort |
2103 | echo | |
2104 | fi | |
2105 | ||
2106 | if test -s confdefs.h; then | |
f00f02a3 | 2107 | $as_echo "## ----------- ## |
b30fcfae | 2108 | ## confdefs.h. ## |
f00f02a3 | 2109 | ## ----------- ##" |
b30fcfae | 2110 | echo |
cd9a469c | 2111 | cat confdefs.h |
b30fcfae | 2112 | echo |
2113 | fi | |
2114 | test "$ac_signal" != 0 && | |
cd9a469c | 2115 | $as_echo "$as_me: caught signal $ac_signal" |
2116 | $as_echo "$as_me: exit $exit_status" | |
b30fcfae | 2117 | } >&5 |
cd9a469c | 2118 | rm -f core *.core core.conftest.* && |
2119 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b30fcfae | 2120 | exit $exit_status |
cd9a469c | 2121 | ' 0 |
b30fcfae | 2122 | for ac_signal in 1 2 13 15; do |
cd9a469c | 2123 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b30fcfae | 2124 | done |
2125 | ac_signal=0 | |
2126 | ||
2127 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
cd9a469c | 2128 | rm -f -r conftest* confdefs.h |
2129 | ||
2130 | $as_echo "/* confdefs.h */" > confdefs.h | |
b30fcfae | 2131 | |
2132 | # Predefined preprocessor variables. | |
2133 | ||
2134 | cat >>confdefs.h <<_ACEOF | |
2135 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2136 | _ACEOF | |
2137 | ||
b30fcfae | 2138 | cat >>confdefs.h <<_ACEOF |
2139 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2140 | _ACEOF | |
2141 | ||
b30fcfae | 2142 | cat >>confdefs.h <<_ACEOF |
2143 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2144 | _ACEOF | |
a83ffacf | 2145 | |
b30fcfae | 2146 | cat >>confdefs.h <<_ACEOF |
2147 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2148 | _ACEOF | |
2149 | ||
b30fcfae | 2150 | cat >>confdefs.h <<_ACEOF |
2151 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2152 | _ACEOF | |
2153 | ||
cd9a469c | 2154 | cat >>confdefs.h <<_ACEOF |
2155 | #define PACKAGE_URL "$PACKAGE_URL" | |
2156 | _ACEOF | |
2157 | ||
b30fcfae | 2158 | |
2159 | # Let the site file select an alternate cache file if it wants to. | |
cd9a469c | 2160 | # Prefer an explicitly selected file to automatically selected ones. |
2161 | ac_site_file1=NONE | |
2162 | ac_site_file2=NONE | |
2163 | if test -n "$CONFIG_SITE"; then | |
f00f02a3 | 2164 | # We do not want a PATH search for config.site. |
2165 | case $CONFIG_SITE in #(( | |
2166 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2167 | */*) ac_site_file1=$CONFIG_SITE;; | |
2168 | *) ac_site_file1=./$CONFIG_SITE;; | |
2169 | esac | |
cd9a469c | 2170 | elif test "x$prefix" != xNONE; then |
2171 | ac_site_file1=$prefix/share/config.site | |
2172 | ac_site_file2=$prefix/etc/config.site | |
2173 | else | |
2174 | ac_site_file1=$ac_default_prefix/share/config.site | |
2175 | ac_site_file2=$ac_default_prefix/etc/config.site | |
71ab34df | 2176 | fi |
cd9a469c | 2177 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2178 | do | |
2179 | test "x$ac_site_file" = xNONE && continue | |
f00f02a3 | 2180 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
cd9a469c | 2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2182 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b30fcfae | 2183 | sed 's/^/| /' "$ac_site_file" >&5 |
f00f02a3 | 2184 | . "$ac_site_file" \ |
2185 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2186 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2187 | as_fn_error $? "failed to load site script $ac_site_file | |
2188 | See \`config.log' for more details" "$LINENO" 5; } | |
71ab34df | 2189 | fi |
2190 | done | |
2191 | ||
2192 | if test -r "$cache_file"; then | |
f00f02a3 | 2193 | # Some versions of bash will fail to source /dev/null (special files |
2194 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2195 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
cd9a469c | 2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2197 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b30fcfae | 2198 | case $cache_file in |
cd9a469c | 2199 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2200 | *) . "./$cache_file";; | |
b30fcfae | 2201 | esac |
2202 | fi | |
71ab34df | 2203 | else |
cd9a469c | 2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2205 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b30fcfae | 2206 | >$cache_file |
2207 | fi | |
2208 | ||
2209 | # Check that the precious variables saved in the cache have kept the same | |
2210 | # value. | |
2211 | ac_cache_corrupted=false | |
cd9a469c | 2212 | for ac_var in $ac_precious_vars; do |
b30fcfae | 2213 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2214 | eval ac_new_set=\$ac_env_${ac_var}_set | |
cd9a469c | 2215 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2216 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b30fcfae | 2217 | case $ac_old_set,$ac_new_set in |
2218 | set,) | |
cd9a469c | 2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2220 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b30fcfae | 2221 | ac_cache_corrupted=: ;; |
2222 | ,set) | |
cd9a469c | 2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2224 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b30fcfae | 2225 | ac_cache_corrupted=: ;; |
2226 | ,);; | |
2227 | *) | |
2228 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
cd9a469c | 2229 | # differences in whitespace do not lead to failure. |
2230 | ac_old_val_w=`echo x $ac_old_val` | |
2231 | ac_new_val_w=`echo x $ac_new_val` | |
2232 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2234 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2235 | ac_cache_corrupted=: | |
2236 | else | |
2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2238 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2239 | eval $ac_var=\$ac_old_val | |
2240 | fi | |
2241 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2242 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2244 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b30fcfae | 2245 | fi;; |
2246 | esac | |
2247 | # Pass precious variables to config.status. | |
2248 | if test "$ac_new_set" = set; then | |
2249 | case $ac_new_val in | |
cd9a469c | 2250 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b30fcfae | 2251 | *) ac_arg=$ac_var=$ac_new_val ;; |
2252 | esac | |
2253 | case " $ac_configure_args " in | |
2254 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
cd9a469c | 2255 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b30fcfae | 2256 | esac |
2257 | fi | |
2258 | done | |
2259 | if $ac_cache_corrupted; then | |
cd9a469c | 2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2263 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
f00f02a3 | 2264 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
71ab34df | 2265 | fi |
cd9a469c | 2266 | ## -------------------- ## |
2267 | ## Main body of script. ## | |
2268 | ## -------------------- ## | |
71ab34df | 2269 | |
5084f823 | 2270 | ac_ext=c |
2271 | ac_cpp='$CPP $CPPFLAGS' | |
2272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2275 | ||
b30fcfae | 2276 | |
2277 | ||
2278 | ||
b30fcfae | 2279 | |
2280 | ||
cd2f3773 | 2281 | |
b30fcfae | 2282 | |
4e8a889d | 2283 | progname=$0 |
2284 | # if PWD already has a value, it is probably wrong. | |
2285 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2286 | ||
2287 | # Export original configure arguments for use by sub-configures. | |
2288 | # Quote arguments with shell meta charatcers. | |
2289 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2290 | set -- "$progname" "$@" | |
2291 | for ac_arg | |
2292 | do | |
2293 | case "$ac_arg" in | |
2294 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2295 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2296 | # if the argument is of the form -foo=baz, quote the baz part only | |
2297 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2298 | *) ;; | |
2299 | esac | |
2300 | # Add the quoted argument to the list. | |
2301 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2302 | done | |
2303 | if test "$silent" = yes; then | |
2304 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2305 | fi | |
2306 | # Remove the initial space we just introduced and, as these will be | |
2307 | # expanded by make, quote '$'. | |
2308 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2309 | ||
b30fcfae | 2310 | |
2311 | # Find the build, host, and target systems. | |
71ab34df | 2312 | ac_aux_dir= |
cd9a469c | 2313 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
f00f02a3 | 2314 | if test -f "$ac_dir/install-sh"; then |
2315 | ac_aux_dir=$ac_dir | |
2316 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2317 | break | |
2318 | elif test -f "$ac_dir/install.sh"; then | |
2319 | ac_aux_dir=$ac_dir | |
2320 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2321 | break | |
2322 | elif test -f "$ac_dir/shtool"; then | |
2323 | ac_aux_dir=$ac_dir | |
2324 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2325 | break | |
2326 | fi | |
71ab34df | 2327 | done |
2328 | if test -z "$ac_aux_dir"; then | |
f00f02a3 | 2329 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
71ab34df | 2330 | fi |
cd9a469c | 2331 | |
2332 | # These three variables are undocumented and unsupported, | |
2333 | # and are intended to be withdrawn in a future Autoconf release. | |
2334 | # They can cause serious problems if a builder's source tree is in a directory | |
2335 | # whose full name contains unusual characters. | |
2336 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2337 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2338 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2339 | ||
71ab34df | 2340 | |
b30fcfae | 2341 | # Make sure we can run config.sub. |
cd9a469c | 2342 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
f00f02a3 | 2343 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
cd9a469c | 2344 | |
2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2346 | $as_echo_n "checking build system type... " >&6; } | |
f00f02a3 | 2347 | if ${ac_cv_build+:} false; then : |
cd9a469c | 2348 | $as_echo_n "(cached) " >&6 |
2349 | else | |
2350 | ac_build_alias=$build_alias | |
2351 | test "x$ac_build_alias" = x && | |
2352 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2353 | test "x$ac_build_alias" = x && | |
f00f02a3 | 2354 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
cd9a469c | 2355 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
f00f02a3 | 2356 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
cd9a469c | 2357 | |
2358 | fi | |
2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2360 | $as_echo "$ac_cv_build" >&6; } | |
2361 | case $ac_cv_build in | |
2362 | *-*-*) ;; | |
f00f02a3 | 2363 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
cd9a469c | 2364 | esac |
b30fcfae | 2365 | build=$ac_cv_build |
cd9a469c | 2366 | ac_save_IFS=$IFS; IFS='-' |
2367 | set x $ac_cv_build | |
2368 | shift | |
2369 | build_cpu=$1 | |
2370 | build_vendor=$2 | |
2371 | shift; shift | |
2372 | # Remember, the first character of IFS is used to create $*, | |
2373 | # except with old shells: | |
2374 | build_os=$* | |
2375 | IFS=$ac_save_IFS | |
2376 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
71ab34df | 2377 | |
71ab34df | 2378 | |
b30fcfae | 2379 | case ${build_alias} in |
2380 | "") build_noncanonical=${build} ;; | |
2381 | *) build_noncanonical=${build_alias} ;; | |
ae48753c | 2382 | esac |
2383 | ||
2384 | ||
ae48753c | 2385 | |
b30fcfae | 2386 | case ${host_alias} in |
2387 | "") host_noncanonical=${build_noncanonical} ;; | |
2388 | *) host_noncanonical=${host_alias} ;; | |
ae48753c | 2389 | esac |
2390 | ||
ae48753c | 2391 | |
b30fcfae | 2392 | |
2393 | case ${target_alias} in | |
2394 | "") target_noncanonical=${host_noncanonical} ;; | |
2395 | *) target_noncanonical=${target_alias} ;; | |
ae48753c | 2396 | esac |
2397 | ||
ae48753c | 2398 | |
b30fcfae | 2399 | |
2400 | ||
2401 | test "$host_noncanonical" = "$target_noncanonical" && | |
71ab34df | 2402 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2403 | NONENONEs,x,x, && | |
b30fcfae | 2404 | program_transform_name=s,y,y, |
ae48753c | 2405 | |
cd9a469c | 2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2407 | $as_echo_n "checking host system type... " >&6; } | |
f00f02a3 | 2408 | if ${ac_cv_host+:} false; then : |
cd9a469c | 2409 | $as_echo_n "(cached) " >&6 |
ae48753c | 2410 | else |
cd9a469c | 2411 | if test "x$host_alias" = x; then |
2412 | ac_cv_host=$ac_cv_build | |
2413 | else | |
2414 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
f00f02a3 | 2415 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
cd9a469c | 2416 | fi |
b30fcfae | 2417 | |
ae48753c | 2418 | fi |
cd9a469c | 2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2420 | $as_echo "$ac_cv_host" >&6; } | |
2421 | case $ac_cv_host in | |
2422 | *-*-*) ;; | |
f00f02a3 | 2423 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
cd9a469c | 2424 | esac |
b30fcfae | 2425 | host=$ac_cv_host |
cd9a469c | 2426 | ac_save_IFS=$IFS; IFS='-' |
2427 | set x $ac_cv_host | |
2428 | shift | |
2429 | host_cpu=$1 | |
2430 | host_vendor=$2 | |
2431 | shift; shift | |
2432 | # Remember, the first character of IFS is used to create $*, | |
2433 | # except with old shells: | |
2434 | host_os=$* | |
2435 | IFS=$ac_save_IFS | |
2436 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5084f823 | 2437 | |
2438 | ||
cd9a469c | 2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2440 | $as_echo_n "checking target system type... " >&6; } | |
f00f02a3 | 2441 | if ${ac_cv_target+:} false; then : |
cd9a469c | 2442 | $as_echo_n "(cached) " >&6 |
b30fcfae | 2443 | else |
cd9a469c | 2444 | if test "x$target_alias" = x; then |
2445 | ac_cv_target=$ac_cv_host | |
2446 | else | |
2447 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
f00f02a3 | 2448 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
cd9a469c | 2449 | fi |
b30fcfae | 2450 | |
2451 | fi | |
cd9a469c | 2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2453 | $as_echo "$ac_cv_target" >&6; } | |
2454 | case $ac_cv_target in | |
2455 | *-*-*) ;; | |
f00f02a3 | 2456 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
cd9a469c | 2457 | esac |
b30fcfae | 2458 | target=$ac_cv_target |
cd9a469c | 2459 | ac_save_IFS=$IFS; IFS='-' |
2460 | set x $ac_cv_target | |
2461 | shift | |
2462 | target_cpu=$1 | |
2463 | target_vendor=$2 | |
2464 | shift; shift | |
2465 | # Remember, the first character of IFS is used to create $*, | |
2466 | # except with old shells: | |
2467 | target_os=$* | |
2468 | IFS=$ac_save_IFS | |
2469 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b30fcfae | 2470 | |
2471 | ||
2472 | # The aliases save the names the user supplied, while $host etc. | |
2473 | # will get canonicalized. | |
2474 | test -n "$target_alias" && | |
2475 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2476 | NONENONEs,x,x, && | |
2477 | program_prefix=${target_alias}- | |
cd9a469c | 2478 | |
71ab34df | 2479 | test "$program_prefix" != NONE && |
cd9a469c | 2480 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
71ab34df | 2481 | # Use a double $ so make ignores it. |
2482 | test "$program_suffix" != NONE && | |
cd9a469c | 2483 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2484 | # Double any \ or $. | |
b30fcfae | 2485 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 2486 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2487 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
ae48753c | 2488 | |
71ab34df | 2489 | |
2490 | ||
450e6c84 | 2491 | # Get 'install' or 'install-sh' and its variants. |
2492 | # Find a good install program. We prefer a C program (faster), | |
2493 | # so one script is as good as another. But avoid the broken or | |
2494 | # incompatible versions: | |
2495 | # SysV /etc/install, /usr/sbin/install | |
2496 | # SunOS /usr/etc/install | |
2497 | # IRIX /sbin/install | |
2498 | # AIX /bin/install | |
b30fcfae | 2499 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
450e6c84 | 2500 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2501 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2502 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b30fcfae | 2503 | # OS/2's system install, which has a completely different semantic |
450e6c84 | 2504 | # ./install, which can be erroneously created by make from ./install.sh. |
82eaf560 | 2505 | # Reject install programs that cannot install multiple files. |
cd9a469c | 2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2507 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
450e6c84 | 2508 | if test -z "$INSTALL"; then |
f00f02a3 | 2509 | if ${ac_cv_path_install+:} false; then : |
cd9a469c | 2510 | $as_echo_n "(cached) " >&6 |
b30fcfae | 2511 | else |
2512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2513 | for as_dir in $PATH | |
2514 | do | |
2515 | IFS=$as_save_IFS | |
2516 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2517 | # Account for people who put trailing slashes in PATH elements. |
2518 | case $as_dir/ in #(( | |
2519 | ./ | .// | /[cC]/* | \ | |
b30fcfae | 2520 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 2521 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b30fcfae | 2522 | /usr/ucb/* ) ;; |
2523 | *) | |
2524 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2525 | # Don't use installbsd from OSF since it installs stuff as root | |
2526 | # by default. | |
2527 | for ac_prog in ginstall scoinst install; do | |
2528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 2529 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
450e6c84 | 2530 | if test $ac_prog = install && |
b30fcfae | 2531 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
450e6c84 | 2532 | # AIX install. It has an incompatible calling convention. |
2533 | : | |
b30fcfae | 2534 | elif test $ac_prog = install && |
2535 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2536 | # program-specific install script used by HP pwplus--don't use. | |
2537 | : | |
450e6c84 | 2538 | else |
82eaf560 | 2539 | rm -rf conftest.one conftest.two conftest.dir |
2540 | echo one > conftest.one | |
2541 | echo two > conftest.two | |
2542 | mkdir conftest.dir | |
2543 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2544 | test -s conftest.one && test -s conftest.two && | |
2545 | test -s conftest.dir/conftest.one && | |
2546 | test -s conftest.dir/conftest.two | |
2547 | then | |
2548 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2549 | break 3 | |
2550 | fi | |
450e6c84 | 2551 | fi |
2552 | fi | |
2553 | done | |
b30fcfae | 2554 | done |
2555 | ;; | |
2556 | esac | |
cd9a469c | 2557 | |
2558 | done | |
2559 | IFS=$as_save_IFS | |
b30fcfae | 2560 | |
82eaf560 | 2561 | rm -rf conftest.one conftest.two conftest.dir |
450e6c84 | 2562 | |
2563 | fi | |
2564 | if test "${ac_cv_path_install+set}" = set; then | |
b30fcfae | 2565 | INSTALL=$ac_cv_path_install |
450e6c84 | 2566 | else |
82eaf560 | 2567 | # As a last resort, use the slow shell script. Don't cache a |
2568 | # value for INSTALL within a source directory, because that will | |
450e6c84 | 2569 | # break other packages using the cache if that directory is |
82eaf560 | 2570 | # removed, or if the value is a relative name. |
b30fcfae | 2571 | INSTALL=$ac_install_sh |
450e6c84 | 2572 | fi |
2573 | fi | |
cd9a469c | 2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2575 | $as_echo "$INSTALL" >&6; } | |
450e6c84 | 2576 | |
2577 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2578 | # It thinks the first close brace ends the variable substitution. | |
2579 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2580 | ||
b30fcfae | 2581 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
450e6c84 | 2582 | |
2583 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2584 | ||
cd9a469c | 2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2586 | $as_echo_n "checking whether ln works... " >&6; } | |
f00f02a3 | 2587 | if ${acx_cv_prog_LN+:} false; then : |
cd9a469c | 2588 | $as_echo_n "(cached) " >&6 |
599a3eac | 2589 | else |
2590 | rm -f conftestdata_t | |
2591 | echo >conftestdata_f | |
2592 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2593 | then | |
2594 | acx_cv_prog_LN=ln | |
2595 | else | |
2596 | acx_cv_prog_LN=no | |
2597 | fi | |
2598 | rm -f conftestdata_f conftestdata_t | |
2599 | ||
2600 | fi | |
2601 | if test $acx_cv_prog_LN = no; then | |
2602 | LN="cp" | |
cd9a469c | 2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2604 | $as_echo "no, using $LN" >&6; } | |
599a3eac | 2605 | else |
2606 | LN="$acx_cv_prog_LN" | |
cd9a469c | 2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2608 | $as_echo "yes" >&6; } | |
599a3eac | 2609 | fi |
2610 | ||
cd9a469c | 2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2612 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b30fcfae | 2613 | LN_S=$as_ln_s |
2614 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2616 | $as_echo "yes" >&6; } | |
a4af6a58 | 2617 | else |
cd9a469c | 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2619 | $as_echo "no, using $LN_S" >&6; } | |
5965d276 | 2620 | fi |
2621 | ||
b181f265 | 2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2623 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
f00f02a3 | 2624 | if ${ac_cv_path_SED+:} false; then : |
b181f265 | 2625 | $as_echo_n "(cached) " >&6 |
2626 | else | |
2627 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2628 | for ac_i in 1 2 3 4 5 6 7; do | |
2629 | ac_script="$ac_script$as_nl$ac_script" | |
2630 | done | |
2631 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2632 | { ac_script=; unset ac_script;} | |
2633 | if test -z "$SED"; then | |
2634 | ac_path_SED_found=false | |
2635 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2637 | for as_dir in $PATH | |
2638 | do | |
2639 | IFS=$as_save_IFS | |
2640 | test -z "$as_dir" && as_dir=. | |
2641 | for ac_prog in sed gsed; do | |
2642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2643 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
f00f02a3 | 2644 | as_fn_executable_p "$ac_path_SED" || continue |
b181f265 | 2645 | # Check for GNU ac_path_SED and select it if it is found. |
2646 | # Check for GNU $ac_path_SED | |
2647 | case `"$ac_path_SED" --version 2>&1` in | |
2648 | *GNU*) | |
2649 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2650 | *) | |
2651 | ac_count=0 | |
2652 | $as_echo_n 0123456789 >"conftest.in" | |
2653 | while : | |
2654 | do | |
2655 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2656 | mv "conftest.tmp" "conftest.in" | |
2657 | cp "conftest.in" "conftest.nl" | |
2658 | $as_echo '' >> "conftest.nl" | |
2659 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2660 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2661 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2662 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2663 | # Best one so far, save it but keep looking for a better one | |
2664 | ac_cv_path_SED="$ac_path_SED" | |
2665 | ac_path_SED_max=$ac_count | |
2666 | fi | |
2667 | # 10*(2^10) chars as input seems more than enough | |
2668 | test $ac_count -gt 10 && break | |
2669 | done | |
2670 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2671 | esac | |
2672 | ||
2673 | $ac_path_SED_found && break 3 | |
2674 | done | |
2675 | done | |
2676 | done | |
2677 | IFS=$as_save_IFS | |
2678 | if test -z "$ac_cv_path_SED"; then | |
f00f02a3 | 2679 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
b181f265 | 2680 | fi |
2681 | else | |
2682 | ac_cv_path_SED=$SED | |
2683 | fi | |
2684 | ||
2685 | fi | |
2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2687 | $as_echo "$ac_cv_path_SED" >&6; } | |
2688 | SED="$ac_cv_path_SED" | |
2689 | rm -f conftest.sed | |
2690 | ||
2691 | for ac_prog in gawk mawk nawk awk | |
2692 | do | |
2693 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2694 | set dummy $ac_prog; ac_word=$2 | |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2696 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 2697 | if ${ac_cv_prog_AWK+:} false; then : |
b181f265 | 2698 | $as_echo_n "(cached) " >&6 |
2699 | else | |
2700 | if test -n "$AWK"; then | |
2701 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2702 | else | |
2703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2704 | for as_dir in $PATH | |
2705 | do | |
2706 | IFS=$as_save_IFS | |
2707 | test -z "$as_dir" && as_dir=. | |
2708 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 2709 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b181f265 | 2710 | ac_cv_prog_AWK="$ac_prog" |
2711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2712 | break 2 | |
2713 | fi | |
2714 | done | |
2715 | done | |
2716 | IFS=$as_save_IFS | |
2717 | ||
2718 | fi | |
2719 | fi | |
2720 | AWK=$ac_cv_prog_AWK | |
2721 | if test -n "$AWK"; then | |
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2723 | $as_echo "$AWK" >&6; } | |
2724 | else | |
2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2726 | $as_echo "no" >&6; } | |
2727 | fi | |
2728 | ||
2729 | ||
2730 | test -n "$AWK" && break | |
2731 | done | |
2732 | ||
450e6c84 | 2733 | |
e8eddfdd | 2734 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2735 | ||
2736 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2737 | # a relative path. | |
2738 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2739 | INSTALL="${srcpwd}/install-sh -c" | |
2740 | fi | |
2741 | ||
71ab34df | 2742 | # Set srcdir to "." if that's what it is. |
2743 | # This is important for multilib support. | |
2744 | pwd=`${PWDCMD-pwd}` | |
71ab34df | 2745 | if test "${pwd}" = "${srcpwd}" ; then |
2746 | srcdir=. | |
a8298541 | 2747 | fi |
2748 | ||
71ab34df | 2749 | topsrcdir=$srcpwd |
ed37269d | 2750 | |
71ab34df | 2751 | extra_host_args= |
14ac9144 | 2752 | |
71ab34df | 2753 | ### To add a new directory to the tree, first choose whether it is a target |
2754 | ### or a host dependent tool. Then put it into the appropriate list | |
2755 | ### (library or tools, host or target), doing a dependency sort. | |
a8298541 | 2756 | |
b30fcfae | 2757 | # Subdirs will be configured in the order listed in build_configdirs, |
71ab34df | 2758 | # configdirs, or target_configdirs; see the serialization section below. |
a8298541 | 2759 | |
b30fcfae | 2760 | # Dependency sorting is only needed when *configuration* must be done in |
2761 | # a particular order. In all cases a dependency should be specified in | |
71ab34df | 2762 | # the Makefile, whether or not it's implicitly specified here. |
a8298541 | 2763 | |
71ab34df | 2764 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2765 | # cause circular dependencies and break everything horribly. | |
a8298541 | 2766 | |
2f8725b0 | 2767 | # these library is used by various programs built for the build |
2768 | # environment | |
2769 | # | |
9245d2c5 | 2770 | build_libs="build-libiberty build-libcpp" |
2f8725b0 | 2771 | |
2772 | # these tools are built for the build environment | |
4fc99708 | 2773 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
2f8725b0 | 2774 | |
71ab34df | 2775 | # these libraries are used by various programs built for the host environment |
429cca51 | 2776 | #f |
572cf1f7 | 2777 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" |
71ab34df | 2778 | |
71ab34df | 2779 | # these tools are built for the host environment |
2780 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2781 | # know that we are building the simulator. | |
2782 | # binutils, gas and ld appear in that order because it makes sense to run | |
2783 | # "make check" in that particular order. | |
af7c5662 | 2784 | # If --enable-gold is used, "gold" may replace "ld". |
dcfe52b6 | 2785 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
71ab34df | 2786 | |
71ab34df | 2787 | # these libraries are built for the target environment, and are built after |
2788 | # the host libraries and the host tools (which may be a cross compiler) | |
5ab7e123 | 2789 | # Note that libiberty is not a target library. |
27bfe7b7 | 2790 | target_libraries="target-libgcc \ |
ecd3459e | 2791 | target-libbacktrace \ |
71ab34df | 2792 | target-libgloss \ |
2793 | target-newlib \ | |
a0191bfe | 2794 | target-libgomp \ |
d3a7dd32 | 2795 | target-liboffloadmic \ |
55a56509 | 2796 | target-libhsail-rt \ |
6db1d2ca | 2797 | target-libatomic \ |
4c0315d0 | 2798 | target-libitm \ |
54d7d5f2 | 2799 | target-libstdc++-v3 \ |
549e2197 | 2800 | target-libsanitizer \ |
b710ec85 | 2801 | target-libvtv \ |
0d55f4d0 | 2802 | target-libssp \ |
87969c8c | 2803 | target-libquadmath \ |
4ee9c684 | 2804 | target-libgfortran \ |
38cf534f | 2805 | target-libffi \ |
93341878 | 2806 | target-libobjc \ |
5ff5b630 | 2807 | target-libada \ |
03385ed3 | 2808 | target-libgo \ |
2809 | target-libphobos" | |
71ab34df | 2810 | |
328637e8 | 2811 | # these tools are built using the target libraries, and are intended to |
2812 | # run only in the target environment | |
71ab34df | 2813 | # |
328637e8 | 2814 | # note: any program that *uses* libraries that are in the "target_libraries" |
6c9785b4 | 2815 | # list belongs in this list. |
71ab34df | 2816 | # |
4fc99708 | 2817 | target_tools="target-rda" |
a8298541 | 2818 | |
71ab34df | 2819 | ################################################################################ |
a8298541 | 2820 | |
71ab34df | 2821 | ## All tools belong in one of the four categories, and are assigned above |
2822 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2823 | ## is important because configure will choke if they ever get through. | |
2824 | ## ${configdirs} is directories we build using the host tools. | |
2825 | ## ${target_configdirs} is directories we build using the target tools. | |
71ab34df | 2826 | configdirs=`echo ${host_libs} ${host_tools}` |
328637e8 | 2827 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
2b59cb05 | 2828 | build_configdirs=`echo ${build_libs} ${build_tools}` |
6f4f34a7 | 2829 | |
d2d2630b | 2830 | |
2831 | ||
71ab34df | 2832 | ################################################################################ |
a8298541 | 2833 | |
71ab34df | 2834 | srcname="gnu development package" |
a8298541 | 2835 | |
71ab34df | 2836 | # This gets set non-empty for some net releases of packages. |
2837 | appdirs="" | |
a8298541 | 2838 | |
71ab34df | 2839 | # Define is_cross_compiler to save on calls to 'test'. |
2840 | is_cross_compiler= | |
2841 | if test x"${host}" = x"${target}" ; then | |
2842 | is_cross_compiler=no | |
a8298541 | 2843 | else |
71ab34df | 2844 | is_cross_compiler=yes |
b30fcfae | 2845 | fi |
a8298541 | 2846 | |
2f61b8ca | 2847 | # Find the build and target subdir names. |
6f4f34a7 | 2848 | |
d3e7b04c | 2849 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2850 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2851 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2852 | # However, they still use the build modules, because the corresponding | |
2853 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2854 | # finishes. So: | |
2855 | # - build_subdir is where we find build modules, and never changes. | |
2856 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2857 | ||
2858 | # Prefix 'build-' so this never conflicts with target_subdir. | |
6f4f34a7 | 2859 | build_subdir="build-${build_noncanonical}" |
b30fcfae | 2860 | |
cd9a469c | 2861 | # Check whether --with-build-libsubdir was given. |
2862 | if test "${with_build_libsubdir+set}" = set; then : | |
2863 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
d3e7b04c | 2864 | else |
2865 | build_libsubdir="$build_subdir" | |
cd9a469c | 2866 | fi |
2867 | ||
c1eb9e31 | 2868 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2869 | if ( test $srcdir = . && test -d gcc ) \ | |
2870 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2871 | host_subdir="host-${host_noncanonical}" | |
2872 | else | |
2873 | host_subdir=. | |
2874 | fi | |
6f4f34a7 | 2875 | # No prefix. |
2876 | target_subdir=${target_noncanonical} | |
b30fcfae | 2877 | |
04a2e841 | 2878 | # Be sure to cover against remnants of an in-tree build. |
2879 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
f00f02a3 | 2880 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
04a2e841 | 2881 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2882 | fi | |
a8298541 | 2883 | |
71ab34df | 2884 | # Skipdirs are removed silently. |
2885 | skipdirs= | |
2886 | # Noconfigdirs are removed loudly. | |
2887 | noconfigdirs="" | |
a8298541 | 2888 | |
71ab34df | 2889 | use_gnu_ld= |
2890 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2891 | if test x$with_gnu_ld = xno ; then | |
2892 | use_gnu_ld=no | |
3d47fcf5 | 2893 | noconfigdirs="$noconfigdirs ld gold" |
a8298541 | 2894 | fi |
2895 | ||
71ab34df | 2896 | use_gnu_as= |
2897 | # Make sure we don't let GNU as be added if we didn't want it. | |
2898 | if test x$with_gnu_as = xno ; then | |
2899 | use_gnu_as=no | |
2900 | noconfigdirs="$noconfigdirs gas" | |
a8298541 | 2901 | fi |
2902 | ||
7bfefa9d | 2903 | use_included_zlib= |
6406d366 | 2904 | |
2905 | # Check whether --with-system-zlib was given. | |
2906 | if test "${with_system_zlib+set}" = set; then : | |
2907 | withval=$with_system_zlib; | |
2908 | fi | |
2909 | ||
7bfefa9d | 2910 | # Make sure we don't let ZLIB be added if we didn't want it. |
2911 | if test x$with_system_zlib = xyes ; then | |
2912 | use_included_zlib=no | |
2913 | noconfigdirs="$noconfigdirs zlib" | |
2914 | fi | |
2915 | ||
b30fcfae | 2916 | # some tools are so dependent upon X11 that if we're not building with X, |
71ab34df | 2917 | # it's not even worth trying to configure, much less build, that tool. |
a8298541 | 2918 | |
71ab34df | 2919 | case ${with_x} in |
2920 | yes | "") ;; # the default value for this tree is that X11 is available | |
2921 | no) | |
f843f075 | 2922 | skipdirs="${skipdirs} tk itcl libgui" |
71ab34df | 2923 | # We won't be able to build gdbtk without X. |
b30fcfae | 2924 | enable_gdbtk=no |
71ab34df | 2925 | ;; |
2926 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2927 | esac | |
a8298541 | 2928 | |
6c9785b4 | 2929 | # Some are only suitable for cross toolchains. |
71ab34df | 2930 | # Remove these if host=target. |
2931 | cross_only="target-libgloss target-newlib target-opcodes" | |
2932 | ||
2933 | case $is_cross_compiler in | |
2934 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
71ab34df | 2935 | esac |
a8298541 | 2936 | |
71ab34df | 2937 | # If both --with-headers and --with-libs are specified, default to |
2938 | # --without-newlib. | |
e8eddfdd | 2939 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2940 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
71ab34df | 2941 | if test x"${with_newlib}" = x ; then |
2942 | with_newlib=no | |
2943 | fi | |
a8298541 | 2944 | fi |
2945 | ||
71ab34df | 2946 | # Recognize --with-newlib/--without-newlib. |
2947 | case ${with_newlib} in | |
2948 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2949 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2950 | esac | |
a8298541 | 2951 | |
a3d93be3 | 2952 | # Check whether --enable-as-accelerator-for was given. |
2953 | if test "${enable_as_accelerator_for+set}" = set; then : | |
67cedda8 | 2954 | enableval=$enable_as_accelerator_for; |
a3d93be3 | 2955 | fi |
2956 | ||
2957 | ||
2958 | # Check whether --enable-offload-targets was given. | |
2959 | if test "${enable_offload_targets+set}" = set; then : | |
2960 | enableval=$enable_offload_targets; | |
2961 | if test x"$enable_offload_targets" = x; then | |
f00f02a3 | 2962 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
a3d93be3 | 2963 | fi |
2964 | ||
2965 | else | |
2966 | enable_offload_targets= | |
2967 | fi | |
2968 | ||
2969 | ||
1e369e5f | 2970 | # Handle --enable-gold, --enable-ld. |
2971 | # --disable-gold [--enable-ld] | |
2972 | # Build only ld. Default option. | |
85516948 | 2973 | # --enable-gold [--enable-ld] |
2974 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2975 | # as "ld.bfd" and "ld". | |
2976 | # --enable-gold=default [--enable-ld] | |
1e369e5f | 2977 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2978 | # install ld as "ld.bfd". | |
2979 | # --enable-gold[=default] --disable-ld | |
2980 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2981 | # --enable-gold --enable-ld=default | |
85516948 | 2982 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2983 | # and ld.bfd). | |
1e369e5f | 2984 | # In other words, ld is default |
2985 | # --enable-gold=default --enable-ld=default | |
2986 | # Error. | |
2987 | ||
2988 | default_ld= | |
cd9a469c | 2989 | # Check whether --enable-gold was given. |
2990 | if test "${enable_gold+set}" = set; then : | |
2991 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
3d47fcf5 | 2992 | else |
2993 | ENABLE_GOLD=no | |
cd9a469c | 2994 | fi |
2995 | ||
1e369e5f | 2996 | case "${ENABLE_GOLD}" in |
2997 | yes|default) | |
af7c5662 | 2998 | # Check for ELF target. |
2999 | is_elf=no | |
3000 | case "${target}" in | |
3001 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
e4c33dd2 | 3002 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
e3a1fe08 | 3003 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
9d36d513 | 3004 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
af7c5662 | 3005 | case "${target}" in |
3006 | *-*-linux*aout* | *-*-linux*oldld*) | |
3007 | ;; | |
3008 | *) | |
3009 | is_elf=yes | |
3010 | ;; | |
3011 | esac | |
3012 | esac | |
3013 | ||
3014 | if test "$is_elf" = "yes"; then | |
3015 | # Check for target supported by gold. | |
3d47fcf5 | 3016 | case "${target}" in |
58f62c51 | 3017 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ca7ff757 | 3018 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
1e369e5f | 3019 | configdirs="$configdirs gold" |
3020 | if test x${ENABLE_GOLD} = xdefault; then | |
3021 | default_ld=gold | |
3022 | fi | |
af7c5662 | 3023 | ENABLE_GOLD=yes |
3d47fcf5 | 3024 | ;; |
3025 | esac | |
af7c5662 | 3026 | fi |
3027 | ;; | |
3028 | no) | |
3029 | ;; | |
3030 | *) | |
f00f02a3 | 3031 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
af7c5662 | 3032 | ;; |
1e369e5f | 3033 | esac |
3034 | ||
3035 | # Check whether --enable-ld was given. | |
3036 | if test "${enable_ld+set}" = set; then : | |
3037 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3038 | else | |
3039 | ENABLE_LD=yes | |
3040 | fi | |
3041 | ||
3042 | ||
3043 | case "${ENABLE_LD}" in | |
3044 | default) | |
85516948 | 3045 | if test x${default_ld} != x; then |
f00f02a3 | 3046 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
1e369e5f | 3047 | fi |
3048 | ;; | |
3049 | yes) | |
3050 | ;; | |
3051 | no) | |
3052 | if test x${ENABLE_GOLD} != xyes; then | |
3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3054 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3055 | fi | |
3056 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3057 | ;; | |
3058 | *) | |
f00f02a3 | 3059 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
1e369e5f | 3060 | ;; |
3061 | esac | |
3d47fcf5 | 3062 | |
afb6adb9 | 3063 | # PR gas/19109 |
3064 | # Decide the default method for compressing debug sections. | |
3065 | # Provide a configure time option to override our default. | |
3066 | # Check whether --enable-compressed_debug_sections was given. | |
3067 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3068 | enableval=$enable_compressed_debug_sections; | |
3069 | if test x"$enable_compressed_debug_sections" = xyes; then | |
f00f02a3 | 3070 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
afb6adb9 | 3071 | fi |
3072 | ||
3073 | else | |
3074 | enable_compressed_debug_sections= | |
3075 | fi | |
3076 | ||
3077 | ||
71ab34df | 3078 | # Configure extra directories which are host specific |
a8298541 | 3079 | |
71ab34df | 3080 | case "${host}" in |
3081 | *-cygwin*) | |
3082 | configdirs="$configdirs libtermcap" ;; | |
3083 | esac | |
a8298541 | 3084 | |
ff7dcf6a | 3085 | # A target can indicate whether a language isn't supported for some reason. |
3086 | # Only spaces may be used in this macro; not newlines or tabs. | |
3087 | unsupported_languages= | |
3088 | ||
b30fcfae | 3089 | # Remove more programs from consideration, based on the host or |
71ab34df | 3090 | # target this usually means that a port of the program doesn't |
3091 | # exist yet. | |
c7879c37 | 3092 | |
71ab34df | 3093 | case "${host}" in |
b2240ff6 | 3094 | i[3456789]86-*-msdosdjgpp*) |
e3a5e6ff | 3095 | noconfigdirs="$noconfigdirs tcl tk itcl" |
71ab34df | 3096 | ;; |
71ab34df | 3097 | esac |
c7879c37 | 3098 | |
4ee9c684 | 3099 | |
d9d975ae | 3100 | # Check whether --enable-libquadmath was given. |
3101 | if test "${enable_libquadmath+set}" = set; then : | |
3102 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3103 | else | |
3104 | ENABLE_LIBQUADMATH=yes | |
3105 | fi | |
3106 | ||
3107 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3108 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3109 | fi | |
3110 | ||
3111 | ||
3112 | # Check whether --enable-libquadmath-support was given. | |
3113 | if test "${enable_libquadmath_support+set}" = set; then : | |
3114 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3115 | else | |
3116 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3117 | fi | |
3118 | ||
3119 | enable_libquadmath_support= | |
3120 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3121 | enable_libquadmath_support=no | |
3122 | fi | |
3123 | ||
3124 | ||
cd9a469c | 3125 | # Check whether --enable-libada was given. |
3126 | if test "${enable_libada+set}" = set; then : | |
3127 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
93341878 | 3128 | else |
3129 | ENABLE_LIBADA=yes | |
cd9a469c | 3130 | fi |
3131 | ||
93341878 | 3132 | if test "${ENABLE_LIBADA}" != "yes" ; then |
a136b23d | 3133 | noconfigdirs="$noconfigdirs gnattools" |
93341878 | 3134 | fi |
3135 | ||
cd9a469c | 3136 | # Check whether --enable-libssp was given. |
3137 | if test "${enable_libssp+set}" = set; then : | |
3138 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
07da5214 | 3139 | else |
3140 | ENABLE_LIBSSP=yes | |
cd9a469c | 3141 | fi |
3142 | ||
07da5214 | 3143 | |
a3ba808f | 3144 | # Check whether --enable-libstdcxx was given. |
3145 | if test "${enable_libstdcxx+set}" = set; then : | |
3146 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3147 | else | |
3148 | ENABLE_LIBSTDCXX=default | |
3149 | fi | |
3150 | ||
3151 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
df148e44 | 3152 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
a3ba808f | 3153 | fi |
3154 | ||
d3a7dd32 | 3155 | # If this is accelerator compiler and its target is intelmic we enable |
3156 | # target liboffloadmic by default. If this is compiler with offloading | |
3157 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3158 | # liboffloadmic is disabled by default. | |
3159 | # Check whether --enable-liboffloadmic was given. | |
3160 | if test "${enable_liboffloadmic+set}" = set; then : | |
3161 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3162 | no | host | target) | |
3163 | enable_liboffloadmic=$enableval ;; | |
3164 | *) | |
f00f02a3 | 3165 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
d3a7dd32 | 3166 | esac |
3167 | else | |
67cedda8 | 3168 | if test x"$enable_as_accelerator_for" != x; then |
d3a7dd32 | 3169 | case "${target}" in |
3170 | *-intelmic-* | *-intelmicemul-*) | |
3171 | enable_liboffloadmic=target | |
3172 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3173 | ;; | |
3174 | *) | |
3175 | enable_liboffloadmic=no | |
3176 | ;; | |
3177 | esac | |
3178 | else | |
3179 | case "${enable_offload_targets}" in | |
3180 | *-intelmic-* | *-intelmicemul-*) | |
3181 | enable_liboffloadmic=host | |
3182 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3183 | ;; | |
3184 | *) | |
3185 | enable_liboffloadmic=no | |
3186 | ;; | |
3187 | esac | |
3188 | fi | |
3189 | fi | |
3190 | ||
3191 | ||
3192 | ||
fdcd05c8 | 3193 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
50996fe5 | 3194 | if test x$enable_libgomp = x ; then |
1e8e9920 | 3195 | case "${target}" in |
3bef4012 | 3196 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
1e8e9920 | 3197 | ;; |
e3a1fe08 | 3198 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
1e8e9920 | 3199 | ;; |
5641963c | 3200 | *-*-solaris2* | *-*-hpux11*) |
1e8e9920 | 3201 | ;; |
634efbee | 3202 | *-*-darwin* | *-*-aix*) |
1e8e9920 | 3203 | ;; |
fdcd05c8 | 3204 | nvptx*-*-*) |
3205 | ;; | |
1e8e9920 | 3206 | *) |
3207 | noconfigdirs="$noconfigdirs target-libgomp" | |
3208 | ;; | |
3209 | esac | |
50996fe5 | 3210 | fi |
1e8e9920 | 3211 | |
6db1d2ca | 3212 | # Disable libatomic on unsupported systems. |
3213 | if test -d ${srcdir}/libatomic; then | |
3214 | if test x$enable_libatomic = x; then | |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3216 | $as_echo_n "checking for libatomic support... " >&6; } | |
3217 | if (srcdir=${srcdir}/libatomic; \ | |
3218 | . ${srcdir}/configure.tgt; \ | |
3219 | test -n "$UNSUPPORTED") | |
3220 | then | |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3222 | $as_echo "no" >&6; } | |
3223 | noconfigdirs="$noconfigdirs target-libatomic" | |
3224 | else | |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3226 | $as_echo "yes" >&6; } | |
3227 | fi | |
3228 | fi | |
3229 | fi | |
3230 | ||
d3a7dd32 | 3231 | # Disable liboffloadmic on unsupported systems. |
3232 | if test -d ${srcdir}/liboffloadmic; then | |
3233 | if test x$enable_liboffloadmic != xno; then | |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3235 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3236 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3237 | . ${srcdir}/configure.tgt; \ | |
3238 | test -n "$UNSUPPORTED") | |
3239 | then | |
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3241 | $as_echo "no" >&6; } | |
3242 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3243 | else | |
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3245 | $as_echo "yes" >&6; } | |
3246 | fi | |
3247 | fi | |
3248 | fi | |
3249 | ||
42b15c81 | 3250 | # Disable libitm on unsupported systems. |
3251 | if test -d ${srcdir}/libitm; then | |
3252 | if test x$enable_libitm = x; then | |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
298c66d9 | 3254 | $as_echo_n "checking for libitm support... " >&6; } |
42b15c81 | 3255 | if (srcdir=${srcdir}/libitm; \ |
3256 | . ${srcdir}/configure.tgt; \ | |
3257 | test -n "$UNSUPPORTED") | |
3258 | then | |
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
298c66d9 | 3260 | $as_echo "no" >&6; } |
42b15c81 | 3261 | noconfigdirs="$noconfigdirs target-libitm" |
3262 | else | |
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
298c66d9 | 3264 | $as_echo "yes" >&6; } |
42b15c81 | 3265 | fi |
3266 | fi | |
4c0315d0 | 3267 | fi |
3268 | ||
492e75a7 | 3269 | # Disable libsanitizer on unsupported systems. |
3270 | if test -d ${srcdir}/libsanitizer; then | |
3271 | if test x$enable_libsanitizer = x; then | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3273 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3274 | if (srcdir=${srcdir}/libsanitizer; \ | |
3275 | . ${srcdir}/configure.tgt; \ | |
3276 | test -n "$UNSUPPORTED") | |
3277 | then | |
3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3279 | $as_echo "no" >&6; } | |
3280 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3281 | else | |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3283 | $as_echo "yes" >&6; } | |
3284 | fi | |
3285 | fi | |
3286 | fi | |
3287 | ||
b710ec85 | 3288 | # Disable libvtv on unsupported systems. |
3289 | if test -d ${srcdir}/libvtv; then | |
3290 | if test x$enable_libvtv = x; then | |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3292 | $as_echo_n "checking for libvtv support... " >&6; } | |
3293 | if (srcdir=${srcdir}/libvtv; \ | |
3294 | . ${srcdir}/configure.tgt; \ | |
6d0992e1 | 3295 | test "$VTV_SUPPORTED" != "yes") |
b710ec85 | 3296 | then |
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3298 | $as_echo "no" >&6; } | |
3299 | noconfigdirs="$noconfigdirs target-libvtv" | |
3300 | else | |
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3302 | $as_echo "yes" >&6; } | |
3303 | fi | |
3304 | fi | |
3305 | fi | |
3306 | ||
202baac8 | 3307 | |
645a0bd9 | 3308 | # Disable libhsail-rt on unsupported systems. |
3309 | if test -d ${srcdir}/libhsail-rt; then | |
3310 | if test x$enable_libhsail_rt = x; then | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3312 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3313 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3314 | . ${srcdir}/configure.tgt; \ | |
3315 | test -n "$UNSUPPORTED") | |
3316 | then | |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3318 | $as_echo "no" >&6; } | |
3319 | unsupported_languages="$unsupported_languages brig" | |
3320 | # This implicitly disables also target-libhsail-rt as it won't | |
3321 | # get added to the build without BRIG FE. | |
3322 | else | |
3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3324 | $as_echo "yes" >&6; } | |
3325 | fi | |
3326 | fi | |
3327 | fi | |
202baac8 | 3328 | |
3329 | ||
62f0972f | 3330 | # Disable libquadmath for some systems. |
3331 | case "${target}" in | |
c36ee471 | 3332 | avr-*-*) |
3333 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3334 | ;; | |
62f0972f | 3335 | # libquadmath is unused on AIX and libquadmath build process use of |
3336 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3337 | powerpc-*-aix* | rs6000-*-aix*) | |
3338 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3339 | ;; | |
3340 | esac | |
3341 | ||
d5831552 | 3342 | # Disable libssp for some systems. |
3343 | case "${target}" in | |
3344 | avr-*-*) | |
76c19016 | 3345 | # No hosted I/O support. |
d5831552 | 3346 | noconfigdirs="$noconfigdirs target-libssp" |
3347 | ;; | |
3348 | powerpc-*-aix* | rs6000-*-aix*) | |
3349 | noconfigdirs="$noconfigdirs target-libssp" | |
78e515f7 | 3350 | ;; |
3351 | rl78-*-*) | |
9d5fd7d0 | 3352 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3353 | # doesn't fault for those - instead, it gives a build-time error | |
3354 | # for explicit misaligned loads. | |
78e515f7 | 3355 | noconfigdirs="$noconfigdirs target-libssp" |
d5831552 | 3356 | ;; |
8992df51 | 3357 | visium-*-*) |
3358 | # No hosted I/O support. | |
3359 | noconfigdirs="$noconfigdirs target-libssp" | |
3360 | ;; | |
d5831552 | 3361 | esac |
3362 | ||
d5831552 | 3363 | # Disable libstdc++-v3 for some systems. |
a3ba808f | 3364 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3365 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3366 | case "${target}" in | |
3367 | *-*-vxworks*) | |
3368 | # VxWorks uses the Dinkumware C++ library. | |
3369 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3370 | ;; | |
3371 | arm*-wince-pe*) | |
3372 | # the C++ libraries don't build on top of CE's C libraries | |
3373 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3374 | ;; | |
3375 | avr-*-*) | |
3376 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3377 | ;; | |
b6616c9c | 3378 | ft32-*-*) |
3379 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3380 | ;; | |
a3ba808f | 3381 | esac |
3382 | fi | |
d5831552 | 3383 | |
72a2ce3d | 3384 | # Disable D on systems where it is known to not work. |
3385 | # For testing, you can override this with --enable-languages=d. | |
3386 | case ,${enable_languages}, in | |
3387 | *,d,*) | |
3388 | ;; | |
3389 | *) | |
3390 | case "${target}" in | |
3391 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) | |
3392 | unsupported_languages="$unsupported_languages d" | |
3393 | ;; | |
3394 | esac | |
3395 | ;; | |
3396 | esac | |
3397 | ||
3398 | # Disable libphobos on unsupported systems. | |
3399 | # For testing, you can override this with --enable-libphobos. | |
3400 | if test -d ${srcdir}/libphobos; then | |
3401 | if test x$enable_libphobos = x; then | |
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3403 | $as_echo_n "checking for libphobos support... " >&6; } | |
3404 | if (srcdir=${srcdir}/libphobos; \ | |
3405 | . ${srcdir}/configure.tgt; \ | |
3406 | test -n "$UNSUPPORTED") | |
3407 | then | |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3409 | $as_echo "no" >&6; } | |
3410 | noconfigdirs="$noconfigdirs target-libphobos" | |
3411 | else | |
3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3413 | $as_echo "yes" >&6; } | |
3414 | fi | |
3415 | fi | |
3416 | fi | |
3417 | ||
d5831552 | 3418 | # Disable Fortran for some systems. |
3419 | case "${target}" in | |
3420 | mmix-*-*) | |
3421 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3422 | unsupported_languages="$unsupported_languages fortran" | |
3423 | ;; | |
3424 | esac | |
3425 | ||
38cf534f | 3426 | # Disable libffi for some systems. |
3427 | case "${target}" in | |
3428 | powerpc-*-darwin*) | |
3429 | ;; | |
3430 | i[3456789]86-*-darwin*) | |
3431 | ;; | |
3432 | x86_64-*-darwin[912]*) | |
3433 | ;; | |
3434 | *-*-darwin*) | |
3435 | noconfigdirs="$noconfigdirs target-libffi" | |
3436 | ;; | |
3437 | *-*-netware*) | |
3438 | noconfigdirs="$noconfigdirs target-libffi" | |
3439 | ;; | |
3440 | *-*-phoenix*) | |
3441 | noconfigdirs="$noconfigdirs target-libffi" | |
3442 | ;; | |
3443 | *-*-rtems*) | |
3444 | noconfigdirs="$noconfigdirs target-libffi" | |
3445 | ;; | |
3446 | *-*-tpf*) | |
3447 | noconfigdirs="$noconfigdirs target-libffi" | |
3448 | ;; | |
3449 | *-*-uclinux*) | |
3450 | noconfigdirs="$noconfigdirs target-libffi" | |
3451 | ;; | |
3452 | *-*-vxworks*) | |
3453 | noconfigdirs="$noconfigdirs target-libffi" | |
3454 | ;; | |
88afddbc | 3455 | aarch64*-*-freebsd*) |
3456 | noconfigdirs="$noconfigdirs target-libffi" | |
3457 | ;; | |
38cf534f | 3458 | alpha*-*-*vms*) |
3459 | noconfigdirs="$noconfigdirs target-libffi" | |
3460 | ;; | |
3461 | arm*-*-freebsd*) | |
3462 | noconfigdirs="$noconfigdirs target-libffi" | |
3463 | ;; | |
3464 | arm-wince-pe) | |
3465 | noconfigdirs="$noconfigdirs target-libffi" | |
3466 | ;; | |
3467 | arm*-*-symbianelf*) | |
3468 | noconfigdirs="$noconfigdirs target-libffi" | |
3469 | ;; | |
3470 | cris-*-* | crisv32-*-*) | |
3471 | case "${target}" in | |
3472 | *-*-linux*) | |
3473 | ;; | |
3474 | *) # See PR46792 regarding target-libffi. | |
3475 | noconfigdirs="$noconfigdirs target-libffi";; | |
3476 | esac | |
3477 | ;; | |
3478 | hppa*64*-*-hpux*) | |
3479 | noconfigdirs="$noconfigdirs target-libffi" | |
3480 | ;; | |
3481 | hppa*-hp-hpux11*) | |
3482 | ;; | |
3483 | hppa*-*-hpux*) | |
3484 | noconfigdirs="$noconfigdirs target-libffi" | |
3485 | ;; | |
3486 | ia64*-*-*vms*) | |
3487 | noconfigdirs="$noconfigdirs target-libffi" | |
3488 | ;; | |
3489 | i[3456789]86-w64-mingw*) | |
3490 | noconfigdirs="$noconfigdirs target-libffi" | |
3491 | ;; | |
3492 | i[3456789]86-*-mingw*) | |
3493 | noconfigdirs="$noconfigdirs target-libffi" | |
3494 | ;; | |
3495 | x86_64-*-mingw*) | |
3496 | noconfigdirs="$noconfigdirs target-libffi" | |
3497 | ;; | |
3498 | mmix-*-*) | |
3499 | noconfigdirs="$noconfigdirs target-libffi" | |
3500 | ;; | |
3501 | powerpc-*-aix*) | |
38cf534f | 3502 | ;; |
3503 | rs6000-*-aix*) | |
38cf534f | 3504 | ;; |
3505 | ft32-*-*) | |
3506 | noconfigdirs="$noconfigdirs target-libffi" | |
3507 | ;; | |
3508 | *-*-lynxos*) | |
3509 | noconfigdirs="$noconfigdirs target-libffi" | |
3510 | ;; | |
3511 | esac | |
3512 | ||
3513 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3514 | # this in sync with contrib/config-list.mk. | |
3515 | case "${target}" in | |
475738b0 | 3516 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
38cf534f | 3517 | unsupported_languages="$unsupported_languages go" |
3518 | ;; | |
3519 | esac | |
3520 | ||
a6999726 | 3521 | # Disable libgo for some systems where it is known to not work. |
3522 | # For testing, you can easily override this with --enable-libgo. | |
3523 | if test x$enable_libgo = x; then | |
3524 | case "${target}" in | |
3525 | *-*-darwin*) | |
3526 | # PR 46986 | |
3527 | noconfigdirs="$noconfigdirs target-libgo" | |
3528 | ;; | |
3529 | *-*-cygwin* | *-*-mingw*) | |
3530 | noconfigdirs="$noconfigdirs target-libgo" | |
3531 | ;; | |
a6999726 | 3532 | esac |
3533 | fi | |
3534 | ||
1c5767f1 | 3535 | # Default libgloss CPU subdirectory. |
3536 | libgloss_dir="$target_cpu" | |
4ee9c684 | 3537 | |
e0942c78 | 3538 | case "${target}" in |
3539 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3540 | libgloss_dir=wince | |
3541 | ;; | |
e26fddfa | 3542 | aarch64*-*-* ) |
3543 | libgloss_dir=aarch64 | |
3544 | ;; | |
e0942c78 | 3545 | arm*-*-*) |
3546 | libgloss_dir=arm | |
3547 | ;; | |
3548 | cris-*-* | crisv32-*-*) | |
3549 | libgloss_dir=cris | |
3550 | ;; | |
3551 | hppa*-*-*) | |
3552 | libgloss_dir=pa | |
3553 | ;; | |
3554 | i[3456789]86-*-*) | |
3555 | libgloss_dir=i386 | |
3556 | ;; | |
3557 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3558 | libgloss_dir=m68hc11 | |
3559 | ;; | |
3560 | m68*-*-* | fido-*-*) | |
3561 | libgloss_dir=m68k | |
3562 | ;; | |
3563 | mips*-*-*) | |
3564 | libgloss_dir=mips | |
3565 | ;; | |
3566 | powerpc*-*-*) | |
3567 | libgloss_dir=rs6000 | |
3568 | ;; | |
3569 | sparc*-*-*) | |
3570 | libgloss_dir=sparc | |
3571 | ;; | |
3572 | esac | |
3573 | ||
d556f192 | 3574 | # Disable newlib and libgloss for various target OSes. |
71ab34df | 3575 | case "${target}" in |
d556f192 | 3576 | alpha*-dec-osf*) |
3577 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3578 | ;; | |
3579 | i[3456789]86-*-linux*) | |
3580 | # This section makes it possible to build newlib natively on linux. | |
3581 | # If we are using a cross compiler then don't configure newlib. | |
3582 | if test x${is_cross_compiler} != xno ; then | |
3583 | noconfigdirs="$noconfigdirs target-newlib" | |
3584 | fi | |
3585 | noconfigdirs="$noconfigdirs target-libgloss" | |
3586 | # If we are not using a cross compiler, do configure newlib. | |
3587 | # Note however, that newlib will only be configured in this situation | |
3588 | # if the --with-newlib option has been given, because otherwise | |
3589 | # 'target-newlib' will appear in skipdirs. | |
3590 | ;; | |
3591 | i[3456789]86-*-rdos*) | |
3592 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3593 | ;; | |
3594 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3595 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3596 | ;; | |
3597 | sparc-*-sunos4*) | |
3598 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3599 | ;; | |
3600 | *-*-aix*) | |
3601 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3602 | ;; | |
3603 | *-*-beos*) | |
3604 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3605 | ;; | |
71ab34df | 3606 | *-*-chorusos) |
71559dce | 3607 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3608 | ;; |
d556f192 | 3609 | *-*-dragonfly*) |
3610 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3611 | ;; | |
3612 | *-*-freebsd*) | |
3613 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3614 | ;; | |
3615 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3616 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3617 | ;; | |
3618 | *-*-lynxos*) | |
3619 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3620 | ;; | |
3621 | *-*-mingw*) | |
3622 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3623 | ;; | |
3624 | *-*-netbsd*) | |
3625 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3626 | ;; | |
3627 | *-*-netware*) | |
3628 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3629 | ;; | |
3630 | *-*-tpf*) | |
3631 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3632 | ;; | |
3633 | *-*-uclinux*) | |
3634 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3635 | ;; | |
3636 | *-*-vxworks*) | |
3637 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3638 | ;; | |
3639 | esac | |
3640 | ||
3641 | case "${target}" in | |
3642 | *-*-chorusos) | |
3643 | ;; | |
38f4c967 | 3644 | aarch64-*-darwin*) |
3645 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3646 | noconfigdirs="$noconfigdirs sim target-rda" | |
3647 | ;; | |
3648 | arm-*-darwin*) | |
3649 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3650 | noconfigdirs="$noconfigdirs sim target-rda" | |
3651 | ;; | |
40c500e1 | 3652 | powerpc-*-darwin*) |
dba2c8ea | 3653 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
d28caca4 | 3654 | noconfigdirs="$noconfigdirs sim target-rda" |
0894307c | 3655 | ;; |
ea864ded | 3656 | i[3456789]86-*-darwin*) |
3657 | noconfigdirs="$noconfigdirs ld gprof" | |
3658 | noconfigdirs="$noconfigdirs sim target-rda" | |
3659 | ;; | |
3660 | x86_64-*-darwin[912]*) | |
d9f9f3af | 3661 | noconfigdirs="$noconfigdirs ld gas gprof" |
3662 | noconfigdirs="$noconfigdirs sim target-rda" | |
3663 | ;; | |
fce068fd | 3664 | *-*-darwin*) |
3665 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3666 | noconfigdirs="$noconfigdirs sim target-rda" | |
fce068fd | 3667 | ;; |
e3a1fe08 | 3668 | *-*-dragonfly*) |
e3a1fe08 | 3669 | ;; |
c01dd063 | 3670 | *-*-freebsd*) |
4ee9c684 | 3671 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3672 | && test -f /usr/local/include/gmp.h; then | |
3673 | with_gmp=/usr/local | |
3674 | fi | |
4ee9c684 | 3675 | ;; |
336577be | 3676 | *-*-kaos*) |
3677 | # Remove unsupported stuff on all kaOS configurations. | |
336577be | 3678 | noconfigdirs="$noconfigdirs target-libgloss" |
3679 | ;; | |
71ab34df | 3680 | *-*-netbsd*) |
71ab34df | 3681 | ;; |
634f7a13 | 3682 | *-*-netware*) |
71ab34df | 3683 | ;; |
1d6aa005 | 3684 | *-*-phoenix*) |
3685 | noconfigdirs="$noconfigdirs target-libgloss" | |
3686 | ;; | |
71ab34df | 3687 | *-*-rtems*) |
f24be480 | 3688 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3689 | ;; |
9f88bc9d | 3690 | # The tpf target doesn't support gdb yet. |
3691 | *-*-tpf*) | |
d556f192 | 3692 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
9f88bc9d | 3693 | ;; |
688429c4 | 3694 | *-*-uclinux*) |
d556f192 | 3695 | noconfigdirs="$noconfigdirs target-rda" |
688429c4 | 3696 | ;; |
71ab34df | 3697 | *-*-vxworks*) |
71ab34df | 3698 | ;; |
3699 | alpha*-dec-osf*) | |
3700 | # ld works, but does not support shared libraries. | |
71ab34df | 3701 | # gas doesn't generate exception information. |
d556f192 | 3702 | noconfigdirs="$noconfigdirs gas ld" |
71ab34df | 3703 | ;; |
3704 | alpha*-*-*vms*) | |
f24be480 | 3705 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
71ab34df | 3706 | ;; |
71ab34df | 3707 | alpha*-*-*) |
3708 | # newlib is not 64 bit ready | |
f24be480 | 3709 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3710 | ;; |
71ab34df | 3711 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
f843f075 | 3712 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
71ab34df | 3713 | ;; |
194b906d | 3714 | arc*-*-*) |
3715 | noconfigdirs="$noconfigdirs sim" | |
3716 | ;; | |
71ab34df | 3717 | arm-*-pe*) |
f24be480 | 3718 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3719 | ;; |
71ab34df | 3720 | arm-*-riscix*) |
71559dce | 3721 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3722 | ;; |
fd28e216 | 3723 | avr-*-*) |
3724 | if test x${with_avrlibc} != xno; then | |
3725 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3726 | fi | |
3727 | ;; | |
71ab34df | 3728 | c4x-*-* | tic4x-*-*) |
71559dce | 3729 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3730 | ;; |
71559dce | 3731 | tic54x-*-*) |
3732 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
71ab34df | 3733 | ;; |
71ab34df | 3734 | d10v-*-*) |
71559dce | 3735 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3736 | ;; |
3737 | d30v-*-*) | |
71559dce | 3738 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3739 | ;; |
3740 | fr30-*-elf*) | |
f24be480 | 3741 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3742 | ;; |
6406d366 | 3743 | ft32-*-*) |
3744 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3745 | ;; | |
ca2751b6 | 3746 | moxie-*-*) |
6406d366 | 3747 | noconfigdirs="$noconfigdirs" |
ca2751b6 | 3748 | ;; |
71ab34df | 3749 | h8300*-*-*) |
f24be480 | 3750 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3751 | ;; |
3752 | h8500-*-*) | |
71559dce | 3753 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3754 | ;; |
e8eddfdd | 3755 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
e8eddfdd | 3756 | ;; |
6406d366 | 3757 | hppa*64*-*-hpux*) |
3758 | noconfigdirs="$noconfigdirs gdb" | |
3759 | ;; | |
3760 | hppa*-*-hpux11*) | |
3761 | noconfigdirs="$noconfigdirs gdb ld" | |
3762 | ;; | |
6bd59761 | 3763 | hppa*64*-*-linux*) |
71ab34df | 3764 | ;; |
99684e84 | 3765 | hppa*-*-linux*) |
08261f02 | 3766 | ;; |
71ab34df | 3767 | hppa*-*-*elf* | \ |
71ab34df | 3768 | hppa*-*-lites* | \ |
3769 | hppa*-*-openbsd* | \ | |
3770 | hppa*64*-*-*) | |
71ab34df | 3771 | ;; |
1c5767f1 | 3772 | hppa*-*-pro*) |
1c5767f1 | 3773 | ;; |
71ab34df | 3774 | hppa*-*-*) |
f24be480 | 3775 | noconfigdirs="$noconfigdirs ld" |
71ab34df | 3776 | ;; |
4a9237fb | 3777 | i960-*-*) |
71559dce | 3778 | noconfigdirs="$noconfigdirs gdb" |
4a9237fb | 3779 | ;; |
71ab34df | 3780 | ia64*-*-elf*) |
3781 | # No gdb support yet. | |
6c9785b4 | 3782 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
71ab34df | 3783 | ;; |
3784 | ia64*-**-hpux*) | |
1aca86a6 | 3785 | # No ld support yet. |
6406d366 | 3786 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
71ab34df | 3787 | ;; |
8408ca00 | 3788 | ia64*-*-*vms*) |
3211401d | 3789 | # No ld support yet. |
3790 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
8408ca00 | 3791 | ;; |
ec2eb8fb | 3792 | i[3456789]86-w64-mingw*) |
ec2eb8fb | 3793 | ;; |
3794 | i[3456789]86-*-mingw*) | |
d6d689df | 3795 | target_configdirs="$target_configdirs target-winsup" |
b30fcfae | 3796 | ;; |
71ab34df | 3797 | *-*-cygwin*) |
3798 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
6c9785b4 | 3799 | noconfigdirs="$noconfigdirs target-libgloss" |
2c10944d | 3800 | # always build newlib if winsup directory is present. |
d6d689df | 3801 | if test -d "$srcdir/winsup/cygwin"; then |
2c10944d | 3802 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
e8eddfdd | 3803 | elif test -d "$srcdir/newlib"; then |
d6d689df | 3804 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
2c10944d | 3805 | fi |
b30fcfae | 3806 | ;; |
f74ea578 | 3807 | i[3456789]86-*-pe) |
17b3d2a8 | 3808 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3809 | ;; |
f74ea578 | 3810 | i[3456789]86-*-sco3.2v5*) |
71ab34df | 3811 | # The linker does not yet know about weak symbols in COFF, |
3812 | # and is not configured to handle mixed ELF and COFF. | |
71559dce | 3813 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3814 | ;; |
f74ea578 | 3815 | i[3456789]86-*-sco*) |
71559dce | 3816 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3817 | ;; |
14f27bc6 | 3818 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
71ab34df | 3819 | noconfigdirs="$noconfigdirs target-libgloss" |
3820 | ;; | |
f74ea578 | 3821 | i[3456789]86-*-sysv4*) |
71559dce | 3822 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3823 | ;; |
f74ea578 | 3824 | i[3456789]86-*-beos*) |
d556f192 | 3825 | noconfigdirs="$noconfigdirs gdb" |
602d002b | 3826 | ;; |
ab0da556 | 3827 | i[3456789]86-*-rdos*) |
d556f192 | 3828 | noconfigdirs="$noconfigdirs gdb" |
1c5767f1 | 3829 | ;; |
71ab34df | 3830 | mmix-*-*) |
f24be480 | 3831 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3832 | ;; |
957985d9 | 3833 | mt-*-*) |
f6fa11cb | 3834 | noconfigdirs="$noconfigdirs sim" |
3835 | ;; | |
b9bdd103 | 3836 | nfp-*-*) |
3837 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3838 | noconfigdirs="$noconfigdirs $target_libraries" | |
3839 | ;; | |
71ab34df | 3840 | powerpc-*-aix*) |
3841 | # copied from rs6000-*-* entry | |
d556f192 | 3842 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3843 | ;; |
6bd59761 | 3844 | powerpc*-*-winnt* | powerpc*-*-pe*) |
71ab34df | 3845 | target_configdirs="$target_configdirs target-winsup" |
71559dce | 3846 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
71ab34df | 3847 | # always build newlib. |
3848 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3849 | ;; | |
3850 | # This is temporary until we can link against shared libraries | |
3851 | powerpcle-*-solaris*) | |
71559dce | 3852 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
71ab34df | 3853 | ;; |
3854 | powerpc-*-beos*) | |
d556f192 | 3855 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3856 | ;; |
71ab34df | 3857 | rs6000-*-lynxos*) |
d556f192 | 3858 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3859 | ;; |
3860 | rs6000-*-aix*) | |
d556f192 | 3861 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3862 | ;; |
3863 | rs6000-*-*) | |
f24be480 | 3864 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3865 | ;; |
3866 | m68k-apollo-*) | |
71559dce | 3867 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
71ab34df | 3868 | ;; |
ba2b484f | 3869 | microblaze*) |
f24be480 | 3870 | noconfigdirs="$noconfigdirs gprof" |
ba2b484f | 3871 | ;; |
d781ea5c | 3872 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
68c9bc25 | 3873 | if test x$with_newlib = xyes; then |
3874 | noconfigdirs="$noconfigdirs gprof" | |
3875 | fi | |
68c9bc25 | 3876 | ;; |
71ab34df | 3877 | mips*-*-irix5*) |
71559dce | 3878 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3879 | ;; |
3880 | mips*-*-irix6*) | |
f24be480 | 3881 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3882 | ;; |
71ab34df | 3883 | mips*-*-bsd*) |
d6449910 | 3884 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
71ab34df | 3885 | ;; |
71ab34df | 3886 | mips*-*-linux*) |
71ab34df | 3887 | ;; |
d6449910 | 3888 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3889 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3890 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3891 | ;; | |
71ab34df | 3892 | mips*-*-*) |
f24be480 | 3893 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3894 | ;; |
8ce80784 | 3895 | nvptx*-*-*) |
8ce80784 | 3896 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3897 | ;; | |
9a9b5abf | 3898 | sh-*-*) |
39f6b116 | 3899 | case "${target}" in |
3900 | sh*-*-elf) | |
f24be480 | 3901 | ;; |
39f6b116 | 3902 | *) |
f24be480 | 3903 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
39f6b116 | 3904 | esac |
71ab34df | 3905 | ;; |
71ab34df | 3906 | sparc-*-sunos4*) |
d556f192 | 3907 | if test x${is_cross_compiler} = xno ; then |
71ab34df | 3908 | use_gnu_ld=no |
3909 | fi | |
3910 | ;; | |
fa0a53e3 | 3911 | tic6x-*-*) |
ccdfa490 | 3912 | noconfigdirs="$noconfigdirs sim" |
fa0a53e3 | 3913 | ;; |
2da35515 | 3914 | tilepro*-*-* | tilegx*-*-*) |
e5fa74b2 | 3915 | noconfigdirs="$noconfigdirs sim" |
3916 | ;; | |
71ab34df | 3917 | v810-*-*) |
71559dce | 3918 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
71ab34df | 3919 | ;; |
3920 | vax-*-*) | |
f24be480 | 3921 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3922 | ;; |
c2762a30 | 3923 | wasm32-*-*) |
3924 | noconfigdirs="$noconfigdirs ld" | |
3925 | ;; | |
71ab34df | 3926 | esac |
a8298541 | 3927 | |
71ab34df | 3928 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3929 | # depends upon some newlib header files. | |
3930 | case "${noconfigdirs}" in | |
3931 | *target-libgloss*) ;; | |
3932 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3933 | esac | |
3934 | ||
71ab34df | 3935 | # Work in distributions that contain no compiler tools, like Autoconf. |
71ab34df | 3936 | host_makefile_frag=/dev/null |
3937 | if test -d ${srcdir}/config ; then | |
3938 | case "${host}" in | |
f74ea578 | 3939 | i[3456789]86-*-msdosdjgpp*) |
71ab34df | 3940 | host_makefile_frag="config/mh-djgpp" |
3941 | ;; | |
3942 | *-cygwin*) | |
45043b2b | 3943 | |
cd9a469c | 3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3945 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
45043b2b | 3946 | echo a >cygwin-cat-check |
82d97a59 | 3947 | if test `cat cygwin-cat-check` = a ; then |
45043b2b | 3948 | rm cygwin-cat-check |
cd9a469c | 3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3950 | $as_echo "yes" >&6; } | |
45043b2b | 3951 | else |
3952 | rm cygwin-cat-check | |
cd9a469c | 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3954 | $as_echo "no" >&6; } | |
f00f02a3 | 3955 | as_fn_error $? "The cat command does not ignore carriage return characters. |
45043b2b | 3956 | Please either mount the build directory in binary mode or run the following |
3957 | commands before running any configure script: | |
3958 | set -o igncr | |
3959 | export SHELLOPTS | |
cd9a469c | 3960 | " "$LINENO" 5 |
45043b2b | 3961 | fi |
3962 | ||
71ab34df | 3963 | host_makefile_frag="config/mh-cygwin" |
3964 | ;; | |
5a92bcc2 | 3965 | *-mingw*) |
70d8e49e | 3966 | host_makefile_frag="config/mh-mingw" |
a378fc89 | 3967 | ;; |
bed3355c | 3968 | alpha*-linux*) |
539ded76 | 3969 | host_makefile_frag="config/mh-alpha-linux" |
3970 | ;; | |
d2b94e36 | 3971 | hppa*-hp-hpux10*) |
d2b94e36 | 3972 | host_makefile_frag="config/mh-pa-hpux10" |
71ab34df | 3973 | ;; |
b2240ff6 | 3974 | hppa*-hp-hpux*) |
d2b94e36 | 3975 | host_makefile_frag="config/mh-pa" |
3976 | ;; | |
3977 | hppa*-*) | |
3978 | host_makefile_frag="config/mh-pa" | |
3979 | ;; | |
16463c8d | 3980 | *-*-darwin*) |
3981 | host_makefile_frag="config/mh-darwin" | |
0222d984 | 3982 | ;; |
9d44a802 | 3983 | powerpc-*-aix*) |
3984 | host_makefile_frag="config/mh-ppc-aix" | |
3985 | ;; | |
3986 | rs6000-*-aix*) | |
3987 | host_makefile_frag="config/mh-ppc-aix" | |
3988 | ;; | |
71ab34df | 3989 | esac |
3990 | fi | |
3991 | ||
8e1fea1a | 3992 | if test "${build}" != "${host}" ; then |
93c5e793 | 3993 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3994 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
8e1fea1a | 3995 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
93c5e793 | 3996 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
93c5e793 | 3997 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
5ff5b630 | 3998 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
03385ed3 | 3999 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
93c5e793 | 4000 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4001 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4002 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4003 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4004 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4005 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4006 | else | |
4007 | AR_FOR_BUILD="\$(AR)" | |
4008 | AS_FOR_BUILD="\$(AS)" | |
a4af6a58 | 4009 | CC_FOR_BUILD="\$(CC)" |
93c5e793 | 4010 | CXX_FOR_BUILD="\$(CXX)" |
93c5e793 | 4011 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
5ff5b630 | 4012 | GOC_FOR_BUILD="\$(GOC)" |
03385ed3 | 4013 | GDC_FOR_BUILD="\$(GDC)" |
93c5e793 | 4014 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4015 | LD_FOR_BUILD="\$(LD)" | |
4016 | NM_FOR_BUILD="\$(NM)" | |
4017 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4018 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4019 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
eae5b2bc | 4020 | fi |
4021 | ||
4022 | ac_ext=c | |
b30fcfae | 4023 | ac_cpp='$CPP $CPPFLAGS' |
4024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4027 | if test -n "$ac_tool_prefix"; then | |
4028 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4029 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4031 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4032 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 4033 | $as_echo_n "(cached) " >&6 |
b30fcfae | 4034 | else |
4035 | if test -n "$CC"; then | |
4036 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4037 | else | |
4038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4039 | for as_dir in $PATH | |
4040 | do | |
4041 | IFS=$as_save_IFS | |
4042 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4043 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4045 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 4046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4047 | break 2 |
4048 | fi | |
4049 | done | |
cd9a469c | 4050 | done |
4051 | IFS=$as_save_IFS | |
b30fcfae | 4052 | |
4053 | fi | |
4054 | fi | |
4055 | CC=$ac_cv_prog_CC | |
4056 | if test -n "$CC"; then | |
cd9a469c | 4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4058 | $as_echo "$CC" >&6; } | |
b30fcfae | 4059 | else |
cd9a469c | 4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4061 | $as_echo "no" >&6; } | |
b30fcfae | 4062 | fi |
4063 | ||
cd9a469c | 4064 | |
b30fcfae | 4065 | fi |
4066 | if test -z "$ac_cv_prog_CC"; then | |
4067 | ac_ct_CC=$CC | |
a4af6a58 | 4068 | # Extract the first word of "gcc", so it can be a program name with args. |
4069 | set dummy gcc; ac_word=$2 | |
cd9a469c | 4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4071 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4072 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 4073 | $as_echo_n "(cached) " >&6 |
b30fcfae | 4074 | else |
4075 | if test -n "$ac_ct_CC"; then | |
4076 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4077 | else | |
4078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4079 | for as_dir in $PATH | |
4080 | do | |
4081 | IFS=$as_save_IFS | |
4082 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4083 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4084 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4085 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 4086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4087 | break 2 |
4088 | fi | |
4089 | done | |
cd9a469c | 4090 | done |
4091 | IFS=$as_save_IFS | |
b30fcfae | 4092 | |
4093 | fi | |
4094 | fi | |
4095 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4096 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4098 | $as_echo "$ac_ct_CC" >&6; } | |
b30fcfae | 4099 | else |
cd9a469c | 4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4101 | $as_echo "no" >&6; } | |
b30fcfae | 4102 | fi |
4103 | ||
cd9a469c | 4104 | if test "x$ac_ct_CC" = x; then |
4105 | CC="" | |
4106 | else | |
4107 | case $cross_compiling:$ac_tool_warned in | |
4108 | yes:) | |
4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4110 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4111 | ac_tool_warned=yes ;; | |
4112 | esac | |
4113 | CC=$ac_ct_CC | |
4114 | fi | |
b30fcfae | 4115 | else |
4116 | CC="$ac_cv_prog_CC" | |
4117 | fi | |
4118 | ||
4119 | if test -z "$CC"; then | |
cd9a469c | 4120 | if test -n "$ac_tool_prefix"; then |
4121 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b30fcfae | 4122 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4124 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4125 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 4126 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 4127 | else |
4128 | if test -n "$CC"; then | |
4129 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4130 | else | |
b30fcfae | 4131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4132 | for as_dir in $PATH | |
4133 | do | |
4134 | IFS=$as_save_IFS | |
4135 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4136 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4137 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4138 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 4139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4140 | break 2 |
4141 | fi | |
4142 | done | |
cd9a469c | 4143 | done |
4144 | IFS=$as_save_IFS | |
b30fcfae | 4145 | |
a83ffacf | 4146 | fi |
a83ffacf | 4147 | fi |
b30fcfae | 4148 | CC=$ac_cv_prog_CC |
ae48753c | 4149 | if test -n "$CC"; then |
cd9a469c | 4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4151 | $as_echo "$CC" >&6; } | |
5084f823 | 4152 | else |
cd9a469c | 4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4154 | $as_echo "no" >&6; } | |
5084f823 | 4155 | fi |
4156 | ||
5084f823 | 4157 | |
cd9a469c | 4158 | fi |
b30fcfae | 4159 | fi |
8e1fea1a | 4160 | if test -z "$CC"; then |
4161 | # Extract the first word of "cc", so it can be a program name with args. | |
4162 | set dummy cc; ac_word=$2 | |
cd9a469c | 4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4164 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4165 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 4166 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 4167 | else |
4168 | if test -n "$CC"; then | |
4169 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4170 | else | |
a83ffacf | 4171 | ac_prog_rejected=no |
b30fcfae | 4172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4173 | for as_dir in $PATH | |
4174 | do | |
4175 | IFS=$as_save_IFS | |
4176 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4177 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4178 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4179 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4180 | ac_prog_rejected=yes | |
4181 | continue | |
4182 | fi | |
4183 | ac_cv_prog_CC="cc" | |
cd9a469c | 4184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4185 | break 2 |
4186 | fi | |
4187 | done | |
cd9a469c | 4188 | done |
4189 | IFS=$as_save_IFS | |
b30fcfae | 4190 | |
8e1fea1a | 4191 | if test $ac_prog_rejected = yes; then |
4192 | # We found a bogon in the path, so make sure we never use it. | |
4193 | set dummy $ac_cv_prog_CC | |
4194 | shift | |
b30fcfae | 4195 | if test $# != 0; then |
8e1fea1a | 4196 | # We chose a different compiler from the bogus one. |
4197 | # However, it has the same basename, so the bogon will be chosen | |
4198 | # first if we set CC to just the basename; use the full file name. | |
4199 | shift | |
b30fcfae | 4200 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
8e1fea1a | 4201 | fi |
4202 | fi | |
4203 | fi | |
4204 | fi | |
b30fcfae | 4205 | CC=$ac_cv_prog_CC |
8e1fea1a | 4206 | if test -n "$CC"; then |
cd9a469c | 4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4208 | $as_echo "$CC" >&6; } | |
8e1fea1a | 4209 | else |
cd9a469c | 4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4211 | $as_echo "no" >&6; } | |
8e1fea1a | 4212 | fi |
4213 | ||
cd9a469c | 4214 | |
b30fcfae | 4215 | fi |
4216 | if test -z "$CC"; then | |
4217 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 4218 | for ac_prog in cl.exe |
b30fcfae | 4219 | do |
4220 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4221 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4223 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4224 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 4225 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 4226 | else |
4227 | if test -n "$CC"; then | |
4228 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4229 | else | |
b30fcfae | 4230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4231 | for as_dir in $PATH | |
4232 | do | |
4233 | IFS=$as_save_IFS | |
4234 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4235 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4237 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 4238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4239 | break 2 |
4240 | fi | |
4241 | done | |
cd9a469c | 4242 | done |
4243 | IFS=$as_save_IFS | |
b30fcfae | 4244 | |
8e1fea1a | 4245 | fi |
4246 | fi | |
b30fcfae | 4247 | CC=$ac_cv_prog_CC |
8e1fea1a | 4248 | if test -n "$CC"; then |
cd9a469c | 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4250 | $as_echo "$CC" >&6; } | |
b1660f25 | 4251 | else |
cd9a469c | 4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4253 | $as_echo "no" >&6; } | |
a4af6a58 | 4254 | fi |
ae48753c | 4255 | |
cd9a469c | 4256 | |
b30fcfae | 4257 | test -n "$CC" && break |
4258 | done | |
ae48753c | 4259 | fi |
b30fcfae | 4260 | if test -z "$CC"; then |
4261 | ac_ct_CC=$CC | |
cd9a469c | 4262 | for ac_prog in cl.exe |
b30fcfae | 4263 | do |
4264 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4265 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4267 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4268 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 4269 | $as_echo_n "(cached) " >&6 |
a83ffacf | 4270 | else |
b30fcfae | 4271 | if test -n "$ac_ct_CC"; then |
4272 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a83ffacf | 4273 | else |
b30fcfae | 4274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4275 | for as_dir in $PATH | |
4276 | do | |
4277 | IFS=$as_save_IFS | |
4278 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4279 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4281 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 4282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4283 | break 2 |
4284 | fi | |
4285 | done | |
cd9a469c | 4286 | done |
4287 | IFS=$as_save_IFS | |
b30fcfae | 4288 | |
ae48753c | 4289 | fi |
4290 | fi | |
b30fcfae | 4291 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4292 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4294 | $as_echo "$ac_ct_CC" >&6; } | |
a4af6a58 | 4295 | else |
cd9a469c | 4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4297 | $as_echo "no" >&6; } | |
ae48753c | 4298 | fi |
a83ffacf | 4299 | |
cd9a469c | 4300 | |
b30fcfae | 4301 | test -n "$ac_ct_CC" && break |
4302 | done | |
4303 | ||
cd9a469c | 4304 | if test "x$ac_ct_CC" = x; then |
4305 | CC="" | |
4306 | else | |
4307 | case $cross_compiling:$ac_tool_warned in | |
4308 | yes:) | |
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4310 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4311 | ac_tool_warned=yes ;; | |
4312 | esac | |
4313 | CC=$ac_ct_CC | |
4314 | fi | |
b30fcfae | 4315 | fi |
4316 | ||
4317 | fi | |
4318 | ||
4319 | ||
cd9a469c | 4320 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4321 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4322 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4323 | See \`config.log' for more details" "$LINENO" 5; } | |
b30fcfae | 4324 | |
4325 | # Provide some information about the compiler. | |
cd9a469c | 4326 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4327 | set X $ac_compile | |
4328 | ac_compiler=$2 | |
4329 | for ac_option in --version -v -V -qversion; do | |
4330 | { { ac_try="$ac_compiler $ac_option >&5" | |
4331 | case "(($ac_try" in | |
4332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4333 | *) ac_try_echo=$ac_try;; | |
4334 | esac | |
4335 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4336 | $as_echo "$ac_try_echo"; } >&5 | |
4337 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b30fcfae | 4338 | ac_status=$? |
cd9a469c | 4339 | if test -s conftest.err; then |
4340 | sed '10a\ | |
4341 | ... rest of stderr output deleted ... | |
4342 | 10q' conftest.err >conftest.er1 | |
4343 | cat conftest.er1 >&5 | |
cd9a469c | 4344 | fi |
f00f02a3 | 4345 | rm -f conftest.er1 conftest.err |
cd9a469c | 4346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4347 | test $ac_status = 0; } | |
4348 | done | |
b30fcfae | 4349 | |
cd9a469c | 4350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4351 | /* end confdefs.h. */ |
4352 | ||
4353 | int | |
4354 | main () | |
4355 | { | |
4356 | ||
4357 | ; | |
4358 | return 0; | |
4359 | } | |
4360 | _ACEOF | |
4361 | ac_clean_files_save=$ac_clean_files | |
f00f02a3 | 4362 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b30fcfae | 4363 | # Try to create an executable without -o first, disregard a.out. |
4364 | # It will help us diagnose broken compilers, and finding out an intuition | |
4365 | # of exeext. | |
f00f02a3 | 4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4367 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
cd9a469c | 4368 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4369 | ||
4370 | # The possible output files: | |
4371 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4372 | ||
4373 | ac_rmfiles= | |
4374 | for ac_file in $ac_files | |
4375 | do | |
4376 | case $ac_file in | |
4377 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4378 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4379 | esac | |
4380 | done | |
4381 | rm -f $ac_rmfiles | |
4382 | ||
4383 | if { { ac_try="$ac_link_default" | |
4384 | case "(($ac_try" in | |
4385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4386 | *) ac_try_echo=$ac_try;; | |
4387 | esac | |
4388 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4389 | $as_echo "$ac_try_echo"; } >&5 | |
4390 | (eval "$ac_link_default") 2>&5 | |
b30fcfae | 4391 | ac_status=$? |
cd9a469c | 4392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4393 | test $ac_status = 0; }; then : | |
4394 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4395 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4396 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4397 | # so that the user can short-circuit this test for compilers unknown to | |
4398 | # Autoconf. | |
4399 | for ac_file in $ac_files '' | |
b30fcfae | 4400 | do |
4401 | test -f "$ac_file" || continue | |
4402 | case $ac_file in | |
cd9a469c | 4403 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b30fcfae | 4404 | ;; |
4405 | [ab].out ) | |
4406 | # We found the default executable, but exeext='' is most | |
4407 | # certainly right. | |
4408 | break;; | |
4409 | *.* ) | |
cd9a469c | 4410 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4411 | then :; else | |
4412 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4413 | fi | |
4414 | # We set ac_cv_exeext here because the later test for it is not | |
4415 | # safe: cross compilers may not add the suffix if given an `-o' | |
4416 | # argument, so we may need to know it at that point already. | |
4417 | # Even if this section looks crufty: it has the advantage of | |
4418 | # actually working. | |
b30fcfae | 4419 | break;; |
4420 | * ) | |
4421 | break;; | |
4422 | esac | |
4423 | done | |
cd9a469c | 4424 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4425 | ||
b30fcfae | 4426 | else |
cd9a469c | 4427 | ac_file='' |
4428 | fi | |
cd9a469c | 4429 | if test -z "$ac_file"; then : |
f00f02a3 | 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4431 | $as_echo "no" >&6; } | |
4432 | $as_echo "$as_me: failed program was:" >&5 | |
b30fcfae | 4433 | sed 's/^/| /' conftest.$ac_ext >&5 |
4434 | ||
cd9a469c | 4435 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4436 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4437 | as_fn_error 77 "C compiler cannot create executables |
4438 | See \`config.log' for more details" "$LINENO" 5; } | |
4439 | else | |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4441 | $as_echo "yes" >&6; } | |
b30fcfae | 4442 | fi |
f00f02a3 | 4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4444 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4446 | $as_echo "$ac_file" >&6; } | |
b30fcfae | 4447 | ac_exeext=$ac_cv_exeext |
b30fcfae | 4448 | |
f00f02a3 | 4449 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b30fcfae | 4450 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4452 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4453 | if { { ac_try="$ac_link" | |
4454 | case "(($ac_try" in | |
4455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4456 | *) ac_try_echo=$ac_try;; | |
4457 | esac | |
4458 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4459 | $as_echo "$ac_try_echo"; } >&5 | |
4460 | (eval "$ac_link") 2>&5 | |
b30fcfae | 4461 | ac_status=$? |
cd9a469c | 4462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4463 | test $ac_status = 0; }; then : | |
b30fcfae | 4464 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4465 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4466 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4467 | # `rm'. | |
4468 | for ac_file in conftest.exe conftest conftest.*; do | |
4469 | test -f "$ac_file" || continue | |
4470 | case $ac_file in | |
cd9a469c | 4471 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b30fcfae | 4472 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b30fcfae | 4473 | break;; |
4474 | * ) break;; | |
4475 | esac | |
4476 | done | |
ae48753c | 4477 | else |
cd9a469c | 4478 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4479 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4480 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4481 | See \`config.log' for more details" "$LINENO" 5; } | |
b30fcfae | 4482 | fi |
f00f02a3 | 4483 | rm -f conftest conftest$ac_cv_exeext |
cd9a469c | 4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4485 | $as_echo "$ac_cv_exeext" >&6; } | |
b30fcfae | 4486 | |
4487 | rm -f conftest.$ac_ext | |
4488 | EXEEXT=$ac_cv_exeext | |
4489 | ac_exeext=$EXEEXT | |
f00f02a3 | 4490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4491 | /* end confdefs.h. */ | |
4492 | #include <stdio.h> | |
4493 | int | |
4494 | main () | |
4495 | { | |
4496 | FILE *f = fopen ("conftest.out", "w"); | |
4497 | return ferror (f) || fclose (f) != 0; | |
4498 | ||
4499 | ; | |
4500 | return 0; | |
4501 | } | |
4502 | _ACEOF | |
4503 | ac_clean_files="$ac_clean_files conftest.out" | |
4504 | # Check that the compiler produces executables we can run. If not, either | |
4505 | # the compiler is broken, or we cross compile. | |
4506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4507 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4508 | if test "$cross_compiling" != yes; then | |
4509 | { { ac_try="$ac_link" | |
4510 | case "(($ac_try" in | |
4511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4512 | *) ac_try_echo=$ac_try;; | |
4513 | esac | |
4514 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4515 | $as_echo "$ac_try_echo"; } >&5 | |
4516 | (eval "$ac_link") 2>&5 | |
4517 | ac_status=$? | |
4518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4519 | test $ac_status = 0; } | |
4520 | if { ac_try='./conftest$ac_cv_exeext' | |
4521 | { { case "(($ac_try" in | |
4522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4523 | *) ac_try_echo=$ac_try;; | |
4524 | esac | |
4525 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4526 | $as_echo "$ac_try_echo"; } >&5 | |
4527 | (eval "$ac_try") 2>&5 | |
4528 | ac_status=$? | |
4529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4530 | test $ac_status = 0; }; }; then | |
4531 | cross_compiling=no | |
4532 | else | |
4533 | if test "$cross_compiling" = maybe; then | |
4534 | cross_compiling=yes | |
4535 | else | |
4536 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4537 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4538 | as_fn_error $? "cannot run C compiled programs. | |
4539 | If you meant to cross compile, use \`--host'. | |
4540 | See \`config.log' for more details" "$LINENO" 5; } | |
4541 | fi | |
4542 | fi | |
4543 | fi | |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4545 | $as_echo "$cross_compiling" >&6; } | |
4546 | ||
4547 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4548 | ac_clean_files=$ac_clean_files_save | |
cd9a469c | 4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4550 | $as_echo_n "checking for suffix of object files... " >&6; } | |
f00f02a3 | 4551 | if ${ac_cv_objext+:} false; then : |
cd9a469c | 4552 | $as_echo_n "(cached) " >&6 |
b30fcfae | 4553 | else |
cd9a469c | 4554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4555 | /* end confdefs.h. */ |
4556 | ||
4557 | int | |
4558 | main () | |
4559 | { | |
4560 | ||
4561 | ; | |
4562 | return 0; | |
4563 | } | |
4564 | _ACEOF | |
4565 | rm -f conftest.o conftest.obj | |
cd9a469c | 4566 | if { { ac_try="$ac_compile" |
4567 | case "(($ac_try" in | |
4568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4569 | *) ac_try_echo=$ac_try;; | |
4570 | esac | |
4571 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4572 | $as_echo "$ac_try_echo"; } >&5 | |
4573 | (eval "$ac_compile") 2>&5 | |
b30fcfae | 4574 | ac_status=$? |
cd9a469c | 4575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4576 | test $ac_status = 0; }; then : | |
4577 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4578 | test -f "$ac_file" || continue; | |
b30fcfae | 4579 | case $ac_file in |
cd9a469c | 4580 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b30fcfae | 4581 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4582 | break;; | |
4583 | esac | |
4584 | done | |
4585 | else | |
cd9a469c | 4586 | $as_echo "$as_me: failed program was:" >&5 |
b30fcfae | 4587 | sed 's/^/| /' conftest.$ac_ext >&5 |
4588 | ||
cd9a469c | 4589 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4590 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4591 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4592 | See \`config.log' for more details" "$LINENO" 5; } | |
b30fcfae | 4593 | fi |
b30fcfae | 4594 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4595 | fi | |
cd9a469c | 4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4597 | $as_echo "$ac_cv_objext" >&6; } | |
b30fcfae | 4598 | OBJEXT=$ac_cv_objext |
4599 | ac_objext=$OBJEXT | |
cd9a469c | 4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4601 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
f00f02a3 | 4602 | if ${ac_cv_c_compiler_gnu+:} false; then : |
cd9a469c | 4603 | $as_echo_n "(cached) " >&6 |
b30fcfae | 4604 | else |
cd9a469c | 4605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4606 | /* end confdefs.h. */ |
4607 | ||
4608 | int | |
4609 | main () | |
4610 | { | |
4611 | #ifndef __GNUC__ | |
4612 | choke me | |
4613 | #endif | |
4614 | ||
4615 | ; | |
4616 | return 0; | |
4617 | } | |
4618 | _ACEOF | |
cd9a469c | 4619 | if ac_fn_c_try_compile "$LINENO"; then : |
b30fcfae | 4620 | ac_compiler_gnu=yes |
4621 | else | |
cd9a469c | 4622 | ac_compiler_gnu=no |
b30fcfae | 4623 | fi |
cd9a469c | 4624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4625 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4626 | ||
4627 | fi | |
cd9a469c | 4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4629 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4630 | if test $ac_compiler_gnu = yes; then | |
4631 | GCC=yes | |
4632 | else | |
4633 | GCC= | |
4634 | fi | |
b30fcfae | 4635 | ac_test_CFLAGS=${CFLAGS+set} |
4636 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4638 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
f00f02a3 | 4639 | if ${ac_cv_prog_cc_g+:} false; then : |
cd9a469c | 4640 | $as_echo_n "(cached) " >&6 |
4641 | else | |
4642 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4643 | ac_c_werror_flag=yes | |
4644 | ac_cv_prog_cc_g=no | |
4645 | CFLAGS="-g" | |
4646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 4647 | /* end confdefs.h. */ |
4648 | ||
4649 | int | |
4650 | main () | |
4651 | { | |
4652 | ||
4653 | ; | |
4654 | return 0; | |
4655 | } | |
4656 | _ACEOF | |
cd9a469c | 4657 | if ac_fn_c_try_compile "$LINENO"; then : |
8e1fea1a | 4658 | ac_cv_prog_cc_g=yes |
4659 | else | |
cd9a469c | 4660 | CFLAGS="" |
4661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4662 | /* end confdefs.h. */ | |
4663 | ||
4664 | int | |
4665 | main () | |
4666 | { | |
4667 | ||
4668 | ; | |
4669 | return 0; | |
4670 | } | |
4671 | _ACEOF | |
4672 | if ac_fn_c_try_compile "$LINENO"; then : | |
4673 | ||
4674 | else | |
4675 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4676 | CFLAGS="-g" | |
4677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4678 | /* end confdefs.h. */ | |
ae48753c | 4679 | |
cd9a469c | 4680 | int |
4681 | main () | |
4682 | { | |
4683 | ||
4684 | ; | |
4685 | return 0; | |
4686 | } | |
4687 | _ACEOF | |
4688 | if ac_fn_c_try_compile "$LINENO"; then : | |
4689 | ac_cv_prog_cc_g=yes | |
4690 | fi | |
4691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a83ffacf | 4692 | fi |
cd9a469c | 4693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4694 | fi |
cd9a469c | 4695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4696 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4697 | fi | |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4699 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
8e1fea1a | 4700 | if test "$ac_test_CFLAGS" = set; then |
b30fcfae | 4701 | CFLAGS=$ac_save_CFLAGS |
8e1fea1a | 4702 | elif test $ac_cv_prog_cc_g = yes; then |
4703 | if test "$GCC" = yes; then | |
4704 | CFLAGS="-g -O2" | |
4705 | else | |
4706 | CFLAGS="-g" | |
4707 | fi | |
4708 | else | |
4709 | if test "$GCC" = yes; then | |
4710 | CFLAGS="-O2" | |
4711 | else | |
4712 | CFLAGS= | |
4713 | fi | |
4714 | fi | |
cd9a469c | 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4716 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
f00f02a3 | 4717 | if ${ac_cv_prog_cc_c89+:} false; then : |
cd9a469c | 4718 | $as_echo_n "(cached) " >&6 |
b30fcfae | 4719 | else |
cd9a469c | 4720 | ac_cv_prog_cc_c89=no |
b30fcfae | 4721 | ac_save_CC=$CC |
cd9a469c | 4722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4723 | /* end confdefs.h. */ |
4724 | #include <stdarg.h> | |
4725 | #include <stdio.h> | |
f00f02a3 | 4726 | struct stat; |
b30fcfae | 4727 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4728 | struct buf { int x; }; | |
4729 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4730 | static char *e (p, i) | |
4731 | char **p; | |
4732 | int i; | |
4733 | { | |
4734 | return p[i]; | |
4735 | } | |
4736 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4737 | { | |
4738 | char *s; | |
4739 | va_list v; | |
4740 | va_start (v,p); | |
4741 | s = g (p, va_arg (v,int)); | |
4742 | va_end (v); | |
4743 | return s; | |
4744 | } | |
4745 | ||
4746 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4747 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4748 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4749 | as 'x'. The following induces an error, until -std is added to get |
b30fcfae | 4750 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4751 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4752 | that's true only with -std. */ |
b30fcfae | 4753 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4754 | ||
cd9a469c | 4755 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4756 | inside strings and character constants. */ | |
4757 | #define FOO(x) 'x' | |
4758 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4759 | ||
b30fcfae | 4760 | int test (int i, double x); |
4761 | struct s1 {int (*f) (int a);}; | |
4762 | struct s2 {int (*f) (double a);}; | |
4763 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4764 | int argc; | |
4765 | char **argv; | |
4766 | int | |
4767 | main () | |
4768 | { | |
4769 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4770 | ; | |
4771 | return 0; | |
4772 | } | |
4773 | _ACEOF | |
cd9a469c | 4774 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4775 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b30fcfae | 4776 | do |
4777 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4778 | if ac_fn_c_try_compile "$LINENO"; then : |
4779 | ac_cv_prog_cc_c89=$ac_arg | |
b30fcfae | 4780 | fi |
cd9a469c | 4781 | rm -f core conftest.err conftest.$ac_objext |
4782 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b30fcfae | 4783 | done |
cd9a469c | 4784 | rm -f conftest.$ac_ext |
b30fcfae | 4785 | CC=$ac_save_CC |
4786 | ||
4787 | fi | |
cd9a469c | 4788 | # AC_CACHE_VAL |
4789 | case "x$ac_cv_prog_cc_c89" in | |
4790 | x) | |
4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4792 | $as_echo "none needed" >&6; } ;; | |
4793 | xno) | |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4795 | $as_echo "unsupported" >&6; } ;; | |
b30fcfae | 4796 | *) |
cd9a469c | 4797 | CC="$CC $ac_cv_prog_cc_c89" |
4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4799 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b30fcfae | 4800 | esac |
cd9a469c | 4801 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b30fcfae | 4802 | |
5084f823 | 4803 | fi |
4804 | ||
5084f823 | 4805 | ac_ext=c |
4806 | ac_cpp='$CPP $CPPFLAGS' | |
4807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4810 | ||
cd9a469c | 4811 | ac_ext=cpp |
5084f823 | 4812 | ac_cpp='$CXXCPP $CPPFLAGS' |
4813 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4814 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4815 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
cd9a469c | 4816 | if test -z "$CXX"; then |
4817 | if test -n "$CCC"; then | |
4818 | CXX=$CCC | |
4819 | else | |
4820 | if test -n "$ac_tool_prefix"; then | |
4821 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5084f823 | 4822 | do |
4823 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4824 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4826 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4827 | if ${ac_cv_prog_CXX+:} false; then : |
cd9a469c | 4828 | $as_echo_n "(cached) " >&6 |
5084f823 | 4829 | else |
4830 | if test -n "$CXX"; then | |
4831 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4832 | else | |
4833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4834 | for as_dir in $PATH | |
4835 | do | |
4836 | IFS=$as_save_IFS | |
4837 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4838 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4839 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5084f823 | 4840 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
cd9a469c | 4841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5084f823 | 4842 | break 2 |
4843 | fi | |
4844 | done | |
cd9a469c | 4845 | done |
4846 | IFS=$as_save_IFS | |
8e1fea1a | 4847 | |
eae5b2bc | 4848 | fi |
4849 | fi | |
4850 | CXX=$ac_cv_prog_CXX | |
4851 | if test -n "$CXX"; then | |
cd9a469c | 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4853 | $as_echo "$CXX" >&6; } | |
eae5b2bc | 4854 | else |
cd9a469c | 4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4856 | $as_echo "no" >&6; } | |
eae5b2bc | 4857 | fi |
4858 | ||
cd9a469c | 4859 | |
eae5b2bc | 4860 | test -n "$CXX" && break |
4861 | done | |
4862 | fi | |
4863 | if test -z "$CXX"; then | |
4864 | ac_ct_CXX=$CXX | |
cd9a469c | 4865 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
eae5b2bc | 4866 | do |
4867 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4868 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4870 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4871 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
cd9a469c | 4872 | $as_echo_n "(cached) " >&6 |
eae5b2bc | 4873 | else |
4874 | if test -n "$ac_ct_CXX"; then | |
4875 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4876 | else | |
4877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4878 | for as_dir in $PATH | |
4879 | do | |
4880 | IFS=$as_save_IFS | |
4881 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4882 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eae5b2bc | 4884 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
cd9a469c | 4885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
eae5b2bc | 4886 | break 2 |
4887 | fi | |
4888 | done | |
cd9a469c | 4889 | done |
4890 | IFS=$as_save_IFS | |
eae5b2bc | 4891 | |
4892 | fi | |
4893 | fi | |
4894 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4895 | if test -n "$ac_ct_CXX"; then | |
cd9a469c | 4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4897 | $as_echo "$ac_ct_CXX" >&6; } | |
eae5b2bc | 4898 | else |
cd9a469c | 4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4900 | $as_echo "no" >&6; } | |
eae5b2bc | 4901 | fi |
4902 | ||
cd9a469c | 4903 | |
eae5b2bc | 4904 | test -n "$ac_ct_CXX" && break |
4905 | done | |
eae5b2bc | 4906 | |
cd9a469c | 4907 | if test "x$ac_ct_CXX" = x; then |
4908 | CXX="g++" | |
4909 | else | |
4910 | case $cross_compiling:$ac_tool_warned in | |
4911 | yes:) | |
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4913 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4914 | ac_tool_warned=yes ;; | |
4915 | esac | |
4916 | CXX=$ac_ct_CXX | |
4917 | fi | |
eae5b2bc | 4918 | fi |
4919 | ||
cd9a469c | 4920 | fi |
4921 | fi | |
eae5b2bc | 4922 | # Provide some information about the compiler. |
cd9a469c | 4923 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4924 | set X $ac_compile | |
4925 | ac_compiler=$2 | |
4926 | for ac_option in --version -v -V -qversion; do | |
4927 | { { ac_try="$ac_compiler $ac_option >&5" | |
4928 | case "(($ac_try" in | |
4929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4930 | *) ac_try_echo=$ac_try;; | |
4931 | esac | |
4932 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4933 | $as_echo "$ac_try_echo"; } >&5 | |
4934 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
eae5b2bc | 4935 | ac_status=$? |
cd9a469c | 4936 | if test -s conftest.err; then |
4937 | sed '10a\ | |
4938 | ... rest of stderr output deleted ... | |
4939 | 10q' conftest.err >conftest.er1 | |
4940 | cat conftest.er1 >&5 | |
cd9a469c | 4941 | fi |
f00f02a3 | 4942 | rm -f conftest.er1 conftest.err |
cd9a469c | 4943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4944 | test $ac_status = 0; } | |
4945 | done | |
eae5b2bc | 4946 | |
cd9a469c | 4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4948 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
f00f02a3 | 4949 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
cd9a469c | 4950 | $as_echo_n "(cached) " >&6 |
eae5b2bc | 4951 | else |
cd9a469c | 4952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eae5b2bc | 4953 | /* end confdefs.h. */ |
4954 | ||
4955 | int | |
4956 | main () | |
4957 | { | |
4958 | #ifndef __GNUC__ | |
4959 | choke me | |
4960 | #endif | |
4961 | ||
4962 | ; | |
4963 | return 0; | |
4964 | } | |
4965 | _ACEOF | |
cd9a469c | 4966 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 4967 | ac_compiler_gnu=yes |
4968 | else | |
cd9a469c | 4969 | ac_compiler_gnu=no |
eae5b2bc | 4970 | fi |
cd9a469c | 4971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eae5b2bc | 4972 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4973 | ||
4974 | fi | |
cd9a469c | 4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4976 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4977 | if test $ac_compiler_gnu = yes; then | |
4978 | GXX=yes | |
4979 | else | |
4980 | GXX= | |
4981 | fi | |
eae5b2bc | 4982 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4983 | ac_save_CXXFLAGS=$CXXFLAGS | |
cd9a469c | 4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4985 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
f00f02a3 | 4986 | if ${ac_cv_prog_cxx_g+:} false; then : |
cd9a469c | 4987 | $as_echo_n "(cached) " >&6 |
4988 | else | |
4989 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4990 | ac_cxx_werror_flag=yes | |
4991 | ac_cv_prog_cxx_g=no | |
4992 | CXXFLAGS="-g" | |
4993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4994 | /* end confdefs.h. */ |
4995 | ||
4996 | int | |
4997 | main () | |
4998 | { | |
4999 | ||
5000 | ; | |
5001 | return 0; | |
5002 | } | |
5003 | _ACEOF | |
cd9a469c | 5004 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 5005 | ac_cv_prog_cxx_g=yes |
5006 | else | |
cd9a469c | 5007 | CXXFLAGS="" |
5008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 5009 | /* end confdefs.h. */ |
cd9a469c | 5010 | |
eae5b2bc | 5011 | int |
5012 | main () | |
5013 | { | |
cd9a469c | 5014 | |
eae5b2bc | 5015 | ; |
5016 | return 0; | |
5017 | } | |
5018 | _ACEOF | |
cd9a469c | 5019 | if ac_fn_cxx_try_compile "$LINENO"; then : |
2f8725b0 | 5020 | |
cd9a469c | 5021 | else |
5022 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5023 | CXXFLAGS="-g" | |
5024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 5025 | /* end confdefs.h. */ |
cd9a469c | 5026 | |
eae5b2bc | 5027 | int |
5028 | main () | |
5029 | { | |
cd9a469c | 5030 | |
eae5b2bc | 5031 | ; |
5032 | return 0; | |
5033 | } | |
5034 | _ACEOF | |
cd9a469c | 5035 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5036 | ac_cv_prog_cxx_g=yes | |
570af75a | 5037 | fi |
cd9a469c | 5038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5039 | fi | |
5040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5041 | fi | |
5042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5043 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5044 | fi | |
5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5046 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5047 | if test "$ac_test_CXXFLAGS" = set; then | |
5048 | CXXFLAGS=$ac_save_CXXFLAGS | |
5049 | elif test $ac_cv_prog_cxx_g = yes; then | |
5050 | if test "$GXX" = yes; then | |
5051 | CXXFLAGS="-g -O2" | |
5052 | else | |
5053 | CXXFLAGS="-g" | |
5054 | fi | |
5055 | else | |
5056 | if test "$GXX" = yes; then | |
5057 | CXXFLAGS="-O2" | |
5058 | else | |
5059 | CXXFLAGS= | |
5060 | fi | |
eae5b2bc | 5061 | fi |
eae5b2bc | 5062 | ac_ext=c |
5063 | ac_cpp='$CPP $CPPFLAGS' | |
5064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5067 | ||
5068 | ||
5069 | # We must set the default linker to the linker used by gcc for the correct | |
5070 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5071 | # set the LD default to the ld used by gcc. | |
5072 | if test -z "$LD"; then | |
5073 | if test "$GCC" = yes; then | |
5074 | case $build in | |
5075 | *-*-mingw*) | |
5076 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5077 | *) | |
5078 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5079 | esac | |
5080 | case $gcc_prog_ld in | |
5081 | # Accept absolute paths. | |
5082 | [\\/]* | [A-Za-z]:[\\/]*) | |
5083 | LD="$gcc_prog_ld" ;; | |
5084 | esac | |
5085 | fi | |
2f8725b0 | 5086 | fi |
5087 | ||
13687c85 | 5088 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5089 | have_static_libs=no | |
5090 | if test "$GCC" = yes; then | |
5091 | saved_LDFLAGS="$LDFLAGS" | |
5092 | ||
5093 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5095 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5096 | ac_ext=cpp | |
5097 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5098 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5099 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5100 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5101 | ||
5102 | ||
5103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5104 | /* end confdefs.h. */ | |
74f1ea54 | 5105 | |
5106 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5107 | #error -static-libstdc++ not implemented | |
5108 | #endif | |
13687c85 | 5109 | int main() {} |
5110 | _ACEOF | |
5111 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5113 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5114 | else | |
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5116 | $as_echo "no" >&6; } | |
5117 | fi | |
5118 | rm -f core conftest.err conftest.$ac_objext \ | |
5119 | conftest$ac_exeext conftest.$ac_ext | |
5120 | ac_ext=c | |
5121 | ac_cpp='$CPP $CPPFLAGS' | |
5122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5125 | ||
5126 | ||
5127 | LDFLAGS="$saved_LDFLAGS" | |
5128 | fi | |
5129 | ||
2f8725b0 | 5130 | |
5131 | ||
8e1fea1a | 5132 | |
b30fcfae | 5133 | if test -n "$ac_tool_prefix"; then |
5134 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
8e1fea1a | 5135 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
cd9a469c | 5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5137 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5138 | if ${ac_cv_prog_GNATBIND+:} false; then : |
cd9a469c | 5139 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 5140 | else |
5141 | if test -n "$GNATBIND"; then | |
5142 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5143 | else | |
b30fcfae | 5144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5145 | for as_dir in $PATH | |
5146 | do | |
5147 | IFS=$as_save_IFS | |
5148 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5149 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 5151 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
cd9a469c | 5152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5153 | break 2 |
5154 | fi | |
5155 | done | |
cd9a469c | 5156 | done |
5157 | IFS=$as_save_IFS | |
b30fcfae | 5158 | |
8e1fea1a | 5159 | fi |
5160 | fi | |
b30fcfae | 5161 | GNATBIND=$ac_cv_prog_GNATBIND |
8e1fea1a | 5162 | if test -n "$GNATBIND"; then |
cd9a469c | 5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5164 | $as_echo "$GNATBIND" >&6; } | |
8e1fea1a | 5165 | else |
cd9a469c | 5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5167 | $as_echo "no" >&6; } | |
8e1fea1a | 5168 | fi |
5169 | ||
cd9a469c | 5170 | |
b30fcfae | 5171 | fi |
8e1fea1a | 5172 | if test -z "$ac_cv_prog_GNATBIND"; then |
b30fcfae | 5173 | ac_ct_GNATBIND=$GNATBIND |
8e1fea1a | 5174 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5175 | set dummy gnatbind; ac_word=$2 | |
cd9a469c | 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5177 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5178 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
cd9a469c | 5179 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 5180 | else |
b30fcfae | 5181 | if test -n "$ac_ct_GNATBIND"; then |
5182 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
8e1fea1a | 5183 | else |
b30fcfae | 5184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5185 | for as_dir in $PATH | |
5186 | do | |
5187 | IFS=$as_save_IFS | |
5188 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5189 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 5191 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
cd9a469c | 5192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5193 | break 2 |
5194 | fi | |
5195 | done | |
cd9a469c | 5196 | done |
5197 | IFS=$as_save_IFS | |
b30fcfae | 5198 | |
8e1fea1a | 5199 | fi |
5200 | fi | |
b30fcfae | 5201 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5202 | if test -n "$ac_ct_GNATBIND"; then | |
cd9a469c | 5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5204 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
8e1fea1a | 5205 | else |
cd9a469c | 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5207 | $as_echo "no" >&6; } | |
8e1fea1a | 5208 | fi |
5209 | ||
cd9a469c | 5210 | if test "x$ac_ct_GNATBIND" = x; then |
5211 | GNATBIND="no" | |
5212 | else | |
5213 | case $cross_compiling:$ac_tool_warned in | |
5214 | yes:) | |
5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5216 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5217 | ac_tool_warned=yes ;; | |
5218 | esac | |
5219 | GNATBIND=$ac_ct_GNATBIND | |
5220 | fi | |
8e1fea1a | 5221 | else |
b30fcfae | 5222 | GNATBIND="$ac_cv_prog_GNATBIND" |
8e1fea1a | 5223 | fi |
5224 | ||
b30fcfae | 5225 | if test -n "$ac_tool_prefix"; then |
5226 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
a18b2c54 | 5227 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
cd9a469c | 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5229 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5230 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
cd9a469c | 5231 | $as_echo_n "(cached) " >&6 |
a18b2c54 | 5232 | else |
5233 | if test -n "$GNATMAKE"; then | |
5234 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5235 | else | |
b30fcfae | 5236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5237 | for as_dir in $PATH | |
5238 | do | |
5239 | IFS=$as_save_IFS | |
5240 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5241 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5242 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 5243 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
cd9a469c | 5244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5245 | break 2 |
5246 | fi | |
5247 | done | |
cd9a469c | 5248 | done |
5249 | IFS=$as_save_IFS | |
b30fcfae | 5250 | |
a18b2c54 | 5251 | fi |
5252 | fi | |
b30fcfae | 5253 | GNATMAKE=$ac_cv_prog_GNATMAKE |
a18b2c54 | 5254 | if test -n "$GNATMAKE"; then |
cd9a469c | 5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5256 | $as_echo "$GNATMAKE" >&6; } | |
a18b2c54 | 5257 | else |
cd9a469c | 5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5259 | $as_echo "no" >&6; } | |
a18b2c54 | 5260 | fi |
5261 | ||
cd9a469c | 5262 | |
b30fcfae | 5263 | fi |
a18b2c54 | 5264 | if test -z "$ac_cv_prog_GNATMAKE"; then |
b30fcfae | 5265 | ac_ct_GNATMAKE=$GNATMAKE |
a18b2c54 | 5266 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5267 | set dummy gnatmake; ac_word=$2 | |
cd9a469c | 5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5269 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5270 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
cd9a469c | 5271 | $as_echo_n "(cached) " >&6 |
a18b2c54 | 5272 | else |
b30fcfae | 5273 | if test -n "$ac_ct_GNATMAKE"; then |
5274 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
a18b2c54 | 5275 | else |
b30fcfae | 5276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5277 | for as_dir in $PATH | |
5278 | do | |
5279 | IFS=$as_save_IFS | |
5280 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5281 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 5283 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
cd9a469c | 5284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5285 | break 2 |
5286 | fi | |
5287 | done | |
cd9a469c | 5288 | done |
5289 | IFS=$as_save_IFS | |
b30fcfae | 5290 | |
a18b2c54 | 5291 | fi |
5292 | fi | |
b30fcfae | 5293 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5294 | if test -n "$ac_ct_GNATMAKE"; then | |
cd9a469c | 5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5296 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
a18b2c54 | 5297 | else |
cd9a469c | 5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5299 | $as_echo "no" >&6; } | |
a18b2c54 | 5300 | fi |
5301 | ||
cd9a469c | 5302 | if test "x$ac_ct_GNATMAKE" = x; then |
5303 | GNATMAKE="no" | |
5304 | else | |
5305 | case $cross_compiling:$ac_tool_warned in | |
5306 | yes:) | |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5308 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5309 | ac_tool_warned=yes ;; | |
5310 | esac | |
5311 | GNATMAKE=$ac_ct_GNATMAKE | |
5312 | fi | |
a18b2c54 | 5313 | else |
b30fcfae | 5314 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
a18b2c54 | 5315 | fi |
5316 | ||
cd9a469c | 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5318 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
f00f02a3 | 5319 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
cd9a469c | 5320 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 5321 | else |
5322 | cat >conftest.adb <<EOF | |
5323 | procedure conftest is begin null; end conftest; | |
5324 | EOF | |
5325 | acx_cv_cc_gcc_supports_ada=no | |
5326 | # There is a bug in old released versions of GCC which causes the | |
5327 | # driver to exit successfully when the appropriate language module | |
5328 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5329 | # Therefore we must check for the error message as well as an | |
5330 | # unsuccessful exit. | |
216de822 | 5331 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5332 | # given a .adb file, but produce no object file. So we must check | |
5333 | # if an object file was really produced to guard against this. | |
8e1fea1a | 5334 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
216de822 | 5335 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
8e1fea1a | 5336 | acx_cv_cc_gcc_supports_ada=yes |
8e1fea1a | 5337 | fi |
5338 | rm -f conftest.* | |
5339 | fi | |
cd9a469c | 5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5341 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
8e1fea1a | 5342 | |
9d5fd7d0 | 5343 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
8e1fea1a | 5344 | have_gnat=yes |
5345 | else | |
5346 | have_gnat=no | |
5347 | fi | |
5348 | ||
cd9a469c | 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5350 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
f00f02a3 | 5351 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
cd9a469c | 5352 | $as_echo_n "(cached) " >&6 |
7bcc3b4a | 5353 | else |
5354 | echo abfoo >t1 | |
5355 | echo cdfoo >t2 | |
efbca99c | 5356 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
697dfd2c | 5357 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5358 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5359 | : | |
5360 | else | |
5361 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5362 | fi | |
5363 | fi | |
7bcc3b4a | 5364 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5365 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
697dfd2c | 5366 | : |
7bcc3b4a | 5367 | else |
5368 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5369 | fi | |
5370 | fi | |
5371 | rm t1 t2 | |
5372 | ||
5373 | fi | |
cd9a469c | 5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5375 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
7bcc3b4a | 5376 | do_compare="$gcc_cv_prog_cmp_skip" |
5377 | ||
5378 | ||
8e1fea1a | 5379 | |
6c59dfa4 | 5380 | # Check whether --enable-bootstrap was given. |
5381 | if test "${enable_bootstrap+set}" = set; then : | |
5382 | enableval=$enable_bootstrap; | |
5383 | else | |
5384 | enable_bootstrap=default | |
5385 | fi | |
5386 | ||
5387 | ||
5388 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
d7c9b4c1 | 5389 | if test -r $srcdir/gcc/configure; then |
5390 | have_compiler=yes | |
5391 | else | |
5392 | have_compiler=no | |
5393 | fi | |
6c59dfa4 | 5394 | |
5395 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5396 | *:*:*:no) ;; | |
5397 | ||
5398 | # Default behavior. Enable bootstrap if we have a compiler | |
5399 | # and we are in a native configuration. | |
5400 | yes:$build:$build:default) | |
5401 | enable_bootstrap=yes ;; | |
5402 | ||
5403 | *:*:*:default) | |
5404 | enable_bootstrap=no ;; | |
5405 | ||
5406 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5407 | yes:$build:$build:yes) | |
5408 | ;; | |
5409 | ||
5410 | # Other configurations, but we have a compiler. Assume the user knows | |
5411 | # what he's doing. | |
5412 | yes:*:*:yes) | |
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5414 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5415 | ;; | |
5416 | ||
5417 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5418 | no:*:*:yes) | |
f00f02a3 | 5419 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
6c59dfa4 | 5420 | |
5421 | # Fail if wrong command line | |
5422 | *) | |
f00f02a3 | 5423 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
6c59dfa4 | 5424 | ;; |
5425 | esac | |
5426 | ||
27590679 | 5427 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5428 | # C++98 compiler can still start the bootstrap. | |
5429 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
dce53dbc | 5430 | CXX="$CXX -std=gnu++98" |
27590679 | 5431 | fi |
5432 | ||
c3fc6a63 | 5433 | # Used for setting $lt_cv_objdir |
5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5435 | $as_echo_n "checking for objdir... " >&6; } | |
f00f02a3 | 5436 | if ${lt_cv_objdir+:} false; then : |
c3fc6a63 | 5437 | $as_echo_n "(cached) " >&6 |
5438 | else | |
5439 | rm -f .libs 2>/dev/null | |
5440 | mkdir .libs 2>/dev/null | |
5441 | if test -d .libs; then | |
5442 | lt_cv_objdir=.libs | |
5443 | else | |
5444 | # MS-DOS does not allow filenames that begin with a dot. | |
5445 | lt_cv_objdir=_libs | |
5446 | fi | |
5447 | rmdir .libs 2>/dev/null | |
5448 | fi | |
5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5450 | $as_echo "$lt_cv_objdir" >&6; } | |
5451 | objdir=$lt_cv_objdir | |
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | cat >>confdefs.h <<_ACEOF | |
5458 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5459 | _ACEOF | |
5460 | ||
5461 | ||
5462 | ||
7601a55c | 5463 | # Check for GMP, MPFR and MPC |
16de6a81 | 5464 | gmplibs="-lmpc -lmpfr -lgmp" |
4ee9c684 | 5465 | gmpinc= |
d45318b3 | 5466 | have_gmp=no |
7601a55c | 5467 | |
5468 | # Specify a location for mpc | |
5469 | # check for this first so it ends up on the link line before mpfr. | |
5470 | ||
cd9a469c | 5471 | # Check whether --with-mpc was given. |
5472 | if test "${with_mpc+set}" = set; then : | |
5473 | withval=$with_mpc; | |
5474 | fi | |
7601a55c | 5475 | |
7601a55c | 5476 | |
73f813e1 | 5477 | # Check whether --with-mpc-include was given. |
cd9a469c | 5478 | if test "${with_mpc_include+set}" = set; then : |
5479 | withval=$with_mpc_include; | |
5480 | fi | |
7601a55c | 5481 | |
7601a55c | 5482 | |
73f813e1 | 5483 | # Check whether --with-mpc-lib was given. |
cd9a469c | 5484 | if test "${with_mpc_lib+set}" = set; then : |
5485 | withval=$with_mpc_lib; | |
5486 | fi | |
7601a55c | 5487 | |
7601a55c | 5488 | |
5489 | if test "x$with_mpc" != x; then | |
16de6a81 | 5490 | gmplibs="-L$with_mpc/lib $gmplibs" |
5491 | gmpinc="-I$with_mpc/include $gmpinc" | |
7601a55c | 5492 | fi |
5493 | if test "x$with_mpc_include" != x; then | |
16de6a81 | 5494 | gmpinc="-I$with_mpc_include $gmpinc" |
7601a55c | 5495 | fi |
5496 | if test "x$with_mpc_lib" != x; then | |
16de6a81 | 5497 | gmplibs="-L$with_mpc_lib $gmplibs" |
7601a55c | 5498 | fi |
5499 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
c3fc6a63 | 5500 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
16de6a81 | 5501 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
7601a55c | 5502 | # Do not test the mpc version. Assume that it is sufficient, since |
5503 | # it is in the source tree, and the library has not been built yet | |
5504 | # but it would be included on the link line in the version check below | |
5505 | # hence making the test fail. | |
16de6a81 | 5506 | have_gmp=yes |
7601a55c | 5507 | fi |
d45318b3 | 5508 | |
5ca838b8 | 5509 | # Specify a location for mpfr |
5510 | # check for this first so it ends up on the link line before gmp. | |
b30fcfae | 5511 | |
cd9a469c | 5512 | # Check whether --with-mpfr-dir was given. |
5513 | if test "${with_mpfr_dir+set}" = set; then : | |
f00f02a3 | 5514 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
cd9a469c | 5515 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5516 | fi | |
5517 | ||
5ca838b8 | 5518 | |
5519 | ||
cd9a469c | 5520 | # Check whether --with-mpfr was given. |
5521 | if test "${with_mpfr+set}" = set; then : | |
5522 | withval=$with_mpfr; | |
5523 | fi | |
b30fcfae | 5524 | |
5ca838b8 | 5525 | |
73f813e1 | 5526 | # Check whether --with-mpfr-include was given. |
cd9a469c | 5527 | if test "${with_mpfr_include+set}" = set; then : |
5528 | withval=$with_mpfr_include; | |
5529 | fi | |
b30fcfae | 5530 | |
a5144c1d | 5531 | |
73f813e1 | 5532 | # Check whether --with-mpfr-lib was given. |
cd9a469c | 5533 | if test "${with_mpfr_lib+set}" = set; then : |
5534 | withval=$with_mpfr_lib; | |
5535 | fi | |
a5144c1d | 5536 | |
5ca838b8 | 5537 | |
5538 | if test "x$with_mpfr" != x; then | |
5539 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
16de6a81 | 5540 | gmpinc="-I$with_mpfr/include $gmpinc" |
5ca838b8 | 5541 | fi |
a5144c1d | 5542 | if test "x$with_mpfr_include" != x; then |
16de6a81 | 5543 | gmpinc="-I$with_mpfr_include $gmpinc" |
a5144c1d | 5544 | fi |
5545 | if test "x$with_mpfr_lib" != x; then | |
5546 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5547 | fi | |
d45318b3 | 5548 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
efa1150d | 5549 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5550 | if ! test -d ${srcdir}/mpfr/src; then | |
f00f02a3 | 5551 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
efa1150d | 5552 | fi |
4b2246ef | 5553 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5554 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5555 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
d45318b3 | 5556 | # Do not test the mpfr version. Assume that it is sufficient, since |
5557 | # it is in the source tree, and the library has not been built yet | |
5558 | # but it would be included on the link line in the version check below | |
5559 | # hence making the test fail. | |
5560 | have_gmp=yes | |
5561 | fi | |
5ca838b8 | 5562 | |
4ee9c684 | 5563 | # Specify a location for gmp |
b30fcfae | 5564 | |
cd9a469c | 5565 | # Check whether --with-gmp-dir was given. |
5566 | if test "${with_gmp_dir+set}" = set; then : | |
f00f02a3 | 5567 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
cd9a469c | 5568 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5569 | fi | |
5570 | ||
4ee9c684 | 5571 | |
4ee9c684 | 5572 | |
cd9a469c | 5573 | # Check whether --with-gmp was given. |
5574 | if test "${with_gmp+set}" = set; then : | |
5575 | withval=$with_gmp; | |
5576 | fi | |
b30fcfae | 5577 | |
4ee9c684 | 5578 | |
73f813e1 | 5579 | # Check whether --with-gmp-include was given. |
cd9a469c | 5580 | if test "${with_gmp_include+set}" = set; then : |
5581 | withval=$with_gmp_include; | |
5582 | fi | |
b30fcfae | 5583 | |
a5144c1d | 5584 | |
73f813e1 | 5585 | # Check whether --with-gmp-lib was given. |
cd9a469c | 5586 | if test "${with_gmp_lib+set}" = set; then : |
5587 | withval=$with_gmp_lib; | |
5588 | fi | |
a5144c1d | 5589 | |
5590 | ||
4ee9c684 | 5591 | |
5ca838b8 | 5592 | if test "x$with_gmp" != x; then |
5593 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5594 | gmpinc="-I$with_gmp/include $gmpinc" | |
4ee9c684 | 5595 | fi |
a5144c1d | 5596 | if test "x$with_gmp_include" != x; then |
5597 | gmpinc="-I$with_gmp_include $gmpinc" | |
5598 | fi | |
5599 | if test "x$with_gmp_lib" != x; then | |
5600 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5601 | fi | |
d45318b3 | 5602 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
c3fc6a63 | 5603 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
d45318b3 | 5604 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
b9a8e4c4 | 5605 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
c3fc6a63 | 5606 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
e4128452 | 5607 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
d45318b3 | 5608 | # Do not test the gmp version. Assume that it is sufficient, since |
5609 | # it is in the source tree, and the library has not been built yet | |
5610 | # but it would be included on the link line in the version check below | |
5611 | # hence making the test fail. | |
5612 | have_gmp=yes | |
5613 | fi | |
4ee9c684 | 5614 | |
16c9b2e3 | 5615 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
d45318b3 | 5616 | have_gmp=yes |
5617 | saved_CFLAGS="$CFLAGS" | |
5618 | CFLAGS="$CFLAGS $gmpinc" | |
17b6993a | 5619 | # Check for the recommended and required versions of GMP. |
5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5621 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4fd35f21 | 5622 | |
5623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17b6993a | 5624 | /* end confdefs.h. */ |
5625 | #include "gmp.h" | |
5626 | int | |
5627 | main () | |
5628 | { | |
5629 | ||
5630 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5631 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
f819bb73 | 5632 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
17b6993a | 5633 | choke me |
5634 | #endif | |
5635 | ||
5636 | ; | |
5637 | return 0; | |
5638 | } | |
5639 | _ACEOF | |
5640 | if ac_fn_c_try_compile "$LINENO"; then : | |
4fd35f21 | 5641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5642 | /* end confdefs.h. */ |
17b6993a | 5643 | #include <gmp.h> |
b30fcfae | 5644 | int |
5645 | main () | |
5646 | { | |
4ee9c684 | 5647 | |
17b6993a | 5648 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5649 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5650 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
d45318b3 | 5651 | choke me |
5652 | #endif | |
b30fcfae | 5653 | |
5654 | ; | |
5655 | return 0; | |
5656 | } | |
5657 | _ACEOF | |
cd9a469c | 5658 | if ac_fn_c_try_compile "$LINENO"; then : |
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5660 | $as_echo "yes" >&6; } | |
17b6993a | 5661 | else |
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5663 | $as_echo "buggy but acceptable" >&6; } | |
5664 | fi | |
5665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b30fcfae | 5666 | else |
cd9a469c | 5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5668 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5669 | fi |
cd9a469c | 5670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5671 | |
7601a55c | 5672 | # If we have GMP, check the MPFR version. |
d45318b3 | 5673 | if test x"$have_gmp" = xyes; then |
17b6993a | 5674 | # Check for the recommended and required versions of MPFR. |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5676 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
cd9a469c | 5677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5678 | /* end confdefs.h. */ |
6a086156 | 5679 | #include <gmp.h> |
d45318b3 | 5680 | #include <mpfr.h> |
b30fcfae | 5681 | int |
5682 | main () | |
5683 | { | |
112f3d57 | 5684 | |
cb1d9044 | 5685 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
d45318b3 | 5686 | choke me |
5687 | #endif | |
b30fcfae | 5688 | |
5689 | ; | |
5690 | return 0; | |
5691 | } | |
5692 | _ACEOF | |
cd9a469c | 5693 | if ac_fn_c_try_compile "$LINENO"; then : |
5694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 5695 | /* end confdefs.h. */ |
0157cc75 | 5696 | #include <gmp.h> |
d45318b3 | 5697 | #include <mpfr.h> |
b30fcfae | 5698 | int |
5699 | main () | |
5700 | { | |
0157cc75 | 5701 | |
17b6993a | 5702 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
d45318b3 | 5703 | choke me |
5704 | #endif | |
7601a55c | 5705 | |
5706 | ; | |
5707 | return 0; | |
5708 | } | |
5709 | _ACEOF | |
cd9a469c | 5710 | if ac_fn_c_try_compile "$LINENO"; then : |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5712 | $as_echo "yes" >&6; } | |
7601a55c | 5713 | else |
cd9a469c | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5715 | $as_echo "buggy but acceptable" >&6; } | |
7601a55c | 5716 | fi |
cd9a469c | 5717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5718 | else |
cd9a469c | 5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5720 | $as_echo "no" >&6; }; have_gmp=no | |
7601a55c | 5721 | fi |
cd9a469c | 5722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5723 | fi |
5724 | ||
5725 | # Check for the MPC header version. | |
16de6a81 | 5726 | if test x"$have_gmp" = xyes ; then |
17b6993a | 5727 | # Check for the recommended and required versions of MPC. |
cd9a469c | 5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5729 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7601a55c | 5731 | /* end confdefs.h. */ |
5732 | #include <mpc.h> | |
5733 | int | |
5734 | main () | |
5735 | { | |
5736 | ||
17b6993a | 5737 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5738 | choke me | |
5739 | #endif | |
5740 | ||
5741 | ; | |
5742 | return 0; | |
5743 | } | |
5744 | _ACEOF | |
5745 | if ac_fn_c_try_compile "$LINENO"; then : | |
5746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5747 | /* end confdefs.h. */ | |
5748 | #include <mpc.h> | |
5749 | int | |
5750 | main () | |
5751 | { | |
5752 | ||
5753 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
7601a55c | 5754 | choke me |
5755 | #endif | |
5756 | ||
5757 | ; | |
5758 | return 0; | |
5759 | } | |
5760 | _ACEOF | |
cd9a469c | 5761 | if ac_fn_c_try_compile "$LINENO"; then : |
5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16de6a81 | 5763 | $as_echo "yes" >&6; } |
17b6993a | 5764 | else |
5765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5766 | $as_echo "buggy but acceptable" >&6; } | |
5767 | fi | |
5768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7601a55c | 5769 | else |
cd9a469c | 5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16de6a81 | 5771 | $as_echo "no" >&6; }; have_gmp=no |
7601a55c | 5772 | fi |
cd9a469c | 5773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5774 | fi |
5775 | ||
5776 | # Now check the MPFR library. | |
5777 | if test x"$have_gmp" = xyes; then | |
5778 | saved_LIBS="$LIBS" | |
5779 | LIBS="$LIBS $gmplibs" | |
16de6a81 | 5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5781 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
cd9a469c | 5782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7601a55c | 5783 | /* end confdefs.h. */ |
16de6a81 | 5784 | #include <mpc.h> |
7601a55c | 5785 | int |
5786 | main () | |
5787 | { | |
5788 | ||
5789 | mpfr_t n; | |
5790 | mpfr_t x; | |
16de6a81 | 5791 | mpc_t c; |
7601a55c | 5792 | int t; |
5793 | mpfr_init (n); | |
5794 | mpfr_init (x); | |
5795 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5796 | mpfr_erfc (n, x, GMP_RNDN); | |
5797 | mpfr_subnormalize (x, t, GMP_RNDN); | |
16de6a81 | 5798 | mpfr_clear(n); |
5799 | mpfr_clear(x); | |
5800 | mpc_init2 (c, 53); | |
5801 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5802 | mpc_cosh (c, c, MPC_RNDNN); | |
5803 | mpc_pow (c, c, c, MPC_RNDNN); | |
5804 | mpc_acosh (c, c, MPC_RNDNN); | |
5805 | mpc_clear (c); | |
b30fcfae | 5806 | |
5807 | ; | |
5808 | return 0; | |
5809 | } | |
5810 | _ACEOF | |
cd9a469c | 5811 | if ac_fn_c_try_link "$LINENO"; then : |
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5813 | $as_echo "yes" >&6; } | |
b30fcfae | 5814 | else |
cd9a469c | 5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5816 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5817 | fi |
cd9a469c | 5818 | rm -f core conftest.err conftest.$ac_objext \ |
5819 | conftest$ac_exeext conftest.$ac_ext | |
7601a55c | 5820 | LIBS="$saved_LIBS" |
5821 | fi | |
5822 | ||
d45318b3 | 5823 | CFLAGS="$saved_CFLAGS" |
4ee9c684 | 5824 | |
17b6993a | 5825 | # The library versions listed in the error message below should match |
5826 | # the HARD-minimums enforced above. | |
d45318b3 | 5827 | if test x$have_gmp != xyes; then |
f00f02a3 | 5828 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
16de6a81 | 5829 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5830 | their locations. Source code for these libraries can be found at | |
5831 | their respective hosting sites as well as at | |
5832 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5833 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5834 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5835 | make sure that you have installed both the libraries and the header | |
5836 | files. They may be located in separate packages." "$LINENO" 5 | |
d45318b3 | 5837 | fi |
6a086156 | 5838 | fi |
5839 | ||
7601a55c | 5840 | # Flags needed for both GMP, MPFR and/or MPC. |
5841 | ||
5842 | ||
4ee9c684 | 5843 | |
5844 | ||
5845 | ||
bff7ea4a | 5846 | |
e4128452 | 5847 | |
13687c85 | 5848 | # Libraries to use for stage1 or when not bootstrapping. |
7ab76cec | 5849 | |
13687c85 | 5850 | # Check whether --with-stage1-libs was given. |
5851 | if test "${with_stage1_libs+set}" = set; then : | |
5852 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5853 | stage1_libs= | |
7ab76cec | 5854 | else |
13687c85 | 5855 | stage1_libs=$withval |
7ab76cec | 5856 | fi |
5857 | else | |
9d71bbdc | 5858 | stage1_libs= |
cd9a469c | 5859 | fi |
5860 | ||
7ab76cec | 5861 | |
5862 | ||
13687c85 | 5863 | # Linker flags to use for stage1 or when not bootstrapping. |
7ab76cec | 5864 | |
13687c85 | 5865 | # Check whether --with-stage1-ldflags was given. |
5866 | if test "${with_stage1_ldflags+set}" = set; then : | |
5867 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5868 | stage1_ldflags= | |
7ab76cec | 5869 | else |
13687c85 | 5870 | stage1_ldflags=$withval |
7ab76cec | 5871 | fi |
5872 | else | |
13687c85 | 5873 | stage1_ldflags= |
5874 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5875 | # if supported. But if the user explicitly specified the libraries to use, | |
5876 | # trust that they are doing what they want. | |
5877 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5878 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5879 | fi | |
cd9a469c | 5880 | fi |
5881 | ||
7ab76cec | 5882 | |
5883 | ||
9d71bbdc | 5884 | # Libraries to use for stage2 and later builds. |
7ab76cec | 5885 | |
cd9a469c | 5886 | # Check whether --with-boot-libs was given. |
5887 | if test "${with_boot_libs+set}" = set; then : | |
5888 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5110389d | 5889 | poststage1_libs= |
5890 | else | |
5891 | poststage1_libs=$withval | |
5892 | fi | |
5893 | else | |
9d71bbdc | 5894 | poststage1_libs= |
cd9a469c | 5895 | fi |
5896 | ||
7ab76cec | 5897 | |
5898 | ||
d6dfe18a | 5899 | # Linker flags to use for stage2 and later builds. |
5900 | ||
5901 | # Check whether --with-boot-ldflags was given. | |
5902 | if test "${with_boot_ldflags+set}" = set; then : | |
5903 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5904 | poststage1_ldflags= | |
5905 | else | |
5906 | poststage1_ldflags=$withval | |
5907 | fi | |
5908 | else | |
5909 | poststage1_ldflags= | |
7deb2d70 | 5910 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5911 | # statically. But if the user explicitly specified the libraries to | |
5912 | # use, trust that they are doing what they want. | |
5913 | if test "$poststage1_libs" = ""; then | |
d6dfe18a | 5914 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5915 | fi | |
5916 | fi | |
5917 | ||
5918 | ||
5919 | ||
71130ef8 | 5920 | # GCC GRAPHITE dependency isl. |
572cf1f7 | 5921 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
255b6be7 | 5922 | |
5923 | ||
87e20041 | 5924 | # Check whether --with-isl was given. |
5925 | if test "${with_isl+set}" = set; then : | |
5926 | withval=$with_isl; | |
cd9a469c | 5927 | fi |
255b6be7 | 5928 | |
255b6be7 | 5929 | |
429cca51 | 5930 | # Treat --without-isl as a request to disable |
83d54ac4 | 5931 | # GRAPHITE support and skip all following checks. |
429cca51 | 5932 | if test "x$with_isl" != "xno"; then |
71130ef8 | 5933 | # Check for isl |
83d54ac4 | 5934 | |
5935 | ||
87e20041 | 5936 | # Check whether --with-isl-include was given. |
5937 | if test "${with_isl_include+set}" = set; then : | |
5938 | withval=$with_isl_include; | |
cd9a469c | 5939 | fi |
5940 | ||
255b6be7 | 5941 | |
87e20041 | 5942 | # Check whether --with-isl-lib was given. |
5943 | if test "${with_isl_lib+set}" = set; then : | |
5944 | withval=$with_isl_lib; | |
cd9a469c | 5945 | fi |
255b6be7 | 5946 | |
255b6be7 | 5947 | |
87e20041 | 5948 | # Check whether --enable-isl-version-check was given. |
5949 | if test "${enable_isl_version_check+set}" = set; then : | |
5950 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5951 | else | |
5952 | ENABLE_ISL_CHECK=yes | |
062b4a94 | 5953 | fi |
5954 | ||
5955 | ||
87e20041 | 5956 | # Initialize isllibs and islinc. |
5957 | case $with_isl in | |
5958 | no) | |
5959 | isllibs= | |
5960 | islinc= | |
5961 | ;; | |
5962 | "" | yes) | |
5963 | ;; | |
5964 | *) | |
5965 | isllibs="-L$with_isl/lib" | |
5966 | islinc="-I$with_isl/include" | |
5967 | ;; | |
5968 | esac | |
5969 | if test "x${with_isl_include}" != x ; then | |
5970 | islinc="-I$with_isl_include" | |
5971 | fi | |
5972 | if test "x${with_isl_lib}" != x; then | |
5973 | isllibs="-L$with_isl_lib" | |
5974 | fi | |
5975 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5976 | && test -d ${srcdir}/isl; then | |
5977 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5978 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5979 | ENABLE_ISL_CHECK=no | |
7458b15a | 5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5981 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
87e20041 | 5982 | fi |
062b4a94 | 5983 | |
429cca51 | 5984 | isllibs="${isllibs} -lisl" |
5985 | ||
062b4a94 | 5986 | |
062b4a94 | 5987 | |
078393c7 | 5988 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5989 | _isl_saved_CFLAGS=$CFLAGS | |
5990 | _isl_saved_LDFLAGS=$LDFLAGS | |
5991 | _isl_saved_LIBS=$LIBS | |
5992 | ||
5993 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
07ae8272 | 5994 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
5995 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
078393c7 | 5996 | |
8e8a14c2 | 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
5998 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
b6de67fd | 5999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6ac3b11e | 6000 | /* end confdefs.h. */ |
8e8a14c2 | 6001 | #include <isl/schedule.h> |
6ac3b11e | 6002 | int |
6003 | main () | |
6004 | { | |
8e8a14c2 | 6005 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
6ac3b11e | 6006 | ; |
6007 | return 0; | |
6008 | } | |
6009 | _ACEOF | |
6010 | if ac_fn_c_try_link "$LINENO"; then : | |
078393c7 | 6011 | gcc_cv_isl=yes |
6ac3b11e | 6012 | else |
6013 | gcc_cv_isl=no | |
6014 | fi | |
6015 | rm -f core conftest.err conftest.$ac_objext \ | |
6016 | conftest$ac_exeext conftest.$ac_ext | |
078393c7 | 6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6018 | $as_echo "$gcc_cv_isl" >&6; } | |
6019 | ||
7458b15a | 6020 | if test "${gcc_cv_isl}" = no ; then |
8e8a14c2 | 6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
6022 | $as_echo "required isl version is 0.15 or later" >&6; } | |
45fc5243 | 6023 | fi |
6024 | ||
078393c7 | 6025 | CFLAGS=$_isl_saved_CFLAGS |
6026 | LDFLAGS=$_isl_saved_LDFLAGS | |
6027 | LIBS=$_isl_saved_LIBS | |
6028 | fi | |
6029 | ||
6030 | ||
255b6be7 | 6031 | |
255b6be7 | 6032 | |
87e20041 | 6033 | |
6034 | ||
87e20041 | 6035 | if test "x${with_isl}" = xno; then |
6036 | graphite_requested=no | |
6037 | elif test "x${with_isl}" != x \ | |
6038 | || test "x${with_isl_include}" != x \ | |
6039 | || test "x${with_isl_lib}" != x ; then | |
6040 | graphite_requested=yes | |
6041 | else | |
6042 | graphite_requested=no | |
062b4a94 | 6043 | fi |
5362e323 | 6044 | |
5362e323 | 6045 | |
6046 | ||
87e20041 | 6047 | if test "${gcc_cv_isl}" = no ; then |
6048 | isllibs= | |
6049 | islinc= | |
6050 | fi | |
6051 | ||
6052 | if test "${graphite_requested}" = yes \ | |
6053 | && test "x${isllibs}" = x \ | |
6054 | && test "x${islinc}" = x ; then | |
255b6be7 | 6055 | |
f00f02a3 | 6056 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
87e20041 | 6057 | fi |
255b6be7 | 6058 | |
a3c81e03 | 6059 | |
a3c81e03 | 6060 | fi |
6061 | ||
71130ef8 | 6062 | # If the isl check failed, disable builds of in-tree variant of isl |
83d54ac4 | 6063 | if test "x$with_isl" = xno || |
83d54ac4 | 6064 | test "x$gcc_cv_isl" = xno; then |
572cf1f7 | 6065 | noconfigdirs="$noconfigdirs isl" |
83d54ac4 | 6066 | islinc= |
bacb15cb | 6067 | fi |
6068 | ||
83d54ac4 | 6069 | |
6070 | ||
6071 | ||
7bfefa9d | 6072 | # Check for LTO support. |
6073 | # Check whether --enable-lto was given. | |
6074 | if test "${enable_lto+set}" = set; then : | |
6075 | enableval=$enable_lto; enable_lto=$enableval | |
6076 | else | |
6077 | enable_lto=yes; default_enable_lto=yes | |
6078 | fi | |
6079 | ||
6080 | ||
1a4f45ec | 6081 | |
9bdbb0bc | 6082 | |
6083 | ||
6084 | target_elf=no | |
6085 | case $target in | |
6086 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
4d72c922 | 6087 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
cb7a0f1d | 6088 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
0f769573 | 6089 | nvptx-*-none) |
9bdbb0bc | 6090 | target_elf=no |
6091 | ;; | |
6092 | *) | |
6093 | target_elf=yes | |
6094 | ;; | |
6095 | esac | |
6096 | ||
6097 | if test $target_elf = yes; then : | |
25630dc7 | 6098 | # ELF platforms build the lto-plugin always. |
6099 | build_lto_plugin=yes | |
9bdbb0bc | 6100 | |
9bdbb0bc | 6101 | else |
6102 | if test x"$default_enable_lto" = x"yes" ; then | |
4ae8c98f | 6103 | case $target in |
c96ae98b | 6104 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
25630dc7 | 6105 | # On other non-ELF platforms, LTO has yet to be validated. |
4ae8c98f | 6106 | *) enable_lto=no ;; |
6107 | esac | |
9bdbb0bc | 6108 | else |
62932e4d | 6109 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6110 | # It would also be nice to check the binutils support, but we don't | |
9bdbb0bc | 6111 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6112 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6113 | # -flto it won't be needed until after installation anyway. | |
6114 | case $target in | |
7aa50266 | 6115 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9bdbb0bc | 6116 | *) if test x"$enable_lto" = x"yes"; then |
f00f02a3 | 6117 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9bdbb0bc | 6118 | fi |
6119 | ;; | |
6120 | esac | |
6121 | fi | |
ca42e774 | 6122 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
25630dc7 | 6123 | # Build it unless LTO was explicitly disabled. |
ca42e774 | 6124 | case $target in |
25630dc7 | 6125 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
ca42e774 | 6126 | *) ;; |
6127 | esac | |
25630dc7 | 6128 | |
9bdbb0bc | 6129 | fi |
6130 | ||
7bfefa9d | 6131 | |
1015a063 | 6132 | # Check whether --enable-linker-plugin-configure-flags was given. |
6133 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6134 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6135 | else | |
6136 | extra_linker_plugin_configure_flags= | |
6137 | fi | |
6138 | ||
6139 | ||
6140 | # Check whether --enable-linker-plugin-flags was given. | |
6141 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6142 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6143 | else | |
6144 | extra_linker_plugin_flags= | |
6145 | fi | |
6146 | ||
6147 | ||
6148 | ||
01b4453c | 6149 | # Enable --enable-host-shared. |
6150 | # Checked early to determine whether jit is an 'all' language | |
6151 | # Check whether --enable-host-shared was given. | |
6152 | if test "${enable_host_shared+set}" = set; then : | |
6153 | enableval=$enable_host_shared; host_shared=$enableval | |
6154 | else | |
6155 | host_shared=no | |
6156 | fi | |
6157 | ||
6158 | ||
255b6be7 | 6159 | |
2b15d2ba | 6160 | # By default, C and C++ are the only stage 1 languages. |
9c3a0a29 | 6161 | stage1_languages=,c, |
2d64c2fd | 6162 | |
7ab76cec | 6163 | # Target libraries that we bootstrap. |
5c96a839 | 6164 | bootstrap_target_libs=,target-libgcc, |
7ab76cec | 6165 | |
8e1fea1a | 6166 | # Figure out what language subdirectories are present. |
6167 | # Look if the user specified --enable-languages="..."; if not, use | |
6168 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6169 | # go away some day. | |
6170 | # NB: embedded tabs in this IF block -- do not untabify | |
6171 | if test -d ${srcdir}/gcc; then | |
6172 | if test x"${enable_languages+set}" != xset; then | |
6173 | if test x"${LANGUAGES+set}" = xset; then | |
6174 | enable_languages="${LANGUAGES}" | |
e757a6a8 | 6175 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
8e1fea1a | 6176 | else |
01b4453c | 6177 | enable_languages=default |
8e1fea1a | 6178 | fi |
6179 | else | |
6180 | if test x"${enable_languages}" = x || | |
6181 | test x"${enable_languages}" = xyes; | |
6182 | then | |
e757a6a8 | 6183 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
8e1fea1a | 6184 | exit 1 |
6185 | fi | |
6186 | fi | |
6187 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6188 | ||
2c718da0 | 6189 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6190 | # and make the substitution. | |
6191 | case ,${enable_languages}, in | |
6192 | *,f95,*) | |
e757a6a8 | 6193 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
2c718da0 | 6194 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6195 | ;; | |
6196 | esac | |
6197 | ||
2b15d2ba | 6198 | # If bootstrapping, C++ must be enabled. |
6199 | case ",$enable_languages,:$enable_bootstrap" in | |
6200 | *,c++,*:*) ;; | |
6201 | *:yes) | |
6c59dfa4 | 6202 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6203 | enable_languages="${enable_languages},c++" | |
6204 | else | |
f00f02a3 | 6205 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
6c59dfa4 | 6206 | fi |
6207 | ;; | |
6208 | esac | |
6209 | ||
8e1fea1a | 6210 | # First scan to see if an enabled language requires some other language. |
6211 | # We assume that a given config-lang.in will list all the language | |
6212 | # front ends it requires, even if some are required indirectly. | |
6213 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6214 | case ${lang_frag} in | |
6215 | ..) ;; | |
6216 | # The odd quoting in the next line works around | |
6217 | # an apparent bug in bash 1.12 on linux. | |
6218 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6219 | *) | |
101ddbe4 | 6220 | # From the config-lang.in, get $language, $lang_requires, and |
6221 | # $lang_requires_boot_languages. | |
8e1fea1a | 6222 | language= |
6223 | lang_requires= | |
101ddbe4 | 6224 | lang_requires_boot_languages= |
d6400eba | 6225 | # set srcdir during sourcing lang_frag to the gcc dir. |
6226 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6227 | # polutes this shell | |
6228 | saved_srcdir=${srcdir} | |
6229 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6230 | srcdir=${saved_srcdir} | |
101ddbe4 | 6231 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
8e1fea1a | 6232 | case ,${enable_languages}, in |
6233 | *,$other,*) ;; | |
01b4453c | 6234 | *,default,*) ;; |
8e1fea1a | 6235 | *,all,*) ;; |
6236 | *,$language,*) | |
6237 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6238 | enable_languages="${enable_languages},${other}" | |
6239 | ;; | |
6240 | esac | |
6241 | done | |
101ddbe4 | 6242 | for other in ${lang_requires_boot_languages} ; do |
6243 | if test "$other" != "c"; then | |
6244 | case ,${enable_stage1_languages}, in | |
6245 | *,$other,*) ;; | |
01b4453c | 6246 | *,default,*) ;; |
101ddbe4 | 6247 | *,all,*) ;; |
6248 | *) | |
6249 | case ,${enable_languages}, in | |
6250 | *,$language,*) | |
6251 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6252 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6253 | ;; | |
6254 | esac | |
6255 | ;; | |
6256 | esac | |
6257 | fi | |
6258 | done | |
8e1fea1a | 6259 | ;; |
6260 | esac | |
6261 | done | |
6262 | ||
9c3a0a29 | 6263 | new_enable_languages=,c, |
7bfefa9d | 6264 | |
6265 | # If LTO is enabled, add the LTO front end. | |
7bfefa9d | 6266 | if test "$enable_lto" = "yes" ; then |
d6ef094a | 6267 | case ,${enable_languages}, in |
6268 | *,lto,*) ;; | |
6269 | *) enable_languages="${enable_languages},lto" ;; | |
6270 | esac | |
ca42e774 | 6271 | if test "${build_lto_plugin}" = "yes" ; then |
7bfefa9d | 6272 | configdirs="$configdirs lto-plugin" |
7bfefa9d | 6273 | fi |
6274 | fi | |
6275 | ||
dd87c525 | 6276 | # If we're building an offloading compiler, add the LTO front end. |
6277 | if test x"$enable_as_accelerator_for" != x ; then | |
6278 | case ,${enable_languages}, in | |
6279 | *,lto,*) ;; | |
6280 | *) enable_languages="${enable_languages},lto" ;; | |
6281 | esac | |
6282 | fi | |
6283 | ||
01b4453c | 6284 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9c3a0a29 | 6285 | potential_languages=,c, |
8e1fea1a | 6286 | |
604a285a | 6287 | enabled_target_libs= |
6288 | disabled_target_libs= | |
6289 | ||
8e1fea1a | 6290 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6291 | case ${lang_frag} in | |
6292 | ..) ;; | |
6293 | # The odd quoting in the next line works around | |
6294 | # an apparent bug in bash 1.12 on linux. | |
6295 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6296 | *) | |
b30fcfae | 6297 | # From the config-lang.in, get $language, $target_libs, |
2d64c2fd | 6298 | # $lang_dirs, $boot_language, and $build_by_default |
8e1fea1a | 6299 | language= |
6300 | target_libs= | |
6301 | lang_dirs= | |
5dee13c2 | 6302 | subdir_requires= |
9c3a0a29 | 6303 | boot_language=no |
6304 | build_by_default=yes | |
d6400eba | 6305 | # set srcdir during sourcing. See above about save & restore |
6306 | saved_srcdir=${srcdir} | |
6307 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6308 | srcdir=${saved_srcdir} | |
9c3a0a29 | 6309 | if test x${language} = x; then |
6310 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6311 | exit 1 | |
6312 | fi | |
6313 | ||
ef3c41c7 | 6314 | if test "$language" = "c++"; then |
2b15d2ba | 6315 | boot_language=yes |
7ab76cec | 6316 | fi |
6317 | ||
a2ecd49c | 6318 | add_this_lang=no |
01b4453c | 6319 | # C is always enabled, so no need to add it again |
6320 | if test "$language" != "c"; then | |
6321 | case ,${enable_languages}, in | |
6322 | *,${language},*) | |
6323 | # Language was explicitly selected; include it | |
e53d55e7 | 6324 | add_this_lang=yes |
01b4453c | 6325 | ;; |
6326 | *,all,*) | |
6327 | # All languages are enabled | |
6328 | add_this_lang=all | |
6329 | ;; | |
6330 | *,default,*) | |
6331 | # 'default' was selected, select it if it is a default language | |
a2ecd49c | 6332 | add_this_lang=${build_by_default} |
01b4453c | 6333 | ;; |
6334 | esac | |
6335 | fi | |
4ee9c684 | 6336 | |
5dee13c2 | 6337 | # Disable languages that need other directories if these aren't available. |
9333ae0b | 6338 | for i in $subdir_requires; do |
3891e7d9 | 6339 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
01b4453c | 6340 | case ${add_this_lang} in |
6341 | yes) | |
5dee13c2 | 6342 | # Specifically requested language; tell them. |
f00f02a3 | 6343 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
5dee13c2 | 6344 | ;; |
01b4453c | 6345 | all) |
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6347 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6348 | add_this_lang=unsupported | |
6349 | ;; | |
5dee13c2 | 6350 | *) |
6351 | # Silently disable. | |
9c3a0a29 | 6352 | add_this_lang=unsupported |
5dee13c2 | 6353 | ;; |
6354 | esac | |
6355 | done | |
6356 | ||
9c3a0a29 | 6357 | # Disable Ada if no preexisting GNAT is available. |
01b4453c | 6358 | case ${add_this_lang}:${language}:${have_gnat} in |
6359 | yes:ada:no) | |
9c3a0a29 | 6360 | # Specifically requested language; tell them. |
f00f02a3 | 6361 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9c3a0a29 | 6362 | ;; |
01b4453c | 6363 | all:ada:no) |
6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6365 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6366 | add_this_lang=unsupported | |
6367 | ;; | |
9c3a0a29 | 6368 | *:ada:no) |
6369 | # Silently disable. | |
6370 | add_this_lang=unsupported | |
6371 | ;; | |
6372 | esac | |
6373 | ||
01b4453c | 6374 | # Disable jit if -enable-host-shared not specified |
6375 | case ${add_this_lang}:${language}:${host_shared} in | |
6376 | yes:jit:no) | |
6377 | # PR jit/64780: explicitly specify --enable-host-shared | |
f00f02a3 | 6378 | as_fn_error $? " |
01b4453c | 6379 | Enabling language \"jit\" requires --enable-host-shared. |
6380 | ||
6381 | --enable-host-shared typically slows the rest of the compiler down by | |
6382 | a few %, so you must explicitly enable it. | |
6383 | ||
6384 | If you want to build both the jit and the regular compiler, it is often | |
6385 | best to do this via two separate configure/builds, in separate | |
6386 | directories, to avoid imposing the performance cost of | |
6387 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6388 | ;; | |
6389 | all:jit:no) | |
6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6391 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6392 | add_this_lang=unsupported | |
6393 | ;; | |
6394 | *:jit:no) | |
6395 | # Silently disable. | |
6396 | add_this_lang=unsupported | |
6397 | ;; | |
6398 | esac | |
6399 | ||
6400 | # Disable a language that is unsupported by the target. | |
6401 | case "${add_this_lang}: $unsupported_languages " in | |
6402 | no:*) ;; | |
6403 | unsupported:*) ;; | |
6404 | *:*" $language "*) | |
6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6406 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9c3a0a29 | 6407 | add_this_lang=unsupported |
ff7dcf6a | 6408 | ;; |
6409 | esac | |
6410 | ||
4ee9c684 | 6411 | case $add_this_lang in |
9c3a0a29 | 6412 | unsupported) |
8e1fea1a | 6413 | # Remove language-dependent dirs. |
604a285a | 6414 | disabled_target_libs="$disabled_target_libs $target_libs" |
6415 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2d64c2fd | 6416 | ;; |
9c3a0a29 | 6417 | no) |
6418 | # Remove language-dependent dirs; still show language as supported. | |
604a285a | 6419 | disabled_target_libs="$disabled_target_libs $target_libs" |
6420 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9c3a0a29 | 6421 | potential_languages="${potential_languages}${language}," |
6422 | ;; | |
01b4453c | 6423 | all|yes) |
9c3a0a29 | 6424 | new_enable_languages="${new_enable_languages}${language}," |
6425 | potential_languages="${potential_languages}${language}," | |
2d64c2fd | 6426 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
604a285a | 6427 | enabled_target_libs="$enabled_target_libs $target_libs" |
32027446 | 6428 | case "${boot_language}:,$enable_stage1_languages," in |
6429 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
aff6cf7b | 6430 | # Add to (comma-separated) list of stage 1 languages. |
32027446 | 6431 | case ",$stage1_languages," in |
6432 | *,$language,* | ,yes, | ,all,) ;; | |
6433 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6434 | esac | |
7ab76cec | 6435 | # We need to bootstrap any supporting libraries. |
6436 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2d64c2fd | 6437 | ;; |
6438 | esac | |
6439 | ;; | |
8e1fea1a | 6440 | esac |
6441 | ;; | |
6442 | esac | |
6443 | done | |
6444 | ||
604a285a | 6445 | # Add target libraries which are only needed for disabled languages |
6446 | # to noconfigdirs. | |
6447 | if test -n "$disabled_target_libs"; then | |
6448 | for dir in $disabled_target_libs; do | |
6449 | case " $enabled_target_libs " in | |
6450 | *" ${dir} "*) ;; | |
6451 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6452 | esac | |
6453 | done | |
6454 | fi | |
6455 | ||
cd9a469c | 6456 | # Check whether --enable-stage1-languages was given. |
6457 | if test "${enable_stage1_languages+set}" = set; then : | |
6458 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9c3a0a29 | 6459 | ,no,|,,) |
6460 | # Set it to something that will have no effect in the loop below | |
6461 | enable_stage1_languages=c ;; | |
6462 | ,yes,) | |
6463 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6464 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6465 | *,all,*) | |
6466 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6467 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6468 | esac | |
6469 | ||
6470 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6471 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6472 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6473 | case $potential_languages in | |
6474 | *,$i,*) | |
6475 | case $stage1_languages in | |
6476 | *,$i,*) ;; | |
6477 | *) stage1_languages="$stage1_languages$i," ;; | |
6478 | esac ;; | |
6479 | *) | |
6480 | case $missing_languages in | |
6481 | *,$i,*) ;; | |
6482 | *) missing_languages="$missing_languages$i," ;; | |
6483 | esac ;; | |
6484 | esac | |
6485 | done | |
cd9a469c | 6486 | fi |
6487 | ||
9c3a0a29 | 6488 | |
6489 | # Remove leading/trailing commas that were added for simplicity | |
6490 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
989edd2f | 6491 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9c3a0a29 | 6492 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6493 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6494 | ||
8e1fea1a | 6495 | if test "x$missing_languages" != x; then |
f00f02a3 | 6496 | as_fn_error $? " |
e8bfe1fa | 6497 | The following requested languages could not be built: ${missing_languages} |
cd9a469c | 6498 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
8e1fea1a | 6499 | fi |
8e1fea1a | 6500 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6501 | echo The following languages will be built: ${new_enable_languages} | |
9c3a0a29 | 6502 | enable_languages="$new_enable_languages" |
8e1fea1a | 6503 | fi |
9c3a0a29 | 6504 | |
b30fcfae | 6505 | |
b0e9b581 | 6506 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
8e1fea1a | 6507 | fi |
6508 | ||
50996fe5 | 6509 | # Handle --disable-<component> generically. |
6510 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6511 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
d2d2630b | 6512 | varname=`echo $dirname | sed -e s/+/_/g` |
6513 | if eval test x\${enable_${varname}} "=" xno ; then | |
50996fe5 | 6514 | noconfigdirs="$noconfigdirs $dir" |
6515 | fi | |
6516 | done | |
6517 | ||
03869f98 | 6518 | # Check for Boehm's garbage collector |
6519 | # Check whether --enable-objc-gc was given. | |
6520 | if test "${enable_objc_gc+set}" = set; then : | |
baf71228 | 6521 | enableval=$enable_objc_gc; |
6522 | fi | |
6523 | ||
6524 | ||
6525 | # Check whether --with-target-bdw-gc was given. | |
6526 | if test "${with_target_bdw_gc+set}" = set; then : | |
6527 | withval=$with_target_bdw_gc; | |
6528 | fi | |
6529 | ||
6530 | ||
6531 | # Check whether --with-target-bdw-gc-include was given. | |
6532 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6533 | withval=$with_target_bdw_gc_include; | |
6534 | fi | |
6535 | ||
6536 | ||
6537 | # Check whether --with-target-bdw-gc-lib was given. | |
6538 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6539 | withval=$with_target_bdw_gc_lib; | |
6540 | fi | |
6541 | ||
6542 | ||
6543 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6545 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6546 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
74dfdbe3 | 6547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
6548 | $as_echo "using bdw-gc in default locations" >&6; } | |
baf71228 | 6549 | else |
6550 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
f00f02a3 | 6551 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
baf71228 | 6552 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
f00f02a3 | 6553 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
baf71228 | 6554 | else |
6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6556 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
6557 | fi | |
6558 | fi | |
03869f98 | 6559 | esac |
6560 | ||
efa02472 | 6561 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
b33ca042 | 6562 | case ,${enable_languages}, in |
df148e44 | 6563 | *,c++,*) |
efa02472 | 6564 | # Disable libitm, libsanitizer if we're not building libstdc++ |
df148e44 | 6565 | case "${noconfigdirs}" in |
6566 | *target-libstdc++-v3*) | |
efa02472 | 6567 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
df148e44 | 6568 | ;; |
6569 | *) ;; | |
6570 | esac | |
6571 | ;; | |
b33ca042 | 6572 | *) |
efa02472 | 6573 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
b33ca042 | 6574 | ;; |
6575 | esac | |
6576 | ||
e8eddfdd | 6577 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6578 | # $build_configdirs and $target_configdirs. | |
8e1fea1a | 6579 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6580 | ||
6581 | notsupp="" | |
6582 | for dir in . $skipdirs $noconfigdirs ; do | |
e8eddfdd | 6583 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
8e1fea1a | 6584 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6585 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6586 | if test -r $srcdir/$dirname/configure ; then | |
6587 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6588 | true | |
6589 | else | |
6590 | notsupp="$notsupp $dir" | |
6591 | fi | |
6592 | fi | |
6593 | fi | |
e8eddfdd | 6594 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6595 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6596 | if test -r $srcdir/$dirname/configure ; then | |
6597 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6598 | true | |
6599 | else | |
6600 | notsupp="$notsupp $dir" | |
6601 | fi | |
6602 | fi | |
6603 | fi | |
8e1fea1a | 6604 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6605 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6606 | if test -r $srcdir/$dirname/configure ; then | |
6607 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6608 | true | |
6609 | else | |
6610 | notsupp="$notsupp $dir" | |
6611 | fi | |
6612 | fi | |
6613 | fi | |
6614 | done | |
6615 | ||
8e1fea1a | 6616 | # Quietly strip out all directories which aren't configurable in this tree. |
6617 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6618 | # is now the case. | |
2f8725b0 | 6619 | build_configdirs_all="$build_configdirs" |
6620 | build_configdirs= | |
6621 | for i in ${build_configdirs_all} ; do | |
b30fcfae | 6622 | j=`echo $i | sed -e s/build-//g` |
2f8725b0 | 6623 | if test -f ${srcdir}/$j/configure ; then |
6624 | build_configdirs="${build_configdirs} $i" | |
6625 | fi | |
6626 | done | |
6627 | ||
8e1fea1a | 6628 | configdirs_all="$configdirs" |
6629 | configdirs= | |
6630 | for i in ${configdirs_all} ; do | |
6631 | if test -f ${srcdir}/$i/configure ; then | |
6632 | configdirs="${configdirs} $i" | |
6633 | fi | |
6634 | done | |
2f8725b0 | 6635 | |
8e1fea1a | 6636 | target_configdirs_all="$target_configdirs" |
6637 | target_configdirs= | |
6638 | for i in ${target_configdirs_all} ; do | |
b30fcfae | 6639 | j=`echo $i | sed -e s/target-//g` |
8e1fea1a | 6640 | if test -f ${srcdir}/$j/configure ; then |
6641 | target_configdirs="${target_configdirs} $i" | |
6642 | fi | |
6643 | done | |
6644 | ||
1015a063 | 6645 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6646 | # so we have to add it after the preceding checks. | |
6647 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6648 | then | |
6649 | case " $configdirs " in | |
6650 | *" libiberty "*) | |
6651 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6652 | configdirs="$configdirs libiberty-linker-plugin" | |
6653 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6654 | --with-libiberty=../libiberty-linker-plugin";; | |
6655 | *) | |
f00f02a3 | 6656 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1015a063 | 6657 | esac |
6658 | fi | |
6659 | ||
944792ef | 6660 | # Sometimes we have special requirements for the host libiberty. |
6661 | extra_host_libiberty_configure_flags= | |
c850ece7 | 6662 | extra_host_zlib_configure_flags= |
944792ef | 6663 | case " $configdirs " in |
6664 | *" lto-plugin "* | *" libcc1 "*) | |
6665 | # When these are to be built as shared libraries, the same applies to | |
6666 | # libiberty. | |
6667 | extra_host_libiberty_configure_flags=--enable-shared | |
6668 | ;; | |
c850ece7 | 6669 | *" bfd "*) |
6670 | # When bfd is to be built as a shared library, the same applies to | |
6671 | # zlib. | |
6672 | if test "$enable_shared" = "yes"; then | |
6673 | extra_host_zlib_configure_flags=--enable-host-shared | |
6674 | fi | |
6675 | ;; | |
944792ef | 6676 | esac |
6677 | ||
6678 | ||
c850ece7 | 6679 | |
8e1fea1a | 6680 | # Produce a warning message for the subdirs we can't configure. |
6681 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6682 | # FSF releases, it's important to let people know when their machine isn't | |
6683 | # supported by the one or two programs in a package. | |
6684 | ||
6685 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6686 | # If $appdirs is non-empty, at least one of those directories must still | |
6687 | # be configured, or we error out. (E.g., if the gas release supports a | |
6688 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6689 | # pretend that all is well.) | |
6690 | if test -n "$appdirs" ; then | |
6691 | for dir in $appdirs ; do | |
6692 | if test -r $dir/Makefile.in ; then | |
6693 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6694 | appdirs="" | |
6695 | break | |
6696 | fi | |
2f8725b0 | 6697 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
8e1fea1a | 6698 | appdirs="" |
6699 | break | |
6700 | fi | |
6701 | fi | |
6702 | done | |
6703 | if test -n "$appdirs" ; then | |
6704 | echo "*** This configuration is not supported by this package." 1>&2 | |
6705 | exit 1 | |
6706 | fi | |
6707 | fi | |
6708 | # Okay, some application will build, or we don't care to check. Still | |
6709 | # notify of subdirs not getting built. | |
6710 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6711 | echo " ${notsupp}" 1>&2 | |
6712 | echo " (Any other directories should still work fine.)" 1>&2 | |
6713 | fi | |
6714 | ||
6715 | case "$host" in | |
6716 | *msdosdjgpp*) | |
6717 | enable_gdbtk=no ;; | |
6718 | esac | |
6719 | ||
eae5b2bc | 6720 | # To find our prefix, in gcc_cv_tool_prefix. |
6721 | ||
6722 | # The user is always right. | |
6723 | if test "${PATH_SEPARATOR+set}" != set; then | |
6724 | echo "#! /bin/sh" >conf$$.sh | |
6725 | echo "exit 0" >>conf$$.sh | |
6726 | chmod +x conf$$.sh | |
6727 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6728 | PATH_SEPARATOR=';' | |
6729 | else | |
6730 | PATH_SEPARATOR=: | |
6731 | fi | |
6732 | rm -f conf$$.sh | |
6733 | fi | |
6734 | ||
6735 | ||
0812bb06 | 6736 | get_gcc_base_ver="cat" |
6737 | ||
6738 | # Check whether --with-gcc-major-version-only was given. | |
6739 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6740 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
1e42d5c6 | 6741 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
0812bb06 | 6742 | fi |
6743 | ||
6744 | fi | |
6745 | ||
6746 | ||
6747 | ||
6748 | ||
6749 | ||
eae5b2bc | 6750 | |
6751 | if test "x$exec_prefix" = xNONE; then | |
6752 | if test "x$prefix" = xNONE; then | |
6753 | gcc_cv_tool_prefix=$ac_default_prefix | |
6754 | else | |
6755 | gcc_cv_tool_prefix=$prefix | |
6756 | fi | |
6757 | else | |
6758 | gcc_cv_tool_prefix=$exec_prefix | |
6759 | fi | |
6760 | ||
6761 | # If there is no compiler in the tree, use the PATH only. In any | |
6762 | # case, if there is no compiler in the tree nobody should use | |
6763 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6764 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
0812bb06 | 6765 | if test x$with_gcc_major_version_only = xyes ; then |
6766 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6767 | else | |
6768 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6769 | fi | |
eae5b2bc | 6770 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6771 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6772 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6773 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6774 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6775 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6776 | else | |
6777 | gcc_cv_tool_dirs= | |
6778 | fi | |
6779 | ||
6780 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6781 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6782 | fi | |
6783 | ||
6784 | ||
6785 | ||
8e1fea1a | 6786 | copy_dirs= |
6787 | ||
b30fcfae | 6788 | |
cd9a469c | 6789 | # Check whether --with-build-sysroot was given. |
6790 | if test "${with_build_sysroot+set}" = set; then : | |
6791 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
ffa8502d | 6792 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6793 | fi | |
6794 | else | |
6795 | SYSROOT_CFLAGS_FOR_TARGET= | |
cd9a469c | 6796 | fi |
ffa8502d | 6797 | |
6798 | ||
5f1f2de5 | 6799 | |
cd9a469c | 6800 | |
6801 | # Check whether --with-debug-prefix-map was given. | |
6802 | if test "${with_debug_prefix_map+set}" = set; then : | |
6803 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
5f1f2de5 | 6804 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6805 | for debug_map in $withval; do | |
6806 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6807 | done | |
6808 | fi | |
6809 | else | |
6810 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
cd9a469c | 6811 | fi |
6812 | ||
5f1f2de5 | 6813 | |
6814 | ||
c898f165 | 6815 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6816 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6817 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6818 | # We want to ensure that TARGET libraries (which we know are built with | |
6819 | # gcc) are built with "-O2 -g", so include those options when setting | |
6820 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6821 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
f5fad380 | 6822 | if test "x${is_cross_compiler}" = xyes; then |
6823 | CFLAGS_FOR_TARGET="-g -O2" | |
6824 | else | |
6825 | CFLAGS_FOR_TARGET=$CFLAGS | |
6826 | case " $CFLAGS " in | |
6827 | *" -O2 "*) ;; | |
6828 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6829 | esac | |
6830 | case " $CFLAGS " in | |
6831 | *" -g "* | *" -g3 "*) ;; | |
6832 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6833 | esac | |
6834 | fi | |
c898f165 | 6835 | fi |
6836 | ||
6837 | ||
6838 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
f5fad380 | 6839 | if test "x${is_cross_compiler}" = xyes; then |
6840 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6841 | else | |
6842 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6843 | case " $CXXFLAGS " in | |
6844 | *" -O2 "*) ;; | |
6845 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6846 | esac | |
6847 | case " $CXXFLAGS " in | |
6848 | *" -g "* | *" -g3 "*) ;; | |
6849 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6850 | esac | |
6851 | fi | |
c898f165 | 6852 | fi |
6853 | ||
6854 | ||
ed9516f5 | 6855 | |
6856 | ||
8e1fea1a | 6857 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6858 | # the named directory are copied to $(tooldir)/sys-include. | |
6859 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6860 | if test x${is_cross_compiler} = xno ; then | |
6861 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6862 | exit 1 | |
6863 | fi | |
6864 | if test x"${with_headers}" != xyes ; then | |
eae5b2bc | 6865 | x=${gcc_cv_tool_prefix} |
b30fcfae | 6866 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
8e1fea1a | 6867 | fi |
6868 | fi | |
6869 | ||
6870 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6871 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6872 | # are permitted. | |
6873 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6874 | if test x${is_cross_compiler} = xno ; then | |
6875 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6876 | exit 1 | |
6877 | fi | |
6878 | if test x"${with_libs}" != xyes ; then | |
6879 | # Copy the libraries in reverse order, so that files in the first named | |
6880 | # library override files in subsequent libraries. | |
eae5b2bc | 6881 | x=${gcc_cv_tool_prefix} |
8e1fea1a | 6882 | for l in ${with_libs}; do |
b30fcfae | 6883 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
8e1fea1a | 6884 | done |
6885 | fi | |
6886 | fi | |
6887 | ||
7bfefa9d | 6888 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
c47832b1 | 6889 | # |
6890 | # This is done by determining whether or not the appropriate directory | |
6891 | # is available, and by checking whether or not specific configurations | |
6892 | # have requested that this magic not happen. | |
b30fcfae | 6893 | # |
6894 | # The command line options always override the explicit settings in | |
e757a6a8 | 6895 | # configure.ac, and the settings in configure.ac override this magic. |
c47832b1 | 6896 | # |
b30fcfae | 6897 | # If the default for a toolchain is to use GNU as and ld, and you don't |
c47832b1 | 6898 | # want to do that, then you should use the --without-gnu-as and |
7bfefa9d | 6899 | # --without-gnu-ld options for the configure script. Similarly, if |
6900 | # the default is to use the included zlib and you don't want to do that, | |
6901 | # you should use the --with-system-zlib option for the configure script. | |
c47832b1 | 6902 | |
6903 | if test x${use_gnu_as} = x && | |
6904 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6905 | with_gnu_as=yes | |
6906 | extra_host_args="$extra_host_args --with-gnu-as" | |
6907 | fi | |
6908 | ||
6909 | if test x${use_gnu_ld} = x && | |
3d47fcf5 | 6910 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
c47832b1 | 6911 | with_gnu_ld=yes |
6912 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6913 | fi | |
6914 | ||
7bfefa9d | 6915 | if test x${use_included_zlib} = x && |
6916 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6917 | : | |
6918 | else | |
6919 | with_system_zlib=yes | |
6920 | extra_host_args="$extra_host_args --with-system-zlib" | |
6921 | fi | |
6922 | ||
c47832b1 | 6923 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6924 | # can detect this case. | |
6925 | ||
6926 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6927 | with_newlib=yes | |
6928 | extra_host_args="$extra_host_args --with-newlib" | |
6929 | fi | |
6930 | ||
8e1fea1a | 6931 | # Handle ${copy_dirs} |
6932 | set fnord ${copy_dirs} | |
6933 | shift | |
6934 | while test $# != 0 ; do | |
6935 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6936 | : | |
6937 | else | |
6938 | echo Copying $1 to $2 | |
6939 | ||
6940 | # Use the install script to create the directory and all required | |
6941 | # parent directories. | |
6942 | if test -d $2 ; then | |
6943 | : | |
6944 | else | |
6945 | echo >config.temp | |
6946 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6947 | fi | |
6948 | ||
6949 | # Copy the directory, assuming we have tar. | |
6950 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6951 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6952 | ||
6953 | # It is the responsibility of the user to correctly adjust all | |
6954 | # symlinks. If somebody can figure out how to handle them correctly | |
6955 | # here, feel free to add the code. | |
6956 | ||
6957 | echo $1 > $2/COPIED | |
6958 | fi | |
6959 | shift; shift | |
6960 | done | |
6961 | ||
c47832b1 | 6962 | # Determine a target-dependent exec_prefix that the installed |
6963 | # gcc will search in. Keep this list sorted by triplet, with | |
6964 | # the *-*-osname triplets last. | |
6965 | md_exec_prefix= | |
6966 | case "${target}" in | |
09c2d953 | 6967 | i[34567]86-pc-msdosdjgpp*) |
c47832b1 | 6968 | md_exec_prefix=/dev/env/DJDIR/bin |
6969 | ;; | |
c47832b1 | 6970 | *-*-hpux* | \ |
c47832b1 | 6971 | *-*-nto-qnx* | \ |
93faf308 | 6972 | *-*-solaris2*) |
c47832b1 | 6973 | md_exec_prefix=/usr/ccs/bin |
6974 | ;; | |
6975 | esac | |
6976 | ||
71ab34df | 6977 | extra_arflags_for_target= |
6978 | extra_nmflags_for_target= | |
6979 | extra_ranlibflags_for_target= | |
6980 | target_makefile_frag=/dev/null | |
6981 | case "${target}" in | |
57c7de11 | 6982 | spu-*-*) |
6983 | target_makefile_frag="config/mt-spu" | |
6984 | ;; | |
d781ea5c | 6985 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
f8520ad7 | 6986 | target_makefile_frag="config/mt-sde" |
6987 | ;; | |
3013c2c7 | 6988 | mipsisa*-*-elfoabi*) |
6989 | target_makefile_frag="config/mt-mips-elfoabi" | |
6990 | ;; | |
559b0712 | 6991 | mips*-*-*linux* | mips*-*-gnu*) |
6992 | target_makefile_frag="config/mt-mips-gnu" | |
6993 | ;; | |
2481a2c1 | 6994 | nios2-*-elf*) |
6995 | target_makefile_frag="config/mt-nios2-elf" | |
6996 | ;; | |
a703ac2b | 6997 | *-*-linux-android*) |
6998 | target_makefile_frag="config/mt-android" | |
6999 | ;; | |
3bef4012 | 7000 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
cb8a7007 | 7001 | target_makefile_frag="config/mt-gnu" |
71ab34df | 7002 | ;; |
7003 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
b30fcfae | 7004 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
71ab34df | 7005 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7006 | # harmless if we're using GNU nm or ar. | |
7007 | extra_arflags_for_target=" -X32_64" | |
7008 | extra_nmflags_for_target=" -B -X32_64" | |
7009 | ;; | |
71ab34df | 7010 | esac |
7011 | ||
7012 | alphaieee_frag=/dev/null | |
7013 | case $target in | |
7014 | alpha*-*-*) | |
7015 | # This just makes sure to use the -mieee option to build target libs. | |
7016 | # This should probably be set individually by each library. | |
7017 | alphaieee_frag="config/mt-alphaieee" | |
7018 | ;; | |
7019 | esac | |
7020 | ||
7021 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7022 | # the target libraries, similarly if it is not specified, use -Os | |
7023 | # on selected platforms. | |
7024 | ospace_frag=/dev/null | |
7025 | case "${enable_target_optspace}:${target}" in | |
7026 | yes:*) | |
7027 | ospace_frag="config/mt-ospace" | |
7028 | ;; | |
7029 | :d30v-*) | |
7030 | ospace_frag="config/mt-d30v" | |
7031 | ;; | |
1c26a2ee | 7032 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
71ab34df | 7033 | ospace_frag="config/mt-ospace" |
7034 | ;; | |
7035 | no:* | :*) | |
7036 | ;; | |
7037 | *) | |
7038 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7039 | ;; | |
7040 | esac | |
7041 | ||
71ab34df | 7042 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7043 | # using) don't handle "\$" correctly, so don't use it here. | |
b30fcfae | 7044 | tooldir='${exec_prefix}'/${target_noncanonical} |
71ab34df | 7045 | build_tooldir=${tooldir} |
7046 | ||
71ab34df | 7047 | # Create a .gdbinit file which runs the one in srcdir |
7048 | # and tells GDB to look there for source files. | |
7049 | ||
7050 | if test -r ${srcdir}/.gdbinit ; then | |
7051 | case ${srcdir} in | |
7052 | .) ;; | |
7053 | *) cat > ./.gdbinit <<EOF | |
7054 | # ${NO_EDIT} | |
7055 | dir ${srcdir} | |
7056 | dir . | |
7057 | source ${srcdir}/.gdbinit | |
7058 | EOF | |
7059 | ;; | |
7060 | esac | |
7061 | fi | |
7062 | ||
71ab34df | 7063 | # Make sure that the compiler is able to generate an executable. If it |
7064 | # can't, we are probably in trouble. We don't care whether we can run the | |
7065 | # executable--we might be using a cross compiler--we only care whether it | |
7066 | # can be created. At this point the main configure script has set CC. | |
7067 | we_are_ok=no | |
7068 | echo "int main () { return 0; }" > conftest.c | |
7069 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7070 | if test $? = 0 ; then | |
7071 | if test -s conftest || test -s conftest.exe ; then | |
7072 | we_are_ok=yes | |
7073 | fi | |
b30fcfae | 7074 | fi |
71ab34df | 7075 | case $we_are_ok in |
7076 | no) | |
7077 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7078 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7079 | rm -f conftest* | |
7080 | exit 1 | |
7081 | ;; | |
7082 | esac | |
7083 | rm -f conftest* | |
7084 | ||
7d804f04 | 7085 | # Decide which environment variable is used to find dynamic libraries. |
71ab34df | 7086 | case "${host}" in |
7087 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
b2240ff6 | 7088 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
7d804f04 | 7089 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
71ab34df | 7090 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7091 | esac | |
7092 | ||
7d804f04 | 7093 | # On systems where the dynamic library environment variable is PATH, |
7094 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
7095 | # built executables to PATH. | |
7096 | if test "$RPATH_ENVVAR" = PATH; then | |
7097 | GCC_SHLIB_SUBDIR=/shlib | |
7098 | else | |
7099 | GCC_SHLIB_SUBDIR= | |
7100 | fi | |
7101 | ||
ee055341 | 7102 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7103 | case $enable_bootstrap in | |
7104 | yes) | |
7105 | bootstrap_suffix=bootstrap | |
7106 | BUILD_CONFIG=bootstrap-debug | |
7107 | ;; | |
7108 | no) | |
7109 | bootstrap_suffix=no-bootstrap | |
7110 | BUILD_CONFIG= | |
7111 | ;; | |
7112 | esac | |
7113 | ||
7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7115 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7116 | ||
7117 | ||
7118 | # Check whether --with-build-config was given. | |
7119 | if test "${with_build_config+set}" = set; then : | |
7120 | withval=$with_build_config; case $with_build_config in | |
7121 | yes) with_build_config= ;; | |
7122 | no) with_build_config= BUILD_CONFIG= ;; | |
7123 | esac | |
7124 | fi | |
7125 | ||
7126 | ||
7127 | if test "x${with_build_config}" != x; then | |
7128 | BUILD_CONFIG=$with_build_config | |
7129 | else | |
7130 | case $BUILD_CONFIG in | |
7131 | bootstrap-debug) | |
7132 | if echo "int f (void) { return 0; }" > conftest.c && | |
7133 | ${CC} -c conftest.c && | |
7134 | mv conftest.o conftest.o.g0 && | |
7135 | ${CC} -c -g conftest.c && | |
7136 | mv conftest.o conftest.o.g && | |
7137 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7138 | : | |
7139 | else | |
7140 | BUILD_CONFIG= | |
7141 | fi | |
7142 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7143 | ;; | |
7144 | esac | |
7145 | fi | |
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7147 | $as_echo "$BUILD_CONFIG" >&6; } | |
7148 | ||
7149 | ||
7150 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7152 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7153 | # Check whether --enable-vtable-verify was given. | |
7154 | if test "${enable_vtable_verify+set}" = set; then : | |
7155 | enableval=$enable_vtable_verify; case "$enableval" in | |
7156 | yes) enable_vtable_verify=yes ;; | |
7157 | no) enable_vtable_verify=no ;; | |
7158 | *) enable_vtable_verify=no;; | |
7159 | esac | |
7160 | else | |
7161 | enable_vtable_verify=no | |
7162 | fi | |
7163 | ||
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7165 | $as_echo "$enable_vtable_verify" >&6; } | |
7166 | ||
71ab34df | 7167 | # Record target_configdirs and the configure arguments for target and |
7168 | # build configuration in Makefile. | |
7169 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
2f8725b0 | 7170 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
f4ae1a00 | 7171 | bootstrap_fixincludes=no |
71ab34df | 7172 | |
5c96a839 | 7173 | # If we are building libgomp, bootstrap it. |
7174 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7175 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7176 | fi | |
7177 | ||
ee055341 | 7178 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7179 | # or bootstrap-ubsan, bootstrap it. | |
7180 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7181 | case "$BUILD_CONFIG" in | |
7182 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7183 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
f4ae1a00 | 7184 | bootstrap_fixincludes=yes |
ee055341 | 7185 | ;; |
7186 | esac | |
579abfee | 7187 | fi |
7188 | ||
ee055341 | 7189 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7190 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7191 | test "$enable_vtable_verify" != no; then | |
b710ec85 | 7192 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7193 | fi | |
7194 | ||
71ab34df | 7195 | # Determine whether gdb needs tk/tcl or not. |
7196 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7197 | # and in that case we want gdb to be built without tk. Ugh! | |
7198 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7199 | # so we should be able to put the 'maybe's in unconditionally and | |
7200 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7201 | # 100% sure that that's safe though. | |
8fdaf281 | 7202 | |
f843f075 | 7203 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
71ab34df | 7204 | case "$enable_gdbtk" in |
7205 | no) | |
7206 | GDB_TK="" ;; | |
8fdaf281 | 7207 | yes) |
7208 | GDB_TK="${gdb_tk}" ;; | |
71ab34df | 7209 | *) |
8fdaf281 | 7210 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7211 | # distro. Eventually someone will fix this and move Insight, nee | |
7212 | # gdbtk to a separate directory. | |
7213 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7214 | GDB_TK="${gdb_tk}" | |
7215 | else | |
7216 | GDB_TK="" | |
7217 | fi | |
7218 | ;; | |
71ab34df | 7219 | esac |
415470be | 7220 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7221 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
71ab34df | 7222 | |
01b41571 | 7223 | # Strip out unwanted targets. |
6f4f34a7 | 7224 | |
7225 | # While at that, we remove Makefiles if we were started for recursive | |
7226 | # configuration, so that the top-level Makefile reconfigures them, | |
7227 | # like we used to do when configure itself was recursive. | |
6f4f34a7 | 7228 | |
8bb79148 | 7229 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7230 | # but now we're fixing up the Makefile ourselves with the additional | |
7231 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7232 | # extrasub-{build,host,target} not because there is any reason to split | |
7233 | # the substitutions up that way, but only to remain below the limit of | |
7234 | # 99 commands in a script, for HP-UX sed. | |
9488d90e | 7235 | |
7236 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7237 | # configure will not warn you at all. | |
6f4f34a7 | 7238 | |
7b5fee3e | 7239 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7240 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7241 | yes:yes:*\ gold\ *:*) | |
f00f02a3 | 7242 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
7b5fee3e | 7243 | ;; |
7244 | esac | |
7245 | ||
8bb79148 | 7246 | extrasub_build= |
2f8725b0 | 7247 | for module in ${build_configdirs} ; do |
93f93279 | 7248 | if test -z "${no_recursion}" \ |
7249 | && test -f ${build_subdir}/${module}/Makefile; then | |
7250 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7251 | rm -f ${build_subdir}/${module}/Makefile | |
7252 | fi | |
8bb79148 | 7253 | extrasub_build="$extrasub_build |
93f93279 | 7254 | /^@if build-$module\$/d |
7255 | /^@endif build-$module\$/d | |
9488d90e | 7256 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
93f93279 | 7257 | /^@if build-$module-$bootstrap_suffix\$/d |
9488d90e | 7258 | /^@endif build-$module-$bootstrap_suffix\$/d |
7259 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
93f93279 | 7260 | done |
8bb79148 | 7261 | extrasub_host= |
93f93279 | 7262 | for module in ${configdirs} ; do |
9c19a746 | 7263 | if test -z "${no_recursion}"; then |
35d84d10 | 7264 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
9c19a746 | 7265 | if test -f ${file}; then |
7266 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7267 | rm -f ${file} | |
7268 | fi | |
7269 | done | |
93f93279 | 7270 | fi |
f4ae1a00 | 7271 | case ${module},${bootstrap_fixincludes} in |
7272 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7273 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7274 | esac | |
8bb79148 | 7275 | extrasub_host="$extrasub_host |
93f93279 | 7276 | /^@if $module\$/d |
7277 | /^@endif $module\$/d | |
9488d90e | 7278 | /^@unless $module\$/,/^@endunless $module\$/d |
f4ae1a00 | 7279 | /^@if $module-$host_bootstrap_suffix\$/d |
9488d90e | 7280 | /^@endif $module-$host_bootstrap_suffix\$/d |
7281 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
93f93279 | 7282 | done |
8bb79148 | 7283 | extrasub_target= |
93f93279 | 7284 | for module in ${target_configdirs} ; do |
7285 | if test -z "${no_recursion}" \ | |
7286 | && test -f ${target_subdir}/${module}/Makefile; then | |
7287 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7288 | rm -f ${target_subdir}/${module}/Makefile | |
7289 | fi | |
7ab76cec | 7290 | |
7291 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7292 | case $bootstrap_target_libs in | |
7293 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7294 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7295 | esac | |
7296 | ||
8bb79148 | 7297 | extrasub_target="$extrasub_target |
93f93279 | 7298 | /^@if target-$module\$/d |
7299 | /^@endif target-$module\$/d | |
9488d90e | 7300 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
7ab76cec | 7301 | /^@if target-$module-$target_bootstrap_suffix\$/d |
9488d90e | 7302 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7303 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
93f93279 | 7304 | done |
7305 | ||
8bb79148 | 7306 | # Do the final fixup along with target modules. |
7307 | extrasub_target="$extrasub_target | |
9488d90e | 7308 | /^@if /,/^@endif /d |
7309 | /^@unless /d | |
7310 | /^@endunless /d" | |
71ab34df | 7311 | |
7312 | # Create the serialization dependencies. This uses a temporary file. | |
7313 | ||
cd9a469c | 7314 | # Check whether --enable-serial-configure was given. |
7315 | if test "${enable_serial_configure+set}" = set; then : | |
7316 | enableval=$enable_serial_configure; | |
7317 | fi | |
11d8013a | 7318 | |
7319 | ||
622c1fa9 | 7320 | case ${enable_serial_configure} in |
7321 | yes) | |
7322 | enable_serial_build_configure=yes | |
7323 | enable_serial_host_configure=yes | |
7324 | enable_serial_target_configure=yes | |
7325 | ;; | |
7326 | esac | |
7327 | ||
71ab34df | 7328 | # These force 'configure's to be done one at a time, to avoid problems |
7329 | # with contention over a shared config.cache. | |
7330 | rm -f serdep.tmp | |
11d8013a | 7331 | echo '# serdep.tmp' > serdep.tmp |
71ab34df | 7332 | olditem= |
622c1fa9 | 7333 | test "x${enable_serial_build_configure}" = xyes && |
71ab34df | 7334 | for item in ${build_configdirs} ; do |
7335 | case ${olditem} in | |
7336 | "") ;; | |
11d8013a | 7337 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
71ab34df | 7338 | esac |
7339 | olditem=${item} | |
7340 | done | |
7341 | olditem= | |
622c1fa9 | 7342 | test "x${enable_serial_host_configure}" = xyes && |
71ab34df | 7343 | for item in ${configdirs} ; do |
7344 | case ${olditem} in | |
7345 | "") ;; | |
11d8013a | 7346 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
71ab34df | 7347 | esac |
7348 | olditem=${item} | |
7349 | done | |
7350 | olditem= | |
622c1fa9 | 7351 | test "x${enable_serial_target_configure}" = xyes && |
71ab34df | 7352 | for item in ${target_configdirs} ; do |
7353 | case ${olditem} in | |
7354 | "") ;; | |
11d8013a | 7355 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
71ab34df | 7356 | esac |
7357 | olditem=${item} | |
7358 | done | |
7359 | serialization_dependencies=serdep.tmp | |
7360 | ||
7361 | ||
11d8013a | 7362 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
b30fcfae | 7363 | # target, nonopt, and variable assignments. These are the ones we |
412c2e81 | 7364 | # might not want to pass down to subconfigures. The exception being |
7365 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7366 | # files altogether, and which should be passed on to subconfigures. | |
7367 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7368 | # so that we can pass down a consistent program-transform-name. | |
b30fcfae | 7369 | baseargs= |
0e4d1862 | 7370 | tbaseargs= |
b30fcfae | 7371 | keep_next=no |
7372 | skip_next=no | |
7373 | eval "set -- $ac_configure_args" | |
4ff792a4 | 7374 | for ac_arg |
7375 | do | |
b30fcfae | 7376 | if test X"$skip_next" = X"yes"; then |
7377 | skip_next=no | |
7378 | continue | |
7379 | fi | |
7380 | if test X"$keep_next" = X"yes"; then | |
7381 | case $ac_arg in | |
7382 | *\'*) | |
7383 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7384 | esac | |
7385 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7386 | tbaseargs="$tbaseargs '$ac_arg'" |
b30fcfae | 7387 | keep_next=no |
7388 | continue | |
7389 | fi | |
7390 | ||
7391 | # Handle separated arguments. Based on the logic generated by | |
7392 | # autoconf 2.59. | |
7393 | case $ac_arg in | |
7394 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7395 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7396 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7397 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7398 | separate_arg=no | |
7399 | ;; | |
7400 | -*) | |
7401 | separate_arg=yes | |
7402 | ;; | |
7403 | *) | |
7404 | separate_arg=no | |
7405 | ;; | |
7406 | esac | |
7407 | ||
0e4d1862 | 7408 | skip_targ=no |
7409 | case $ac_arg in | |
7410 | ||
7411 | --with-* | --without-*) | |
7412 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7413 | ||
7414 | case $libopt in | |
7415 | *[-_]include) | |
7416 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7417 | ;; | |
7418 | *[-_]lib) | |
7419 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7420 | ;; | |
7421 | *) | |
7422 | lib=$libopt | |
7423 | ;; | |
7424 | esac | |
7425 | ||
7426 | ||
7427 | case $lib in | |
572cf1f7 | 7428 | mpc | mpfr | gmp | isl) |
0e4d1862 | 7429 | # If we're processing --with-$lib, --with-$lib-include or |
7430 | # --with-$lib-lib, for one of the libs above, and target is | |
7431 | # different from host, don't pass the current argument to any | |
7432 | # target library's configure. | |
7433 | if test x$is_cross_compiler = xyes; then | |
7434 | skip_targ=yes | |
7435 | fi | |
7436 | ;; | |
7437 | esac | |
7438 | ;; | |
7439 | esac | |
7440 | ||
b30fcfae | 7441 | case "$ac_arg" in |
412c2e81 | 7442 | --cache-file=/dev/null | \ |
7443 | -cache-file=/dev/null ) | |
7444 | # Handled here to avoid the test to skip args below. | |
7445 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7446 | tbaseargs="$tbaseargs '$ac_arg'" |
412c2e81 | 7447 | # Assert: $separate_arg should always be no. |
7448 | keep_next=$separate_arg | |
7449 | ;; | |
b30fcfae | 7450 | --no*) |
7451 | continue | |
7452 | ;; | |
7453 | --c* | \ | |
7454 | --sr* | \ | |
7455 | --ho* | \ | |
7456 | --bu* | \ | |
7457 | --t* | \ | |
7458 | --program-* | \ | |
7459 | -cache_file* | \ | |
7460 | -srcdir* | \ | |
7461 | -host* | \ | |
7462 | -build* | \ | |
7463 | -target* | \ | |
7464 | -program-prefix* | \ | |
7465 | -program-suffix* | \ | |
7466 | -program-transform-name* ) | |
7467 | skip_next=$separate_arg | |
7468 | continue | |
7469 | ;; | |
7470 | -*) | |
7471 | # An option. Add it. | |
7472 | case $ac_arg in | |
7473 | *\'*) | |
7474 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7475 | esac | |
7476 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7477 | if test X"$skip_targ" = Xno; then |
7478 | tbaseargs="$tbaseargs '$ac_arg'" | |
7479 | fi | |
b30fcfae | 7480 | keep_next=$separate_arg |
7481 | ;; | |
7482 | *) | |
7483 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7484 | # pass it down; let the Makefile handle this. | |
7485 | continue | |
7486 | ;; | |
7487 | esac | |
7488 | done | |
7489 | # Remove the initial space we just introduced and, as these will be | |
7490 | # expanded by make, quote '$'. | |
7491 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
71ab34df | 7492 | |
fbfea1fa | 7493 | # Add in --program-transform-name, after --program-prefix and |
7494 | # --program-suffix have been applied to it. Autoconf has already | |
7495 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7496 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
b30fcfae | 7497 | # quotes, because this will be expanded first by make and then by the shell. |
fbfea1fa | 7498 | # Also, because we want to override the logic in subdir configure scripts to |
7499 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7500 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7501 | ${program_transform_name} | |
7502 | EOF_SED | |
7503 | gcc_transform_name=`cat conftestsed.out` | |
7504 | rm -f conftestsed.out | |
7505 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
0e4d1862 | 7506 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
af7bb0c0 | 7507 | if test "$silent" = yes; then |
7508 | baseargs="$baseargs --silent" | |
0e4d1862 | 7509 | tbaseargs="$tbaseargs --silent" |
af7bb0c0 | 7510 | fi |
cd2f3773 | 7511 | baseargs="$baseargs --disable-option-checking" |
0e4d1862 | 7512 | tbaseargs="$tbaseargs --disable-option-checking" |
fbfea1fa | 7513 | |
372a3f1e | 7514 | # Record and document user additions to sub configure arguments. |
7515 | ||
7516 | ||
7517 | ||
7518 | ||
71ab34df | 7519 | # For the build-side libraries, we just need to pretend we're native, |
7520 | # and not use the same cache file. Multilibs are neither needed nor | |
b85b703b | 7521 | # desired. We can't even use the same cache file for all build-side |
7522 | # libraries, as they're compiled differently; some with C, some with | |
7523 | # C++ or with different feature-enabling options. | |
7524 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
71ab34df | 7525 | |
7526 | # For host modules, accept cache file option, or specification as blank. | |
7527 | case "${cache_file}" in | |
7528 | "") # empty | |
7529 | cache_file_option="" ;; | |
7530 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7531 | cache_file_option="--cache-file=${cache_file}" ;; | |
7532 | *) # relative path | |
7533 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7534 | esac | |
7535 | ||
ba1081ef | 7536 | # Host dirs don't like to share a cache file either, horribly enough. |
7537 | # This seems to be due to autoconf 2.5x stupidity. | |
372a3f1e | 7538 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
71ab34df | 7539 | |
0e4d1862 | 7540 | target_configargs="$target_configargs ${tbaseargs}" |
71ab34df | 7541 | |
7542 | # Passing a --with-cross-host argument lets the target libraries know | |
7543 | # whether they are being built with a cross-compiler or being built | |
7544 | # native. However, it would be better to use other mechanisms to make the | |
7545 | # sorts of decisions they want to make on this basis. Please consider | |
7546 | # this option to be deprecated. FIXME. | |
7547 | if test x${is_cross_compiler} = xyes ; then | |
b30fcfae | 7548 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
71ab34df | 7549 | fi |
7550 | ||
87ebeb4c | 7551 | # Special user-friendly check for native x86_64-linux build, if |
7552 | # multilib is not explicitly enabled. | |
7553 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7554 | x86_64-*linux*:yes:$build:$build:) | |
6efd9d79 | 7555 | # Make sure we have a development environment that handles 32-bit |
87ebeb4c | 7556 | dev64=no |
7557 | echo "int main () { return 0; }" > conftest.c | |
7558 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7559 | if test $? = 0 ; then | |
7560 | if test -s conftest || test -s conftest.exe ; then | |
7561 | dev64=yes | |
7562 | fi | |
7563 | fi | |
7564 | rm -f conftest* | |
7565 | if test x${dev64} != xyes ; then | |
f00f02a3 | 7566 | 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 |
87ebeb4c | 7567 | fi |
7568 | ;; | |
7569 | esac | |
7570 | ||
59a40389 | 7571 | # Default to --enable-multilib. |
7572 | if test x${enable_multilib} = x ; then | |
71ab34df | 7573 | target_configargs="--enable-multilib ${target_configargs}" |
59a40389 | 7574 | fi |
71ab34df | 7575 | |
7576 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7577 | # changed from the earlier setting of with_newlib. | |
7578 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7579 | target_configargs="--with-newlib ${target_configargs}" | |
7580 | fi | |
7581 | ||
74fef112 | 7582 | # Different target subdirs use different values of certain variables |
7583 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7584 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7585 | # it doesn't automatically accept command-line overrides of them. | |
7586 | # This means it's not safe for target subdirs to share a cache file, | |
7587 | # which is disgusting, but there you have it. Hopefully this can be | |
7588 | # fixed in future. It's still worthwhile to use a cache file for each | |
7589 | # directory. I think. | |
7590 | ||
a8abbd9d | 7591 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7592 | # We need to pass --target, as newer autoconf's requires consistency | |
7593 | # for target_alias and gcc doesn't manage it consistently. | |
d45318b3 | 7594 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
71ab34df | 7595 | |
71ab34df | 7596 | FLAGS_FOR_TARGET= |
7597 | case " $target_configdirs " in | |
7598 | *" newlib "*) | |
7599 | case " $target_configargs " in | |
7600 | *" --with-newlib "*) | |
7601 | case "$target" in | |
fe284774 | 7602 | *-cygwin*) |
db54564d | 7603 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
fe284774 | 7604 | ;; |
71ab34df | 7605 | esac |
7606 | ||
7607 | # If we're not building GCC, don't discard standard headers. | |
7608 | if test -d ${srcdir}/gcc; then | |
7609 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7610 | ||
7611 | if test "${build}" != "${host}"; then | |
7612 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7613 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7614 | # to it. This is right: we don't want to search that directory | |
7615 | # for binaries, but we want the header files in there, so add | |
7616 | # them explicitly. | |
e619f0a6 | 7617 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
71ab34df | 7618 | |
7619 | # Someone might think of using the pre-installed headers on | |
7620 | # Canadian crosses, in case the installed compiler is not fully | |
7621 | # compatible with the compiler being built. In this case, it | |
7622 | # would be better to flag an error than risking having | |
7623 | # incompatible object files being constructed. We can't | |
7624 | # guarantee that an error will be flagged, but let's hope the | |
7625 | # compiler will do it, when presented with incompatible header | |
7626 | # files. | |
7627 | fi | |
7628 | fi | |
7629 | ||
7630 | case "${target}-${is_cross_compiler}" in | |
f74ea578 | 7631 | i[3456789]86-*-linux*-no) |
71ab34df | 7632 | # Here host == target, so we don't need to build gcc, |
7633 | # so we don't want to discard standard headers. | |
7634 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7635 | ;; | |
7636 | *) | |
7637 | # If we're building newlib, use its generic headers last, but search | |
7638 | # for any libc-related directories first (so make it the last -B | |
7639 | # switch). | |
7640 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
1c5767f1 | 7641 | |
7642 | # If we're building libgloss, find the startup file, simulator library | |
7643 | # and linker script. | |
7644 | case " $target_configdirs " in | |
7645 | *" libgloss "*) | |
7646 | # Look for startup file, simulator library and maybe linker script. | |
7647 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7648 | # Look for libnosys.a in case the target needs it. | |
7649 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7650 | # Most targets have the linker script in the source directory. | |
7651 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7652 | ;; | |
7653 | esac | |
71ab34df | 7654 | ;; |
7655 | esac | |
7656 | ;; | |
7657 | esac | |
7658 | ;; | |
7659 | esac | |
fe284774 | 7660 | |
d6d689df | 7661 | case "$target" in |
fe284774 | 7662 | x86_64-*mingw* | *-w64-mingw*) |
7663 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7664 | # however, use a symlink named 'mingw' in ${prefix} . | |
7665 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7666 | ;; | |
7667 | *-mingw*) | |
7668 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7669 | 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' | |
7670 | ;; | |
d6d689df | 7671 | esac |
71ab34df | 7672 | |
d8e9ea04 | 7673 | # Allow the user to override the flags for |
7674 | # our build compiler if desired. | |
823e8b8d | 7675 | if test x"${build}" = x"${host}" ; then |
7676 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7677 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7678 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7679 | fi | |
d8e9ea04 | 7680 | |
71ab34df | 7681 | # On Canadian crosses, we'll be searching the right directories for |
7682 | # the previously-installed cross compiler, so don't bother to add | |
7683 | # flags for directories within the install tree of the compiler | |
7684 | # being built; programs in there won't even run. | |
7685 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7686 | # Search for pre-installed headers if nothing else fits. | |
5750c7d4 | 7687 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
71ab34df | 7688 | fi |
7689 | ||
7690 | if test "x${use_gnu_ld}" = x && | |
7691 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7692 | # Arrange for us to find uninstalled linker scripts. | |
c1eb9e31 | 7693 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
71ab34df | 7694 | fi |
7695 | ||
24714a39 | 7696 | # Search for other target-specific linker scripts and such. |
7697 | case "${target}" in | |
38d7211b | 7698 | mep*) |
7699 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7700 | ;; | |
24714a39 | 7701 | esac |
7702 | ||
71ab34df | 7703 | # Makefile fragments. |
03c65091 | 7704 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7705 | do | |
7706 | eval fragval=\$$frag | |
7707 | if test $fragval != /dev/null; then | |
7708 | eval $frag=${srcdir}/$fragval | |
7709 | fi | |
7710 | done | |
71ab34df | 7711 | |
7712 | ||
7713 | ||
7714 | ||
7715 | ||
7716 | # Miscellanea: directories, flags, etc. | |
7717 | ||
7718 | ||
7719 | ||
7720 | ||
7721 | ||
7722 | ||
7723 | ||
7d804f04 | 7724 | |
2f8725b0 | 7725 | # Build module lists & subconfigure args. |
71ab34df | 7726 | |
7727 | ||
7728 | ||
f5aebe3e | 7729 | # Host module lists & subconfigure args. |
7730 | ||
7731 | ||
7732 | ||
1fda3360 | 7733 | |
f5aebe3e | 7734 | # Target module lists & subconfigure args. |
7735 | ||
7736 | ||
7737 | ||
7738 | # Build tools. | |
7739 | ||
7740 | ||
7741 | ||
93c5e793 | 7742 | |
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
7750 | ||
7751 | ||
7752 | ||
7753 | ||
7754 | ||
03385ed3 | 7755 | |
f5aebe3e | 7756 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7757 | # on the build machine. These are used if the Makefile can't locate these | |
7758 | # programs in objdir. | |
7759 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7760 | ||
7761 | for ac_prog in 'bison -y' byacc yacc | |
7762 | do | |
b30fcfae | 7763 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7764 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7766 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7767 | if ${ac_cv_prog_YACC+:} false; then : |
cd9a469c | 7768 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 7769 | else |
7770 | if test -n "$YACC"; then | |
7771 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7772 | else | |
b30fcfae | 7773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7774 | for as_dir in $PATH | |
7775 | do | |
7776 | IFS=$as_save_IFS | |
7777 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7778 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7779 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 7780 | ac_cv_prog_YACC="$ac_prog" |
cd9a469c | 7781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7782 | break 2 |
7783 | fi | |
7784 | done | |
cd9a469c | 7785 | done |
7786 | IFS=$as_save_IFS | |
b30fcfae | 7787 | |
f5aebe3e | 7788 | fi |
7789 | fi | |
b30fcfae | 7790 | YACC=$ac_cv_prog_YACC |
f5aebe3e | 7791 | if test -n "$YACC"; then |
cd9a469c | 7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7793 | $as_echo "$YACC" >&6; } | |
f5aebe3e | 7794 | else |
cd9a469c | 7795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7796 | $as_echo "no" >&6; } | |
f5aebe3e | 7797 | fi |
7798 | ||
cd9a469c | 7799 | |
b30fcfae | 7800 | test -n "$YACC" && break |
f5aebe3e | 7801 | done |
7802 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7803 | ||
7804 | case " $build_configdirs " in | |
7805 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
f5aebe3e | 7806 | esac |
7807 | ||
7808 | for ac_prog in bison | |
7809 | do | |
b30fcfae | 7810 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7811 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7813 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7814 | if ${ac_cv_prog_BISON+:} false; then : |
cd9a469c | 7815 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 7816 | else |
7817 | if test -n "$BISON"; then | |
7818 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7819 | else | |
b30fcfae | 7820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7821 | for as_dir in $PATH | |
7822 | do | |
7823 | IFS=$as_save_IFS | |
7824 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7825 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 7827 | ac_cv_prog_BISON="$ac_prog" |
cd9a469c | 7828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7829 | break 2 |
7830 | fi | |
7831 | done | |
cd9a469c | 7832 | done |
7833 | IFS=$as_save_IFS | |
b30fcfae | 7834 | |
f5aebe3e | 7835 | fi |
7836 | fi | |
b30fcfae | 7837 | BISON=$ac_cv_prog_BISON |
f5aebe3e | 7838 | if test -n "$BISON"; then |
cd9a469c | 7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7840 | $as_echo "$BISON" >&6; } | |
f5aebe3e | 7841 | else |
cd9a469c | 7842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7843 | $as_echo "no" >&6; } | |
f5aebe3e | 7844 | fi |
7845 | ||
cd9a469c | 7846 | |
b30fcfae | 7847 | test -n "$BISON" && break |
f5aebe3e | 7848 | done |
7849 | test -n "$BISON" || BISON="$MISSING bison" | |
7850 | ||
7851 | case " $build_configdirs " in | |
7852 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7853 | esac | |
7854 | ||
7855 | for ac_prog in gm4 gnum4 m4 | |
7856 | do | |
b30fcfae | 7857 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7858 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7860 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7861 | if ${ac_cv_prog_M4+:} false; then : |
cd9a469c | 7862 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 7863 | else |
7864 | if test -n "$M4"; then | |
7865 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7866 | else | |
b30fcfae | 7867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7868 | for as_dir in $PATH | |
7869 | do | |
7870 | IFS=$as_save_IFS | |
7871 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7872 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 7874 | ac_cv_prog_M4="$ac_prog" |
cd9a469c | 7875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7876 | break 2 |
7877 | fi | |
7878 | done | |
cd9a469c | 7879 | done |
7880 | IFS=$as_save_IFS | |
b30fcfae | 7881 | |
f5aebe3e | 7882 | fi |
7883 | fi | |
b30fcfae | 7884 | M4=$ac_cv_prog_M4 |
f5aebe3e | 7885 | if test -n "$M4"; then |
cd9a469c | 7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7887 | $as_echo "$M4" >&6; } | |
f5aebe3e | 7888 | else |
cd9a469c | 7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7890 | $as_echo "no" >&6; } | |
f5aebe3e | 7891 | fi |
7892 | ||
cd9a469c | 7893 | |
b30fcfae | 7894 | test -n "$M4" && break |
f5aebe3e | 7895 | done |
7896 | test -n "$M4" || M4="$MISSING m4" | |
7897 | ||
7898 | case " $build_configdirs " in | |
7899 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7900 | esac | |
7901 | ||
7902 | for ac_prog in flex lex | |
7903 | do | |
b30fcfae | 7904 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7905 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7907 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7908 | if ${ac_cv_prog_LEX+:} false; then : |
cd9a469c | 7909 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 7910 | else |
7911 | if test -n "$LEX"; then | |
7912 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7913 | else | |
b30fcfae | 7914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7915 | for as_dir in $PATH | |
7916 | do | |
7917 | IFS=$as_save_IFS | |
7918 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7919 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7920 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 7921 | ac_cv_prog_LEX="$ac_prog" |
cd9a469c | 7922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7923 | break 2 |
7924 | fi | |
7925 | done | |
cd9a469c | 7926 | done |
7927 | IFS=$as_save_IFS | |
b30fcfae | 7928 | |
f5aebe3e | 7929 | fi |
7930 | fi | |
b30fcfae | 7931 | LEX=$ac_cv_prog_LEX |
f5aebe3e | 7932 | if test -n "$LEX"; then |
cd9a469c | 7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7934 | $as_echo "$LEX" >&6; } | |
f5aebe3e | 7935 | else |
cd9a469c | 7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7937 | $as_echo "no" >&6; } | |
f5aebe3e | 7938 | fi |
7939 | ||
cd9a469c | 7940 | |
b30fcfae | 7941 | test -n "$LEX" && break |
f5aebe3e | 7942 | done |
7943 | test -n "$LEX" || LEX="$MISSING flex" | |
7944 | ||
7945 | case " $build_configdirs " in | |
7946 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7947 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7948 | esac | |
7949 | ||
7950 | for ac_prog in flex | |
7951 | do | |
b30fcfae | 7952 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7953 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7955 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7956 | if ${ac_cv_prog_FLEX+:} false; then : |
cd9a469c | 7957 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 7958 | else |
7959 | if test -n "$FLEX"; then | |
7960 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7961 | else | |
b30fcfae | 7962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7963 | for as_dir in $PATH | |
7964 | do | |
7965 | IFS=$as_save_IFS | |
7966 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7967 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 7969 | ac_cv_prog_FLEX="$ac_prog" |
cd9a469c | 7970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7971 | break 2 |
7972 | fi | |
7973 | done | |
cd9a469c | 7974 | done |
7975 | IFS=$as_save_IFS | |
b30fcfae | 7976 | |
f5aebe3e | 7977 | fi |
7978 | fi | |
b30fcfae | 7979 | FLEX=$ac_cv_prog_FLEX |
f5aebe3e | 7980 | if test -n "$FLEX"; then |
cd9a469c | 7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7982 | $as_echo "$FLEX" >&6; } | |
f5aebe3e | 7983 | else |
cd9a469c | 7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7985 | $as_echo "no" >&6; } | |
f5aebe3e | 7986 | fi |
7987 | ||
cd9a469c | 7988 | |
b30fcfae | 7989 | test -n "$FLEX" && break |
f5aebe3e | 7990 | done |
7991 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7992 | ||
7993 | case " $build_configdirs " in | |
7994 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7995 | esac | |
7996 | ||
7997 | for ac_prog in makeinfo | |
7998 | do | |
b30fcfae | 7999 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 8000 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8002 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8003 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
cd9a469c | 8004 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 8005 | else |
8006 | if test -n "$MAKEINFO"; then | |
8007 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8008 | else | |
b30fcfae | 8009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8010 | for as_dir in $PATH | |
8011 | do | |
8012 | IFS=$as_save_IFS | |
8013 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8014 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8015 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8016 | ac_cv_prog_MAKEINFO="$ac_prog" |
cd9a469c | 8017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8018 | break 2 |
8019 | fi | |
8020 | done | |
cd9a469c | 8021 | done |
8022 | IFS=$as_save_IFS | |
b30fcfae | 8023 | |
f5aebe3e | 8024 | fi |
8025 | fi | |
b30fcfae | 8026 | MAKEINFO=$ac_cv_prog_MAKEINFO |
f5aebe3e | 8027 | if test -n "$MAKEINFO"; then |
cd9a469c | 8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8029 | $as_echo "$MAKEINFO" >&6; } | |
f5aebe3e | 8030 | else |
cd9a469c | 8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8032 | $as_echo "no" >&6; } | |
f5aebe3e | 8033 | fi |
8034 | ||
cd9a469c | 8035 | |
b30fcfae | 8036 | test -n "$MAKEINFO" && break |
f5aebe3e | 8037 | done |
8038 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8039 | ||
8040 | case " $build_configdirs " in | |
8041 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8042 | *) | |
8043 | ||
03caadda | 8044 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
f5aebe3e | 8045 | # higher, else we use the "missing" dummy. |
8046 | if ${MAKEINFO} --version \ | |
03caadda | 8047 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
f5aebe3e | 8048 | : |
8049 | else | |
8050 | MAKEINFO="$MISSING makeinfo" | |
8051 | fi | |
8052 | ;; | |
8053 | ||
8054 | esac | |
71ab34df | 8055 | |
f5aebe3e | 8056 | # FIXME: expect and dejagnu may become build tools? |
71ab34df | 8057 | |
f5aebe3e | 8058 | for ac_prog in expect |
8059 | do | |
b30fcfae | 8060 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 8061 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8063 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8064 | if ${ac_cv_prog_EXPECT+:} false; then : |
cd9a469c | 8065 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 8066 | else |
8067 | if test -n "$EXPECT"; then | |
8068 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8069 | else | |
b30fcfae | 8070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8071 | for as_dir in $PATH | |
8072 | do | |
8073 | IFS=$as_save_IFS | |
8074 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8075 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8076 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8077 | ac_cv_prog_EXPECT="$ac_prog" |
cd9a469c | 8078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8079 | break 2 |
8080 | fi | |
8081 | done | |
cd9a469c | 8082 | done |
8083 | IFS=$as_save_IFS | |
b30fcfae | 8084 | |
f5aebe3e | 8085 | fi |
8086 | fi | |
b30fcfae | 8087 | EXPECT=$ac_cv_prog_EXPECT |
f5aebe3e | 8088 | if test -n "$EXPECT"; then |
cd9a469c | 8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8090 | $as_echo "$EXPECT" >&6; } | |
f5aebe3e | 8091 | else |
cd9a469c | 8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8093 | $as_echo "no" >&6; } | |
f5aebe3e | 8094 | fi |
71ab34df | 8095 | |
cd9a469c | 8096 | |
b30fcfae | 8097 | test -n "$EXPECT" && break |
f5aebe3e | 8098 | done |
8099 | test -n "$EXPECT" || EXPECT="expect" | |
71ab34df | 8100 | |
f5aebe3e | 8101 | case " $configdirs " in |
8102 | *" expect "*) | |
8103 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8104 | ;; | |
8105 | esac | |
71ab34df | 8106 | |
f5aebe3e | 8107 | for ac_prog in runtest |
8108 | do | |
b30fcfae | 8109 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 8110 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 8111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8112 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8113 | if ${ac_cv_prog_RUNTEST+:} false; then : |
cd9a469c | 8114 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 8115 | else |
8116 | if test -n "$RUNTEST"; then | |
8117 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
a4af6a58 | 8118 | else |
b30fcfae | 8119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8120 | for as_dir in $PATH | |
8121 | do | |
8122 | IFS=$as_save_IFS | |
8123 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8124 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8126 | ac_cv_prog_RUNTEST="$ac_prog" |
cd9a469c | 8127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8128 | break 2 |
8129 | fi | |
8130 | done | |
cd9a469c | 8131 | done |
8132 | IFS=$as_save_IFS | |
b30fcfae | 8133 | |
f5aebe3e | 8134 | fi |
8135 | fi | |
b30fcfae | 8136 | RUNTEST=$ac_cv_prog_RUNTEST |
f5aebe3e | 8137 | if test -n "$RUNTEST"; then |
cd9a469c | 8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8139 | $as_echo "$RUNTEST" >&6; } | |
f5aebe3e | 8140 | else |
cd9a469c | 8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8142 | $as_echo "no" >&6; } | |
f5aebe3e | 8143 | fi |
71ab34df | 8144 | |
cd9a469c | 8145 | |
b30fcfae | 8146 | test -n "$RUNTEST" && break |
f5aebe3e | 8147 | done |
8148 | test -n "$RUNTEST" || RUNTEST="runtest" | |
71ab34df | 8149 | |
f5aebe3e | 8150 | case " $configdirs " in |
8151 | *" dejagnu "*) | |
8d365775 | 8152 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
f5aebe3e | 8153 | ;; |
8154 | esac | |
71ab34df | 8155 | |
8156 | ||
71ab34df | 8157 | # Host tools. |
bb612911 | 8158 | ncn_tool_prefix= |
8159 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8160 | ncn_target_tool_prefix= | |
8161 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8162 | ||
95a05732 | 8163 | |
8164 | ||
8165 | if test -n "$AR"; then | |
8166 | ac_cv_prog_AR=$AR | |
8167 | elif test -n "$ac_cv_prog_AR"; then | |
8168 | AR=$ac_cv_prog_AR | |
8169 | fi | |
8170 | ||
8171 | if test -n "$ac_cv_prog_AR"; then | |
8172 | for ncn_progname in ar; do | |
8173 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8174 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8176 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8177 | if ${ac_cv_prog_AR+:} false; then : |
cd9a469c | 8178 | $as_echo_n "(cached) " >&6 |
95a05732 | 8179 | else |
8180 | if test -n "$AR"; then | |
8181 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8182 | else | |
8183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8184 | for as_dir in $PATH | |
8185 | do | |
8186 | IFS=$as_save_IFS | |
8187 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8188 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8189 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8190 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8192 | break 2 |
8193 | fi | |
8194 | done | |
cd9a469c | 8195 | done |
8196 | IFS=$as_save_IFS | |
95a05732 | 8197 | |
8198 | fi | |
8199 | fi | |
8200 | AR=$ac_cv_prog_AR | |
8201 | if test -n "$AR"; then | |
cd9a469c | 8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8203 | $as_echo "$AR" >&6; } | |
95a05732 | 8204 | else |
cd9a469c | 8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8206 | $as_echo "no" >&6; } | |
95a05732 | 8207 | fi |
8208 | ||
cd9a469c | 8209 | |
95a05732 | 8210 | done |
8211 | fi | |
8212 | ||
8213 | for ncn_progname in ar; do | |
768691b5 | 8214 | if test -n "$ncn_tool_prefix"; then |
8215 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8216 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8218 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8219 | if ${ac_cv_prog_AR+:} false; then : |
cd9a469c | 8220 | $as_echo_n "(cached) " >&6 |
bb612911 | 8221 | else |
8222 | if test -n "$AR"; then | |
8223 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8224 | else | |
b30fcfae | 8225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8226 | for as_dir in $PATH | |
8227 | do | |
8228 | IFS=$as_save_IFS | |
8229 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8230 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8232 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8234 | break 2 |
8235 | fi | |
8236 | done | |
cd9a469c | 8237 | done |
8238 | IFS=$as_save_IFS | |
b30fcfae | 8239 | |
bb612911 | 8240 | fi |
8241 | fi | |
b30fcfae | 8242 | AR=$ac_cv_prog_AR |
bb612911 | 8243 | if test -n "$AR"; then |
cd9a469c | 8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8245 | $as_echo "$AR" >&6; } | |
bb612911 | 8246 | else |
cd9a469c | 8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8248 | $as_echo "no" >&6; } | |
bb612911 | 8249 | fi |
8250 | ||
cd9a469c | 8251 | |
768691b5 | 8252 | fi |
8253 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8254 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8255 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8257 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8258 | if ${ac_cv_prog_AR+:} false; then : |
cd9a469c | 8259 | $as_echo_n "(cached) " >&6 |
bb612911 | 8260 | else |
768691b5 | 8261 | if test -n "$AR"; then |
ae48753c | 8262 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8263 | else | |
b30fcfae | 8264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8265 | for as_dir in $PATH | |
8266 | do | |
8267 | IFS=$as_save_IFS | |
8268 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8269 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8271 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8273 | break 2 |
8274 | fi | |
8275 | done | |
cd9a469c | 8276 | done |
8277 | IFS=$as_save_IFS | |
b30fcfae | 8278 | |
bb612911 | 8279 | fi |
8280 | fi | |
b30fcfae | 8281 | AR=$ac_cv_prog_AR |
768691b5 | 8282 | if test -n "$AR"; then |
cd9a469c | 8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8284 | $as_echo "$AR" >&6; } | |
bb612911 | 8285 | else |
cd9a469c | 8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8287 | $as_echo "no" >&6; } | |
bb612911 | 8288 | fi |
b30fcfae | 8289 | |
cd9a469c | 8290 | |
768691b5 | 8291 | fi |
8292 | test -n "$ac_cv_prog_AR" && break | |
8293 | done | |
8294 | ||
8295 | if test -z "$ac_cv_prog_AR" ; then | |
8296 | set dummy ar | |
8297 | if test $build = $host ; then | |
8298 | AR="$2" | |
bb612911 | 8299 | else |
768691b5 | 8300 | AR="${ncn_tool_prefix}$2" |
bb612911 | 8301 | fi |
bb612911 | 8302 | fi |
8303 | ||
95a05732 | 8304 | |
8305 | ||
8306 | if test -n "$AS"; then | |
8307 | ac_cv_prog_AS=$AS | |
8308 | elif test -n "$ac_cv_prog_AS"; then | |
8309 | AS=$ac_cv_prog_AS | |
8310 | fi | |
8311 | ||
8312 | if test -n "$ac_cv_prog_AS"; then | |
8313 | for ncn_progname in as; do | |
8314 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8315 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8317 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8318 | if ${ac_cv_prog_AS+:} false; then : |
cd9a469c | 8319 | $as_echo_n "(cached) " >&6 |
95a05732 | 8320 | else |
8321 | if test -n "$AS"; then | |
8322 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8323 | else | |
8324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8325 | for as_dir in $PATH | |
8326 | do | |
8327 | IFS=$as_save_IFS | |
8328 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8329 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8331 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8333 | break 2 |
8334 | fi | |
8335 | done | |
cd9a469c | 8336 | done |
8337 | IFS=$as_save_IFS | |
95a05732 | 8338 | |
8339 | fi | |
8340 | fi | |
8341 | AS=$ac_cv_prog_AS | |
8342 | if test -n "$AS"; then | |
cd9a469c | 8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8344 | $as_echo "$AS" >&6; } | |
95a05732 | 8345 | else |
cd9a469c | 8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8347 | $as_echo "no" >&6; } | |
95a05732 | 8348 | fi |
8349 | ||
cd9a469c | 8350 | |
95a05732 | 8351 | done |
8352 | fi | |
8353 | ||
8354 | for ncn_progname in as; do | |
768691b5 | 8355 | if test -n "$ncn_tool_prefix"; then |
8356 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8357 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8359 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8360 | if ${ac_cv_prog_AS+:} false; then : |
cd9a469c | 8361 | $as_echo_n "(cached) " >&6 |
bb612911 | 8362 | else |
8363 | if test -n "$AS"; then | |
8364 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
a83ffacf | 8365 | else |
b30fcfae | 8366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8367 | for as_dir in $PATH | |
8368 | do | |
8369 | IFS=$as_save_IFS | |
8370 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8371 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8373 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8375 | break 2 |
8376 | fi | |
8377 | done | |
cd9a469c | 8378 | done |
8379 | IFS=$as_save_IFS | |
b30fcfae | 8380 | |
bb612911 | 8381 | fi |
8382 | fi | |
b30fcfae | 8383 | AS=$ac_cv_prog_AS |
bb612911 | 8384 | if test -n "$AS"; then |
cd9a469c | 8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8386 | $as_echo "$AS" >&6; } | |
bb612911 | 8387 | else |
cd9a469c | 8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8389 | $as_echo "no" >&6; } | |
bb612911 | 8390 | fi |
8391 | ||
cd9a469c | 8392 | |
768691b5 | 8393 | fi |
8394 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8396 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8398 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8399 | if ${ac_cv_prog_AS+:} false; then : |
cd9a469c | 8400 | $as_echo_n "(cached) " >&6 |
bb612911 | 8401 | else |
768691b5 | 8402 | if test -n "$AS"; then |
8403 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
bb612911 | 8404 | else |
b30fcfae | 8405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8406 | for as_dir in $PATH | |
8407 | do | |
8408 | IFS=$as_save_IFS | |
8409 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8410 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8412 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8414 | break 2 |
8415 | fi | |
8416 | done | |
cd9a469c | 8417 | done |
8418 | IFS=$as_save_IFS | |
b30fcfae | 8419 | |
bb612911 | 8420 | fi |
8421 | fi | |
b30fcfae | 8422 | AS=$ac_cv_prog_AS |
768691b5 | 8423 | if test -n "$AS"; then |
cd9a469c | 8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8425 | $as_echo "$AS" >&6; } | |
bb612911 | 8426 | else |
cd9a469c | 8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8428 | $as_echo "no" >&6; } | |
bb612911 | 8429 | fi |
b30fcfae | 8430 | |
cd9a469c | 8431 | |
768691b5 | 8432 | fi |
8433 | test -n "$ac_cv_prog_AS" && break | |
8434 | done | |
8435 | ||
8436 | if test -z "$ac_cv_prog_AS" ; then | |
8437 | set dummy as | |
8438 | if test $build = $host ; then | |
8439 | AS="$2" | |
bb612911 | 8440 | else |
768691b5 | 8441 | AS="${ncn_tool_prefix}$2" |
bb612911 | 8442 | fi |
bb612911 | 8443 | fi |
8444 | ||
95a05732 | 8445 | |
8446 | ||
8447 | if test -n "$DLLTOOL"; then | |
8448 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8449 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8450 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8451 | fi | |
8452 | ||
8453 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8454 | for ncn_progname in dlltool; do | |
8455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8456 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8458 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8459 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
cd9a469c | 8460 | $as_echo_n "(cached) " >&6 |
95a05732 | 8461 | else |
8462 | if test -n "$DLLTOOL"; then | |
8463 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8464 | else | |
8465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8466 | for as_dir in $PATH | |
8467 | do | |
8468 | IFS=$as_save_IFS | |
8469 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8470 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8472 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8474 | break 2 |
8475 | fi | |
8476 | done | |
cd9a469c | 8477 | done |
8478 | IFS=$as_save_IFS | |
95a05732 | 8479 | |
8480 | fi | |
8481 | fi | |
8482 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8483 | if test -n "$DLLTOOL"; then | |
cd9a469c | 8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8485 | $as_echo "$DLLTOOL" >&6; } | |
95a05732 | 8486 | else |
cd9a469c | 8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8488 | $as_echo "no" >&6; } | |
95a05732 | 8489 | fi |
8490 | ||
cd9a469c | 8491 | |
95a05732 | 8492 | done |
8493 | fi | |
8494 | ||
8495 | for ncn_progname in dlltool; do | |
768691b5 | 8496 | if test -n "$ncn_tool_prefix"; then |
8497 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8498 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8500 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8501 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
cd9a469c | 8502 | $as_echo_n "(cached) " >&6 |
bb612911 | 8503 | else |
8504 | if test -n "$DLLTOOL"; then | |
8505 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8506 | else | |
b30fcfae | 8507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8508 | for as_dir in $PATH | |
8509 | do | |
8510 | IFS=$as_save_IFS | |
8511 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8512 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8513 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8514 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8516 | break 2 |
8517 | fi | |
8518 | done | |
cd9a469c | 8519 | done |
8520 | IFS=$as_save_IFS | |
b30fcfae | 8521 | |
bb612911 | 8522 | fi |
8523 | fi | |
b30fcfae | 8524 | DLLTOOL=$ac_cv_prog_DLLTOOL |
bb612911 | 8525 | if test -n "$DLLTOOL"; then |
cd9a469c | 8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8527 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8528 | else |
cd9a469c | 8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8530 | $as_echo "no" >&6; } | |
bb612911 | 8531 | fi |
8532 | ||
cd9a469c | 8533 | |
768691b5 | 8534 | fi |
8535 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8536 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8537 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8539 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8540 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
cd9a469c | 8541 | $as_echo_n "(cached) " >&6 |
bb612911 | 8542 | else |
768691b5 | 8543 | if test -n "$DLLTOOL"; then |
8544 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
bb612911 | 8545 | else |
b30fcfae | 8546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8547 | for as_dir in $PATH | |
8548 | do | |
8549 | IFS=$as_save_IFS | |
8550 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8551 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8553 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8555 | break 2 |
8556 | fi | |
8557 | done | |
cd9a469c | 8558 | done |
8559 | IFS=$as_save_IFS | |
b30fcfae | 8560 | |
bb612911 | 8561 | fi |
8562 | fi | |
b30fcfae | 8563 | DLLTOOL=$ac_cv_prog_DLLTOOL |
768691b5 | 8564 | if test -n "$DLLTOOL"; then |
cd9a469c | 8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8566 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8567 | else |
cd9a469c | 8568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8569 | $as_echo "no" >&6; } | |
bb612911 | 8570 | fi |
b30fcfae | 8571 | |
cd9a469c | 8572 | |
768691b5 | 8573 | fi |
8574 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8575 | done | |
8576 | ||
8577 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8578 | set dummy dlltool | |
8579 | if test $build = $host ; then | |
8580 | DLLTOOL="$2" | |
bb612911 | 8581 | else |
768691b5 | 8582 | DLLTOOL="${ncn_tool_prefix}$2" |
bb612911 | 8583 | fi |
bb612911 | 8584 | fi |
8585 | ||
95a05732 | 8586 | |
8587 | ||
8588 | if test -n "$LD"; then | |
8589 | ac_cv_prog_LD=$LD | |
8590 | elif test -n "$ac_cv_prog_LD"; then | |
8591 | LD=$ac_cv_prog_LD | |
8592 | fi | |
8593 | ||
8594 | if test -n "$ac_cv_prog_LD"; then | |
8595 | for ncn_progname in ld; do | |
8596 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8597 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8599 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8600 | if ${ac_cv_prog_LD+:} false; then : |
cd9a469c | 8601 | $as_echo_n "(cached) " >&6 |
95a05732 | 8602 | else |
8603 | if test -n "$LD"; then | |
8604 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8605 | else | |
8606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8607 | for as_dir in $PATH | |
8608 | do | |
8609 | IFS=$as_save_IFS | |
8610 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8611 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8612 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8613 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8615 | break 2 |
8616 | fi | |
8617 | done | |
cd9a469c | 8618 | done |
8619 | IFS=$as_save_IFS | |
95a05732 | 8620 | |
8621 | fi | |
8622 | fi | |
8623 | LD=$ac_cv_prog_LD | |
8624 | if test -n "$LD"; then | |
cd9a469c | 8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8626 | $as_echo "$LD" >&6; } | |
95a05732 | 8627 | else |
cd9a469c | 8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8629 | $as_echo "no" >&6; } | |
95a05732 | 8630 | fi |
8631 | ||
cd9a469c | 8632 | |
95a05732 | 8633 | done |
8634 | fi | |
8635 | ||
8636 | for ncn_progname in ld; do | |
768691b5 | 8637 | if test -n "$ncn_tool_prefix"; then |
8638 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8639 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8641 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8642 | if ${ac_cv_prog_LD+:} false; then : |
cd9a469c | 8643 | $as_echo_n "(cached) " >&6 |
bb612911 | 8644 | else |
8645 | if test -n "$LD"; then | |
8646 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8647 | else | |
b30fcfae | 8648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8649 | for as_dir in $PATH | |
8650 | do | |
8651 | IFS=$as_save_IFS | |
8652 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8653 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8654 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8655 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8657 | break 2 |
8658 | fi | |
8659 | done | |
cd9a469c | 8660 | done |
8661 | IFS=$as_save_IFS | |
b30fcfae | 8662 | |
bb612911 | 8663 | fi |
8664 | fi | |
b30fcfae | 8665 | LD=$ac_cv_prog_LD |
bb612911 | 8666 | if test -n "$LD"; then |
cd9a469c | 8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8668 | $as_echo "$LD" >&6; } | |
bb612911 | 8669 | else |
cd9a469c | 8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8671 | $as_echo "no" >&6; } | |
bb612911 | 8672 | fi |
8673 | ||
cd9a469c | 8674 | |
768691b5 | 8675 | fi |
8676 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8677 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8678 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8680 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8681 | if ${ac_cv_prog_LD+:} false; then : |
cd9a469c | 8682 | $as_echo_n "(cached) " >&6 |
bb612911 | 8683 | else |
768691b5 | 8684 | if test -n "$LD"; then |
8685 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7172be51 | 8686 | else |
b30fcfae | 8687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8688 | for as_dir in $PATH | |
8689 | do | |
8690 | IFS=$as_save_IFS | |
8691 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8692 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8693 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8694 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8696 | break 2 |
8697 | fi | |
8698 | done | |
cd9a469c | 8699 | done |
8700 | IFS=$as_save_IFS | |
b30fcfae | 8701 | |
bb612911 | 8702 | fi |
8703 | fi | |
b30fcfae | 8704 | LD=$ac_cv_prog_LD |
768691b5 | 8705 | if test -n "$LD"; then |
cd9a469c | 8706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8707 | $as_echo "$LD" >&6; } | |
bb612911 | 8708 | else |
cd9a469c | 8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8710 | $as_echo "no" >&6; } | |
bb612911 | 8711 | fi |
b30fcfae | 8712 | |
cd9a469c | 8713 | |
768691b5 | 8714 | fi |
8715 | test -n "$ac_cv_prog_LD" && break | |
8716 | done | |
8717 | ||
8718 | if test -z "$ac_cv_prog_LD" ; then | |
8719 | set dummy ld | |
8720 | if test $build = $host ; then | |
8721 | LD="$2" | |
bb612911 | 8722 | else |
768691b5 | 8723 | LD="${ncn_tool_prefix}$2" |
bb612911 | 8724 | fi |
bb612911 | 8725 | fi |
8726 | ||
95a05732 | 8727 | |
8728 | ||
8729 | if test -n "$LIPO"; then | |
8730 | ac_cv_prog_LIPO=$LIPO | |
8731 | elif test -n "$ac_cv_prog_LIPO"; then | |
8732 | LIPO=$ac_cv_prog_LIPO | |
8733 | fi | |
8734 | ||
8735 | if test -n "$ac_cv_prog_LIPO"; then | |
8736 | for ncn_progname in lipo; do | |
8737 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8738 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8740 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8741 | if ${ac_cv_prog_LIPO+:} false; then : |
cd9a469c | 8742 | $as_echo_n "(cached) " >&6 |
95a05732 | 8743 | else |
8744 | if test -n "$LIPO"; then | |
8745 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8746 | else | |
8747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8748 | for as_dir in $PATH | |
8749 | do | |
8750 | IFS=$as_save_IFS | |
8751 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8752 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8753 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8754 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8756 | break 2 |
8757 | fi | |
8758 | done | |
cd9a469c | 8759 | done |
8760 | IFS=$as_save_IFS | |
95a05732 | 8761 | |
8762 | fi | |
8763 | fi | |
8764 | LIPO=$ac_cv_prog_LIPO | |
8765 | if test -n "$LIPO"; then | |
cd9a469c | 8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8767 | $as_echo "$LIPO" >&6; } | |
95a05732 | 8768 | else |
cd9a469c | 8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8770 | $as_echo "no" >&6; } | |
95a05732 | 8771 | fi |
8772 | ||
cd9a469c | 8773 | |
95a05732 | 8774 | done |
8775 | fi | |
8776 | ||
8777 | for ncn_progname in lipo; do | |
f5aebe3e | 8778 | if test -n "$ncn_tool_prefix"; then |
8779 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8780 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8782 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8783 | if ${ac_cv_prog_LIPO+:} false; then : |
cd9a469c | 8784 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 8785 | else |
8786 | if test -n "$LIPO"; then | |
8787 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8788 | else | |
b30fcfae | 8789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8790 | for as_dir in $PATH | |
8791 | do | |
8792 | IFS=$as_save_IFS | |
8793 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8794 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8796 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8798 | break 2 |
8799 | fi | |
8800 | done | |
cd9a469c | 8801 | done |
8802 | IFS=$as_save_IFS | |
b30fcfae | 8803 | |
f5aebe3e | 8804 | fi |
8805 | fi | |
b30fcfae | 8806 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8807 | if test -n "$LIPO"; then |
cd9a469c | 8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8809 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8810 | else |
cd9a469c | 8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8812 | $as_echo "no" >&6; } | |
f5aebe3e | 8813 | fi |
8814 | ||
cd9a469c | 8815 | |
f5aebe3e | 8816 | fi |
8817 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8818 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8819 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8821 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8822 | if ${ac_cv_prog_LIPO+:} false; then : |
cd9a469c | 8823 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 8824 | else |
8825 | if test -n "$LIPO"; then | |
8826 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8827 | else | |
b30fcfae | 8828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8829 | for as_dir in $PATH | |
8830 | do | |
8831 | IFS=$as_save_IFS | |
8832 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8833 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8835 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8837 | break 2 |
8838 | fi | |
8839 | done | |
cd9a469c | 8840 | done |
8841 | IFS=$as_save_IFS | |
b30fcfae | 8842 | |
f5aebe3e | 8843 | fi |
8844 | fi | |
b30fcfae | 8845 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8846 | if test -n "$LIPO"; then |
cd9a469c | 8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8848 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8849 | else |
cd9a469c | 8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8851 | $as_echo "no" >&6; } | |
f5aebe3e | 8852 | fi |
b30fcfae | 8853 | |
cd9a469c | 8854 | |
f5aebe3e | 8855 | fi |
8856 | test -n "$ac_cv_prog_LIPO" && break | |
8857 | done | |
8858 | ||
8859 | if test -z "$ac_cv_prog_LIPO" ; then | |
8860 | set dummy lipo | |
8861 | if test $build = $host ; then | |
8862 | LIPO="$2" | |
8863 | else | |
8864 | LIPO="${ncn_tool_prefix}$2" | |
8865 | fi | |
8866 | fi | |
8867 | ||
95a05732 | 8868 | |
8869 | ||
8870 | if test -n "$NM"; then | |
8871 | ac_cv_prog_NM=$NM | |
8872 | elif test -n "$ac_cv_prog_NM"; then | |
8873 | NM=$ac_cv_prog_NM | |
8874 | fi | |
8875 | ||
8876 | if test -n "$ac_cv_prog_NM"; then | |
8877 | for ncn_progname in nm; do | |
8878 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8879 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8881 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8882 | if ${ac_cv_prog_NM+:} false; then : |
cd9a469c | 8883 | $as_echo_n "(cached) " >&6 |
bb612911 | 8884 | else |
8885 | if test -n "$NM"; then | |
8886 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8887 | else | |
b30fcfae | 8888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8889 | for as_dir in $PATH | |
8890 | do | |
8891 | IFS=$as_save_IFS | |
8892 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8893 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8895 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8897 | break 2 |
8898 | fi | |
8899 | done | |
cd9a469c | 8900 | done |
8901 | IFS=$as_save_IFS | |
b30fcfae | 8902 | |
bb612911 | 8903 | fi |
8904 | fi | |
b30fcfae | 8905 | NM=$ac_cv_prog_NM |
bb612911 | 8906 | if test -n "$NM"; then |
cd9a469c | 8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8908 | $as_echo "$NM" >&6; } | |
bb612911 | 8909 | else |
cd9a469c | 8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8911 | $as_echo "no" >&6; } | |
bb612911 | 8912 | fi |
8913 | ||
cd9a469c | 8914 | |
95a05732 | 8915 | done |
8916 | fi | |
8917 | ||
8918 | for ncn_progname in nm; do | |
8919 | if test -n "$ncn_tool_prefix"; then | |
8920 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8921 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8923 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8924 | if ${ac_cv_prog_NM+:} false; then : |
cd9a469c | 8925 | $as_echo_n "(cached) " >&6 |
bb612911 | 8926 | else |
768691b5 | 8927 | if test -n "$NM"; then |
8928 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
bb612911 | 8929 | else |
b30fcfae | 8930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8931 | for as_dir in $PATH | |
8932 | do | |
8933 | IFS=$as_save_IFS | |
8934 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8935 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8937 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8939 | break 2 |
8940 | fi | |
8941 | done | |
cd9a469c | 8942 | done |
8943 | IFS=$as_save_IFS | |
b30fcfae | 8944 | |
bb612911 | 8945 | fi |
8946 | fi | |
b30fcfae | 8947 | NM=$ac_cv_prog_NM |
768691b5 | 8948 | if test -n "$NM"; then |
cd9a469c | 8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8950 | $as_echo "$NM" >&6; } | |
bb612911 | 8951 | else |
cd9a469c | 8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8953 | $as_echo "no" >&6; } | |
bb612911 | 8954 | fi |
b30fcfae | 8955 | |
cd9a469c | 8956 | |
768691b5 | 8957 | fi |
95a05732 | 8958 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8959 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8960 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8962 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8963 | if ${ac_cv_prog_NM+:} false; then : |
cd9a469c | 8964 | $as_echo_n "(cached) " >&6 |
95a05732 | 8965 | else |
8966 | if test -n "$NM"; then | |
8967 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8968 | else | |
8969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8970 | for as_dir in $PATH | |
8971 | do | |
8972 | IFS=$as_save_IFS | |
8973 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8974 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8975 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8976 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8978 | break 2 |
8979 | fi | |
8980 | done | |
cd9a469c | 8981 | done |
8982 | IFS=$as_save_IFS | |
95a05732 | 8983 | |
8984 | fi | |
8985 | fi | |
8986 | NM=$ac_cv_prog_NM | |
8987 | if test -n "$NM"; then | |
cd9a469c | 8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8989 | $as_echo "$NM" >&6; } | |
95a05732 | 8990 | else |
cd9a469c | 8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8992 | $as_echo "no" >&6; } | |
95a05732 | 8993 | fi |
8994 | ||
cd9a469c | 8995 | |
95a05732 | 8996 | fi |
8997 | test -n "$ac_cv_prog_NM" && break | |
8998 | done | |
8999 | ||
9000 | if test -z "$ac_cv_prog_NM" ; then | |
9001 | set dummy nm | |
9002 | if test $build = $host ; then | |
9003 | NM="$2" | |
9004 | else | |
9005 | NM="${ncn_tool_prefix}$2" | |
9006 | fi | |
9007 | fi | |
9008 | ||
9009 | ||
9010 | ||
9011 | if test -n "$RANLIB"; then | |
9012 | ac_cv_prog_RANLIB=$RANLIB | |
9013 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9014 | RANLIB=$ac_cv_prog_RANLIB | |
9015 | fi | |
9016 | ||
9017 | if test -n "$ac_cv_prog_RANLIB"; then | |
9018 | for ncn_progname in ranlib; do | |
9019 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9020 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9022 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9023 | if ${ac_cv_prog_RANLIB+:} false; then : |
cd9a469c | 9024 | $as_echo_n "(cached) " >&6 |
95a05732 | 9025 | else |
9026 | if test -n "$RANLIB"; then | |
9027 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9028 | else | |
9029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9030 | for as_dir in $PATH | |
9031 | do | |
9032 | IFS=$as_save_IFS | |
9033 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9034 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9036 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 9037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9038 | break 2 |
9039 | fi | |
9040 | done | |
cd9a469c | 9041 | done |
9042 | IFS=$as_save_IFS | |
95a05732 | 9043 | |
9044 | fi | |
9045 | fi | |
9046 | RANLIB=$ac_cv_prog_RANLIB | |
9047 | if test -n "$RANLIB"; then | |
cd9a469c | 9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9049 | $as_echo "$RANLIB" >&6; } | |
95a05732 | 9050 | else |
cd9a469c | 9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9052 | $as_echo "no" >&6; } | |
95a05732 | 9053 | fi |
9054 | ||
cd9a469c | 9055 | |
95a05732 | 9056 | done |
9057 | fi | |
bb612911 | 9058 | |
95a05732 | 9059 | for ncn_progname in ranlib; do |
768691b5 | 9060 | if test -n "$ncn_tool_prefix"; then |
9061 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9062 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9064 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9065 | if ${ac_cv_prog_RANLIB+:} false; then : |
cd9a469c | 9066 | $as_echo_n "(cached) " >&6 |
bb612911 | 9067 | else |
9068 | if test -n "$RANLIB"; then | |
9069 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9070 | else | |
b30fcfae | 9071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9072 | for as_dir in $PATH | |
9073 | do | |
9074 | IFS=$as_save_IFS | |
9075 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9076 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9078 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9080 | break 2 |
9081 | fi | |
9082 | done | |
cd9a469c | 9083 | done |
9084 | IFS=$as_save_IFS | |
b30fcfae | 9085 | |
bb612911 | 9086 | fi |
9087 | fi | |
b30fcfae | 9088 | RANLIB=$ac_cv_prog_RANLIB |
bb612911 | 9089 | if test -n "$RANLIB"; then |
cd9a469c | 9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9091 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 9092 | else |
cd9a469c | 9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9094 | $as_echo "no" >&6; } | |
bb612911 | 9095 | fi |
9096 | ||
cd9a469c | 9097 | |
768691b5 | 9098 | fi |
9099 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9100 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9101 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9103 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9104 | if ${ac_cv_prog_RANLIB+:} false; then : |
cd9a469c | 9105 | $as_echo_n "(cached) " >&6 |
bb612911 | 9106 | else |
768691b5 | 9107 | if test -n "$RANLIB"; then |
9108 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
bb612911 | 9109 | else |
b30fcfae | 9110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9111 | for as_dir in $PATH | |
9112 | do | |
9113 | IFS=$as_save_IFS | |
9114 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9115 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9117 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 9118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9119 | break 2 |
9120 | fi | |
9121 | done | |
cd9a469c | 9122 | done |
9123 | IFS=$as_save_IFS | |
b30fcfae | 9124 | |
bb612911 | 9125 | fi |
9126 | fi | |
b30fcfae | 9127 | RANLIB=$ac_cv_prog_RANLIB |
768691b5 | 9128 | if test -n "$RANLIB"; then |
cd9a469c | 9129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9130 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 9131 | else |
cd9a469c | 9132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9133 | $as_echo "no" >&6; } | |
bb612911 | 9134 | fi |
b30fcfae | 9135 | |
cd9a469c | 9136 | |
bb612911 | 9137 | fi |
768691b5 | 9138 | test -n "$ac_cv_prog_RANLIB" && break |
9139 | done | |
9140 | ||
9141 | if test -z "$ac_cv_prog_RANLIB" ; then | |
68645a6b | 9142 | RANLIB="true" |
bb612911 | 9143 | fi |
9144 | ||
95a05732 | 9145 | |
9146 | ||
9147 | if test -n "$STRIP"; then | |
9148 | ac_cv_prog_STRIP=$STRIP | |
9149 | elif test -n "$ac_cv_prog_STRIP"; then | |
9150 | STRIP=$ac_cv_prog_STRIP | |
9151 | fi | |
9152 | ||
9153 | if test -n "$ac_cv_prog_STRIP"; then | |
9154 | for ncn_progname in strip; do | |
9155 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9156 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9158 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9159 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 9160 | $as_echo_n "(cached) " >&6 |
95a05732 | 9161 | else |
9162 | if test -n "$STRIP"; then | |
9163 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9164 | else | |
9165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9166 | for as_dir in $PATH | |
9167 | do | |
9168 | IFS=$as_save_IFS | |
9169 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9170 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9172 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9174 | break 2 |
9175 | fi | |
9176 | done | |
cd9a469c | 9177 | done |
9178 | IFS=$as_save_IFS | |
95a05732 | 9179 | |
9180 | fi | |
9181 | fi | |
9182 | STRIP=$ac_cv_prog_STRIP | |
9183 | if test -n "$STRIP"; then | |
cd9a469c | 9184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9185 | $as_echo "$STRIP" >&6; } | |
95a05732 | 9186 | else |
cd9a469c | 9187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9188 | $as_echo "no" >&6; } | |
95a05732 | 9189 | fi |
9190 | ||
cd9a469c | 9191 | |
95a05732 | 9192 | done |
9193 | fi | |
9194 | ||
9195 | for ncn_progname in strip; do | |
f5aebe3e | 9196 | if test -n "$ncn_tool_prefix"; then |
9197 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9198 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9200 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9201 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 9202 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 9203 | else |
9204 | if test -n "$STRIP"; then | |
9205 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9206 | else | |
b30fcfae | 9207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9208 | for as_dir in $PATH | |
9209 | do | |
9210 | IFS=$as_save_IFS | |
9211 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9212 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9213 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9214 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9216 | break 2 |
9217 | fi | |
9218 | done | |
cd9a469c | 9219 | done |
9220 | IFS=$as_save_IFS | |
b30fcfae | 9221 | |
f5aebe3e | 9222 | fi |
9223 | fi | |
b30fcfae | 9224 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9225 | if test -n "$STRIP"; then |
cd9a469c | 9226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9227 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9228 | else |
cd9a469c | 9229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9230 | $as_echo "no" >&6; } | |
f5aebe3e | 9231 | fi |
9232 | ||
cd9a469c | 9233 | |
f5aebe3e | 9234 | fi |
9235 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9236 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9237 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9239 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9240 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 9241 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 9242 | else |
9243 | if test -n "$STRIP"; then | |
9244 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9245 | else | |
b30fcfae | 9246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9247 | for as_dir in $PATH | |
9248 | do | |
9249 | IFS=$as_save_IFS | |
9250 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9251 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9252 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9253 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9255 | break 2 |
9256 | fi | |
9257 | done | |
cd9a469c | 9258 | done |
9259 | IFS=$as_save_IFS | |
b30fcfae | 9260 | |
f5aebe3e | 9261 | fi |
9262 | fi | |
b30fcfae | 9263 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9264 | if test -n "$STRIP"; then |
cd9a469c | 9265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9266 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9267 | else |
cd9a469c | 9268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9269 | $as_echo "no" >&6; } | |
f5aebe3e | 9270 | fi |
b30fcfae | 9271 | |
cd9a469c | 9272 | |
f5aebe3e | 9273 | fi |
9274 | test -n "$ac_cv_prog_STRIP" && break | |
9275 | done | |
9276 | ||
9277 | if test -z "$ac_cv_prog_STRIP" ; then | |
68645a6b | 9278 | STRIP="true" |
f5aebe3e | 9279 | fi |
9280 | ||
95a05732 | 9281 | |
9282 | ||
9283 | if test -n "$WINDRES"; then | |
9284 | ac_cv_prog_WINDRES=$WINDRES | |
9285 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9286 | WINDRES=$ac_cv_prog_WINDRES | |
9287 | fi | |
9288 | ||
9289 | if test -n "$ac_cv_prog_WINDRES"; then | |
9290 | for ncn_progname in windres; do | |
9291 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9292 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9294 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9295 | if ${ac_cv_prog_WINDRES+:} false; then : |
cd9a469c | 9296 | $as_echo_n "(cached) " >&6 |
95a05732 | 9297 | else |
9298 | if test -n "$WINDRES"; then | |
9299 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9300 | else | |
9301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9302 | for as_dir in $PATH | |
9303 | do | |
9304 | IFS=$as_save_IFS | |
9305 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9306 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9308 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9310 | break 2 |
9311 | fi | |
9312 | done | |
cd9a469c | 9313 | done |
9314 | IFS=$as_save_IFS | |
95a05732 | 9315 | |
9316 | fi | |
9317 | fi | |
9318 | WINDRES=$ac_cv_prog_WINDRES | |
9319 | if test -n "$WINDRES"; then | |
cd9a469c | 9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9321 | $as_echo "$WINDRES" >&6; } | |
95a05732 | 9322 | else |
cd9a469c | 9323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9324 | $as_echo "no" >&6; } | |
95a05732 | 9325 | fi |
9326 | ||
cd9a469c | 9327 | |
95a05732 | 9328 | done |
9329 | fi | |
9330 | ||
9331 | for ncn_progname in windres; do | |
768691b5 | 9332 | if test -n "$ncn_tool_prefix"; then |
9333 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9334 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9336 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9337 | if ${ac_cv_prog_WINDRES+:} false; then : |
cd9a469c | 9338 | $as_echo_n "(cached) " >&6 |
bb612911 | 9339 | else |
9340 | if test -n "$WINDRES"; then | |
9341 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9342 | else | |
b30fcfae | 9343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9344 | for as_dir in $PATH | |
9345 | do | |
9346 | IFS=$as_save_IFS | |
9347 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9348 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9350 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9352 | break 2 |
9353 | fi | |
9354 | done | |
cd9a469c | 9355 | done |
9356 | IFS=$as_save_IFS | |
b30fcfae | 9357 | |
bb612911 | 9358 | fi |
9359 | fi | |
b30fcfae | 9360 | WINDRES=$ac_cv_prog_WINDRES |
bb612911 | 9361 | if test -n "$WINDRES"; then |
cd9a469c | 9362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9363 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9364 | else |
cd9a469c | 9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9366 | $as_echo "no" >&6; } | |
bb612911 | 9367 | fi |
9368 | ||
cd9a469c | 9369 | |
768691b5 | 9370 | fi |
9371 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9372 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9373 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9375 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9376 | if ${ac_cv_prog_WINDRES+:} false; then : |
cd9a469c | 9377 | $as_echo_n "(cached) " >&6 |
bb612911 | 9378 | else |
768691b5 | 9379 | if test -n "$WINDRES"; then |
9380 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
bb612911 | 9381 | else |
b30fcfae | 9382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9383 | for as_dir in $PATH | |
9384 | do | |
9385 | IFS=$as_save_IFS | |
9386 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9387 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9388 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9389 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9391 | break 2 |
9392 | fi | |
9393 | done | |
cd9a469c | 9394 | done |
9395 | IFS=$as_save_IFS | |
b30fcfae | 9396 | |
bb612911 | 9397 | fi |
9398 | fi | |
b30fcfae | 9399 | WINDRES=$ac_cv_prog_WINDRES |
768691b5 | 9400 | if test -n "$WINDRES"; then |
cd9a469c | 9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9402 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9403 | else |
cd9a469c | 9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9405 | $as_echo "no" >&6; } | |
bb612911 | 9406 | fi |
b30fcfae | 9407 | |
cd9a469c | 9408 | |
768691b5 | 9409 | fi |
9410 | test -n "$ac_cv_prog_WINDRES" && break | |
9411 | done | |
9412 | ||
9413 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9414 | set dummy windres | |
9415 | if test $build = $host ; then | |
9416 | WINDRES="$2" | |
bb612911 | 9417 | else |
768691b5 | 9418 | WINDRES="${ncn_tool_prefix}$2" |
bb612911 | 9419 | fi |
bb612911 | 9420 | fi |
9421 | ||
95a05732 | 9422 | |
9423 | ||
75d6a0a9 | 9424 | if test -n "$WINDMC"; then |
9425 | ac_cv_prog_WINDMC=$WINDMC | |
9426 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9427 | WINDMC=$ac_cv_prog_WINDMC | |
9428 | fi | |
9429 | ||
9430 | if test -n "$ac_cv_prog_WINDMC"; then | |
9431 | for ncn_progname in windmc; do | |
9432 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9433 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9435 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9436 | if ${ac_cv_prog_WINDMC+:} false; then : |
cd9a469c | 9437 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 9438 | else |
9439 | if test -n "$WINDMC"; then | |
9440 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9441 | else | |
9442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9443 | for as_dir in $PATH | |
9444 | do | |
9445 | IFS=$as_save_IFS | |
9446 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9447 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 9449 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9451 | break 2 |
9452 | fi | |
9453 | done | |
cd9a469c | 9454 | done |
9455 | IFS=$as_save_IFS | |
75d6a0a9 | 9456 | |
9457 | fi | |
9458 | fi | |
9459 | WINDMC=$ac_cv_prog_WINDMC | |
9460 | if test -n "$WINDMC"; then | |
cd9a469c | 9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9462 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9463 | else |
cd9a469c | 9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9465 | $as_echo "no" >&6; } | |
75d6a0a9 | 9466 | fi |
9467 | ||
cd9a469c | 9468 | |
75d6a0a9 | 9469 | done |
9470 | fi | |
9471 | ||
9472 | for ncn_progname in windmc; do | |
9473 | if test -n "$ncn_tool_prefix"; then | |
9474 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9475 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9477 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9478 | if ${ac_cv_prog_WINDMC+:} false; then : |
cd9a469c | 9479 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 9480 | else |
9481 | if test -n "$WINDMC"; then | |
9482 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9483 | else | |
9484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9485 | for as_dir in $PATH | |
9486 | do | |
9487 | IFS=$as_save_IFS | |
9488 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9489 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 9491 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9493 | break 2 |
9494 | fi | |
9495 | done | |
cd9a469c | 9496 | done |
9497 | IFS=$as_save_IFS | |
75d6a0a9 | 9498 | |
9499 | fi | |
9500 | fi | |
9501 | WINDMC=$ac_cv_prog_WINDMC | |
9502 | if test -n "$WINDMC"; then | |
cd9a469c | 9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9504 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9505 | else |
cd9a469c | 9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9507 | $as_echo "no" >&6; } | |
75d6a0a9 | 9508 | fi |
9509 | ||
cd9a469c | 9510 | |
75d6a0a9 | 9511 | fi |
9512 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9513 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9514 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9516 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9517 | if ${ac_cv_prog_WINDMC+:} false; then : |
cd9a469c | 9518 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 9519 | else |
9520 | if test -n "$WINDMC"; then | |
9521 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9522 | else | |
9523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9524 | for as_dir in $PATH | |
9525 | do | |
9526 | IFS=$as_save_IFS | |
9527 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9528 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9529 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 9530 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9532 | break 2 |
9533 | fi | |
9534 | done | |
cd9a469c | 9535 | done |
9536 | IFS=$as_save_IFS | |
75d6a0a9 | 9537 | |
9538 | fi | |
9539 | fi | |
9540 | WINDMC=$ac_cv_prog_WINDMC | |
9541 | if test -n "$WINDMC"; then | |
cd9a469c | 9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9543 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9544 | else |
cd9a469c | 9545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9546 | $as_echo "no" >&6; } | |
75d6a0a9 | 9547 | fi |
9548 | ||
cd9a469c | 9549 | |
75d6a0a9 | 9550 | fi |
9551 | test -n "$ac_cv_prog_WINDMC" && break | |
9552 | done | |
9553 | ||
9554 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9555 | set dummy windmc | |
9556 | if test $build = $host ; then | |
9557 | WINDMC="$2" | |
9558 | else | |
9559 | WINDMC="${ncn_tool_prefix}$2" | |
9560 | fi | |
9561 | fi | |
9562 | ||
9563 | ||
9564 | ||
95a05732 | 9565 | if test -n "$OBJCOPY"; then |
9566 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9567 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9568 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9569 | fi | |
9570 | ||
9571 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9572 | for ncn_progname in objcopy; do | |
9573 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9574 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9576 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9577 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
cd9a469c | 9578 | $as_echo_n "(cached) " >&6 |
95a05732 | 9579 | else |
9580 | if test -n "$OBJCOPY"; then | |
9581 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9582 | else | |
9583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9584 | for as_dir in $PATH | |
9585 | do | |
9586 | IFS=$as_save_IFS | |
9587 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9588 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9589 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9590 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9592 | break 2 |
9593 | fi | |
9594 | done | |
cd9a469c | 9595 | done |
9596 | IFS=$as_save_IFS | |
95a05732 | 9597 | |
9598 | fi | |
9599 | fi | |
9600 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9601 | if test -n "$OBJCOPY"; then | |
cd9a469c | 9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9603 | $as_echo "$OBJCOPY" >&6; } | |
95a05732 | 9604 | else |
cd9a469c | 9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9606 | $as_echo "no" >&6; } | |
95a05732 | 9607 | fi |
9608 | ||
cd9a469c | 9609 | |
95a05732 | 9610 | done |
9611 | fi | |
9612 | ||
9613 | for ncn_progname in objcopy; do | |
768691b5 | 9614 | if test -n "$ncn_tool_prefix"; then |
9615 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9616 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9618 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9619 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
cd9a469c | 9620 | $as_echo_n "(cached) " >&6 |
bb612911 | 9621 | else |
9622 | if test -n "$OBJCOPY"; then | |
9623 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9624 | else | |
b30fcfae | 9625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9626 | for as_dir in $PATH | |
9627 | do | |
9628 | IFS=$as_save_IFS | |
9629 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9630 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9632 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9634 | break 2 |
9635 | fi | |
9636 | done | |
cd9a469c | 9637 | done |
9638 | IFS=$as_save_IFS | |
b30fcfae | 9639 | |
bb612911 | 9640 | fi |
9641 | fi | |
b30fcfae | 9642 | OBJCOPY=$ac_cv_prog_OBJCOPY |
bb612911 | 9643 | if test -n "$OBJCOPY"; then |
cd9a469c | 9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9645 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9646 | else |
cd9a469c | 9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9648 | $as_echo "no" >&6; } | |
bb612911 | 9649 | fi |
9650 | ||
cd9a469c | 9651 | |
768691b5 | 9652 | fi |
9653 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9654 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9655 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9657 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9658 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
cd9a469c | 9659 | $as_echo_n "(cached) " >&6 |
bb612911 | 9660 | else |
768691b5 | 9661 | if test -n "$OBJCOPY"; then |
9662 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
bb612911 | 9663 | else |
b30fcfae | 9664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9665 | for as_dir in $PATH | |
9666 | do | |
9667 | IFS=$as_save_IFS | |
9668 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9669 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9670 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9671 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9673 | break 2 |
9674 | fi | |
9675 | done | |
cd9a469c | 9676 | done |
9677 | IFS=$as_save_IFS | |
b30fcfae | 9678 | |
bb612911 | 9679 | fi |
9680 | fi | |
b30fcfae | 9681 | OBJCOPY=$ac_cv_prog_OBJCOPY |
768691b5 | 9682 | if test -n "$OBJCOPY"; then |
cd9a469c | 9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9684 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9685 | else |
cd9a469c | 9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9687 | $as_echo "no" >&6; } | |
bb612911 | 9688 | fi |
b30fcfae | 9689 | |
cd9a469c | 9690 | |
768691b5 | 9691 | fi |
9692 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9693 | done | |
9694 | ||
9695 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9696 | set dummy objcopy | |
9697 | if test $build = $host ; then | |
9698 | OBJCOPY="$2" | |
bb612911 | 9699 | else |
768691b5 | 9700 | OBJCOPY="${ncn_tool_prefix}$2" |
bb612911 | 9701 | fi |
bb612911 | 9702 | fi |
9703 | ||
95a05732 | 9704 | |
9705 | ||
9706 | if test -n "$OBJDUMP"; then | |
9707 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9708 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9709 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9710 | fi | |
9711 | ||
9712 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9713 | for ncn_progname in objdump; do | |
9714 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9715 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9717 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9718 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
cd9a469c | 9719 | $as_echo_n "(cached) " >&6 |
95a05732 | 9720 | else |
9721 | if test -n "$OBJDUMP"; then | |
9722 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9723 | else | |
9724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9725 | for as_dir in $PATH | |
9726 | do | |
9727 | IFS=$as_save_IFS | |
9728 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9729 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9731 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9733 | break 2 |
9734 | fi | |
9735 | done | |
cd9a469c | 9736 | done |
9737 | IFS=$as_save_IFS | |
95a05732 | 9738 | |
9739 | fi | |
9740 | fi | |
9741 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9742 | if test -n "$OBJDUMP"; then | |
cd9a469c | 9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9744 | $as_echo "$OBJDUMP" >&6; } | |
95a05732 | 9745 | else |
cd9a469c | 9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9747 | $as_echo "no" >&6; } | |
95a05732 | 9748 | fi |
9749 | ||
cd9a469c | 9750 | |
95a05732 | 9751 | done |
9752 | fi | |
9753 | ||
9754 | for ncn_progname in objdump; do | |
768691b5 | 9755 | if test -n "$ncn_tool_prefix"; then |
9756 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9757 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9759 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9760 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
cd9a469c | 9761 | $as_echo_n "(cached) " >&6 |
bb612911 | 9762 | else |
9763 | if test -n "$OBJDUMP"; then | |
9764 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9765 | else | |
b30fcfae | 9766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9767 | for as_dir in $PATH | |
9768 | do | |
9769 | IFS=$as_save_IFS | |
9770 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9771 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9773 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9775 | break 2 |
9776 | fi | |
9777 | done | |
cd9a469c | 9778 | done |
9779 | IFS=$as_save_IFS | |
b30fcfae | 9780 | |
bb612911 | 9781 | fi |
9782 | fi | |
b30fcfae | 9783 | OBJDUMP=$ac_cv_prog_OBJDUMP |
bb612911 | 9784 | if test -n "$OBJDUMP"; then |
cd9a469c | 9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9786 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9787 | else |
cd9a469c | 9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9789 | $as_echo "no" >&6; } | |
bb612911 | 9790 | fi |
9791 | ||
cd9a469c | 9792 | |
768691b5 | 9793 | fi |
9794 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9795 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9796 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9798 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9799 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
cd9a469c | 9800 | $as_echo_n "(cached) " >&6 |
bb612911 | 9801 | else |
768691b5 | 9802 | if test -n "$OBJDUMP"; then |
9803 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
bb612911 | 9804 | else |
b30fcfae | 9805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9806 | for as_dir in $PATH | |
9807 | do | |
9808 | IFS=$as_save_IFS | |
9809 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9810 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9812 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9814 | break 2 |
9815 | fi | |
9816 | done | |
cd9a469c | 9817 | done |
9818 | IFS=$as_save_IFS | |
b30fcfae | 9819 | |
bb612911 | 9820 | fi |
9821 | fi | |
b30fcfae | 9822 | OBJDUMP=$ac_cv_prog_OBJDUMP |
768691b5 | 9823 | if test -n "$OBJDUMP"; then |
cd9a469c | 9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9825 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9826 | else |
cd9a469c | 9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9828 | $as_echo "no" >&6; } | |
bb612911 | 9829 | fi |
b30fcfae | 9830 | |
cd9a469c | 9831 | |
768691b5 | 9832 | fi |
9833 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9834 | done | |
9835 | ||
9836 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9837 | set dummy objdump | |
9838 | if test $build = $host ; then | |
9839 | OBJDUMP="$2" | |
bb612911 | 9840 | else |
768691b5 | 9841 | OBJDUMP="${ncn_tool_prefix}$2" |
bb612911 | 9842 | fi |
bb612911 | 9843 | fi |
9844 | ||
71ab34df | 9845 | |
9846 | ||
3f71364d | 9847 | if test -n "$READELF"; then |
9848 | ac_cv_prog_READELF=$READELF | |
9849 | elif test -n "$ac_cv_prog_READELF"; then | |
9850 | READELF=$ac_cv_prog_READELF | |
9851 | fi | |
9852 | ||
9853 | if test -n "$ac_cv_prog_READELF"; then | |
9854 | for ncn_progname in readelf; do | |
9855 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9856 | set dummy ${ncn_progname}; ac_word=$2 | |
9857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9858 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9859 | if ${ac_cv_prog_READELF+:} false; then : |
3f71364d | 9860 | $as_echo_n "(cached) " >&6 |
9861 | else | |
9862 | if test -n "$READELF"; then | |
9863 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9864 | else | |
9865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9866 | for as_dir in $PATH | |
9867 | do | |
9868 | IFS=$as_save_IFS | |
9869 | test -z "$as_dir" && as_dir=. | |
9870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 9871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 9872 | ac_cv_prog_READELF="${ncn_progname}" |
9873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9874 | break 2 | |
9875 | fi | |
9876 | done | |
9877 | done | |
9878 | IFS=$as_save_IFS | |
9879 | ||
9880 | fi | |
9881 | fi | |
9882 | READELF=$ac_cv_prog_READELF | |
9883 | if test -n "$READELF"; then | |
9884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9885 | $as_echo "$READELF" >&6; } | |
9886 | else | |
9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9888 | $as_echo "no" >&6; } | |
9889 | fi | |
9890 | ||
9891 | ||
9892 | done | |
9893 | fi | |
9894 | ||
9895 | for ncn_progname in readelf; do | |
9896 | if test -n "$ncn_tool_prefix"; then | |
9897 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9898 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9900 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9901 | if ${ac_cv_prog_READELF+:} false; then : |
3f71364d | 9902 | $as_echo_n "(cached) " >&6 |
9903 | else | |
9904 | if test -n "$READELF"; then | |
9905 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9906 | else | |
9907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9908 | for as_dir in $PATH | |
9909 | do | |
9910 | IFS=$as_save_IFS | |
9911 | test -z "$as_dir" && as_dir=. | |
9912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 9913 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 9914 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
9915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9916 | break 2 | |
9917 | fi | |
9918 | done | |
9919 | done | |
9920 | IFS=$as_save_IFS | |
9921 | ||
9922 | fi | |
9923 | fi | |
9924 | READELF=$ac_cv_prog_READELF | |
9925 | if test -n "$READELF"; then | |
9926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9927 | $as_echo "$READELF" >&6; } | |
9928 | else | |
9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9930 | $as_echo "no" >&6; } | |
9931 | fi | |
9932 | ||
9933 | ||
9934 | fi | |
9935 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9936 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9937 | set dummy ${ncn_progname}; ac_word=$2 | |
9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9939 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9940 | if ${ac_cv_prog_READELF+:} false; then : |
3f71364d | 9941 | $as_echo_n "(cached) " >&6 |
9942 | else | |
9943 | if test -n "$READELF"; then | |
9944 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9945 | else | |
9946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9947 | for as_dir in $PATH | |
9948 | do | |
9949 | IFS=$as_save_IFS | |
9950 | test -z "$as_dir" && as_dir=. | |
9951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 9952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 9953 | ac_cv_prog_READELF="${ncn_progname}" |
9954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9955 | break 2 | |
9956 | fi | |
9957 | done | |
9958 | done | |
9959 | IFS=$as_save_IFS | |
9960 | ||
9961 | fi | |
9962 | fi | |
9963 | READELF=$ac_cv_prog_READELF | |
9964 | if test -n "$READELF"; then | |
9965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9966 | $as_echo "$READELF" >&6; } | |
9967 | else | |
9968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9969 | $as_echo "no" >&6; } | |
9970 | fi | |
9971 | ||
9972 | ||
9973 | fi | |
9974 | test -n "$ac_cv_prog_READELF" && break | |
9975 | done | |
9976 | ||
9977 | if test -z "$ac_cv_prog_READELF" ; then | |
9978 | set dummy readelf | |
9979 | if test $build = $host ; then | |
9980 | READELF="$2" | |
9981 | else | |
9982 | READELF="${ncn_tool_prefix}$2" | |
9983 | fi | |
9984 | fi | |
9985 | ||
9986 | ||
9987 | ||
71ab34df | 9988 | |
9989 | ||
9990 | ||
f5aebe3e | 9991 | # Target tools. |
b30fcfae | 9992 | |
cd9a469c | 9993 | # Check whether --with-build-time-tools was given. |
9994 | if test "${with_build_time_tools+set}" = set; then : | |
9995 | withval=$with_build_time_tools; case x"$withval" in | |
c47832b1 | 9996 | x/*) ;; |
9997 | *) | |
9998 | with_build_time_tools= | |
cd9a469c | 9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
10000 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
c47832b1 | 10001 | ;; |
10002 | esac | |
bb612911 | 10003 | else |
c47832b1 | 10004 | with_build_time_tools= |
cd9a469c | 10005 | fi |
10006 | ||
bb612911 | 10007 | |
95a05732 | 10008 | |
10009 | ||
10010 | if test -n "$CC_FOR_TARGET"; then | |
10011 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10012 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10013 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10014 | fi | |
10015 | ||
10016 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10017 | for ncn_progname in cc gcc; do | |
10018 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10019 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10021 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10022 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
cd9a469c | 10023 | $as_echo_n "(cached) " >&6 |
95a05732 | 10024 | else |
10025 | if test -n "$CC_FOR_TARGET"; then | |
10026 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10027 | else | |
10028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10029 | for as_dir in $PATH | |
10030 | do | |
10031 | IFS=$as_save_IFS | |
10032 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10033 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 10035 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10037 | break 2 |
10038 | fi | |
10039 | done | |
cd9a469c | 10040 | done |
10041 | IFS=$as_save_IFS | |
95a05732 | 10042 | |
10043 | fi | |
10044 | fi | |
10045 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10046 | if test -n "$CC_FOR_TARGET"; then | |
cd9a469c | 10047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10048 | $as_echo "$CC_FOR_TARGET" >&6; } | |
95a05732 | 10049 | else |
cd9a469c | 10050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10051 | $as_echo "no" >&6; } | |
95a05732 | 10052 | fi |
10053 | ||
cd9a469c | 10054 | |
95a05732 | 10055 | done |
10056 | fi | |
10057 | ||
10058 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10059 | for ncn_progname in cc gcc; do |
cd9a469c | 10060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10061 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10062 | if test -x $with_build_time_tools/${ncn_progname}; then |
10063 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10065 | $as_echo "yes" >&6; } | |
9886f3d1 | 10066 | break |
c47832b1 | 10067 | else |
cd9a469c | 10068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10069 | $as_echo "no" >&6; } | |
9886f3d1 | 10070 | fi |
10071 | done | |
ef8184c7 | 10072 | fi |
10073 | ||
c47832b1 | 10074 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10075 | for ncn_progname in cc gcc; do | |
10076 | if test -n "$ncn_target_tool_prefix"; then | |
10077 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10078 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10080 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10081 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
cd9a469c | 10082 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 10083 | else |
10084 | if test -n "$CC_FOR_TARGET"; then | |
10085 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10086 | else | |
b30fcfae | 10087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10088 | for as_dir in $PATH | |
10089 | do | |
10090 | IFS=$as_save_IFS | |
10091 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10092 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10093 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10094 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10096 | break 2 |
10097 | fi | |
10098 | done | |
cd9a469c | 10099 | done |
10100 | IFS=$as_save_IFS | |
b30fcfae | 10101 | |
ef8184c7 | 10102 | fi |
10103 | fi | |
b30fcfae | 10104 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
ef8184c7 | 10105 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 10106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10107 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 10108 | else |
cd9a469c | 10109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10110 | $as_echo "no" >&6; } | |
ef8184c7 | 10111 | fi |
10112 | ||
cd9a469c | 10113 | |
c47832b1 | 10114 | fi |
10115 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10116 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10117 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10119 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10120 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
cd9a469c | 10121 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 10122 | else |
768691b5 | 10123 | if test -n "$CC_FOR_TARGET"; then |
10124 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10125 | else |
b30fcfae | 10126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10127 | for as_dir in $PATH | |
10128 | do | |
10129 | IFS=$as_save_IFS | |
10130 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10131 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10133 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10135 | break 2 |
10136 | fi | |
10137 | done | |
cd9a469c | 10138 | done |
10139 | IFS=$as_save_IFS | |
b30fcfae | 10140 | |
ef8184c7 | 10141 | fi |
10142 | fi | |
b30fcfae | 10143 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
768691b5 | 10144 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10146 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 10147 | else |
cd9a469c | 10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10149 | $as_echo "no" >&6; } | |
ef8184c7 | 10150 | fi |
b30fcfae | 10151 | |
cd9a469c | 10152 | |
c47832b1 | 10153 | fi |
10154 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10155 | done | |
10156 | fi | |
b30fcfae | 10157 | |
768691b5 | 10158 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10159 | set dummy cc gcc | |
10160 | if test $build = $target ; then | |
10161 | CC_FOR_TARGET="$2" | |
ef8184c7 | 10162 | else |
768691b5 | 10163 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10164 | fi |
b7ef8464 | 10165 | else |
10166 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
ef8184c7 | 10167 | fi |
10168 | ||
95a05732 | 10169 | |
10170 | ||
10171 | if test -n "$CXX_FOR_TARGET"; then | |
10172 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10173 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10174 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10175 | fi | |
10176 | ||
10177 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10178 | for ncn_progname in c++ g++ cxx gxx; do | |
10179 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10180 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10182 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10183 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
cd9a469c | 10184 | $as_echo_n "(cached) " >&6 |
95a05732 | 10185 | else |
10186 | if test -n "$CXX_FOR_TARGET"; then | |
10187 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10188 | else | |
10189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10190 | for as_dir in $PATH | |
10191 | do | |
10192 | IFS=$as_save_IFS | |
10193 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10194 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 10196 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10198 | break 2 |
10199 | fi | |
10200 | done | |
cd9a469c | 10201 | done |
10202 | IFS=$as_save_IFS | |
95a05732 | 10203 | |
10204 | fi | |
10205 | fi | |
10206 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10207 | if test -n "$CXX_FOR_TARGET"; then | |
cd9a469c | 10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10209 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
95a05732 | 10210 | else |
cd9a469c | 10211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10212 | $as_echo "no" >&6; } | |
95a05732 | 10213 | fi |
10214 | ||
cd9a469c | 10215 | |
95a05732 | 10216 | done |
10217 | fi | |
10218 | ||
10219 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10220 | for ncn_progname in c++ g++ cxx gxx; do |
cd9a469c | 10221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10222 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10223 | if test -x $with_build_time_tools/${ncn_progname}; then |
10224 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10226 | $as_echo "yes" >&6; } | |
c47832b1 | 10227 | break |
10228 | else | |
cd9a469c | 10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10230 | $as_echo "no" >&6; } | |
c47832b1 | 10231 | fi |
10232 | done | |
10233 | fi | |
10234 | ||
10235 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10236 | for ncn_progname in c++ g++ cxx gxx; do | |
10237 | if test -n "$ncn_target_tool_prefix"; then | |
10238 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10239 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10241 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10242 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
cd9a469c | 10243 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 10244 | else |
10245 | if test -n "$CXX_FOR_TARGET"; then | |
10246 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10247 | else | |
b30fcfae | 10248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10249 | for as_dir in $PATH | |
10250 | do | |
10251 | IFS=$as_save_IFS | |
10252 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10253 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10254 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10255 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10257 | break 2 |
10258 | fi | |
10259 | done | |
cd9a469c | 10260 | done |
10261 | IFS=$as_save_IFS | |
b30fcfae | 10262 | |
ef8184c7 | 10263 | fi |
10264 | fi | |
b30fcfae | 10265 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
ef8184c7 | 10266 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10268 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10269 | else |
cd9a469c | 10270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10271 | $as_echo "no" >&6; } | |
ef8184c7 | 10272 | fi |
10273 | ||
cd9a469c | 10274 | |
c47832b1 | 10275 | fi |
10276 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10277 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10278 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10280 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10281 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
cd9a469c | 10282 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 10283 | else |
768691b5 | 10284 | if test -n "$CXX_FOR_TARGET"; then |
10285 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10286 | else |
b30fcfae | 10287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10288 | for as_dir in $PATH | |
10289 | do | |
10290 | IFS=$as_save_IFS | |
10291 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10292 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10294 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10296 | break 2 |
10297 | fi | |
10298 | done | |
cd9a469c | 10299 | done |
10300 | IFS=$as_save_IFS | |
b30fcfae | 10301 | |
ef8184c7 | 10302 | fi |
10303 | fi | |
b30fcfae | 10304 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
768691b5 | 10305 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10307 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10308 | else |
cd9a469c | 10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10310 | $as_echo "no" >&6; } | |
ef8184c7 | 10311 | fi |
b30fcfae | 10312 | |
cd9a469c | 10313 | |
c47832b1 | 10314 | fi |
10315 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10316 | done | |
10317 | fi | |
b30fcfae | 10318 | |
768691b5 | 10319 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10320 | set dummy c++ g++ cxx gxx | |
10321 | if test $build = $target ; then | |
10322 | CXX_FOR_TARGET="$2" | |
ef8184c7 | 10323 | else |
768691b5 | 10324 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10325 | fi |
b7ef8464 | 10326 | else |
10327 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
bb612911 | 10328 | fi |
10329 | ||
95a05732 | 10330 | |
10331 | ||
10332 | if test -n "$GCC_FOR_TARGET"; then | |
10333 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10334 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10335 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10336 | fi | |
10337 | ||
10338 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10339 | for ncn_progname in gcc; do | |
10340 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10341 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10343 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10344 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
cd9a469c | 10345 | $as_echo_n "(cached) " >&6 |
95a05732 | 10346 | else |
10347 | if test -n "$GCC_FOR_TARGET"; then | |
10348 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10349 | else | |
10350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10351 | for as_dir in $PATH | |
10352 | do | |
10353 | IFS=$as_save_IFS | |
10354 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10355 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10356 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 10357 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10359 | break 2 |
10360 | fi | |
10361 | done | |
cd9a469c | 10362 | done |
10363 | IFS=$as_save_IFS | |
95a05732 | 10364 | |
10365 | fi | |
10366 | fi | |
10367 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10368 | if test -n "$GCC_FOR_TARGET"; then | |
cd9a469c | 10369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10370 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
95a05732 | 10371 | else |
cd9a469c | 10372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10373 | $as_echo "no" >&6; } | |
95a05732 | 10374 | fi |
10375 | ||
cd9a469c | 10376 | |
95a05732 | 10377 | done |
10378 | fi | |
10379 | ||
10380 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10381 | for ncn_progname in gcc; do |
cd9a469c | 10382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10383 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10384 | if test -x $with_build_time_tools/${ncn_progname}; then |
10385 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10387 | $as_echo "yes" >&6; } | |
c47832b1 | 10388 | break |
10389 | else | |
cd9a469c | 10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10391 | $as_echo "no" >&6; } | |
c47832b1 | 10392 | fi |
10393 | done | |
10394 | fi | |
10395 | ||
10396 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10397 | for ncn_progname in gcc; do | |
10398 | if test -n "$ncn_target_tool_prefix"; then | |
10399 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10400 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10402 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10403 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
cd9a469c | 10404 | $as_echo_n "(cached) " >&6 |
bb612911 | 10405 | else |
c47832b1 | 10406 | if test -n "$GCC_FOR_TARGET"; then |
10407 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10408 | else |
b30fcfae | 10409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10410 | for as_dir in $PATH | |
10411 | do | |
10412 | IFS=$as_save_IFS | |
10413 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10414 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10415 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10416 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10418 | break 2 |
10419 | fi | |
10420 | done | |
cd9a469c | 10421 | done |
10422 | IFS=$as_save_IFS | |
b30fcfae | 10423 | |
bb612911 | 10424 | fi |
10425 | fi | |
b30fcfae | 10426 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10427 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10429 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10430 | else |
cd9a469c | 10431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10432 | $as_echo "no" >&6; } | |
bb612911 | 10433 | fi |
10434 | ||
cd9a469c | 10435 | |
c47832b1 | 10436 | fi |
10437 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10438 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10439 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10441 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10442 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
cd9a469c | 10443 | $as_echo_n "(cached) " >&6 |
bb612911 | 10444 | else |
c47832b1 | 10445 | if test -n "$GCC_FOR_TARGET"; then |
10446 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10447 | else |
b30fcfae | 10448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10449 | for as_dir in $PATH | |
10450 | do | |
10451 | IFS=$as_save_IFS | |
10452 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10453 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10455 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10457 | break 2 |
10458 | fi | |
10459 | done | |
cd9a469c | 10460 | done |
10461 | IFS=$as_save_IFS | |
b30fcfae | 10462 | |
bb612911 | 10463 | fi |
10464 | fi | |
b30fcfae | 10465 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10466 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10468 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10469 | else |
cd9a469c | 10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10471 | $as_echo "no" >&6; } | |
bb612911 | 10472 | fi |
b30fcfae | 10473 | |
cd9a469c | 10474 | |
c47832b1 | 10475 | fi |
10476 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10477 | done | |
10478 | fi | |
b30fcfae | 10479 | |
c47832b1 | 10480 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10481 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
b7ef8464 | 10482 | else |
10483 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
c47832b1 | 10484 | fi |
10485 | ||
95a05732 | 10486 | |
10487 | ||
95a05732 | 10488 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10489 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10490 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10491 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
c47832b1 | 10492 | fi |
10493 | ||
95a05732 | 10494 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10495 | for ncn_progname in gfortran; do | |
10496 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
c47832b1 | 10497 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10499 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10500 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
cd9a469c | 10501 | $as_echo_n "(cached) " >&6 |
c47832b1 | 10502 | else |
95a05732 | 10503 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10504 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
c47832b1 | 10505 | else |
b30fcfae | 10506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10507 | for as_dir in $PATH | |
10508 | do | |
10509 | IFS=$as_save_IFS | |
10510 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10511 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10512 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 10513 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10515 | break 2 |
10516 | fi | |
10517 | done | |
cd9a469c | 10518 | done |
10519 | IFS=$as_save_IFS | |
b30fcfae | 10520 | |
c47832b1 | 10521 | fi |
10522 | fi | |
95a05732 | 10523 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10524 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
cd9a469c | 10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10526 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10527 | else |
cd9a469c | 10528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10529 | $as_echo "no" >&6; } | |
c47832b1 | 10530 | fi |
b30fcfae | 10531 | |
cd9a469c | 10532 | |
c47832b1 | 10533 | done |
10534 | fi | |
b30fcfae | 10535 | |
95a05732 | 10536 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
c47832b1 | 10537 | for ncn_progname in gfortran; do |
cd9a469c | 10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10539 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10540 | if test -x $with_build_time_tools/${ncn_progname}; then |
10541 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10543 | $as_echo "yes" >&6; } | |
c47832b1 | 10544 | break |
10545 | else | |
cd9a469c | 10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10547 | $as_echo "no" >&6; } | |
c47832b1 | 10548 | fi |
10549 | done | |
10550 | fi | |
10551 | ||
10552 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10553 | for ncn_progname in gfortran; do | |
10554 | if test -n "$ncn_target_tool_prefix"; then | |
10555 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10556 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10558 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10559 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
cd9a469c | 10560 | $as_echo_n "(cached) " >&6 |
c47832b1 | 10561 | else |
10562 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
b30fcfae | 10563 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10564 | else | |
10565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10566 | for as_dir in $PATH | |
10567 | do | |
10568 | IFS=$as_save_IFS | |
10569 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10570 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10572 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10574 | break 2 |
10575 | fi | |
10576 | done | |
cd9a469c | 10577 | done |
10578 | IFS=$as_save_IFS | |
b30fcfae | 10579 | |
c47832b1 | 10580 | fi |
10581 | fi | |
b30fcfae | 10582 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10583 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10585 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10586 | else |
cd9a469c | 10587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10588 | $as_echo "no" >&6; } | |
c47832b1 | 10589 | fi |
10590 | ||
cd9a469c | 10591 | |
c47832b1 | 10592 | fi |
10593 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10594 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10595 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10597 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10598 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
cd9a469c | 10599 | $as_echo_n "(cached) " >&6 |
c47832b1 | 10600 | else |
10601 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10602 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10603 | else | |
b30fcfae | 10604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10605 | for as_dir in $PATH | |
10606 | do | |
10607 | IFS=$as_save_IFS | |
10608 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10609 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10610 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10611 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10613 | break 2 |
10614 | fi | |
10615 | done | |
cd9a469c | 10616 | done |
10617 | IFS=$as_save_IFS | |
b30fcfae | 10618 | |
c47832b1 | 10619 | fi |
10620 | fi | |
b30fcfae | 10621 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10622 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10624 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10625 | else |
cd9a469c | 10626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10627 | $as_echo "no" >&6; } | |
c47832b1 | 10628 | fi |
b30fcfae | 10629 | |
cd9a469c | 10630 | |
c47832b1 | 10631 | fi |
10632 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10633 | done | |
10634 | fi | |
b30fcfae | 10635 | |
c47832b1 | 10636 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10637 | set dummy gfortran | |
768691b5 | 10638 | if test $build = $target ; then |
c47832b1 | 10639 | GFORTRAN_FOR_TARGET="$2" |
bb612911 | 10640 | else |
c47832b1 | 10641 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10642 | fi | |
b7ef8464 | 10643 | else |
10644 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
c47832b1 | 10645 | fi |
10646 | ||
10647 | ||
10648 | ||
5ff5b630 | 10649 | if test -n "$GOC_FOR_TARGET"; then |
10650 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10651 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10652 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10653 | fi | |
10654 | ||
10655 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10656 | for ncn_progname in gccgo; do | |
10657 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10658 | set dummy ${ncn_progname}; ac_word=$2 | |
10659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10660 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10661 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
5ff5b630 | 10662 | $as_echo_n "(cached) " >&6 |
10663 | else | |
10664 | if test -n "$GOC_FOR_TARGET"; then | |
10665 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10666 | else | |
10667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10668 | for as_dir in $PATH | |
10669 | do | |
10670 | IFS=$as_save_IFS | |
10671 | test -z "$as_dir" && as_dir=. | |
10672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5ff5b630 | 10674 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10676 | break 2 | |
10677 | fi | |
10678 | done | |
10679 | done | |
10680 | IFS=$as_save_IFS | |
10681 | ||
10682 | fi | |
10683 | fi | |
10684 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10685 | if test -n "$GOC_FOR_TARGET"; then | |
10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10687 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10688 | else | |
10689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10690 | $as_echo "no" >&6; } | |
10691 | fi | |
10692 | ||
10693 | ||
10694 | done | |
10695 | fi | |
10696 | ||
10697 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10698 | for ncn_progname in gccgo; do | |
10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10700 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10701 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10702 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10704 | $as_echo "yes" >&6; } | |
10705 | break | |
10706 | else | |
10707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10708 | $as_echo "no" >&6; } | |
10709 | fi | |
10710 | done | |
10711 | fi | |
10712 | ||
10713 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10714 | for ncn_progname in gccgo; do | |
10715 | if test -n "$ncn_target_tool_prefix"; then | |
10716 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10717 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10719 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10720 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
5ff5b630 | 10721 | $as_echo_n "(cached) " >&6 |
10722 | else | |
10723 | if test -n "$GOC_FOR_TARGET"; then | |
10724 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10725 | else | |
10726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10727 | for as_dir in $PATH | |
10728 | do | |
10729 | IFS=$as_save_IFS | |
10730 | test -z "$as_dir" && as_dir=. | |
10731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5ff5b630 | 10733 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10735 | break 2 | |
10736 | fi | |
10737 | done | |
10738 | done | |
10739 | IFS=$as_save_IFS | |
10740 | ||
10741 | fi | |
10742 | fi | |
10743 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10744 | if test -n "$GOC_FOR_TARGET"; then | |
10745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10746 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10747 | else | |
10748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10749 | $as_echo "no" >&6; } | |
10750 | fi | |
10751 | ||
10752 | ||
10753 | fi | |
10754 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10755 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10756 | set dummy ${ncn_progname}; ac_word=$2 | |
10757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10758 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10759 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
5ff5b630 | 10760 | $as_echo_n "(cached) " >&6 |
10761 | else | |
10762 | if test -n "$GOC_FOR_TARGET"; then | |
10763 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10764 | else | |
10765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10766 | for as_dir in $PATH | |
10767 | do | |
10768 | IFS=$as_save_IFS | |
10769 | test -z "$as_dir" && as_dir=. | |
10770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5ff5b630 | 10772 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10774 | break 2 | |
10775 | fi | |
10776 | done | |
10777 | done | |
10778 | IFS=$as_save_IFS | |
10779 | ||
10780 | fi | |
10781 | fi | |
10782 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10783 | if test -n "$GOC_FOR_TARGET"; then | |
10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10785 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10786 | else | |
10787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10788 | $as_echo "no" >&6; } | |
10789 | fi | |
10790 | ||
10791 | ||
10792 | fi | |
10793 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10794 | done | |
10795 | fi | |
10796 | ||
10797 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10798 | set dummy gccgo | |
10799 | if test $build = $target ; then | |
10800 | GOC_FOR_TARGET="$2" | |
10801 | else | |
10802 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10803 | fi | |
10804 | else | |
10805 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10806 | fi | |
10807 | ||
10808 | ||
10809 | ||
03385ed3 | 10810 | if test -n "$GDC_FOR_TARGET"; then |
10811 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
10812 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
10813 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
10814 | fi | |
10815 | ||
10816 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
10817 | for ncn_progname in gdc; do | |
10818 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10819 | set dummy ${ncn_progname}; ac_word=$2 | |
10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10821 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10822 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
03385ed3 | 10823 | $as_echo_n "(cached) " >&6 |
10824 | else | |
10825 | if test -n "$GDC_FOR_TARGET"; then | |
10826 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
10827 | else | |
10828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10829 | for as_dir in $PATH | |
10830 | do | |
10831 | IFS=$as_save_IFS | |
10832 | test -z "$as_dir" && as_dir=. | |
10833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 10835 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
10836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10837 | break 2 | |
10838 | fi | |
10839 | done | |
10840 | done | |
10841 | IFS=$as_save_IFS | |
10842 | ||
10843 | fi | |
10844 | fi | |
10845 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
10846 | if test -n "$GDC_FOR_TARGET"; then | |
10847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
10848 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
10849 | else | |
10850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10851 | $as_echo "no" >&6; } | |
10852 | fi | |
10853 | ||
10854 | ||
10855 | done | |
10856 | fi | |
10857 | ||
10858 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10859 | for ncn_progname in gdc; do | |
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10861 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10862 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10863 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10865 | $as_echo "yes" >&6; } | |
10866 | break | |
10867 | else | |
10868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10869 | $as_echo "no" >&6; } | |
10870 | fi | |
10871 | done | |
10872 | fi | |
10873 | ||
10874 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
10875 | for ncn_progname in gdc; do | |
10876 | if test -n "$ncn_target_tool_prefix"; then | |
10877 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10878 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10880 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10881 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
03385ed3 | 10882 | $as_echo_n "(cached) " >&6 |
10883 | else | |
10884 | if test -n "$GDC_FOR_TARGET"; then | |
10885 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
10886 | else | |
10887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10888 | for as_dir in $PATH | |
10889 | do | |
10890 | IFS=$as_save_IFS | |
10891 | test -z "$as_dir" && as_dir=. | |
10892 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10893 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 10894 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10896 | break 2 | |
10897 | fi | |
10898 | done | |
10899 | done | |
10900 | IFS=$as_save_IFS | |
10901 | ||
10902 | fi | |
10903 | fi | |
10904 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
10905 | if test -n "$GDC_FOR_TARGET"; then | |
10906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
10907 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
10908 | else | |
10909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10910 | $as_echo "no" >&6; } | |
10911 | fi | |
10912 | ||
10913 | ||
10914 | fi | |
10915 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
10916 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10917 | set dummy ${ncn_progname}; ac_word=$2 | |
10918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10919 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10920 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
03385ed3 | 10921 | $as_echo_n "(cached) " >&6 |
10922 | else | |
10923 | if test -n "$GDC_FOR_TARGET"; then | |
10924 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
10925 | else | |
10926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10927 | for as_dir in $PATH | |
10928 | do | |
10929 | IFS=$as_save_IFS | |
10930 | test -z "$as_dir" && as_dir=. | |
10931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10932 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 10933 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
10934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10935 | break 2 | |
10936 | fi | |
10937 | done | |
10938 | done | |
10939 | IFS=$as_save_IFS | |
10940 | ||
10941 | fi | |
10942 | fi | |
10943 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
10944 | if test -n "$GDC_FOR_TARGET"; then | |
10945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
10946 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
10947 | else | |
10948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10949 | $as_echo "no" >&6; } | |
10950 | fi | |
10951 | ||
10952 | ||
10953 | fi | |
10954 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
10955 | done | |
10956 | fi | |
10957 | ||
10958 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
10959 | set dummy gdc | |
10960 | if test $build = $target ; then | |
10961 | GDC_FOR_TARGET="$2" | |
10962 | else | |
10963 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10964 | fi | |
10965 | else | |
10966 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
10967 | fi | |
10968 | ||
10969 | ||
10970 | ||
c47832b1 | 10971 | cat > conftest.c << \EOF |
10972 | #ifdef __GNUC__ | |
10973 | gcc_yay; | |
10974 | #endif | |
10975 | EOF | |
10976 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10977 | have_gcc_for_target=yes | |
10978 | else | |
10979 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10980 | have_gcc_for_target=no | |
10981 | fi | |
10982 | rm conftest.c | |
10983 | ||
10984 | ||
10985 | ||
10986 | ||
10987 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10988 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10990 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
ab0da556 | 10991 | if test -x $with_build_time_tools/ar; then |
10992 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10993 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
cd9a469c | 10994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10995 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
ab0da556 | 10996 | else |
cd9a469c | 10997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10998 | $as_echo "no" >&6; } | |
ab0da556 | 10999 | fi |
c47832b1 | 11000 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11001 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
b7ef8464 | 11002 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
11003 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
c47832b1 | 11004 | fi |
11005 | fi | |
38d7211b | 11006 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11007 | # Extract the first word of "ar", so it can be a program name with args. |
11008 | set dummy ar; ac_word=$2 | |
cd9a469c | 11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11010 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11011 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
cd9a469c | 11012 | $as_echo_n "(cached) " >&6 |
c47832b1 | 11013 | else |
b30fcfae | 11014 | case $AR_FOR_TARGET in |
11015 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11016 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
11017 | ;; | |
c47832b1 | 11018 | *) |
b30fcfae | 11019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11020 | for as_dir in $gcc_cv_tool_dirs | |
11021 | do | |
11022 | IFS=$as_save_IFS | |
11023 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11024 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11026 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11028 | break 2 |
11029 | fi | |
11030 | done | |
cd9a469c | 11031 | done |
11032 | IFS=$as_save_IFS | |
b30fcfae | 11033 | |
c47832b1 | 11034 | ;; |
11035 | esac | |
11036 | fi | |
b30fcfae | 11037 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
c47832b1 | 11038 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 11039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11040 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 11041 | else |
cd9a469c | 11042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11043 | $as_echo "no" >&6; } | |
ef8184c7 | 11044 | fi |
11045 | ||
cd9a469c | 11046 | |
c47832b1 | 11047 | fi |
11048 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
95a05732 | 11049 | |
11050 | ||
11051 | if test -n "$AR_FOR_TARGET"; then | |
11052 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11053 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11054 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11055 | fi | |
11056 | ||
11057 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11058 | for ncn_progname in ar; do | |
11059 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11060 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11062 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11063 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
cd9a469c | 11064 | $as_echo_n "(cached) " >&6 |
95a05732 | 11065 | else |
11066 | if test -n "$AR_FOR_TARGET"; then | |
11067 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11068 | else | |
11069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11070 | for as_dir in $PATH | |
11071 | do | |
11072 | IFS=$as_save_IFS | |
11073 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11074 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 11076 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11078 | break 2 |
11079 | fi | |
11080 | done | |
cd9a469c | 11081 | done |
11082 | IFS=$as_save_IFS | |
95a05732 | 11083 | |
11084 | fi | |
11085 | fi | |
11086 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11087 | if test -n "$AR_FOR_TARGET"; then | |
cd9a469c | 11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11089 | $as_echo "$AR_FOR_TARGET" >&6; } | |
95a05732 | 11090 | else |
cd9a469c | 11091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11092 | $as_echo "no" >&6; } | |
95a05732 | 11093 | fi |
11094 | ||
cd9a469c | 11095 | |
95a05732 | 11096 | done |
11097 | fi | |
11098 | ||
11099 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11100 | for ncn_progname in ar; do |
cd9a469c | 11101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11102 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11103 | if test -x $with_build_time_tools/${ncn_progname}; then |
11104 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11106 | $as_echo "yes" >&6; } | |
c47832b1 | 11107 | break |
11108 | else | |
cd9a469c | 11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11110 | $as_echo "no" >&6; } | |
c47832b1 | 11111 | fi |
11112 | done | |
11113 | fi | |
11114 | ||
11115 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
11116 | for ncn_progname in ar; do | |
11117 | if test -n "$ncn_target_tool_prefix"; then | |
11118 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11119 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11121 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11122 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
cd9a469c | 11123 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11124 | else |
c47832b1 | 11125 | if test -n "$AR_FOR_TARGET"; then |
11126 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11127 | else |
b30fcfae | 11128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11129 | for as_dir in $PATH | |
11130 | do | |
11131 | IFS=$as_save_IFS | |
11132 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11133 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11135 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11137 | break 2 |
11138 | fi | |
11139 | done | |
cd9a469c | 11140 | done |
11141 | IFS=$as_save_IFS | |
b30fcfae | 11142 | |
ef8184c7 | 11143 | fi |
11144 | fi | |
b30fcfae | 11145 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 11146 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11148 | $as_echo "$AR_FOR_TARGET" >&6; } | |
ef8184c7 | 11149 | else |
cd9a469c | 11150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11151 | $as_echo "no" >&6; } | |
ef8184c7 | 11152 | fi |
11153 | ||
cd9a469c | 11154 | |
c47832b1 | 11155 | fi |
11156 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11157 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11158 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11160 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11161 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
cd9a469c | 11162 | $as_echo_n "(cached) " >&6 |
c47832b1 | 11163 | else |
11164 | if test -n "$AR_FOR_TARGET"; then | |
11165 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11166 | else | |
b30fcfae | 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=. | |
cd9a469c | 11172 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11173 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11174 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11176 | break 2 |
11177 | fi | |
11178 | done | |
cd9a469c | 11179 | done |
11180 | IFS=$as_save_IFS | |
b30fcfae | 11181 | |
c47832b1 | 11182 | fi |
11183 | fi | |
b30fcfae | 11184 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 11185 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 11186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11187 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 11188 | else |
cd9a469c | 11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11190 | $as_echo "no" >&6; } | |
c47832b1 | 11191 | fi |
b30fcfae | 11192 | |
cd9a469c | 11193 | |
c47832b1 | 11194 | fi |
11195 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11196 | done | |
11197 | fi | |
b30fcfae | 11198 | |
c47832b1 | 11199 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11200 | set dummy ar | |
11201 | if test $build = $target ; then | |
11202 | AR_FOR_TARGET="$2" | |
11203 | else | |
11204 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
768691b5 | 11205 | fi |
b7ef8464 | 11206 | else |
11207 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
c47832b1 | 11208 | fi |
11209 | ||
ab0da556 | 11210 | else |
11211 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
c47832b1 | 11212 | fi |
11213 | ||
11214 | ||
11215 | ||
11216 | ||
11217 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11218 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11220 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
ab0da556 | 11221 | if test -x $with_build_time_tools/as; then |
11222 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11223 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
cd9a469c | 11224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11225 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
ab0da556 | 11226 | else |
cd9a469c | 11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11228 | $as_echo "no" >&6; } | |
ab0da556 | 11229 | fi |
c47832b1 | 11230 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11231 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
b7ef8464 | 11232 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11233 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
c47832b1 | 11234 | fi |
11235 | fi | |
38d7211b | 11236 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11237 | # Extract the first word of "as", so it can be a program name with args. |
11238 | set dummy as; ac_word=$2 | |
cd9a469c | 11239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11240 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11241 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
cd9a469c | 11242 | $as_echo_n "(cached) " >&6 |
c47832b1 | 11243 | else |
b30fcfae | 11244 | case $AS_FOR_TARGET in |
11245 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11246 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11247 | ;; | |
c47832b1 | 11248 | *) |
b30fcfae | 11249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11250 | for as_dir in $gcc_cv_tool_dirs | |
11251 | do | |
11252 | IFS=$as_save_IFS | |
11253 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11254 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11255 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11256 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11258 | break 2 |
11259 | fi | |
11260 | done | |
cd9a469c | 11261 | done |
11262 | IFS=$as_save_IFS | |
b30fcfae | 11263 | |
c47832b1 | 11264 | ;; |
11265 | esac | |
11266 | fi | |
b30fcfae | 11267 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
c47832b1 | 11268 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11270 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11271 | else |
cd9a469c | 11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11273 | $as_echo "no" >&6; } | |
c47832b1 | 11274 | fi |
11275 | ||
cd9a469c | 11276 | |
c47832b1 | 11277 | fi |
11278 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
95a05732 | 11279 | |
11280 | ||
11281 | if test -n "$AS_FOR_TARGET"; then | |
11282 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11283 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11284 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11285 | fi | |
11286 | ||
11287 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11288 | for ncn_progname in as; do | |
11289 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11290 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11292 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11293 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
cd9a469c | 11294 | $as_echo_n "(cached) " >&6 |
95a05732 | 11295 | else |
11296 | if test -n "$AS_FOR_TARGET"; then | |
11297 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11298 | else | |
11299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11300 | for as_dir in $PATH | |
11301 | do | |
11302 | IFS=$as_save_IFS | |
11303 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11304 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11305 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 11306 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11308 | break 2 |
11309 | fi | |
11310 | done | |
cd9a469c | 11311 | done |
11312 | IFS=$as_save_IFS | |
95a05732 | 11313 | |
11314 | fi | |
11315 | fi | |
11316 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11317 | if test -n "$AS_FOR_TARGET"; then | |
cd9a469c | 11318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11319 | $as_echo "$AS_FOR_TARGET" >&6; } | |
95a05732 | 11320 | else |
cd9a469c | 11321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11322 | $as_echo "no" >&6; } | |
95a05732 | 11323 | fi |
11324 | ||
cd9a469c | 11325 | |
95a05732 | 11326 | done |
11327 | fi | |
11328 | ||
11329 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11330 | for ncn_progname in as; do |
cd9a469c | 11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11332 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11333 | if test -x $with_build_time_tools/${ncn_progname}; then |
11334 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11336 | $as_echo "yes" >&6; } | |
c47832b1 | 11337 | break |
11338 | else | |
cd9a469c | 11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11340 | $as_echo "no" >&6; } | |
c47832b1 | 11341 | fi |
11342 | done | |
11343 | fi | |
11344 | ||
11345 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11346 | for ncn_progname in as; do | |
11347 | if test -n "$ncn_target_tool_prefix"; then | |
11348 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11349 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11351 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11352 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
cd9a469c | 11353 | $as_echo_n "(cached) " >&6 |
c47832b1 | 11354 | else |
11355 | if test -n "$AS_FOR_TARGET"; then | |
11356 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11357 | else | |
b30fcfae | 11358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11359 | for as_dir in $PATH | |
11360 | do | |
11361 | IFS=$as_save_IFS | |
11362 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11363 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11364 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11365 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11367 | break 2 |
11368 | fi | |
11369 | done | |
cd9a469c | 11370 | done |
11371 | IFS=$as_save_IFS | |
b30fcfae | 11372 | |
c47832b1 | 11373 | fi |
11374 | fi | |
b30fcfae | 11375 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11376 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11378 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11379 | else |
cd9a469c | 11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11381 | $as_echo "no" >&6; } | |
c47832b1 | 11382 | fi |
11383 | ||
cd9a469c | 11384 | |
c47832b1 | 11385 | fi |
11386 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11387 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11388 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11390 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11391 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
cd9a469c | 11392 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11393 | else |
c47832b1 | 11394 | if test -n "$AS_FOR_TARGET"; then |
11395 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11396 | else |
b30fcfae | 11397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11398 | for as_dir in $PATH | |
11399 | do | |
11400 | IFS=$as_save_IFS | |
11401 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11402 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11404 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11406 | break 2 |
11407 | fi | |
11408 | done | |
cd9a469c | 11409 | done |
11410 | IFS=$as_save_IFS | |
b30fcfae | 11411 | |
ef8184c7 | 11412 | fi |
11413 | fi | |
b30fcfae | 11414 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11415 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11417 | $as_echo "$AS_FOR_TARGET" >&6; } | |
ef8184c7 | 11418 | else |
cd9a469c | 11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11420 | $as_echo "no" >&6; } | |
ef8184c7 | 11421 | fi |
b30fcfae | 11422 | |
cd9a469c | 11423 | |
c47832b1 | 11424 | fi |
11425 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11426 | done | |
11427 | fi | |
b30fcfae | 11428 | |
c47832b1 | 11429 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11430 | set dummy as | |
11431 | if test $build = $target ; then | |
11432 | AS_FOR_TARGET="$2" | |
11433 | else | |
11434 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ef8184c7 | 11435 | fi |
b7ef8464 | 11436 | else |
11437 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
c47832b1 | 11438 | fi |
768691b5 | 11439 | |
ab0da556 | 11440 | else |
11441 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
ef8184c7 | 11442 | fi |
11443 | ||
c47832b1 | 11444 | |
11445 | ||
11446 | ||
11447 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11448 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11450 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
ab0da556 | 11451 | if test -x $with_build_time_tools/dlltool; then |
11452 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11453 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
cd9a469c | 11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11455 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
ab0da556 | 11456 | else |
cd9a469c | 11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11458 | $as_echo "no" >&6; } | |
ab0da556 | 11459 | fi |
c47832b1 | 11460 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11461 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
b7ef8464 | 11462 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11463 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
c47832b1 | 11464 | fi |
11465 | fi | |
38d7211b | 11466 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11467 | # Extract the first word of "dlltool", so it can be a program name with args. |
11468 | set dummy dlltool; ac_word=$2 | |
cd9a469c | 11469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11470 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11471 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
cd9a469c | 11472 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11473 | else |
b30fcfae | 11474 | case $DLLTOOL_FOR_TARGET in |
11475 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11476 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11477 | ;; | |
c47832b1 | 11478 | *) |
b30fcfae | 11479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11480 | for as_dir in $gcc_cv_tool_dirs | |
11481 | do | |
11482 | IFS=$as_save_IFS | |
11483 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11484 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11485 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11486 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11488 | break 2 |
11489 | fi | |
11490 | done | |
cd9a469c | 11491 | done |
11492 | IFS=$as_save_IFS | |
b30fcfae | 11493 | |
c47832b1 | 11494 | ;; |
11495 | esac | |
ef8184c7 | 11496 | fi |
b30fcfae | 11497 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
c47832b1 | 11498 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11500 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11501 | else |
cd9a469c | 11502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11503 | $as_echo "no" >&6; } | |
ef8184c7 | 11504 | fi |
11505 | ||
cd9a469c | 11506 | |
c47832b1 | 11507 | fi |
11508 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
95a05732 | 11509 | |
11510 | ||
11511 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11512 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11513 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11514 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11515 | fi | |
11516 | ||
11517 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11518 | for ncn_progname in dlltool; do | |
11519 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11520 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11522 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11523 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
cd9a469c | 11524 | $as_echo_n "(cached) " >&6 |
95a05732 | 11525 | else |
11526 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11527 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11528 | else | |
11529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11530 | for as_dir in $PATH | |
11531 | do | |
11532 | IFS=$as_save_IFS | |
11533 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11534 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11535 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 11536 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11538 | break 2 |
11539 | fi | |
11540 | done | |
cd9a469c | 11541 | done |
11542 | IFS=$as_save_IFS | |
95a05732 | 11543 | |
11544 | fi | |
11545 | fi | |
11546 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11547 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
cd9a469c | 11548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11549 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
95a05732 | 11550 | else |
cd9a469c | 11551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11552 | $as_echo "no" >&6; } | |
95a05732 | 11553 | fi |
11554 | ||
cd9a469c | 11555 | |
95a05732 | 11556 | done |
11557 | fi | |
11558 | ||
11559 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11560 | for ncn_progname in dlltool; do |
cd9a469c | 11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11562 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11563 | if test -x $with_build_time_tools/${ncn_progname}; then |
11564 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11566 | $as_echo "yes" >&6; } | |
c47832b1 | 11567 | break |
11568 | else | |
cd9a469c | 11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11570 | $as_echo "no" >&6; } | |
c47832b1 | 11571 | fi |
11572 | done | |
11573 | fi | |
11574 | ||
11575 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11576 | for ncn_progname in dlltool; do | |
11577 | if test -n "$ncn_target_tool_prefix"; then | |
11578 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11579 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11581 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11582 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
cd9a469c | 11583 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11584 | else |
c47832b1 | 11585 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11586 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11587 | else |
b30fcfae | 11588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11589 | for as_dir in $PATH | |
11590 | do | |
11591 | IFS=$as_save_IFS | |
11592 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11593 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11594 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11595 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11597 | break 2 |
11598 | fi | |
11599 | done | |
cd9a469c | 11600 | done |
11601 | IFS=$as_save_IFS | |
b30fcfae | 11602 | |
ef8184c7 | 11603 | fi |
11604 | fi | |
b30fcfae | 11605 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11606 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11608 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11609 | else |
cd9a469c | 11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11611 | $as_echo "no" >&6; } | |
ef8184c7 | 11612 | fi |
ef8184c7 | 11613 | |
cd9a469c | 11614 | |
c47832b1 | 11615 | fi |
11616 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11617 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11618 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11620 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11621 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
cd9a469c | 11622 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11623 | else |
c47832b1 | 11624 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11625 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11626 | else |
b30fcfae | 11627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11628 | for as_dir in $PATH | |
11629 | do | |
11630 | IFS=$as_save_IFS | |
11631 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11632 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11633 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11634 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11636 | break 2 |
11637 | fi | |
11638 | done | |
cd9a469c | 11639 | done |
11640 | IFS=$as_save_IFS | |
b30fcfae | 11641 | |
ef8184c7 | 11642 | fi |
11643 | fi | |
b30fcfae | 11644 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11645 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11647 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11648 | else |
cd9a469c | 11649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11650 | $as_echo "no" >&6; } | |
ef8184c7 | 11651 | fi |
b30fcfae | 11652 | |
cd9a469c | 11653 | |
c47832b1 | 11654 | fi |
11655 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11656 | done | |
11657 | fi | |
b30fcfae | 11658 | |
c47832b1 | 11659 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11660 | set dummy dlltool | |
11661 | if test $build = $target ; then | |
11662 | DLLTOOL_FOR_TARGET="$2" | |
11663 | else | |
11664 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11665 | fi | |
b7ef8464 | 11666 | else |
11667 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
c47832b1 | 11668 | fi |
11669 | ||
ab0da556 | 11670 | else |
11671 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
c47832b1 | 11672 | fi |
11673 | ||
ef8184c7 | 11674 | |
c47832b1 | 11675 | |
11676 | ||
11677 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11678 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11680 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
ab0da556 | 11681 | if test -x $with_build_time_tools/ld; then |
11682 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11683 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
cd9a469c | 11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11685 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
ab0da556 | 11686 | else |
cd9a469c | 11687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11688 | $as_echo "no" >&6; } | |
ab0da556 | 11689 | fi |
c47832b1 | 11690 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11691 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
b7ef8464 | 11692 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11693 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
768691b5 | 11694 | fi |
c47832b1 | 11695 | fi |
38d7211b | 11696 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11697 | # Extract the first word of "ld", so it can be a program name with args. |
11698 | set dummy ld; ac_word=$2 | |
cd9a469c | 11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11700 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11701 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
cd9a469c | 11702 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11703 | else |
b30fcfae | 11704 | case $LD_FOR_TARGET in |
11705 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11706 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11707 | ;; | |
c47832b1 | 11708 | *) |
b30fcfae | 11709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11710 | for as_dir in $gcc_cv_tool_dirs | |
11711 | do | |
11712 | IFS=$as_save_IFS | |
11713 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11714 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11716 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11718 | break 2 |
11719 | fi | |
11720 | done | |
cd9a469c | 11721 | done |
11722 | IFS=$as_save_IFS | |
b30fcfae | 11723 | |
c47832b1 | 11724 | ;; |
11725 | esac | |
ef8184c7 | 11726 | fi |
b30fcfae | 11727 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
c47832b1 | 11728 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11730 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ef8184c7 | 11731 | else |
cd9a469c | 11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11733 | $as_echo "no" >&6; } | |
ef8184c7 | 11734 | fi |
768691b5 | 11735 | |
cd9a469c | 11736 | |
c47832b1 | 11737 | fi |
11738 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
95a05732 | 11739 | |
11740 | ||
11741 | if test -n "$LD_FOR_TARGET"; then | |
11742 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11743 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11744 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11745 | fi | |
11746 | ||
11747 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11748 | for ncn_progname in ld; do | |
11749 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11750 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11752 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11753 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
cd9a469c | 11754 | $as_echo_n "(cached) " >&6 |
95a05732 | 11755 | else |
11756 | if test -n "$LD_FOR_TARGET"; then | |
11757 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11758 | else | |
11759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11760 | for as_dir in $PATH | |
11761 | do | |
11762 | IFS=$as_save_IFS | |
11763 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11764 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 11766 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11768 | break 2 |
11769 | fi | |
11770 | done | |
cd9a469c | 11771 | done |
11772 | IFS=$as_save_IFS | |
95a05732 | 11773 | |
11774 | fi | |
11775 | fi | |
11776 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11777 | if test -n "$LD_FOR_TARGET"; then | |
cd9a469c | 11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11779 | $as_echo "$LD_FOR_TARGET" >&6; } | |
95a05732 | 11780 | else |
cd9a469c | 11781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11782 | $as_echo "no" >&6; } | |
95a05732 | 11783 | fi |
11784 | ||
cd9a469c | 11785 | |
95a05732 | 11786 | done |
11787 | fi | |
11788 | ||
11789 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11790 | for ncn_progname in ld; do |
cd9a469c | 11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11792 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11793 | if test -x $with_build_time_tools/${ncn_progname}; then |
11794 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11796 | $as_echo "yes" >&6; } | |
c47832b1 | 11797 | break |
11798 | else | |
cd9a469c | 11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11800 | $as_echo "no" >&6; } | |
c47832b1 | 11801 | fi |
11802 | done | |
bb612911 | 11803 | fi |
11804 | ||
c47832b1 | 11805 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11806 | for ncn_progname in ld; do | |
11807 | if test -n "$ncn_target_tool_prefix"; then | |
11808 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11809 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11811 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11812 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
cd9a469c | 11813 | $as_echo_n "(cached) " >&6 |
bb612911 | 11814 | else |
ef8184c7 | 11815 | if test -n "$LD_FOR_TARGET"; then |
11816 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11817 | else |
b30fcfae | 11818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11819 | for as_dir in $PATH | |
11820 | do | |
11821 | IFS=$as_save_IFS | |
11822 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11823 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11825 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11827 | break 2 |
11828 | fi | |
11829 | done | |
cd9a469c | 11830 | done |
11831 | IFS=$as_save_IFS | |
b30fcfae | 11832 | |
bb612911 | 11833 | fi |
11834 | fi | |
b30fcfae | 11835 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
ef8184c7 | 11836 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11838 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11839 | else |
cd9a469c | 11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11841 | $as_echo "no" >&6; } | |
bb612911 | 11842 | fi |
11843 | ||
cd9a469c | 11844 | |
c47832b1 | 11845 | fi |
11846 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11847 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11848 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11850 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11851 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
cd9a469c | 11852 | $as_echo_n "(cached) " >&6 |
bb612911 | 11853 | else |
768691b5 | 11854 | if test -n "$LD_FOR_TARGET"; then |
11855 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11856 | else |
b30fcfae | 11857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11858 | for as_dir in $PATH | |
11859 | do | |
11860 | IFS=$as_save_IFS | |
11861 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11862 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11864 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11866 | break 2 |
11867 | fi | |
11868 | done | |
cd9a469c | 11869 | done |
11870 | IFS=$as_save_IFS | |
b30fcfae | 11871 | |
bb612911 | 11872 | fi |
11873 | fi | |
b30fcfae | 11874 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
768691b5 | 11875 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11877 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11878 | else |
cd9a469c | 11879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11880 | $as_echo "no" >&6; } | |
bb612911 | 11881 | fi |
b30fcfae | 11882 | |
cd9a469c | 11883 | |
c47832b1 | 11884 | fi |
11885 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11886 | done | |
11887 | fi | |
b30fcfae | 11888 | |
768691b5 | 11889 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11890 | set dummy ld | |
11891 | if test $build = $target ; then | |
11892 | LD_FOR_TARGET="$2" | |
bb612911 | 11893 | else |
768691b5 | 11894 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 11895 | fi |
b7ef8464 | 11896 | else |
11897 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
bb612911 | 11898 | fi |
11899 | ||
ab0da556 | 11900 | else |
11901 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
c47832b1 | 11902 | fi |
11903 | ||
11904 | ||
11905 | ||
11906 | ||
11907 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11908 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11910 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
ab0da556 | 11911 | if test -x $with_build_time_tools/lipo; then |
11912 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11913 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
cd9a469c | 11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11915 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
ab0da556 | 11916 | else |
cd9a469c | 11917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11918 | $as_echo "no" >&6; } | |
ab0da556 | 11919 | fi |
c47832b1 | 11920 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11921 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
b7ef8464 | 11922 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11923 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
c47832b1 | 11924 | fi |
11925 | fi | |
95a05732 | 11926 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11927 | # Extract the first word of "lipo", so it can be a program name with args. | |
11928 | set dummy lipo; ac_word=$2 | |
cd9a469c | 11929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11930 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11931 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
cd9a469c | 11932 | $as_echo_n "(cached) " >&6 |
95a05732 | 11933 | else |
11934 | case $LIPO_FOR_TARGET in | |
11935 | [\\/]* | ?:[\\/]*) | |
11936 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11937 | ;; | |
11938 | *) | |
11939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11940 | for as_dir in $gcc_cv_tool_dirs | |
11941 | do | |
11942 | IFS=$as_save_IFS | |
11943 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11944 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 11946 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11948 | break 2 |
11949 | fi | |
11950 | done | |
cd9a469c | 11951 | done |
11952 | IFS=$as_save_IFS | |
95a05732 | 11953 | |
11954 | ;; | |
11955 | esac | |
11956 | fi | |
11957 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
95a05732 | 11958 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11960 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
95a05732 | 11961 | else |
cd9a469c | 11962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11963 | $as_echo "no" >&6; } | |
95a05732 | 11964 | fi |
11965 | ||
cd9a469c | 11966 | |
95a05732 | 11967 | fi |
11968 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11969 | ||
11970 | ||
11971 | if test -n "$LIPO_FOR_TARGET"; then | |
11972 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11973 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11974 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11975 | fi | |
11976 | ||
11977 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11978 | for ncn_progname in lipo; do | |
11979 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11980 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11982 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11983 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
cd9a469c | 11984 | $as_echo_n "(cached) " >&6 |
c47832b1 | 11985 | else |
95a05732 | 11986 | if test -n "$LIPO_FOR_TARGET"; then |
11987 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11988 | else | |
11989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11990 | for as_dir in $PATH | |
b30fcfae | 11991 | do |
11992 | IFS=$as_save_IFS | |
11993 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11994 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 11996 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11998 | break 2 |
11999 | fi | |
12000 | done | |
cd9a469c | 12001 | done |
12002 | IFS=$as_save_IFS | |
b30fcfae | 12003 | |
c47832b1 | 12004 | fi |
95a05732 | 12005 | fi |
12006 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
c47832b1 | 12007 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12009 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
c47832b1 | 12010 | else |
cd9a469c | 12011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12012 | $as_echo "no" >&6; } | |
c47832b1 | 12013 | fi |
12014 | ||
cd9a469c | 12015 | |
95a05732 | 12016 | done |
c47832b1 | 12017 | fi |
95a05732 | 12018 | |
12019 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12020 | for ncn_progname in lipo; do |
cd9a469c | 12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12022 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12023 | if test -x $with_build_time_tools/${ncn_progname}; then |
12024 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12026 | $as_echo "yes" >&6; } | |
c47832b1 | 12027 | break |
12028 | else | |
cd9a469c | 12029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12030 | $as_echo "no" >&6; } | |
c47832b1 | 12031 | fi |
12032 | done | |
12033 | fi | |
12034 | ||
12035 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12036 | for ncn_progname in lipo; do | |
12037 | if test -n "$ncn_target_tool_prefix"; then | |
12038 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12039 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12041 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12042 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
cd9a469c | 12043 | $as_echo_n "(cached) " >&6 |
9fec3fa8 | 12044 | else |
12045 | if test -n "$LIPO_FOR_TARGET"; then | |
12046 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12047 | else | |
b30fcfae | 12048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12049 | for as_dir in $PATH | |
12050 | do | |
12051 | IFS=$as_save_IFS | |
12052 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12053 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12055 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12057 | break 2 |
12058 | fi | |
12059 | done | |
cd9a469c | 12060 | done |
12061 | IFS=$as_save_IFS | |
b30fcfae | 12062 | |
9fec3fa8 | 12063 | fi |
12064 | fi | |
b30fcfae | 12065 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 12066 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12068 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 12069 | else |
cd9a469c | 12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12071 | $as_echo "no" >&6; } | |
9fec3fa8 | 12072 | fi |
12073 | ||
cd9a469c | 12074 | |
c47832b1 | 12075 | fi |
12076 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12077 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 12078 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12080 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12081 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
cd9a469c | 12082 | $as_echo_n "(cached) " >&6 |
9fec3fa8 | 12083 | else |
12084 | if test -n "$LIPO_FOR_TARGET"; then | |
9886f3d1 | 12085 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
12086 | else | |
b30fcfae | 12087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12088 | for as_dir in $PATH | |
12089 | do | |
12090 | IFS=$as_save_IFS | |
12091 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12092 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12093 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12094 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12096 | break 2 |
12097 | fi | |
12098 | done | |
cd9a469c | 12099 | done |
12100 | IFS=$as_save_IFS | |
b30fcfae | 12101 | |
9fec3fa8 | 12102 | fi |
12103 | fi | |
b30fcfae | 12104 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 12105 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12107 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 12108 | else |
cd9a469c | 12109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12110 | $as_echo "no" >&6; } | |
9fec3fa8 | 12111 | fi |
b30fcfae | 12112 | |
cd9a469c | 12113 | |
c47832b1 | 12114 | fi |
12115 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12116 | done | |
12117 | fi | |
b30fcfae | 12118 | |
9fec3fa8 | 12119 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12120 | set dummy lipo | |
12121 | if test $build = $target ; then | |
12122 | LIPO_FOR_TARGET="$2" | |
12123 | else | |
12124 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12125 | fi | |
b7ef8464 | 12126 | else |
12127 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
9fec3fa8 | 12128 | fi |
12129 | ||
ab0da556 | 12130 | else |
12131 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
c47832b1 | 12132 | fi |
12133 | ||
12134 | ||
12135 | ||
12136 | ||
12137 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12138 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12140 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
ab0da556 | 12141 | if test -x $with_build_time_tools/nm; then |
12142 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12143 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
cd9a469c | 12144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12145 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
ab0da556 | 12146 | else |
cd9a469c | 12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12148 | $as_echo "no" >&6; } | |
ab0da556 | 12149 | fi |
c47832b1 | 12150 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12151 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
b7ef8464 | 12152 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12153 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
c47832b1 | 12154 | fi |
12155 | fi | |
38d7211b | 12156 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12157 | # Extract the first word of "nm", so it can be a program name with args. |
12158 | set dummy nm; ac_word=$2 | |
cd9a469c | 12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12160 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12161 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
cd9a469c | 12162 | $as_echo_n "(cached) " >&6 |
c47832b1 | 12163 | else |
b30fcfae | 12164 | case $NM_FOR_TARGET in |
12165 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12166 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12167 | ;; | |
c47832b1 | 12168 | *) |
b30fcfae | 12169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12170 | for as_dir in $gcc_cv_tool_dirs | |
12171 | do | |
12172 | IFS=$as_save_IFS | |
12173 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12174 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12176 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12178 | break 2 |
12179 | fi | |
12180 | done | |
cd9a469c | 12181 | done |
12182 | IFS=$as_save_IFS | |
b30fcfae | 12183 | |
c47832b1 | 12184 | ;; |
12185 | esac | |
12186 | fi | |
b30fcfae | 12187 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
c47832b1 | 12188 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12190 | $as_echo "$NM_FOR_TARGET" >&6; } | |
c47832b1 | 12191 | else |
cd9a469c | 12192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12193 | $as_echo "no" >&6; } | |
c47832b1 | 12194 | fi |
12195 | ||
cd9a469c | 12196 | |
c47832b1 | 12197 | fi |
12198 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
95a05732 | 12199 | |
12200 | ||
12201 | if test -n "$NM_FOR_TARGET"; then | |
12202 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12203 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12204 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12205 | fi | |
12206 | ||
12207 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12208 | for ncn_progname in nm; do | |
12209 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12210 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12212 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12213 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
cd9a469c | 12214 | $as_echo_n "(cached) " >&6 |
95a05732 | 12215 | else |
12216 | if test -n "$NM_FOR_TARGET"; then | |
12217 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12218 | else | |
12219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12220 | for as_dir in $PATH | |
12221 | do | |
12222 | IFS=$as_save_IFS | |
12223 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12224 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12225 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 12226 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12228 | break 2 |
12229 | fi | |
12230 | done | |
cd9a469c | 12231 | done |
12232 | IFS=$as_save_IFS | |
95a05732 | 12233 | |
12234 | fi | |
12235 | fi | |
12236 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12237 | if test -n "$NM_FOR_TARGET"; then | |
cd9a469c | 12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12239 | $as_echo "$NM_FOR_TARGET" >&6; } | |
95a05732 | 12240 | else |
cd9a469c | 12241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12242 | $as_echo "no" >&6; } | |
95a05732 | 12243 | fi |
12244 | ||
cd9a469c | 12245 | |
95a05732 | 12246 | done |
12247 | fi | |
12248 | ||
12249 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12250 | for ncn_progname in nm; do |
cd9a469c | 12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12252 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12253 | if test -x $with_build_time_tools/${ncn_progname}; then |
12254 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12256 | $as_echo "yes" >&6; } | |
c47832b1 | 12257 | break |
12258 | else | |
cd9a469c | 12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12260 | $as_echo "no" >&6; } | |
c47832b1 | 12261 | fi |
12262 | done | |
12263 | fi | |
12264 | ||
12265 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12266 | for ncn_progname in nm; do | |
12267 | if test -n "$ncn_target_tool_prefix"; then | |
12268 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 12269 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12271 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12272 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
cd9a469c | 12273 | $as_echo_n "(cached) " >&6 |
bb612911 | 12274 | else |
ef8184c7 | 12275 | if test -n "$NM_FOR_TARGET"; then |
12276 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12277 | else |
b30fcfae | 12278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12279 | for as_dir in $PATH | |
12280 | do | |
12281 | IFS=$as_save_IFS | |
12282 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12283 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12285 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12287 | break 2 |
12288 | fi | |
12289 | done | |
cd9a469c | 12290 | done |
12291 | IFS=$as_save_IFS | |
b30fcfae | 12292 | |
bb612911 | 12293 | fi |
12294 | fi | |
b30fcfae | 12295 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
ef8184c7 | 12296 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12298 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12299 | else |
cd9a469c | 12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12301 | $as_echo "no" >&6; } | |
bb612911 | 12302 | fi |
12303 | ||
cd9a469c | 12304 | |
c47832b1 | 12305 | fi |
12306 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12307 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12308 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12310 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12311 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
cd9a469c | 12312 | $as_echo_n "(cached) " >&6 |
bb612911 | 12313 | else |
768691b5 | 12314 | if test -n "$NM_FOR_TARGET"; then |
12315 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12316 | else |
b30fcfae | 12317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12318 | for as_dir in $PATH | |
12319 | do | |
12320 | IFS=$as_save_IFS | |
12321 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12322 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12324 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12326 | break 2 |
12327 | fi | |
12328 | done | |
cd9a469c | 12329 | done |
12330 | IFS=$as_save_IFS | |
b30fcfae | 12331 | |
bb612911 | 12332 | fi |
12333 | fi | |
b30fcfae | 12334 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
768691b5 | 12335 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12337 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12338 | else |
cd9a469c | 12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12340 | $as_echo "no" >&6; } | |
bb612911 | 12341 | fi |
b30fcfae | 12342 | |
cd9a469c | 12343 | |
c47832b1 | 12344 | fi |
12345 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12346 | done | |
12347 | fi | |
b30fcfae | 12348 | |
768691b5 | 12349 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12350 | set dummy nm | |
12351 | if test $build = $target ; then | |
12352 | NM_FOR_TARGET="$2" | |
bb612911 | 12353 | else |
768691b5 | 12354 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 12355 | fi |
b7ef8464 | 12356 | else |
12357 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
bb612911 | 12358 | fi |
12359 | ||
ab0da556 | 12360 | else |
12361 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
c47832b1 | 12362 | fi |
12363 | ||
12364 | ||
12365 | ||
12366 | ||
fc740d70 | 12367 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12368 | if test -n "$with_build_time_tools"; then | |
12369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12370 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12371 | if test -x $with_build_time_tools/objcopy; then | |
12372 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12373 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12375 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12376 | else | |
12377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12378 | $as_echo "no" >&6; } | |
12379 | fi | |
12380 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12381 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12382 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12383 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12384 | fi | |
12385 | fi | |
12386 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12387 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12388 | set dummy objcopy; ac_word=$2 | |
12389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12390 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12391 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
fc740d70 | 12392 | $as_echo_n "(cached) " >&6 |
12393 | else | |
12394 | case $OBJCOPY_FOR_TARGET in | |
12395 | [\\/]* | ?:[\\/]*) | |
12396 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12397 | ;; | |
12398 | *) | |
12399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12400 | for as_dir in $gcc_cv_tool_dirs | |
12401 | do | |
12402 | IFS=$as_save_IFS | |
12403 | test -z "$as_dir" && as_dir=. | |
12404 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 12405 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fc740d70 | 12406 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12407 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12408 | break 2 | |
12409 | fi | |
12410 | done | |
12411 | done | |
12412 | IFS=$as_save_IFS | |
12413 | ||
12414 | ;; | |
12415 | esac | |
12416 | fi | |
12417 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12418 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12420 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12421 | else | |
12422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12423 | $as_echo "no" >&6; } | |
12424 | fi | |
12425 | ||
12426 | ||
12427 | fi | |
12428 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12429 | ||
12430 | ||
12431 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12432 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12433 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12434 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12435 | fi | |
12436 | ||
12437 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12438 | for ncn_progname in objcopy; do | |
12439 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12440 | set dummy ${ncn_progname}; ac_word=$2 | |
12441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12442 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12443 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
fc740d70 | 12444 | $as_echo_n "(cached) " >&6 |
12445 | else | |
12446 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12447 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12448 | else | |
12449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12450 | for as_dir in $PATH | |
12451 | do | |
12452 | IFS=$as_save_IFS | |
12453 | test -z "$as_dir" && as_dir=. | |
12454 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 12455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fc740d70 | 12456 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12458 | break 2 | |
12459 | fi | |
12460 | done | |
12461 | done | |
12462 | IFS=$as_save_IFS | |
12463 | ||
12464 | fi | |
12465 | fi | |
12466 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12467 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12469 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12470 | else | |
12471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12472 | $as_echo "no" >&6; } | |
12473 | fi | |
12474 | ||
12475 | ||
12476 | done | |
12477 | fi | |
12478 | ||
12479 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12480 | for ncn_progname in objcopy; do | |
12481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12482 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12483 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12484 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12486 | $as_echo "yes" >&6; } | |
12487 | break | |
12488 | else | |
12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12490 | $as_echo "no" >&6; } | |
12491 | fi | |
12492 | done | |
12493 | fi | |
12494 | ||
12495 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12496 | for ncn_progname in objcopy; do | |
12497 | if test -n "$ncn_target_tool_prefix"; then | |
12498 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12499 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12501 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12502 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
fc740d70 | 12503 | $as_echo_n "(cached) " >&6 |
12504 | else | |
12505 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12506 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12507 | else | |
12508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12509 | for as_dir in $PATH | |
12510 | do | |
12511 | IFS=$as_save_IFS | |
12512 | test -z "$as_dir" && as_dir=. | |
12513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 12514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fc740d70 | 12515 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12517 | break 2 | |
12518 | fi | |
12519 | done | |
12520 | done | |
12521 | IFS=$as_save_IFS | |
12522 | ||
12523 | fi | |
12524 | fi | |
12525 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12526 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12528 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12529 | else | |
12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12531 | $as_echo "no" >&6; } | |
12532 | fi | |
12533 | ||
12534 | ||
12535 | fi | |
12536 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12537 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12538 | set dummy ${ncn_progname}; ac_word=$2 | |
12539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12540 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12541 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
fc740d70 | 12542 | $as_echo_n "(cached) " >&6 |
12543 | else | |
12544 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12545 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12546 | else | |
12547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12548 | for as_dir in $PATH | |
12549 | do | |
12550 | IFS=$as_save_IFS | |
12551 | test -z "$as_dir" && as_dir=. | |
12552 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 12553 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fc740d70 | 12554 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12556 | break 2 | |
12557 | fi | |
12558 | done | |
12559 | done | |
12560 | IFS=$as_save_IFS | |
12561 | ||
12562 | fi | |
12563 | fi | |
12564 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12565 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12567 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12568 | else | |
12569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12570 | $as_echo "no" >&6; } | |
12571 | fi | |
12572 | ||
12573 | ||
12574 | fi | |
12575 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12576 | done | |
12577 | fi | |
12578 | ||
12579 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12580 | set dummy objcopy | |
12581 | if test $build = $target ; then | |
12582 | OBJCOPY_FOR_TARGET="$2" | |
12583 | else | |
12584 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12585 | fi | |
12586 | else | |
12587 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12588 | fi | |
12589 | ||
12590 | else | |
12591 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12592 | fi | |
12593 | ||
12594 | ||
12595 | ||
12596 | ||
c47832b1 | 12597 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12598 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12600 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
ab0da556 | 12601 | if test -x $with_build_time_tools/objdump; then |
12602 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12603 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
cd9a469c | 12604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12605 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
ab0da556 | 12606 | else |
cd9a469c | 12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12608 | $as_echo "no" >&6; } | |
ab0da556 | 12609 | fi |
c47832b1 | 12610 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12611 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
b7ef8464 | 12612 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12613 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
c47832b1 | 12614 | fi |
12615 | fi | |
38d7211b | 12616 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12617 | # Extract the first word of "objdump", so it can be a program name with args. |
12618 | set dummy objdump; ac_word=$2 | |
cd9a469c | 12619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12620 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12621 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
cd9a469c | 12622 | $as_echo_n "(cached) " >&6 |
c47832b1 | 12623 | else |
b30fcfae | 12624 | case $OBJDUMP_FOR_TARGET in |
12625 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12626 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12627 | ;; | |
c47832b1 | 12628 | *) |
b30fcfae | 12629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12630 | for as_dir in $gcc_cv_tool_dirs | |
12631 | do | |
12632 | IFS=$as_save_IFS | |
12633 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12634 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12636 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12638 | break 2 |
12639 | fi | |
12640 | done | |
cd9a469c | 12641 | done |
12642 | IFS=$as_save_IFS | |
b30fcfae | 12643 | |
c47832b1 | 12644 | ;; |
12645 | esac | |
12646 | fi | |
b30fcfae | 12647 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
c47832b1 | 12648 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12650 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
c47832b1 | 12651 | else |
cd9a469c | 12652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12653 | $as_echo "no" >&6; } | |
c47832b1 | 12654 | fi |
12655 | ||
cd9a469c | 12656 | |
c47832b1 | 12657 | fi |
12658 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
95a05732 | 12659 | |
12660 | ||
12661 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12662 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12663 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12664 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12665 | fi | |
12666 | ||
12667 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12668 | for ncn_progname in objdump; do | |
12669 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12670 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12672 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12673 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
cd9a469c | 12674 | $as_echo_n "(cached) " >&6 |
95a05732 | 12675 | else |
12676 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12677 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12678 | else | |
12679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12680 | for as_dir in $PATH | |
12681 | do | |
12682 | IFS=$as_save_IFS | |
12683 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12684 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 12686 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12688 | break 2 |
12689 | fi | |
12690 | done | |
cd9a469c | 12691 | done |
12692 | IFS=$as_save_IFS | |
95a05732 | 12693 | |
12694 | fi | |
12695 | fi | |
12696 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12697 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
cd9a469c | 12698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12699 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
95a05732 | 12700 | else |
cd9a469c | 12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12702 | $as_echo "no" >&6; } | |
95a05732 | 12703 | fi |
12704 | ||
cd9a469c | 12705 | |
95a05732 | 12706 | done |
12707 | fi | |
12708 | ||
12709 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12710 | for ncn_progname in objdump; do |
cd9a469c | 12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12712 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12713 | if test -x $with_build_time_tools/${ncn_progname}; then |
12714 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12716 | $as_echo "yes" >&6; } | |
c47832b1 | 12717 | break |
12718 | else | |
cd9a469c | 12719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12720 | $as_echo "no" >&6; } | |
c47832b1 | 12721 | fi |
12722 | done | |
12723 | fi | |
12724 | ||
12725 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12726 | for ncn_progname in objdump; do | |
12727 | if test -n "$ncn_target_tool_prefix"; then | |
12728 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12729 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12731 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12732 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
cd9a469c | 12733 | $as_echo_n "(cached) " >&6 |
ae74ffb7 | 12734 | else |
12735 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12736 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12737 | else | |
b30fcfae | 12738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12739 | for as_dir in $PATH | |
12740 | do | |
12741 | IFS=$as_save_IFS | |
12742 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12743 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12745 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12747 | break 2 |
12748 | fi | |
12749 | done | |
cd9a469c | 12750 | done |
12751 | IFS=$as_save_IFS | |
b30fcfae | 12752 | |
ae74ffb7 | 12753 | fi |
12754 | fi | |
b30fcfae | 12755 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12756 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12758 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12759 | else |
cd9a469c | 12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12761 | $as_echo "no" >&6; } | |
ae74ffb7 | 12762 | fi |
12763 | ||
cd9a469c | 12764 | |
c47832b1 | 12765 | fi |
12766 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12767 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12768 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12770 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12771 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
cd9a469c | 12772 | $as_echo_n "(cached) " >&6 |
ae74ffb7 | 12773 | else |
12774 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12775 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12776 | else | |
b30fcfae | 12777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12778 | for as_dir in $PATH | |
12779 | do | |
12780 | IFS=$as_save_IFS | |
12781 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12782 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12784 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12786 | break 2 |
12787 | fi | |
12788 | done | |
cd9a469c | 12789 | done |
12790 | IFS=$as_save_IFS | |
b30fcfae | 12791 | |
ae74ffb7 | 12792 | fi |
12793 | fi | |
b30fcfae | 12794 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12795 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12797 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12798 | else |
cd9a469c | 12799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12800 | $as_echo "no" >&6; } | |
ae74ffb7 | 12801 | fi |
b30fcfae | 12802 | |
cd9a469c | 12803 | |
c47832b1 | 12804 | fi |
12805 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12806 | done | |
12807 | fi | |
b30fcfae | 12808 | |
ae74ffb7 | 12809 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12810 | set dummy objdump | |
12811 | if test $build = $target ; then | |
12812 | OBJDUMP_FOR_TARGET="$2" | |
12813 | else | |
12814 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12815 | fi | |
b7ef8464 | 12816 | else |
12817 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
ae74ffb7 | 12818 | fi |
12819 | ||
ab0da556 | 12820 | else |
12821 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
c47832b1 | 12822 | fi |
12823 | ||
12824 | ||
12825 | ||
12826 | ||
12827 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12828 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12830 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
ab0da556 | 12831 | if test -x $with_build_time_tools/ranlib; then |
12832 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12833 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
cd9a469c | 12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12835 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
ab0da556 | 12836 | else |
cd9a469c | 12837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12838 | $as_echo "no" >&6; } | |
ab0da556 | 12839 | fi |
c47832b1 | 12840 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12841 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
b7ef8464 | 12842 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12843 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
c47832b1 | 12844 | fi |
12845 | fi | |
38d7211b | 12846 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12847 | # Extract the first word of "ranlib", so it can be a program name with args. |
12848 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 12849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12850 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12851 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
cd9a469c | 12852 | $as_echo_n "(cached) " >&6 |
c47832b1 | 12853 | else |
b30fcfae | 12854 | case $RANLIB_FOR_TARGET in |
12855 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12856 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12857 | ;; | |
c47832b1 | 12858 | *) |
b30fcfae | 12859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12860 | for as_dir in $gcc_cv_tool_dirs | |
12861 | do | |
12862 | IFS=$as_save_IFS | |
12863 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12864 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12865 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12866 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12868 | break 2 |
12869 | fi | |
12870 | done | |
cd9a469c | 12871 | done |
12872 | IFS=$as_save_IFS | |
b30fcfae | 12873 | |
c47832b1 | 12874 | ;; |
12875 | esac | |
12876 | fi | |
b30fcfae | 12877 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
c47832b1 | 12878 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12880 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
c47832b1 | 12881 | else |
cd9a469c | 12882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12883 | $as_echo "no" >&6; } | |
c47832b1 | 12884 | fi |
12885 | ||
cd9a469c | 12886 | |
c47832b1 | 12887 | fi |
12888 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
95a05732 | 12889 | |
12890 | ||
12891 | if test -n "$RANLIB_FOR_TARGET"; then | |
12892 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12893 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12894 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12895 | fi | |
12896 | ||
12897 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12898 | for ncn_progname in ranlib; do | |
12899 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12900 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12902 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12903 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
cd9a469c | 12904 | $as_echo_n "(cached) " >&6 |
95a05732 | 12905 | else |
12906 | if test -n "$RANLIB_FOR_TARGET"; then | |
12907 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12908 | else | |
12909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12910 | for as_dir in $PATH | |
12911 | do | |
12912 | IFS=$as_save_IFS | |
12913 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12914 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 12916 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12918 | break 2 |
12919 | fi | |
12920 | done | |
cd9a469c | 12921 | done |
12922 | IFS=$as_save_IFS | |
95a05732 | 12923 | |
12924 | fi | |
12925 | fi | |
12926 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12927 | if test -n "$RANLIB_FOR_TARGET"; then | |
cd9a469c | 12928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12929 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
95a05732 | 12930 | else |
cd9a469c | 12931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12932 | $as_echo "no" >&6; } | |
95a05732 | 12933 | fi |
12934 | ||
cd9a469c | 12935 | |
95a05732 | 12936 | done |
12937 | fi | |
12938 | ||
12939 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12940 | for ncn_progname in ranlib; do |
cd9a469c | 12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12942 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12943 | if test -x $with_build_time_tools/${ncn_progname}; then |
12944 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12946 | $as_echo "yes" >&6; } | |
c47832b1 | 12947 | break |
12948 | else | |
cd9a469c | 12949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12950 | $as_echo "no" >&6; } | |
c47832b1 | 12951 | fi |
12952 | done | |
12953 | fi | |
12954 | ||
12955 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12956 | for ncn_progname in ranlib; do | |
12957 | if test -n "$ncn_target_tool_prefix"; then | |
12958 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12959 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12961 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12962 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
cd9a469c | 12963 | $as_echo_n "(cached) " >&6 |
bb612911 | 12964 | else |
ef8184c7 | 12965 | if test -n "$RANLIB_FOR_TARGET"; then |
12966 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12967 | else |
b30fcfae | 12968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12969 | for as_dir in $PATH | |
12970 | do | |
12971 | IFS=$as_save_IFS | |
12972 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12973 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12975 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12977 | break 2 |
12978 | fi | |
12979 | done | |
cd9a469c | 12980 | done |
12981 | IFS=$as_save_IFS | |
b30fcfae | 12982 | |
bb612911 | 12983 | fi |
12984 | fi | |
b30fcfae | 12985 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
ef8184c7 | 12986 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12988 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12989 | else |
cd9a469c | 12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12991 | $as_echo "no" >&6; } | |
bb612911 | 12992 | fi |
12993 | ||
cd9a469c | 12994 | |
c47832b1 | 12995 | fi |
12996 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12997 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12998 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13000 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13001 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
cd9a469c | 13002 | $as_echo_n "(cached) " >&6 |
bb612911 | 13003 | else |
768691b5 | 13004 | if test -n "$RANLIB_FOR_TARGET"; then |
13005 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13006 | else |
b30fcfae | 13007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13008 | for as_dir in $PATH | |
13009 | do | |
13010 | IFS=$as_save_IFS | |
13011 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13012 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13013 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13014 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13016 | break 2 |
13017 | fi | |
13018 | done | |
cd9a469c | 13019 | done |
13020 | IFS=$as_save_IFS | |
b30fcfae | 13021 | |
bb612911 | 13022 | fi |
13023 | fi | |
b30fcfae | 13024 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
768691b5 | 13025 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 13026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13027 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 13028 | else |
cd9a469c | 13029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13030 | $as_echo "no" >&6; } | |
bb612911 | 13031 | fi |
b30fcfae | 13032 | |
cd9a469c | 13033 | |
c47832b1 | 13034 | fi |
13035 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
13036 | done | |
13037 | fi | |
b30fcfae | 13038 | |
c47832b1 | 13039 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
13040 | set dummy ranlib | |
13041 | if test $build = $target ; then | |
13042 | RANLIB_FOR_TARGET="$2" | |
13043 | else | |
13044 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
bb612911 | 13045 | fi |
b7ef8464 | 13046 | else |
13047 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
c47832b1 | 13048 | fi |
768691b5 | 13049 | |
ab0da556 | 13050 | else |
13051 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
bb612911 | 13052 | fi |
13053 | ||
c47832b1 | 13054 | |
13055 | ||
13056 | ||
3f71364d | 13057 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13058 | if test -n "$with_build_time_tools"; then | |
13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13060 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13061 | if test -x $with_build_time_tools/readelf; then | |
13062 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13063 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13065 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13066 | else | |
13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13068 | $as_echo "no" >&6; } | |
13069 | fi | |
13070 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13071 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13072 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13073 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13074 | fi | |
13075 | fi | |
13076 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13077 | # Extract the first word of "readelf", so it can be a program name with args. | |
13078 | set dummy readelf; ac_word=$2 | |
13079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13080 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13081 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
3f71364d | 13082 | $as_echo_n "(cached) " >&6 |
13083 | else | |
13084 | case $READELF_FOR_TARGET in | |
13085 | [\\/]* | ?:[\\/]*) | |
13086 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13087 | ;; | |
13088 | *) | |
13089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13090 | for as_dir in $gcc_cv_tool_dirs | |
13091 | do | |
13092 | IFS=$as_save_IFS | |
13093 | test -z "$as_dir" && as_dir=. | |
13094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 13095 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 13096 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
13097 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13098 | break 2 | |
13099 | fi | |
13100 | done | |
13101 | done | |
13102 | IFS=$as_save_IFS | |
13103 | ||
13104 | ;; | |
13105 | esac | |
13106 | fi | |
13107 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13108 | if test -n "$READELF_FOR_TARGET"; then | |
13109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13110 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13111 | else | |
13112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13113 | $as_echo "no" >&6; } | |
13114 | fi | |
13115 | ||
13116 | ||
13117 | fi | |
13118 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13119 | ||
13120 | ||
13121 | if test -n "$READELF_FOR_TARGET"; then | |
13122 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13123 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13124 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13125 | fi | |
13126 | ||
13127 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13128 | for ncn_progname in readelf; do | |
13129 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13130 | set dummy ${ncn_progname}; ac_word=$2 | |
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13132 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13133 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
3f71364d | 13134 | $as_echo_n "(cached) " >&6 |
13135 | else | |
13136 | if test -n "$READELF_FOR_TARGET"; then | |
13137 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13138 | else | |
13139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13140 | for as_dir in $PATH | |
13141 | do | |
13142 | IFS=$as_save_IFS | |
13143 | test -z "$as_dir" && as_dir=. | |
13144 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 13145 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 13146 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13148 | break 2 | |
13149 | fi | |
13150 | done | |
13151 | done | |
13152 | IFS=$as_save_IFS | |
13153 | ||
13154 | fi | |
13155 | fi | |
13156 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13157 | if test -n "$READELF_FOR_TARGET"; then | |
13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13159 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13160 | else | |
13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13162 | $as_echo "no" >&6; } | |
13163 | fi | |
13164 | ||
13165 | ||
13166 | done | |
13167 | fi | |
13168 | ||
13169 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13170 | for ncn_progname in readelf; do | |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13172 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13173 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13174 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13176 | $as_echo "yes" >&6; } | |
13177 | break | |
13178 | else | |
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13180 | $as_echo "no" >&6; } | |
13181 | fi | |
13182 | done | |
13183 | fi | |
13184 | ||
13185 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13186 | for ncn_progname in readelf; do | |
13187 | if test -n "$ncn_target_tool_prefix"; then | |
13188 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13189 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13191 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13192 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
3f71364d | 13193 | $as_echo_n "(cached) " >&6 |
13194 | else | |
13195 | if test -n "$READELF_FOR_TARGET"; then | |
13196 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13197 | else | |
13198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13199 | for as_dir in $PATH | |
13200 | do | |
13201 | IFS=$as_save_IFS | |
13202 | test -z "$as_dir" && as_dir=. | |
13203 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 13204 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 13205 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13207 | break 2 | |
13208 | fi | |
13209 | done | |
13210 | done | |
13211 | IFS=$as_save_IFS | |
13212 | ||
13213 | fi | |
13214 | fi | |
13215 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13216 | if test -n "$READELF_FOR_TARGET"; then | |
13217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13218 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13219 | else | |
13220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13221 | $as_echo "no" >&6; } | |
13222 | fi | |
13223 | ||
13224 | ||
13225 | fi | |
13226 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13227 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13228 | set dummy ${ncn_progname}; ac_word=$2 | |
13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13230 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13231 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
3f71364d | 13232 | $as_echo_n "(cached) " >&6 |
13233 | else | |
13234 | if test -n "$READELF_FOR_TARGET"; then | |
13235 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13236 | else | |
13237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13238 | for as_dir in $PATH | |
13239 | do | |
13240 | IFS=$as_save_IFS | |
13241 | test -z "$as_dir" && as_dir=. | |
13242 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 13243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 13244 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13246 | break 2 | |
13247 | fi | |
13248 | done | |
13249 | done | |
13250 | IFS=$as_save_IFS | |
13251 | ||
13252 | fi | |
13253 | fi | |
13254 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13255 | if test -n "$READELF_FOR_TARGET"; then | |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13257 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13258 | else | |
13259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13260 | $as_echo "no" >&6; } | |
13261 | fi | |
13262 | ||
13263 | ||
13264 | fi | |
13265 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13266 | done | |
13267 | fi | |
13268 | ||
13269 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13270 | set dummy readelf | |
13271 | if test $build = $target ; then | |
13272 | READELF_FOR_TARGET="$2" | |
13273 | else | |
13274 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13275 | fi | |
13276 | else | |
13277 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13278 | fi | |
13279 | ||
13280 | else | |
13281 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13282 | fi | |
13283 | ||
13284 | ||
13285 | ||
13286 | ||
c47832b1 | 13287 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13288 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13290 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
ab0da556 | 13291 | if test -x $with_build_time_tools/strip; then |
13292 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13293 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
cd9a469c | 13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13295 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
ab0da556 | 13296 | else |
cd9a469c | 13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13298 | $as_echo "no" >&6; } | |
ab0da556 | 13299 | fi |
c47832b1 | 13300 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13301 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
b7ef8464 | 13302 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13303 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
c47832b1 | 13304 | fi |
13305 | fi | |
38d7211b | 13306 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13307 | # Extract the first word of "strip", so it can be a program name with args. |
13308 | set dummy strip; ac_word=$2 | |
cd9a469c | 13309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13310 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13311 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
cd9a469c | 13312 | $as_echo_n "(cached) " >&6 |
c47832b1 | 13313 | else |
b30fcfae | 13314 | case $STRIP_FOR_TARGET in |
13315 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13316 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13317 | ;; | |
c47832b1 | 13318 | *) |
b30fcfae | 13319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13320 | for as_dir in $gcc_cv_tool_dirs | |
13321 | do | |
13322 | IFS=$as_save_IFS | |
13323 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13324 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13325 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13326 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13328 | break 2 |
13329 | fi | |
13330 | done | |
cd9a469c | 13331 | done |
13332 | IFS=$as_save_IFS | |
b30fcfae | 13333 | |
c47832b1 | 13334 | ;; |
13335 | esac | |
13336 | fi | |
b30fcfae | 13337 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
c47832b1 | 13338 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13340 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
c47832b1 | 13341 | else |
cd9a469c | 13342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13343 | $as_echo "no" >&6; } | |
c47832b1 | 13344 | fi |
13345 | ||
cd9a469c | 13346 | |
c47832b1 | 13347 | fi |
13348 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
95a05732 | 13349 | |
13350 | ||
13351 | if test -n "$STRIP_FOR_TARGET"; then | |
13352 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13353 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13354 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13355 | fi | |
13356 | ||
13357 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13358 | for ncn_progname in strip; do | |
13359 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13360 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13362 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13363 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
cd9a469c | 13364 | $as_echo_n "(cached) " >&6 |
95a05732 | 13365 | else |
13366 | if test -n "$STRIP_FOR_TARGET"; then | |
13367 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13368 | else | |
13369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13370 | for as_dir in $PATH | |
13371 | do | |
13372 | IFS=$as_save_IFS | |
13373 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13374 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 13376 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13378 | break 2 |
13379 | fi | |
13380 | done | |
cd9a469c | 13381 | done |
13382 | IFS=$as_save_IFS | |
95a05732 | 13383 | |
13384 | fi | |
13385 | fi | |
13386 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13387 | if test -n "$STRIP_FOR_TARGET"; then | |
cd9a469c | 13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13389 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
95a05732 | 13390 | else |
cd9a469c | 13391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13392 | $as_echo "no" >&6; } | |
95a05732 | 13393 | fi |
13394 | ||
cd9a469c | 13395 | |
95a05732 | 13396 | done |
13397 | fi | |
13398 | ||
13399 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13400 | for ncn_progname in strip; do |
cd9a469c | 13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13402 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13403 | if test -x $with_build_time_tools/${ncn_progname}; then |
13404 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13406 | $as_echo "yes" >&6; } | |
c47832b1 | 13407 | break |
13408 | else | |
cd9a469c | 13409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13410 | $as_echo "no" >&6; } | |
c47832b1 | 13411 | fi |
13412 | done | |
13413 | fi | |
13414 | ||
13415 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13416 | for ncn_progname in strip; do | |
13417 | if test -n "$ncn_target_tool_prefix"; then | |
13418 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13419 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13421 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13422 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
cd9a469c | 13423 | $as_echo_n "(cached) " >&6 |
ae48753c | 13424 | else |
13425 | if test -n "$STRIP_FOR_TARGET"; then | |
b30fcfae | 13426 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13427 | else | |
13428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13429 | for as_dir in $PATH | |
13430 | do | |
13431 | IFS=$as_save_IFS | |
13432 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13433 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13434 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13435 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13437 | break 2 |
13438 | fi | |
13439 | done | |
cd9a469c | 13440 | done |
13441 | IFS=$as_save_IFS | |
b30fcfae | 13442 | |
9fec3fa8 | 13443 | fi |
13444 | fi | |
b30fcfae | 13445 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13446 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13448 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13449 | else |
cd9a469c | 13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13451 | $as_echo "no" >&6; } | |
9fec3fa8 | 13452 | fi |
13453 | ||
cd9a469c | 13454 | |
c47832b1 | 13455 | fi |
13456 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13457 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13458 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13460 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13461 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
cd9a469c | 13462 | $as_echo_n "(cached) " >&6 |
9fec3fa8 | 13463 | else |
13464 | if test -n "$STRIP_FOR_TARGET"; then | |
13465 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13466 | else | |
b30fcfae | 13467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13468 | for as_dir in $PATH | |
13469 | do | |
13470 | IFS=$as_save_IFS | |
13471 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13472 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13473 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13474 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13476 | break 2 |
13477 | fi | |
13478 | done | |
cd9a469c | 13479 | done |
13480 | IFS=$as_save_IFS | |
b30fcfae | 13481 | |
9fec3fa8 | 13482 | fi |
13483 | fi | |
b30fcfae | 13484 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13485 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13487 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13488 | else |
cd9a469c | 13489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13490 | $as_echo "no" >&6; } | |
9fec3fa8 | 13491 | fi |
b30fcfae | 13492 | |
cd9a469c | 13493 | |
c47832b1 | 13494 | fi |
13495 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13496 | done | |
13497 | fi | |
b30fcfae | 13498 | |
9fec3fa8 | 13499 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13500 | set dummy strip | |
13501 | if test $build = $target ; then | |
13502 | STRIP_FOR_TARGET="$2" | |
13503 | else | |
13504 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13505 | fi | |
b7ef8464 | 13506 | else |
13507 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
9fec3fa8 | 13508 | fi |
13509 | ||
ab0da556 | 13510 | else |
13511 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
c47832b1 | 13512 | fi |
13513 | ||
13514 | ||
13515 | ||
13516 | ||
13517 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13518 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13520 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
ab0da556 | 13521 | if test -x $with_build_time_tools/windres; then |
13522 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13523 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
cd9a469c | 13524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13525 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
ab0da556 | 13526 | else |
cd9a469c | 13527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13528 | $as_echo "no" >&6; } | |
ab0da556 | 13529 | fi |
c47832b1 | 13530 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13531 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
b7ef8464 | 13532 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13533 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
c47832b1 | 13534 | fi |
13535 | fi | |
38d7211b | 13536 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13537 | # Extract the first word of "windres", so it can be a program name with args. |
13538 | set dummy windres; ac_word=$2 | |
cd9a469c | 13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13540 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13541 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
cd9a469c | 13542 | $as_echo_n "(cached) " >&6 |
c47832b1 | 13543 | else |
b30fcfae | 13544 | case $WINDRES_FOR_TARGET in |
13545 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13546 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13547 | ;; | |
c47832b1 | 13548 | *) |
b30fcfae | 13549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13550 | for as_dir in $gcc_cv_tool_dirs | |
13551 | do | |
13552 | IFS=$as_save_IFS | |
13553 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13554 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13556 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13558 | break 2 |
13559 | fi | |
13560 | done | |
cd9a469c | 13561 | done |
13562 | IFS=$as_save_IFS | |
b30fcfae | 13563 | |
c47832b1 | 13564 | ;; |
13565 | esac | |
13566 | fi | |
b30fcfae | 13567 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
c47832b1 | 13568 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13570 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
c47832b1 | 13571 | else |
cd9a469c | 13572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13573 | $as_echo "no" >&6; } | |
c47832b1 | 13574 | fi |
13575 | ||
cd9a469c | 13576 | |
c47832b1 | 13577 | fi |
13578 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
95a05732 | 13579 | |
13580 | ||
13581 | if test -n "$WINDRES_FOR_TARGET"; then | |
13582 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13583 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13584 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13585 | fi | |
13586 | ||
13587 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13588 | for ncn_progname in windres; do | |
13589 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13590 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13592 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13593 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
cd9a469c | 13594 | $as_echo_n "(cached) " >&6 |
95a05732 | 13595 | else |
13596 | if test -n "$WINDRES_FOR_TARGET"; then | |
13597 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13598 | else | |
13599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13600 | for as_dir in $PATH | |
13601 | do | |
13602 | IFS=$as_save_IFS | |
13603 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13604 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13605 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 13606 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13608 | break 2 |
13609 | fi | |
13610 | done | |
cd9a469c | 13611 | done |
13612 | IFS=$as_save_IFS | |
95a05732 | 13613 | |
13614 | fi | |
13615 | fi | |
13616 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13617 | if test -n "$WINDRES_FOR_TARGET"; then | |
cd9a469c | 13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13619 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
95a05732 | 13620 | else |
cd9a469c | 13621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13622 | $as_echo "no" >&6; } | |
95a05732 | 13623 | fi |
13624 | ||
cd9a469c | 13625 | |
95a05732 | 13626 | done |
13627 | fi | |
13628 | ||
13629 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13630 | for ncn_progname in windres; do |
cd9a469c | 13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13632 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13633 | if test -x $with_build_time_tools/${ncn_progname}; then |
13634 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13636 | $as_echo "yes" >&6; } | |
c47832b1 | 13637 | break |
13638 | else | |
cd9a469c | 13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13640 | $as_echo "no" >&6; } | |
c47832b1 | 13641 | fi |
13642 | done | |
13643 | fi | |
13644 | ||
13645 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13646 | for ncn_progname in windres; do | |
13647 | if test -n "$ncn_target_tool_prefix"; then | |
13648 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13649 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13651 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13652 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
cd9a469c | 13653 | $as_echo_n "(cached) " >&6 |
bb612911 | 13654 | else |
ef8184c7 | 13655 | if test -n "$WINDRES_FOR_TARGET"; then |
13656 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13657 | else |
b30fcfae | 13658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13659 | for as_dir in $PATH | |
13660 | do | |
13661 | IFS=$as_save_IFS | |
13662 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13663 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13665 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13667 | break 2 |
13668 | fi | |
13669 | done | |
cd9a469c | 13670 | done |
13671 | IFS=$as_save_IFS | |
b30fcfae | 13672 | |
bb612911 | 13673 | fi |
13674 | fi | |
b30fcfae | 13675 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
ef8184c7 | 13676 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13678 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 13679 | else |
cd9a469c | 13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13681 | $as_echo "no" >&6; } | |
bb612911 | 13682 | fi |
13683 | ||
cd9a469c | 13684 | |
c47832b1 | 13685 | fi |
13686 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13687 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13688 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13690 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13691 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
cd9a469c | 13692 | $as_echo_n "(cached) " >&6 |
bb612911 | 13693 | else |
768691b5 | 13694 | if test -n "$WINDRES_FOR_TARGET"; then |
13695 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13696 | else |
b30fcfae | 13697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13698 | for as_dir in $PATH | |
13699 | do | |
13700 | IFS=$as_save_IFS | |
13701 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13702 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13704 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13706 | break 2 |
13707 | fi | |
13708 | done | |
cd9a469c | 13709 | done |
13710 | IFS=$as_save_IFS | |
b30fcfae | 13711 | |
bb612911 | 13712 | fi |
13713 | fi | |
b30fcfae | 13714 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
768691b5 | 13715 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13717 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 13718 | else |
cd9a469c | 13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13720 | $as_echo "no" >&6; } | |
bb612911 | 13721 | fi |
b30fcfae | 13722 | |
cd9a469c | 13723 | |
c47832b1 | 13724 | fi |
13725 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13726 | done | |
13727 | fi | |
b30fcfae | 13728 | |
768691b5 | 13729 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13730 | set dummy windres | |
13731 | if test $build = $target ; then | |
13732 | WINDRES_FOR_TARGET="$2" | |
bb612911 | 13733 | else |
768691b5 | 13734 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 13735 | fi |
b7ef8464 | 13736 | else |
13737 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
bb612911 | 13738 | fi |
13739 | ||
ab0da556 | 13740 | else |
13741 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
c47832b1 | 13742 | fi |
13743 | ||
805e22b2 | 13744 | |
75d6a0a9 | 13745 | |
13746 | ||
13747 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13748 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13750 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13751 | if test -x $with_build_time_tools/windmc; then |
13752 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13753 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
cd9a469c | 13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13755 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13756 | else |
cd9a469c | 13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13758 | $as_echo "no" >&6; } | |
75d6a0a9 | 13759 | fi |
13760 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13761 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
b7ef8464 | 13762 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13763 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
75d6a0a9 | 13764 | fi |
13765 | fi | |
13766 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13767 | # Extract the first word of "windmc", so it can be a program name with args. | |
13768 | set dummy windmc; ac_word=$2 | |
cd9a469c | 13769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13770 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13771 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
cd9a469c | 13772 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 13773 | else |
13774 | case $WINDMC_FOR_TARGET in | |
13775 | [\\/]* | ?:[\\/]*) | |
13776 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13777 | ;; | |
13778 | *) | |
13779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13780 | for as_dir in $gcc_cv_tool_dirs | |
13781 | do | |
13782 | IFS=$as_save_IFS | |
13783 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13784 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 13786 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13788 | break 2 |
13789 | fi | |
13790 | done | |
cd9a469c | 13791 | done |
13792 | IFS=$as_save_IFS | |
75d6a0a9 | 13793 | |
13794 | ;; | |
13795 | esac | |
13796 | fi | |
13797 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
75d6a0a9 | 13798 | if test -n "$WINDMC_FOR_TARGET"; then |
cd9a469c | 13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13800 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13801 | else |
cd9a469c | 13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13803 | $as_echo "no" >&6; } | |
75d6a0a9 | 13804 | fi |
13805 | ||
cd9a469c | 13806 | |
75d6a0a9 | 13807 | fi |
13808 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13809 | ||
13810 | ||
13811 | if test -n "$WINDMC_FOR_TARGET"; then | |
13812 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13813 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13814 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13815 | fi | |
13816 | ||
13817 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13818 | for ncn_progname in windmc; do | |
13819 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13820 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13822 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13823 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
cd9a469c | 13824 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 13825 | else |
13826 | if test -n "$WINDMC_FOR_TARGET"; then | |
13827 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13828 | else | |
13829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13830 | for as_dir in $PATH | |
13831 | do | |
13832 | IFS=$as_save_IFS | |
13833 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13834 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 13836 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13838 | break 2 |
13839 | fi | |
13840 | done | |
cd9a469c | 13841 | done |
13842 | IFS=$as_save_IFS | |
75d6a0a9 | 13843 | |
13844 | fi | |
13845 | fi | |
13846 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13847 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13849 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13850 | else |
cd9a469c | 13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13852 | $as_echo "no" >&6; } | |
75d6a0a9 | 13853 | fi |
13854 | ||
cd9a469c | 13855 | |
75d6a0a9 | 13856 | done |
13857 | fi | |
13858 | ||
13859 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13860 | for ncn_progname in windmc; do | |
cd9a469c | 13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13862 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13863 | if test -x $with_build_time_tools/${ncn_progname}; then |
13864 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13866 | $as_echo "yes" >&6; } | |
75d6a0a9 | 13867 | break |
13868 | else | |
cd9a469c | 13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13870 | $as_echo "no" >&6; } | |
75d6a0a9 | 13871 | fi |
13872 | done | |
13873 | fi | |
13874 | ||
13875 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13876 | for ncn_progname in windmc; do | |
13877 | if test -n "$ncn_target_tool_prefix"; then | |
13878 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13879 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13881 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13882 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
cd9a469c | 13883 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 13884 | else |
13885 | if test -n "$WINDMC_FOR_TARGET"; then | |
13886 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13887 | else | |
13888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13889 | for as_dir in $PATH | |
13890 | do | |
13891 | IFS=$as_save_IFS | |
13892 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13893 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 13895 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13897 | break 2 |
13898 | fi | |
13899 | done | |
cd9a469c | 13900 | done |
13901 | IFS=$as_save_IFS | |
75d6a0a9 | 13902 | |
13903 | fi | |
13904 | fi | |
13905 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13906 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13908 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13909 | else |
cd9a469c | 13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13911 | $as_echo "no" >&6; } | |
75d6a0a9 | 13912 | fi |
13913 | ||
cd9a469c | 13914 | |
75d6a0a9 | 13915 | fi |
13916 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13917 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13918 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13920 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13921 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
cd9a469c | 13922 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 13923 | else |
13924 | if test -n "$WINDMC_FOR_TARGET"; then | |
13925 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13926 | else | |
13927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13928 | for as_dir in $PATH | |
13929 | do | |
13930 | IFS=$as_save_IFS | |
13931 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13932 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 13934 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13936 | break 2 |
13937 | fi | |
13938 | done | |
cd9a469c | 13939 | done |
13940 | IFS=$as_save_IFS | |
75d6a0a9 | 13941 | |
13942 | fi | |
13943 | fi | |
13944 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13945 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13947 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13948 | else |
cd9a469c | 13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13950 | $as_echo "no" >&6; } | |
75d6a0a9 | 13951 | fi |
13952 | ||
cd9a469c | 13953 | |
75d6a0a9 | 13954 | fi |
13955 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13956 | done | |
13957 | fi | |
13958 | ||
13959 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13960 | set dummy windmc | |
13961 | if test $build = $target ; then | |
13962 | WINDMC_FOR_TARGET="$2" | |
13963 | else | |
13964 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13965 | fi | |
b7ef8464 | 13966 | else |
13967 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
75d6a0a9 | 13968 | fi |
13969 | ||
13970 | else | |
13971 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13972 | fi | |
13973 | ||
13974 | ||
f5aebe3e | 13975 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13976 | ||
cd9a469c | 13977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13978 | $as_echo_n "checking where to find the target ar... " >&6; } | |
f5aebe3e | 13979 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13980 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13981 | # We already found the complete path | |
a6c599b5 | 13982 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13984 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13985 | else |
13986 | # Canadian cross, just use what we found | |
cd9a469c | 13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13988 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13989 | fi |
f5aebe3e | 13990 | else |
13991 | ok=yes | |
13992 | case " ${configdirs} " in | |
13993 | *" binutils "*) ;; | |
13994 | *) ok=no ;; | |
13995 | esac | |
b30fcfae | 13996 | |
f5aebe3e | 13997 | if test $ok = yes; then |
13998 | # An in-tree tool is available and we can use it | |
13999 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
cd9a469c | 14000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14001 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14002 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14003 | # We already found the complete path | |
a6c599b5 | 14004 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14006 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14007 | elif test "x$target" = "x$host"; then |
14008 | # We can use an host tool | |
14009 | AR_FOR_TARGET='$(AR)' | |
cd9a469c | 14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14011 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14012 | else |
14013 | # We need a cross tool | |
cd9a469c | 14014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14015 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14016 | fi |
14017 | fi | |
a83ffacf | 14018 | |
cd9a469c | 14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
14020 | $as_echo_n "checking where to find the target as... " >&6; } | |
f5aebe3e | 14021 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14022 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14023 | # We already found the complete path | |
a6c599b5 | 14024 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14026 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14027 | else |
14028 | # Canadian cross, just use what we found | |
cd9a469c | 14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14030 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14031 | fi |
f5aebe3e | 14032 | else |
14033 | ok=yes | |
14034 | case " ${configdirs} " in | |
14035 | *" gas "*) ;; | |
14036 | *) ok=no ;; | |
14037 | esac | |
b30fcfae | 14038 | |
f5aebe3e | 14039 | if test $ok = yes; then |
14040 | # An in-tree tool is available and we can use it | |
14041 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
cd9a469c | 14042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14043 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14044 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14045 | # We already found the complete path | |
a6c599b5 | 14046 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 14047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14048 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14049 | elif test "x$target" = "x$host"; then |
14050 | # We can use an host tool | |
14051 | AS_FOR_TARGET='$(AS)' | |
cd9a469c | 14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14053 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14054 | else |
14055 | # We need a cross tool | |
cd9a469c | 14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14057 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14058 | fi |
14059 | fi | |
a83ffacf | 14060 | |
cd9a469c | 14061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14062 | $as_echo_n "checking where to find the target cc... " >&6; } | |
f5aebe3e | 14063 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14064 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14065 | # We already found the complete path | |
a6c599b5 | 14066 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 14067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14068 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14069 | else |
14070 | # Canadian cross, just use what we found | |
cd9a469c | 14071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14072 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14073 | fi |
f5aebe3e | 14074 | else |
14075 | ok=yes | |
14076 | case " ${configdirs} " in | |
14077 | *" gcc "*) ;; | |
14078 | *) ok=no ;; | |
14079 | esac | |
b30fcfae | 14080 | |
f5aebe3e | 14081 | if test $ok = yes; then |
14082 | # An in-tree tool is available and we can use it | |
14083 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14085 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14086 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14087 | # We already found the complete path | |
a6c599b5 | 14088 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14090 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14091 | elif test "x$target" = "x$host"; then |
14092 | # We can use an host tool | |
14093 | CC_FOR_TARGET='$(CC)' | |
cd9a469c | 14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14095 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14096 | else |
14097 | # We need a cross tool | |
cd9a469c | 14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14099 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14100 | fi |
14101 | fi | |
a83ffacf | 14102 | |
cd9a469c | 14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14104 | $as_echo_n "checking where to find the target c++... " >&6; } | |
f5aebe3e | 14105 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14106 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14107 | # We already found the complete path | |
a6c599b5 | 14108 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 14109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14110 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14111 | else |
14112 | # Canadian cross, just use what we found | |
cd9a469c | 14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14114 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14115 | fi |
f5aebe3e | 14116 | else |
14117 | ok=yes | |
14118 | case " ${configdirs} " in | |
14119 | *" gcc "*) ;; | |
14120 | *) ok=no ;; | |
14121 | esac | |
14122 | case ,${enable_languages}, in | |
14123 | *,c++,*) ;; | |
14124 | *) ok=no ;; | |
14125 | esac | |
14126 | if test $ok = yes; then | |
14127 | # An in-tree tool is available and we can use it | |
b710ec85 | 14128 | 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' |
cd9a469c | 14129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14130 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14131 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14132 | # We already found the complete path | |
a6c599b5 | 14133 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14135 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14136 | elif test "x$target" = "x$host"; then |
14137 | # We can use an host tool | |
14138 | CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 14139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14140 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14141 | else |
14142 | # We need a cross tool | |
cd9a469c | 14143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14144 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14145 | fi |
14146 | fi | |
a83ffacf | 14147 | |
cd9a469c | 14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14149 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
f5aebe3e | 14150 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14151 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14152 | # We already found the complete path | |
a6c599b5 | 14153 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14155 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14156 | else |
14157 | # Canadian cross, just use what we found | |
cd9a469c | 14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14159 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14160 | fi |
f5aebe3e | 14161 | else |
14162 | ok=yes | |
14163 | case " ${configdirs} " in | |
14164 | *" gcc "*) ;; | |
14165 | *) ok=no ;; | |
14166 | esac | |
14167 | case ,${enable_languages}, in | |
14168 | *,c++,*) ;; | |
14169 | *) ok=no ;; | |
14170 | esac | |
14171 | if test $ok = yes; then | |
14172 | # An in-tree tool is available and we can use it | |
b710ec85 | 14173 | 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' |
cd9a469c | 14174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14175 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14176 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14177 | # We already found the complete path | |
a6c599b5 | 14178 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14180 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14181 | elif test "x$target" = "x$host"; then |
14182 | # We can use an host tool | |
14183 | RAW_CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14185 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14186 | else |
14187 | # We need a cross tool | |
cd9a469c | 14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14189 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14190 | fi |
14191 | fi | |
a83ffacf | 14192 | |
cd9a469c | 14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14194 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
f5aebe3e | 14195 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14196 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14197 | # We already found the complete path | |
a6c599b5 | 14198 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14200 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14201 | else |
14202 | # Canadian cross, just use what we found | |
cd9a469c | 14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14204 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14205 | fi |
f5aebe3e | 14206 | else |
14207 | ok=yes | |
14208 | case " ${configdirs} " in | |
14209 | *" binutils "*) ;; | |
14210 | *) ok=no ;; | |
14211 | esac | |
b30fcfae | 14212 | |
f5aebe3e | 14213 | if test $ok = yes; then |
14214 | # An in-tree tool is available and we can use it | |
14215 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
cd9a469c | 14216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14217 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14218 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14219 | # We already found the complete path | |
a6c599b5 | 14220 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14222 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14223 | elif test "x$target" = "x$host"; then |
14224 | # We can use an host tool | |
14225 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
cd9a469c | 14226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14227 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14228 | else |
14229 | # We need a cross tool | |
cd9a469c | 14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14231 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14232 | fi |
14233 | fi | |
a83ffacf | 14234 | |
cd9a469c | 14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14236 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
f5aebe3e | 14237 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14238 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14239 | # We already found the complete path | |
a6c599b5 | 14240 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14242 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14243 | else |
14244 | # Canadian cross, just use what we found | |
cd9a469c | 14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14246 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14247 | fi |
f5aebe3e | 14248 | else |
14249 | ok=yes | |
14250 | case " ${configdirs} " in | |
14251 | *" gcc "*) ;; | |
14252 | *) ok=no ;; | |
14253 | esac | |
b30fcfae | 14254 | |
f5aebe3e | 14255 | if test $ok = yes; then |
14256 | # An in-tree tool is available and we can use it | |
14257 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14259 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14260 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14261 | # We already found the complete path | |
a6c599b5 | 14262 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14264 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14265 | elif test "x$target" = "x$host"; then |
14266 | # We can use an host tool | |
14267 | GCC_FOR_TARGET='$()' | |
cd9a469c | 14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14269 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14270 | else |
14271 | # We need a cross tool | |
cd9a469c | 14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14273 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14274 | fi |
14275 | fi | |
a83ffacf | 14276 | |
cd9a469c | 14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14278 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
f5aebe3e | 14279 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14280 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14281 | # We already found the complete path | |
a6c599b5 | 14282 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14284 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14285 | else |
14286 | # Canadian cross, just use what we found | |
cd9a469c | 14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14288 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14289 | fi |
f5aebe3e | 14290 | else |
14291 | ok=yes | |
14292 | case " ${configdirs} " in | |
14293 | *" gcc "*) ;; | |
14294 | *) ok=no ;; | |
14295 | esac | |
14296 | case ,${enable_languages}, in | |
14297 | *,fortran,*) ;; | |
14298 | *) ok=no ;; | |
14299 | esac | |
14300 | if test $ok = yes; then | |
14301 | # An in-tree tool is available and we can use it | |
14302 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14304 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14305 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14306 | # We already found the complete path | |
a6c599b5 | 14307 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14309 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14310 | elif test "x$target" = "x$host"; then |
14311 | # We can use an host tool | |
14312 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
cd9a469c | 14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14314 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14315 | else |
14316 | # We need a cross tool | |
cd9a469c | 14317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14318 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14319 | fi |
14320 | fi | |
a83ffacf | 14321 | |
5ff5b630 | 14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14323 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14324 | if test "x${build}" != "x${host}" ; then | |
14325 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14326 | # We already found the complete path | |
14327 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14329 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14330 | else | |
14331 | # Canadian cross, just use what we found | |
14332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14333 | $as_echo "pre-installed" >&6; } | |
14334 | fi | |
14335 | else | |
14336 | ok=yes | |
14337 | case " ${configdirs} " in | |
14338 | *" gcc "*) ;; | |
14339 | *) ok=no ;; | |
14340 | esac | |
14341 | case ,${enable_languages}, in | |
14342 | *,go,*) ;; | |
14343 | *) ok=no ;; | |
14344 | esac | |
14345 | if test $ok = yes; then | |
14346 | # An in-tree tool is available and we can use it | |
14347 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14349 | $as_echo "just compiled" >&6; } | |
14350 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14351 | # We already found the complete path | |
14352 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14354 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14355 | elif test "x$target" = "x$host"; then | |
14356 | # We can use an host tool | |
14357 | GOC_FOR_TARGET='$(GOC)' | |
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14359 | $as_echo "host tool" >&6; } | |
14360 | else | |
14361 | # We need a cross tool | |
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14363 | $as_echo "pre-installed" >&6; } | |
14364 | fi | |
14365 | fi | |
14366 | ||
03385ed3 | 14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
14368 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
14369 | if test "x${build}" != "x${host}" ; then | |
14370 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
14371 | # We already found the complete path | |
14372 | ac_dir=`dirname $GDC_FOR_TARGET` | |
14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14374 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14375 | else | |
14376 | # Canadian cross, just use what we found | |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14378 | $as_echo "pre-installed" >&6; } | |
14379 | fi | |
14380 | else | |
14381 | ok=yes | |
14382 | case " ${configdirs} " in | |
14383 | *" gcc "*) ;; | |
14384 | *) ok=no ;; | |
14385 | esac | |
14386 | case ,${enable_languages}, in | |
14387 | *,d,*) ;; | |
14388 | *) ok=no ;; | |
14389 | esac | |
14390 | if test $ok = yes; then | |
14391 | # An in-tree tool is available and we can use it | |
14392 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
14393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14394 | $as_echo "just compiled" >&6; } | |
14395 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
14396 | # We already found the complete path | |
14397 | ac_dir=`dirname $GDC_FOR_TARGET` | |
14398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14399 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14400 | elif test "x$target" = "x$host"; then | |
14401 | # We can use an host tool | |
14402 | GDC_FOR_TARGET='$(GDC)' | |
14403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14404 | $as_echo "host tool" >&6; } | |
14405 | else | |
14406 | # We need a cross tool | |
14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14408 | $as_echo "pre-installed" >&6; } | |
14409 | fi | |
14410 | fi | |
14411 | ||
cd9a469c | 14412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14413 | $as_echo_n "checking where to find the target ld... " >&6; } | |
f5aebe3e | 14414 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14415 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14416 | # We already found the complete path | |
a6c599b5 | 14417 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14419 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14420 | else |
14421 | # Canadian cross, just use what we found | |
cd9a469c | 14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14423 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14424 | fi |
f5aebe3e | 14425 | else |
14426 | ok=yes | |
14427 | case " ${configdirs} " in | |
14428 | *" ld "*) ;; | |
14429 | *) ok=no ;; | |
14430 | esac | |
b30fcfae | 14431 | |
f5aebe3e | 14432 | if test $ok = yes; then |
14433 | # An in-tree tool is available and we can use it | |
14434 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
cd9a469c | 14435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14436 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14437 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14438 | # We already found the complete path | |
a6c599b5 | 14439 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14441 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14442 | elif test "x$target" = "x$host"; then |
14443 | # We can use an host tool | |
14444 | LD_FOR_TARGET='$(LD)' | |
cd9a469c | 14445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14446 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14447 | else |
14448 | # We need a cross tool | |
cd9a469c | 14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14450 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14451 | fi |
14452 | fi | |
a83ffacf | 14453 | |
cd9a469c | 14454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14455 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
f5aebe3e | 14456 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14457 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14458 | # We already found the complete path | |
a6c599b5 | 14459 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14461 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14462 | else |
14463 | # Canadian cross, just use what we found | |
cd9a469c | 14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14465 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14466 | fi |
f5aebe3e | 14467 | else |
c47832b1 | 14468 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14469 | # We already found the complete path | |
a6c599b5 | 14470 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14472 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14473 | elif test "x$target" = "x$host"; then |
f5aebe3e | 14474 | # We can use an host tool |
14475 | LIPO_FOR_TARGET='$(LIPO)' | |
cd9a469c | 14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14477 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14478 | else |
14479 | # We need a cross tool | |
cd9a469c | 14480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14481 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14482 | fi |
14483 | fi | |
a83ffacf | 14484 | |
cd9a469c | 14485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14486 | $as_echo_n "checking where to find the target nm... " >&6; } | |
f5aebe3e | 14487 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14488 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14489 | # We already found the complete path | |
a6c599b5 | 14490 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14492 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14493 | else |
14494 | # Canadian cross, just use what we found | |
cd9a469c | 14495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14496 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14497 | fi |
f5aebe3e | 14498 | else |
14499 | ok=yes | |
14500 | case " ${configdirs} " in | |
14501 | *" binutils "*) ;; | |
14502 | *) ok=no ;; | |
14503 | esac | |
b30fcfae | 14504 | |
f5aebe3e | 14505 | if test $ok = yes; then |
14506 | # An in-tree tool is available and we can use it | |
14507 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
cd9a469c | 14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14509 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14510 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14511 | # We already found the complete path | |
a6c599b5 | 14512 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14514 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14515 | elif test "x$target" = "x$host"; then |
14516 | # We can use an host tool | |
14517 | NM_FOR_TARGET='$(NM)' | |
cd9a469c | 14518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14519 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14520 | else |
14521 | # We need a cross tool | |
cd9a469c | 14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14523 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14524 | fi |
14525 | fi | |
a83ffacf | 14526 | |
fc740d70 | 14527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14528 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14529 | if test "x${build}" != "x${host}" ; then | |
14530 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14531 | # We already found the complete path | |
14532 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14534 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14535 | else | |
14536 | # Canadian cross, just use what we found | |
14537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14538 | $as_echo "pre-installed" >&6; } | |
14539 | fi | |
14540 | else | |
14541 | ok=yes | |
14542 | case " ${configdirs} " in | |
14543 | *" binutils "*) ;; | |
14544 | *) ok=no ;; | |
14545 | esac | |
14546 | ||
14547 | if test $ok = yes; then | |
14548 | # An in-tree tool is available and we can use it | |
14549 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14551 | $as_echo "just compiled" >&6; } | |
14552 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14553 | # We already found the complete path | |
14554 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14556 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14557 | elif test "x$target" = "x$host"; then | |
14558 | # We can use an host tool | |
9b31ae9c | 14559 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
fc740d70 | 14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14561 | $as_echo "host tool" >&6; } | |
14562 | else | |
14563 | # We need a cross tool | |
14564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14565 | $as_echo "pre-installed" >&6; } | |
14566 | fi | |
14567 | fi | |
14568 | ||
cd9a469c | 14569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14570 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
f5aebe3e | 14571 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14572 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14573 | # We already found the complete path | |
a6c599b5 | 14574 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14576 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14577 | else |
14578 | # Canadian cross, just use what we found | |
cd9a469c | 14579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14580 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14581 | fi |
f5aebe3e | 14582 | else |
14583 | ok=yes | |
14584 | case " ${configdirs} " in | |
14585 | *" binutils "*) ;; | |
14586 | *) ok=no ;; | |
14587 | esac | |
b30fcfae | 14588 | |
f5aebe3e | 14589 | if test $ok = yes; then |
14590 | # An in-tree tool is available and we can use it | |
14591 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
cd9a469c | 14592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14593 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14594 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14595 | # We already found the complete path | |
a6c599b5 | 14596 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14598 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14599 | elif test "x$target" = "x$host"; then |
14600 | # We can use an host tool | |
14601 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
cd9a469c | 14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14603 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14604 | else |
14605 | # We need a cross tool | |
cd9a469c | 14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14607 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14608 | fi |
14609 | fi | |
a83ffacf | 14610 | |
cd9a469c | 14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14612 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
f5aebe3e | 14613 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14614 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14615 | # We already found the complete path | |
a6c599b5 | 14616 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 14617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14618 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14619 | else |
14620 | # Canadian cross, just use what we found | |
cd9a469c | 14621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14622 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14623 | fi |
f5aebe3e | 14624 | else |
14625 | ok=yes | |
14626 | case " ${configdirs} " in | |
14627 | *" binutils "*) ;; | |
14628 | *) ok=no ;; | |
14629 | esac | |
b30fcfae | 14630 | |
f5aebe3e | 14631 | if test $ok = yes; then |
14632 | # An in-tree tool is available and we can use it | |
14633 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
cd9a469c | 14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14635 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14636 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14637 | # We already found the complete path | |
a6c599b5 | 14638 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14640 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14641 | elif test "x$target" = "x$host"; then |
14642 | # We can use an host tool | |
14643 | RANLIB_FOR_TARGET='$(RANLIB)' | |
cd9a469c | 14644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14645 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14646 | else |
14647 | # We need a cross tool | |
cd9a469c | 14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14649 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14650 | fi |
14651 | fi | |
a83ffacf | 14652 | |
3f71364d | 14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14654 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14655 | if test "x${build}" != "x${host}" ; then | |
14656 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14657 | # We already found the complete path | |
14658 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14660 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14661 | else | |
14662 | # Canadian cross, just use what we found | |
14663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14664 | $as_echo "pre-installed" >&6; } | |
14665 | fi | |
14666 | else | |
14667 | ok=yes | |
14668 | case " ${configdirs} " in | |
14669 | *" binutils "*) ;; | |
14670 | *) ok=no ;; | |
14671 | esac | |
14672 | ||
14673 | if test $ok = yes; then | |
14674 | # An in-tree tool is available and we can use it | |
14675 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14677 | $as_echo "just compiled" >&6; } | |
14678 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14679 | # We already found the complete path | |
14680 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14682 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14683 | elif test "x$target" = "x$host"; then | |
14684 | # We can use an host tool | |
14685 | READELF_FOR_TARGET='$(READELF)' | |
14686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14687 | $as_echo "host tool" >&6; } | |
14688 | else | |
14689 | # We need a cross tool | |
14690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14691 | $as_echo "pre-installed" >&6; } | |
14692 | fi | |
14693 | fi | |
14694 | ||
cd9a469c | 14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14696 | $as_echo_n "checking where to find the target strip... " >&6; } | |
f5aebe3e | 14697 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14698 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14699 | # We already found the complete path | |
a6c599b5 | 14700 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 14701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14702 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14703 | else |
14704 | # Canadian cross, just use what we found | |
cd9a469c | 14705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14706 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14707 | fi |
f5aebe3e | 14708 | else |
14709 | ok=yes | |
14710 | case " ${configdirs} " in | |
14711 | *" binutils "*) ;; | |
14712 | *) ok=no ;; | |
14713 | esac | |
b30fcfae | 14714 | |
f5aebe3e | 14715 | if test $ok = yes; then |
14716 | # An in-tree tool is available and we can use it | |
2b7a4d59 | 14717 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
cd9a469c | 14718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14719 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14720 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14721 | # We already found the complete path | |
a6c599b5 | 14722 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 14723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14724 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14725 | elif test "x$target" = "x$host"; then |
14726 | # We can use an host tool | |
14727 | STRIP_FOR_TARGET='$(STRIP)' | |
cd9a469c | 14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14729 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14730 | else |
14731 | # We need a cross tool | |
cd9a469c | 14732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14733 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14734 | fi |
14735 | fi | |
a83ffacf | 14736 | |
cd9a469c | 14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14738 | $as_echo_n "checking where to find the target windres... " >&6; } | |
f5aebe3e | 14739 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14740 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14741 | # We already found the complete path | |
a6c599b5 | 14742 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 14743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14744 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14745 | else |
14746 | # Canadian cross, just use what we found | |
cd9a469c | 14747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14748 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14749 | fi |
f5aebe3e | 14750 | else |
14751 | ok=yes | |
14752 | case " ${configdirs} " in | |
14753 | *" binutils "*) ;; | |
14754 | *) ok=no ;; | |
14755 | esac | |
b30fcfae | 14756 | |
f5aebe3e | 14757 | if test $ok = yes; then |
14758 | # An in-tree tool is available and we can use it | |
14759 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
cd9a469c | 14760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14761 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14762 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14763 | # We already found the complete path | |
a6c599b5 | 14764 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14766 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14767 | elif test "x$target" = "x$host"; then |
14768 | # We can use an host tool | |
14769 | WINDRES_FOR_TARGET='$(WINDRES)' | |
cd9a469c | 14770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14771 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14772 | else |
14773 | # We need a cross tool | |
cd9a469c | 14774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14775 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14776 | fi |
71ab34df | 14777 | fi |
49aae208 | 14778 | |
cd9a469c | 14779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14780 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
75d6a0a9 | 14781 | if test "x${build}" != "x${host}" ; then |
14782 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14783 | # We already found the complete path | |
14784 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 14785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14786 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 14787 | else |
14788 | # Canadian cross, just use what we found | |
cd9a469c | 14789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14790 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 14791 | fi |
14792 | else | |
14793 | ok=yes | |
14794 | case " ${configdirs} " in | |
14795 | *" binutils "*) ;; | |
14796 | *) ok=no ;; | |
14797 | esac | |
14798 | ||
14799 | if test $ok = yes; then | |
14800 | # An in-tree tool is available and we can use it | |
14801 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
cd9a469c | 14802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14803 | $as_echo "just compiled" >&6; } | |
75d6a0a9 | 14804 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14805 | # We already found the complete path | |
14806 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14808 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 14809 | elif test "x$target" = "x$host"; then |
14810 | # We can use an host tool | |
14811 | WINDMC_FOR_TARGET='$(WINDMC)' | |
cd9a469c | 14812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14813 | $as_echo "host tool" >&6; } | |
75d6a0a9 | 14814 | else |
14815 | # We need a cross tool | |
cd9a469c | 14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14817 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 14818 | fi |
14819 | fi | |
14820 | ||
49aae208 | 14821 | |
14822 | ||
f5aebe3e | 14823 | |
a83ffacf | 14824 | |
71ab34df | 14825 | # Certain tools may need extra flags. |
14826 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14827 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14828 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14829 | ||
f5aebe3e | 14830 | # When building target libraries, except in a Canadian cross, we use |
14831 | # the same toolchain as the compiler we just built. | |
14832 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14833 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14834 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14835 | if test $host = $build; then | |
14836 | case " $configdirs " in | |
14837 | *" gcc "*) | |
14838 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14839 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14840 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14841 | ;; | |
14842 | esac | |
14843 | fi | |
14844 | ||
14845 | ||
14846 | ||
14847 | ||
14848 | ||
cd9a469c | 14849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14850 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14851 | # Check whether --enable-maintainer-mode was given. | |
14852 | if test "${enable_maintainer_mode+set}" = set; then : | |
14853 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3290c0cf | 14854 | else |
14855 | USE_MAINTAINER_MODE=no | |
cd9a469c | 14856 | fi |
14857 | ||
14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14859 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3290c0cf | 14860 | |
14861 | ||
14862 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14863 | MAINTAINER_MODE_TRUE= | |
14864 | MAINTAINER_MODE_FALSE='#' | |
14865 | else | |
14866 | MAINTAINER_MODE_TRUE='#' | |
14867 | MAINTAINER_MODE_FALSE= | |
b30fcfae | 14868 | fi |
3290c0cf | 14869 | MAINT=$MAINTAINER_MODE_TRUE |
14870 | ||
2d64c2fd | 14871 | # --------------------- |
14872 | # GCC bootstrap support | |
14873 | # --------------------- | |
14874 | ||
14875 | # Stage specific cflags for build. | |
14876 | stage1_cflags="-g" | |
14877 | case $build in | |
14878 | vax-*-*) | |
14879 | case ${GCC} in | |
14880 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14881 | *) stage1_cflags="-g -J" ;; | |
14882 | esac ;; | |
2d64c2fd | 14883 | esac |
14884 | ||
f508ba97 | 14885 | |
2d64c2fd | 14886 | |
39f34cfc | 14887 | # Enable --enable-checking in stage1 of the compiler. |
cd9a469c | 14888 | # Check whether --enable-stage1-checking was given. |
14889 | if test "${enable_stage1_checking+set}" = set; then : | |
14890 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
39f34cfc | 14891 | else |
f6be6a96 | 14892 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
868af6b6 | 14893 | # For --disable-checking or implicit --enable-checking=release, avoid |
14894 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14895 | # bootstraps. See PR62077. | |
868af6b6 | 14896 | case $BUILD_CONFIG in |
14897 | *lto*) | |
c05979a1 | 14898 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14899 | *) | |
14900 | stage1_checking=--enable-checking=yes,types;; | |
868af6b6 | 14901 | esac |
c05979a1 | 14902 | if test "x$enable_checking" = x && \ |
14903 | test -d ${srcdir}/gcc && \ | |
14904 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
bee4f5e5 | 14905 | stage1_checking=--enable-checking=yes,types,extra |
c05979a1 | 14906 | fi |
39f34cfc | 14907 | else |
f6be6a96 | 14908 | stage1_checking=--enable-checking=$enable_checking,types |
39f34cfc | 14909 | fi |
cd9a469c | 14910 | fi |
39f34cfc | 14911 | |
14912 | ||
5084f823 | 14913 | |
cd9a469c | 14914 | # Enable -Werror in bootstrap stage2 and later. |
14915 | # Check whether --enable-werror was given. | |
14916 | if test "${enable_werror+set}" = set; then : | |
14917 | enableval=$enable_werror; | |
c0c5068d | 14918 | case ${enable_werror} in |
14919 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14920 | *) stage2_werror_flag="" ;; | |
2d64c2fd | 14921 | esac |
14922 | ||
5362e31e | 14923 | else |
14924 | ||
14b6abc7 | 14925 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
14926 | case $BUILD_CONFIG in | |
14927 | bootstrap-debug) | |
14928 | stage2_werror_flag="--enable-werror-always" ;; | |
14929 | "") | |
14930 | stage2_werror_flag="--enable-werror-always" ;; | |
14931 | esac | |
14932 | fi | |
14933 | ||
5362e31e | 14934 | fi |
14935 | ||
14936 | ||
14b6abc7 | 14937 | |
2d64c2fd | 14938 | |
6fe86052 | 14939 | # Specify what files to not compare during bootstrap. |
14940 | ||
14941 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14942 | case "$target" in | |
14943 | hppa*64*-*-hpux*) ;; | |
43bbe3ea | 14944 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
62f0972f | 14945 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
6fe86052 | 14946 | esac |
14947 | ||
14948 | ||
cd9a469c | 14949 | ac_config_files="$ac_config_files Makefile" |
14950 | ||
b30fcfae | 14951 | cat >confcache <<\_ACEOF |
71ab34df | 14952 | # This file is a shell script that caches the results of configure |
14953 | # tests run on this system so they can be shared between configure | |
b30fcfae | 14954 | # scripts and configure runs, see configure's option --config-cache. |
14955 | # It is not useful on other systems. If it contains results you don't | |
14956 | # want to keep, you may remove or edit it. | |
71ab34df | 14957 | # |
b30fcfae | 14958 | # config.status only pays attention to the cache file if you give it |
14959 | # the --recheck option to rerun configure. | |
71ab34df | 14960 | # |
b30fcfae | 14961 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14962 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14963 | # following values. | |
14964 | ||
14965 | _ACEOF | |
14966 | ||
71ab34df | 14967 | # The following way of writing the cache mishandles newlines in values, |
14968 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 14969 | # So, we kill variables containing newlines. |
71ab34df | 14970 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14971 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 14972 | ( |
14973 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14974 | eval ac_val=\$$ac_var | |
14975 | case $ac_val in #( | |
14976 | *${as_nl}*) | |
14977 | case $ac_var in #( | |
14978 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14979 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14980 | esac | |
14981 | case $ac_var in #( | |
14982 | _ | IFS | as_nl) ;; #( | |
14983 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14984 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14985 | esac ;; | |
14986 | esac | |
14987 | done | |
14988 | ||
b30fcfae | 14989 | (set) 2>&1 | |
cd9a469c | 14990 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14991 | *${as_nl}ac_space=\ *) | |
14992 | # `set' does not quote correctly, so add quotes: double-quote | |
14993 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b30fcfae | 14994 | sed -n \ |
14995 | "s/'/'\\\\''/g; | |
14996 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 14997 | ;; #( |
b30fcfae | 14998 | *) |
14999 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 15000 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 15001 | ;; |
cd9a469c | 15002 | esac | |
15003 | sort | |
15004 | ) | | |
b30fcfae | 15005 | sed ' |
cd9a469c | 15006 | /^ac_cv_env_/b end |
b30fcfae | 15007 | t clear |
cd9a469c | 15008 | :clear |
b30fcfae | 15009 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15010 | t end | |
cd9a469c | 15011 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15012 | :end' >>confcache | |
15013 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15014 | if test -w "$cache_file"; then | |
f00f02a3 | 15015 | if test "x$cache_file" != "x/dev/null"; then |
cd9a469c | 15016 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15017 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f00f02a3 | 15018 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15019 | cat confcache >"$cache_file" | |
15020 | else | |
15021 | case $cache_file in #( | |
15022 | */* | ?:*) | |
15023 | mv -f confcache "$cache_file"$$ && | |
15024 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15025 | *) | |
15026 | mv -f confcache "$cache_file" ;; | |
15027 | esac | |
15028 | fi | |
15029 | fi | |
71ab34df | 15030 | else |
cd9a469c | 15031 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15032 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
71ab34df | 15033 | fi |
805e22b2 | 15034 | fi |
71ab34df | 15035 | rm -f confcache |
a8298541 | 15036 | |
71ab34df | 15037 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15038 | # Let make expand exec_prefix. | |
15039 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
92424a17 | 15040 | |
71ab34df | 15041 | # Transform confdefs.h into DEFS. |
15042 | # Protect against shell expansion while executing Makefile rules. | |
15043 | # Protect against Makefile macro expansion. | |
b30fcfae | 15044 | # |
15045 | # If the first sed substitution is executed (which looks for macros that | |
cd9a469c | 15046 | # take arguments), then branch to the quote section. Otherwise, |
b30fcfae | 15047 | # look for a macro that doesn't take arguments. |
cd9a469c | 15048 | ac_script=' |
15049 | :mline | |
15050 | /\\$/{ | |
15051 | N | |
15052 | s,\\\n,, | |
15053 | b mline | |
15054 | } | |
b30fcfae | 15055 | t clear |
cd9a469c | 15056 | :clear |
15057 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b30fcfae | 15058 | t quote |
cd9a469c | 15059 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b30fcfae | 15060 | t quote |
cd9a469c | 15061 | b any |
15062 | :quote | |
15063 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15064 | s/\[/\\&/g | |
15065 | s/\]/\\&/g | |
15066 | s/\$/$$/g | |
15067 | H | |
15068 | :any | |
15069 | ${ | |
15070 | g | |
15071 | s/^\n// | |
15072 | s/\n/ /g | |
15073 | p | |
15074 | } | |
15075 | ' | |
15076 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b30fcfae | 15077 | |
15078 | ||
15079 | ac_libobjs= | |
15080 | ac_ltlibobjs= | |
f00f02a3 | 15081 | U= |
b30fcfae | 15082 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15083 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 15084 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15085 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15086 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15087 | # will be set to the directory where LIBOBJS objects are built. | |
15088 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15089 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b30fcfae | 15090 | done |
15091 | LIBOBJS=$ac_libobjs | |
a4af6a58 | 15092 | |
b30fcfae | 15093 | LTLIBOBJS=$ac_ltlibobjs |
a83ffacf | 15094 | |
ae48753c | 15095 | |
b30fcfae | 15096 | |
f00f02a3 | 15097 | : "${CONFIG_STATUS=./config.status}" |
cd9a469c | 15098 | ac_write_fail=0 |
b30fcfae | 15099 | ac_clean_files_save=$ac_clean_files |
15100 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 15101 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15102 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15103 | as_write_fail=0 | |
15104 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b30fcfae | 15105 | #! $SHELL |
15106 | # Generated by $as_me. | |
71ab34df | 15107 | # Run this file to recreate the current configuration. |
71ab34df | 15108 | # Compiler output produced by configure, useful for debugging |
b30fcfae | 15109 | # configure, is in config.log if it exists. |
a83ffacf | 15110 | |
b30fcfae | 15111 | debug=false |
15112 | ac_cs_recheck=false | |
15113 | ac_cs_silent=false | |
b30fcfae | 15114 | |
cd9a469c | 15115 | SHELL=\${CONFIG_SHELL-$SHELL} |
15116 | export SHELL | |
15117 | _ASEOF | |
15118 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15119 | ## -------------------- ## | |
15120 | ## M4sh Initialization. ## | |
15121 | ## -------------------- ## | |
15122 | ||
15123 | # Be more Bourne compatible | |
15124 | DUALCASE=1; export DUALCASE # for MKS sh | |
15125 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b30fcfae | 15126 | emulate sh |
15127 | NULLCMD=: | |
cd9a469c | 15128 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 15129 | # is contrary to our usage. Disable this feature. |
15130 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 15131 | setopt NO_GLOB_SUBST |
15132 | else | |
15133 | case `(set -o) 2>/dev/null` in #( | |
15134 | *posix*) : | |
15135 | set -o posix ;; #( | |
15136 | *) : | |
15137 | ;; | |
15138 | esac | |
b30fcfae | 15139 | fi |
b30fcfae | 15140 | |
cd9a469c | 15141 | |
15142 | as_nl=' | |
15143 | ' | |
15144 | export as_nl | |
15145 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15146 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15147 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15148 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15149 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15150 | # but without wasting forks for bash or zsh. | |
15151 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15152 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15153 | as_echo='print -r --' | |
15154 | as_echo_n='print -rn --' | |
15155 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15156 | as_echo='printf %s\n' | |
15157 | as_echo_n='printf %s' | |
15158 | else | |
15159 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15160 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15161 | as_echo_n='/usr/ucb/echo -n' | |
15162 | else | |
15163 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15164 | as_echo_n_body='eval | |
15165 | arg=$1; | |
15166 | case $arg in #( | |
15167 | *"$as_nl"*) | |
15168 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15169 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15170 | esac; | |
15171 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15172 | ' | |
15173 | export as_echo_n_body | |
15174 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15175 | fi | |
15176 | export as_echo_body | |
15177 | as_echo='sh -c $as_echo_body as_echo' | |
b30fcfae | 15178 | fi |
15179 | ||
cd9a469c | 15180 | # The user is always right. |
15181 | if test "${PATH_SEPARATOR+set}" != set; then | |
15182 | PATH_SEPARATOR=: | |
15183 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15184 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15185 | PATH_SEPARATOR=';' | |
15186 | } | |
15187 | fi | |
15188 | ||
15189 | ||
15190 | # IFS | |
15191 | # We need space, tab and new line, in precisely that order. Quoting is | |
15192 | # there to prevent editors from complaining about space-tab. | |
15193 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15194 | # splitting by setting IFS to empty value.) | |
15195 | IFS=" "" $as_nl" | |
15196 | ||
15197 | # Find who we are. Look in the path if we contain no directory separator. | |
f00f02a3 | 15198 | as_myself= |
cd9a469c | 15199 | case $0 in #(( |
15200 | *[\\/]* ) as_myself=$0 ;; | |
15201 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15202 | for as_dir in $PATH | |
15203 | do | |
15204 | IFS=$as_save_IFS | |
15205 | test -z "$as_dir" && as_dir=. | |
15206 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15207 | done | |
15208 | IFS=$as_save_IFS | |
15209 | ||
15210 | ;; | |
15211 | esac | |
15212 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15213 | # in which case we are not to be found in the path. | |
15214 | if test "x$as_myself" = x; then | |
15215 | as_myself=$0 | |
15216 | fi | |
15217 | if test ! -f "$as_myself"; then | |
15218 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15219 | exit 1 | |
15220 | fi | |
b30fcfae | 15221 | |
cd9a469c | 15222 | # Unset variables that we do not need and which cause bugs (e.g. in |
15223 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15224 | # suppresses any "Segmentation fault" message there. '((' could | |
15225 | # trigger a bug in pdksh 5.2.14. | |
15226 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15227 | do eval test x\${$as_var+set} = xset \ | |
15228 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15229 | done | |
b30fcfae | 15230 | PS1='$ ' |
15231 | PS2='> ' | |
15232 | PS4='+ ' | |
15233 | ||
15234 | # NLS nuisances. | |
cd9a469c | 15235 | LC_ALL=C |
15236 | export LC_ALL | |
15237 | LANGUAGE=C | |
15238 | export LANGUAGE | |
15239 | ||
15240 | # CDPATH. | |
15241 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15242 | ||
15243 | ||
f00f02a3 | 15244 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15245 | # ---------------------------------------- | |
cd9a469c | 15246 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15247 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
f00f02a3 | 15248 | # script with STATUS, using 1 if that was 0. |
cd9a469c | 15249 | as_fn_error () |
15250 | { | |
f00f02a3 | 15251 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15252 | if test "$4"; then | |
15253 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15254 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b30fcfae | 15255 | fi |
f00f02a3 | 15256 | $as_echo "$as_me: error: $2" >&2 |
cd9a469c | 15257 | as_fn_exit $as_status |
15258 | } # as_fn_error | |
15259 | ||
15260 | ||
15261 | # as_fn_set_status STATUS | |
15262 | # ----------------------- | |
15263 | # Set $? to STATUS, without forking. | |
15264 | as_fn_set_status () | |
15265 | { | |
15266 | return $1 | |
15267 | } # as_fn_set_status | |
15268 | ||
15269 | # as_fn_exit STATUS | |
15270 | # ----------------- | |
15271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15272 | as_fn_exit () | |
15273 | { | |
15274 | set +e | |
15275 | as_fn_set_status $1 | |
15276 | exit $1 | |
15277 | } # as_fn_exit | |
15278 | ||
15279 | # as_fn_unset VAR | |
15280 | # --------------- | |
15281 | # Portably unset VAR. | |
15282 | as_fn_unset () | |
15283 | { | |
15284 | { eval $1=; unset $1;} | |
15285 | } | |
15286 | as_unset=as_fn_unset | |
15287 | # as_fn_append VAR VALUE | |
15288 | # ---------------------- | |
15289 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15290 | # advantage of any shell optimizations that allow amortized linear growth over | |
15291 | # repeated appends, instead of the typical quadratic growth present in naive | |
15292 | # implementations. | |
15293 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15294 | eval 'as_fn_append () | |
15295 | { | |
15296 | eval $1+=\$2 | |
15297 | }' | |
15298 | else | |
15299 | as_fn_append () | |
15300 | { | |
15301 | eval $1=\$$1\$2 | |
15302 | } | |
15303 | fi # as_fn_append | |
15304 | ||
15305 | # as_fn_arith ARG... | |
15306 | # ------------------ | |
15307 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15308 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15309 | # must be portable across $(()) and expr. | |
15310 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15311 | eval 'as_fn_arith () | |
15312 | { | |
15313 | as_val=$(( $* )) | |
15314 | }' | |
15315 | else | |
15316 | as_fn_arith () | |
15317 | { | |
15318 | as_val=`expr "$@" || test $? -eq 1` | |
15319 | } | |
15320 | fi # as_fn_arith | |
15321 | ||
b30fcfae | 15322 | |
cd9a469c | 15323 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15324 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b30fcfae | 15325 | as_expr=expr |
15326 | else | |
15327 | as_expr=false | |
15328 | fi | |
15329 | ||
cd9a469c | 15330 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 15331 | as_basename=basename |
15332 | else | |
15333 | as_basename=false | |
15334 | fi | |
15335 | ||
cd9a469c | 15336 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15337 | as_dirname=dirname | |
15338 | else | |
15339 | as_dirname=false | |
15340 | fi | |
b30fcfae | 15341 | |
cd9a469c | 15342 | as_me=`$as_basename -- "$0" || |
b30fcfae | 15343 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15344 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 15345 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15346 | $as_echo X/"$0" | | |
15347 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15348 | s//\1/ | |
15349 | q | |
15350 | } | |
15351 | /^X\/\(\/\/\)$/{ | |
15352 | s//\1/ | |
15353 | q | |
15354 | } | |
15355 | /^X\/\(\/\).*/{ | |
15356 | s//\1/ | |
15357 | q | |
15358 | } | |
15359 | s/.*/./; q'` | |
5084f823 | 15360 | |
5084f823 | 15361 | # Avoid depending upon Character Ranges. |
15362 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15363 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15364 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15365 | as_cr_digits='0123456789' | |
15366 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15367 | ||
cd9a469c | 15368 | ECHO_C= ECHO_N= ECHO_T= |
15369 | case `echo -n x` in #((((( | |
15370 | -n*) | |
15371 | case `echo 'xy\c'` in | |
15372 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15373 | xy) ECHO_C='\c';; | |
15374 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15375 | ECHO_T=' ';; | |
15376 | esac;; | |
15377 | *) | |
15378 | ECHO_N='-n';; | |
b30fcfae | 15379 | esac |
15380 | ||
cd9a469c | 15381 | rm -f conf$$ conf$$.exe conf$$.file |
15382 | if test -d conf$$.dir; then | |
15383 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 15384 | else |
cd9a469c | 15385 | rm -f conf$$.dir |
15386 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 15387 | fi |
cd9a469c | 15388 | if (echo >conf$$.file) 2>/dev/null; then |
15389 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 15390 | as_ln_s='ln -s' |
cd9a469c | 15391 | # ... but there are two gotchas: |
15392 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15393 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f00f02a3 | 15394 | # In both cases, we have to default to `cp -pR'. |
cd9a469c | 15395 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 15396 | as_ln_s='cp -pR' |
cd9a469c | 15397 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15398 | as_ln_s=ln | |
15399 | else | |
f00f02a3 | 15400 | as_ln_s='cp -pR' |
5084f823 | 15401 | fi |
b30fcfae | 15402 | else |
f00f02a3 | 15403 | as_ln_s='cp -pR' |
b30fcfae | 15404 | fi |
cd9a469c | 15405 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15406 | rmdir conf$$.dir 2>/dev/null | |
15407 | ||
15408 | ||
15409 | # as_fn_mkdir_p | |
15410 | # ------------- | |
15411 | # Create "$as_dir" as a directory, including parents if necessary. | |
15412 | as_fn_mkdir_p () | |
15413 | { | |
15414 | ||
15415 | case $as_dir in #( | |
15416 | -*) as_dir=./$as_dir;; | |
15417 | esac | |
15418 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15419 | as_dirs= | |
15420 | while :; do | |
15421 | case $as_dir in #( | |
15422 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15423 | *) as_qdir=$as_dir;; | |
15424 | esac | |
15425 | as_dirs="'$as_qdir' $as_dirs" | |
15426 | as_dir=`$as_dirname -- "$as_dir" || | |
15427 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15428 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15429 | X"$as_dir" : 'X\(//\)$' \| \ | |
15430 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15431 | $as_echo X"$as_dir" | | |
15432 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15433 | s//\1/ | |
15434 | q | |
15435 | } | |
15436 | /^X\(\/\/\)[^/].*/{ | |
15437 | s//\1/ | |
15438 | q | |
15439 | } | |
15440 | /^X\(\/\/\)$/{ | |
15441 | s//\1/ | |
15442 | q | |
15443 | } | |
15444 | /^X\(\/\).*/{ | |
15445 | s//\1/ | |
15446 | q | |
15447 | } | |
15448 | s/.*/./; q'` | |
15449 | test -d "$as_dir" && break | |
15450 | done | |
15451 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
f00f02a3 | 15452 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
cd9a469c | 15453 | |
b30fcfae | 15454 | |
cd9a469c | 15455 | } # as_fn_mkdir_p |
b30fcfae | 15456 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 15457 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 15458 | else |
15459 | test -d ./-p && rmdir ./-p | |
15460 | as_mkdir_p=false | |
15461 | fi | |
15462 | ||
f00f02a3 | 15463 | |
15464 | # as_fn_executable_p FILE | |
15465 | # ----------------------- | |
15466 | # Test if FILE is an executable regular file. | |
15467 | as_fn_executable_p () | |
15468 | { | |
15469 | test -f "$1" && test -x "$1" | |
15470 | } # as_fn_executable_p | |
15471 | as_test_x='test -x' | |
15472 | as_executable_p=as_fn_executable_p | |
b30fcfae | 15473 | |
15474 | # Sed expression to map a string onto a valid CPP name. | |
15475 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15476 | ||
15477 | # Sed expression to map a string onto a valid variable name. | |
15478 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15479 | ||
15480 | ||
b30fcfae | 15481 | exec 6>&1 |
cd9a469c | 15482 | ## ----------------------------------- ## |
15483 | ## Main body of $CONFIG_STATUS script. ## | |
15484 | ## ----------------------------------- ## | |
15485 | _ASEOF | |
15486 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15487 | ||
15488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15489 | # Save the log message, to keep $0 and so on meaningful, and to | |
b30fcfae | 15490 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 15491 | # values after options handling. |
15492 | ac_log=" | |
b30fcfae | 15493 | This file was extended by $as_me, which was |
f00f02a3 | 15494 | generated by GNU Autoconf 2.69. Invocation command line was |
b30fcfae | 15495 | |
15496 | CONFIG_FILES = $CONFIG_FILES | |
15497 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15498 | CONFIG_LINKS = $CONFIG_LINKS | |
15499 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15500 | $ $0 $@ | |
15501 | ||
cd9a469c | 15502 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15503 | " | |
15504 | ||
b30fcfae | 15505 | _ACEOF |
15506 | ||
cd9a469c | 15507 | case $ac_config_files in *" |
15508 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15509 | esac | |
b30fcfae | 15510 | |
5084f823 | 15511 | |
5084f823 | 15512 | |
cd9a469c | 15513 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15514 | # Files that config.status was made for. | |
15515 | config_files="$ac_config_files" | |
b30fcfae | 15516 | |
cd9a469c | 15517 | _ACEOF |
5084f823 | 15518 | |
cd9a469c | 15519 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 15520 | ac_cs_usage="\ |
cd9a469c | 15521 | \`$as_me' instantiates files and other configuration actions |
15522 | from templates according to the current configuration. Unless the files | |
15523 | and actions are specified as TAGs, all are instantiated by default. | |
b30fcfae | 15524 | |
cd9a469c | 15525 | Usage: $0 [OPTION]... [TAG]... |
b30fcfae | 15526 | |
15527 | -h, --help print this help, then exit | |
cd9a469c | 15528 | -V, --version print version number and configuration settings, then exit |
f00f02a3 | 15529 | --config print configuration, then exit |
cd9a469c | 15530 | -q, --quiet, --silent |
15531 | do not print progress messages | |
b30fcfae | 15532 | -d, --debug don't remove temporary files |
15533 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 15534 | --file=FILE[:TEMPLATE] |
15535 | instantiate the configuration file FILE | |
b30fcfae | 15536 | |
15537 | Configuration files: | |
15538 | $config_files | |
15539 | ||
cd9a469c | 15540 | Report bugs to the package provider." |
5084f823 | 15541 | |
cd9a469c | 15542 | _ACEOF |
15543 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 15544 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b30fcfae | 15545 | ac_cs_version="\\ |
15546 | config.status | |
f00f02a3 | 15547 | configured by $0, generated by GNU Autoconf 2.69, |
15548 | with options \\"\$ac_cs_config\\" | |
b30fcfae | 15549 | |
f00f02a3 | 15550 | Copyright (C) 2012 Free Software Foundation, Inc. |
b30fcfae | 15551 | This config.status script is free software; the Free Software Foundation |
15552 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 15553 | |
15554 | ac_pwd='$ac_pwd' | |
15555 | srcdir='$srcdir' | |
15556 | INSTALL='$INSTALL' | |
b181f265 | 15557 | AWK='$AWK' |
cd9a469c | 15558 | test -n "\$AWK" || AWK=awk |
b30fcfae | 15559 | _ACEOF |
15560 | ||
cd9a469c | 15561 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15562 | # The default lists apply if the user does not specify any file. | |
b30fcfae | 15563 | ac_need_defaults=: |
15564 | while test $# != 0 | |
b1660f25 | 15565 | do |
b30fcfae | 15566 | case $1 in |
f00f02a3 | 15567 | --*=?*) |
cd9a469c | 15568 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15569 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b30fcfae | 15570 | ac_shift=: |
15571 | ;; | |
f00f02a3 | 15572 | --*=) |
15573 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15574 | ac_optarg= | |
15575 | ac_shift=: | |
15576 | ;; | |
cd9a469c | 15577 | *) |
b30fcfae | 15578 | ac_option=$1 |
15579 | ac_optarg=$2 | |
15580 | ac_shift=shift | |
15581 | ;; | |
b30fcfae | 15582 | esac |
15583 | ||
15584 | case $ac_option in | |
15585 | # Handling of the options. | |
71ab34df | 15586 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b30fcfae | 15587 | ac_cs_recheck=: ;; |
cd9a469c | 15588 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15589 | $as_echo "$ac_cs_version"; exit ;; | |
f00f02a3 | 15590 | --config | --confi | --conf | --con | --co | --c ) |
15591 | $as_echo "$ac_cs_config"; exit ;; | |
cd9a469c | 15592 | --debug | --debu | --deb | --de | --d | -d ) |
b30fcfae | 15593 | debug=: ;; |
15594 | --file | --fil | --fi | --f ) | |
15595 | $ac_shift | |
cd9a469c | 15596 | case $ac_optarg in |
15597 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
f00f02a3 | 15598 | '') as_fn_error $? "missing file argument" ;; |
cd9a469c | 15599 | esac |
15600 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
5084f823 | 15601 | ac_need_defaults=false;; |
cd9a469c | 15602 | --he | --h | --help | --hel | -h ) |
15603 | $as_echo "$ac_cs_usage"; exit ;; | |
b30fcfae | 15604 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15605 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15606 | ac_cs_silent=: ;; | |
15607 | ||
15608 | # This is an error. | |
f00f02a3 | 15609 | -*) as_fn_error $? "unrecognized option: \`$1' |
cd9a469c | 15610 | Try \`$0 --help' for more information." ;; |
b30fcfae | 15611 | |
cd9a469c | 15612 | *) as_fn_append ac_config_targets " $1" |
15613 | ac_need_defaults=false ;; | |
b30fcfae | 15614 | |
a83ffacf | 15615 | esac |
b30fcfae | 15616 | shift |
a83ffacf | 15617 | done |
15618 | ||
b30fcfae | 15619 | ac_configure_extra_args= |
a83ffacf | 15620 | |
b30fcfae | 15621 | if $ac_cs_silent; then |
15622 | exec 6>/dev/null | |
15623 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15624 | fi | |
a83ffacf | 15625 | |
b30fcfae | 15626 | _ACEOF |
cd9a469c | 15627 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b30fcfae | 15628 | if \$ac_cs_recheck; then |
f00f02a3 | 15629 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
cd9a469c | 15630 | shift |
15631 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15632 | CONFIG_SHELL='$SHELL' | |
15633 | export CONFIG_SHELL | |
15634 | exec "\$@" | |
b30fcfae | 15635 | fi |
15636 | ||
15637 | _ACEOF | |
cd9a469c | 15638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15639 | exec 5>>config.log | |
15640 | { | |
15641 | echo | |
15642 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15643 | ## Running $as_me. ## | |
15644 | _ASBOX | |
15645 | $as_echo "$ac_log" | |
15646 | } >&5 | |
b30fcfae | 15647 | |
cd9a469c | 15648 | _ACEOF |
15649 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8bb79148 | 15650 | # |
15651 | # INIT-COMMANDS | |
15652 | # | |
15653 | extrasub_build="$extrasub_build" | |
15654 | extrasub_host="$extrasub_host" | |
15655 | extrasub_target="$extrasub_target" | |
15656 | ||
cd9a469c | 15657 | _ACEOF |
b30fcfae | 15658 | |
cd9a469c | 15659 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
570af75a | 15660 | |
cd9a469c | 15661 | # Handling of arguments. |
b30fcfae | 15662 | for ac_config_target in $ac_config_targets |
15663 | do | |
cd9a469c | 15664 | case $ac_config_target in |
15665 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15666 | ||
f00f02a3 | 15667 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
b30fcfae | 15668 | esac |
15669 | done | |
15670 | ||
cd9a469c | 15671 | |
b30fcfae | 15672 | # If the user did not use the arguments to specify the items to instantiate, |
15673 | # then the envvar interface is used. Set only those that are not. | |
15674 | # We use the long form for the default assignment because of an extremely | |
15675 | # bizarre bug on SunOS 4.1.3. | |
15676 | if $ac_need_defaults; then | |
15677 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15678 | fi | |
15679 | ||
15680 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 15681 | # simply because there is no reason against having it here, and in addition, |
b30fcfae | 15682 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 15683 | # Hook for its removal unless debugging. |
15684 | # Note that there is a small window in which the directory will not be cleaned: | |
15685 | # after its creation but before its name has been assigned to `$tmp'. | |
b30fcfae | 15686 | $debug || |
15687 | { | |
f00f02a3 | 15688 | tmp= ac_tmp= |
cd9a469c | 15689 | trap 'exit_status=$? |
f00f02a3 | 15690 | : "${ac_tmp:=$tmp}" |
15691 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
cd9a469c | 15692 | ' 0 |
15693 | trap 'as_fn_exit 1' 1 2 13 15 | |
b30fcfae | 15694 | } |
b30fcfae | 15695 | # Create a (secure) tmp directory for tmp files. |
15696 | ||
15697 | { | |
cd9a469c | 15698 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f00f02a3 | 15699 | test -d "$tmp" |
b30fcfae | 15700 | } || |
15701 | { | |
cd9a469c | 15702 | tmp=./conf$$-$RANDOM |
15703 | (umask 077 && mkdir "$tmp") | |
f00f02a3 | 15704 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15705 | ac_tmp=$tmp | |
cd9a469c | 15706 | |
15707 | # Set up the scripts for CONFIG_FILES section. | |
15708 | # No need to generate them if there are no CONFIG_FILES. | |
15709 | # This happens for instance with `./config.status config.h'. | |
15710 | if test -n "$CONFIG_FILES"; then | |
15711 | ||
15712 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15713 | ac_cs_awk_getline=: | |
15714 | ac_cs_awk_pipe_init= | |
15715 | ac_cs_awk_read_file=' | |
15716 | while ((getline aline < (F[key])) > 0) | |
15717 | print(aline) | |
15718 | close(F[key])' | |
15719 | ac_cs_awk_pipe_fini= | |
15720 | else | |
15721 | ac_cs_awk_getline=false | |
15722 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15723 | ac_cs_awk_read_file=' | |
15724 | print "|#_!!_#|" | |
15725 | print "cat " F[key] " &&" | |
15726 | '$ac_cs_awk_pipe_init | |
15727 | # The final `:' finishes the AND list. | |
15728 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15729 | fi | |
15730 | ac_cr=`echo X | tr X '\015'` | |
15731 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15732 | # But we know of no other shell where ac_cr would be empty at this | |
15733 | # point, so we can use a bashism as a fallback. | |
15734 | if test "x$ac_cr" = x; then | |
15735 | eval ac_cr=\$\'\\r\' | |
15736 | fi | |
15737 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15738 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
f00f02a3 | 15739 | ac_cs_awk_cr='\\r' |
cd9a469c | 15740 | else |
15741 | ac_cs_awk_cr=$ac_cr | |
15742 | fi | |
15743 | ||
f00f02a3 | 15744 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
cd9a469c | 15745 | _ACEOF |
15746 | ||
15747 | # Create commands to substitute file output variables. | |
b30fcfae | 15748 | { |
cd9a469c | 15749 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
f00f02a3 | 15750 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
cd9a469c | 15751 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
15752 | echo "_ACAWK" && | |
15753 | echo "_ACEOF" | |
15754 | } >conf$$files.sh && | |
15755 | . ./conf$$files.sh || | |
f00f02a3 | 15756 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 15757 | rm -f conf$$files.sh |
b30fcfae | 15758 | |
cd9a469c | 15759 | { |
15760 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15761 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15762 | echo "_ACEOF" | |
15763 | } >conf$$subs.sh || | |
f00f02a3 | 15764 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15765 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
cd9a469c | 15766 | ac_delim='%!_!# ' |
15767 | for ac_last_try in false false false false false :; do | |
15768 | . ./conf$$subs.sh || | |
f00f02a3 | 15769 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 15770 | |
15771 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15772 | if test $ac_delim_n = $ac_delim_num; then | |
15773 | break | |
15774 | elif $ac_last_try; then | |
f00f02a3 | 15775 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 15776 | else |
15777 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15778 | fi | |
15779 | done | |
15780 | rm -f conf$$subs.sh | |
15781 | ||
15782 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 15783 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5084f823 | 15784 | _ACEOF |
cd9a469c | 15785 | sed -n ' |
15786 | h | |
15787 | s/^/S["/; s/!.*/"]=/ | |
15788 | p | |
15789 | g | |
15790 | s/^[^!]*!// | |
15791 | :repl | |
15792 | t repl | |
15793 | s/'"$ac_delim"'$// | |
15794 | t delim | |
15795 | :nl | |
15796 | h | |
f00f02a3 | 15797 | s/\(.\{148\}\)..*/\1/ |
cd9a469c | 15798 | t more1 |
15799 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15800 | p | |
15801 | n | |
15802 | b repl | |
15803 | :more1 | |
15804 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15805 | p | |
15806 | g | |
15807 | s/.\{148\}// | |
15808 | t nl | |
15809 | :delim | |
15810 | h | |
f00f02a3 | 15811 | s/\(.\{148\}\)..*/\1/ |
cd9a469c | 15812 | t more2 |
15813 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15814 | p | |
15815 | b | |
15816 | :more2 | |
15817 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15818 | p | |
15819 | g | |
15820 | s/.\{148\}// | |
15821 | t delim | |
15822 | ' <conf$$subs.awk | sed ' | |
15823 | /^[^""]/{ | |
15824 | N | |
15825 | s/\n// | |
15826 | } | |
15827 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15828 | rm -f conf$$subs.awk | |
15829 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15830 | _ACAWK | |
f00f02a3 | 15831 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
cd9a469c | 15832 | for (key in S) S_is_set[key] = 1 |
15833 | FS = "\a" | |
15834 | \$ac_cs_awk_pipe_init | |
15835 | } | |
15836 | { | |
15837 | line = $ 0 | |
15838 | nfields = split(line, field, "@") | |
15839 | substed = 0 | |
15840 | len = length(field[1]) | |
15841 | for (i = 2; i < nfields; i++) { | |
15842 | key = field[i] | |
15843 | keylen = length(key) | |
15844 | if (S_is_set[key]) { | |
15845 | value = S[key] | |
15846 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15847 | len += length(value) + length(field[++i]) | |
15848 | substed = 1 | |
15849 | } else | |
15850 | len += 1 + keylen | |
15851 | } | |
15852 | if (nfields == 3 && !substed) { | |
15853 | key = field[2] | |
15854 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15855 | \$ac_cs_awk_read_file | |
15856 | next | |
15857 | } | |
15858 | } | |
15859 | print line | |
15860 | } | |
15861 | \$ac_cs_awk_pipe_fini | |
15862 | _ACAWK | |
15863 | _ACEOF | |
15864 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15865 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15866 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15867 | else | |
15868 | cat | |
f00f02a3 | 15869 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15870 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
cd9a469c | 15871 | _ACEOF |
15872 | ||
f00f02a3 | 15873 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15874 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
cd9a469c | 15875 | # trailing colons and then remove the whole line if VPATH becomes empty |
15876 | # (actually we leave an empty line to preserve line numbers). | |
15877 | if test "x$srcdir" = x.; then | |
f00f02a3 | 15878 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15879 | h | |
15880 | s/// | |
15881 | s/^/:/ | |
15882 | s/[ ]*$/:/ | |
15883 | s/:\$(srcdir):/:/g | |
15884 | s/:\${srcdir}:/:/g | |
15885 | s/:@srcdir@:/:/g | |
15886 | s/^:*// | |
cd9a469c | 15887 | s/:*$// |
f00f02a3 | 15888 | x |
15889 | s/\(=[ ]*\).*/\1/ | |
15890 | G | |
15891 | s/\n// | |
cd9a469c | 15892 | s/^[^=]*=[ ]*$// |
15893 | }' | |
15894 | fi | |
5084f823 | 15895 | |
cd9a469c | 15896 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15897 | fi # test -n "$CONFIG_FILES" | |
5084f823 | 15898 | |
b30fcfae | 15899 | |
cd9a469c | 15900 | eval set X " :F $CONFIG_FILES " |
15901 | shift | |
15902 | for ac_tag | |
15903 | do | |
15904 | case $ac_tag in | |
15905 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15906 | esac | |
15907 | case $ac_mode$ac_tag in | |
15908 | :[FHL]*:*);; | |
f00f02a3 | 15909 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
cd9a469c | 15910 | :[FH]-) ac_tag=-:-;; |
15911 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15912 | esac | |
15913 | ac_save_IFS=$IFS | |
15914 | IFS=: | |
15915 | set x $ac_tag | |
15916 | IFS=$ac_save_IFS | |
15917 | shift | |
15918 | ac_file=$1 | |
15919 | shift | |
a8298541 | 15920 | |
cd9a469c | 15921 | case $ac_mode in |
15922 | :L) ac_source=$1;; | |
15923 | :[FH]) | |
15924 | ac_file_inputs= | |
15925 | for ac_f | |
15926 | do | |
15927 | case $ac_f in | |
f00f02a3 | 15928 | -) ac_f="$ac_tmp/stdin";; |
cd9a469c | 15929 | *) # Look for the file first in the build tree, then in the source tree |
15930 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15931 | # because $ac_f cannot contain `:'. | |
15932 | test -f "$ac_f" || | |
15933 | case $ac_f in | |
15934 | [\\/$]*) false;; | |
15935 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15936 | esac || | |
f00f02a3 | 15937 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
cd9a469c | 15938 | esac |
15939 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15940 | as_fn_append ac_file_inputs " '$ac_f'" | |
15941 | done | |
b30fcfae | 15942 | |
cd9a469c | 15943 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15944 | # use $as_me), people would be surprised to read: | |
15945 | # /* config.h. Generated by config.status. */ | |
15946 | configure_input='Generated from '` | |
15947 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15948 | `' by configure.' | |
15949 | if test x"$ac_file" != x-; then | |
15950 | configure_input="$ac_file. $configure_input" | |
15951 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15952 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5084f823 | 15953 | fi |
cd9a469c | 15954 | # Neutralize special characters interpreted by sed in replacement strings. |
15955 | case $configure_input in #( | |
15956 | *\&* | *\|* | *\\* ) | |
15957 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15958 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15959 | *) ac_sed_conf_input=$configure_input;; | |
15960 | esac | |
570af75a | 15961 | |
cd9a469c | 15962 | case $ac_tag in |
f00f02a3 | 15963 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15964 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
cd9a469c | 15965 | esac |
15966 | ;; | |
570af75a | 15967 | esac |
15968 | ||
cd9a469c | 15969 | ac_dir=`$as_dirname -- "$ac_file" || |
b30fcfae | 15970 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15971 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15972 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 15973 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15974 | $as_echo X"$ac_file" | | |
15975 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15976 | s//\1/ | |
15977 | q | |
15978 | } | |
15979 | /^X\(\/\/\)[^/].*/{ | |
15980 | s//\1/ | |
15981 | q | |
15982 | } | |
15983 | /^X\(\/\/\)$/{ | |
15984 | s//\1/ | |
15985 | q | |
15986 | } | |
15987 | /^X\(\/\).*/{ | |
15988 | s//\1/ | |
15989 | q | |
15990 | } | |
15991 | s/.*/./; q'` | |
15992 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b30fcfae | 15993 | ac_builddir=. |
a83ffacf | 15994 | |
cd9a469c | 15995 | case "$ac_dir" in |
15996 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15997 | *) | |
15998 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15999 | # A ".." for each directory in $ac_dir_suffix. | |
16000 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16001 | case $ac_top_builddir_sub in | |
16002 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16003 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16004 | esac ;; | |
16005 | esac | |
16006 | ac_abs_top_builddir=$ac_pwd | |
16007 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16008 | # for backward compatibility: | |
16009 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 16010 | |
16011 | case $srcdir in | |
cd9a469c | 16012 | .) # We are building in place. |
b30fcfae | 16013 | ac_srcdir=. |
cd9a469c | 16014 | ac_top_srcdir=$ac_top_builddir_sub |
16015 | ac_abs_top_srcdir=$ac_pwd ;; | |
16016 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 16017 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 16018 | ac_top_srcdir=$srcdir |
16019 | ac_abs_top_srcdir=$srcdir ;; | |
16020 | *) # Relative name. | |
16021 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16022 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16023 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b30fcfae | 16024 | esac |
cd9a469c | 16025 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b1660f25 | 16026 | |
a83ffacf | 16027 | |
cd9a469c | 16028 | case $ac_mode in |
16029 | :F) | |
16030 | # | |
16031 | # CONFIG_FILE | |
16032 | # | |
b30fcfae | 16033 | |
16034 | case $INSTALL in | |
16035 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 16036 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
71ab34df | 16037 | esac |
cd9a469c | 16038 | _ACEOF |
570af75a | 16039 | |
cd9a469c | 16040 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16041 | # If the template does not know about datarootdir, expand it. | |
16042 | # FIXME: This hack should be removed a few years after 2.60. | |
16043 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16044 | ac_sed_dataroot=' | |
16045 | /datarootdir/ { | |
16046 | p | |
16047 | q | |
16048 | } | |
16049 | /@datadir@/p | |
16050 | /@docdir@/p | |
16051 | /@infodir@/p | |
16052 | /@localedir@/p | |
16053 | /@mandir@/p' | |
16054 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16055 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16056 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16058 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
570af75a | 16059 | _ACEOF |
cd9a469c | 16060 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16061 | ac_datarootdir_hack=' | |
16062 | s&@datadir@&$datadir&g | |
16063 | s&@docdir@&$docdir&g | |
16064 | s&@infodir@&$infodir&g | |
16065 | s&@localedir@&$localedir&g | |
16066 | s&@mandir@&$mandir&g | |
16067 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16068 | esac | |
16069 | _ACEOF | |
16070 | ||
16071 | # Neutralize VPATH when `$srcdir' = `.'. | |
16072 | # Shell code in configure.ac might set extrasub. | |
16073 | # FIXME: do we really want to maintain this feature? | |
16074 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16075 | ac_sed_extra="$ac_vpsub | |
b30fcfae | 16076 | $extrasub |
16077 | _ACEOF | |
cd9a469c | 16078 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 16079 | :t |
16080 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 16081 | s|@configure_input@|$ac_sed_conf_input|;t t |
16082 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16083 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16084 | s&@srcdir@&$ac_srcdir&;t t | |
16085 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16086 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16087 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16088 | s&@builddir@&$ac_builddir&;t t | |
16089 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16090 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16091 | s&@INSTALL@&$ac_INSTALL&;t t | |
16092 | $ac_datarootdir_hack | |
16093 | " | |
16094 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16095 | if $ac_cs_awk_getline; then | |
f00f02a3 | 16096 | $AWK -f "$ac_tmp/subs.awk" |
cd9a469c | 16097 | else |
f00f02a3 | 16098 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
16099 | fi \ | |
16100 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
cd9a469c | 16101 | |
16102 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f00f02a3 | 16103 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16104 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16105 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
cd9a469c | 16106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 16107 | which seems to be undefined. Please make sure it is defined" >&5 |
cd9a469c | 16108 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 16109 | which seems to be undefined. Please make sure it is defined" >&2;} |
cd9a469c | 16110 | |
f00f02a3 | 16111 | rm -f "$ac_tmp/stdin" |
cd9a469c | 16112 | case $ac_file in |
f00f02a3 | 16113 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16114 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
cd9a469c | 16115 | esac \ |
f00f02a3 | 16116 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
cd9a469c | 16117 | ;; |
570af75a | 16118 | |
570af75a | 16119 | |
a8298541 | 16120 | |
cd9a469c | 16121 | esac |
16122 | ||
8bb79148 | 16123 | |
16124 | case $ac_file$ac_mode in | |
16125 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16126 | sed "$extrasub_host" | | |
16127 | sed "$extrasub_target" > mf$$ | |
16128 | mv -f mf$$ Makefile ;; | |
16129 | ||
16130 | esac | |
cd9a469c | 16131 | done # for ac_tag |
16132 | ||
16133 | ||
16134 | as_fn_exit 0 | |
b30fcfae | 16135 | _ACEOF |
b30fcfae | 16136 | ac_clean_files=$ac_clean_files_save |
16137 | ||
cd9a469c | 16138 | test $ac_write_fail = 0 || |
f00f02a3 | 16139 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 16140 | |
b30fcfae | 16141 | |
16142 | # configure is writing to config.log, and then calls config.status. | |
16143 | # config.status does its own redirection, appending to config.log. | |
16144 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16145 | # by configure, so config.status won't be able to write to it; its | |
16146 | # output is simply discarded. So we exec the FD to /dev/null, | |
16147 | # effectively closing config.log, so it can be properly (re)opened and | |
16148 | # appended to by config.status. When coming back to configure, we | |
16149 | # need to make the FD available again. | |
16150 | if test "$no_create" != yes; then | |
16151 | ac_cs_success=: | |
16152 | ac_config_status_args= | |
16153 | test "$silent" = yes && | |
16154 | ac_config_status_args="$ac_config_status_args --quiet" | |
16155 | exec 5>/dev/null | |
16156 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16157 | exec 5>>config.log | |
16158 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16159 | # would make configure fail if this is the last instruction. | |
f00f02a3 | 16160 | $ac_cs_success || as_fn_exit 1 |
cd9a469c | 16161 | fi |
16162 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16163 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16164 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b30fcfae | 16165 | fi |
a8298541 | 16166 |