binutils: refresh patches for binutils 2.17
[openwrt/staging/florian.git] / toolchain / binutils / patches / 2.17 / 500-avr32.patch
1 --- a/bfd/aclocal.m4
2 +++ b/bfd/aclocal.m4
3 @@ -1,4 +1,4 @@
4 -# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
5 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
6
7 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8 # 2005 Free Software Foundation, Inc.
9 @@ -28,7 +28,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api
10 # Call AM_AUTOMAKE_VERSION so it can be traced.
11 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
12 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
13 - [AM_AUTOMAKE_VERSION([1.9.5])])
14 + [AM_AUTOMAKE_VERSION([1.9.6])])
15
16 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
17
18 --- a/bfd/archures.c
19 +++ b/bfd/archures.c
20 @@ -334,6 +334,9 @@ DESCRIPTION
21 .#define bfd_mach_avr3 3
22 .#define bfd_mach_avr4 4
23 .#define bfd_mach_avr5 5
24 +. bfd_arch_avr32, {* Atmel AVR32 *}
25 +.#define bfd_mach_avr32_ap 7000
26 +.#define bfd_mach_avr32_uc 3000
27 . bfd_arch_bfin, {* ADI Blackfin *}
28 .#define bfd_mach_bfin 1
29 . bfd_arch_cr16c, {* National Semiconductor CompactRISC. *}
30 @@ -423,6 +426,7 @@ extern const bfd_arch_info_type bfd_alph
31 extern const bfd_arch_info_type bfd_arc_arch;
32 extern const bfd_arch_info_type bfd_arm_arch;
33 extern const bfd_arch_info_type bfd_avr_arch;
34 +extern const bfd_arch_info_type bfd_avr32_arch;
35 extern const bfd_arch_info_type bfd_bfin_arch;
36 extern const bfd_arch_info_type bfd_cr16c_arch;
37 extern const bfd_arch_info_type bfd_cris_arch;
38 @@ -490,6 +494,7 @@ static const bfd_arch_info_type * const
39 &bfd_arc_arch,
40 &bfd_arm_arch,
41 &bfd_avr_arch,
42 + &bfd_avr32_arch,
43 &bfd_bfin_arch,
44 &bfd_cr16c_arch,
45 &bfd_cris_arch,
46 --- a/bfd/bfd-in2.h
47 +++ b/bfd/bfd-in2.h
48 @@ -1931,6 +1931,9 @@ enum bfd_architecture
49 #define bfd_mach_avr3 3
50 #define bfd_mach_avr4 4
51 #define bfd_mach_avr5 5
52 + bfd_arch_avr32, /* Atmel AVR32 */
53 +#define bfd_mach_avr32_ap 7000
54 +#define bfd_mach_avr32_uc 3000
55 bfd_arch_bfin, /* ADI Blackfin */
56 #define bfd_mach_bfin 1
57 bfd_arch_cr16c, /* National Semiconductor CompactRISC. */
58 @@ -3577,6 +3580,87 @@ instructions */
59 instructions */
60 BFD_RELOC_AVR_6_ADIW,
61
62 +/* Difference between two labels: L2 - L1. The value of L1 is encoded
63 +as sym + addend, while the initial difference after assembly is
64 +inserted into the object file by the assembler. */
65 + BFD_RELOC_AVR32_DIFF32,
66 + BFD_RELOC_AVR32_DIFF16,
67 + BFD_RELOC_AVR32_DIFF8,
68 +
69 +/* Reference to a symbol through the Global Offset Table. The linker
70 +will allocate an entry for symbol in the GOT and insert the offset
71 +of this entry as the relocation value. */
72 + BFD_RELOC_AVR32_GOT32,
73 + BFD_RELOC_AVR32_GOT16,
74 + BFD_RELOC_AVR32_GOT8,
75 +
76 +/* Normal (non-pc-relative) code relocations. Alignment and signedness
77 +is indicated by the suffixes. S means signed, U means unsigned. W
78 +means word-aligned, H means halfword-aligned, neither means
79 +byte-aligned (no alignment.) SUB5 is the same relocation as 16S. */
80 + BFD_RELOC_AVR32_21S,
81 + BFD_RELOC_AVR32_16U,
82 + BFD_RELOC_AVR32_16S,
83 + BFD_RELOC_AVR32_SUB5,
84 + BFD_RELOC_AVR32_8S_EXT,
85 + BFD_RELOC_AVR32_8S,
86 +
87 +/* PC-relative relocations are signed if neither 'U' nor 'S' is
88 +specified. However, we explicitly tack on a 'B' to indicate no
89 +alignment, to avoid confusion with data relocs. All of these resolve
90 +to sym + addend - offset, except the one with 'N' (negated) suffix.
91 +This particular one resolves to offset - sym - addend. */
92 + BFD_RELOC_AVR32_22H_PCREL,
93 + BFD_RELOC_AVR32_18W_PCREL,
94 + BFD_RELOC_AVR32_16B_PCREL,
95 + BFD_RELOC_AVR32_16N_PCREL,
96 + BFD_RELOC_AVR32_14UW_PCREL,
97 + BFD_RELOC_AVR32_11H_PCREL,
98 + BFD_RELOC_AVR32_10UW_PCREL,
99 + BFD_RELOC_AVR32_9H_PCREL,
100 + BFD_RELOC_AVR32_9UW_PCREL,
101 +
102 +/* Subtract the link-time address of the GOT from (symbol + addend)
103 +and insert the result. */
104 + BFD_RELOC_AVR32_GOTPC,
105 +
106 +/* Reference to a symbol through the GOT. The linker will allocate an
107 +entry for symbol in the GOT and insert the offset of this entry as
108 +the relocation value. addend must be zero. As usual, 'S' means
109 +signed, 'W' means word-aligned, etc. */
110 + BFD_RELOC_AVR32_GOTCALL,
111 + BFD_RELOC_AVR32_LDA_GOT,
112 + BFD_RELOC_AVR32_GOT21S,
113 + BFD_RELOC_AVR32_GOT18SW,
114 + BFD_RELOC_AVR32_GOT16S,
115 +
116 +/* 32-bit constant pool entry. I don't think 8- and 16-bit entries make
117 +a whole lot of sense. */
118 + BFD_RELOC_AVR32_32_CPENT,
119 +
120 +/* Constant pool references. Some of these relocations are signed,
121 +others are unsigned. It doesn't really matter, since the constant
122 +pool always comes after the code that references it. */
123 + BFD_RELOC_AVR32_CPCALL,
124 + BFD_RELOC_AVR32_16_CP,
125 + BFD_RELOC_AVR32_9W_CP,
126 +
127 +/* sym must be the absolute symbol. The addend specifies the alignment
128 +order, e.g. if addend is 2, the linker must add padding so that the
129 +next address is aligned to a 4-byte boundary. */
130 + BFD_RELOC_AVR32_ALIGN,
131 +
132 +/* Code relocations that will never make it to the output file. */
133 + BFD_RELOC_AVR32_14UW,
134 + BFD_RELOC_AVR32_10UW,
135 + BFD_RELOC_AVR32_10SW,
136 + BFD_RELOC_AVR32_STHH_W,
137 + BFD_RELOC_AVR32_7UW,
138 + BFD_RELOC_AVR32_6S,
139 + BFD_RELOC_AVR32_6UW,
140 + BFD_RELOC_AVR32_4UH,
141 + BFD_RELOC_AVR32_3U,
142 +
143 /* Direct 12 bit. */
144 BFD_RELOC_390_12,
145
146 --- a/bfd/config.bfd
147 +++ b/bfd/config.bfd
148 @@ -317,6 +317,10 @@ case "${targ}" in
149 targ_underscore=yes
150 ;;
151
152 + avr32-*-*)
153 + targ_defvec=bfd_elf32_avr32_vec
154 + ;;
155 +
156 c30-*-*aout* | tic30-*-*aout*)
157 targ_defvec=tic30_aout_vec
158 ;;
159 --- a/bfd/config.in
160 +++ b/bfd/config.in
161 @@ -313,18 +313,18 @@
162 /* Define to the version of this package. */
163 #undef PACKAGE_VERSION
164
165 -/* The size of a `long', as computed by sizeof. */
166 +/* The size of `long', as computed by sizeof. */
167 #undef SIZEOF_LONG
168
169 -/* The size of a `long long', as computed by sizeof. */
170 +/* The size of `long long', as computed by sizeof. */
171 #undef SIZEOF_LONG_LONG
172
173 -/* The size of a `off_t', as computed by sizeof. */
174 +/* The size of `off_t', as computed by sizeof. */
175 #undef SIZEOF_OFF_T
176
177 /* If using the C implementation of alloca, define if you know the
178 direction of stack growth for your system; otherwise it will be
179 - automatically deduced at run-time.
180 + automatically deduced at runtime.
181 STACK_DIRECTION > 0 => grows toward higher addresses
182 STACK_DIRECTION < 0 => grows toward lower addresses
183 STACK_DIRECTION = 0 => direction of growth unknown */
184 @@ -368,8 +368,8 @@
185 #undef inline
186 #endif
187
188 -/* Define to `long' if <sys/types.h> does not define. */
189 +/* Define to `long int' if <sys/types.h> does not define. */
190 #undef off_t
191
192 -/* Define to `unsigned' if <sys/types.h> does not define. */
193 +/* Define to `unsigned int' if <sys/types.h> does not define. */
194 #undef size_t
195 --- a/bfd/configure
196 +++ b/bfd/configure
197 @@ -1,25 +1,54 @@
198 #! /bin/sh
199 # Guess values for system-dependent variables and create Makefiles.
200 -# Generated by GNU Autoconf 2.59.
201 +# Generated by GNU Autoconf 2.61.
202 #
203 -# Copyright (C) 2003 Free Software Foundation, Inc.
204 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
205 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
206 # This configure script is free software; the Free Software Foundation
207 # gives unlimited permission to copy, distribute and modify it.
208 ## --------------------- ##
209 ## M4sh Initialization. ##
210 ## --------------------- ##
211
212 -# Be Bourne compatible
213 +# Be more Bourne compatible
214 +DUALCASE=1; export DUALCASE # for MKS sh
215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
216 emulate sh
217 NULLCMD=:
218 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
219 # is contrary to our usage. Disable this feature.
220 alias -g '${1+"$@"}'='"$@"'
221 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
222 - set -o posix
223 + setopt NO_GLOB_SUBST
224 +else
225 + case `(set -o) 2>/dev/null` in
226 + *posix*) set -o posix ;;
227 +esac
228 +
229 +fi
230 +
231 +
232 +
233 +
234 +# PATH needs CR
235 +# Avoid depending upon Character Ranges.
236 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 +as_cr_digits='0123456789'
240 +as_cr_alnum=$as_cr_Letters$as_cr_digits
241 +
242 +# The user is always right.
243 +if test "${PATH_SEPARATOR+set}" != set; then
244 + echo "#! /bin/sh" >conf$$.sh
245 + echo "exit 0" >>conf$$.sh
246 + chmod +x conf$$.sh
247 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
248 + PATH_SEPARATOR=';'
249 + else
250 + PATH_SEPARATOR=:
251 + fi
252 + rm -f conf$$.sh
253 fi
254 -DUALCASE=1; export DUALCASE # for MKS sh
255
256 # Support unset when possible.
257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
258 @@ -29,8 +58,43 @@ else
259 fi
260
261
262 +# IFS
263 +# We need space, tab and new line, in precisely that order. Quoting is
264 +# there to prevent editors from complaining about space-tab.
265 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
266 +# splitting by setting IFS to empty value.)
267 +as_nl='
268 +'
269 +IFS=" "" $as_nl"
270 +
271 +# Find who we are. Look in the path if we contain no directory separator.
272 +case $0 in
273 + *[\\/]* ) as_myself=$0 ;;
274 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
275 +for as_dir in $PATH
276 +do
277 + IFS=$as_save_IFS
278 + test -z "$as_dir" && as_dir=.
279 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
280 +done
281 +IFS=$as_save_IFS
282 +
283 + ;;
284 +esac
285 +# We did not find ourselves, most probably we were run as `sh COMMAND'
286 +# in which case we are not to be found in the path.
287 +if test "x$as_myself" = x; then
288 + as_myself=$0
289 +fi
290 +if test ! -f "$as_myself"; then
291 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
292 + { (exit 1); exit 1; }
293 +fi
294 +
295 # Work around bugs in pre-3.0 UWIN ksh.
296 -$as_unset ENV MAIL MAILPATH
297 +for as_var in ENV MAIL MAILPATH
298 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
299 +done
300 PS1='$ '
301 PS2='> '
302 PS4='+ '
303 @@ -44,18 +108,19 @@ do
304 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
305 eval $as_var=C; export $as_var
306 else
307 - $as_unset $as_var
308 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
309 fi
310 done
311
312 # Required to use basename.
313 -if expr a : '\(a\)' >/dev/null 2>&1; then
314 +if expr a : '\(a\)' >/dev/null 2>&1 &&
315 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
316 as_expr=expr
317 else
318 as_expr=false
319 fi
320
321 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
322 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
323 as_basename=basename
324 else
325 as_basename=false
326 @@ -63,157 +128,388 @@ fi
327
328
329 # Name of the executable.
330 -as_me=`$as_basename "$0" ||
331 +as_me=`$as_basename -- "$0" ||
332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
333 X"$0" : 'X\(//\)$' \| \
334 - X"$0" : 'X\(/\)$' \| \
335 - . : '\(.\)' 2>/dev/null ||
336 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
337 echo X/"$0" |
338 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
339 - /^X\/\(\/\/\)$/{ s//\1/; q; }
340 - /^X\/\(\/\).*/{ s//\1/; q; }
341 - s/.*/./; q'`
342 + sed '/^.*\/\([^/][^/]*\)\/*$/{
343 + s//\1/
344 + q
345 + }
346 + /^X\/\(\/\/\)$/{
347 + s//\1/
348 + q
349 + }
350 + /^X\/\(\/\).*/{
351 + s//\1/
352 + q
353 + }
354 + s/.*/./; q'`
355
356 +# CDPATH.
357 +$as_unset CDPATH
358
359 -# PATH needs CR, and LINENO needs CR and PATH.
360 -# Avoid depending upon Character Ranges.
361 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
362 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
363 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
364 -as_cr_digits='0123456789'
365 -as_cr_alnum=$as_cr_Letters$as_cr_digits
366
367 -# The user is always right.
368 -if test "${PATH_SEPARATOR+set}" != set; then
369 - echo "#! /bin/sh" >conf$$.sh
370 - echo "exit 0" >>conf$$.sh
371 - chmod +x conf$$.sh
372 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
373 - PATH_SEPARATOR=';'
374 - else
375 - PATH_SEPARATOR=:
376 - fi
377 - rm -f conf$$.sh
378 +if test "x$CONFIG_SHELL" = x; then
379 + if (eval ":") 2>/dev/null; then
380 + as_have_required=yes
381 +else
382 + as_have_required=no
383 +fi
384 +
385 + if test $as_have_required = yes && (eval ":
386 +(as_func_return () {
387 + (exit \$1)
388 +}
389 +as_func_success () {
390 + as_func_return 0
391 +}
392 +as_func_failure () {
393 + as_func_return 1
394 +}
395 +as_func_ret_success () {
396 + return 0
397 +}
398 +as_func_ret_failure () {
399 + return 1
400 +}
401 +
402 +exitcode=0
403 +if as_func_success; then
404 + :
405 +else
406 + exitcode=1
407 + echo as_func_success failed.
408 fi
409
410 +if as_func_failure; then
411 + exitcode=1
412 + echo as_func_failure succeeded.
413 +fi
414
415 - as_lineno_1=$LINENO
416 - as_lineno_2=$LINENO
417 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
418 - test "x$as_lineno_1" != "x$as_lineno_2" &&
419 - test "x$as_lineno_3" = "x$as_lineno_2" || {
420 - # Find who we are. Look in the path if we contain no path at all
421 - # relative or not.
422 - case $0 in
423 - *[\\/]* ) as_myself=$0 ;;
424 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
425 -for as_dir in $PATH
426 -do
427 - IFS=$as_save_IFS
428 - test -z "$as_dir" && as_dir=.
429 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
430 -done
431 +if as_func_ret_success; then
432 + :
433 +else
434 + exitcode=1
435 + echo as_func_ret_success failed.
436 +fi
437
438 - ;;
439 - esac
440 - # We did not find ourselves, most probably we were run as `sh COMMAND'
441 - # in which case we are not to be found in the path.
442 - if test "x$as_myself" = x; then
443 - as_myself=$0
444 - fi
445 - if test ! -f "$as_myself"; then
446 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
447 - { (exit 1); exit 1; }; }
448 - fi
449 - case $CONFIG_SHELL in
450 - '')
451 +if as_func_ret_failure; then
452 + exitcode=1
453 + echo as_func_ret_failure succeeded.
454 +fi
455 +
456 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
457 + :
458 +else
459 + exitcode=1
460 + echo positional parameters were not saved.
461 +fi
462 +
463 +test \$exitcode = 0) || { (exit 1); exit 1; }
464 +
465 +(
466 + as_lineno_1=\$LINENO
467 + as_lineno_2=\$LINENO
468 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
469 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
470 +") 2> /dev/null; then
471 + :
472 +else
473 + as_candidate_shells=
474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
475 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
476 do
477 IFS=$as_save_IFS
478 test -z "$as_dir" && as_dir=.
479 - for as_base in sh bash ksh sh5; do
480 - case $as_dir in
481 + case $as_dir in
482 /*)
483 - if ("$as_dir/$as_base" -c '
484 + for as_base in sh bash ksh sh5; do
485 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
486 + done;;
487 + esac
488 +done
489 +IFS=$as_save_IFS
490 +
491 +
492 + for as_shell in $as_candidate_shells $SHELL; do
493 + # Try only shells that exist, to save several forks.
494 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
495 + { ("$as_shell") 2> /dev/null <<\_ASEOF
496 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
497 + emulate sh
498 + NULLCMD=:
499 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
500 + # is contrary to our usage. Disable this feature.
501 + alias -g '${1+"$@"}'='"$@"'
502 + setopt NO_GLOB_SUBST
503 +else
504 + case `(set -o) 2>/dev/null` in
505 + *posix*) set -o posix ;;
506 +esac
507 +
508 +fi
509 +
510 +
511 +:
512 +_ASEOF
513 +}; then
514 + CONFIG_SHELL=$as_shell
515 + as_have_required=yes
516 + if { "$as_shell" 2> /dev/null <<\_ASEOF
517 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
518 + emulate sh
519 + NULLCMD=:
520 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
521 + # is contrary to our usage. Disable this feature.
522 + alias -g '${1+"$@"}'='"$@"'
523 + setopt NO_GLOB_SUBST
524 +else
525 + case `(set -o) 2>/dev/null` in
526 + *posix*) set -o posix ;;
527 +esac
528 +
529 +fi
530 +
531 +
532 +:
533 +(as_func_return () {
534 + (exit $1)
535 +}
536 +as_func_success () {
537 + as_func_return 0
538 +}
539 +as_func_failure () {
540 + as_func_return 1
541 +}
542 +as_func_ret_success () {
543 + return 0
544 +}
545 +as_func_ret_failure () {
546 + return 1
547 +}
548 +
549 +exitcode=0
550 +if as_func_success; then
551 + :
552 +else
553 + exitcode=1
554 + echo as_func_success failed.
555 +fi
556 +
557 +if as_func_failure; then
558 + exitcode=1
559 + echo as_func_failure succeeded.
560 +fi
561 +
562 +if as_func_ret_success; then
563 + :
564 +else
565 + exitcode=1
566 + echo as_func_ret_success failed.
567 +fi
568 +
569 +if as_func_ret_failure; then
570 + exitcode=1
571 + echo as_func_ret_failure succeeded.
572 +fi
573 +
574 +if ( set x; as_func_ret_success y && test x = "$1" ); then
575 + :
576 +else
577 + exitcode=1
578 + echo positional parameters were not saved.
579 +fi
580 +
581 +test $exitcode = 0) || { (exit 1); exit 1; }
582 +
583 +(
584 as_lineno_1=$LINENO
585 as_lineno_2=$LINENO
586 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
587 test "x$as_lineno_1" != "x$as_lineno_2" &&
588 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
589 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
590 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
591 - CONFIG_SHELL=$as_dir/$as_base
592 - export CONFIG_SHELL
593 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
594 - fi;;
595 - esac
596 - done
597 -done
598 -;;
599 - esac
600 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
601 +
602 +_ASEOF
603 +}; then
604 + break
605 +fi
606 +
607 +fi
608 +
609 + done
610 +
611 + if test "x$CONFIG_SHELL" != x; then
612 + for as_var in BASH_ENV ENV
613 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
614 + done
615 + export CONFIG_SHELL
616 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
617 +fi
618 +
619 +
620 + if test $as_have_required = no; then
621 + echo This script requires a shell more modern than all the
622 + echo shells that I found on your system. Please install a
623 + echo modern shell, or manually run the script under such a
624 + echo shell if you do have one.
625 + { (exit 1); exit 1; }
626 +fi
627 +
628 +
629 +fi
630 +
631 +fi
632 +
633 +
634 +
635 +(eval "as_func_return () {
636 + (exit \$1)
637 +}
638 +as_func_success () {
639 + as_func_return 0
640 +}
641 +as_func_failure () {
642 + as_func_return 1
643 +}
644 +as_func_ret_success () {
645 + return 0
646 +}
647 +as_func_ret_failure () {
648 + return 1
649 +}
650 +
651 +exitcode=0
652 +if as_func_success; then
653 + :
654 +else
655 + exitcode=1
656 + echo as_func_success failed.
657 +fi
658 +
659 +if as_func_failure; then
660 + exitcode=1
661 + echo as_func_failure succeeded.
662 +fi
663 +
664 +if as_func_ret_success; then
665 + :
666 +else
667 + exitcode=1
668 + echo as_func_ret_success failed.
669 +fi
670 +
671 +if as_func_ret_failure; then
672 + exitcode=1
673 + echo as_func_ret_failure succeeded.
674 +fi
675 +
676 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
677 + :
678 +else
679 + exitcode=1
680 + echo positional parameters were not saved.
681 +fi
682 +
683 +test \$exitcode = 0") || {
684 + echo No shell found that supports shell functions.
685 + echo Please tell autoconf@gnu.org about your system,
686 + echo including any error possibly output before this
687 + echo message
688 +}
689 +
690 +
691 +
692 + as_lineno_1=$LINENO
693 + as_lineno_2=$LINENO
694 + test "x$as_lineno_1" != "x$as_lineno_2" &&
695 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
696
697 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
698 # uniformly replaced by the line number. The first 'sed' inserts a
699 - # line-number line before each line; the second 'sed' does the real
700 - # work. The second script uses 'N' to pair each line-number line
701 - # with the numbered line, and appends trailing '-' during
702 - # substitution so that $LINENO is not a special case at line end.
703 + # line-number line after each line using $LINENO; the second 'sed'
704 + # does the real work. The second script uses 'N' to pair each
705 + # line-number line with the line containing $LINENO, and appends
706 + # trailing '-' during substitution so that $LINENO is not a special
707 + # case at line end.
708 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
709 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
710 - sed '=' <$as_myself |
711 + # scripts with optimization help from Paolo Bonzini. Blame Lee
712 + # E. McMahon (1931-1989) for sed's syntax. :-)
713 + sed -n '
714 + p
715 + /[$]LINENO/=
716 + ' <$as_myself |
717 sed '
718 + s/[$]LINENO.*/&-/
719 + t lineno
720 + b
721 + :lineno
722 N
723 - s,$,-,
724 - : loop
725 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
726 + :loop
727 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
728 t loop
729 - s,-$,,
730 - s,^['$as_cr_digits']*\n,,
731 + s/-\n.*//
732 ' >$as_me.lineno &&
733 - chmod +x $as_me.lineno ||
734 + chmod +x "$as_me.lineno" ||
735 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
736 { (exit 1); exit 1; }; }
737
738 # Don't try to exec as it changes $[0], causing all sort of problems
739 # (the dirname of $[0] is not the place where we might find the
740 - # original and so on. Autoconf is especially sensible to this).
741 - . ./$as_me.lineno
742 + # original and so on. Autoconf is especially sensitive to this).
743 + . "./$as_me.lineno"
744 # Exit status is that of the last command.
745 exit
746 }
747
748
749 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
750 - *c*,-n*) ECHO_N= ECHO_C='
751 -' ECHO_T=' ' ;;
752 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
753 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
754 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
755 + as_dirname=dirname
756 +else
757 + as_dirname=false
758 +fi
759 +
760 +ECHO_C= ECHO_N= ECHO_T=
761 +case `echo -n x` in
762 +-n*)
763 + case `echo 'x\c'` in
764 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
765 + *) ECHO_C='\c';;
766 + esac;;
767 +*)
768 + ECHO_N='-n';;
769 esac
770
771 -if expr a : '\(a\)' >/dev/null 2>&1; then
772 +if expr a : '\(a\)' >/dev/null 2>&1 &&
773 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
774 as_expr=expr
775 else
776 as_expr=false
777 fi
778
779 rm -f conf$$ conf$$.exe conf$$.file
780 +if test -d conf$$.dir; then
781 + rm -f conf$$.dir/conf$$.file
782 +else
783 + rm -f conf$$.dir
784 + mkdir conf$$.dir
785 +fi
786 echo >conf$$.file
787 if ln -s conf$$.file conf$$ 2>/dev/null; then
788 - # We could just check for DJGPP; but this test a) works b) is more generic
789 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
790 - if test -f conf$$.exe; then
791 - # Don't use ln at all; we don't have any links
792 + as_ln_s='ln -s'
793 + # ... but there are two gotchas:
794 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
795 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
796 + # In both cases, we have to default to `cp -p'.
797 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
798 as_ln_s='cp -p'
799 - else
800 - as_ln_s='ln -s'
801 - fi
802 elif ln conf$$.file conf$$ 2>/dev/null; then
803 as_ln_s=ln
804 else
805 as_ln_s='cp -p'
806 fi
807 -rm -f conf$$ conf$$.exe conf$$.file
808 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
809 +rmdir conf$$.dir 2>/dev/null
810
811 if mkdir -p . 2>/dev/null; then
812 as_mkdir_p=:
813 @@ -222,7 +518,28 @@ else
814 as_mkdir_p=false
815 fi
816
817 -as_executable_p="test -f"
818 +if test -x / >/dev/null 2>&1; then
819 + as_test_x='test -x'
820 +else
821 + if ls -dL / >/dev/null 2>&1; then
822 + as_ls_L_option=L
823 + else
824 + as_ls_L_option=
825 + fi
826 + as_test_x='
827 + eval sh -c '\''
828 + if test -d "$1"; then
829 + test -d "$1/.";
830 + else
831 + case $1 in
832 + -*)set "./$1";;
833 + esac;
834 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
835 + ???[sx]*):;;*)false;;esac;fi
836 + '\'' sh
837 + '
838 +fi
839 +as_executable_p=$as_test_x
840
841 # Sed expression to map a string onto a valid CPP name.
842 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
843 @@ -231,39 +548,27 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
844 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
845
846
847 -# IFS
848 -# We need space, tab and new line, in precisely that order.
849 -as_nl='
850 -'
851 -IFS=" $as_nl"
852 -
853 -# CDPATH.
854 -$as_unset CDPATH
855
856 +exec 7<&0 </dev/null 6>&1
857
858 # Name of the host.
859 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
860 # so uname gets run too.
861 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
862
863 -exec 6>&1
864 -
865 #
866 # Initializations.
867 #
868 ac_default_prefix=/usr/local
869 +ac_clean_files=
870 ac_config_libobj_dir=.
871 +LIBOBJS=
872 cross_compiling=no
873 subdirs=
874 MFLAGS=
875 MAKEFLAGS=
876 SHELL=${CONFIG_SHELL-/bin/sh}
877
878 -# Maximum number of lines to put in a shell here document.
879 -# This variable seems obsolete. It should probably be removed, and
880 -# only ac_max_sed_lines should be used.
881 -: ${ac_max_here_lines=38}
882 -
883 # Identity of this package.
884 PACKAGE_NAME=
885 PACKAGE_TARNAME=
886 @@ -275,42 +580,199 @@ ac_unique_file="libbfd.c"
887 # Factoring default headers for most tests.
888 ac_includes_default="\
889 #include <stdio.h>
890 -#if HAVE_SYS_TYPES_H
891 +#ifdef HAVE_SYS_TYPES_H
892 # include <sys/types.h>
893 #endif
894 -#if HAVE_SYS_STAT_H
895 +#ifdef HAVE_SYS_STAT_H
896 # include <sys/stat.h>
897 #endif
898 -#if STDC_HEADERS
899 +#ifdef STDC_HEADERS
900 # include <stdlib.h>
901 # include <stddef.h>
902 #else
903 -# if HAVE_STDLIB_H
904 +# ifdef HAVE_STDLIB_H
905 # include <stdlib.h>
906 # endif
907 #endif
908 -#if HAVE_STRING_H
909 -# if !STDC_HEADERS && HAVE_MEMORY_H
910 +#ifdef HAVE_STRING_H
911 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
912 # include <memory.h>
913 # endif
914 # include <string.h>
915 #endif
916 -#if HAVE_STRINGS_H
917 +#ifdef HAVE_STRINGS_H
918 # include <strings.h>
919 #endif
920 -#if HAVE_INTTYPES_H
921 +#ifdef HAVE_INTTYPES_H
922 # include <inttypes.h>
923 -#else
924 -# if HAVE_STDINT_H
925 -# include <stdint.h>
926 -# endif
927 #endif
928 -#if HAVE_UNISTD_H
929 +#ifdef HAVE_STDINT_H
930 +# include <stdint.h>
931 +#endif
932 +#ifdef HAVE_UNISTD_H
933 # include <unistd.h>
934 #endif"
935
936 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
937 +ac_subst_vars='SHELL
938 +PATH_SEPARATOR
939 +PACKAGE_NAME
940 +PACKAGE_TARNAME
941 +PACKAGE_VERSION
942 +PACKAGE_STRING
943 +PACKAGE_BUGREPORT
944 +exec_prefix
945 +prefix
946 +program_transform_name
947 +bindir
948 +sbindir
949 +libexecdir
950 +datarootdir
951 +datadir
952 +sysconfdir
953 +sharedstatedir
954 +localstatedir
955 +includedir
956 +oldincludedir
957 +docdir
958 +infodir
959 +htmldir
960 +dvidir
961 +pdfdir
962 +psdir
963 +libdir
964 +localedir
965 +mandir
966 +DEFS
967 +ECHO_C
968 +ECHO_N
969 +ECHO_T
970 +LIBS
971 +build_alias
972 +host_alias
973 +target_alias
974 +build
975 +build_cpu
976 +build_vendor
977 +build_os
978 +host
979 +host_cpu
980 +host_vendor
981 +host_os
982 +target
983 +target_cpu
984 +target_vendor
985 +target_os
986 +CC
987 +CFLAGS
988 +LDFLAGS
989 +CPPFLAGS
990 +ac_ct_CC
991 +EXEEXT
992 +OBJEXT
993 +INSTALL_PROGRAM
994 +INSTALL_SCRIPT
995 +INSTALL_DATA
996 +CYGPATH_W
997 +PACKAGE
998 +VERSION
999 +ACLOCAL
1000 +AUTOCONF
1001 +AUTOMAKE
1002 +AUTOHEADER
1003 +MAKEINFO
1004 +install_sh
1005 +STRIP
1006 +INSTALL_STRIP_PROGRAM
1007 +mkdir_p
1008 +AWK
1009 +SET_MAKE
1010 +am__leading_dot
1011 +AMTAR
1012 +am__tar
1013 +am__untar
1014 +DEPDIR
1015 +am__include
1016 +am__quote
1017 +AMDEP_TRUE
1018 +AMDEP_FALSE
1019 +AMDEPBACKSLASH
1020 +CCDEPMODE
1021 +am__fastdepCC_TRUE
1022 +am__fastdepCC_FALSE
1023 +AR
1024 +RANLIB
1025 +LN_S
1026 +LIBTOOL
1027 +WARN_CFLAGS
1028 +NO_WERROR
1029 +MAINTAINER_MODE_TRUE
1030 +MAINTAINER_MODE_FALSE
1031 +MAINT
1032 +INSTALL_LIBBFD_TRUE
1033 +INSTALL_LIBBFD_FALSE
1034 +host_noncanonical
1035 +target_noncanonical
1036 +bfdlibdir
1037 +bfdincludedir
1038 +CPP
1039 +GREP
1040 +EGREP
1041 +ALLOCA
1042 +USE_NLS
1043 +MSGFMT
1044 +GMSGFMT
1045 +XGETTEXT
1046 +USE_INCLUDED_LIBINTL
1047 +CATALOGS
1048 +CATOBJEXT
1049 +DATADIRNAME
1050 +GMOFILES
1051 +INSTOBJEXT
1052 +INTLDEPS
1053 +INTLLIBS
1054 +INTLOBJS
1055 +POFILES
1056 +POSUB
1057 +INCLUDE_LOCALE_H
1058 +GT_NO
1059 +GT_YES
1060 +MKINSTALLDIRS
1061 +l
1062 +HDEFINES
1063 +BFD_HOST_64BIT_LONG
1064 +BFD_HOST_LONG_LONG
1065 +BFD_HOST_64_BIT_DEFINED
1066 +BFD_HOST_64_BIT
1067 +BFD_HOST_U_64_BIT
1068 +CC_FOR_BUILD
1069 +EXEEXT_FOR_BUILD
1070 +COREFILE
1071 +COREFLAG
1072 +WIN32LDFLAGS
1073 +WIN32LIBADD
1074 +TDEFINES
1075 +wordsize
1076 +bfd_libs
1077 +all_backends
1078 +bfd_backends
1079 +bfd_machines
1080 +bfd_default_target_size
1081 +bfd_file_ptr
1082 +bfd_ufile_ptr
1083 +tdefaults
1084 +LIBOBJS
1085 +LTLIBOBJS'
1086 ac_subst_files=''
1087 + ac_precious_vars='build_alias
1088 +host_alias
1089 +target_alias
1090 +CC
1091 +CFLAGS
1092 +LDFLAGS
1093 +LIBS
1094 +CPPFLAGS
1095 +CPP'
1096 +
1097
1098 # Initialize some variables set by options.
1099 ac_init_help=
1100 @@ -337,34 +799,48 @@ x_libraries=NONE
1101 # and all the variables that are supposed to be based on exec_prefix
1102 # by default will actually change.
1103 # Use braces instead of parens because sh, perl, etc. also accept them.
1104 +# (The list follows the same order as the GNU Coding Standards.)
1105 bindir='${exec_prefix}/bin'
1106 sbindir='${exec_prefix}/sbin'
1107 libexecdir='${exec_prefix}/libexec'
1108 -datadir='${prefix}/share'
1109 +datarootdir='${prefix}/share'
1110 +datadir='${datarootdir}'
1111 sysconfdir='${prefix}/etc'
1112 sharedstatedir='${prefix}/com'
1113 localstatedir='${prefix}/var'
1114 -libdir='${exec_prefix}/lib'
1115 includedir='${prefix}/include'
1116 oldincludedir='/usr/include'
1117 -infodir='${prefix}/info'
1118 -mandir='${prefix}/man'
1119 +docdir='${datarootdir}/doc/${PACKAGE}'
1120 +infodir='${datarootdir}/info'
1121 +htmldir='${docdir}'
1122 +dvidir='${docdir}'
1123 +pdfdir='${docdir}'
1124 +psdir='${docdir}'
1125 +libdir='${exec_prefix}/lib'
1126 +localedir='${datarootdir}/locale'
1127 +mandir='${datarootdir}/man'
1128
1129 ac_prev=
1130 +ac_dashdash=
1131 for ac_option
1132 do
1133 # If the previous option needs an argument, assign it.
1134 if test -n "$ac_prev"; then
1135 - eval "$ac_prev=\$ac_option"
1136 + eval $ac_prev=\$ac_option
1137 ac_prev=
1138 continue
1139 fi
1140
1141 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1142 + case $ac_option in
1143 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1144 + *) ac_optarg=yes ;;
1145 + esac
1146
1147 # Accept the important Cygnus configure options, so we can diagnose typos.
1148
1149 - case $ac_option in
1150 + case $ac_dashdash$ac_option in
1151 + --)
1152 + ac_dashdash=yes ;;
1153
1154 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1155 ac_prev=bindir ;;
1156 @@ -386,33 +862,45 @@ do
1157 --config-cache | -C)
1158 cache_file=config.cache ;;
1159
1160 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1161 + -datadir | --datadir | --datadi | --datad)
1162 ac_prev=datadir ;;
1163 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
1164 - | --da=*)
1165 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
1166 datadir=$ac_optarg ;;
1167
1168 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1169 + | --dataroo | --dataro | --datar)
1170 + ac_prev=datarootdir ;;
1171 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1172 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1173 + datarootdir=$ac_optarg ;;
1174 +
1175 -disable-* | --disable-*)
1176 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1179 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1181 { (exit 1); exit 1; }; }
1182 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1183 - eval "enable_$ac_feature=no" ;;
1184 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1185 + eval enable_$ac_feature=no ;;
1186 +
1187 + -docdir | --docdir | --docdi | --doc | --do)
1188 + ac_prev=docdir ;;
1189 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1190 + docdir=$ac_optarg ;;
1191 +
1192 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1193 + ac_prev=dvidir ;;
1194 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1195 + dvidir=$ac_optarg ;;
1196
1197 -enable-* | --enable-*)
1198 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1201 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1203 { (exit 1); exit 1; }; }
1204 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1205 - case $ac_option in
1206 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1207 - *) ac_optarg=yes ;;
1208 - esac
1209 - eval "enable_$ac_feature='$ac_optarg'" ;;
1210 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1211 + eval enable_$ac_feature=\$ac_optarg ;;
1212
1213 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1214 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1215 @@ -439,6 +927,12 @@ do
1216 -host=* | --host=* | --hos=* | --ho=*)
1217 host_alias=$ac_optarg ;;
1218
1219 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1220 + ac_prev=htmldir ;;
1221 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1222 + | --ht=*)
1223 + htmldir=$ac_optarg ;;
1224 +
1225 -includedir | --includedir | --includedi | --included | --include \
1226 | --includ | --inclu | --incl | --inc)
1227 ac_prev=includedir ;;
1228 @@ -463,13 +957,16 @@ do
1229 | --libexe=* | --libex=* | --libe=*)
1230 libexecdir=$ac_optarg ;;
1231
1232 + -localedir | --localedir | --localedi | --localed | --locale)
1233 + ac_prev=localedir ;;
1234 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1235 + localedir=$ac_optarg ;;
1236 +
1237 -localstatedir | --localstatedir | --localstatedi | --localstated \
1238 - | --localstate | --localstat | --localsta | --localst \
1239 - | --locals | --local | --loca | --loc | --lo)
1240 + | --localstate | --localstat | --localsta | --localst | --locals)
1241 ac_prev=localstatedir ;;
1242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1243 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
1244 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1245 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1246 localstatedir=$ac_optarg ;;
1247
1248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1249 @@ -534,6 +1031,16 @@ do
1250 | --progr-tra=* | --program-tr=* | --program-t=*)
1251 program_transform_name=$ac_optarg ;;
1252
1253 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1254 + ac_prev=pdfdir ;;
1255 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1256 + pdfdir=$ac_optarg ;;
1257 +
1258 + -psdir | --psdir | --psdi | --psd | --ps)
1259 + ac_prev=psdir ;;
1260 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1261 + psdir=$ac_optarg ;;
1262 +
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1265 silent=yes ;;
1266 @@ -586,24 +1093,20 @@ do
1267 -with-* | --with-*)
1268 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1271 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid package name: $ac_package" >&2
1273 { (exit 1); exit 1; }; }
1274 - ac_package=`echo $ac_package| sed 's/-/_/g'`
1275 - case $ac_option in
1276 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1277 - *) ac_optarg=yes ;;
1278 - esac
1279 - eval "with_$ac_package='$ac_optarg'" ;;
1280 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1281 + eval with_$ac_package=\$ac_optarg ;;
1282
1283 -without-* | --without-*)
1284 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285 # Reject names that are not valid shell variable names.
1286 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 { echo "$as_me: error: invalid package name: $ac_package" >&2
1289 { (exit 1); exit 1; }; }
1290 - ac_package=`echo $ac_package | sed 's/-/_/g'`
1291 - eval "with_$ac_package=no" ;;
1292 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1293 + eval with_$ac_package=no ;;
1294
1295 --x)
1296 # Obsolete; use --with-x.
1297 @@ -634,8 +1137,7 @@ Try \`$0 --help' for more information."
1298 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1299 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1300 { (exit 1); exit 1; }; }
1301 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
1302 - eval "$ac_envvar='$ac_optarg'"
1303 + eval $ac_envvar=\$ac_optarg
1304 export $ac_envvar ;;
1305
1306 *)
1307 @@ -655,27 +1157,19 @@ if test -n "$ac_prev"; then
1308 { (exit 1); exit 1; }; }
1309 fi
1310
1311 -# Be sure to have absolute paths.
1312 -for ac_var in exec_prefix prefix
1313 -do
1314 - eval ac_val=$`echo $ac_var`
1315 - case $ac_val in
1316 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1317 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1318 - { (exit 1); exit 1; }; };;
1319 - esac
1320 -done
1321 -
1322 -# Be sure to have absolute paths.
1323 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1324 - localstatedir libdir includedir oldincludedir infodir mandir
1325 +# Be sure to have absolute directory names.
1326 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 + datadir sysconfdir sharedstatedir localstatedir includedir \
1328 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 + libdir localedir mandir
1330 do
1331 - eval ac_val=$`echo $ac_var`
1332 + eval ac_val=\$$ac_var
1333 case $ac_val in
1334 - [\\/$]* | ?:[\\/]* ) ;;
1335 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1336 - { (exit 1); exit 1; }; };;
1337 + [\\/$]* | ?:[\\/]* ) continue;;
1338 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1341 + { (exit 1); exit 1; }; }
1342 done
1343
1344 # There might be people who depend on the old broken behavior: `$host'
1345 @@ -702,74 +1196,76 @@ test -n "$host_alias" && ac_tool_prefix=
1346 test "$silent" = yes && exec 6>/dev/null
1347
1348
1349 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 +ac_ls_di=`ls -di .` &&
1351 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352 + { echo "$as_me: error: Working directory cannot be determined" >&2
1353 + { (exit 1); exit 1; }; }
1354 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 + { echo "$as_me: error: pwd does not report name of working directory" >&2
1356 + { (exit 1); exit 1; }; }
1357 +
1358 +
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 - # Try the directory containing this script, then its parent.
1363 - ac_confdir=`(dirname "$0") 2>/dev/null ||
1364 + # Try the directory containing this script, then the parent directory.
1365 + ac_confdir=`$as_dirname -- "$0" ||
1366 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$0" : 'X\(//\)[^/]' \| \
1368 X"$0" : 'X\(//\)$' \| \
1369 - X"$0" : 'X\(/\)' \| \
1370 - . : '\(.\)' 2>/dev/null ||
1371 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1372 echo X"$0" |
1373 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1374 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1375 - /^X\(\/\/\)$/{ s//\1/; q; }
1376 - /^X\(\/\).*/{ s//\1/; q; }
1377 - s/.*/./; q'`
1378 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 + s//\1/
1380 + q
1381 + }
1382 + /^X\(\/\/\)[^/].*/{
1383 + s//\1/
1384 + q
1385 + }
1386 + /^X\(\/\/\)$/{
1387 + s//\1/
1388 + q
1389 + }
1390 + /^X\(\/\).*/{
1391 + s//\1/
1392 + q
1393 + }
1394 + s/.*/./; q'`
1395 srcdir=$ac_confdir
1396 - if test ! -r $srcdir/$ac_unique_file; then
1397 + if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1399 fi
1400 else
1401 ac_srcdir_defaulted=no
1402 fi
1403 -if test ! -r $srcdir/$ac_unique_file; then
1404 - if test "$ac_srcdir_defaulted" = yes; then
1405 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1406 - { (exit 1); exit 1; }; }
1407 - else
1408 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1409 - { (exit 1); exit 1; }; }
1410 - fi
1411 -fi
1412 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
1413 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1414 - { (exit 1); exit 1; }; }
1415 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1416 -ac_env_build_alias_set=${build_alias+set}
1417 -ac_env_build_alias_value=$build_alias
1418 -ac_cv_env_build_alias_set=${build_alias+set}
1419 -ac_cv_env_build_alias_value=$build_alias
1420 -ac_env_host_alias_set=${host_alias+set}
1421 -ac_env_host_alias_value=$host_alias
1422 -ac_cv_env_host_alias_set=${host_alias+set}
1423 -ac_cv_env_host_alias_value=$host_alias
1424 -ac_env_target_alias_set=${target_alias+set}
1425 -ac_env_target_alias_value=$target_alias
1426 -ac_cv_env_target_alias_set=${target_alias+set}
1427 -ac_cv_env_target_alias_value=$target_alias
1428 -ac_env_CC_set=${CC+set}
1429 -ac_env_CC_value=$CC
1430 -ac_cv_env_CC_set=${CC+set}
1431 -ac_cv_env_CC_value=$CC
1432 -ac_env_CFLAGS_set=${CFLAGS+set}
1433 -ac_env_CFLAGS_value=$CFLAGS
1434 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
1435 -ac_cv_env_CFLAGS_value=$CFLAGS
1436 -ac_env_LDFLAGS_set=${LDFLAGS+set}
1437 -ac_env_LDFLAGS_value=$LDFLAGS
1438 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
1439 -ac_cv_env_LDFLAGS_value=$LDFLAGS
1440 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1441 -ac_env_CPPFLAGS_value=$CPPFLAGS
1442 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1443 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1444 -ac_env_CPP_set=${CPP+set}
1445 -ac_env_CPP_value=$CPP
1446 -ac_cv_env_CPP_set=${CPP+set}
1447 -ac_cv_env_CPP_value=$CPP
1448 +if test ! -r "$srcdir/$ac_unique_file"; then
1449 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1451 + { (exit 1); exit 1; }; }
1452 +fi
1453 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 +ac_abs_confdir=`(
1455 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1456 + { (exit 1); exit 1; }; }
1457 + pwd)`
1458 +# When building in place, set srcdir=.
1459 +if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 + srcdir=.
1461 +fi
1462 +# Remove unnecessary trailing slashes from srcdir.
1463 +# Double slashes in file names in object file debugging info
1464 +# mess up M-x gdb in Emacs.
1465 +case $srcdir in
1466 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 +esac
1468 +for ac_var in $ac_precious_vars; do
1469 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 + eval ac_env_${ac_var}_value=\$${ac_var}
1471 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 +done
1474
1475 #
1476 # Report the --help message.
1477 @@ -798,9 +1294,6 @@ Configuration:
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
1481 -_ACEOF
1482 -
1483 - cat <<_ACEOF
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 @@ -818,15 +1311,22 @@ Fine tuning of the installation director
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 - --datadir=DIR read-only architecture-independent data [PREFIX/share]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 - --infodir=DIR info documentation [PREFIX/info]
1499 - --mandir=DIR man documentation [PREFIX/man]
1500 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502 + --infodir=DIR info documentation [DATAROOTDIR/info]
1503 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504 + --mandir=DIR man documentation [DATAROOTDIR/man]
1505 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1506 + --htmldir=DIR html documentation [DOCDIR]
1507 + --dvidir=DIR dvi documentation [DOCDIR]
1508 + --pdfdir=DIR pdf documentation [DOCDIR]
1509 + --psdir=DIR ps documentation [DOCDIR]
1510 _ACEOF
1511
1512 cat <<\_ACEOF
1513 @@ -880,126 +1380,95 @@ Some influential environment variables:
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1518 - headers in a nonstandard directory <include dir>
1519 + LIBS libraries to pass to the linker, e.g. -l<library>
1520 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1521 + you have headers in a nonstandard directory <include dir>
1522 CPP C preprocessor
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 _ACEOF
1528 +ac_status=$?
1529 fi
1530
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 - ac_popdir=`pwd`
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 - test -d $ac_dir || continue
1536 + test -d "$ac_dir" || continue
1537 ac_builddir=.
1538
1539 -if test "$ac_dir" != .; then
1540 +case "$ac_dir" in
1541 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 +*)
1543 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1544 - # A "../" for each directory in $ac_dir_suffix.
1545 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1546 -else
1547 - ac_dir_suffix= ac_top_builddir=
1548 -fi
1549 + # A ".." for each directory in $ac_dir_suffix.
1550 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1551 + case $ac_top_builddir_sub in
1552 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 + esac ;;
1555 +esac
1556 +ac_abs_top_builddir=$ac_pwd
1557 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 +# for backward compatibility:
1559 +ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562 - .) # No --srcdir option. We are building in place.
1563 + .) # We are building in place.
1564 ac_srcdir=.
1565 - if test -z "$ac_top_builddir"; then
1566 - ac_top_srcdir=.
1567 - else
1568 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1569 - fi ;;
1570 - [\\/]* | ?:[\\/]* ) # Absolute path.
1571 + ac_top_srcdir=$ac_top_builddir_sub
1572 + ac_abs_top_srcdir=$ac_pwd ;;
1573 + [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 - ac_top_srcdir=$srcdir ;;
1576 - *) # Relative path.
1577 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1578 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
1579 -esac
1580 -
1581 -# Do not use `cd foo && pwd` to compute absolute paths, because
1582 -# the directories may not exist.
1583 -case `pwd` in
1584 -.) ac_abs_builddir="$ac_dir";;
1585 -*)
1586 - case "$ac_dir" in
1587 - .) ac_abs_builddir=`pwd`;;
1588 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1589 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
1590 - esac;;
1591 -esac
1592 -case $ac_abs_builddir in
1593 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
1594 -*)
1595 - case ${ac_top_builddir}. in
1596 - .) ac_abs_top_builddir=$ac_abs_builddir;;
1597 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1598 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1599 - esac;;
1600 -esac
1601 -case $ac_abs_builddir in
1602 -.) ac_abs_srcdir=$ac_srcdir;;
1603 -*)
1604 - case $ac_srcdir in
1605 - .) ac_abs_srcdir=$ac_abs_builddir;;
1606 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1607 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1608 - esac;;
1609 -esac
1610 -case $ac_abs_builddir in
1611 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
1612 -*)
1613 - case $ac_top_srcdir in
1614 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
1615 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1616 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1617 - esac;;
1618 -esac
1619 -
1620 - cd $ac_dir
1621 - # Check for guested configure; otherwise get Cygnus style configure.
1622 - if test -f $ac_srcdir/configure.gnu; then
1623 - echo
1624 - $SHELL $ac_srcdir/configure.gnu --help=recursive
1625 - elif test -f $ac_srcdir/configure; then
1626 - echo
1627 - $SHELL $ac_srcdir/configure --help=recursive
1628 - elif test -f $ac_srcdir/configure.ac ||
1629 - test -f $ac_srcdir/configure.in; then
1630 - echo
1631 - $ac_configure --help
1632 + ac_top_srcdir=$srcdir
1633 + ac_abs_top_srcdir=$srcdir ;;
1634 + *) # Relative name.
1635 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 + ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 +esac
1639 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640 +
1641 + cd "$ac_dir" || { ac_status=$?; continue; }
1642 + # Check for guested configure.
1643 + if test -f "$ac_srcdir/configure.gnu"; then
1644 + echo &&
1645 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 + elif test -f "$ac_srcdir/configure"; then
1647 + echo &&
1648 + $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 - fi
1652 - cd $ac_popdir
1653 + fi || ac_status=$?
1654 + cd "$ac_pwd" || { ac_status=$?; break; }
1655 done
1656 fi
1657
1658 -test -n "$ac_init_help" && exit 0
1659 +test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1661 cat <<\_ACEOF
1662 +configure
1663 +generated by GNU Autoconf 2.61
1664
1665 -Copyright (C) 2003 Free Software Foundation, Inc.
1666 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 - exit 0
1672 + exit
1673 fi
1674 -exec 5>config.log
1675 -cat >&5 <<_ACEOF
1676 +cat >config.log <<_ACEOF
1677 This file contains any messages produced by compilers while
1678 running configure, to aid debugging if configure makes a mistake.
1679
1680 It was created by $as_me, which was
1681 -generated by GNU Autoconf 2.59. Invocation command line was
1682 +generated by GNU Autoconf 2.61. Invocation command line was
1683
1684 $ $0 $@
1685
1686 _ACEOF
1687 +exec 5>>config.log
1688 {
1689 cat <<_ASUNAME
1690 ## --------- ##
1691 @@ -1018,7 +1487,7 @@ uname -v = `(uname -v) 2>/dev/null || ec
1692 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1693 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1694 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1695 -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1696 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1697 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1698 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1699 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1700 @@ -1032,6 +1501,7 @@ do
1701 test -z "$as_dir" && as_dir=.
1702 echo "PATH: $as_dir"
1703 done
1704 +IFS=$as_save_IFS
1705
1706 } >&5
1707
1708 @@ -1053,7 +1523,6 @@ _ACEOF
1709 ac_configure_args=
1710 ac_configure_args0=
1711 ac_configure_args1=
1712 -ac_sep=
1713 ac_must_keep_next=false
1714 for ac_pass in 1 2
1715 do
1716 @@ -1064,7 +1533,7 @@ do
1717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1718 | -silent | --silent | --silen | --sile | --sil)
1719 continue ;;
1720 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1721 + *\'*)
1722 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 esac
1724 case $ac_pass in
1725 @@ -1086,9 +1555,7 @@ do
1726 -* ) ac_must_keep_next=true ;;
1727 esac
1728 fi
1729 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1730 - # Get rid of the leading space.
1731 - ac_sep=" "
1732 + ac_configure_args="$ac_configure_args '$ac_arg'"
1733 ;;
1734 esac
1735 done
1736 @@ -1099,8 +1566,8 @@ $as_unset ac_configure_args1 || test "${
1737 # When interrupted or exit'd, cleanup temporary files, and complete
1738 # config.log. We remove comments because anyway the quotes in there
1739 # would cause problems or look ugly.
1740 -# WARNING: Be sure not to use single quotes in there, as some shells,
1741 -# such as our DU 5.0 friend, will then `close' the trap.
1742 +# WARNING: Use '\'' to represent an apostrophe within the trap.
1743 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744 trap 'exit_status=$?
1745 # Save into config.log some information that might help in debugging.
1746 {
1747 @@ -1113,20 +1580,34 @@ trap 'exit_status=$?
1748 _ASBOX
1749 echo
1750 # The following way of writing the cache mishandles newlines in values,
1751 -{
1752 +(
1753 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1754 + eval ac_val=\$$ac_var
1755 + case $ac_val in #(
1756 + *${as_nl}*)
1757 + case $ac_var in #(
1758 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1759 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1760 + esac
1761 + case $ac_var in #(
1762 + _ | IFS | as_nl) ;; #(
1763 + *) $as_unset $ac_var ;;
1764 + esac ;;
1765 + esac
1766 + done
1767 (set) 2>&1 |
1768 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1769 - *ac_space=\ *)
1770 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1771 + *${as_nl}ac_space=\ *)
1772 sed -n \
1773 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1774 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1775 - ;;
1776 + "s/'\''/'\''\\\\'\'''\''/g;
1777 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1778 + ;; #(
1779 *)
1780 - sed -n \
1781 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1782 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1783 ;;
1784 - esac;
1785 -}
1786 + esac |
1787 + sort
1788 +)
1789 echo
1790
1791 cat <<\_ASBOX
1792 @@ -1137,22 +1618,28 @@ _ASBOX
1793 echo
1794 for ac_var in $ac_subst_vars
1795 do
1796 - eval ac_val=$`echo $ac_var`
1797 - echo "$ac_var='"'"'$ac_val'"'"'"
1798 + eval ac_val=\$$ac_var
1799 + case $ac_val in
1800 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801 + esac
1802 + echo "$ac_var='\''$ac_val'\''"
1803 done | sort
1804 echo
1805
1806 if test -n "$ac_subst_files"; then
1807 cat <<\_ASBOX
1808 -## ------------- ##
1809 -## Output files. ##
1810 -## ------------- ##
1811 +## ------------------- ##
1812 +## File substitutions. ##
1813 +## ------------------- ##
1814 _ASBOX
1815 echo
1816 for ac_var in $ac_subst_files
1817 do
1818 - eval ac_val=$`echo $ac_var`
1819 - echo "$ac_var='"'"'$ac_val'"'"'"
1820 + eval ac_val=\$$ac_var
1821 + case $ac_val in
1822 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 + esac
1824 + echo "$ac_var='\''$ac_val'\''"
1825 done | sort
1826 echo
1827 fi
1828 @@ -1164,26 +1651,24 @@ _ASBOX
1829 ## ----------- ##
1830 _ASBOX
1831 echo
1832 - sed "/^$/d" confdefs.h | sort
1833 + cat confdefs.h
1834 echo
1835 fi
1836 test "$ac_signal" != 0 &&
1837 echo "$as_me: caught signal $ac_signal"
1838 echo "$as_me: exit $exit_status"
1839 } >&5
1840 - rm -f core *.core &&
1841 - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1842 + rm -f core *.core core.conftest.* &&
1843 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844 exit $exit_status
1845 - ' 0
1846 +' 0
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 done
1850 ac_signal=0
1851
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 -rm -rf conftest* confdefs.h
1854 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1855 -echo >confdefs.h
1856 +rm -f -r conftest* confdefs.h
1857
1858 # Predefined preprocessor variables.
1859
1860 @@ -1214,14 +1699,17 @@ _ACEOF
1861
1862 # Let the site file select an alternate cache file if it wants to.
1863 # Prefer explicitly selected file to automatically selected ones.
1864 -if test -z "$CONFIG_SITE"; then
1865 - if test "x$prefix" != xNONE; then
1866 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1867 - else
1868 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1869 - fi
1870 +if test -n "$CONFIG_SITE"; then
1871 + set x "$CONFIG_SITE"
1872 +elif test "x$prefix" != xNONE; then
1873 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
1874 +else
1875 + set x "$ac_default_prefix/share/config.site" \
1876 + "$ac_default_prefix/etc/config.site"
1877 fi
1878 -for ac_site_file in $CONFIG_SITE; do
1879 +shift
1880 +for ac_site_file
1881 +do
1882 if test -r "$ac_site_file"; then
1883 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1884 echo "$as_me: loading site script $ac_site_file" >&6;}
1885 @@ -1237,8 +1725,8 @@ if test -r "$cache_file"; then
1886 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1887 echo "$as_me: loading cache $cache_file" >&6;}
1888 case $cache_file in
1889 - [\\/]* | ?:[\\/]* ) . $cache_file;;
1890 - *) . ./$cache_file;;
1891 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
1892 + *) . "./$cache_file";;
1893 esac
1894 fi
1895 else
1896 @@ -1250,12 +1738,11 @@ fi
1897 # Check that the precious variables saved in the cache have kept the same
1898 # value.
1899 ac_cache_corrupted=false
1900 -for ac_var in `(set) 2>&1 |
1901 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1902 +for ac_var in $ac_precious_vars; do
1903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1904 eval ac_new_set=\$ac_env_${ac_var}_set
1905 - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1906 - eval ac_new_val="\$ac_env_${ac_var}_value"
1907 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
1908 + eval ac_new_val=\$ac_env_${ac_var}_value
1909 case $ac_old_set,$ac_new_set in
1910 set,)
1911 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1912 @@ -1280,8 +1767,7 @@ echo "$as_me: current value: $ac_new_v
1913 # Pass precious variables to config.status.
1914 if test "$ac_new_set" = set; then
1915 case $ac_new_val in
1916 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1917 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 *) ac_arg=$ac_var=$ac_new_val ;;
1920 esac
1921 case " $ac_configure_args " in
1922 @@ -1298,12 +1784,6 @@ echo "$as_me: error: run \`make distclea
1923 { (exit 1); exit 1; }; }
1924 fi
1925
1926 -ac_ext=c
1927 -ac_cpp='$CPP $CPPFLAGS'
1928 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931 -
1932
1933
1934
1935 @@ -1320,109 +1800,164 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936
1937
1938
1939 +ac_ext=c
1940 +ac_cpp='$CPP $CPPFLAGS'
1941 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944
1945
1946
1947
1948 ac_aux_dir=
1949 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1950 - if test -f $ac_dir/install-sh; then
1951 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1952 + if test -f "$ac_dir/install-sh"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 break
1956 - elif test -f $ac_dir/install.sh; then
1957 + elif test -f "$ac_dir/install.sh"; then
1958 ac_aux_dir=$ac_dir
1959 ac_install_sh="$ac_aux_dir/install.sh -c"
1960 break
1961 - elif test -f $ac_dir/shtool; then
1962 + elif test -f "$ac_dir/shtool"; then
1963 ac_aux_dir=$ac_dir
1964 ac_install_sh="$ac_aux_dir/shtool install -c"
1965 break
1966 fi
1967 done
1968 if test -z "$ac_aux_dir"; then
1969 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1970 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1971 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1972 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1973 { (exit 1); exit 1; }; }
1974 fi
1975 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1976 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1977 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1978 +
1979 +# These three variables are undocumented and unsupported,
1980 +# and are intended to be withdrawn in a future Autoconf release.
1981 +# They can cause serious problems if a builder's source tree is in a directory
1982 +# whose full name contains unusual characters.
1983 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1984 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1985 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1986 +
1987
1988 # Make sure we can run config.sub.
1989 -$ac_config_sub sun4 >/dev/null 2>&1 ||
1990 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1991 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1992 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1993 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1994 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1995 { (exit 1); exit 1; }; }
1996
1997 -echo "$as_me:$LINENO: checking build system type" >&5
1998 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
1999 +{ echo "$as_me:$LINENO: checking build system type" >&5
2000 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2001 if test "${ac_cv_build+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004 - ac_cv_build_alias=$build_alias
2005 -test -z "$ac_cv_build_alias" &&
2006 - ac_cv_build_alias=`$ac_config_guess`
2007 -test -z "$ac_cv_build_alias" &&
2008 + ac_build_alias=$build_alias
2009 +test "x$ac_build_alias" = x &&
2010 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2011 +test "x$ac_build_alias" = x &&
2012 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2013 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2014 { (exit 1); exit 1; }; }
2015 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2016 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2017 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2018 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2019 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2020 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2021 { (exit 1); exit 1; }; }
2022
2023 fi
2024 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2025 -echo "${ECHO_T}$ac_cv_build" >&6
2026 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2027 +echo "${ECHO_T}$ac_cv_build" >&6; }
2028 +case $ac_cv_build in
2029 +*-*-*) ;;
2030 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2031 +echo "$as_me: error: invalid value of canonical build" >&2;}
2032 + { (exit 1); exit 1; }; };;
2033 +esac
2034 build=$ac_cv_build
2035 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2036 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2037 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2038 +ac_save_IFS=$IFS; IFS='-'
2039 +set x $ac_cv_build
2040 +shift
2041 +build_cpu=$1
2042 +build_vendor=$2
2043 +shift; shift
2044 +# Remember, the first character of IFS is used to create $*,
2045 +# except with old shells:
2046 +build_os=$*
2047 +IFS=$ac_save_IFS
2048 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2049
2050
2051 -echo "$as_me:$LINENO: checking host system type" >&5
2052 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
2053 +{ echo "$as_me:$LINENO: checking host system type" >&5
2054 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2055 if test "${ac_cv_host+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 - ac_cv_host_alias=$host_alias
2059 -test -z "$ac_cv_host_alias" &&
2060 - ac_cv_host_alias=$ac_cv_build_alias
2061 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2062 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2063 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2064 + if test "x$host_alias" = x; then
2065 + ac_cv_host=$ac_cv_build
2066 +else
2067 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2068 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2069 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2070 { (exit 1); exit 1; }; }
2071 +fi
2072
2073 fi
2074 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2075 -echo "${ECHO_T}$ac_cv_host" >&6
2076 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 +echo "${ECHO_T}$ac_cv_host" >&6; }
2078 +case $ac_cv_host in
2079 +*-*-*) ;;
2080 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 +echo "$as_me: error: invalid value of canonical host" >&2;}
2082 + { (exit 1); exit 1; }; };;
2083 +esac
2084 host=$ac_cv_host
2085 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2086 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2087 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2088 +ac_save_IFS=$IFS; IFS='-'
2089 +set x $ac_cv_host
2090 +shift
2091 +host_cpu=$1
2092 +host_vendor=$2
2093 +shift; shift
2094 +# Remember, the first character of IFS is used to create $*,
2095 +# except with old shells:
2096 +host_os=$*
2097 +IFS=$ac_save_IFS
2098 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2099
2100
2101 -echo "$as_me:$LINENO: checking target system type" >&5
2102 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
2103 +{ echo "$as_me:$LINENO: checking target system type" >&5
2104 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2105 if test "${ac_cv_target+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 - ac_cv_target_alias=$target_alias
2109 -test "x$ac_cv_target_alias" = "x" &&
2110 - ac_cv_target_alias=$ac_cv_host_alias
2111 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2112 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2113 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2114 + if test "x$target_alias" = x; then
2115 + ac_cv_target=$ac_cv_host
2116 +else
2117 + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2118 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2119 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2120 { (exit 1); exit 1; }; }
2121 +fi
2122
2123 fi
2124 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2125 -echo "${ECHO_T}$ac_cv_target" >&6
2126 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2127 +echo "${ECHO_T}$ac_cv_target" >&6; }
2128 +case $ac_cv_target in
2129 +*-*-*) ;;
2130 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2131 +echo "$as_me: error: invalid value of canonical target" >&2;}
2132 + { (exit 1); exit 1; }; };;
2133 +esac
2134 target=$ac_cv_target
2135 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2136 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2137 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2138 +ac_save_IFS=$IFS; IFS='-'
2139 +set x $ac_cv_target
2140 +shift
2141 +target_cpu=$1
2142 +target_vendor=$2
2143 +shift; shift
2144 +# Remember, the first character of IFS is used to create $*,
2145 +# except with old shells:
2146 +target_os=$*
2147 +IFS=$ac_save_IFS
2148 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2149
2150
2151 # The aliases save the names the user supplied, while $host etc.
2152 @@ -1439,8 +1974,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153 if test -n "$ac_tool_prefix"; then
2154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2155 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2156 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 @@ -1453,32 +1988,34 @@ do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 break 2
2172 fi
2173 done
2174 done
2175 +IFS=$as_save_IFS
2176
2177 fi
2178 fi
2179 CC=$ac_cv_prog_CC
2180 if test -n "$CC"; then
2181 - echo "$as_me:$LINENO: result: $CC" >&5
2182 -echo "${ECHO_T}$CC" >&6
2183 + { echo "$as_me:$LINENO: result: $CC" >&5
2184 +echo "${ECHO_T}$CC" >&6; }
2185 else
2186 - echo "$as_me:$LINENO: result: no" >&5
2187 -echo "${ECHO_T}no" >&6
2188 + { echo "$as_me:$LINENO: result: no" >&5
2189 +echo "${ECHO_T}no" >&6; }
2190 fi
2191
2192 +
2193 fi
2194 if test -z "$ac_cv_prog_CC"; then
2195 ac_ct_CC=$CC
2196 # Extract the first word of "gcc", so it can be a program name with args.
2197 set dummy gcc; ac_word=$2
2198 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2200 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 @@ -1491,36 +2028,51 @@ do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211 ac_cv_prog_ac_ct_CC="gcc"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 break 2
2214 fi
2215 done
2216 done
2217 +IFS=$as_save_IFS
2218
2219 fi
2220 fi
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 -echo "${ECHO_T}$ac_ct_CC" >&6
2225 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2227 else
2228 - echo "$as_me:$LINENO: result: no" >&5
2229 -echo "${ECHO_T}no" >&6
2230 + { echo "$as_me:$LINENO: result: no" >&5
2231 +echo "${ECHO_T}no" >&6; }
2232 fi
2233
2234 - CC=$ac_ct_CC
2235 + if test "x$ac_ct_CC" = x; then
2236 + CC=""
2237 + else
2238 + case $cross_compiling:$ac_tool_warned in
2239 +yes:)
2240 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2241 +whose name does not start with the host triplet. If you think this
2242 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2243 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2244 +whose name does not start with the host triplet. If you think this
2245 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2246 +ac_tool_warned=yes ;;
2247 +esac
2248 + CC=$ac_ct_CC
2249 + fi
2250 else
2251 CC="$ac_cv_prog_CC"
2252 fi
2253
2254 if test -z "$CC"; then
2255 - if test -n "$ac_tool_prefix"; then
2256 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2257 + if test -n "$ac_tool_prefix"; then
2258 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2259 set dummy ${ac_tool_prefix}cc; ac_word=$2
2260 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267 @@ -1533,74 +2085,34 @@ do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2273 ac_cv_prog_CC="${ac_tool_prefix}cc"
2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 break 2
2276 fi
2277 done
2278 done
2279 +IFS=$as_save_IFS
2280
2281 fi
2282 fi
2283 CC=$ac_cv_prog_CC
2284 if test -n "$CC"; then
2285 - echo "$as_me:$LINENO: result: $CC" >&5
2286 -echo "${ECHO_T}$CC" >&6
2287 -else
2288 - echo "$as_me:$LINENO: result: no" >&5
2289 -echo "${ECHO_T}no" >&6
2290 -fi
2291 -
2292 -fi
2293 -if test -z "$ac_cv_prog_CC"; then
2294 - ac_ct_CC=$CC
2295 - # Extract the first word of "cc", so it can be a program name with args.
2296 -set dummy cc; ac_word=$2
2297 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2300 - echo $ECHO_N "(cached) $ECHO_C" >&6
2301 -else
2302 - if test -n "$ac_ct_CC"; then
2303 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2304 -else
2305 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 -for as_dir in $PATH
2307 -do
2308 - IFS=$as_save_IFS
2309 - test -z "$as_dir" && as_dir=.
2310 - for ac_exec_ext in '' $ac_executable_extensions; do
2311 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312 - ac_cv_prog_ac_ct_CC="cc"
2313 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314 - break 2
2315 - fi
2316 -done
2317 -done
2318 -
2319 -fi
2320 -fi
2321 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2322 -if test -n "$ac_ct_CC"; then
2323 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2324 -echo "${ECHO_T}$ac_ct_CC" >&6
2325 + { echo "$as_me:$LINENO: result: $CC" >&5
2326 +echo "${ECHO_T}$CC" >&6; }
2327 else
2328 - echo "$as_me:$LINENO: result: no" >&5
2329 -echo "${ECHO_T}no" >&6
2330 + { echo "$as_me:$LINENO: result: no" >&5
2331 +echo "${ECHO_T}no" >&6; }
2332 fi
2333
2334 - CC=$ac_ct_CC
2335 -else
2336 - CC="$ac_cv_prog_CC"
2337 -fi
2338
2339 + fi
2340 fi
2341 if test -z "$CC"; then
2342 # Extract the first word of "cc", so it can be a program name with args.
2343 set dummy cc; ac_word=$2
2344 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2346 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_CC+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 @@ -1614,7 +2126,7 @@ do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2358 ac_prog_rejected=yes
2359 continue
2360 @@ -1625,6 +2137,7 @@ do
2361 fi
2362 done
2363 done
2364 +IFS=$as_save_IFS
2365
2366 if test $ac_prog_rejected = yes; then
2367 # We found a bogon in the path, so make sure we never use it.
2368 @@ -1642,22 +2155,23 @@ fi
2369 fi
2370 CC=$ac_cv_prog_CC
2371 if test -n "$CC"; then
2372 - echo "$as_me:$LINENO: result: $CC" >&5
2373 -echo "${ECHO_T}$CC" >&6
2374 + { echo "$as_me:$LINENO: result: $CC" >&5
2375 +echo "${ECHO_T}$CC" >&6; }
2376 else
2377 - echo "$as_me:$LINENO: result: no" >&5
2378 -echo "${ECHO_T}no" >&6
2379 + { echo "$as_me:$LINENO: result: no" >&5
2380 +echo "${ECHO_T}no" >&6; }
2381 fi
2382
2383 +
2384 fi
2385 if test -z "$CC"; then
2386 if test -n "$ac_tool_prefix"; then
2387 - for ac_prog in cl
2388 + for ac_prog in cl.exe
2389 do
2390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2392 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 @@ -1670,36 +2184,38 @@ do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 break 2
2408 fi
2409 done
2410 done
2411 +IFS=$as_save_IFS
2412
2413 fi
2414 fi
2415 CC=$ac_cv_prog_CC
2416 if test -n "$CC"; then
2417 - echo "$as_me:$LINENO: result: $CC" >&5
2418 -echo "${ECHO_T}$CC" >&6
2419 + { echo "$as_me:$LINENO: result: $CC" >&5
2420 +echo "${ECHO_T}$CC" >&6; }
2421 else
2422 - echo "$as_me:$LINENO: result: no" >&5
2423 -echo "${ECHO_T}no" >&6
2424 + { echo "$as_me:$LINENO: result: no" >&5
2425 +echo "${ECHO_T}no" >&6; }
2426 fi
2427
2428 +
2429 test -n "$CC" && break
2430 done
2431 fi
2432 if test -z "$CC"; then
2433 ac_ct_CC=$CC
2434 - for ac_prog in cl
2435 + for ac_prog in cl.exe
2436 do
2437 # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2441 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 @@ -1712,29 +2228,45 @@ do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_ac_ct_CC="$ac_prog"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2455 fi
2456 done
2457 done
2458 +IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2463 if test -n "$ac_ct_CC"; then
2464 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2465 -echo "${ECHO_T}$ac_ct_CC" >&6
2466 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2468 else
2469 - echo "$as_me:$LINENO: result: no" >&5
2470 -echo "${ECHO_T}no" >&6
2471 + { echo "$as_me:$LINENO: result: no" >&5
2472 +echo "${ECHO_T}no" >&6; }
2473 fi
2474
2475 +
2476 test -n "$ac_ct_CC" && break
2477 done
2478
2479 - CC=$ac_ct_CC
2480 + if test "x$ac_ct_CC" = x; then
2481 + CC=""
2482 + else
2483 + case $cross_compiling:$ac_tool_warned in
2484 +yes:)
2485 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2486 +whose name does not start with the host triplet. If you think this
2487 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2488 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2489 +whose name does not start with the host triplet. If you think this
2490 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2491 +ac_tool_warned=yes ;;
2492 +esac
2493 + CC=$ac_ct_CC
2494 + fi
2495 fi
2496
2497 fi
2498 @@ -1747,21 +2279,35 @@ See \`config.log' for more details." >&2
2499 { (exit 1); exit 1; }; }
2500
2501 # Provide some information about the compiler.
2502 -echo "$as_me:$LINENO:" \
2503 - "checking for C compiler version" >&5
2504 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2505 ac_compiler=`set X $ac_compile; echo $2`
2506 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2507 - (eval $ac_compiler --version </dev/null >&5) 2>&5
2508 +{ (ac_try="$ac_compiler --version >&5"
2509 +case "(($ac_try" in
2510 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 + *) ac_try_echo=$ac_try;;
2512 +esac
2513 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 + (eval "$ac_compiler --version >&5") 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }
2518 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2519 - (eval $ac_compiler -v </dev/null >&5) 2>&5
2520 +{ (ac_try="$ac_compiler -v >&5"
2521 +case "(($ac_try" in
2522 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 + *) ac_try_echo=$ac_try;;
2524 +esac
2525 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 + (eval "$ac_compiler -v >&5") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2531 - (eval $ac_compiler -V </dev/null >&5) 2>&5
2532 +{ (ac_try="$ac_compiler -V >&5"
2533 +case "(($ac_try" in
2534 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 + *) ac_try_echo=$ac_try;;
2536 +esac
2537 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 + (eval "$ac_compiler -V >&5") 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }
2542 @@ -1786,47 +2332,77 @@ ac_clean_files="$ac_clean_files a.out a.
2543 # Try to create an executable without -o first, disregard a.out.
2544 # It will help us diagnose broken compilers, and finding out an intuition
2545 # of exeext.
2546 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2547 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2548 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2549 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2550 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2551 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2552 - (eval $ac_link_default) 2>&5
2553 +#
2554 +# List of possible output files, starting from the most likely.
2555 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2556 +# only as a last resort. b.out is created by i960 compilers.
2557 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2558 +#
2559 +# The IRIX 6 linker writes into existing files which may not be
2560 +# executable, retaining their permissions. Remove them first so a
2561 +# subsequent execution test works.
2562 +ac_rmfiles=
2563 +for ac_file in $ac_files
2564 +do
2565 + case $ac_file in
2566 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2567 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2568 + esac
2569 +done
2570 +rm -f $ac_rmfiles
2571 +
2572 +if { (ac_try="$ac_link_default"
2573 +case "(($ac_try" in
2574 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 + *) ac_try_echo=$ac_try;;
2576 +esac
2577 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 + (eval "$ac_link_default") 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; then
2582 - # Find the output, starting from the most likely. This scheme is
2583 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2584 -# resort.
2585 -
2586 -# Be careful to initialize this variable, since it used to be cached.
2587 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2588 -ac_cv_exeext=
2589 -# b.out is created by i960 compilers.
2590 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2591 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2592 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2593 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
2594 +# so that the user can short-circuit this test for compilers unknown to
2595 +# Autoconf.
2596 +for ac_file in $ac_files ''
2597 do
2598 test -f "$ac_file" || continue
2599 case $ac_file in
2600 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2601 - ;;
2602 - conftest.$ac_ext )
2603 - # This is the source file.
2604 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2605 ;;
2606 [ab].out )
2607 # We found the default executable, but exeext='' is most
2608 # certainly right.
2609 break;;
2610 *.* )
2611 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612 - # FIXME: I believe we export ac_cv_exeext for Libtool,
2613 - # but it would be cool to find out if it's true. Does anybody
2614 - # maintain Libtool? --akim.
2615 - export ac_cv_exeext
2616 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2617 + then :; else
2618 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2619 + fi
2620 + # We set ac_cv_exeext here because the later test for it is not
2621 + # safe: cross compilers may not add the suffix if given an `-o'
2622 + # argument, so we may need to know it at that point already.
2623 + # Even if this section looks crufty: it has the advantage of
2624 + # actually working.
2625 break;;
2626 * )
2627 break;;
2628 esac
2629 done
2630 +test "$ac_cv_exeext" = no && ac_cv_exeext=
2631 +
2632 else
2633 + ac_file=''
2634 +fi
2635 +
2636 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
2637 +echo "${ECHO_T}$ac_file" >&6; }
2638 +if test -z "$ac_file"; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 @@ -1838,19 +2414,21 @@ See \`config.log' for more details." >&2
2643 fi
2644
2645 ac_exeext=$ac_cv_exeext
2646 -echo "$as_me:$LINENO: result: $ac_file" >&5
2647 -echo "${ECHO_T}$ac_file" >&6
2648
2649 -# Check the compiler produces executables we can run. If not, either
2650 +# Check that the compiler produces executables we can run. If not, either
2651 # the compiler is broken, or we cross compile.
2652 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2653 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2654 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2655 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2656 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2657 # If not cross compiling, check that we can run a simple program.
2658 if test "$cross_compiling" != yes; then
2659 if { ac_try='./$ac_file'
2660 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 - (eval $ac_try) 2>&5
2662 + { (case "(($ac_try" in
2663 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 + *) ac_try_echo=$ac_try;;
2665 +esac
2666 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 + (eval "$ac_try") 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 @@ -1869,22 +2447,27 @@ See \`config.log' for more details." >&2
2672 fi
2673 fi
2674 fi
2675 -echo "$as_me:$LINENO: result: yes" >&5
2676 -echo "${ECHO_T}yes" >&6
2677 +{ echo "$as_me:$LINENO: result: yes" >&5
2678 +echo "${ECHO_T}yes" >&6; }
2679
2680 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2681 ac_clean_files=$ac_clean_files_save
2682 -# Check the compiler produces executables we can run. If not, either
2683 +# Check that the compiler produces executables we can run. If not, either
2684 # the compiler is broken, or we cross compile.
2685 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2686 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2687 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
2688 -echo "${ECHO_T}$cross_compiling" >&6
2689 -
2690 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
2691 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2692 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2693 - (eval $ac_link) 2>&5
2694 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2695 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2696 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2697 +echo "${ECHO_T}$cross_compiling" >&6; }
2698 +
2699 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2700 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2701 +if { (ac_try="$ac_link"
2702 +case "(($ac_try" in
2703 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 + *) ac_try_echo=$ac_try;;
2705 +esac
2706 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 + (eval "$ac_link") 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; then
2711 @@ -1895,9 +2478,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
2712 for ac_file in conftest.exe conftest conftest.*; do
2713 test -f "$ac_file" || continue
2714 case $ac_file in
2715 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2716 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2717 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2718 - export ac_cv_exeext
2719 break;;
2720 * ) break;;
2721 esac
2722 @@ -1911,14 +2493,14 @@ See \`config.log' for more details." >&2
2723 fi
2724
2725 rm -f conftest$ac_cv_exeext
2726 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2727 -echo "${ECHO_T}$ac_cv_exeext" >&6
2728 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2729 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
2730
2731 rm -f conftest.$ac_ext
2732 EXEEXT=$ac_cv_exeext
2733 ac_exeext=$EXEEXT
2734 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
2735 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2736 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2737 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2738 if test "${ac_cv_objext+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741 @@ -1938,14 +2520,20 @@ main ()
2742 }
2743 _ACEOF
2744 rm -f conftest.o conftest.obj
2745 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 - (eval $ac_compile) 2>&5
2747 +if { (ac_try="$ac_compile"
2748 +case "(($ac_try" in
2749 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 + *) ac_try_echo=$ac_try;;
2751 +esac
2752 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 + (eval "$ac_compile") 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; then
2757 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2758 + for ac_file in conftest.o conftest.obj conftest.*; do
2759 + test -f "$ac_file" || continue;
2760 case $ac_file in
2761 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2762 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2763 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2764 break;;
2765 esac
2766 @@ -1963,12 +2551,12 @@ fi
2767
2768 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2769 fi
2770 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2771 -echo "${ECHO_T}$ac_cv_objext" >&6
2772 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2773 +echo "${ECHO_T}$ac_cv_objext" >&6; }
2774 OBJEXT=$ac_cv_objext
2775 ac_objext=$OBJEXT
2776 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2777 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2778 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2779 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2780 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 @@ -1991,50 +2579,49 @@ main ()
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 - (eval $ac_compile) 2>conftest.er1
2789 +if { (ac_try="$ac_compile"
2790 +case "(($ac_try" in
2791 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 + *) ac_try_echo=$ac_try;;
2793 +esac
2794 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 + (eval "$ac_compile") 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 - (exit $ac_status); } &&
2802 - { ac_try='test -z "$ac_c_werror_flag"
2803 - || test ! -s conftest.err'
2804 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 - (eval $ac_try) 2>&5
2806 - ac_status=$?
2807 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 - (exit $ac_status); }; } &&
2809 - { ac_try='test -s conftest.$ac_objext'
2810 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 - (eval $ac_try) 2>&5
2812 - ac_status=$?
2813 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 - (exit $ac_status); }; }; then
2815 + (exit $ac_status); } && {
2816 + test -z "$ac_c_werror_flag" ||
2817 + test ! -s conftest.err
2818 + } && test -s conftest.$ac_objext; then
2819 ac_compiler_gnu=yes
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 -ac_compiler_gnu=no
2825 + ac_compiler_gnu=no
2826 fi
2827 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2828 +
2829 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2831
2832 fi
2833 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2834 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2835 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2836 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2837 GCC=`test $ac_compiler_gnu = yes && echo yes`
2838 ac_test_CFLAGS=${CFLAGS+set}
2839 ac_save_CFLAGS=$CFLAGS
2840 -CFLAGS="-g"
2841 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2842 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2843 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2844 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2845 if test "${ac_cv_prog_cc_g+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848 - cat >conftest.$ac_ext <<_ACEOF
2849 + ac_save_c_werror_flag=$ac_c_werror_flag
2850 + ac_c_werror_flag=yes
2851 + ac_cv_prog_cc_g=no
2852 + CFLAGS="-g"
2853 + cat >conftest.$ac_ext <<_ACEOF
2854 /* confdefs.h. */
2855 _ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 @@ -2050,38 +2637,118 @@ main ()
2858 }
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 - (eval $ac_compile) 2>conftest.er1
2863 +if { (ac_try="$ac_compile"
2864 +case "(($ac_try" in
2865 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 + *) ac_try_echo=$ac_try;;
2867 +esac
2868 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 + (eval "$ac_compile") 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 - (exit $ac_status); } &&
2876 - { ac_try='test -z "$ac_c_werror_flag"
2877 - || test ! -s conftest.err'
2878 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 - (eval $ac_try) 2>&5
2880 + (exit $ac_status); } && {
2881 + test -z "$ac_c_werror_flag" ||
2882 + test ! -s conftest.err
2883 + } && test -s conftest.$ac_objext; then
2884 + ac_cv_prog_cc_g=yes
2885 +else
2886 + echo "$as_me: failed program was:" >&5
2887 +sed 's/^/| /' conftest.$ac_ext >&5
2888 +
2889 + CFLAGS=""
2890 + cat >conftest.$ac_ext <<_ACEOF
2891 +/* confdefs.h. */
2892 +_ACEOF
2893 +cat confdefs.h >>conftest.$ac_ext
2894 +cat >>conftest.$ac_ext <<_ACEOF
2895 +/* end confdefs.h. */
2896 +
2897 +int
2898 +main ()
2899 +{
2900 +
2901 + ;
2902 + return 0;
2903 +}
2904 +_ACEOF
2905 +rm -f conftest.$ac_objext
2906 +if { (ac_try="$ac_compile"
2907 +case "(($ac_try" in
2908 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 + *) ac_try_echo=$ac_try;;
2910 +esac
2911 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 + (eval "$ac_compile") 2>conftest.er1
2913 ac_status=$?
2914 + grep -v '^ *+' conftest.er1 >conftest.err
2915 + rm -f conftest.er1
2916 + cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 - (exit $ac_status); }; } &&
2919 - { ac_try='test -s conftest.$ac_objext'
2920 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 - (eval $ac_try) 2>&5
2922 + (exit $ac_status); } && {
2923 + test -z "$ac_c_werror_flag" ||
2924 + test ! -s conftest.err
2925 + } && test -s conftest.$ac_objext; then
2926 + :
2927 +else
2928 + echo "$as_me: failed program was:" >&5
2929 +sed 's/^/| /' conftest.$ac_ext >&5
2930 +
2931 + ac_c_werror_flag=$ac_save_c_werror_flag
2932 + CFLAGS="-g"
2933 + cat >conftest.$ac_ext <<_ACEOF
2934 +/* confdefs.h. */
2935 +_ACEOF
2936 +cat confdefs.h >>conftest.$ac_ext
2937 +cat >>conftest.$ac_ext <<_ACEOF
2938 +/* end confdefs.h. */
2939 +
2940 +int
2941 +main ()
2942 +{
2943 +
2944 + ;
2945 + return 0;
2946 +}
2947 +_ACEOF
2948 +rm -f conftest.$ac_objext
2949 +if { (ac_try="$ac_compile"
2950 +case "(($ac_try" in
2951 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 + *) ac_try_echo=$ac_try;;
2953 +esac
2954 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 + (eval "$ac_compile") 2>conftest.er1
2956 ac_status=$?
2957 + grep -v '^ *+' conftest.er1 >conftest.err
2958 + rm -f conftest.er1
2959 + cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 - (exit $ac_status); }; }; then
2962 + (exit $ac_status); } && {
2963 + test -z "$ac_c_werror_flag" ||
2964 + test ! -s conftest.err
2965 + } && test -s conftest.$ac_objext; then
2966 ac_cv_prog_cc_g=yes
2967 else
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971 -ac_cv_prog_cc_g=no
2972 +
2973 fi
2974 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2975 +
2976 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 +fi
2978 +
2979 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 +fi
2981 +
2982 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 + ac_c_werror_flag=$ac_save_c_werror_flag
2984 fi
2985 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2986 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2987 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2988 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2989 if test "$ac_test_CFLAGS" = set; then
2990 CFLAGS=$ac_save_CFLAGS
2991 elif test $ac_cv_prog_cc_g = yes; then
2992 @@ -2097,12 +2764,12 @@ else
2993 CFLAGS=
2994 fi
2995 fi
2996 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2997 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2998 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
2999 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3000 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3001 +if test "${ac_cv_prog_cc_c89+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004 - ac_cv_prog_cc_stdc=no
3005 + ac_cv_prog_cc_c89=no
3006 ac_save_CC=$CC
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 @@ -2136,12 +2803,17 @@ static char *f (char * (*g) (char **, in
3010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3011 function prototypes and stuff, but not '\xHH' hex character constants.
3012 These don't provoke an error unfortunately, instead are silently treated
3013 - as 'x'. The following induces an error, until -std1 is added to get
3014 + as 'x'. The following induces an error, until -std is added to get
3015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3016 array size at least. It's necessary to write '\x00'==0 to get something
3017 - that's true only with -std1. */
3018 + that's true only with -std. */
3019 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3020
3021 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3022 + inside strings and character constants. */
3023 +#define FOO(x) 'x'
3024 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3025 +
3026 int test (int i, double x);
3027 struct s1 {int (*f) (int a);};
3028 struct s2 {int (*f) (double a);};
3029 @@ -2156,335 +2828,144 @@ return f (e, argv, 0) != argv[0] || f
3030 return 0;
3031 }
3032 _ACEOF
3033 -# Don't try gcc -ansi; that turns off useful extensions and
3034 -# breaks some systems' header files.
3035 -# AIX -qlanglvl=ansi
3036 -# Ultrix and OSF/1 -std1
3037 -# HP-UX 10.20 and later -Ae
3038 -# HP-UX older versions -Aa -D_HPUX_SOURCE
3039 -# SVR4 -Xc -D__EXTENSIONS__
3040 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3041 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3042 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3043 do
3044 CC="$ac_save_CC $ac_arg"
3045 rm -f conftest.$ac_objext
3046 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047 - (eval $ac_compile) 2>conftest.er1
3048 +if { (ac_try="$ac_compile"
3049 +case "(($ac_try" in
3050 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 + *) ac_try_echo=$ac_try;;
3052 +esac
3053 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 + (eval "$ac_compile") 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 - (exit $ac_status); } &&
3061 - { ac_try='test -z "$ac_c_werror_flag"
3062 - || test ! -s conftest.err'
3063 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 - (eval $ac_try) 2>&5
3065 - ac_status=$?
3066 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 - (exit $ac_status); }; } &&
3068 - { ac_try='test -s conftest.$ac_objext'
3069 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 - (eval $ac_try) 2>&5
3071 - ac_status=$?
3072 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 - (exit $ac_status); }; }; then
3074 - ac_cv_prog_cc_stdc=$ac_arg
3075 -break
3076 + (exit $ac_status); } && {
3077 + test -z "$ac_c_werror_flag" ||
3078 + test ! -s conftest.err
3079 + } && test -s conftest.$ac_objext; then
3080 + ac_cv_prog_cc_c89=$ac_arg
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 +
3086 fi
3087 -rm -f conftest.err conftest.$ac_objext
3088 +
3089 +rm -f core conftest.err conftest.$ac_objext
3090 + test "x$ac_cv_prog_cc_c89" != "xno" && break
3091 done
3092 -rm -f conftest.$ac_ext conftest.$ac_objext
3093 +rm -f conftest.$ac_ext
3094 CC=$ac_save_CC
3095
3096 fi
3097 -
3098 -case "x$ac_cv_prog_cc_stdc" in
3099 - x|xno)
3100 - echo "$as_me:$LINENO: result: none needed" >&5
3101 -echo "${ECHO_T}none needed" >&6 ;;
3102 +# AC_CACHE_VAL
3103 +case "x$ac_cv_prog_cc_c89" in
3104 + x)
3105 + { echo "$as_me:$LINENO: result: none needed" >&5
3106 +echo "${ECHO_T}none needed" >&6; } ;;
3107 + xno)
3108 + { echo "$as_me:$LINENO: result: unsupported" >&5
3109 +echo "${ECHO_T}unsupported" >&6; } ;;
3110 *)
3111 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3112 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3113 - CC="$CC $ac_cv_prog_cc_stdc" ;;
3114 + CC="$CC $ac_cv_prog_cc_c89"
3115 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3116 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3117 esac
3118
3119 -# Some people use a C++ compiler to compile C. Since we use `exit',
3120 -# in C++ we need to declare it. In case someone uses the same compiler
3121 -# for both compiling C and C++ we need to have the C++ compiler decide
3122 -# the declaration of exit, since it's the most demanding environment.
3123 +
3124 +ac_ext=c
3125 +ac_cpp='$CPP $CPPFLAGS'
3126 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 +
3130 +
3131 +{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3132 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3133 +if test "${ac_cv_search_strerror+set}" = set; then
3134 + echo $ECHO_N "(cached) $ECHO_C" >&6
3135 +else
3136 + ac_func_search_save_LIBS=$LIBS
3137 cat >conftest.$ac_ext <<_ACEOF
3138 -#ifndef __cplusplus
3139 - choke me
3140 -#endif
3141 -_ACEOF
3142 -rm -f conftest.$ac_objext
3143 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144 - (eval $ac_compile) 2>conftest.er1
3145 - ac_status=$?
3146 - grep -v '^ *+' conftest.er1 >conftest.err
3147 - rm -f conftest.er1
3148 - cat conftest.err >&5
3149 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 - (exit $ac_status); } &&
3151 - { ac_try='test -z "$ac_c_werror_flag"
3152 - || test ! -s conftest.err'
3153 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 - (eval $ac_try) 2>&5
3155 - ac_status=$?
3156 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 - (exit $ac_status); }; } &&
3158 - { ac_try='test -s conftest.$ac_objext'
3159 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 - (eval $ac_try) 2>&5
3161 - ac_status=$?
3162 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 - (exit $ac_status); }; }; then
3164 - for ac_declaration in \
3165 - '' \
3166 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
3167 - 'extern "C" void std::exit (int); using std::exit;' \
3168 - 'extern "C" void exit (int) throw ();' \
3169 - 'extern "C" void exit (int);' \
3170 - 'void exit (int);'
3171 -do
3172 - cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h. */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3178 -$ac_declaration
3179 -#include <stdlib.h>
3180 +
3181 +/* Override any GCC internal prototype to avoid an error.
3182 + Use char because int might match the return type of a GCC
3183 + builtin and then its argument prototype would still apply. */
3184 +#ifdef __cplusplus
3185 +extern "C"
3186 +#endif
3187 +char strerror ();
3188 int
3189 main ()
3190 {
3191 -exit (42);
3192 +return strerror ();
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 -rm -f conftest.$ac_objext
3198 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 - (eval $ac_compile) 2>conftest.er1
3200 +for ac_lib in '' cposix; do
3201 + if test -z "$ac_lib"; then
3202 + ac_res="none required"
3203 + else
3204 + ac_res=-l$ac_lib
3205 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3206 + fi
3207 + rm -f conftest.$ac_objext conftest$ac_exeext
3208 +if { (ac_try="$ac_link"
3209 +case "(($ac_try" in
3210 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 + *) ac_try_echo=$ac_try;;
3212 +esac
3213 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 + (eval "$ac_link") 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 - (exit $ac_status); } &&
3221 - { ac_try='test -z "$ac_c_werror_flag"
3222 - || test ! -s conftest.err'
3223 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 - (eval $ac_try) 2>&5
3225 - ac_status=$?
3226 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 - (exit $ac_status); }; } &&
3228 - { ac_try='test -s conftest.$ac_objext'
3229 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 - (eval $ac_try) 2>&5
3231 - ac_status=$?
3232 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 - (exit $ac_status); }; }; then
3234 - :
3235 + (exit $ac_status); } && {
3236 + test -z "$ac_c_werror_flag" ||
3237 + test ! -s conftest.err
3238 + } && test -s conftest$ac_exeext &&
3239 + $as_test_x conftest$ac_exeext; then
3240 + ac_cv_search_strerror=$ac_res
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 -continue
3246 -fi
3247 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248 - cat >conftest.$ac_ext <<_ACEOF
3249 -/* confdefs.h. */
3250 -_ACEOF
3251 -cat confdefs.h >>conftest.$ac_ext
3252 -cat >>conftest.$ac_ext <<_ACEOF
3253 -/* end confdefs.h. */
3254 -$ac_declaration
3255 -int
3256 -main ()
3257 -{
3258 -exit (42);
3259 - ;
3260 - return 0;
3261 -}
3262 -_ACEOF
3263 -rm -f conftest.$ac_objext
3264 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3265 - (eval $ac_compile) 2>conftest.er1
3266 - ac_status=$?
3267 - grep -v '^ *+' conftest.er1 >conftest.err
3268 - rm -f conftest.er1
3269 - cat conftest.err >&5
3270 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 - (exit $ac_status); } &&
3272 - { ac_try='test -z "$ac_c_werror_flag"
3273 - || test ! -s conftest.err'
3274 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 - (eval $ac_try) 2>&5
3276 - ac_status=$?
3277 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 - (exit $ac_status); }; } &&
3279 - { ac_try='test -s conftest.$ac_objext'
3280 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 - (eval $ac_try) 2>&5
3282 - ac_status=$?
3283 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 - (exit $ac_status); }; }; then
3285 - break
3286 -else
3287 - echo "$as_me: failed program was:" >&5
3288 -sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 fi
3291 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292 -done
3293 -rm -f conftest*
3294 -if test -n "$ac_declaration"; then
3295 - echo '#ifdef __cplusplus' >>confdefs.h
3296 - echo $ac_declaration >>confdefs.h
3297 - echo '#endif' >>confdefs.h
3298 -fi
3299 -
3300 -else
3301 - echo "$as_me: failed program was:" >&5
3302 -sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3305 + conftest$ac_exeext
3306 + if test "${ac_cv_search_strerror+set}" = set; then
3307 + break
3308 fi
3309 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3310 -ac_ext=c
3311 -ac_cpp='$CPP $CPPFLAGS'
3312 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315 -
3316 -
3317 -echo "$as_me:$LINENO: checking for library containing strerror" >&5
3318 -echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3319 +done
3320 if test "${ac_cv_search_strerror+set}" = set; then
3321 - echo $ECHO_N "(cached) $ECHO_C" >&6
3322 -else
3323 - ac_func_search_save_LIBS=$LIBS
3324 -ac_cv_search_strerror=no
3325 -cat >conftest.$ac_ext <<_ACEOF
3326 -/* confdefs.h. */
3327 -_ACEOF
3328 -cat confdefs.h >>conftest.$ac_ext
3329 -cat >>conftest.$ac_ext <<_ACEOF
3330 -/* end confdefs.h. */
3331 -
3332 -/* Override any gcc2 internal prototype to avoid an error. */
3333 -#ifdef __cplusplus
3334 -extern "C"
3335 -#endif
3336 -/* We use char because int might match the return type of a gcc2
3337 - builtin and then its argument prototype would still apply. */
3338 -char strerror ();
3339 -int
3340 -main ()
3341 -{
3342 -strerror ();
3343 - ;
3344 - return 0;
3345 -}
3346 -_ACEOF
3347 -rm -f conftest.$ac_objext conftest$ac_exeext
3348 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3349 - (eval $ac_link) 2>conftest.er1
3350 - ac_status=$?
3351 - grep -v '^ *+' conftest.er1 >conftest.err
3352 - rm -f conftest.er1
3353 - cat conftest.err >&5
3354 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 - (exit $ac_status); } &&
3356 - { ac_try='test -z "$ac_c_werror_flag"
3357 - || test ! -s conftest.err'
3358 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 - (eval $ac_try) 2>&5
3360 - ac_status=$?
3361 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 - (exit $ac_status); }; } &&
3363 - { ac_try='test -s conftest$ac_exeext'
3364 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 - (eval $ac_try) 2>&5
3366 - ac_status=$?
3367 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 - (exit $ac_status); }; }; then
3369 - ac_cv_search_strerror="none required"
3370 -else
3371 - echo "$as_me: failed program was:" >&5
3372 -sed 's/^/| /' conftest.$ac_ext >&5
3373 -
3374 -fi
3375 -rm -f conftest.err conftest.$ac_objext \
3376 - conftest$ac_exeext conftest.$ac_ext
3377 -if test "$ac_cv_search_strerror" = no; then
3378 - for ac_lib in cposix; do
3379 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3380 - cat >conftest.$ac_ext <<_ACEOF
3381 -/* confdefs.h. */
3382 -_ACEOF
3383 -cat confdefs.h >>conftest.$ac_ext
3384 -cat >>conftest.$ac_ext <<_ACEOF
3385 -/* end confdefs.h. */
3386 -
3387 -/* Override any gcc2 internal prototype to avoid an error. */
3388 -#ifdef __cplusplus
3389 -extern "C"
3390 -#endif
3391 -/* We use char because int might match the return type of a gcc2
3392 - builtin and then its argument prototype would still apply. */
3393 -char strerror ();
3394 -int
3395 -main ()
3396 -{
3397 -strerror ();
3398 - ;
3399 - return 0;
3400 -}
3401 -_ACEOF
3402 -rm -f conftest.$ac_objext conftest$ac_exeext
3403 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3404 - (eval $ac_link) 2>conftest.er1
3405 - ac_status=$?
3406 - grep -v '^ *+' conftest.er1 >conftest.err
3407 - rm -f conftest.er1
3408 - cat conftest.err >&5
3409 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 - (exit $ac_status); } &&
3411 - { ac_try='test -z "$ac_c_werror_flag"
3412 - || test ! -s conftest.err'
3413 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 - (eval $ac_try) 2>&5
3415 - ac_status=$?
3416 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 - (exit $ac_status); }; } &&
3418 - { ac_try='test -s conftest$ac_exeext'
3419 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 - (eval $ac_try) 2>&5
3421 - ac_status=$?
3422 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 - (exit $ac_status); }; }; then
3424 - ac_cv_search_strerror="-l$ac_lib"
3425 -break
3426 + :
3427 else
3428 - echo "$as_me: failed program was:" >&5
3429 -sed 's/^/| /' conftest.$ac_ext >&5
3430 -
3431 -fi
3432 -rm -f conftest.err conftest.$ac_objext \
3433 - conftest$ac_exeext conftest.$ac_ext
3434 - done
3435 + ac_cv_search_strerror=no
3436 fi
3437 +rm conftest.$ac_ext
3438 LIBS=$ac_func_search_save_LIBS
3439 fi
3440 -echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3441 -echo "${ECHO_T}$ac_cv_search_strerror" >&6
3442 -if test "$ac_cv_search_strerror" != no; then
3443 - test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3444 +{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3445 +echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3446 +ac_res=$ac_cv_search_strerror
3447 +if test "$ac_res" != no; then
3448 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3449
3450 fi
3451
3452 @@ -2503,8 +2984,8 @@ am__api_version="1.9"
3453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3454 # OS/2's system install, which has a completely different semantic
3455 # ./install, which can be erroneously created by make from ./install.sh.
3456 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3457 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3458 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3459 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3460 if test -z "$INSTALL"; then
3461 if test "${ac_cv_path_install+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 @@ -2526,7 +3007,7 @@ case $as_dir/ in
3464 # by default.
3465 for ac_prog in ginstall scoinst install; do
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3468 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3469 if test $ac_prog = install &&
3470 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3471 # AIX install. It has an incompatible calling convention.
3472 @@ -2545,21 +3026,22 @@ case $as_dir/ in
3473 ;;
3474 esac
3475 done
3476 +IFS=$as_save_IFS
3477
3478
3479 fi
3480 if test "${ac_cv_path_install+set}" = set; then
3481 INSTALL=$ac_cv_path_install
3482 else
3483 - # As a last resort, use the slow shell script. We don't cache a
3484 - # path for INSTALL within a source directory, because that will
3485 + # As a last resort, use the slow shell script. Don't cache a
3486 + # value for INSTALL within a source directory, because that will
3487 # break other packages using the cache if that directory is
3488 - # removed, or if the path is relative.
3489 + # removed, or if the value is a relative name.
3490 INSTALL=$ac_install_sh
3491 fi
3492 fi
3493 -echo "$as_me:$LINENO: result: $INSTALL" >&5
3494 -echo "${ECHO_T}$INSTALL" >&6
3495 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3496 +echo "${ECHO_T}$INSTALL" >&6; }
3497
3498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3499 # It thinks the first close brace ends the variable substitution.
3500 @@ -2569,8 +3051,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
3501
3502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3503
3504 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3505 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3506 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3507 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
3508 # Just in case
3509 sleep 1
3510 echo timestamp > conftest.file
3511 @@ -2612,20 +3094,20 @@ echo "$as_me: error: newly created file
3512 Check your system clock" >&2;}
3513 { (exit 1); exit 1; }; }
3514 fi
3515 -echo "$as_me:$LINENO: result: yes" >&5
3516 -echo "${ECHO_T}yes" >&6
3517 +{ echo "$as_me:$LINENO: result: yes" >&5
3518 +echo "${ECHO_T}yes" >&6; }
3519 test "$program_prefix" != NONE &&
3520 - program_transform_name="s,^,$program_prefix,;$program_transform_name"
3521 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
3522 # Use a double $ so make ignores it.
3523 test "$program_suffix" != NONE &&
3524 - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3525 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3526 # Double any \ or $. echo might interpret backslashes.
3527 # By default was `s,x,x', remove it if useless.
3528 cat <<\_ACEOF >conftest.sed
3529 s/[\\$]/&&/g;s/;s,x,x,$//
3530 _ACEOF
3531 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3532 -rm conftest.sed
3533 +rm -f conftest.sed
3534
3535 # expand $ac_aux_dir to an absolute path
3536 am_aux_dir=`cd $ac_aux_dir && pwd`
3537 @@ -2677,8 +3159,8 @@ for ac_prog in gawk mawk nawk awk
3538 do
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3545 if test "${ac_cv_prog_AWK+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 @@ -2691,54 +3173,57 @@ do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_AWK="$ac_prog"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3557 fi
3558 done
3559 done
3560 +IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 AWK=$ac_cv_prog_AWK
3565 if test -n "$AWK"; then
3566 - echo "$as_me:$LINENO: result: $AWK" >&5
3567 -echo "${ECHO_T}$AWK" >&6
3568 + { echo "$as_me:$LINENO: result: $AWK" >&5
3569 +echo "${ECHO_T}$AWK" >&6; }
3570 else
3571 - echo "$as_me:$LINENO: result: no" >&5
3572 -echo "${ECHO_T}no" >&6
3573 + { echo "$as_me:$LINENO: result: no" >&5
3574 +echo "${ECHO_T}no" >&6; }
3575 fi
3576
3577 +
3578 test -n "$AWK" && break
3579 done
3580
3581 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3582 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3583 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3584 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3585 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3586 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3587 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3588 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591 cat >conftest.make <<\_ACEOF
3592 +SHELL = /bin/sh
3593 all:
3594 - @echo 'ac_maketemp="$(MAKE)"'
3595 + @echo '@@@%%%=$(MAKE)=@@@%%%'
3596 _ACEOF
3597 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3598 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3599 -if test -n "$ac_maketemp"; then
3600 - eval ac_cv_prog_make_${ac_make}_set=yes
3601 -else
3602 - eval ac_cv_prog_make_${ac_make}_set=no
3603 -fi
3604 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
3605 + *@@@%%%=?*=@@@%%%*)
3606 + eval ac_cv_prog_make_${ac_make}_set=yes;;
3607 + *)
3608 + eval ac_cv_prog_make_${ac_make}_set=no;;
3609 +esac
3610 rm -f conftest.make
3611 fi
3612 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3613 - echo "$as_me:$LINENO: result: yes" >&5
3614 -echo "${ECHO_T}yes" >&6
3615 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3616 + { echo "$as_me:$LINENO: result: yes" >&5
3617 +echo "${ECHO_T}yes" >&6; }
3618 SET_MAKE=
3619 else
3620 - echo "$as_me:$LINENO: result: no" >&5
3621 -echo "${ECHO_T}no" >&6
3622 + { echo "$as_me:$LINENO: result: no" >&5
3623 +echo "${ECHO_T}no" >&6; }
3624 SET_MAKE="MAKE=${MAKE-make}"
3625 fi
3626
3627 @@ -2753,7 +3238,7 @@ rmdir .tst 2>/dev/null
3628
3629 DEPDIR="${am__leading_dot}deps"
3630
3631 - ac_config_commands="$ac_config_commands depfiles"
3632 +ac_config_commands="$ac_config_commands depfiles"
3633
3634
3635 am_make=${MAKE-make}
3636 @@ -2763,8 +3248,8 @@ am__doit:
3637 .PHONY: am__doit
3638 END
3639 # If we don't find an include directive, just comment out the code.
3640 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3641 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3642 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3643 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3644 am__include="#"
3645 am__quote=
3646 _am_result=none
3647 @@ -2791,15 +3276,15 @@ if test "$am__include" = "#"; then
3648 fi
3649
3650
3651 -echo "$as_me:$LINENO: result: $_am_result" >&5
3652 -echo "${ECHO_T}$_am_result" >&6
3653 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
3654 +echo "${ECHO_T}$_am_result" >&6; }
3655 rm -f confinc confmf
3656
3657 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3658 +# Check whether --enable-dependency-tracking was given.
3659 if test "${enable_dependency_tracking+set}" = set; then
3660 - enableval="$enable_dependency_tracking"
3661 + enableval=$enable_dependency_tracking;
3662 +fi
3663
3664 -fi;
3665 if test "x$enable_dependency_tracking" != xno; then
3666 am_depcomp="$ac_aux_dir/depcomp"
3667 AMDEPBACKSLASH='\'
3668 @@ -2874,8 +3359,8 @@ if test "$cross_compiling" != no; then
3669 if test -n "$ac_tool_prefix"; then
3670 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3671 set dummy ${ac_tool_prefix}strip; ac_word=$2
3672 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3675 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3676 if test "${ac_cv_prog_STRIP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 @@ -2888,32 +3373,34 @@ do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689 done
3690 done
3691 +IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 STRIP=$ac_cv_prog_STRIP
3696 if test -n "$STRIP"; then
3697 - echo "$as_me:$LINENO: result: $STRIP" >&5
3698 -echo "${ECHO_T}$STRIP" >&6
3699 + { echo "$as_me:$LINENO: result: $STRIP" >&5
3700 +echo "${ECHO_T}$STRIP" >&6; }
3701 else
3702 - echo "$as_me:$LINENO: result: no" >&5
3703 -echo "${ECHO_T}no" >&6
3704 + { echo "$as_me:$LINENO: result: no" >&5
3705 +echo "${ECHO_T}no" >&6; }
3706 fi
3707
3708 +
3709 fi
3710 if test -z "$ac_cv_prog_STRIP"; then
3711 ac_ct_STRIP=$STRIP
3712 # Extract the first word of "strip", so it can be a program name with args.
3713 set dummy strip; ac_word=$2
3714 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3715 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3716 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3717 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721 @@ -2926,27 +3413,41 @@ do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_ac_ct_STRIP="strip"
3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3730 fi
3731 done
3732 done
3733 +IFS=$as_save_IFS
3734
3735 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3736 fi
3737 fi
3738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3739 if test -n "$ac_ct_STRIP"; then
3740 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3741 -echo "${ECHO_T}$ac_ct_STRIP" >&6
3742 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3743 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3744 else
3745 - echo "$as_me:$LINENO: result: no" >&5
3746 -echo "${ECHO_T}no" >&6
3747 + { echo "$as_me:$LINENO: result: no" >&5
3748 +echo "${ECHO_T}no" >&6; }
3749 fi
3750
3751 - STRIP=$ac_ct_STRIP
3752 + if test "x$ac_ct_STRIP" = x; then
3753 + STRIP=":"
3754 + else
3755 + case $cross_compiling:$ac_tool_warned in
3756 +yes:)
3757 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3758 +whose name does not start with the host triplet. If you think this
3759 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3760 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3761 +whose name does not start with the host triplet. If you think this
3762 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3763 +ac_tool_warned=yes ;;
3764 +esac
3765 + STRIP=$ac_ct_STRIP
3766 + fi
3767 else
3768 STRIP="$ac_cv_prog_STRIP"
3769 fi
3770 @@ -2967,8 +3468,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
3771
3772 depcc="$CC" am_compiler_list=
3773
3774 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3775 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3776 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3777 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3778 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781 @@ -3057,8 +3558,8 @@ else
3782 fi
3783
3784 fi
3785 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3786 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3787 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3788 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3789 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3790
3791
3792 @@ -3079,8 +3580,8 @@ fi
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3795 set dummy ${ac_tool_prefix}ar; ac_word=$2
3796 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3800 if test "${ac_cv_prog_AR+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 @@ -3093,32 +3594,34 @@ do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_AR="${ac_tool_prefix}ar"
3810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3812 fi
3813 done
3814 done
3815 +IFS=$as_save_IFS
3816
3817 fi
3818 fi
3819 AR=$ac_cv_prog_AR
3820 if test -n "$AR"; then
3821 - echo "$as_me:$LINENO: result: $AR" >&5
3822 -echo "${ECHO_T}$AR" >&6
3823 + { echo "$as_me:$LINENO: result: $AR" >&5
3824 +echo "${ECHO_T}$AR" >&6; }
3825 else
3826 - echo "$as_me:$LINENO: result: no" >&5
3827 -echo "${ECHO_T}no" >&6
3828 + { echo "$as_me:$LINENO: result: no" >&5
3829 +echo "${ECHO_T}no" >&6; }
3830 fi
3831
3832 +
3833 fi
3834 if test -z "$ac_cv_prog_AR"; then
3835 ac_ct_AR=$AR
3836 # Extract the first word of "ar", so it can be a program name with args.
3837 set dummy ar; ac_word=$2
3838 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3842 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845 @@ -3131,26 +3634,41 @@ do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_ac_ct_AR="ar"
3852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855 done
3856 done
3857 +IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3862 if test -n "$ac_ct_AR"; then
3863 - echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3864 -echo "${ECHO_T}$ac_ct_AR" >&6
3865 + { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3866 +echo "${ECHO_T}$ac_ct_AR" >&6; }
3867 else
3868 - echo "$as_me:$LINENO: result: no" >&5
3869 -echo "${ECHO_T}no" >&6
3870 + { echo "$as_me:$LINENO: result: no" >&5
3871 +echo "${ECHO_T}no" >&6; }
3872 fi
3873
3874 - AR=$ac_ct_AR
3875 + if test "x$ac_ct_AR" = x; then
3876 + AR=""
3877 + else
3878 + case $cross_compiling:$ac_tool_warned in
3879 +yes:)
3880 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3881 +whose name does not start with the host triplet. If you think this
3882 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3883 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3884 +whose name does not start with the host triplet. If you think this
3885 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3886 +ac_tool_warned=yes ;;
3887 +esac
3888 + AR=$ac_ct_AR
3889 + fi
3890 else
3891 AR="$ac_cv_prog_AR"
3892 fi
3893 @@ -3158,8 +3676,8 @@ fi
3894 if test -n "$ac_tool_prefix"; then
3895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3897 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3899 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3901 if test "${ac_cv_prog_RANLIB+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 @@ -3172,32 +3690,34 @@ do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3913 fi
3914 done
3915 done
3916 +IFS=$as_save_IFS
3917
3918 fi
3919 fi
3920 RANLIB=$ac_cv_prog_RANLIB
3921 if test -n "$RANLIB"; then
3922 - echo "$as_me:$LINENO: result: $RANLIB" >&5
3923 -echo "${ECHO_T}$RANLIB" >&6
3924 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
3925 +echo "${ECHO_T}$RANLIB" >&6; }
3926 else
3927 - echo "$as_me:$LINENO: result: no" >&5
3928 -echo "${ECHO_T}no" >&6
3929 + { echo "$as_me:$LINENO: result: no" >&5
3930 +echo "${ECHO_T}no" >&6; }
3931 fi
3932
3933 +
3934 fi
3935 if test -z "$ac_cv_prog_RANLIB"; then
3936 ac_ct_RANLIB=$RANLIB
3937 # Extract the first word of "ranlib", so it can be a program name with args.
3938 set dummy ranlib; ac_word=$2
3939 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 @@ -3210,36 +3730,49 @@ do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_prog_ac_ct_RANLIB="ranlib"
3953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 +IFS=$as_save_IFS
3959
3960 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3961 fi
3962 fi
3963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3964 if test -n "$ac_ct_RANLIB"; then
3965 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3966 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
3967 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3968 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3969 else
3970 - echo "$as_me:$LINENO: result: no" >&5
3971 -echo "${ECHO_T}no" >&6
3972 + { echo "$as_me:$LINENO: result: no" >&5
3973 +echo "${ECHO_T}no" >&6; }
3974 fi
3975
3976 - RANLIB=$ac_ct_RANLIB
3977 + if test "x$ac_ct_RANLIB" = x; then
3978 + RANLIB=":"
3979 + else
3980 + case $cross_compiling:$ac_tool_warned in
3981 +yes:)
3982 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3983 +whose name does not start with the host triplet. If you think this
3984 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3985 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3986 +whose name does not start with the host triplet. If you think this
3987 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3988 +ac_tool_warned=yes ;;
3989 +esac
3990 + RANLIB=$ac_ct_RANLIB
3991 + fi
3992 else
3993 RANLIB="$ac_cv_prog_RANLIB"
3994 fi
3995
3996
3997 -# Check whether --enable-shared or --disable-shared was given.
3998 +# Check whether --enable-shared was given.
3999 if test "${enable_shared+set}" = set; then
4000 - enableval="$enable_shared"
4001 - p=${PACKAGE-default}
4002 + enableval=$enable_shared; p=${PACKAGE-default}
4003 case $enableval in
4004 yes) enable_shared=yes ;;
4005 no) enable_shared=no ;;
4006 @@ -3257,12 +3790,12 @@ no) enable_shared=no ;;
4007 esac
4008 else
4009 enable_shared=no
4010 -fi;
4011 +fi
4012 +
4013
4014 -# Check whether --enable-static or --disable-static was given.
4015 +# Check whether --enable-static was given.
4016 if test "${enable_static+set}" = set; then
4017 - enableval="$enable_static"
4018 - p=${PACKAGE-default}
4019 + enableval=$enable_static; p=${PACKAGE-default}
4020 case $enableval in
4021 yes) enable_static=yes ;;
4022 no) enable_static=no ;;
4023 @@ -3280,11 +3813,11 @@ no) enable_static=no ;;
4024 esac
4025 else
4026 enable_static=yes
4027 -fi;
4028 -# Check whether --enable-fast-install or --disable-fast-install was given.
4029 +fi
4030 +
4031 +# Check whether --enable-fast-install was given.
4032 if test "${enable_fast_install+set}" = set; then
4033 - enableval="$enable_fast_install"
4034 - p=${PACKAGE-default}
4035 + enableval=$enable_fast_install; p=${PACKAGE-default}
4036 case $enableval in
4037 yes) enable_fast_install=yes ;;
4038 no) enable_fast_install=no ;;
4039 @@ -3302,20 +3835,21 @@ no) enable_fast_install=no ;;
4040 esac
4041 else
4042 enable_fast_install=yes
4043 -fi;
4044 +fi
4045 +
4046
4047 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
4048 +# Check whether --with-gnu-ld was given.
4049 if test "${with_gnu_ld+set}" = set; then
4050 - withval="$with_gnu_ld"
4051 - test "$withval" = no || with_gnu_ld=yes
4052 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4053 else
4054 with_gnu_ld=no
4055 -fi;
4056 +fi
4057 +
4058 ac_prog=ld
4059 if test "$GCC" = yes; then
4060 # Check if gcc -print-prog-name=ld gives a path.
4061 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4062 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4063 + { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4064 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4065 case $host in
4066 *-*-mingw*)
4067 # gcc leaves a trailing carriage return which upsets mingw
4068 @@ -3344,11 +3878,11 @@ echo $ECHO_N "checking for ld used by GC
4069 ;;
4070 esac
4071 elif test "$with_gnu_ld" = yes; then
4072 - echo "$as_me:$LINENO: checking for GNU ld" >&5
4073 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4074 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
4075 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4076 else
4077 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4078 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4079 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4080 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4081 fi
4082 if test "${lt_cv_path_LD+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 @@ -3377,17 +3911,17 @@ fi
4085
4086 LD="$lt_cv_path_LD"
4087 if test -n "$LD"; then
4088 - echo "$as_me:$LINENO: result: $LD" >&5
4089 -echo "${ECHO_T}$LD" >&6
4090 + { echo "$as_me:$LINENO: result: $LD" >&5
4091 +echo "${ECHO_T}$LD" >&6; }
4092 else
4093 - echo "$as_me:$LINENO: result: no" >&5
4094 -echo "${ECHO_T}no" >&6
4095 + { echo "$as_me:$LINENO: result: no" >&5
4096 +echo "${ECHO_T}no" >&6; }
4097 fi
4098 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4099 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4100 { (exit 1); exit 1; }; }
4101 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4102 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4103 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4104 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4105 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108 @@ -3398,25 +3932,25 @@ else
4109 lt_cv_prog_gnu_ld=no
4110 fi
4111 fi
4112 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4113 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4114 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4115 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4116 with_gnu_ld=$lt_cv_prog_gnu_ld
4117
4118
4119 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4120 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4121 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4122 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4123 if test "${lt_cv_ld_reload_flag+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126 lt_cv_ld_reload_flag='-r'
4127 fi
4128 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4129 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4130 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4131 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4132 reload_flag=$lt_cv_ld_reload_flag
4133 test -n "$reload_flag" && reload_flag=" $reload_flag"
4134
4135 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4136 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4137 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4138 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4139 if test "${lt_cv_path_NM+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142 @@ -3451,22 +3985,22 @@ fi
4143 fi
4144
4145 NM="$lt_cv_path_NM"
4146 -echo "$as_me:$LINENO: result: $NM" >&5
4147 -echo "${ECHO_T}$NM" >&6
4148 +{ echo "$as_me:$LINENO: result: $NM" >&5
4149 +echo "${ECHO_T}$NM" >&6; }
4150
4151 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
4152 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4153 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4154 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4155 LN_S=$as_ln_s
4156 if test "$LN_S" = "ln -s"; then
4157 - echo "$as_me:$LINENO: result: yes" >&5
4158 -echo "${ECHO_T}yes" >&6
4159 + { echo "$as_me:$LINENO: result: yes" >&5
4160 +echo "${ECHO_T}yes" >&6; }
4161 else
4162 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4163 -echo "${ECHO_T}no, using $LN_S" >&6
4164 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4165 +echo "${ECHO_T}no, using $LN_S" >&6; }
4166 fi
4167
4168 -echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4169 -echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4170 +{ echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4171 +echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
4172 if test "${lt_cv_deplibs_check_method+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175 @@ -3628,8 +4162,8 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4176 esac
4177
4178 fi
4179 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4180 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4181 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4182 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4183 file_magic_cmd=$lt_cv_file_magic_cmd
4184 deplibs_check_method=$lt_cv_deplibs_check_method
4185
4186 @@ -3639,8 +4173,8 @@ deplibs_check_method=$lt_cv_deplibs_chec
4187 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4188
4189 # find the maximum length of command line arguments
4190 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4191 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4192 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4193 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4194 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 @@ -3691,11 +4225,11 @@ else
4198 fi
4199
4200 if test -n "$lt_cv_sys_max_cmd_len" ; then
4201 - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4202 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4203 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4204 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4205 else
4206 - echo "$as_me:$LINENO: result: none" >&5
4207 -echo "${ECHO_T}none" >&6
4208 + { echo "$as_me:$LINENO: result: none" >&5
4209 +echo "${ECHO_T}none" >&6; }
4210 fi
4211
4212
4213 @@ -3703,8 +4237,8 @@ fi
4214 case $deplibs_check_method in
4215 file_magic*)
4216 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4217 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4218 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4219 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4220 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
4221 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 @@ -3758,17 +4292,17 @@ fi
4225
4226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4227 if test -n "$MAGIC_CMD"; then
4228 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4229 -echo "${ECHO_T}$MAGIC_CMD" >&6
4230 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4231 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
4232 else
4233 - echo "$as_me:$LINENO: result: no" >&5
4234 -echo "${ECHO_T}no" >&6
4235 + { echo "$as_me:$LINENO: result: no" >&5
4236 +echo "${ECHO_T}no" >&6; }
4237 fi
4238
4239 if test -z "$lt_cv_path_MAGIC_CMD"; then
4240 if test -n "$ac_tool_prefix"; then
4241 - echo "$as_me:$LINENO: checking for file" >&5
4242 -echo $ECHO_N "checking for file... $ECHO_C" >&6
4243 + { echo "$as_me:$LINENO: checking for file" >&5
4244 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
4245 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 @@ -3822,11 +4356,11 @@ fi
4249
4250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4251 if test -n "$MAGIC_CMD"; then
4252 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4253 -echo "${ECHO_T}$MAGIC_CMD" >&6
4254 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4255 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
4256 else
4257 - echo "$as_me:$LINENO: result: no" >&5
4258 -echo "${ECHO_T}no" >&6
4259 + { echo "$as_me:$LINENO: result: no" >&5
4260 +echo "${ECHO_T}no" >&6; }
4261 fi
4262
4263 else
4264 @@ -3841,8 +4375,8 @@ esac
4265 if test -n "$ac_tool_prefix"; then
4266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4267 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4268 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4272 if test "${ac_cv_prog_RANLIB+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 @@ -3855,32 +4389,34 @@ do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285 done
4286 done
4287 +IFS=$as_save_IFS
4288
4289 fi
4290 fi
4291 RANLIB=$ac_cv_prog_RANLIB
4292 if test -n "$RANLIB"; then
4293 - echo "$as_me:$LINENO: result: $RANLIB" >&5
4294 -echo "${ECHO_T}$RANLIB" >&6
4295 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
4296 +echo "${ECHO_T}$RANLIB" >&6; }
4297 else
4298 - echo "$as_me:$LINENO: result: no" >&5
4299 -echo "${ECHO_T}no" >&6
4300 + { echo "$as_me:$LINENO: result: no" >&5
4301 +echo "${ECHO_T}no" >&6; }
4302 fi
4303
4304 +
4305 fi
4306 if test -z "$ac_cv_prog_RANLIB"; then
4307 ac_ct_RANLIB=$RANLIB
4308 # Extract the first word of "ranlib", so it can be a program name with args.
4309 set dummy ranlib; ac_word=$2
4310 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4311 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4312 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4314 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 @@ -3893,27 +4429,41 @@ do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_ac_ct_RANLIB="ranlib"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329 +IFS=$as_save_IFS
4330
4331 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4332 fi
4333 fi
4334 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4335 if test -n "$ac_ct_RANLIB"; then
4336 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4337 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
4338 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4339 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4340 else
4341 - echo "$as_me:$LINENO: result: no" >&5
4342 -echo "${ECHO_T}no" >&6
4343 + { echo "$as_me:$LINENO: result: no" >&5
4344 +echo "${ECHO_T}no" >&6; }
4345 fi
4346
4347 - RANLIB=$ac_ct_RANLIB
4348 + if test "x$ac_ct_RANLIB" = x; then
4349 + RANLIB=":"
4350 + else
4351 + case $cross_compiling:$ac_tool_warned in
4352 +yes:)
4353 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4354 +whose name does not start with the host triplet. If you think this
4355 +configuration is useful to you, please write to autoconf@gnu.org." >&5
4356 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4357 +whose name does not start with the host triplet. If you think this
4358 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4359 +ac_tool_warned=yes ;;
4360 +esac
4361 + RANLIB=$ac_ct_RANLIB
4362 + fi
4363 else
4364 RANLIB="$ac_cv_prog_RANLIB"
4365 fi
4366 @@ -3921,8 +4471,8 @@ fi
4367 if test -n "$ac_tool_prefix"; then
4368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4369 set dummy ${ac_tool_prefix}strip; ac_word=$2
4370 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4372 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4374 if test "${ac_cv_prog_STRIP+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377 @@ -3935,32 +4485,34 @@ do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387 done
4388 done
4389 +IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 STRIP=$ac_cv_prog_STRIP
4394 if test -n "$STRIP"; then
4395 - echo "$as_me:$LINENO: result: $STRIP" >&5
4396 -echo "${ECHO_T}$STRIP" >&6
4397 + { echo "$as_me:$LINENO: result: $STRIP" >&5
4398 +echo "${ECHO_T}$STRIP" >&6; }
4399 else
4400 - echo "$as_me:$LINENO: result: no" >&5
4401 -echo "${ECHO_T}no" >&6
4402 + { echo "$as_me:$LINENO: result: no" >&5
4403 +echo "${ECHO_T}no" >&6; }
4404 fi
4405
4406 +
4407 fi
4408 if test -z "$ac_cv_prog_STRIP"; then
4409 ac_ct_STRIP=$STRIP
4410 # Extract the first word of "strip", so it can be a program name with args.
4411 set dummy strip; ac_word=$2
4412 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4414 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4416 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 @@ -3973,27 +4525,41 @@ do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_ac_ct_STRIP="strip"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429 done
4430 done
4431 +IFS=$as_save_IFS
4432
4433 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4434 fi
4435 fi
4436 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4437 if test -n "$ac_ct_STRIP"; then
4438 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4439 -echo "${ECHO_T}$ac_ct_STRIP" >&6
4440 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4441 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4442 else
4443 - echo "$as_me:$LINENO: result: no" >&5
4444 -echo "${ECHO_T}no" >&6
4445 + { echo "$as_me:$LINENO: result: no" >&5
4446 +echo "${ECHO_T}no" >&6; }
4447 fi
4448
4449 - STRIP=$ac_ct_STRIP
4450 + if test "x$ac_ct_STRIP" = x; then
4451 + STRIP=":"
4452 + else
4453 + case $cross_compiling:$ac_tool_warned in
4454 +yes:)
4455 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4456 +whose name does not start with the host triplet. If you think this
4457 +configuration is useful to you, please write to autoconf@gnu.org." >&5
4458 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4459 +whose name does not start with the host triplet. If you think this
4460 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4461 +ac_tool_warned=yes ;;
4462 +esac
4463 + STRIP=$ac_ct_STRIP
4464 + fi
4465 else
4466 STRIP="$ac_cv_prog_STRIP"
4467 fi
4468 @@ -4008,22 +4574,22 @@ test "$GCC" = yes && libtool_flags="$lib
4469 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4470
4471
4472 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4473 +# Check whether --enable-libtool-lock was given.
4474 if test "${enable_libtool_lock+set}" = set; then
4475 - enableval="$enable_libtool_lock"
4476 + enableval=$enable_libtool_lock;
4477 +fi
4478
4479 -fi;
4480 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4481 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4482
4483
4484 -# Check whether --with-pic or --without-pic was given.
4485 +# Check whether --with-pic was given.
4486 if test "${with_pic+set}" = set; then
4487 - withval="$with_pic"
4488 - pic_mode="$withval"
4489 + withval=$with_pic; pic_mode="$withval"
4490 else
4491 pic_mode=default
4492 -fi;
4493 +fi
4494 +
4495 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4496 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4497
4498 @@ -4032,7 +4598,7 @@ test x"$pic_mode" = xno && libtool_flags
4499 case $host in
4500 *-*-irix6*)
4501 # Find out which ABI we are using.
4502 - echo '#line 4035 "configure"' > conftest.$ac_ext
4503 + echo '#line 4601 "configure"' > conftest.$ac_ext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>&5
4506 ac_status=$?
4507 @@ -4137,13 +4703,12 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
4508 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4509 SAVE_CFLAGS="$CFLAGS"
4510 CFLAGS="$CFLAGS -belf"
4511 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4512 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4513 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4514 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4515 if test "${lt_cv_cc_needs_belf+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518
4519 -
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 @@ -4166,35 +4731,32 @@ main ()
4524 }
4525 _ACEOF
4526 rm -f conftest.$ac_objext conftest$ac_exeext
4527 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528 - (eval $ac_link) 2>conftest.er1
4529 +if { (ac_try="$ac_link"
4530 +case "(($ac_try" in
4531 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 + *) ac_try_echo=$ac_try;;
4533 +esac
4534 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 + (eval "$ac_link") 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 - (exit $ac_status); } &&
4542 - { ac_try='test -z "$ac_c_werror_flag"
4543 - || test ! -s conftest.err'
4544 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 - (eval $ac_try) 2>&5
4546 - ac_status=$?
4547 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 - (exit $ac_status); }; } &&
4549 - { ac_try='test -s conftest$ac_exeext'
4550 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 - (eval $ac_try) 2>&5
4552 - ac_status=$?
4553 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 - (exit $ac_status); }; }; then
4555 + (exit $ac_status); } && {
4556 + test -z "$ac_c_werror_flag" ||
4557 + test ! -s conftest.err
4558 + } && test -s conftest$ac_exeext &&
4559 + $as_test_x conftest$ac_exeext; then
4560 lt_cv_cc_needs_belf=yes
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 -lt_cv_cc_needs_belf=no
4566 + lt_cv_cc_needs_belf=no
4567 fi
4568 -rm -f conftest.err conftest.$ac_objext \
4569 +
4570 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4571 conftest$ac_exeext conftest.$ac_ext
4572 ac_ext=c
4573 ac_cpp='$CPP $CPPFLAGS'
4574 @@ -4203,8 +4765,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576
4577 fi
4578 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4579 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4580 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4581 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4582 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4583 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4584 CFLAGS="$SAVE_CFLAGS"
4585 @@ -4234,39 +4796,58 @@ _ACEOF
4586
4587 # The following way of writing the cache mishandles newlines in values,
4588 # but we know of no workaround that is simple, portable, and efficient.
4589 -# So, don't put newlines in cache variables' values.
4590 +# So, we kill variables containing newlines.
4591 # Ultrix sh set writes to stderr and can't be redirected directly,
4592 # and sets the high bit in the cache file unless we assign to the vars.
4593 -{
4594 +(
4595 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4596 + eval ac_val=\$$ac_var
4597 + case $ac_val in #(
4598 + *${as_nl}*)
4599 + case $ac_var in #(
4600 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4601 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4602 + esac
4603 + case $ac_var in #(
4604 + _ | IFS | as_nl) ;; #(
4605 + *) $as_unset $ac_var ;;
4606 + esac ;;
4607 + esac
4608 + done
4609 +
4610 (set) 2>&1 |
4611 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
4612 - *ac_space=\ *)
4613 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
4614 + *${as_nl}ac_space=\ *)
4615 # `set' does not quote correctly, so add quotes (double-quote
4616 # substitution turns \\\\ into \\, and sed turns \\ into \).
4617 sed -n \
4618 "s/'/'\\\\''/g;
4619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4620 - ;;
4621 + ;; #(
4622 *)
4623 # `set' quotes correctly as required by POSIX, so do not add quotes.
4624 - sed -n \
4625 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4626 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4627 ;;
4628 - esac;
4629 -} |
4630 + esac |
4631 + sort
4632 +) |
4633 sed '
4634 + /^ac_cv_env_/b end
4635 t clear
4636 - : clear
4637 + :clear
4638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4639 t end
4640 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4641 - : end' >>confcache
4642 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
4643 - if test -w $cache_file; then
4644 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4645 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4646 + :end' >>confcache
4647 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4648 + if test -w "$cache_file"; then
4649 + test "x$cache_file" != "x/dev/null" &&
4650 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4651 +echo "$as_me: updating cache $cache_file" >&6;}
4652 cat confcache >$cache_file
4653 else
4654 - echo "not updating unwritable cache $cache_file"
4655 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4656 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4657 fi
4658 fi
4659 rm -f confcache
4660 @@ -4292,8 +4873,8 @@ if test -r "$cache_file"; then
4661 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4662 echo "$as_me: loading cache $cache_file" >&6;}
4663 case $cache_file in
4664 - [\\/]* | ?:[\\/]* ) . $cache_file;;
4665 - *) . ./$cache_file;;
4666 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
4667 + *) . "./$cache_file";;
4668 esac
4669 fi
4670 else
4671 @@ -4319,10 +4900,9 @@ exec 5>>./config.log
4672
4673
4674
4675 -# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4676 +# Check whether --enable-64-bit-bfd was given.
4677 if test "${enable_64_bit_bfd+set}" = set; then
4678 - enableval="$enable_64_bit_bfd"
4679 - case "${enableval}" in
4680 + enableval=$enable_64_bit_bfd; case "${enableval}" in
4681 yes) want64=true ;;
4682 no) want64=false ;;
4683 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4684 @@ -4331,10 +4911,10 @@ echo "$as_me: error: bad value ${enablev
4685 esac
4686 else
4687 want64=false
4688 -fi; # Check whether --enable-targets or --disable-targets was given.
4689 +fi
4690 +# Check whether --enable-targets was given.
4691 if test "${enable_targets+set}" = set; then
4692 - enableval="$enable_targets"
4693 - case "${enableval}" in
4694 + enableval=$enable_targets; case "${enableval}" in
4695 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4696 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4697 { (exit 1); exit 1; }; }
4698 @@ -4342,21 +4922,21 @@ echo "$as_me: error: enable-targets opti
4699 no) enable_targets= ;;
4700 *) enable_targets=$enableval ;;
4701 esac
4702 -fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4703 +fi
4704 +# Check whether --enable-commonbfdlib was given.
4705 if test "${enable_commonbfdlib+set}" = set; then
4706 - enableval="$enable_commonbfdlib"
4707 - case "${enableval}" in
4708 + enableval=$enable_commonbfdlib; case "${enableval}" in
4709 yes) commonbfdlib=true ;;
4710 no) commonbfdlib=false ;;
4711 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4712 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4713 { (exit 1); exit 1; }; } ;;
4714 esac
4715 -fi;
4716 -# Check whether --with-mmap or --without-mmap was given.
4717 +fi
4718 +
4719 +# Check whether --with-mmap was given.
4720 if test "${with_mmap+set}" = set; then
4721 - withval="$with_mmap"
4722 - case "${withval}" in
4723 + withval=$with_mmap; case "${withval}" in
4724 yes) want_mmap=true ;;
4725 no) want_mmap=false ;;
4726 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4727 @@ -4365,11 +4945,11 @@ echo "$as_me: error: bad value ${withval
4728 esac
4729 else
4730 want_mmap=false
4731 -fi;
4732 -# Check whether --enable-secureplt or --disable-secureplt was given.
4733 +fi
4734 +
4735 +# Check whether --enable-secureplt was given.
4736 if test "${enable_secureplt+set}" = set; then
4737 - enableval="$enable_secureplt"
4738 - case "${enableval}" in
4739 + enableval=$enable_secureplt; case "${enableval}" in
4740 yes) use_secureplt=true ;;
4741 no) use_secureplt=false ;;
4742 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4743 @@ -4378,7 +4958,8 @@ echo "$as_me: error: bad value ${enablev
4744 esac
4745 else
4746 use_secureplt=false
4747 -fi; if test $use_secureplt = true; then
4748 +fi
4749 +if test $use_secureplt = true; then
4750
4751 cat >>confdefs.h <<\_ACEOF
4752 #define USE_SECUREPLT 1
4753 @@ -4389,17 +4970,17 @@ fi
4754
4755 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4756
4757 -# Check whether --enable-werror or --disable-werror was given.
4758 +# Check whether --enable-werror was given.
4759 if test "${enable_werror+set}" = set; then
4760 - enableval="$enable_werror"
4761 - case "${enableval}" in
4762 + enableval=$enable_werror; case "${enableval}" in
4763 yes | y) ERROR_ON_WARNING="yes" ;;
4764 no | n) ERROR_ON_WARNING="no" ;;
4765 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4766 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4767 { (exit 1); exit 1; }; } ;;
4768 esac
4769 -fi;
4770 +fi
4771 +
4772
4773 # Enable -Werror by default when using gcc
4774 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4775 @@ -4416,10 +4997,9 @@ if test "${GCC}" = yes ; then
4776 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4777 fi
4778
4779 -# Check whether --enable-build-warnings or --disable-build-warnings was given.
4780 +# Check whether --enable-build-warnings was given.
4781 if test "${enable_build_warnings+set}" = set; then
4782 - enableval="$enable_build_warnings"
4783 - case "${enableval}" in
4784 + enableval=$enable_build_warnings; case "${enableval}" in
4785 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4786 no) if test "${GCC}" = yes ; then
4787 WARN_CFLAGS="-w"
4788 @@ -4430,7 +5010,8 @@ if test "${enable_build_warnings+set}" =
4789 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4790 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4791 esac
4792 -fi;
4793 +fi
4794 +
4795
4796 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4797 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4798 @@ -4440,7 +5021,7 @@ fi
4799
4800
4801
4802 - ac_config_headers="$ac_config_headers config.h:config.in"
4803 +ac_config_headers="$ac_config_headers config.h:config.in"
4804
4805
4806 if test -z "$target" ; then
4807 @@ -4449,17 +5030,17 @@ echo "$as_me: error: Unrecognized target
4808 { (exit 1); exit 1; }; }
4809 fi
4810
4811 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4812 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4813 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4814 +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4815 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4816 + # Check whether --enable-maintainer-mode was given.
4817 if test "${enable_maintainer_mode+set}" = set; then
4818 - enableval="$enable_maintainer_mode"
4819 - USE_MAINTAINER_MODE=$enableval
4820 + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4821 else
4822 USE_MAINTAINER_MODE=no
4823 -fi;
4824 - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4825 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4826 +fi
4827 +
4828 + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4829 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4830
4831
4832 if test $USE_MAINTAINER_MODE = yes; then
4833 @@ -4488,21 +5069,21 @@ esac
4834 *) target_noncanonical=${target_alias} ;;
4835 esac
4836
4837 -echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4838 -echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4839 - # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4840 +{ echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4841 +echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6; }
4842 + # Check whether --enable-install-libbfd was given.
4843 if test "${enable_install_libbfd+set}" = set; then
4844 - enableval="$enable_install_libbfd"
4845 - install_libbfd_p=$enableval
4846 + enableval=$enable_install_libbfd; install_libbfd_p=$enableval
4847 else
4848 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4849 install_libbfd_p=yes
4850 else
4851 install_libbfd_p=no
4852 fi
4853 -fi;
4854 - echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4855 -echo "${ECHO_T}$install_libbfd_p" >&6
4856 +fi
4857 +
4858 + { echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4859 +echo "${ECHO_T}$install_libbfd_p" >&6; }
4860
4861
4862 if test $install_libbfd_p = yes; then
4863 @@ -4545,8 +5126,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 if test -n "$ac_tool_prefix"; then
4865 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4866 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4867 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4869 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871 if test "${ac_cv_prog_CC+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874 @@ -4559,32 +5140,34 @@ do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886 +IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 CC=$ac_cv_prog_CC
4891 if test -n "$CC"; then
4892 - echo "$as_me:$LINENO: result: $CC" >&5
4893 -echo "${ECHO_T}$CC" >&6
4894 + { echo "$as_me:$LINENO: result: $CC" >&5
4895 +echo "${ECHO_T}$CC" >&6; }
4896 else
4897 - echo "$as_me:$LINENO: result: no" >&5
4898 -echo "${ECHO_T}no" >&6
4899 + { echo "$as_me:$LINENO: result: no" >&5
4900 +echo "${ECHO_T}no" >&6; }
4901 fi
4902
4903 +
4904 fi
4905 if test -z "$ac_cv_prog_CC"; then
4906 ac_ct_CC=$CC
4907 # Extract the first word of "gcc", so it can be a program name with args.
4908 set dummy gcc; ac_word=$2
4909 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4910 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4911 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916 @@ -4597,36 +5180,51 @@ do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_ac_ct_CC="gcc"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4925 fi
4926 done
4927 done
4928 +IFS=$as_save_IFS
4929
4930 fi
4931 fi
4932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4933 if test -n "$ac_ct_CC"; then
4934 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4935 -echo "${ECHO_T}$ac_ct_CC" >&6
4936 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4937 +echo "${ECHO_T}$ac_ct_CC" >&6; }
4938 else
4939 - echo "$as_me:$LINENO: result: no" >&5
4940 -echo "${ECHO_T}no" >&6
4941 + { echo "$as_me:$LINENO: result: no" >&5
4942 +echo "${ECHO_T}no" >&6; }
4943 fi
4944
4945 - CC=$ac_ct_CC
4946 + if test "x$ac_ct_CC" = x; then
4947 + CC=""
4948 + else
4949 + case $cross_compiling:$ac_tool_warned in
4950 +yes:)
4951 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4952 +whose name does not start with the host triplet. If you think this
4953 +configuration is useful to you, please write to autoconf@gnu.org." >&5
4954 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4955 +whose name does not start with the host triplet. If you think this
4956 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4957 +ac_tool_warned=yes ;;
4958 +esac
4959 + CC=$ac_ct_CC
4960 + fi
4961 else
4962 CC="$ac_cv_prog_CC"
4963 fi
4964
4965 if test -z "$CC"; then
4966 - if test -n "$ac_tool_prefix"; then
4967 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4968 + if test -n "$ac_tool_prefix"; then
4969 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4970 set dummy ${ac_tool_prefix}cc; ac_word=$2
4971 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4975 if test "${ac_cv_prog_CC+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 @@ -4639,74 +5237,34 @@ do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_prog_CC="${ac_tool_prefix}cc"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988 done
4989 done
4990 +IFS=$as_save_IFS
4991
4992 fi
4993 fi
4994 CC=$ac_cv_prog_CC
4995 if test -n "$CC"; then
4996 - echo "$as_me:$LINENO: result: $CC" >&5
4997 -echo "${ECHO_T}$CC" >&6
4998 -else
4999 - echo "$as_me:$LINENO: result: no" >&5
5000 -echo "${ECHO_T}no" >&6
5001 -fi
5002 -
5003 -fi
5004 -if test -z "$ac_cv_prog_CC"; then
5005 - ac_ct_CC=$CC
5006 - # Extract the first word of "cc", so it can be a program name with args.
5007 -set dummy cc; ac_word=$2
5008 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5010 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5011 - echo $ECHO_N "(cached) $ECHO_C" >&6
5012 -else
5013 - if test -n "$ac_ct_CC"; then
5014 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5015 -else
5016 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 -for as_dir in $PATH
5018 -do
5019 - IFS=$as_save_IFS
5020 - test -z "$as_dir" && as_dir=.
5021 - for ac_exec_ext in '' $ac_executable_extensions; do
5022 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 - ac_cv_prog_ac_ct_CC="cc"
5024 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 - break 2
5026 - fi
5027 -done
5028 -done
5029 -
5030 -fi
5031 -fi
5032 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
5033 -if test -n "$ac_ct_CC"; then
5034 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5035 -echo "${ECHO_T}$ac_ct_CC" >&6
5036 + { echo "$as_me:$LINENO: result: $CC" >&5
5037 +echo "${ECHO_T}$CC" >&6; }
5038 else
5039 - echo "$as_me:$LINENO: result: no" >&5
5040 -echo "${ECHO_T}no" >&6
5041 + { echo "$as_me:$LINENO: result: no" >&5
5042 +echo "${ECHO_T}no" >&6; }
5043 fi
5044
5045 - CC=$ac_ct_CC
5046 -else
5047 - CC="$ac_cv_prog_CC"
5048 -fi
5049
5050 + fi
5051 fi
5052 if test -z "$CC"; then
5053 # Extract the first word of "cc", so it can be a program name with args.
5054 set dummy cc; ac_word=$2
5055 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5056 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5057 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5058 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5059 if test "${ac_cv_prog_CC+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062 @@ -4720,7 +5278,7 @@ do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5069 ac_prog_rejected=yes
5070 continue
5071 @@ -4731,6 +5289,7 @@ do
5072 fi
5073 done
5074 done
5075 +IFS=$as_save_IFS
5076
5077 if test $ac_prog_rejected = yes; then
5078 # We found a bogon in the path, so make sure we never use it.
5079 @@ -4748,22 +5307,23 @@ fi
5080 fi
5081 CC=$ac_cv_prog_CC
5082 if test -n "$CC"; then
5083 - echo "$as_me:$LINENO: result: $CC" >&5
5084 -echo "${ECHO_T}$CC" >&6
5085 + { echo "$as_me:$LINENO: result: $CC" >&5
5086 +echo "${ECHO_T}$CC" >&6; }
5087 else
5088 - echo "$as_me:$LINENO: result: no" >&5
5089 -echo "${ECHO_T}no" >&6
5090 + { echo "$as_me:$LINENO: result: no" >&5
5091 +echo "${ECHO_T}no" >&6; }
5092 fi
5093
5094 +
5095 fi
5096 if test -z "$CC"; then
5097 if test -n "$ac_tool_prefix"; then
5098 - for ac_prog in cl
5099 + for ac_prog in cl.exe
5100 do
5101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5103 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_prog_CC+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 @@ -4776,36 +5336,38 @@ do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5119 fi
5120 done
5121 done
5122 +IFS=$as_save_IFS
5123
5124 fi
5125 fi
5126 CC=$ac_cv_prog_CC
5127 if test -n "$CC"; then
5128 - echo "$as_me:$LINENO: result: $CC" >&5
5129 -echo "${ECHO_T}$CC" >&6
5130 + { echo "$as_me:$LINENO: result: $CC" >&5
5131 +echo "${ECHO_T}$CC" >&6; }
5132 else
5133 - echo "$as_me:$LINENO: result: no" >&5
5134 -echo "${ECHO_T}no" >&6
5135 + { echo "$as_me:$LINENO: result: no" >&5
5136 +echo "${ECHO_T}no" >&6; }
5137 fi
5138
5139 +
5140 test -n "$CC" && break
5141 done
5142 fi
5143 if test -z "$CC"; then
5144 ac_ct_CC=$CC
5145 - for ac_prog in cl
5146 + for ac_prog in cl.exe
5147 do
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5152 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 @@ -4818,29 +5380,45 @@ do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_ac_ct_CC="$ac_prog"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167 done
5168 done
5169 +IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5174 if test -n "$ac_ct_CC"; then
5175 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5176 -echo "${ECHO_T}$ac_ct_CC" >&6
5177 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5178 +echo "${ECHO_T}$ac_ct_CC" >&6; }
5179 else
5180 - echo "$as_me:$LINENO: result: no" >&5
5181 -echo "${ECHO_T}no" >&6
5182 + { echo "$as_me:$LINENO: result: no" >&5
5183 +echo "${ECHO_T}no" >&6; }
5184 fi
5185
5186 +
5187 test -n "$ac_ct_CC" && break
5188 done
5189
5190 - CC=$ac_ct_CC
5191 + if test "x$ac_ct_CC" = x; then
5192 + CC=""
5193 + else
5194 + case $cross_compiling:$ac_tool_warned in
5195 +yes:)
5196 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5197 +whose name does not start with the host triplet. If you think this
5198 +configuration is useful to you, please write to autoconf@gnu.org." >&5
5199 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5200 +whose name does not start with the host triplet. If you think this
5201 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5202 +ac_tool_warned=yes ;;
5203 +esac
5204 + CC=$ac_ct_CC
5205 + fi
5206 fi
5207
5208 fi
5209 @@ -4853,27 +5431,41 @@ See \`config.log' for more details." >&2
5210 { (exit 1); exit 1; }; }
5211
5212 # Provide some information about the compiler.
5213 -echo "$as_me:$LINENO:" \
5214 - "checking for C compiler version" >&5
5215 +echo "$as_me:$LINENO: checking for C compiler version" >&5
5216 ac_compiler=`set X $ac_compile; echo $2`
5217 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5218 - (eval $ac_compiler --version </dev/null >&5) 2>&5
5219 +{ (ac_try="$ac_compiler --version >&5"
5220 +case "(($ac_try" in
5221 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 + *) ac_try_echo=$ac_try;;
5223 +esac
5224 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 + (eval "$ac_compiler --version >&5") 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }
5229 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5230 - (eval $ac_compiler -v </dev/null >&5) 2>&5
5231 +{ (ac_try="$ac_compiler -v >&5"
5232 +case "(($ac_try" in
5233 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 + *) ac_try_echo=$ac_try;;
5235 +esac
5236 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 + (eval "$ac_compiler -v >&5") 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5241 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5242 - (eval $ac_compiler -V </dev/null >&5) 2>&5
5243 +{ (ac_try="$ac_compiler -V >&5"
5244 +case "(($ac_try" in
5245 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 + *) ac_try_echo=$ac_try;;
5247 +esac
5248 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 + (eval "$ac_compiler -V >&5") 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }
5253
5254 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5255 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5256 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5257 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5258 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261 @@ -4896,50 +5488,49 @@ main ()
5262 }
5263 _ACEOF
5264 rm -f conftest.$ac_objext
5265 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266 - (eval $ac_compile) 2>conftest.er1
5267 +if { (ac_try="$ac_compile"
5268 +case "(($ac_try" in
5269 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 + *) ac_try_echo=$ac_try;;
5271 +esac
5272 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 + (eval "$ac_compile") 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 - (exit $ac_status); } &&
5280 - { ac_try='test -z "$ac_c_werror_flag"
5281 - || test ! -s conftest.err'
5282 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 - (eval $ac_try) 2>&5
5284 - ac_status=$?
5285 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 - (exit $ac_status); }; } &&
5287 - { ac_try='test -s conftest.$ac_objext'
5288 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 - (eval $ac_try) 2>&5
5290 - ac_status=$?
5291 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 - (exit $ac_status); }; }; then
5293 + (exit $ac_status); } && {
5294 + test -z "$ac_c_werror_flag" ||
5295 + test ! -s conftest.err
5296 + } && test -s conftest.$ac_objext; then
5297 ac_compiler_gnu=yes
5298 else
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302 -ac_compiler_gnu=no
5303 + ac_compiler_gnu=no
5304 fi
5305 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5306 +
5307 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5309
5310 fi
5311 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5312 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5313 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5314 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5315 GCC=`test $ac_compiler_gnu = yes && echo yes`
5316 ac_test_CFLAGS=${CFLAGS+set}
5317 ac_save_CFLAGS=$CFLAGS
5318 -CFLAGS="-g"
5319 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5320 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5321 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5322 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5323 if test "${ac_cv_prog_cc_g+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 - cat >conftest.$ac_ext <<_ACEOF
5327 + ac_save_c_werror_flag=$ac_c_werror_flag
5328 + ac_c_werror_flag=yes
5329 + ac_cv_prog_cc_g=no
5330 + CFLAGS="-g"
5331 + cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 @@ -4955,46 +5546,126 @@ main ()
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 - (eval $ac_compile) 2>conftest.er1
5341 +if { (ac_try="$ac_compile"
5342 +case "(($ac_try" in
5343 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 + *) ac_try_echo=$ac_try;;
5345 +esac
5346 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 + (eval "$ac_compile") 2>conftest.er1
5348 ac_status=$?
5349 grep -v '^ *+' conftest.er1 >conftest.err
5350 rm -f conftest.er1
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 - (exit $ac_status); } &&
5354 - { ac_try='test -z "$ac_c_werror_flag"
5355 - || test ! -s conftest.err'
5356 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 - (eval $ac_try) 2>&5
5358 - ac_status=$?
5359 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 - (exit $ac_status); }; } &&
5361 - { ac_try='test -s conftest.$ac_objext'
5362 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 - (eval $ac_try) 2>&5
5364 - ac_status=$?
5365 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 - (exit $ac_status); }; }; then
5367 + (exit $ac_status); } && {
5368 + test -z "$ac_c_werror_flag" ||
5369 + test ! -s conftest.err
5370 + } && test -s conftest.$ac_objext; then
5371 ac_cv_prog_cc_g=yes
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 -ac_cv_prog_cc_g=no
5377 -fi
5378 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379 -fi
5380 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5381 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5382 -if test "$ac_test_CFLAGS" = set; then
5383 - CFLAGS=$ac_save_CFLAGS
5384 -elif test $ac_cv_prog_cc_g = yes; then
5385 - if test "$GCC" = yes; then
5386 - CFLAGS="-g -O2"
5387 - else
5388 - CFLAGS="-g"
5389 - fi
5390 + CFLAGS=""
5391 + cat >conftest.$ac_ext <<_ACEOF
5392 +/* confdefs.h. */
5393 +_ACEOF
5394 +cat confdefs.h >>conftest.$ac_ext
5395 +cat >>conftest.$ac_ext <<_ACEOF
5396 +/* end confdefs.h. */
5397 +
5398 +int
5399 +main ()
5400 +{
5401 +
5402 + ;
5403 + return 0;
5404 +}
5405 +_ACEOF
5406 +rm -f conftest.$ac_objext
5407 +if { (ac_try="$ac_compile"
5408 +case "(($ac_try" in
5409 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 + *) ac_try_echo=$ac_try;;
5411 +esac
5412 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 + (eval "$ac_compile") 2>conftest.er1
5414 + ac_status=$?
5415 + grep -v '^ *+' conftest.er1 >conftest.err
5416 + rm -f conftest.er1
5417 + cat conftest.err >&5
5418 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 + (exit $ac_status); } && {
5420 + test -z "$ac_c_werror_flag" ||
5421 + test ! -s conftest.err
5422 + } && test -s conftest.$ac_objext; then
5423 + :
5424 +else
5425 + echo "$as_me: failed program was:" >&5
5426 +sed 's/^/| /' conftest.$ac_ext >&5
5427 +
5428 + ac_c_werror_flag=$ac_save_c_werror_flag
5429 + CFLAGS="-g"
5430 + cat >conftest.$ac_ext <<_ACEOF
5431 +/* confdefs.h. */
5432 +_ACEOF
5433 +cat confdefs.h >>conftest.$ac_ext
5434 +cat >>conftest.$ac_ext <<_ACEOF
5435 +/* end confdefs.h. */
5436 +
5437 +int
5438 +main ()
5439 +{
5440 +
5441 + ;
5442 + return 0;
5443 +}
5444 +_ACEOF
5445 +rm -f conftest.$ac_objext
5446 +if { (ac_try="$ac_compile"
5447 +case "(($ac_try" in
5448 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 + *) ac_try_echo=$ac_try;;
5450 +esac
5451 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 + (eval "$ac_compile") 2>conftest.er1
5453 + ac_status=$?
5454 + grep -v '^ *+' conftest.er1 >conftest.err
5455 + rm -f conftest.er1
5456 + cat conftest.err >&5
5457 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 + (exit $ac_status); } && {
5459 + test -z "$ac_c_werror_flag" ||
5460 + test ! -s conftest.err
5461 + } && test -s conftest.$ac_objext; then
5462 + ac_cv_prog_cc_g=yes
5463 +else
5464 + echo "$as_me: failed program was:" >&5
5465 +sed 's/^/| /' conftest.$ac_ext >&5
5466 +
5467 +
5468 +fi
5469 +
5470 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 +fi
5472 +
5473 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 +fi
5475 +
5476 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 + ac_c_werror_flag=$ac_save_c_werror_flag
5478 +fi
5479 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5480 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5481 +if test "$ac_test_CFLAGS" = set; then
5482 + CFLAGS=$ac_save_CFLAGS
5483 +elif test $ac_cv_prog_cc_g = yes; then
5484 + if test "$GCC" = yes; then
5485 + CFLAGS="-g -O2"
5486 + else
5487 + CFLAGS="-g"
5488 + fi
5489 else
5490 if test "$GCC" = yes; then
5491 CFLAGS="-O2"
5492 @@ -5002,12 +5673,12 @@ else
5493 CFLAGS=
5494 fi
5495 fi
5496 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5497 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5498 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
5499 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5500 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5501 +if test "${ac_cv_prog_cc_c89+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 - ac_cv_prog_cc_stdc=no
5505 + ac_cv_prog_cc_c89=no
5506 ac_save_CC=$CC
5507 cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h. */
5509 @@ -5041,12 +5712,17 @@ static char *f (char * (*g) (char **, in
5510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5511 function prototypes and stuff, but not '\xHH' hex character constants.
5512 These don't provoke an error unfortunately, instead are silently treated
5513 - as 'x'. The following induces an error, until -std1 is added to get
5514 + as 'x'. The following induces an error, until -std is added to get
5515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5516 array size at least. It's necessary to write '\x00'==0 to get something
5517 - that's true only with -std1. */
5518 + that's true only with -std. */
5519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5520
5521 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5522 + inside strings and character constants. */
5523 +#define FOO(x) 'x'
5524 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5525 +
5526 int test (int i, double x);
5527 struct s1 {int (*f) (int a);};
5528 struct s2 {int (*f) (double a);};
5529 @@ -5061,205 +5737,57 @@ return f (e, argv, 0) != argv[0] || f
5530 return 0;
5531 }
5532 _ACEOF
5533 -# Don't try gcc -ansi; that turns off useful extensions and
5534 -# breaks some systems' header files.
5535 -# AIX -qlanglvl=ansi
5536 -# Ultrix and OSF/1 -std1
5537 -# HP-UX 10.20 and later -Ae
5538 -# HP-UX older versions -Aa -D_HPUX_SOURCE
5539 -# SVR4 -Xc -D__EXTENSIONS__
5540 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5541 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5542 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5543 do
5544 CC="$ac_save_CC $ac_arg"
5545 rm -f conftest.$ac_objext
5546 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547 - (eval $ac_compile) 2>conftest.er1
5548 +if { (ac_try="$ac_compile"
5549 +case "(($ac_try" in
5550 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 + *) ac_try_echo=$ac_try;;
5552 +esac
5553 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 + (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 - (exit $ac_status); } &&
5561 - { ac_try='test -z "$ac_c_werror_flag"
5562 - || test ! -s conftest.err'
5563 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 - (eval $ac_try) 2>&5
5565 - ac_status=$?
5566 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 - (exit $ac_status); }; } &&
5568 - { ac_try='test -s conftest.$ac_objext'
5569 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 - (eval $ac_try) 2>&5
5571 - ac_status=$?
5572 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 - (exit $ac_status); }; }; then
5574 - ac_cv_prog_cc_stdc=$ac_arg
5575 -break
5576 + (exit $ac_status); } && {
5577 + test -z "$ac_c_werror_flag" ||
5578 + test ! -s conftest.err
5579 + } && test -s conftest.$ac_objext; then
5580 + ac_cv_prog_cc_c89=$ac_arg
5581 else
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585 +
5586 fi
5587 -rm -f conftest.err conftest.$ac_objext
5588 +
5589 +rm -f core conftest.err conftest.$ac_objext
5590 + test "x$ac_cv_prog_cc_c89" != "xno" && break
5591 done
5592 -rm -f conftest.$ac_ext conftest.$ac_objext
5593 +rm -f conftest.$ac_ext
5594 CC=$ac_save_CC
5595
5596 fi
5597 -
5598 -case "x$ac_cv_prog_cc_stdc" in
5599 - x|xno)
5600 - echo "$as_me:$LINENO: result: none needed" >&5
5601 -echo "${ECHO_T}none needed" >&6 ;;
5602 +# AC_CACHE_VAL
5603 +case "x$ac_cv_prog_cc_c89" in
5604 + x)
5605 + { echo "$as_me:$LINENO: result: none needed" >&5
5606 +echo "${ECHO_T}none needed" >&6; } ;;
5607 + xno)
5608 + { echo "$as_me:$LINENO: result: unsupported" >&5
5609 +echo "${ECHO_T}unsupported" >&6; } ;;
5610 *)
5611 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5612 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5613 - CC="$CC $ac_cv_prog_cc_stdc" ;;
5614 + CC="$CC $ac_cv_prog_cc_c89"
5615 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5616 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5617 esac
5618
5619 -# Some people use a C++ compiler to compile C. Since we use `exit',
5620 -# in C++ we need to declare it. In case someone uses the same compiler
5621 -# for both compiling C and C++ we need to have the C++ compiler decide
5622 -# the declaration of exit, since it's the most demanding environment.
5623 -cat >conftest.$ac_ext <<_ACEOF
5624 -#ifndef __cplusplus
5625 - choke me
5626 -#endif
5627 -_ACEOF
5628 -rm -f conftest.$ac_objext
5629 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 - (eval $ac_compile) 2>conftest.er1
5631 - ac_status=$?
5632 - grep -v '^ *+' conftest.er1 >conftest.err
5633 - rm -f conftest.er1
5634 - cat conftest.err >&5
5635 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 - (exit $ac_status); } &&
5637 - { ac_try='test -z "$ac_c_werror_flag"
5638 - || test ! -s conftest.err'
5639 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 - (eval $ac_try) 2>&5
5641 - ac_status=$?
5642 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 - (exit $ac_status); }; } &&
5644 - { ac_try='test -s conftest.$ac_objext'
5645 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 - (eval $ac_try) 2>&5
5647 - ac_status=$?
5648 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 - (exit $ac_status); }; }; then
5650 - for ac_declaration in \
5651 - '' \
5652 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
5653 - 'extern "C" void std::exit (int); using std::exit;' \
5654 - 'extern "C" void exit (int) throw ();' \
5655 - 'extern "C" void exit (int);' \
5656 - 'void exit (int);'
5657 -do
5658 - cat >conftest.$ac_ext <<_ACEOF
5659 -/* confdefs.h. */
5660 -_ACEOF
5661 -cat confdefs.h >>conftest.$ac_ext
5662 -cat >>conftest.$ac_ext <<_ACEOF
5663 -/* end confdefs.h. */
5664 -$ac_declaration
5665 -#include <stdlib.h>
5666 -int
5667 -main ()
5668 -{
5669 -exit (42);
5670 - ;
5671 - return 0;
5672 -}
5673 -_ACEOF
5674 -rm -f conftest.$ac_objext
5675 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676 - (eval $ac_compile) 2>conftest.er1
5677 - ac_status=$?
5678 - grep -v '^ *+' conftest.er1 >conftest.err
5679 - rm -f conftest.er1
5680 - cat conftest.err >&5
5681 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 - (exit $ac_status); } &&
5683 - { ac_try='test -z "$ac_c_werror_flag"
5684 - || test ! -s conftest.err'
5685 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 - (eval $ac_try) 2>&5
5687 - ac_status=$?
5688 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 - (exit $ac_status); }; } &&
5690 - { ac_try='test -s conftest.$ac_objext'
5691 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 - (eval $ac_try) 2>&5
5693 - ac_status=$?
5694 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 - (exit $ac_status); }; }; then
5696 - :
5697 -else
5698 - echo "$as_me: failed program was:" >&5
5699 -sed 's/^/| /' conftest.$ac_ext >&5
5700 -
5701 -continue
5702 -fi
5703 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5704 - cat >conftest.$ac_ext <<_ACEOF
5705 -/* confdefs.h. */
5706 -_ACEOF
5707 -cat confdefs.h >>conftest.$ac_ext
5708 -cat >>conftest.$ac_ext <<_ACEOF
5709 -/* end confdefs.h. */
5710 -$ac_declaration
5711 -int
5712 -main ()
5713 -{
5714 -exit (42);
5715 - ;
5716 - return 0;
5717 -}
5718 -_ACEOF
5719 -rm -f conftest.$ac_objext
5720 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5721 - (eval $ac_compile) 2>conftest.er1
5722 - ac_status=$?
5723 - grep -v '^ *+' conftest.er1 >conftest.err
5724 - rm -f conftest.er1
5725 - cat conftest.err >&5
5726 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 - (exit $ac_status); } &&
5728 - { ac_try='test -z "$ac_c_werror_flag"
5729 - || test ! -s conftest.err'
5730 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 - (eval $ac_try) 2>&5
5732 - ac_status=$?
5733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 - (exit $ac_status); }; } &&
5735 - { ac_try='test -s conftest.$ac_objext'
5736 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 - (eval $ac_try) 2>&5
5738 - ac_status=$?
5739 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 - (exit $ac_status); }; }; then
5741 - break
5742 -else
5743 - echo "$as_me: failed program was:" >&5
5744 -sed 's/^/| /' conftest.$ac_ext >&5
5745 -
5746 -fi
5747 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5748 -done
5749 -rm -f conftest*
5750 -if test -n "$ac_declaration"; then
5751 - echo '#ifdef __cplusplus' >>confdefs.h
5752 - echo $ac_declaration >>confdefs.h
5753 - echo '#endif' >>confdefs.h
5754 -fi
5755 -
5756 -else
5757 - echo "$as_me: failed program was:" >&5
5758 -sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 -fi
5761 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ac_ext=c
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 @@ -5277,8 +5805,8 @@ ALL_LINGUAS="fr tr ja es sv da zh_CN ro
5766 if test -n "$ac_tool_prefix"; then
5767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5768 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5769 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5771 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5773 if test "${ac_cv_prog_RANLIB+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776 @@ -5291,32 +5819,34 @@ do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786 done
5787 done
5788 +IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 RANLIB=$ac_cv_prog_RANLIB
5793 if test -n "$RANLIB"; then
5794 - echo "$as_me:$LINENO: result: $RANLIB" >&5
5795 -echo "${ECHO_T}$RANLIB" >&6
5796 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
5797 +echo "${ECHO_T}$RANLIB" >&6; }
5798 else
5799 - echo "$as_me:$LINENO: result: no" >&5
5800 -echo "${ECHO_T}no" >&6
5801 + { echo "$as_me:$LINENO: result: no" >&5
5802 +echo "${ECHO_T}no" >&6; }
5803 fi
5804
5805 +
5806 fi
5807 if test -z "$ac_cv_prog_RANLIB"; then
5808 ac_ct_RANLIB=$RANLIB
5809 # Extract the first word of "ranlib", so it can be a program name with args.
5810 set dummy ranlib; ac_word=$2
5811 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818 @@ -5329,27 +5859,41 @@ do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_ac_ct_RANLIB="ranlib"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828 done
5829 done
5830 +IFS=$as_save_IFS
5831
5832 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5833 fi
5834 fi
5835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5836 if test -n "$ac_ct_RANLIB"; then
5837 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5838 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
5839 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5840 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5841 else
5842 - echo "$as_me:$LINENO: result: no" >&5
5843 -echo "${ECHO_T}no" >&6
5844 + { echo "$as_me:$LINENO: result: no" >&5
5845 +echo "${ECHO_T}no" >&6; }
5846 fi
5847
5848 - RANLIB=$ac_ct_RANLIB
5849 + if test "x$ac_ct_RANLIB" = x; then
5850 + RANLIB=":"
5851 + else
5852 + case $cross_compiling:$ac_tool_warned in
5853 +yes:)
5854 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5855 +whose name does not start with the host triplet. If you think this
5856 +configuration is useful to you, please write to autoconf@gnu.org." >&5
5857 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5858 +whose name does not start with the host triplet. If you think this
5859 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5860 +ac_tool_warned=yes ;;
5861 +esac
5862 + RANLIB=$ac_ct_RANLIB
5863 + fi
5864 else
5865 RANLIB="$ac_cv_prog_RANLIB"
5866 fi
5867 @@ -5359,8 +5903,8 @@ ac_cpp='$CPP $CPPFLAGS'
5868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5871 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5872 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5873 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5874 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5875 # On Suns, sometimes $CPP names a directory.
5876 if test -n "$CPP" && test -d "$CPP"; then
5877 CPP=
5878 @@ -5394,24 +5938,22 @@ cat >>conftest.$ac_ext <<_ACEOF
5879 #endif
5880 Syntax error
5881 _ACEOF
5882 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5883 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5884 +if { (ac_try="$ac_cpp conftest.$ac_ext"
5885 +case "(($ac_try" in
5886 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 + *) ac_try_echo=$ac_try;;
5888 +esac
5889 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5891 ac_status=$?
5892 grep -v '^ *+' conftest.er1 >conftest.err
5893 rm -f conftest.er1
5894 cat conftest.err >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 - (exit $ac_status); } >/dev/null; then
5897 - if test -s conftest.err; then
5898 - ac_cpp_err=$ac_c_preproc_warn_flag
5899 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5900 - else
5901 - ac_cpp_err=
5902 - fi
5903 -else
5904 - ac_cpp_err=yes
5905 -fi
5906 -if test -z "$ac_cpp_err"; then
5907 + (exit $ac_status); } >/dev/null && {
5908 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5909 + test ! -s conftest.err
5910 + }; then
5911 :
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 @@ -5420,9 +5962,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
5915 # Broken: fails on valid input.
5916 continue
5917 fi
5918 +
5919 rm -f conftest.err conftest.$ac_ext
5920
5921 - # OK, works on sane cases. Now check whether non-existent headers
5922 + # OK, works on sane cases. Now check whether nonexistent headers
5923 # can be detected and how.
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 @@ -5432,24 +5975,22 @@ cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 #include <ac_nonexistent.h>
5929 _ACEOF
5930 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5931 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5932 +if { (ac_try="$ac_cpp conftest.$ac_ext"
5933 +case "(($ac_try" in
5934 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 + *) ac_try_echo=$ac_try;;
5936 +esac
5937 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 - (exit $ac_status); } >/dev/null; then
5945 - if test -s conftest.err; then
5946 - ac_cpp_err=$ac_c_preproc_warn_flag
5947 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5948 - else
5949 - ac_cpp_err=
5950 - fi
5951 -else
5952 - ac_cpp_err=yes
5953 -fi
5954 -if test -z "$ac_cpp_err"; then
5955 + (exit $ac_status); } >/dev/null && {
5956 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5957 + test ! -s conftest.err
5958 + }; then
5959 # Broken: success on invalid input.
5960 continue
5961 else
5962 @@ -5460,6 +6001,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_preproc_ok=:
5964 break
5965 fi
5966 +
5967 rm -f conftest.err conftest.$ac_ext
5968
5969 done
5970 @@ -5477,8 +6019,8 @@ fi
5971 else
5972 ac_cv_prog_CPP=$CPP
5973 fi
5974 -echo "$as_me:$LINENO: result: $CPP" >&5
5975 -echo "${ECHO_T}$CPP" >&6
5976 +{ echo "$as_me:$LINENO: result: $CPP" >&5
5977 +echo "${ECHO_T}$CPP" >&6; }
5978 ac_preproc_ok=false
5979 for ac_c_preproc_warn_flag in '' yes
5980 do
5981 @@ -5501,24 +6043,22 @@ cat >>conftest.$ac_ext <<_ACEOF
5982 #endif
5983 Syntax error
5984 _ACEOF
5985 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5986 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5987 +if { (ac_try="$ac_cpp conftest.$ac_ext"
5988 +case "(($ac_try" in
5989 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 + *) ac_try_echo=$ac_try;;
5991 +esac
5992 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 - (exit $ac_status); } >/dev/null; then
6000 - if test -s conftest.err; then
6001 - ac_cpp_err=$ac_c_preproc_warn_flag
6002 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6003 - else
6004 - ac_cpp_err=
6005 - fi
6006 -else
6007 - ac_cpp_err=yes
6008 -fi
6009 -if test -z "$ac_cpp_err"; then
6010 + (exit $ac_status); } >/dev/null && {
6011 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6012 + test ! -s conftest.err
6013 + }; then
6014 :
6015 else
6016 echo "$as_me: failed program was:" >&5
6017 @@ -5527,9 +6067,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
6018 # Broken: fails on valid input.
6019 continue
6020 fi
6021 +
6022 rm -f conftest.err conftest.$ac_ext
6023
6024 - # OK, works on sane cases. Now check whether non-existent headers
6025 + # OK, works on sane cases. Now check whether nonexistent headers
6026 # can be detected and how.
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h. */
6029 @@ -5539,24 +6080,22 @@ cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <ac_nonexistent.h>
6032 _ACEOF
6033 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6034 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6035 +if { (ac_try="$ac_cpp conftest.$ac_ext"
6036 +case "(($ac_try" in
6037 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 + *) ac_try_echo=$ac_try;;
6039 +esac
6040 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 - (exit $ac_status); } >/dev/null; then
6048 - if test -s conftest.err; then
6049 - ac_cpp_err=$ac_c_preproc_warn_flag
6050 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6051 - else
6052 - ac_cpp_err=
6053 - fi
6054 -else
6055 - ac_cpp_err=yes
6056 -fi
6057 -if test -z "$ac_cpp_err"; then
6058 + (exit $ac_status); } >/dev/null && {
6059 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6060 + test ! -s conftest.err
6061 + }; then
6062 # Broken: success on invalid input.
6063 continue
6064 else
6065 @@ -5567,6 +6106,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
6066 ac_preproc_ok=:
6067 break
6068 fi
6069 +
6070 rm -f conftest.err conftest.$ac_ext
6071
6072 done
6073 @@ -5589,87 +6129,230 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
6074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
6076
6077 -echo "$as_me:$LINENO: checking for egrep" >&5
6078 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6079 -if test "${ac_cv_prog_egrep+set}" = set; then
6080 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6081 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6082 +if test "${ac_cv_path_GREP+set}" = set; then
6083 + echo $ECHO_N "(cached) $ECHO_C" >&6
6084 +else
6085 + # Extract the first word of "grep ggrep" to use in msg output
6086 +if test -z "$GREP"; then
6087 +set dummy grep ggrep; ac_prog_name=$2
6088 +if test "${ac_cv_path_GREP+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6092 - then ac_cv_prog_egrep='grep -E'
6093 - else ac_cv_prog_egrep='egrep'
6094 + ac_path_GREP_found=false
6095 +# Loop through the user's path and test for each of PROGNAME-LIST
6096 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6098 +do
6099 + IFS=$as_save_IFS
6100 + test -z "$as_dir" && as_dir=.
6101 + for ac_prog in grep ggrep; do
6102 + for ac_exec_ext in '' $ac_executable_extensions; do
6103 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6104 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6105 + # Check for GNU ac_path_GREP and select it if it is found.
6106 + # Check for GNU $ac_path_GREP
6107 +case `"$ac_path_GREP" --version 2>&1` in
6108 +*GNU*)
6109 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6110 +*)
6111 + ac_count=0
6112 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6113 + while :
6114 + do
6115 + cat "conftest.in" "conftest.in" >"conftest.tmp"
6116 + mv "conftest.tmp" "conftest.in"
6117 + cp "conftest.in" "conftest.nl"
6118 + echo 'GREP' >> "conftest.nl"
6119 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6120 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6121 + ac_count=`expr $ac_count + 1`
6122 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
6123 + # Best one so far, save it but keep looking for a better one
6124 + ac_cv_path_GREP="$ac_path_GREP"
6125 + ac_path_GREP_max=$ac_count
6126 fi
6127 -fi
6128 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6129 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6130 - EGREP=$ac_cv_prog_egrep
6131 + # 10*(2^10) chars as input seems more than enough
6132 + test $ac_count -gt 10 && break
6133 + done
6134 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6135 +esac
6136
6137
6138 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6139 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6140 -if test "${ac_cv_header_stdc+set}" = set; then
6141 - echo $ECHO_N "(cached) $ECHO_C" >&6
6142 -else
6143 - cat >conftest.$ac_ext <<_ACEOF
6144 -/* confdefs.h. */
6145 -_ACEOF
6146 -cat confdefs.h >>conftest.$ac_ext
6147 -cat >>conftest.$ac_ext <<_ACEOF
6148 -/* end confdefs.h. */
6149 -#include <stdlib.h>
6150 -#include <stdarg.h>
6151 -#include <string.h>
6152 -#include <float.h>
6153 + $ac_path_GREP_found && break 3
6154 + done
6155 +done
6156
6157 -int
6158 -main ()
6159 -{
6160 +done
6161 +IFS=$as_save_IFS
6162
6163 - ;
6164 - return 0;
6165 -}
6166 -_ACEOF
6167 -rm -f conftest.$ac_objext
6168 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169 - (eval $ac_compile) 2>conftest.er1
6170 - ac_status=$?
6171 - grep -v '^ *+' conftest.er1 >conftest.err
6172 - rm -f conftest.er1
6173 - cat conftest.err >&5
6174 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 - (exit $ac_status); } &&
6176 - { ac_try='test -z "$ac_c_werror_flag"
6177 - || test ! -s conftest.err'
6178 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 - (eval $ac_try) 2>&5
6180 - ac_status=$?
6181 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 - (exit $ac_status); }; } &&
6183 - { ac_try='test -s conftest.$ac_objext'
6184 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 - (eval $ac_try) 2>&5
6186 - ac_status=$?
6187 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 - (exit $ac_status); }; }; then
6189 - ac_cv_header_stdc=yes
6190 -else
6191 - echo "$as_me: failed program was:" >&5
6192 -sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 -ac_cv_header_stdc=no
6195 fi
6196 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6197
6198 -if test $ac_cv_header_stdc = yes; then
6199 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6200 - cat >conftest.$ac_ext <<_ACEOF
6201 -/* confdefs.h. */
6202 -_ACEOF
6203 -cat confdefs.h >>conftest.$ac_ext
6204 -cat >>conftest.$ac_ext <<_ACEOF
6205 -/* end confdefs.h. */
6206 -#include <string.h>
6207 +GREP="$ac_cv_path_GREP"
6208 +if test -z "$GREP"; then
6209 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6210 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6211 + { (exit 1); exit 1; }; }
6212 +fi
6213
6214 -_ACEOF
6215 +else
6216 + ac_cv_path_GREP=$GREP
6217 +fi
6218 +
6219 +
6220 +fi
6221 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6222 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6223 + GREP="$ac_cv_path_GREP"
6224 +
6225 +
6226 +{ echo "$as_me:$LINENO: checking for egrep" >&5
6227 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6228 +if test "${ac_cv_path_EGREP+set}" = set; then
6229 + echo $ECHO_N "(cached) $ECHO_C" >&6
6230 +else
6231 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6232 + then ac_cv_path_EGREP="$GREP -E"
6233 + else
6234 + # Extract the first word of "egrep" to use in msg output
6235 +if test -z "$EGREP"; then
6236 +set dummy egrep; ac_prog_name=$2
6237 +if test "${ac_cv_path_EGREP+set}" = set; then
6238 + echo $ECHO_N "(cached) $ECHO_C" >&6
6239 +else
6240 + ac_path_EGREP_found=false
6241 +# Loop through the user's path and test for each of PROGNAME-LIST
6242 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6244 +do
6245 + IFS=$as_save_IFS
6246 + test -z "$as_dir" && as_dir=.
6247 + for ac_prog in egrep; do
6248 + for ac_exec_ext in '' $ac_executable_extensions; do
6249 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6250 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6251 + # Check for GNU ac_path_EGREP and select it if it is found.
6252 + # Check for GNU $ac_path_EGREP
6253 +case `"$ac_path_EGREP" --version 2>&1` in
6254 +*GNU*)
6255 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6256 +*)
6257 + ac_count=0
6258 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6259 + while :
6260 + do
6261 + cat "conftest.in" "conftest.in" >"conftest.tmp"
6262 + mv "conftest.tmp" "conftest.in"
6263 + cp "conftest.in" "conftest.nl"
6264 + echo 'EGREP' >> "conftest.nl"
6265 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6266 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6267 + ac_count=`expr $ac_count + 1`
6268 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6269 + # Best one so far, save it but keep looking for a better one
6270 + ac_cv_path_EGREP="$ac_path_EGREP"
6271 + ac_path_EGREP_max=$ac_count
6272 + fi
6273 + # 10*(2^10) chars as input seems more than enough
6274 + test $ac_count -gt 10 && break
6275 + done
6276 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6277 +esac
6278 +
6279 +
6280 + $ac_path_EGREP_found && break 3
6281 + done
6282 +done
6283 +
6284 +done
6285 +IFS=$as_save_IFS
6286 +
6287 +
6288 +fi
6289 +
6290 +EGREP="$ac_cv_path_EGREP"
6291 +if test -z "$EGREP"; then
6292 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6293 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6294 + { (exit 1); exit 1; }; }
6295 +fi
6296 +
6297 +else
6298 + ac_cv_path_EGREP=$EGREP
6299 +fi
6300 +
6301 +
6302 + fi
6303 +fi
6304 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6305 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6306 + EGREP="$ac_cv_path_EGREP"
6307 +
6308 +
6309 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6310 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6311 +if test "${ac_cv_header_stdc+set}" = set; then
6312 + echo $ECHO_N "(cached) $ECHO_C" >&6
6313 +else
6314 + cat >conftest.$ac_ext <<_ACEOF
6315 +/* confdefs.h. */
6316 +_ACEOF
6317 +cat confdefs.h >>conftest.$ac_ext
6318 +cat >>conftest.$ac_ext <<_ACEOF
6319 +/* end confdefs.h. */
6320 +#include <stdlib.h>
6321 +#include <stdarg.h>
6322 +#include <string.h>
6323 +#include <float.h>
6324 +
6325 +int
6326 +main ()
6327 +{
6328 +
6329 + ;
6330 + return 0;
6331 +}
6332 +_ACEOF
6333 +rm -f conftest.$ac_objext
6334 +if { (ac_try="$ac_compile"
6335 +case "(($ac_try" in
6336 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 + *) ac_try_echo=$ac_try;;
6338 +esac
6339 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 + (eval "$ac_compile") 2>conftest.er1
6341 + ac_status=$?
6342 + grep -v '^ *+' conftest.er1 >conftest.err
6343 + rm -f conftest.er1
6344 + cat conftest.err >&5
6345 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 + (exit $ac_status); } && {
6347 + test -z "$ac_c_werror_flag" ||
6348 + test ! -s conftest.err
6349 + } && test -s conftest.$ac_objext; then
6350 + ac_cv_header_stdc=yes
6351 +else
6352 + echo "$as_me: failed program was:" >&5
6353 +sed 's/^/| /' conftest.$ac_ext >&5
6354 +
6355 + ac_cv_header_stdc=no
6356 +fi
6357 +
6358 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 +
6360 +if test $ac_cv_header_stdc = yes; then
6361 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6362 + cat >conftest.$ac_ext <<_ACEOF
6363 +/* confdefs.h. */
6364 +_ACEOF
6365 +cat confdefs.h >>conftest.$ac_ext
6366 +cat >>conftest.$ac_ext <<_ACEOF
6367 +/* end confdefs.h. */
6368 +#include <string.h>
6369 +
6370 +_ACEOF
6371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6372 $EGREP "memchr" >/dev/null 2>&1; then
6373 :
6374 @@ -5713,6 +6396,7 @@ cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <ctype.h>
6378 +#include <stdlib.h>
6379 #if ((' ' & 0x0FF) == 0x020)
6380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6382 @@ -5732,18 +6416,27 @@ main ()
6383 for (i = 0; i < 256; i++)
6384 if (XOR (islower (i), ISLOWER (i))
6385 || toupper (i) != TOUPPER (i))
6386 - exit(2);
6387 - exit (0);
6388 + return 2;
6389 + return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest$ac_exeext
6393 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394 - (eval $ac_link) 2>&5
6395 +if { (ac_try="$ac_link"
6396 +case "(($ac_try" in
6397 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 + *) ac_try_echo=$ac_try;;
6399 +esac
6400 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 + (eval "$ac_link") 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6405 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 - (eval $ac_try) 2>&5
6407 + { (case "(($ac_try" in
6408 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 + *) ac_try_echo=$ac_try;;
6410 +esac
6411 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 + (eval "$ac_try") 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 @@ -5756,12 +6449,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
6417 ( exit $ac_status )
6418 ac_cv_header_stdc=no
6419 fi
6420 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6421 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6422 fi
6423 +
6424 +
6425 fi
6426 fi
6427 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6428 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
6429 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6430 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6431 if test $ac_cv_header_stdc = yes; then
6432
6433 cat >>confdefs.h <<\_ACEOF
6434 @@ -5770,8 +6465,8 @@ _ACEOF
6435
6436 fi
6437
6438 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6439 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6440 +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6441 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6442 if test "${ac_cv_c_const+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445 @@ -5789,10 +6484,10 @@ main ()
6446 #ifndef __cplusplus
6447 /* Ultrix mips cc rejects this. */
6448 typedef int charset[2];
6449 - const charset x;
6450 + const charset cs;
6451 /* SunOS 4.1.1 cc rejects this. */
6452 - char const *const *ccp;
6453 - char **p;
6454 + char const *const *pcpcc;
6455 + char **ppc;
6456 /* NEC SVR4.0.2 mips cc rejects this. */
6457 struct point {int x, y;};
6458 static struct point const zero = {0,0};
6459 @@ -5801,16 +6496,17 @@ main ()
6460 an arm of an if-expression whose if-part is not a constant
6461 expression */
6462 const char *g = "string";
6463 - ccp = &g + (g ? g-g : 0);
6464 + pcpcc = &g + (g ? g-g : 0);
6465 /* HPUX 7.0 cc rejects these. */
6466 - ++ccp;
6467 - p = (char**) ccp;
6468 - ccp = (char const *const *) p;
6469 + ++pcpcc;
6470 + ppc = (char**) pcpcc;
6471 + pcpcc = (char const *const *) ppc;
6472 { /* SCO 3.2v4 cc rejects this. */
6473 char *t;
6474 char const *s = 0 ? (char *) 0 : (char const *) 0;
6475
6476 *t++ = 0;
6477 + if (s) return 0;
6478 }
6479 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6480 int x[] = {25, 17};
6481 @@ -5829,7 +6525,9 @@ main ()
6482 }
6483 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6484 const int foo = 10;
6485 + if (!foo) return 0;
6486 }
6487 + return !cs[0] && !zero.x;
6488 #endif
6489
6490 ;
6491 @@ -5837,38 +6535,34 @@ main ()
6492 }
6493 _ACEOF
6494 rm -f conftest.$ac_objext
6495 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496 - (eval $ac_compile) 2>conftest.er1
6497 +if { (ac_try="$ac_compile"
6498 +case "(($ac_try" in
6499 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 + *) ac_try_echo=$ac_try;;
6501 +esac
6502 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 + (eval "$ac_compile") 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 - (exit $ac_status); } &&
6510 - { ac_try='test -z "$ac_c_werror_flag"
6511 - || test ! -s conftest.err'
6512 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 - (eval $ac_try) 2>&5
6514 - ac_status=$?
6515 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 - (exit $ac_status); }; } &&
6517 - { ac_try='test -s conftest.$ac_objext'
6518 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 - (eval $ac_try) 2>&5
6520 - ac_status=$?
6521 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 - (exit $ac_status); }; }; then
6523 + (exit $ac_status); } && {
6524 + test -z "$ac_c_werror_flag" ||
6525 + test ! -s conftest.err
6526 + } && test -s conftest.$ac_objext; then
6527 ac_cv_c_const=yes
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 -ac_cv_c_const=no
6533 + ac_cv_c_const=no
6534 fi
6535 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536 +
6537 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 fi
6539 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6540 -echo "${ECHO_T}$ac_cv_c_const" >&6
6541 +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6542 +echo "${ECHO_T}$ac_cv_c_const" >&6; }
6543 if test $ac_cv_c_const = no; then
6544
6545 cat >>confdefs.h <<\_ACEOF
6546 @@ -5877,8 +6571,8 @@ _ACEOF
6547
6548 fi
6549
6550 -echo "$as_me:$LINENO: checking for inline" >&5
6551 -echo $ECHO_N "checking for inline... $ECHO_C" >&6
6552 +{ echo "$as_me:$LINENO: checking for inline" >&5
6553 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6554 if test "${ac_cv_c_inline+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 @@ -5898,39 +6592,37 @@ $ac_kw foo_t foo () {return 0; }
6558
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6562 - (eval $ac_compile) 2>conftest.er1
6563 +if { (ac_try="$ac_compile"
6564 +case "(($ac_try" in
6565 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 + *) ac_try_echo=$ac_try;;
6567 +esac
6568 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 + (eval "$ac_compile") 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 - (exit $ac_status); } &&
6576 - { ac_try='test -z "$ac_c_werror_flag"
6577 - || test ! -s conftest.err'
6578 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 - (eval $ac_try) 2>&5
6580 - ac_status=$?
6581 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 - (exit $ac_status); }; } &&
6583 - { ac_try='test -s conftest.$ac_objext'
6584 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 - (eval $ac_try) 2>&5
6586 - ac_status=$?
6587 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 - (exit $ac_status); }; }; then
6589 - ac_cv_c_inline=$ac_kw; break
6590 + (exit $ac_status); } && {
6591 + test -z "$ac_c_werror_flag" ||
6592 + test ! -s conftest.err
6593 + } && test -s conftest.$ac_objext; then
6594 + ac_cv_c_inline=$ac_kw
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 +
6600 fi
6601 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6602 +
6603 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 + test "$ac_cv_c_inline" != no && break
6605 done
6606
6607 fi
6608 -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6609 -echo "${ECHO_T}$ac_cv_c_inline" >&6
6610 +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6611 +echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6612
6613
6614 case $ac_cv_c_inline in
6615 @@ -5962,9 +6654,9 @@ for ac_header in sys/types.h sys/stat.h
6616 inttypes.h stdint.h unistd.h
6617 do
6618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6619 -echo "$as_me:$LINENO: checking for $ac_header" >&5
6620 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6621 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
6622 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6623 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6624 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627 cat >conftest.$ac_ext <<_ACEOF
6628 @@ -5978,38 +6670,35 @@ $ac_includes_default
6629 #include <$ac_header>
6630 _ACEOF
6631 rm -f conftest.$ac_objext
6632 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633 - (eval $ac_compile) 2>conftest.er1
6634 +if { (ac_try="$ac_compile"
6635 +case "(($ac_try" in
6636 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637 + *) ac_try_echo=$ac_try;;
6638 +esac
6639 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640 + (eval "$ac_compile") 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 - (exit $ac_status); } &&
6647 - { ac_try='test -z "$ac_c_werror_flag"
6648 - || test ! -s conftest.err'
6649 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 - (eval $ac_try) 2>&5
6651 - ac_status=$?
6652 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 - (exit $ac_status); }; } &&
6654 - { ac_try='test -s conftest.$ac_objext'
6655 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 - (eval $ac_try) 2>&5
6657 - ac_status=$?
6658 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 - (exit $ac_status); }; }; then
6660 + (exit $ac_status); } && {
6661 + test -z "$ac_c_werror_flag" ||
6662 + test ! -s conftest.err
6663 + } && test -s conftest.$ac_objext; then
6664 eval "$as_ac_Header=yes"
6665 else
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 -eval "$as_ac_Header=no"
6670 + eval "$as_ac_Header=no"
6671 fi
6672 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673 +
6674 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675 fi
6676 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6677 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6678 +ac_res=`eval echo '${'$as_ac_Header'}'`
6679 + { echo "$as_me:$LINENO: result: $ac_res" >&5
6680 +echo "${ECHO_T}$ac_res" >&6; }
6681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6682 cat >>confdefs.h <<_ACEOF
6683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6684 @@ -6020,8 +6709,8 @@ fi
6685 done
6686
6687
6688 -echo "$as_me:$LINENO: checking for off_t" >&5
6689 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6690 +{ echo "$as_me:$LINENO: checking for off_t" >&5
6691 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6692 if test "${ac_cv_type_off_t+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695 @@ -6032,62 +6721,59 @@ cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 $ac_includes_default
6699 +typedef off_t ac__type_new_;
6700 int
6701 main ()
6702 {
6703 -if ((off_t *) 0)
6704 +if ((ac__type_new_ *) 0)
6705 return 0;
6706 -if (sizeof (off_t))
6707 +if (sizeof (ac__type_new_))
6708 return 0;
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 - (eval $ac_compile) 2>conftest.er1
6716 +if { (ac_try="$ac_compile"
6717 +case "(($ac_try" in
6718 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719 + *) ac_try_echo=$ac_try;;
6720 +esac
6721 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722 + (eval "$ac_compile") 2>conftest.er1
6723 ac_status=$?
6724 grep -v '^ *+' conftest.er1 >conftest.err
6725 rm -f conftest.er1
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 - (exit $ac_status); } &&
6729 - { ac_try='test -z "$ac_c_werror_flag"
6730 - || test ! -s conftest.err'
6731 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 - (eval $ac_try) 2>&5
6733 - ac_status=$?
6734 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 - (exit $ac_status); }; } &&
6736 - { ac_try='test -s conftest.$ac_objext'
6737 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 - (eval $ac_try) 2>&5
6739 - ac_status=$?
6740 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 - (exit $ac_status); }; }; then
6742 + (exit $ac_status); } && {
6743 + test -z "$ac_c_werror_flag" ||
6744 + test ! -s conftest.err
6745 + } && test -s conftest.$ac_objext; then
6746 ac_cv_type_off_t=yes
6747 else
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6750
6751 -ac_cv_type_off_t=no
6752 + ac_cv_type_off_t=no
6753 fi
6754 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6755 +
6756 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 fi
6758 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6759 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
6760 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6761 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6762 if test $ac_cv_type_off_t = yes; then
6763 :
6764 else
6765
6766 cat >>confdefs.h <<_ACEOF
6767 -#define off_t long
6768 +#define off_t long int
6769 _ACEOF
6770
6771 fi
6772
6773 -echo "$as_me:$LINENO: checking for size_t" >&5
6774 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6775 +{ echo "$as_me:$LINENO: checking for size_t" >&5
6776 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6777 if test "${ac_cv_type_size_t+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 @@ -6098,64 +6784,61 @@ cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 $ac_includes_default
6784 +typedef size_t ac__type_new_;
6785 int
6786 main ()
6787 {
6788 -if ((size_t *) 0)
6789 +if ((ac__type_new_ *) 0)
6790 return 0;
6791 -if (sizeof (size_t))
6792 +if (sizeof (ac__type_new_))
6793 return 0;
6794 ;
6795 return 0;
6796 }
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 - (eval $ac_compile) 2>conftest.er1
6801 +if { (ac_try="$ac_compile"
6802 +case "(($ac_try" in
6803 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 + *) ac_try_echo=$ac_try;;
6805 +esac
6806 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 + (eval "$ac_compile") 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 - (exit $ac_status); } &&
6814 - { ac_try='test -z "$ac_c_werror_flag"
6815 - || test ! -s conftest.err'
6816 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 - (eval $ac_try) 2>&5
6818 - ac_status=$?
6819 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 - (exit $ac_status); }; } &&
6821 - { ac_try='test -s conftest.$ac_objext'
6822 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 - (eval $ac_try) 2>&5
6824 - ac_status=$?
6825 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 - (exit $ac_status); }; }; then
6827 + (exit $ac_status); } && {
6828 + test -z "$ac_c_werror_flag" ||
6829 + test ! -s conftest.err
6830 + } && test -s conftest.$ac_objext; then
6831 ac_cv_type_size_t=yes
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6835
6836 -ac_cv_type_size_t=no
6837 + ac_cv_type_size_t=no
6838 fi
6839 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6840 +
6841 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 fi
6843 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6844 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
6845 +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6846 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6847 if test $ac_cv_type_size_t = yes; then
6848 :
6849 else
6850
6851 cat >>confdefs.h <<_ACEOF
6852 -#define size_t unsigned
6853 +#define size_t unsigned int
6854 _ACEOF
6855
6856 fi
6857
6858 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6859 # for constant arguments. Useless!
6860 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
6861 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6862 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6863 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6864 if test "${ac_cv_working_alloca_h+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 @@ -6170,44 +6853,42 @@ int
6868 main ()
6869 {
6870 char *p = (char *) alloca (2 * sizeof (int));
6871 + if (p) return 0;
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 rm -f conftest.$ac_objext conftest$ac_exeext
6877 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6878 - (eval $ac_link) 2>conftest.er1
6879 +if { (ac_try="$ac_link"
6880 +case "(($ac_try" in
6881 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882 + *) ac_try_echo=$ac_try;;
6883 +esac
6884 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885 + (eval "$ac_link") 2>conftest.er1
6886 ac_status=$?
6887 grep -v '^ *+' conftest.er1 >conftest.err
6888 rm -f conftest.er1
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 - (exit $ac_status); } &&
6892 - { ac_try='test -z "$ac_c_werror_flag"
6893 - || test ! -s conftest.err'
6894 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 - (eval $ac_try) 2>&5
6896 - ac_status=$?
6897 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 - (exit $ac_status); }; } &&
6899 - { ac_try='test -s conftest$ac_exeext'
6900 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 - (eval $ac_try) 2>&5
6902 - ac_status=$?
6903 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 - (exit $ac_status); }; }; then
6905 + (exit $ac_status); } && {
6906 + test -z "$ac_c_werror_flag" ||
6907 + test ! -s conftest.err
6908 + } && test -s conftest$ac_exeext &&
6909 + $as_test_x conftest$ac_exeext; then
6910 ac_cv_working_alloca_h=yes
6911 else
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 -ac_cv_working_alloca_h=no
6916 + ac_cv_working_alloca_h=no
6917 fi
6918 -rm -f conftest.err conftest.$ac_objext \
6919 +
6920 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6921 conftest$ac_exeext conftest.$ac_ext
6922 fi
6923 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6924 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6925 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6926 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6927 if test $ac_cv_working_alloca_h = yes; then
6928
6929 cat >>confdefs.h <<\_ACEOF
6930 @@ -6216,8 +6897,8 @@ _ACEOF
6931
6932 fi
6933
6934 -echo "$as_me:$LINENO: checking for alloca" >&5
6935 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6936 +{ echo "$as_me:$LINENO: checking for alloca" >&5
6937 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6938 if test "${ac_cv_func_alloca_works+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941 @@ -6234,7 +6915,7 @@ cat >>conftest.$ac_ext <<_ACEOF
6942 # include <malloc.h>
6943 # define alloca _alloca
6944 # else
6945 -# if HAVE_ALLOCA_H
6946 +# ifdef HAVE_ALLOCA_H
6947 # include <alloca.h>
6948 # else
6949 # ifdef _AIX
6950 @@ -6252,44 +6933,42 @@ int
6951 main ()
6952 {
6953 char *p = (char *) alloca (1);
6954 + if (p) return 0;
6955 ;
6956 return 0;
6957 }
6958 _ACEOF
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 - (eval $ac_link) 2>conftest.er1
6962 +if { (ac_try="$ac_link"
6963 +case "(($ac_try" in
6964 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 + *) ac_try_echo=$ac_try;;
6966 +esac
6967 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 + (eval "$ac_link") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 - (exit $ac_status); } &&
6975 - { ac_try='test -z "$ac_c_werror_flag"
6976 - || test ! -s conftest.err'
6977 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 - (eval $ac_try) 2>&5
6979 - ac_status=$?
6980 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 - (exit $ac_status); }; } &&
6982 - { ac_try='test -s conftest$ac_exeext'
6983 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 - (eval $ac_try) 2>&5
6985 - ac_status=$?
6986 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 - (exit $ac_status); }; }; then
6988 + (exit $ac_status); } && {
6989 + test -z "$ac_c_werror_flag" ||
6990 + test ! -s conftest.err
6991 + } && test -s conftest$ac_exeext &&
6992 + $as_test_x conftest$ac_exeext; then
6993 ac_cv_func_alloca_works=yes
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6997
6998 -ac_cv_func_alloca_works=no
6999 + ac_cv_func_alloca_works=no
7000 fi
7001 -rm -f conftest.err conftest.$ac_objext \
7002 +
7003 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7004 conftest$ac_exeext conftest.$ac_ext
7005 fi
7006 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7007 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7008 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7009 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7010
7011 if test $ac_cv_func_alloca_works = yes; then
7012
7013 @@ -6303,15 +6982,15 @@ else
7014 # contain a buggy version. If you still want to use their alloca,
7015 # use ar to extract alloca.o from them instead of compiling alloca.c.
7016
7017 -ALLOCA=alloca.$ac_objext
7018 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7019
7020 cat >>confdefs.h <<\_ACEOF
7021 #define C_ALLOCA 1
7022 _ACEOF
7023
7024
7025 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7026 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7027 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7028 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7029 if test "${ac_cv_os_cray+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 @@ -6321,7 +7000,7 @@ _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 -#if defined(CRAY) && ! defined(CRAY2)
7037 +#if defined CRAY && ! defined CRAY2
7038 webecray
7039 #else
7040 wenotbecray
7041 @@ -6337,14 +7016,14 @@ fi
7042 rm -f conftest*
7043
7044 fi
7045 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7046 -echo "${ECHO_T}$ac_cv_os_cray" >&6
7047 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7048 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7049 if test $ac_cv_os_cray = yes; then
7050 for ac_func in _getb67 GETB67 getb67; do
7051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7052 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7053 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7054 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7055 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7056 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7057 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 cat >conftest.$ac_ext <<_ACEOF
7061 @@ -6370,68 +7049,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7062
7063 #undef $ac_func
7064
7065 -/* Override any gcc2 internal prototype to avoid an error. */
7066 +/* Override any GCC internal prototype to avoid an error.
7067 + Use char because int might match the return type of a GCC
7068 + builtin and then its argument prototype would still apply. */
7069 #ifdef __cplusplus
7070 extern "C"
7071 -{
7072 #endif
7073 -/* We use char because int might match the return type of a gcc2
7074 - builtin and then its argument prototype would still apply. */
7075 char $ac_func ();
7076 /* The GNU C library defines this for functions which it implements
7077 to always fail with ENOSYS. Some functions are actually named
7078 something starting with __ and the normal name is an alias. */
7079 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7080 +#if defined __stub_$ac_func || defined __stub___$ac_func
7081 choke me
7082 -#else
7083 -char (*f) () = $ac_func;
7084 -#endif
7085 -#ifdef __cplusplus
7086 -}
7087 #endif
7088
7089 int
7090 main ()
7091 {
7092 -return f != $ac_func;
7093 +return $ac_func ();
7094 ;
7095 return 0;
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext conftest$ac_exeext
7099 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7100 - (eval $ac_link) 2>conftest.er1
7101 +if { (ac_try="$ac_link"
7102 +case "(($ac_try" in
7103 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104 + *) ac_try_echo=$ac_try;;
7105 +esac
7106 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107 + (eval "$ac_link") 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 - (exit $ac_status); } &&
7114 - { ac_try='test -z "$ac_c_werror_flag"
7115 - || test ! -s conftest.err'
7116 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 - (eval $ac_try) 2>&5
7118 - ac_status=$?
7119 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 - (exit $ac_status); }; } &&
7121 - { ac_try='test -s conftest$ac_exeext'
7122 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 - (eval $ac_try) 2>&5
7124 - ac_status=$?
7125 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 - (exit $ac_status); }; }; then
7127 + (exit $ac_status); } && {
7128 + test -z "$ac_c_werror_flag" ||
7129 + test ! -s conftest.err
7130 + } && test -s conftest$ac_exeext &&
7131 + $as_test_x conftest$ac_exeext; then
7132 eval "$as_ac_var=yes"
7133 else
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137 -eval "$as_ac_var=no"
7138 + eval "$as_ac_var=no"
7139 fi
7140 -rm -f conftest.err conftest.$ac_objext \
7141 +
7142 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7143 conftest$ac_exeext conftest.$ac_ext
7144 fi
7145 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7146 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7147 +ac_res=`eval echo '${'$as_ac_var'}'`
7148 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7149 +echo "${ECHO_T}$ac_res" >&6; }
7150 if test `eval echo '${'$as_ac_var'}'` = yes; then
7151
7152 cat >>confdefs.h <<_ACEOF
7153 @@ -6444,8 +7115,8 @@ fi
7154 done
7155 fi
7156
7157 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7158 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7159 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7160 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7161 if test "${ac_cv_c_stack_direction+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 @@ -6458,6 +7129,7 @@ _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 +$ac_includes_default
7169 int
7170 find_stack_direction ()
7171 {
7172 @@ -6475,17 +7147,26 @@ find_stack_direction ()
7173 int
7174 main ()
7175 {
7176 - exit (find_stack_direction () < 0);
7177 + return find_stack_direction () < 0;
7178 }
7179 _ACEOF
7180 rm -f conftest$ac_exeext
7181 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182 - (eval $ac_link) 2>&5
7183 +if { (ac_try="$ac_link"
7184 +case "(($ac_try" in
7185 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 + *) ac_try_echo=$ac_try;;
7187 +esac
7188 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 + (eval "$ac_link") 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7193 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 - (eval $ac_try) 2>&5
7195 + { (case "(($ac_try" in
7196 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 + *) ac_try_echo=$ac_try;;
7198 +esac
7199 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 + (eval "$ac_try") 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 @@ -6498,11 +7179,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
7205 ( exit $ac_status )
7206 ac_cv_c_stack_direction=-1
7207 fi
7208 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7209 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7210 fi
7211 +
7212 +
7213 fi
7214 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7215 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7216 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7217 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7218
7219 cat >>confdefs.h <<_ACEOF
7220 #define STACK_DIRECTION $ac_cv_c_stack_direction
7221 @@ -6516,18 +7199,19 @@ fi
7222 for ac_header in stdlib.h unistd.h
7223 do
7224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7225 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7226 - echo "$as_me:$LINENO: checking for $ac_header" >&5
7227 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7228 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7229 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7230 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
7231 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7232 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 fi
7235 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7236 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7237 +ac_res=`eval echo '${'$as_ac_Header'}'`
7238 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7239 +echo "${ECHO_T}$ac_res" >&6; }
7240 else
7241 # Is the header compilable?
7242 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
7243 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7244 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7245 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 @@ -6538,41 +7222,37 @@ $ac_includes_default
7250 #include <$ac_header>
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 - (eval $ac_compile) 2>conftest.er1
7255 +if { (ac_try="$ac_compile"
7256 +case "(($ac_try" in
7257 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 + *) ac_try_echo=$ac_try;;
7259 +esac
7260 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 + (eval "$ac_compile") 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 - (exit $ac_status); } &&
7268 - { ac_try='test -z "$ac_c_werror_flag"
7269 - || test ! -s conftest.err'
7270 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 - (eval $ac_try) 2>&5
7272 - ac_status=$?
7273 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 - (exit $ac_status); }; } &&
7275 - { ac_try='test -s conftest.$ac_objext'
7276 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 - (eval $ac_try) 2>&5
7278 - ac_status=$?
7279 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 - (exit $ac_status); }; }; then
7281 + (exit $ac_status); } && {
7282 + test -z "$ac_c_werror_flag" ||
7283 + test ! -s conftest.err
7284 + } && test -s conftest.$ac_objext; then
7285 ac_header_compiler=yes
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290 -ac_header_compiler=no
7291 + ac_header_compiler=no
7292 fi
7293 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7294 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7295 -echo "${ECHO_T}$ac_header_compiler" >&6
7296 +
7297 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7299 +echo "${ECHO_T}$ac_header_compiler" >&6; }
7300
7301 # Is the header present?
7302 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
7303 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7304 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7305 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7306 cat >conftest.$ac_ext <<_ACEOF
7307 /* confdefs.h. */
7308 _ACEOF
7309 @@ -6581,24 +7261,22 @@ cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 #include <$ac_header>
7312 _ACEOF
7313 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7314 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7315 +if { (ac_try="$ac_cpp conftest.$ac_ext"
7316 +case "(($ac_try" in
7317 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318 + *) ac_try_echo=$ac_try;;
7319 +esac
7320 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7321 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7322 ac_status=$?
7323 grep -v '^ *+' conftest.er1 >conftest.err
7324 rm -f conftest.er1
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 - (exit $ac_status); } >/dev/null; then
7328 - if test -s conftest.err; then
7329 - ac_cpp_err=$ac_c_preproc_warn_flag
7330 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7331 - else
7332 - ac_cpp_err=
7333 - fi
7334 -else
7335 - ac_cpp_err=yes
7336 -fi
7337 -if test -z "$ac_cpp_err"; then
7338 + (exit $ac_status); } >/dev/null && {
7339 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7340 + test ! -s conftest.err
7341 + }; then
7342 ac_header_preproc=yes
7343 else
7344 echo "$as_me: failed program was:" >&5
7345 @@ -6606,9 +7284,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
7346
7347 ac_header_preproc=no
7348 fi
7349 +
7350 rm -f conftest.err conftest.$ac_ext
7351 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7352 -echo "${ECHO_T}$ac_header_preproc" >&6
7353 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7354 +echo "${ECHO_T}$ac_header_preproc" >&6; }
7355
7356 # So? What about this header?
7357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7358 @@ -6632,25 +7311,19 @@ echo "$as_me: WARNING: $ac_header: s
7359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7362 - (
7363 - cat <<\_ASBOX
7364 -## ------------------------------------------ ##
7365 -## Report this to the AC_PACKAGE_NAME lists. ##
7366 -## ------------------------------------------ ##
7367 -_ASBOX
7368 - ) |
7369 - sed "s/^/$as_me: WARNING: /" >&2
7370 +
7371 ;;
7372 esac
7373 -echo "$as_me:$LINENO: checking for $ac_header" >&5
7374 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7377 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7378 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 eval "$as_ac_Header=\$ac_header_preproc"
7382 fi
7383 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7384 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7385 +ac_res=`eval echo '${'$as_ac_Header'}'`
7386 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7387 +echo "${ECHO_T}$ac_res" >&6; }
7388
7389 fi
7390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7391 @@ -6666,9 +7339,9 @@ done
7392 for ac_func in getpagesize
7393 do
7394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7395 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7396 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7397 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7398 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7399 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7400 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403 cat >conftest.$ac_ext <<_ACEOF
7404 @@ -6694,68 +7367,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7405
7406 #undef $ac_func
7407
7408 -/* Override any gcc2 internal prototype to avoid an error. */
7409 +/* Override any GCC internal prototype to avoid an error.
7410 + Use char because int might match the return type of a GCC
7411 + builtin and then its argument prototype would still apply. */
7412 #ifdef __cplusplus
7413 extern "C"
7414 -{
7415 #endif
7416 -/* We use char because int might match the return type of a gcc2
7417 - builtin and then its argument prototype would still apply. */
7418 char $ac_func ();
7419 /* The GNU C library defines this for functions which it implements
7420 to always fail with ENOSYS. Some functions are actually named
7421 something starting with __ and the normal name is an alias. */
7422 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7423 +#if defined __stub_$ac_func || defined __stub___$ac_func
7424 choke me
7425 -#else
7426 -char (*f) () = $ac_func;
7427 -#endif
7428 -#ifdef __cplusplus
7429 -}
7430 #endif
7431
7432 int
7433 main ()
7434 {
7435 -return f != $ac_func;
7436 +return $ac_func ();
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 - (eval $ac_link) 2>conftest.er1
7444 +if { (ac_try="$ac_link"
7445 +case "(($ac_try" in
7446 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447 + *) ac_try_echo=$ac_try;;
7448 +esac
7449 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7450 + (eval "$ac_link") 2>conftest.er1
7451 ac_status=$?
7452 grep -v '^ *+' conftest.er1 >conftest.err
7453 rm -f conftest.er1
7454 cat conftest.err >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 - (exit $ac_status); } &&
7457 - { ac_try='test -z "$ac_c_werror_flag"
7458 - || test ! -s conftest.err'
7459 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 - (eval $ac_try) 2>&5
7461 - ac_status=$?
7462 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 - (exit $ac_status); }; } &&
7464 - { ac_try='test -s conftest$ac_exeext'
7465 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 - (eval $ac_try) 2>&5
7467 - ac_status=$?
7468 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 - (exit $ac_status); }; }; then
7470 + (exit $ac_status); } && {
7471 + test -z "$ac_c_werror_flag" ||
7472 + test ! -s conftest.err
7473 + } && test -s conftest$ac_exeext &&
7474 + $as_test_x conftest$ac_exeext; then
7475 eval "$as_ac_var=yes"
7476 else
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480 -eval "$as_ac_var=no"
7481 + eval "$as_ac_var=no"
7482 fi
7483 -rm -f conftest.err conftest.$ac_objext \
7484 +
7485 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7486 conftest$ac_exeext conftest.$ac_ext
7487 fi
7488 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7489 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7490 +ac_res=`eval echo '${'$as_ac_var'}'`
7491 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7492 +echo "${ECHO_T}$ac_res" >&6; }
7493 if test `eval echo '${'$as_ac_var'}'` = yes; then
7494 cat >>confdefs.h <<_ACEOF
7495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7496 @@ -6764,8 +7429,8 @@ _ACEOF
7497 fi
7498 done
7499
7500 -echo "$as_me:$LINENO: checking for working mmap" >&5
7501 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7502 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
7503 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7504 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507 @@ -6807,21 +7472,21 @@ $ac_includes_default
7508 #include <fcntl.h>
7509 #include <sys/mman.h>
7510
7511 -#if !STDC_HEADERS && !HAVE_STDLIB_H
7512 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7513 char *malloc ();
7514 #endif
7515
7516 /* This mess was copied from the GNU getpagesize.h. */
7517 -#if !HAVE_GETPAGESIZE
7518 +#ifndef HAVE_GETPAGESIZE
7519 /* Assume that all systems that can run configure have sys/param.h. */
7520 -# if !HAVE_SYS_PARAM_H
7521 +# ifndef HAVE_SYS_PARAM_H
7522 # define HAVE_SYS_PARAM_H 1
7523 # endif
7524
7525 # ifdef _SC_PAGESIZE
7526 # define getpagesize() sysconf(_SC_PAGESIZE)
7527 # else /* no _SC_PAGESIZE */
7528 -# if HAVE_SYS_PARAM_H
7529 +# ifdef HAVE_SYS_PARAM_H
7530 # include <sys/param.h>
7531 # ifdef EXEC_PAGESIZE
7532 # define getpagesize() EXEC_PAGESIZE
7533 @@ -6860,15 +7525,15 @@ main ()
7534 /* First, make a file with some known garbage in it. */
7535 data = (char *) malloc (pagesize);
7536 if (!data)
7537 - exit (1);
7538 + return 1;
7539 for (i = 0; i < pagesize; ++i)
7540 *(data + i) = rand ();
7541 umask (0);
7542 fd = creat ("conftest.mmap", 0600);
7543 if (fd < 0)
7544 - exit (1);
7545 + return 1;
7546 if (write (fd, data, pagesize) != pagesize)
7547 - exit (1);
7548 + return 1;
7549 close (fd);
7550
7551 /* Next, try to mmap the file at a fixed address which already has
7552 @@ -6876,17 +7541,17 @@ main ()
7553 we see the same garbage. */
7554 fd = open ("conftest.mmap", O_RDWR);
7555 if (fd < 0)
7556 - exit (1);
7557 + return 1;
7558 data2 = (char *) malloc (2 * pagesize);
7559 if (!data2)
7560 - exit (1);
7561 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7562 + return 1;
7563 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7564 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7565 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7566 - exit (1);
7567 + return 1;
7568 for (i = 0; i < pagesize; ++i)
7569 if (*(data + i) != *(data2 + i))
7570 - exit (1);
7571 + return 1;
7572
7573 /* Finally, make sure that changes to the mapped area do not
7574 percolate back to the file as seen by read(). (This is a bug on
7575 @@ -6895,24 +7560,33 @@ main ()
7576 *(data2 + i) = *(data2 + i) + 1;
7577 data3 = (char *) malloc (pagesize);
7578 if (!data3)
7579 - exit (1);
7580 + return 1;
7581 if (read (fd, data3, pagesize) != pagesize)
7582 - exit (1);
7583 + return 1;
7584 for (i = 0; i < pagesize; ++i)
7585 if (*(data + i) != *(data3 + i))
7586 - exit (1);
7587 + return 1;
7588 close (fd);
7589 - exit (0);
7590 + return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest$ac_exeext
7594 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 - (eval $ac_link) 2>&5
7596 +if { (ac_try="$ac_link"
7597 +case "(($ac_try" in
7598 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 + *) ac_try_echo=$ac_try;;
7600 +esac
7601 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 + (eval "$ac_link") 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7606 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 - (eval $ac_try) 2>&5
7608 + { (case "(($ac_try" in
7609 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 + *) ac_try_echo=$ac_try;;
7611 +esac
7612 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 + (eval "$ac_try") 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7617 @@ -6925,11 +7599,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
7618 ( exit $ac_status )
7619 ac_cv_func_mmap_fixed_mapped=no
7620 fi
7621 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7622 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7623 fi
7624 +
7625 +
7626 fi
7627 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7628 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7629 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7630 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7631 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7632
7633 cat >>confdefs.h <<\_ACEOF
7634 @@ -6953,18 +7629,19 @@ for ac_header in argz.h limits.h locale.
7635 unistd.h values.h sys/param.h
7636 do
7637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7638 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7639 - echo "$as_me:$LINENO: checking for $ac_header" >&5
7640 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7641 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7642 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7643 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
7644 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7645 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 fi
7648 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7649 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7650 +ac_res=`eval echo '${'$as_ac_Header'}'`
7651 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7652 +echo "${ECHO_T}$ac_res" >&6; }
7653 else
7654 # Is the header compilable?
7655 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
7656 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7657 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7658 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7659 cat >conftest.$ac_ext <<_ACEOF
7660 /* confdefs.h. */
7661 _ACEOF
7662 @@ -6975,41 +7652,37 @@ $ac_includes_default
7663 #include <$ac_header>
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 - (eval $ac_compile) 2>conftest.er1
7668 +if { (ac_try="$ac_compile"
7669 +case "(($ac_try" in
7670 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 + *) ac_try_echo=$ac_try;;
7672 +esac
7673 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 + (eval "$ac_compile") 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 - (exit $ac_status); } &&
7681 - { ac_try='test -z "$ac_c_werror_flag"
7682 - || test ! -s conftest.err'
7683 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 - (eval $ac_try) 2>&5
7685 - ac_status=$?
7686 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 - (exit $ac_status); }; } &&
7688 - { ac_try='test -s conftest.$ac_objext'
7689 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 - (eval $ac_try) 2>&5
7691 - ac_status=$?
7692 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 - (exit $ac_status); }; }; then
7694 + (exit $ac_status); } && {
7695 + test -z "$ac_c_werror_flag" ||
7696 + test ! -s conftest.err
7697 + } && test -s conftest.$ac_objext; then
7698 ac_header_compiler=yes
7699 else
7700 echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7702
7703 -ac_header_compiler=no
7704 + ac_header_compiler=no
7705 fi
7706 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7707 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7708 -echo "${ECHO_T}$ac_header_compiler" >&6
7709 +
7710 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7712 +echo "${ECHO_T}$ac_header_compiler" >&6; }
7713
7714 # Is the header present?
7715 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
7716 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7717 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7718 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h. */
7721 _ACEOF
7722 @@ -7018,24 +7691,22 @@ cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 #include <$ac_header>
7725 _ACEOF
7726 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7727 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7728 +if { (ac_try="$ac_cpp conftest.$ac_ext"
7729 +case "(($ac_try" in
7730 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 + *) ac_try_echo=$ac_try;;
7732 +esac
7733 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7735 ac_status=$?
7736 grep -v '^ *+' conftest.er1 >conftest.err
7737 rm -f conftest.er1
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 - (exit $ac_status); } >/dev/null; then
7741 - if test -s conftest.err; then
7742 - ac_cpp_err=$ac_c_preproc_warn_flag
7743 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7744 - else
7745 - ac_cpp_err=
7746 - fi
7747 -else
7748 - ac_cpp_err=yes
7749 -fi
7750 -if test -z "$ac_cpp_err"; then
7751 + (exit $ac_status); } >/dev/null && {
7752 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7753 + test ! -s conftest.err
7754 + }; then
7755 ac_header_preproc=yes
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 @@ -7043,9 +7714,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
7759
7760 ac_header_preproc=no
7761 fi
7762 +
7763 rm -f conftest.err conftest.$ac_ext
7764 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7765 -echo "${ECHO_T}$ac_header_preproc" >&6
7766 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7767 +echo "${ECHO_T}$ac_header_preproc" >&6; }
7768
7769 # So? What about this header?
7770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7771 @@ -7069,25 +7741,19 @@ echo "$as_me: WARNING: $ac_header: s
7772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7775 - (
7776 - cat <<\_ASBOX
7777 -## ------------------------------------------ ##
7778 -## Report this to the AC_PACKAGE_NAME lists. ##
7779 -## ------------------------------------------ ##
7780 -_ASBOX
7781 - ) |
7782 - sed "s/^/$as_me: WARNING: /" >&2
7783 +
7784 ;;
7785 esac
7786 -echo "$as_me:$LINENO: checking for $ac_header" >&5
7787 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7788 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7789 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7790 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7791 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794 eval "$as_ac_Header=\$ac_header_preproc"
7795 fi
7796 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798 +ac_res=`eval echo '${'$as_ac_Header'}'`
7799 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7800 +echo "${ECHO_T}$ac_res" >&6; }
7801
7802 fi
7803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7804 @@ -7113,9 +7779,9 @@ for ac_func in getcwd munmap putenv sete
7805 __argz_count __argz_stringify __argz_next
7806 do
7807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7808 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7809 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7810 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7811 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7812 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7813 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816 cat >conftest.$ac_ext <<_ACEOF
7817 @@ -7141,68 +7807,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7818
7819 #undef $ac_func
7820
7821 -/* Override any gcc2 internal prototype to avoid an error. */
7822 +/* Override any GCC internal prototype to avoid an error.
7823 + Use char because int might match the return type of a GCC
7824 + builtin and then its argument prototype would still apply. */
7825 #ifdef __cplusplus
7826 extern "C"
7827 -{
7828 #endif
7829 -/* We use char because int might match the return type of a gcc2
7830 - builtin and then its argument prototype would still apply. */
7831 char $ac_func ();
7832 /* The GNU C library defines this for functions which it implements
7833 to always fail with ENOSYS. Some functions are actually named
7834 something starting with __ and the normal name is an alias. */
7835 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7836 +#if defined __stub_$ac_func || defined __stub___$ac_func
7837 choke me
7838 -#else
7839 -char (*f) () = $ac_func;
7840 -#endif
7841 -#ifdef __cplusplus
7842 -}
7843 #endif
7844
7845 int
7846 main ()
7847 {
7848 -return f != $ac_func;
7849 +return $ac_func ();
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7856 - (eval $ac_link) 2>conftest.er1
7857 +if { (ac_try="$ac_link"
7858 +case "(($ac_try" in
7859 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 + *) ac_try_echo=$ac_try;;
7861 +esac
7862 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 + (eval "$ac_link") 2>conftest.er1
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 - (exit $ac_status); } &&
7870 - { ac_try='test -z "$ac_c_werror_flag"
7871 - || test ! -s conftest.err'
7872 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 - (eval $ac_try) 2>&5
7874 - ac_status=$?
7875 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 - (exit $ac_status); }; } &&
7877 - { ac_try='test -s conftest$ac_exeext'
7878 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 - (eval $ac_try) 2>&5
7880 - ac_status=$?
7881 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 - (exit $ac_status); }; }; then
7883 + (exit $ac_status); } && {
7884 + test -z "$ac_c_werror_flag" ||
7885 + test ! -s conftest.err
7886 + } && test -s conftest$ac_exeext &&
7887 + $as_test_x conftest$ac_exeext; then
7888 eval "$as_ac_var=yes"
7889 else
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 -eval "$as_ac_var=no"
7894 + eval "$as_ac_var=no"
7895 fi
7896 -rm -f conftest.err conftest.$ac_objext \
7897 +
7898 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7899 conftest$ac_exeext conftest.$ac_ext
7900 fi
7901 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7902 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7903 +ac_res=`eval echo '${'$as_ac_var'}'`
7904 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7905 +echo "${ECHO_T}$ac_res" >&6; }
7906 if test `eval echo '${'$as_ac_var'}'` = yes; then
7907 cat >>confdefs.h <<_ACEOF
7908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7909 @@ -7217,9 +7875,9 @@ done
7910 for ac_func in stpcpy
7911 do
7912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7913 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7914 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7915 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7916 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7917 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7918 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 @@ -7245,68 +7903,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7923
7924 #undef $ac_func
7925
7926 -/* Override any gcc2 internal prototype to avoid an error. */
7927 +/* Override any GCC internal prototype to avoid an error.
7928 + Use char because int might match the return type of a GCC
7929 + builtin and then its argument prototype would still apply. */
7930 #ifdef __cplusplus
7931 extern "C"
7932 -{
7933 #endif
7934 -/* We use char because int might match the return type of a gcc2
7935 - builtin and then its argument prototype would still apply. */
7936 char $ac_func ();
7937 /* The GNU C library defines this for functions which it implements
7938 to always fail with ENOSYS. Some functions are actually named
7939 something starting with __ and the normal name is an alias. */
7940 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7941 +#if defined __stub_$ac_func || defined __stub___$ac_func
7942 choke me
7943 -#else
7944 -char (*f) () = $ac_func;
7945 -#endif
7946 -#ifdef __cplusplus
7947 -}
7948 #endif
7949
7950 int
7951 main ()
7952 {
7953 -return f != $ac_func;
7954 +return $ac_func ();
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7961 - (eval $ac_link) 2>conftest.er1
7962 +if { (ac_try="$ac_link"
7963 +case "(($ac_try" in
7964 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 + *) ac_try_echo=$ac_try;;
7966 +esac
7967 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 + (eval "$ac_link") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 - (exit $ac_status); } &&
7975 - { ac_try='test -z "$ac_c_werror_flag"
7976 - || test ! -s conftest.err'
7977 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 - (eval $ac_try) 2>&5
7979 - ac_status=$?
7980 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 - (exit $ac_status); }; } &&
7982 - { ac_try='test -s conftest$ac_exeext'
7983 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 - (eval $ac_try) 2>&5
7985 - ac_status=$?
7986 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 - (exit $ac_status); }; }; then
7988 + (exit $ac_status); } && {
7989 + test -z "$ac_c_werror_flag" ||
7990 + test ! -s conftest.err
7991 + } && test -s conftest$ac_exeext &&
7992 + $as_test_x conftest$ac_exeext; then
7993 eval "$as_ac_var=yes"
7994 else
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 -eval "$as_ac_var=no"
7999 + eval "$as_ac_var=no"
8000 fi
8001 -rm -f conftest.err conftest.$ac_objext \
8002 +
8003 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004 conftest$ac_exeext conftest.$ac_ext
8005 fi
8006 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8007 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8008 +ac_res=`eval echo '${'$as_ac_var'}'`
8009 + { echo "$as_me:$LINENO: result: $ac_res" >&5
8010 +echo "${ECHO_T}$ac_res" >&6; }
8011 if test `eval echo '${'$as_ac_var'}'` = yes; then
8012 cat >>confdefs.h <<_ACEOF
8013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8014 @@ -7325,8 +7975,8 @@ _ACEOF
8015 fi
8016
8017 if test $ac_cv_header_locale_h = yes; then
8018 - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8019 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8020 + { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8021 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
8022 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025 @@ -7346,39 +7996,36 @@ return LC_MESSAGES
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 - (eval $ac_link) 2>conftest.er1
8031 +if { (ac_try="$ac_link"
8032 +case "(($ac_try" in
8033 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 + *) ac_try_echo=$ac_try;;
8035 +esac
8036 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 + (eval "$ac_link") 2>conftest.er1
8038 ac_status=$?
8039 grep -v '^ *+' conftest.er1 >conftest.err
8040 rm -f conftest.er1
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 - (exit $ac_status); } &&
8044 - { ac_try='test -z "$ac_c_werror_flag"
8045 - || test ! -s conftest.err'
8046 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 - (eval $ac_try) 2>&5
8048 - ac_status=$?
8049 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 - (exit $ac_status); }; } &&
8051 - { ac_try='test -s conftest$ac_exeext'
8052 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 - (eval $ac_try) 2>&5
8054 - ac_status=$?
8055 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 - (exit $ac_status); }; }; then
8057 + (exit $ac_status); } && {
8058 + test -z "$ac_c_werror_flag" ||
8059 + test ! -s conftest.err
8060 + } && test -s conftest$ac_exeext &&
8061 + $as_test_x conftest$ac_exeext; then
8062 am_cv_val_LC_MESSAGES=yes
8063 else
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067 -am_cv_val_LC_MESSAGES=no
8068 + am_cv_val_LC_MESSAGES=no
8069 fi
8070 -rm -f conftest.err conftest.$ac_objext \
8071 +
8072 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8073 conftest$ac_exeext conftest.$ac_ext
8074 fi
8075 -echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8076 -echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8077 +{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8078 +echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
8079 if test $am_cv_val_LC_MESSAGES = yes; then
8080
8081 cat >>confdefs.h <<\_ACEOF
8082 @@ -7387,34 +8034,34 @@ _ACEOF
8083
8084 fi
8085 fi
8086 - echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8087 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8088 - # Check whether --enable-nls or --disable-nls was given.
8089 + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8090 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
8091 + # Check whether --enable-nls was given.
8092 if test "${enable_nls+set}" = set; then
8093 - enableval="$enable_nls"
8094 - USE_NLS=$enableval
8095 + enableval=$enable_nls; USE_NLS=$enableval
8096 else
8097 USE_NLS=yes
8098 -fi;
8099 - echo "$as_me:$LINENO: result: $USE_NLS" >&5
8100 -echo "${ECHO_T}$USE_NLS" >&6
8101 +fi
8102 +
8103 + { echo "$as_me:$LINENO: result: $USE_NLS" >&5
8104 +echo "${ECHO_T}$USE_NLS" >&6; }
8105
8106
8107 USE_INCLUDED_LIBINTL=no
8108
8109 if test "$USE_NLS" = "yes"; then
8110 - echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8111 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8112 + { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8113 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
8114
8115 -# Check whether --with-included-gettext or --without-included-gettext was given.
8116 +# Check whether --with-included-gettext was given.
8117 if test "${with_included_gettext+set}" = set; then
8118 - withval="$with_included_gettext"
8119 - nls_cv_force_use_gnu_gettext=$withval
8120 + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8121 else
8122 nls_cv_force_use_gnu_gettext=no
8123 -fi;
8124 - echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8125 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8126 +fi
8127 +
8128 + { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8129 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
8130
8131 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8133 @@ -7423,17 +8070,17 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_get
8134 CATOBJEXT=
8135
8136 if test "${ac_cv_header_libintl_h+set}" = set; then
8137 - echo "$as_me:$LINENO: checking for libintl.h" >&5
8138 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8139 + { echo "$as_me:$LINENO: checking for libintl.h" >&5
8140 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8141 if test "${ac_cv_header_libintl_h+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 fi
8144 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8145 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8146 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8147 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8148 else
8149 # Is the header compilable?
8150 -echo "$as_me:$LINENO: checking libintl.h usability" >&5
8151 -echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8152 +{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
8153 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 @@ -7444,41 +8091,37 @@ $ac_includes_default
8158 #include <libintl.h>
8159 _ACEOF
8160 rm -f conftest.$ac_objext
8161 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162 - (eval $ac_compile) 2>conftest.er1
8163 +if { (ac_try="$ac_compile"
8164 +case "(($ac_try" in
8165 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 + *) ac_try_echo=$ac_try;;
8167 +esac
8168 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 + (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 - (exit $ac_status); } &&
8176 - { ac_try='test -z "$ac_c_werror_flag"
8177 - || test ! -s conftest.err'
8178 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 - (eval $ac_try) 2>&5
8180 - ac_status=$?
8181 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 - (exit $ac_status); }; } &&
8183 - { ac_try='test -s conftest.$ac_objext'
8184 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 - (eval $ac_try) 2>&5
8186 - ac_status=$?
8187 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 - (exit $ac_status); }; }; then
8189 + (exit $ac_status); } && {
8190 + test -z "$ac_c_werror_flag" ||
8191 + test ! -s conftest.err
8192 + } && test -s conftest.$ac_objext; then
8193 ac_header_compiler=yes
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 -ac_header_compiler=no
8199 + ac_header_compiler=no
8200 fi
8201 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8203 -echo "${ECHO_T}$ac_header_compiler" >&6
8204 +
8205 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8207 +echo "${ECHO_T}$ac_header_compiler" >&6; }
8208
8209 # Is the header present?
8210 -echo "$as_me:$LINENO: checking libintl.h presence" >&5
8211 -echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8212 +{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
8213 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
8214 cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h. */
8216 _ACEOF
8217 @@ -7487,24 +8130,22 @@ cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 #include <libintl.h>
8220 _ACEOF
8221 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8222 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8223 +if { (ac_try="$ac_cpp conftest.$ac_ext"
8224 +case "(($ac_try" in
8225 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 + *) ac_try_echo=$ac_try;;
8227 +esac
8228 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 - (exit $ac_status); } >/dev/null; then
8236 - if test -s conftest.err; then
8237 - ac_cpp_err=$ac_c_preproc_warn_flag
8238 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8239 - else
8240 - ac_cpp_err=
8241 - fi
8242 -else
8243 - ac_cpp_err=yes
8244 -fi
8245 -if test -z "$ac_cpp_err"; then
8246 + (exit $ac_status); } >/dev/null && {
8247 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8248 + test ! -s conftest.err
8249 + }; then
8250 ac_header_preproc=yes
8251 else
8252 echo "$as_me: failed program was:" >&5
8253 @@ -7512,9 +8153,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_header_preproc=no
8256 fi
8257 +
8258 rm -f conftest.err conftest.$ac_ext
8259 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8260 -echo "${ECHO_T}$ac_header_preproc" >&6
8261 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8262 +echo "${ECHO_T}$ac_header_preproc" >&6; }
8263
8264 # So? What about this header?
8265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8266 @@ -7538,30 +8180,23 @@ echo "$as_me: WARNING: libintl.h: se
8267 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8269 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8270 - (
8271 - cat <<\_ASBOX
8272 -## ------------------------------------------ ##
8273 -## Report this to the AC_PACKAGE_NAME lists. ##
8274 -## ------------------------------------------ ##
8275 -_ASBOX
8276 - ) |
8277 - sed "s/^/$as_me: WARNING: /" >&2
8278 +
8279 ;;
8280 esac
8281 -echo "$as_me:$LINENO: checking for libintl.h" >&5
8282 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8283 +{ echo "$as_me:$LINENO: checking for libintl.h" >&5
8284 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8285 if test "${ac_cv_header_libintl_h+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 ac_cv_header_libintl_h=$ac_header_preproc
8289 fi
8290 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8291 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8292 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8293 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8294
8295 fi
8296 if test $ac_cv_header_libintl_h = yes; then
8297 - echo "$as_me:$LINENO: checking for gettext in libc" >&5
8298 -echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8299 + { echo "$as_me:$LINENO: checking for gettext in libc" >&5
8300 +echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
8301 if test "${gt_cv_func_gettext_libc+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304 @@ -7581,43 +8216,40 @@ return (int) gettext ("")
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 - (eval $ac_link) 2>conftest.er1
8310 +if { (ac_try="$ac_link"
8311 +case "(($ac_try" in
8312 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 + *) ac_try_echo=$ac_try;;
8314 +esac
8315 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 + (eval "$ac_link") 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 - (exit $ac_status); } &&
8323 - { ac_try='test -z "$ac_c_werror_flag"
8324 - || test ! -s conftest.err'
8325 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 - (eval $ac_try) 2>&5
8327 - ac_status=$?
8328 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 - (exit $ac_status); }; } &&
8330 - { ac_try='test -s conftest$ac_exeext'
8331 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 - (eval $ac_try) 2>&5
8333 - ac_status=$?
8334 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 - (exit $ac_status); }; }; then
8336 + (exit $ac_status); } && {
8337 + test -z "$ac_c_werror_flag" ||
8338 + test ! -s conftest.err
8339 + } && test -s conftest$ac_exeext &&
8340 + $as_test_x conftest$ac_exeext; then
8341 gt_cv_func_gettext_libc=yes
8342 else
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 -gt_cv_func_gettext_libc=no
8347 + gt_cv_func_gettext_libc=no
8348 fi
8349 -rm -f conftest.err conftest.$ac_objext \
8350 +
8351 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8352 conftest$ac_exeext conftest.$ac_ext
8353 fi
8354 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8355 -echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8356 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8357 +echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
8358
8359 if test "$gt_cv_func_gettext_libc" != "yes"; then
8360 - echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8361 -echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8362 + { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8363 +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
8364 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 @@ -7630,59 +8262,56 @@ cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370
8371 -/* Override any gcc2 internal prototype to avoid an error. */
8372 +/* Override any GCC internal prototype to avoid an error.
8373 + Use char because int might match the return type of a GCC
8374 + builtin and then its argument prototype would still apply. */
8375 #ifdef __cplusplus
8376 extern "C"
8377 #endif
8378 -/* We use char because int might match the return type of a gcc2
8379 - builtin and then its argument prototype would still apply. */
8380 char bindtextdomain ();
8381 int
8382 main ()
8383 {
8384 -bindtextdomain ();
8385 +return bindtextdomain ();
8386 ;
8387 return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8392 - (eval $ac_link) 2>conftest.er1
8393 +if { (ac_try="$ac_link"
8394 +case "(($ac_try" in
8395 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 + *) ac_try_echo=$ac_try;;
8397 +esac
8398 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 + (eval "$ac_link") 2>conftest.er1
8400 ac_status=$?
8401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 - (exit $ac_status); } &&
8406 - { ac_try='test -z "$ac_c_werror_flag"
8407 - || test ! -s conftest.err'
8408 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 - (eval $ac_try) 2>&5
8410 - ac_status=$?
8411 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 - (exit $ac_status); }; } &&
8413 - { ac_try='test -s conftest$ac_exeext'
8414 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 - (eval $ac_try) 2>&5
8416 - ac_status=$?
8417 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 - (exit $ac_status); }; }; then
8419 + (exit $ac_status); } && {
8420 + test -z "$ac_c_werror_flag" ||
8421 + test ! -s conftest.err
8422 + } && test -s conftest$ac_exeext &&
8423 + $as_test_x conftest$ac_exeext; then
8424 ac_cv_lib_intl_bindtextdomain=yes
8425 else
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429 -ac_cv_lib_intl_bindtextdomain=no
8430 + ac_cv_lib_intl_bindtextdomain=no
8431 fi
8432 -rm -f conftest.err conftest.$ac_objext \
8433 +
8434 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8435 conftest$ac_exeext conftest.$ac_ext
8436 LIBS=$ac_check_lib_save_LIBS
8437 fi
8438 -echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8439 -echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8440 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8441 +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
8442 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8443 - echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8444 -echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8445 + { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8446 +echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
8447 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 @@ -7702,39 +8331,36 @@ return (int) gettext ("")
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 - (eval $ac_link) 2>conftest.er1
8456 +if { (ac_try="$ac_link"
8457 +case "(($ac_try" in
8458 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 + *) ac_try_echo=$ac_try;;
8460 +esac
8461 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 + (eval "$ac_link") 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 - (exit $ac_status); } &&
8469 - { ac_try='test -z "$ac_c_werror_flag"
8470 - || test ! -s conftest.err'
8471 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 - (eval $ac_try) 2>&5
8473 - ac_status=$?
8474 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 - (exit $ac_status); }; } &&
8476 - { ac_try='test -s conftest$ac_exeext'
8477 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 - (eval $ac_try) 2>&5
8479 - ac_status=$?
8480 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 - (exit $ac_status); }; }; then
8482 + (exit $ac_status); } && {
8483 + test -z "$ac_c_werror_flag" ||
8484 + test ! -s conftest.err
8485 + } && test -s conftest$ac_exeext &&
8486 + $as_test_x conftest$ac_exeext; then
8487 gt_cv_func_gettext_libintl=yes
8488 else
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8491
8492 -gt_cv_func_gettext_libintl=no
8493 + gt_cv_func_gettext_libintl=no
8494 fi
8495 -rm -f conftest.err conftest.$ac_objext \
8496 +
8497 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8498 conftest$ac_exeext conftest.$ac_ext
8499 fi
8500 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8501 -echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8502 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8503 +echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
8504 fi
8505
8506 fi
8507 @@ -7748,8 +8374,8 @@ _ACEOF
8508
8509 # Extract the first word of "msgfmt", so it can be a program name with args.
8510 set dummy msgfmt; ac_word=$2
8511 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8512 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8513 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8514 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8515 if test "${ac_cv_path_MSGFMT+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518 @@ -7775,20 +8401,20 @@ esac
8519 fi
8520 MSGFMT="$ac_cv_path_MSGFMT"
8521 if test -n "$MSGFMT"; then
8522 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
8523 -echo "${ECHO_T}$MSGFMT" >&6
8524 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8525 +echo "${ECHO_T}$MSGFMT" >&6; }
8526 else
8527 - echo "$as_me:$LINENO: result: no" >&5
8528 -echo "${ECHO_T}no" >&6
8529 + { echo "$as_me:$LINENO: result: no" >&5
8530 +echo "${ECHO_T}no" >&6; }
8531 fi
8532 if test "$MSGFMT" != "no"; then
8533
8534 for ac_func in dcgettext
8535 do
8536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8537 -echo "$as_me:$LINENO: checking for $ac_func" >&5
8538 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8539 -if eval "test \"\${$as_ac_var+set}\" = set"; then
8540 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8541 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8542 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545 cat >conftest.$ac_ext <<_ACEOF
8546 @@ -7814,68 +8440,60 @@ cat >>conftest.$ac_ext <<_ACEOF
8547
8548 #undef $ac_func
8549
8550 -/* Override any gcc2 internal prototype to avoid an error. */
8551 +/* Override any GCC internal prototype to avoid an error.
8552 + Use char because int might match the return type of a GCC
8553 + builtin and then its argument prototype would still apply. */
8554 #ifdef __cplusplus
8555 extern "C"
8556 -{
8557 #endif
8558 -/* We use char because int might match the return type of a gcc2
8559 - builtin and then its argument prototype would still apply. */
8560 char $ac_func ();
8561 /* The GNU C library defines this for functions which it implements
8562 to always fail with ENOSYS. Some functions are actually named
8563 something starting with __ and the normal name is an alias. */
8564 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8565 +#if defined __stub_$ac_func || defined __stub___$ac_func
8566 choke me
8567 -#else
8568 -char (*f) () = $ac_func;
8569 -#endif
8570 -#ifdef __cplusplus
8571 -}
8572 #endif
8573
8574 int
8575 main ()
8576 {
8577 -return f != $ac_func;
8578 +return $ac_func ();
8579 ;
8580 return 0;
8581 }
8582 _ACEOF
8583 rm -f conftest.$ac_objext conftest$ac_exeext
8584 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8585 - (eval $ac_link) 2>conftest.er1
8586 +if { (ac_try="$ac_link"
8587 +case "(($ac_try" in
8588 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 + *) ac_try_echo=$ac_try;;
8590 +esac
8591 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 + (eval "$ac_link") 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 - (exit $ac_status); } &&
8599 - { ac_try='test -z "$ac_c_werror_flag"
8600 - || test ! -s conftest.err'
8601 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 - (eval $ac_try) 2>&5
8603 - ac_status=$?
8604 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 - (exit $ac_status); }; } &&
8606 - { ac_try='test -s conftest$ac_exeext'
8607 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 - (eval $ac_try) 2>&5
8609 - ac_status=$?
8610 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 - (exit $ac_status); }; }; then
8612 + (exit $ac_status); } && {
8613 + test -z "$ac_c_werror_flag" ||
8614 + test ! -s conftest.err
8615 + } && test -s conftest$ac_exeext &&
8616 + $as_test_x conftest$ac_exeext; then
8617 eval "$as_ac_var=yes"
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 -eval "$as_ac_var=no"
8623 + eval "$as_ac_var=no"
8624 fi
8625 -rm -f conftest.err conftest.$ac_objext \
8626 +
8627 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8628 conftest$ac_exeext conftest.$ac_ext
8629 fi
8630 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8631 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8632 +ac_res=`eval echo '${'$as_ac_var'}'`
8633 + { echo "$as_me:$LINENO: result: $ac_res" >&5
8634 +echo "${ECHO_T}$ac_res" >&6; }
8635 if test `eval echo '${'$as_ac_var'}'` = yes; then
8636 cat >>confdefs.h <<_ACEOF
8637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8638 @@ -7886,8 +8504,8 @@ done
8639
8640 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8641 set dummy gmsgfmt; ac_word=$2
8642 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8643 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8644 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8645 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8646 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 @@ -7902,32 +8520,33 @@ do
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8654 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8658 fi
8659 done
8660 done
8661 +IFS=$as_save_IFS
8662
8663 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8664 ;;
8665 esac
8666 fi
8667 GMSGFMT=$ac_cv_path_GMSGFMT
8668 -
8669 if test -n "$GMSGFMT"; then
8670 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8671 -echo "${ECHO_T}$GMSGFMT" >&6
8672 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8673 +echo "${ECHO_T}$GMSGFMT" >&6; }
8674 else
8675 - echo "$as_me:$LINENO: result: no" >&5
8676 -echo "${ECHO_T}no" >&6
8677 + { echo "$as_me:$LINENO: result: no" >&5
8678 +echo "${ECHO_T}no" >&6; }
8679 fi
8680
8681 +
8682 # Extract the first word of "xgettext", so it can be a program name with args.
8683 set dummy xgettext; ac_word=$2
8684 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8685 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8686 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8687 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8688 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691 @@ -7953,11 +8572,11 @@ esac
8692 fi
8693 XGETTEXT="$ac_cv_path_XGETTEXT"
8694 if test -n "$XGETTEXT"; then
8695 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8696 -echo "${ECHO_T}$XGETTEXT" >&6
8697 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8698 +echo "${ECHO_T}$XGETTEXT" >&6; }
8699 else
8700 - echo "$as_me:$LINENO: result: no" >&5
8701 -echo "${ECHO_T}no" >&6
8702 + { echo "$as_me:$LINENO: result: no" >&5
8703 +echo "${ECHO_T}no" >&6; }
8704 fi
8705
8706 cat >conftest.$ac_ext <<_ACEOF
8707 @@ -7977,37 +8596,34 @@ extern int _nl_msg_cat_cntr;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 - (eval $ac_link) 2>conftest.er1
8713 +if { (ac_try="$ac_link"
8714 +case "(($ac_try" in
8715 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 + *) ac_try_echo=$ac_try;;
8717 +esac
8718 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 + (eval "$ac_link") 2>conftest.er1
8720 ac_status=$?
8721 grep -v '^ *+' conftest.er1 >conftest.err
8722 rm -f conftest.er1
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 - (exit $ac_status); } &&
8726 - { ac_try='test -z "$ac_c_werror_flag"
8727 - || test ! -s conftest.err'
8728 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 - (eval $ac_try) 2>&5
8730 - ac_status=$?
8731 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 - (exit $ac_status); }; } &&
8733 - { ac_try='test -s conftest$ac_exeext'
8734 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 - (eval $ac_try) 2>&5
8736 - ac_status=$?
8737 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 - (exit $ac_status); }; }; then
8739 + (exit $ac_status); } && {
8740 + test -z "$ac_c_werror_flag" ||
8741 + test ! -s conftest.err
8742 + } && test -s conftest$ac_exeext &&
8743 + $as_test_x conftest$ac_exeext; then
8744 CATOBJEXT=.gmo
8745 DATADIRNAME=share
8746 else
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 -CATOBJEXT=.mo
8751 + CATOBJEXT=.mo
8752 DATADIRNAME=lib
8753 fi
8754 -rm -f conftest.err conftest.$ac_objext \
8755 +
8756 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8757 conftest$ac_exeext conftest.$ac_ext
8758 INSTOBJEXT=.mo
8759 fi
8760 @@ -8029,8 +8645,8 @@ fi
8761 INTLOBJS="\$(GETTOBJS)"
8762 # Extract the first word of "msgfmt", so it can be a program name with args.
8763 set dummy msgfmt; ac_word=$2
8764 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8765 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8766 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8767 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8768 if test "${ac_cv_path_MSGFMT+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 @@ -8056,17 +8672,17 @@ esac
8772 fi
8773 MSGFMT="$ac_cv_path_MSGFMT"
8774 if test -n "$MSGFMT"; then
8775 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
8776 -echo "${ECHO_T}$MSGFMT" >&6
8777 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8778 +echo "${ECHO_T}$MSGFMT" >&6; }
8779 else
8780 - echo "$as_me:$LINENO: result: no" >&5
8781 -echo "${ECHO_T}no" >&6
8782 + { echo "$as_me:$LINENO: result: no" >&5
8783 +echo "${ECHO_T}no" >&6; }
8784 fi
8785
8786 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8787 set dummy gmsgfmt; ac_word=$2
8788 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8789 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8790 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8791 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8792 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795 @@ -8081,32 +8697,33 @@ do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8800 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8801 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8803 break 2
8804 fi
8805 done
8806 done
8807 +IFS=$as_save_IFS
8808
8809 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8810 ;;
8811 esac
8812 fi
8813 GMSGFMT=$ac_cv_path_GMSGFMT
8814 -
8815 if test -n "$GMSGFMT"; then
8816 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8817 -echo "${ECHO_T}$GMSGFMT" >&6
8818 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8819 +echo "${ECHO_T}$GMSGFMT" >&6; }
8820 else
8821 - echo "$as_me:$LINENO: result: no" >&5
8822 -echo "${ECHO_T}no" >&6
8823 + { echo "$as_me:$LINENO: result: no" >&5
8824 +echo "${ECHO_T}no" >&6; }
8825 fi
8826
8827 +
8828 # Extract the first word of "xgettext", so it can be a program name with args.
8829 set dummy xgettext; ac_word=$2
8830 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8831 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8832 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8833 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8834 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 else
8837 @@ -8132,11 +8749,11 @@ esac
8838 fi
8839 XGETTEXT="$ac_cv_path_XGETTEXT"
8840 if test -n "$XGETTEXT"; then
8841 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8842 -echo "${ECHO_T}$XGETTEXT" >&6
8843 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8844 +echo "${ECHO_T}$XGETTEXT" >&6; }
8845 else
8846 - echo "$as_me:$LINENO: result: no" >&5
8847 -echo "${ECHO_T}no" >&6
8848 + { echo "$as_me:$LINENO: result: no" >&5
8849 +echo "${ECHO_T}no" >&6; }
8850 fi
8851
8852
8853 @@ -8155,8 +8772,8 @@ fi
8854 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8855 : ;
8856 else
8857 - echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8858 -echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8859 + { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8860 +echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
8861 XGETTEXT=":"
8862 fi
8863 fi
8864 @@ -8205,8 +8822,8 @@ _ACEOF
8865 if test "x$ALL_LINGUAS" = "x"; then
8866 LINGUAS=
8867 else
8868 - echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8869 -echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8870 + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8871 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
8872 NEW_LINGUAS=
8873 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8874 case "$ALL_LINGUAS" in
8875 @@ -8214,8 +8831,8 @@ echo $ECHO_N "checking for catalogs to b
8876 esac
8877 done
8878 LINGUAS=$NEW_LINGUAS
8879 - echo "$as_me:$LINENO: result: $LINGUAS" >&5
8880 -echo "${ECHO_T}$LINGUAS" >&6
8881 + { echo "$as_me:$LINENO: result: $LINGUAS" >&5
8882 +echo "${ECHO_T}$LINGUAS" >&6; }
8883 fi
8884
8885 if test -n "$LINGUAS"; then
8886 @@ -8234,17 +8851,17 @@ echo "${ECHO_T}$LINGUAS" >&6
8887 if test -f $srcdir/po2tbl.sed.in; then
8888 if test "$CATOBJEXT" = ".cat"; then
8889 if test "${ac_cv_header_linux_version_h+set}" = set; then
8890 - echo "$as_me:$LINENO: checking for linux/version.h" >&5
8891 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8892 + { echo "$as_me:$LINENO: checking for linux/version.h" >&5
8893 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
8894 if test "${ac_cv_header_linux_version_h+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 fi
8897 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8898 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8899 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8900 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
8901 else
8902 # Is the header compilable?
8903 -echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8904 -echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8905 +{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8906 +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h. */
8909 _ACEOF
8910 @@ -8255,41 +8872,37 @@ $ac_includes_default
8911 #include <linux/version.h>
8912 _ACEOF
8913 rm -f conftest.$ac_objext
8914 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8915 - (eval $ac_compile) 2>conftest.er1
8916 +if { (ac_try="$ac_compile"
8917 +case "(($ac_try" in
8918 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 + *) ac_try_echo=$ac_try;;
8920 +esac
8921 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 + (eval "$ac_compile") 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 - (exit $ac_status); } &&
8929 - { ac_try='test -z "$ac_c_werror_flag"
8930 - || test ! -s conftest.err'
8931 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 - (eval $ac_try) 2>&5
8933 - ac_status=$?
8934 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 - (exit $ac_status); }; } &&
8936 - { ac_try='test -s conftest.$ac_objext'
8937 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 - (eval $ac_try) 2>&5
8939 - ac_status=$?
8940 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 - (exit $ac_status); }; }; then
8942 + (exit $ac_status); } && {
8943 + test -z "$ac_c_werror_flag" ||
8944 + test ! -s conftest.err
8945 + } && test -s conftest.$ac_objext; then
8946 ac_header_compiler=yes
8947 else
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951 -ac_header_compiler=no
8952 + ac_header_compiler=no
8953 fi
8954 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8956 -echo "${ECHO_T}$ac_header_compiler" >&6
8957 +
8958 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8960 +echo "${ECHO_T}$ac_header_compiler" >&6; }
8961
8962 # Is the header present?
8963 -echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8964 -echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8965 +{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8966 +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
8967 cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h. */
8969 _ACEOF
8970 @@ -8298,24 +8911,22 @@ cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8972 #include <linux/version.h>
8973 _ACEOF
8974 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8975 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8976 +if { (ac_try="$ac_cpp conftest.$ac_ext"
8977 +case "(($ac_try" in
8978 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 + *) ac_try_echo=$ac_try;;
8980 +esac
8981 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 - (exit $ac_status); } >/dev/null; then
8989 - if test -s conftest.err; then
8990 - ac_cpp_err=$ac_c_preproc_warn_flag
8991 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8992 - else
8993 - ac_cpp_err=
8994 - fi
8995 -else
8996 - ac_cpp_err=yes
8997 -fi
8998 -if test -z "$ac_cpp_err"; then
8999 + (exit $ac_status); } >/dev/null && {
9000 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9001 + test ! -s conftest.err
9002 + }; then
9003 ac_header_preproc=yes
9004 else
9005 echo "$as_me: failed program was:" >&5
9006 @@ -8323,9 +8934,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
9007
9008 ac_header_preproc=no
9009 fi
9010 +
9011 rm -f conftest.err conftest.$ac_ext
9012 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9013 -echo "${ECHO_T}$ac_header_preproc" >&6
9014 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9015 +echo "${ECHO_T}$ac_header_preproc" >&6; }
9016
9017 # So? What about this header?
9018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9019 @@ -8349,25 +8961,18 @@ echo "$as_me: WARNING: linux/version.h:
9020 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9021 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9022 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9023 - (
9024 - cat <<\_ASBOX
9025 -## ------------------------------------------ ##
9026 -## Report this to the AC_PACKAGE_NAME lists. ##
9027 -## ------------------------------------------ ##
9028 -_ASBOX
9029 - ) |
9030 - sed "s/^/$as_me: WARNING: /" >&2
9031 +
9032 ;;
9033 esac
9034 -echo "$as_me:$LINENO: checking for linux/version.h" >&5
9035 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9036 +{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
9037 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
9038 if test "${ac_cv_header_linux_version_h+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041 ac_cv_header_linux_version_h=$ac_header_preproc
9042 fi
9043 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9044 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9045 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9046 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
9047
9048 fi
9049 if test $ac_cv_header_linux_version_h = yes; then
9050 @@ -8434,8 +9039,8 @@ fi
9051 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9052 # OS/2's system install, which has a completely different semantic
9053 # ./install, which can be erroneously created by make from ./install.sh.
9054 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9055 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9056 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9057 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9058 if test -z "$INSTALL"; then
9059 if test "${ac_cv_path_install+set}" = set; then
9060 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 @@ -8457,7 +9062,7 @@ case $as_dir/ in
9062 # by default.
9063 for ac_prog in ginstall scoinst install; do
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9066 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9067 if test $ac_prog = install &&
9068 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9069 # AIX install. It has an incompatible calling convention.
9070 @@ -8476,21 +9081,22 @@ case $as_dir/ in
9071 ;;
9072 esac
9073 done
9074 +IFS=$as_save_IFS
9075
9076
9077 fi
9078 if test "${ac_cv_path_install+set}" = set; then
9079 INSTALL=$ac_cv_path_install
9080 else
9081 - # As a last resort, use the slow shell script. We don't cache a
9082 - # path for INSTALL within a source directory, because that will
9083 + # As a last resort, use the slow shell script. Don't cache a
9084 + # value for INSTALL within a source directory, because that will
9085 # break other packages using the cache if that directory is
9086 - # removed, or if the path is relative.
9087 + # removed, or if the value is a relative name.
9088 INSTALL=$ac_install_sh
9089 fi
9090 fi
9091 -echo "$as_me:$LINENO: result: $INSTALL" >&5
9092 -echo "${ECHO_T}$INSTALL" >&6
9093 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
9094 +echo "${ECHO_T}$INSTALL" >&6; }
9095
9096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9097 # It thinks the first close brace ends the variable substitution.
9098 @@ -8507,8 +9113,8 @@ BFD_HOST_64_BIT_DEFINED=0
9099 BFD_HOST_64_BIT=
9100 BFD_HOST_U_64_BIT=
9101
9102 -echo "$as_me:$LINENO: checking for long long" >&5
9103 -echo $ECHO_N "checking for long long... $ECHO_C" >&6
9104 +{ echo "$as_me:$LINENO: checking for long long" >&5
9105 +echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9106 if test "${bfd_cv_has_long_long+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109 @@ -8528,43 +9134,39 @@ unsigned long long ll = 1844674407370955
9110 }
9111 _ACEOF
9112 rm -f conftest.$ac_objext
9113 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9114 - (eval $ac_compile) 2>conftest.er1
9115 +if { (ac_try="$ac_compile"
9116 +case "(($ac_try" in
9117 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 + *) ac_try_echo=$ac_try;;
9119 +esac
9120 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 + (eval "$ac_compile") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 - (exit $ac_status); } &&
9128 - { ac_try='test -z "$ac_c_werror_flag"
9129 - || test ! -s conftest.err'
9130 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 - (eval $ac_try) 2>&5
9132 - ac_status=$?
9133 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 - (exit $ac_status); }; } &&
9135 - { ac_try='test -s conftest.$ac_objext'
9136 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 - (eval $ac_try) 2>&5
9138 - ac_status=$?
9139 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 - (exit $ac_status); }; }; then
9141 + (exit $ac_status); } && {
9142 + test -z "$ac_c_werror_flag" ||
9143 + test ! -s conftest.err
9144 + } && test -s conftest.$ac_objext; then
9145 bfd_cv_has_long_long=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 -bfd_cv_has_long_long=no
9151 + bfd_cv_has_long_long=no
9152 fi
9153 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9154 +
9155 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 fi
9157
9158 -echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
9159 -echo "${ECHO_T}$bfd_cv_has_long_long" >&6
9160 +{ echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
9161 +echo "${ECHO_T}$bfd_cv_has_long_long" >&6; }
9162 if test $bfd_cv_has_long_long = yes; then
9163 BFD_HOST_LONG_LONG=1
9164 - echo "$as_me:$LINENO: checking for long long" >&5
9165 -echo $ECHO_N "checking for long long... $ECHO_C" >&6
9166 + { echo "$as_me:$LINENO: checking for long long" >&5
9167 +echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9168 if test "${ac_cv_type_long_long+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171 @@ -8575,61 +9177,57 @@ cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 $ac_includes_default
9175 +typedef long long ac__type_new_;
9176 int
9177 main ()
9178 {
9179 -if ((long long *) 0)
9180 +if ((ac__type_new_ *) 0)
9181 return 0;
9182 -if (sizeof (long long))
9183 +if (sizeof (ac__type_new_))
9184 return 0;
9185 ;
9186 return 0;
9187 }
9188 _ACEOF
9189 rm -f conftest.$ac_objext
9190 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191 - (eval $ac_compile) 2>conftest.er1
9192 +if { (ac_try="$ac_compile"
9193 +case "(($ac_try" in
9194 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195 + *) ac_try_echo=$ac_try;;
9196 +esac
9197 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198 + (eval "$ac_compile") 2>conftest.er1
9199 ac_status=$?
9200 grep -v '^ *+' conftest.er1 >conftest.err
9201 rm -f conftest.er1
9202 cat conftest.err >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 - (exit $ac_status); } &&
9205 - { ac_try='test -z "$ac_c_werror_flag"
9206 - || test ! -s conftest.err'
9207 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 - (eval $ac_try) 2>&5
9209 - ac_status=$?
9210 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 - (exit $ac_status); }; } &&
9212 - { ac_try='test -s conftest.$ac_objext'
9213 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 - (eval $ac_try) 2>&5
9215 - ac_status=$?
9216 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 - (exit $ac_status); }; }; then
9218 + (exit $ac_status); } && {
9219 + test -z "$ac_c_werror_flag" ||
9220 + test ! -s conftest.err
9221 + } && test -s conftest.$ac_objext; then
9222 ac_cv_type_long_long=yes
9223 else
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9226
9227 -ac_cv_type_long_long=no
9228 + ac_cv_type_long_long=no
9229 fi
9230 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231 +
9232 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9233 fi
9234 -echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9235 -echo "${ECHO_T}$ac_cv_type_long_long" >&6
9236 +{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9237 +echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9238
9239 -echo "$as_me:$LINENO: checking size of long long" >&5
9240 -echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9241 +# The cast to long int works around a bug in the HP C Compiler
9242 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9243 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9244 +# This bug is HP SR number 8606223364.
9245 +{ echo "$as_me:$LINENO: checking size of long long" >&5
9246 +echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9247 if test "${ac_cv_sizeof_long_long+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250 - if test "$ac_cv_type_long_long" = yes; then
9251 - # The cast to unsigned long works around a bug in the HP C Compiler
9252 - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9253 - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9254 - # This bug is HP SR number 8606223364.
9255 if test "$cross_compiling" = yes; then
9256 # Depending upon the size, compute the lo and hi bounds.
9257 cat >conftest.$ac_ext <<_ACEOF
9258 @@ -8639,10 +9237,11 @@ cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261 $ac_includes_default
9262 + typedef long long ac__type_sizeof_;
9263 int
9264 main ()
9265 {
9266 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9267 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9268 test_array [0] = 0
9269
9270 ;
9271 @@ -8650,27 +9249,22 @@ test_array [0] = 0
9272 }
9273 _ACEOF
9274 rm -f conftest.$ac_objext
9275 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9276 - (eval $ac_compile) 2>conftest.er1
9277 +if { (ac_try="$ac_compile"
9278 +case "(($ac_try" in
9279 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 + *) ac_try_echo=$ac_try;;
9281 +esac
9282 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 + (eval "$ac_compile") 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 - (exit $ac_status); } &&
9290 - { ac_try='test -z "$ac_c_werror_flag"
9291 - || test ! -s conftest.err'
9292 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 - (eval $ac_try) 2>&5
9294 - ac_status=$?
9295 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 - (exit $ac_status); }; } &&
9297 - { ac_try='test -s conftest.$ac_objext'
9298 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 - (eval $ac_try) 2>&5
9300 - ac_status=$?
9301 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 - (exit $ac_status); }; }; then
9303 + (exit $ac_status); } && {
9304 + test -z "$ac_c_werror_flag" ||
9305 + test ! -s conftest.err
9306 + } && test -s conftest.$ac_objext; then
9307 ac_lo=0 ac_mid=0
9308 while :; do
9309 cat >conftest.$ac_ext <<_ACEOF
9310 @@ -8680,10 +9274,11 @@ cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313 $ac_includes_default
9314 + typedef long long ac__type_sizeof_;
9315 int
9316 main ()
9317 {
9318 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9319 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9320 test_array [0] = 0
9321
9322 ;
9323 @@ -8691,56 +9286,53 @@ test_array [0] = 0
9324 }
9325 _ACEOF
9326 rm -f conftest.$ac_objext
9327 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9328 - (eval $ac_compile) 2>conftest.er1
9329 +if { (ac_try="$ac_compile"
9330 +case "(($ac_try" in
9331 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 + *) ac_try_echo=$ac_try;;
9333 +esac
9334 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 + (eval "$ac_compile") 2>conftest.er1
9336 ac_status=$?
9337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 - (exit $ac_status); } &&
9342 - { ac_try='test -z "$ac_c_werror_flag"
9343 - || test ! -s conftest.err'
9344 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 - (eval $ac_try) 2>&5
9346 - ac_status=$?
9347 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 - (exit $ac_status); }; } &&
9349 - { ac_try='test -s conftest.$ac_objext'
9350 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 - (eval $ac_try) 2>&5
9352 - ac_status=$?
9353 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 - (exit $ac_status); }; }; then
9355 + (exit $ac_status); } && {
9356 + test -z "$ac_c_werror_flag" ||
9357 + test ! -s conftest.err
9358 + } && test -s conftest.$ac_objext; then
9359 ac_hi=$ac_mid; break
9360 else
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 -ac_lo=`expr $ac_mid + 1`
9365 - if test $ac_lo -le $ac_mid; then
9366 - ac_lo= ac_hi=
9367 - break
9368 - fi
9369 - ac_mid=`expr 2 '*' $ac_mid + 1`
9370 + ac_lo=`expr $ac_mid + 1`
9371 + if test $ac_lo -le $ac_mid; then
9372 + ac_lo= ac_hi=
9373 + break
9374 + fi
9375 + ac_mid=`expr 2 '*' $ac_mid + 1`
9376 fi
9377 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9378 +
9379 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9380 done
9381 else
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9384
9385 -cat >conftest.$ac_ext <<_ACEOF
9386 + cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h. */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 $ac_includes_default
9393 + typedef long long ac__type_sizeof_;
9394 int
9395 main ()
9396 {
9397 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9398 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9399 test_array [0] = 0
9400
9401 ;
9402 @@ -8748,27 +9340,22 @@ test_array [0] = 0
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext
9406 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407 - (eval $ac_compile) 2>conftest.er1
9408 +if { (ac_try="$ac_compile"
9409 +case "(($ac_try" in
9410 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 + *) ac_try_echo=$ac_try;;
9412 +esac
9413 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 + (eval "$ac_compile") 2>conftest.er1
9415 ac_status=$?
9416 grep -v '^ *+' conftest.er1 >conftest.err
9417 rm -f conftest.er1
9418 cat conftest.err >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 - (exit $ac_status); } &&
9421 - { ac_try='test -z "$ac_c_werror_flag"
9422 - || test ! -s conftest.err'
9423 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 - (eval $ac_try) 2>&5
9425 - ac_status=$?
9426 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 - (exit $ac_status); }; } &&
9428 - { ac_try='test -s conftest.$ac_objext'
9429 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 - (eval $ac_try) 2>&5
9431 - ac_status=$?
9432 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 - (exit $ac_status); }; }; then
9434 + (exit $ac_status); } && {
9435 + test -z "$ac_c_werror_flag" ||
9436 + test ! -s conftest.err
9437 + } && test -s conftest.$ac_objext; then
9438 ac_hi=-1 ac_mid=-1
9439 while :; do
9440 cat >conftest.$ac_ext <<_ACEOF
9441 @@ -8778,10 +9365,11 @@ cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9444 $ac_includes_default
9445 + typedef long long ac__type_sizeof_;
9446 int
9447 main ()
9448 {
9449 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9450 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9451 test_array [0] = 0
9452
9453 ;
9454 @@ -8789,50 +9377,48 @@ test_array [0] = 0
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext
9458 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9459 - (eval $ac_compile) 2>conftest.er1
9460 +if { (ac_try="$ac_compile"
9461 +case "(($ac_try" in
9462 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 + *) ac_try_echo=$ac_try;;
9464 +esac
9465 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 + (eval "$ac_compile") 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 - (exit $ac_status); } &&
9473 - { ac_try='test -z "$ac_c_werror_flag"
9474 - || test ! -s conftest.err'
9475 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 - (eval $ac_try) 2>&5
9477 - ac_status=$?
9478 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 - (exit $ac_status); }; } &&
9480 - { ac_try='test -s conftest.$ac_objext'
9481 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 - (eval $ac_try) 2>&5
9483 - ac_status=$?
9484 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 - (exit $ac_status); }; }; then
9486 + (exit $ac_status); } && {
9487 + test -z "$ac_c_werror_flag" ||
9488 + test ! -s conftest.err
9489 + } && test -s conftest.$ac_objext; then
9490 ac_lo=$ac_mid; break
9491 else
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495 -ac_hi=`expr '(' $ac_mid ')' - 1`
9496 - if test $ac_mid -le $ac_hi; then
9497 - ac_lo= ac_hi=
9498 - break
9499 - fi
9500 - ac_mid=`expr 2 '*' $ac_mid`
9501 + ac_hi=`expr '(' $ac_mid ')' - 1`
9502 + if test $ac_mid -le $ac_hi; then
9503 + ac_lo= ac_hi=
9504 + break
9505 + fi
9506 + ac_mid=`expr 2 '*' $ac_mid`
9507 fi
9508 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9509 +
9510 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511 done
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9515
9516 -ac_lo= ac_hi=
9517 + ac_lo= ac_hi=
9518 fi
9519 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9520 +
9521 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9522 fi
9523 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9524 +
9525 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9526 # Binary search between lo and hi bounds.
9527 while test "x$ac_lo" != "x$ac_hi"; do
9528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9529 @@ -8843,10 +9429,11 @@ cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532 $ac_includes_default
9533 + typedef long long ac__type_sizeof_;
9534 int
9535 main ()
9536 {
9537 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9538 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9539 test_array [0] = 0
9540
9541 ;
9542 @@ -8854,52 +9441,45 @@ test_array [0] = 0
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext
9546 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547 - (eval $ac_compile) 2>conftest.er1
9548 +if { (ac_try="$ac_compile"
9549 +case "(($ac_try" in
9550 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 + *) ac_try_echo=$ac_try;;
9552 +esac
9553 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 + (eval "$ac_compile") 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 - (exit $ac_status); } &&
9561 - { ac_try='test -z "$ac_c_werror_flag"
9562 - || test ! -s conftest.err'
9563 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 - (eval $ac_try) 2>&5
9565 - ac_status=$?
9566 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 - (exit $ac_status); }; } &&
9568 - { ac_try='test -s conftest.$ac_objext'
9569 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 - (eval $ac_try) 2>&5
9571 - ac_status=$?
9572 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 - (exit $ac_status); }; }; then
9574 + (exit $ac_status); } && {
9575 + test -z "$ac_c_werror_flag" ||
9576 + test ! -s conftest.err
9577 + } && test -s conftest.$ac_objext; then
9578 ac_hi=$ac_mid
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 -ac_lo=`expr '(' $ac_mid ')' + 1`
9584 + ac_lo=`expr '(' $ac_mid ')' + 1`
9585 fi
9586 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9587 +
9588 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 done
9590 case $ac_lo in
9591 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9592 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9593 +'') if test "$ac_cv_type_long_long" = yes; then
9594 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9595 See \`config.log' for more details." >&5
9596 -echo "$as_me: error: cannot compute sizeof (long long), 77
9597 +echo "$as_me: error: cannot compute sizeof (long long)
9598 See \`config.log' for more details." >&2;}
9599 - { (exit 1); exit 1; }; } ;;
9600 + { (exit 77); exit 77; }; }
9601 + else
9602 + ac_cv_sizeof_long_long=0
9603 + fi ;;
9604 esac
9605 else
9606 - if test "$cross_compiling" = yes; then
9607 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9608 -See \`config.log' for more details." >&5
9609 -echo "$as_me: error: cannot run test program while cross compiling
9610 -See \`config.log' for more details." >&2;}
9611 - { (exit 1); exit 1; }; }
9612 -else
9613 cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h. */
9615 _ACEOF
9616 @@ -8907,8 +9487,9 @@ cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 $ac_includes_default
9620 -long longval () { return (long) (sizeof (long long)); }
9621 -unsigned long ulongval () { return (long) (sizeof (long long)); }
9622 + typedef long long ac__type_sizeof_;
9623 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9624 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9625 #include <stdio.h>
9626 #include <stdlib.h>
9627 int
9628 @@ -8917,35 +9498,44 @@ main ()
9629
9630 FILE *f = fopen ("conftest.val", "w");
9631 if (! f)
9632 - exit (1);
9633 - if (((long) (sizeof (long long))) < 0)
9634 + return 1;
9635 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9636 {
9637 - long i = longval ();
9638 - if (i != ((long) (sizeof (long long))))
9639 - exit (1);
9640 + long int i = longval ();
9641 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
9642 + return 1;
9643 fprintf (f, "%ld\n", i);
9644 }
9645 else
9646 {
9647 - unsigned long i = ulongval ();
9648 - if (i != ((long) (sizeof (long long))))
9649 - exit (1);
9650 + unsigned long int i = ulongval ();
9651 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
9652 + return 1;
9653 fprintf (f, "%lu\n", i);
9654 }
9655 - exit (ferror (f) || fclose (f) != 0);
9656 + return ferror (f) || fclose (f) != 0;
9657
9658 ;
9659 return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest$ac_exeext
9663 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 - (eval $ac_link) 2>&5
9665 +if { (ac_try="$ac_link"
9666 +case "(($ac_try" in
9667 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 + *) ac_try_echo=$ac_try;;
9669 +esac
9670 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 + (eval "$ac_link") 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9675 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 - (eval $ac_try) 2>&5
9677 + { (case "(($ac_try" in
9678 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 + *) ac_try_echo=$ac_try;;
9680 +esac
9681 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 + (eval "$ac_try") 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 @@ -8956,22 +9546,25 @@ echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689 ( exit $ac_status )
9690 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9691 +if test "$ac_cv_type_long_long" = yes; then
9692 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9693 See \`config.log' for more details." >&5
9694 -echo "$as_me: error: cannot compute sizeof (long long), 77
9695 +echo "$as_me: error: cannot compute sizeof (long long)
9696 See \`config.log' for more details." >&2;}
9697 - { (exit 1); exit 1; }; }
9698 -fi
9699 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9700 + { (exit 77); exit 77; }; }
9701 + else
9702 + ac_cv_sizeof_long_long=0
9703 + fi
9704 fi
9705 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9706 fi
9707 rm -f conftest.val
9708 -else
9709 - ac_cv_sizeof_long_long=0
9710 -fi
9711 fi
9712 -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9713 -echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9714 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9715 +echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9716 +
9717 +
9718 +
9719 cat >>confdefs.h <<_ACEOF
9720 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9721 _ACEOF
9722 @@ -8979,8 +9572,8 @@ _ACEOF
9723
9724 fi
9725
9726 -echo "$as_me:$LINENO: checking for long" >&5
9727 -echo $ECHO_N "checking for long... $ECHO_C" >&6
9728 +{ echo "$as_me:$LINENO: checking for long" >&5
9729 +echo $ECHO_N "checking for long... $ECHO_C" >&6; }
9730 if test "${ac_cv_type_long+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733 @@ -8991,61 +9584,57 @@ cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9736 $ac_includes_default
9737 +typedef long ac__type_new_;
9738 int
9739 main ()
9740 {
9741 -if ((long *) 0)
9742 +if ((ac__type_new_ *) 0)
9743 return 0;
9744 -if (sizeof (long))
9745 +if (sizeof (ac__type_new_))
9746 return 0;
9747 ;
9748 return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext
9752 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9753 - (eval $ac_compile) 2>conftest.er1
9754 +if { (ac_try="$ac_compile"
9755 +case "(($ac_try" in
9756 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 + *) ac_try_echo=$ac_try;;
9758 +esac
9759 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 + (eval "$ac_compile") 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 - (exit $ac_status); } &&
9767 - { ac_try='test -z "$ac_c_werror_flag"
9768 - || test ! -s conftest.err'
9769 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 - (eval $ac_try) 2>&5
9771 - ac_status=$?
9772 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 - (exit $ac_status); }; } &&
9774 - { ac_try='test -s conftest.$ac_objext'
9775 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 - (eval $ac_try) 2>&5
9777 - ac_status=$?
9778 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 - (exit $ac_status); }; }; then
9780 + (exit $ac_status); } && {
9781 + test -z "$ac_c_werror_flag" ||
9782 + test ! -s conftest.err
9783 + } && test -s conftest.$ac_objext; then
9784 ac_cv_type_long=yes
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9788
9789 -ac_cv_type_long=no
9790 + ac_cv_type_long=no
9791 fi
9792 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9793 +
9794 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 fi
9796 -echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9797 -echo "${ECHO_T}$ac_cv_type_long" >&6
9798 +{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9799 +echo "${ECHO_T}$ac_cv_type_long" >&6; }
9800
9801 -echo "$as_me:$LINENO: checking size of long" >&5
9802 -echo $ECHO_N "checking size of long... $ECHO_C" >&6
9803 +# The cast to long int works around a bug in the HP C Compiler
9804 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9805 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9806 +# This bug is HP SR number 8606223364.
9807 +{ echo "$as_me:$LINENO: checking size of long" >&5
9808 +echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
9809 if test "${ac_cv_sizeof_long+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812 - if test "$ac_cv_type_long" = yes; then
9813 - # The cast to unsigned long works around a bug in the HP C Compiler
9814 - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9815 - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9816 - # This bug is HP SR number 8606223364.
9817 if test "$cross_compiling" = yes; then
9818 # Depending upon the size, compute the lo and hi bounds.
9819 cat >conftest.$ac_ext <<_ACEOF
9820 @@ -9055,10 +9644,11 @@ cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9824 + typedef long ac__type_sizeof_;
9825 int
9826 main ()
9827 {
9828 -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9829 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9830 test_array [0] = 0
9831
9832 ;
9833 @@ -9066,27 +9656,22 @@ test_array [0] = 0
9834 }
9835 _ACEOF
9836 rm -f conftest.$ac_objext
9837 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838 - (eval $ac_compile) 2>conftest.er1
9839 +if { (ac_try="$ac_compile"
9840 +case "(($ac_try" in
9841 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 + *) ac_try_echo=$ac_try;;
9843 +esac
9844 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 + (eval "$ac_compile") 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 - (exit $ac_status); } &&
9852 - { ac_try='test -z "$ac_c_werror_flag"
9853 - || test ! -s conftest.err'
9854 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 - (eval $ac_try) 2>&5
9856 - ac_status=$?
9857 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 - (exit $ac_status); }; } &&
9859 - { ac_try='test -s conftest.$ac_objext'
9860 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 - (eval $ac_try) 2>&5
9862 - ac_status=$?
9863 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 - (exit $ac_status); }; }; then
9865 + (exit $ac_status); } && {
9866 + test -z "$ac_c_werror_flag" ||
9867 + test ! -s conftest.err
9868 + } && test -s conftest.$ac_objext; then
9869 ac_lo=0 ac_mid=0
9870 while :; do
9871 cat >conftest.$ac_ext <<_ACEOF
9872 @@ -9096,10 +9681,11 @@ cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 $ac_includes_default
9876 + typedef long ac__type_sizeof_;
9877 int
9878 main ()
9879 {
9880 -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9881 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9882 test_array [0] = 0
9883
9884 ;
9885 @@ -9107,56 +9693,53 @@ test_array [0] = 0
9886 }
9887 _ACEOF
9888 rm -f conftest.$ac_objext
9889 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9890 - (eval $ac_compile) 2>conftest.er1
9891 +if { (ac_try="$ac_compile"
9892 +case "(($ac_try" in
9893 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 + *) ac_try_echo=$ac_try;;
9895 +esac
9896 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 + (eval "$ac_compile") 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 - (exit $ac_status); } &&
9904 - { ac_try='test -z "$ac_c_werror_flag"
9905 - || test ! -s conftest.err'
9906 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 - (eval $ac_try) 2>&5
9908 - ac_status=$?
9909 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 - (exit $ac_status); }; } &&
9911 - { ac_try='test -s conftest.$ac_objext'
9912 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 - (eval $ac_try) 2>&5
9914 - ac_status=$?
9915 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 - (exit $ac_status); }; }; then
9917 + (exit $ac_status); } && {
9918 + test -z "$ac_c_werror_flag" ||
9919 + test ! -s conftest.err
9920 + } && test -s conftest.$ac_objext; then
9921 ac_hi=$ac_mid; break
9922 else
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926 -ac_lo=`expr $ac_mid + 1`
9927 - if test $ac_lo -le $ac_mid; then
9928 - ac_lo= ac_hi=
9929 - break
9930 - fi
9931 - ac_mid=`expr 2 '*' $ac_mid + 1`
9932 + ac_lo=`expr $ac_mid + 1`
9933 + if test $ac_lo -le $ac_mid; then
9934 + ac_lo= ac_hi=
9935 + break
9936 + fi
9937 + ac_mid=`expr 2 '*' $ac_mid + 1`
9938 fi
9939 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9940 +
9941 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9942 done
9943 else
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947 -cat >conftest.$ac_ext <<_ACEOF
9948 + cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 $ac_includes_default
9955 + typedef long ac__type_sizeof_;
9956 int
9957 main ()
9958 {
9959 -static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9960 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9961 test_array [0] = 0
9962
9963 ;
9964 @@ -9164,27 +9747,22 @@ test_array [0] = 0
9965 }
9966 _ACEOF
9967 rm -f conftest.$ac_objext
9968 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9969 - (eval $ac_compile) 2>conftest.er1
9970 +if { (ac_try="$ac_compile"
9971 +case "(($ac_try" in
9972 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 + *) ac_try_echo=$ac_try;;
9974 +esac
9975 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 + (eval "$ac_compile") 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 - (exit $ac_status); } &&
9983 - { ac_try='test -z "$ac_c_werror_flag"
9984 - || test ! -s conftest.err'
9985 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986 - (eval $ac_try) 2>&5
9987 - ac_status=$?
9988 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 - (exit $ac_status); }; } &&
9990 - { ac_try='test -s conftest.$ac_objext'
9991 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 - (eval $ac_try) 2>&5
9993 - ac_status=$?
9994 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 - (exit $ac_status); }; }; then
9996 + (exit $ac_status); } && {
9997 + test -z "$ac_c_werror_flag" ||
9998 + test ! -s conftest.err
9999 + } && test -s conftest.$ac_objext; then
10000 ac_hi=-1 ac_mid=-1
10001 while :; do
10002 cat >conftest.$ac_ext <<_ACEOF
10003 @@ -9194,10 +9772,11 @@ cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 $ac_includes_default
10007 + typedef long ac__type_sizeof_;
10008 int
10009 main ()
10010 {
10011 -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
10012 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10013 test_array [0] = 0
10014
10015 ;
10016 @@ -9205,50 +9784,48 @@ test_array [0] = 0
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext
10020 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10021 - (eval $ac_compile) 2>conftest.er1
10022 +if { (ac_try="$ac_compile"
10023 +case "(($ac_try" in
10024 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 + *) ac_try_echo=$ac_try;;
10026 +esac
10027 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 + (eval "$ac_compile") 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 - (exit $ac_status); } &&
10035 - { ac_try='test -z "$ac_c_werror_flag"
10036 - || test ! -s conftest.err'
10037 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 - (eval $ac_try) 2>&5
10039 - ac_status=$?
10040 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 - (exit $ac_status); }; } &&
10042 - { ac_try='test -s conftest.$ac_objext'
10043 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 - (eval $ac_try) 2>&5
10045 - ac_status=$?
10046 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 - (exit $ac_status); }; }; then
10048 + (exit $ac_status); } && {
10049 + test -z "$ac_c_werror_flag" ||
10050 + test ! -s conftest.err
10051 + } && test -s conftest.$ac_objext; then
10052 ac_lo=$ac_mid; break
10053 else
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057 -ac_hi=`expr '(' $ac_mid ')' - 1`
10058 - if test $ac_mid -le $ac_hi; then
10059 - ac_lo= ac_hi=
10060 - break
10061 - fi
10062 - ac_mid=`expr 2 '*' $ac_mid`
10063 + ac_hi=`expr '(' $ac_mid ')' - 1`
10064 + if test $ac_mid -le $ac_hi; then
10065 + ac_lo= ac_hi=
10066 + break
10067 + fi
10068 + ac_mid=`expr 2 '*' $ac_mid`
10069 fi
10070 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071 +
10072 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 done
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 -ac_lo= ac_hi=
10079 + ac_lo= ac_hi=
10080 fi
10081 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10082 +
10083 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084 fi
10085 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10086 +
10087 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 # Binary search between lo and hi bounds.
10089 while test "x$ac_lo" != "x$ac_hi"; do
10090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10091 @@ -9259,10 +9836,11 @@ cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 $ac_includes_default
10095 + typedef long ac__type_sizeof_;
10096 int
10097 main ()
10098 {
10099 -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10100 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10101 test_array [0] = 0
10102
10103 ;
10104 @@ -9270,52 +9848,45 @@ test_array [0] = 0
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext
10108 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109 - (eval $ac_compile) 2>conftest.er1
10110 +if { (ac_try="$ac_compile"
10111 +case "(($ac_try" in
10112 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 + *) ac_try_echo=$ac_try;;
10114 +esac
10115 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 + (eval "$ac_compile") 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 - (exit $ac_status); } &&
10123 - { ac_try='test -z "$ac_c_werror_flag"
10124 - || test ! -s conftest.err'
10125 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 - (eval $ac_try) 2>&5
10127 - ac_status=$?
10128 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 - (exit $ac_status); }; } &&
10130 - { ac_try='test -s conftest.$ac_objext'
10131 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 - (eval $ac_try) 2>&5
10133 - ac_status=$?
10134 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 - (exit $ac_status); }; }; then
10136 + (exit $ac_status); } && {
10137 + test -z "$ac_c_werror_flag" ||
10138 + test ! -s conftest.err
10139 + } && test -s conftest.$ac_objext; then
10140 ac_hi=$ac_mid
10141 else
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145 -ac_lo=`expr '(' $ac_mid ')' + 1`
10146 + ac_lo=`expr '(' $ac_mid ')' + 1`
10147 fi
10148 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10149 +
10150 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 done
10152 case $ac_lo in
10153 ?*) ac_cv_sizeof_long=$ac_lo;;
10154 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10155 +'') if test "$ac_cv_type_long" = yes; then
10156 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10157 See \`config.log' for more details." >&5
10158 -echo "$as_me: error: cannot compute sizeof (long), 77
10159 +echo "$as_me: error: cannot compute sizeof (long)
10160 See \`config.log' for more details." >&2;}
10161 - { (exit 1); exit 1; }; } ;;
10162 + { (exit 77); exit 77; }; }
10163 + else
10164 + ac_cv_sizeof_long=0
10165 + fi ;;
10166 esac
10167 else
10168 - if test "$cross_compiling" = yes; then
10169 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10170 -See \`config.log' for more details." >&5
10171 -echo "$as_me: error: cannot run test program while cross compiling
10172 -See \`config.log' for more details." >&2;}
10173 - { (exit 1); exit 1; }; }
10174 -else
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h. */
10177 _ACEOF
10178 @@ -9323,8 +9894,9 @@ cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 $ac_includes_default
10182 -long longval () { return (long) (sizeof (long)); }
10183 -unsigned long ulongval () { return (long) (sizeof (long)); }
10184 + typedef long ac__type_sizeof_;
10185 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10186 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10187 #include <stdio.h>
10188 #include <stdlib.h>
10189 int
10190 @@ -9333,35 +9905,44 @@ main ()
10191
10192 FILE *f = fopen ("conftest.val", "w");
10193 if (! f)
10194 - exit (1);
10195 - if (((long) (sizeof (long))) < 0)
10196 + return 1;
10197 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10198 {
10199 - long i = longval ();
10200 - if (i != ((long) (sizeof (long))))
10201 - exit (1);
10202 + long int i = longval ();
10203 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
10204 + return 1;
10205 fprintf (f, "%ld\n", i);
10206 }
10207 else
10208 {
10209 - unsigned long i = ulongval ();
10210 - if (i != ((long) (sizeof (long))))
10211 - exit (1);
10212 + unsigned long int i = ulongval ();
10213 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
10214 + return 1;
10215 fprintf (f, "%lu\n", i);
10216 }
10217 - exit (ferror (f) || fclose (f) != 0);
10218 + return ferror (f) || fclose (f) != 0;
10219
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 rm -f conftest$ac_exeext
10225 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226 - (eval $ac_link) 2>&5
10227 +if { (ac_try="$ac_link"
10228 +case "(($ac_try" in
10229 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 + *) ac_try_echo=$ac_try;;
10231 +esac
10232 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 + (eval "$ac_link") 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10237 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 - (eval $ac_try) 2>&5
10239 + { (case "(($ac_try" in
10240 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 + *) ac_try_echo=$ac_try;;
10242 +esac
10243 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 + (eval "$ac_try") 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 @@ -9372,22 +9953,25 @@ echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251 ( exit $ac_status )
10252 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10253 +if test "$ac_cv_type_long" = yes; then
10254 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10255 See \`config.log' for more details." >&5
10256 -echo "$as_me: error: cannot compute sizeof (long), 77
10257 +echo "$as_me: error: cannot compute sizeof (long)
10258 See \`config.log' for more details." >&2;}
10259 - { (exit 1); exit 1; }; }
10260 -fi
10261 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10262 + { (exit 77); exit 77; }; }
10263 + else
10264 + ac_cv_sizeof_long=0
10265 + fi
10266 fi
10267 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10268 fi
10269 rm -f conftest.val
10270 -else
10271 - ac_cv_sizeof_long=0
10272 -fi
10273 fi
10274 -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10275 -echo "${ECHO_T}$ac_cv_sizeof_long" >&6
10276 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10277 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
10278 +
10279 +
10280 +
10281 cat >>confdefs.h <<_ACEOF
10282 #define SIZEOF_LONG $ac_cv_sizeof_long
10283 _ACEOF
10284 @@ -9428,8 +10012,8 @@ fi
10285 if test "x$cross_compiling" = "xno"; then
10286 EXEEXT_FOR_BUILD='$(EXEEXT)'
10287 else
10288 - echo "$as_me:$LINENO: checking for build system executable suffix" >&5
10289 -echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
10290 + { echo "$as_me:$LINENO: checking for build system executable suffix" >&5
10291 +echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6; }
10292 if test "${bfd_cv_build_exeext+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295 @@ -9446,8 +10030,8 @@ else
10296 rm -f conftest*
10297 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
10298 fi
10299 -echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
10300 -echo "${ECHO_T}$bfd_cv_build_exeext" >&6
10301 +{ echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
10302 +echo "${ECHO_T}$bfd_cv_build_exeext" >&6; }
10303 EXEEXT_FOR_BUILD=""
10304 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
10305 fi
10306 @@ -9462,18 +10046,19 @@ fi
10307 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
10308 do
10309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10310 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10311 - echo "$as_me:$LINENO: checking for $ac_header" >&5
10312 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10313 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10315 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10317 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 fi
10320 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10321 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10322 +ac_res=`eval echo '${'$as_ac_Header'}'`
10323 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10324 +echo "${ECHO_T}$ac_res" >&6; }
10325 else
10326 # Is the header compilable?
10327 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
10328 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10329 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10330 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 @@ -9484,41 +10069,37 @@ $ac_includes_default
10335 #include <$ac_header>
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10339 - (eval $ac_compile) 2>conftest.er1
10340 +if { (ac_try="$ac_compile"
10341 +case "(($ac_try" in
10342 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 + *) ac_try_echo=$ac_try;;
10344 +esac
10345 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 + (eval "$ac_compile") 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 - (exit $ac_status); } &&
10353 - { ac_try='test -z "$ac_c_werror_flag"
10354 - || test ! -s conftest.err'
10355 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 - (eval $ac_try) 2>&5
10357 - ac_status=$?
10358 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 - (exit $ac_status); }; } &&
10360 - { ac_try='test -s conftest.$ac_objext'
10361 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 - (eval $ac_try) 2>&5
10363 - ac_status=$?
10364 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 - (exit $ac_status); }; }; then
10366 + (exit $ac_status); } && {
10367 + test -z "$ac_c_werror_flag" ||
10368 + test ! -s conftest.err
10369 + } && test -s conftest.$ac_objext; then
10370 ac_header_compiler=yes
10371 else
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10374
10375 -ac_header_compiler=no
10376 + ac_header_compiler=no
10377 fi
10378 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10379 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10380 -echo "${ECHO_T}$ac_header_compiler" >&6
10381 +
10382 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10384 +echo "${ECHO_T}$ac_header_compiler" >&6; }
10385
10386 # Is the header present?
10387 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
10388 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10389 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10390 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10391 cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h. */
10393 _ACEOF
10394 @@ -9527,24 +10108,22 @@ cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 #include <$ac_header>
10397 _ACEOF
10398 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10399 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10400 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10401 +case "(($ac_try" in
10402 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 + *) ac_try_echo=$ac_try;;
10404 +esac
10405 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10407 ac_status=$?
10408 grep -v '^ *+' conftest.er1 >conftest.err
10409 rm -f conftest.er1
10410 cat conftest.err >&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 - (exit $ac_status); } >/dev/null; then
10413 - if test -s conftest.err; then
10414 - ac_cpp_err=$ac_c_preproc_warn_flag
10415 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10416 - else
10417 - ac_cpp_err=
10418 - fi
10419 -else
10420 - ac_cpp_err=yes
10421 -fi
10422 -if test -z "$ac_cpp_err"; then
10423 + (exit $ac_status); } >/dev/null && {
10424 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425 + test ! -s conftest.err
10426 + }; then
10427 ac_header_preproc=yes
10428 else
10429 echo "$as_me: failed program was:" >&5
10430 @@ -9552,9 +10131,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
10431
10432 ac_header_preproc=no
10433 fi
10434 +
10435 rm -f conftest.err conftest.$ac_ext
10436 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437 -echo "${ECHO_T}$ac_header_preproc" >&6
10438 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10439 +echo "${ECHO_T}$ac_header_preproc" >&6; }
10440
10441 # So? What about this header?
10442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10443 @@ -9578,25 +10158,19 @@ echo "$as_me: WARNING: $ac_header: s
10444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10447 - (
10448 - cat <<\_ASBOX
10449 -## ------------------------------------------ ##
10450 -## Report this to the AC_PACKAGE_NAME lists. ##
10451 -## ------------------------------------------ ##
10452 -_ASBOX
10453 - ) |
10454 - sed "s/^/$as_me: WARNING: /" >&2
10455 +
10456 ;;
10457 esac
10458 -echo "$as_me:$LINENO: checking for $ac_header" >&5
10459 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10460 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10461 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10462 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10463 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466 eval "$as_ac_Header=\$ac_header_preproc"
10467 fi
10468 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10469 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10470 +ac_res=`eval echo '${'$as_ac_Header'}'`
10471 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10472 +echo "${ECHO_T}$ac_res" >&6; }
10473
10474 fi
10475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10476 @@ -9614,18 +10188,19 @@ done
10477 for ac_header in fcntl.h sys/file.h sys/time.h
10478 do
10479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10480 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10481 - echo "$as_me:$LINENO: checking for $ac_header" >&5
10482 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10483 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10484 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10485 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
10486 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10487 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 fi
10490 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10491 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10492 +ac_res=`eval echo '${'$as_ac_Header'}'`
10493 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10494 +echo "${ECHO_T}$ac_res" >&6; }
10495 else
10496 # Is the header compilable?
10497 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
10498 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10499 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10500 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10501 cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h. */
10503 _ACEOF
10504 @@ -9636,41 +10211,37 @@ $ac_includes_default
10505 #include <$ac_header>
10506 _ACEOF
10507 rm -f conftest.$ac_objext
10508 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509 - (eval $ac_compile) 2>conftest.er1
10510 +if { (ac_try="$ac_compile"
10511 +case "(($ac_try" in
10512 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 + *) ac_try_echo=$ac_try;;
10514 +esac
10515 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 + (eval "$ac_compile") 2>conftest.er1
10517 ac_status=$?
10518 grep -v '^ *+' conftest.er1 >conftest.err
10519 rm -f conftest.er1
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 - (exit $ac_status); } &&
10523 - { ac_try='test -z "$ac_c_werror_flag"
10524 - || test ! -s conftest.err'
10525 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 - (eval $ac_try) 2>&5
10527 - ac_status=$?
10528 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 - (exit $ac_status); }; } &&
10530 - { ac_try='test -s conftest.$ac_objext'
10531 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 - (eval $ac_try) 2>&5
10533 - ac_status=$?
10534 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 - (exit $ac_status); }; }; then
10536 + (exit $ac_status); } && {
10537 + test -z "$ac_c_werror_flag" ||
10538 + test ! -s conftest.err
10539 + } && test -s conftest.$ac_objext; then
10540 ac_header_compiler=yes
10541 else
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545 -ac_header_compiler=no
10546 + ac_header_compiler=no
10547 fi
10548 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10549 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10550 -echo "${ECHO_T}$ac_header_compiler" >&6
10551 +
10552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10554 +echo "${ECHO_T}$ac_header_compiler" >&6; }
10555
10556 # Is the header present?
10557 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
10558 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10559 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10560 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10561 cat >conftest.$ac_ext <<_ACEOF
10562 /* confdefs.h. */
10563 _ACEOF
10564 @@ -9679,24 +10250,22 @@ cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <$ac_header>
10567 _ACEOF
10568 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10569 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10570 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10571 +case "(($ac_try" in
10572 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 + *) ac_try_echo=$ac_try;;
10574 +esac
10575 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10577 ac_status=$?
10578 grep -v '^ *+' conftest.er1 >conftest.err
10579 rm -f conftest.er1
10580 cat conftest.err >&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 - (exit $ac_status); } >/dev/null; then
10583 - if test -s conftest.err; then
10584 - ac_cpp_err=$ac_c_preproc_warn_flag
10585 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10586 - else
10587 - ac_cpp_err=
10588 - fi
10589 -else
10590 - ac_cpp_err=yes
10591 -fi
10592 -if test -z "$ac_cpp_err"; then
10593 + (exit $ac_status); } >/dev/null && {
10594 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10595 + test ! -s conftest.err
10596 + }; then
10597 ac_header_preproc=yes
10598 else
10599 echo "$as_me: failed program was:" >&5
10600 @@ -9704,9 +10273,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 ac_header_preproc=no
10603 fi
10604 +
10605 rm -f conftest.err conftest.$ac_ext
10606 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607 -echo "${ECHO_T}$ac_header_preproc" >&6
10608 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10609 +echo "${ECHO_T}$ac_header_preproc" >&6; }
10610
10611 # So? What about this header?
10612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10613 @@ -9730,25 +10300,19 @@ echo "$as_me: WARNING: $ac_header: s
10614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10617 - (
10618 - cat <<\_ASBOX
10619 -## ------------------------------------------ ##
10620 -## Report this to the AC_PACKAGE_NAME lists. ##
10621 -## ------------------------------------------ ##
10622 -_ASBOX
10623 - ) |
10624 - sed "s/^/$as_me: WARNING: /" >&2
10625 +
10626 ;;
10627 esac
10628 -echo "$as_me:$LINENO: checking for $ac_header" >&5
10629 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10630 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10631 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10632 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10633 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636 eval "$as_ac_Header=\$ac_header_preproc"
10637 fi
10638 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10639 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10640 +ac_res=`eval echo '${'$as_ac_Header'}'`
10641 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10642 +echo "${ECHO_T}$ac_res" >&6; }
10643
10644 fi
10645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10646 @@ -9760,8 +10324,8 @@ fi
10647
10648 done
10649
10650 -echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10651 -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10652 +{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10653 +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10654 if test "${ac_cv_header_time+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657 @@ -9785,38 +10349,34 @@ return 0;
10658 }
10659 _ACEOF
10660 rm -f conftest.$ac_objext
10661 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662 - (eval $ac_compile) 2>conftest.er1
10663 +if { (ac_try="$ac_compile"
10664 +case "(($ac_try" in
10665 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 + *) ac_try_echo=$ac_try;;
10667 +esac
10668 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 + (eval "$ac_compile") 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 - (exit $ac_status); } &&
10676 - { ac_try='test -z "$ac_c_werror_flag"
10677 - || test ! -s conftest.err'
10678 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 - (eval $ac_try) 2>&5
10680 - ac_status=$?
10681 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 - (exit $ac_status); }; } &&
10683 - { ac_try='test -s conftest.$ac_objext'
10684 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 - (eval $ac_try) 2>&5
10686 - ac_status=$?
10687 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 - (exit $ac_status); }; }; then
10689 + (exit $ac_status); } && {
10690 + test -z "$ac_c_werror_flag" ||
10691 + test ! -s conftest.err
10692 + } && test -s conftest.$ac_objext; then
10693 ac_cv_header_time=yes
10694 else
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 -ac_cv_header_time=no
10699 + ac_cv_header_time=no
10700 fi
10701 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10702 +
10703 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 fi
10705 -echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10706 -echo "${ECHO_T}$ac_cv_header_time" >&6
10707 +{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10708 +echo "${ECHO_T}$ac_cv_header_time" >&6; }
10709 if test $ac_cv_header_time = yes; then
10710
10711 cat >>confdefs.h <<\_ACEOF
10712 @@ -9833,9 +10393,9 @@ fi
10713 ac_header_dirent=no
10714 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10715 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10716 -echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10717 -echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10718 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10719 +{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10720 +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10721 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724 cat >conftest.$ac_ext <<_ACEOF
10725 @@ -9857,38 +10417,35 @@ return 0;
10726 }
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10730 - (eval $ac_compile) 2>conftest.er1
10731 +if { (ac_try="$ac_compile"
10732 +case "(($ac_try" in
10733 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 + *) ac_try_echo=$ac_try;;
10735 +esac
10736 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 + (eval "$ac_compile") 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 - (exit $ac_status); } &&
10744 - { ac_try='test -z "$ac_c_werror_flag"
10745 - || test ! -s conftest.err'
10746 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 - (eval $ac_try) 2>&5
10748 - ac_status=$?
10749 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 - (exit $ac_status); }; } &&
10751 - { ac_try='test -s conftest.$ac_objext'
10752 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 - (eval $ac_try) 2>&5
10754 - ac_status=$?
10755 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 - (exit $ac_status); }; }; then
10757 + (exit $ac_status); } && {
10758 + test -z "$ac_c_werror_flag" ||
10759 + test ! -s conftest.err
10760 + } && test -s conftest.$ac_objext; then
10761 eval "$as_ac_Header=yes"
10762 else
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766 -eval "$as_ac_Header=no"
10767 + eval "$as_ac_Header=no"
10768 fi
10769 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10770 +
10771 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10772 fi
10773 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10774 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10775 +ac_res=`eval echo '${'$as_ac_Header'}'`
10776 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10777 +echo "${ECHO_T}$ac_res" >&6; }
10778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10779 cat >>confdefs.h <<_ACEOF
10780 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10781 @@ -9900,13 +10457,12 @@ fi
10782 done
10783 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10784 if test $ac_header_dirent = dirent.h; then
10785 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
10786 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10787 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10788 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10789 if test "${ac_cv_search_opendir+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 ac_func_search_save_LIBS=$LIBS
10793 -ac_cv_search_opendir=no
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h. */
10796 _ACEOF
10797 @@ -9914,126 +10470,83 @@ cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800
10801 -/* Override any gcc2 internal prototype to avoid an error. */
10802 +/* Override any GCC internal prototype to avoid an error.
10803 + Use char because int might match the return type of a GCC
10804 + builtin and then its argument prototype would still apply. */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 -/* We use char because int might match the return type of a gcc2
10809 - builtin and then its argument prototype would still apply. */
10810 char opendir ();
10811 int
10812 main ()
10813 {
10814 -opendir ();
10815 +return opendir ();
10816 ;
10817 return 0;
10818 }
10819 _ACEOF
10820 -rm -f conftest.$ac_objext conftest$ac_exeext
10821 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822 - (eval $ac_link) 2>conftest.er1
10823 +for ac_lib in '' dir; do
10824 + if test -z "$ac_lib"; then
10825 + ac_res="none required"
10826 + else
10827 + ac_res=-l$ac_lib
10828 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10829 + fi
10830 + rm -f conftest.$ac_objext conftest$ac_exeext
10831 +if { (ac_try="$ac_link"
10832 +case "(($ac_try" in
10833 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 + *) ac_try_echo=$ac_try;;
10835 +esac
10836 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 + (eval "$ac_link") 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 - (exit $ac_status); } &&
10844 - { ac_try='test -z "$ac_c_werror_flag"
10845 - || test ! -s conftest.err'
10846 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 - (eval $ac_try) 2>&5
10848 - ac_status=$?
10849 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 - (exit $ac_status); }; } &&
10851 - { ac_try='test -s conftest$ac_exeext'
10852 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 - (eval $ac_try) 2>&5
10854 - ac_status=$?
10855 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 - (exit $ac_status); }; }; then
10857 - ac_cv_search_opendir="none required"
10858 + (exit $ac_status); } && {
10859 + test -z "$ac_c_werror_flag" ||
10860 + test ! -s conftest.err
10861 + } && test -s conftest$ac_exeext &&
10862 + $as_test_x conftest$ac_exeext; then
10863 + ac_cv_search_opendir=$ac_res
10864 else
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10867
10868 -fi
10869 -rm -f conftest.err conftest.$ac_objext \
10870 - conftest$ac_exeext conftest.$ac_ext
10871 -if test "$ac_cv_search_opendir" = no; then
10872 - for ac_lib in dir; do
10873 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10874 - cat >conftest.$ac_ext <<_ACEOF
10875 -/* confdefs.h. */
10876 -_ACEOF
10877 -cat confdefs.h >>conftest.$ac_ext
10878 -cat >>conftest.$ac_ext <<_ACEOF
10879 -/* end confdefs.h. */
10880
10881 -/* Override any gcc2 internal prototype to avoid an error. */
10882 -#ifdef __cplusplus
10883 -extern "C"
10884 -#endif
10885 -/* We use char because int might match the return type of a gcc2
10886 - builtin and then its argument prototype would still apply. */
10887 -char opendir ();
10888 -int
10889 -main ()
10890 -{
10891 -opendir ();
10892 - ;
10893 - return 0;
10894 -}
10895 -_ACEOF
10896 -rm -f conftest.$ac_objext conftest$ac_exeext
10897 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898 - (eval $ac_link) 2>conftest.er1
10899 - ac_status=$?
10900 - grep -v '^ *+' conftest.er1 >conftest.err
10901 - rm -f conftest.er1
10902 - cat conftest.err >&5
10903 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 - (exit $ac_status); } &&
10905 - { ac_try='test -z "$ac_c_werror_flag"
10906 - || test ! -s conftest.err'
10907 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 - (eval $ac_try) 2>&5
10909 - ac_status=$?
10910 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 - (exit $ac_status); }; } &&
10912 - { ac_try='test -s conftest$ac_exeext'
10913 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 - (eval $ac_try) 2>&5
10915 - ac_status=$?
10916 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 - (exit $ac_status); }; }; then
10918 - ac_cv_search_opendir="-l$ac_lib"
10919 -break
10920 -else
10921 - echo "$as_me: failed program was:" >&5
10922 -sed 's/^/| /' conftest.$ac_ext >&5
10923 +fi
10924
10925 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10926 + conftest$ac_exeext
10927 + if test "${ac_cv_search_opendir+set}" = set; then
10928 + break
10929 fi
10930 -rm -f conftest.err conftest.$ac_objext \
10931 - conftest$ac_exeext conftest.$ac_ext
10932 - done
10933 +done
10934 +if test "${ac_cv_search_opendir+set}" = set; then
10935 + :
10936 +else
10937 + ac_cv_search_opendir=no
10938 fi
10939 +rm conftest.$ac_ext
10940 LIBS=$ac_func_search_save_LIBS
10941 fi
10942 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10943 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
10944 -if test "$ac_cv_search_opendir" != no; then
10945 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10946 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10947 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10948 +ac_res=$ac_cv_search_opendir
10949 +if test "$ac_res" != no; then
10950 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10951
10952 fi
10953
10954 else
10955 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
10956 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10957 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10958 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10959 if test "${ac_cv_search_opendir+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962 ac_func_search_save_LIBS=$LIBS
10963 -ac_cv_search_opendir=no
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h. */
10966 _ACEOF
10967 @@ -10041,122 +10554,80 @@ cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970
10971 -/* Override any gcc2 internal prototype to avoid an error. */
10972 +/* Override any GCC internal prototype to avoid an error.
10973 + Use char because int might match the return type of a GCC
10974 + builtin and then its argument prototype would still apply. */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 -/* We use char because int might match the return type of a gcc2
10979 - builtin and then its argument prototype would still apply. */
10980 char opendir ();
10981 int
10982 main ()
10983 {
10984 -opendir ();
10985 +return opendir ();
10986 ;
10987 return 0;
10988 }
10989 _ACEOF
10990 -rm -f conftest.$ac_objext conftest$ac_exeext
10991 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10992 - (eval $ac_link) 2>conftest.er1
10993 +for ac_lib in '' x; do
10994 + if test -z "$ac_lib"; then
10995 + ac_res="none required"
10996 + else
10997 + ac_res=-l$ac_lib
10998 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10999 + fi
11000 + rm -f conftest.$ac_objext conftest$ac_exeext
11001 +if { (ac_try="$ac_link"
11002 +case "(($ac_try" in
11003 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 + *) ac_try_echo=$ac_try;;
11005 +esac
11006 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 + (eval "$ac_link") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 - (exit $ac_status); } &&
11014 - { ac_try='test -z "$ac_c_werror_flag"
11015 - || test ! -s conftest.err'
11016 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 - (eval $ac_try) 2>&5
11018 - ac_status=$?
11019 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 - (exit $ac_status); }; } &&
11021 - { ac_try='test -s conftest$ac_exeext'
11022 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 - (eval $ac_try) 2>&5
11024 - ac_status=$?
11025 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 - (exit $ac_status); }; }; then
11027 - ac_cv_search_opendir="none required"
11028 + (exit $ac_status); } && {
11029 + test -z "$ac_c_werror_flag" ||
11030 + test ! -s conftest.err
11031 + } && test -s conftest$ac_exeext &&
11032 + $as_test_x conftest$ac_exeext; then
11033 + ac_cv_search_opendir=$ac_res
11034 else
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 -fi
11039 -rm -f conftest.err conftest.$ac_objext \
11040 - conftest$ac_exeext conftest.$ac_ext
11041 -if test "$ac_cv_search_opendir" = no; then
11042 - for ac_lib in x; do
11043 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11044 - cat >conftest.$ac_ext <<_ACEOF
11045 -/* confdefs.h. */
11046 -_ACEOF
11047 -cat confdefs.h >>conftest.$ac_ext
11048 -cat >>conftest.$ac_ext <<_ACEOF
11049 -/* end confdefs.h. */
11050
11051 -/* Override any gcc2 internal prototype to avoid an error. */
11052 -#ifdef __cplusplus
11053 -extern "C"
11054 -#endif
11055 -/* We use char because int might match the return type of a gcc2
11056 - builtin and then its argument prototype would still apply. */
11057 -char opendir ();
11058 -int
11059 -main ()
11060 -{
11061 -opendir ();
11062 - ;
11063 - return 0;
11064 -}
11065 -_ACEOF
11066 -rm -f conftest.$ac_objext conftest$ac_exeext
11067 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11068 - (eval $ac_link) 2>conftest.er1
11069 - ac_status=$?
11070 - grep -v '^ *+' conftest.er1 >conftest.err
11071 - rm -f conftest.er1
11072 - cat conftest.err >&5
11073 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 - (exit $ac_status); } &&
11075 - { ac_try='test -z "$ac_c_werror_flag"
11076 - || test ! -s conftest.err'
11077 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 - (eval $ac_try) 2>&5
11079 - ac_status=$?
11080 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 - (exit $ac_status); }; } &&
11082 - { ac_try='test -s conftest$ac_exeext'
11083 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 - (eval $ac_try) 2>&5
11085 - ac_status=$?
11086 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 - (exit $ac_status); }; }; then
11088 - ac_cv_search_opendir="-l$ac_lib"
11089 -break
11090 -else
11091 - echo "$as_me: failed program was:" >&5
11092 -sed 's/^/| /' conftest.$ac_ext >&5
11093 +fi
11094
11095 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11096 + conftest$ac_exeext
11097 + if test "${ac_cv_search_opendir+set}" = set; then
11098 + break
11099 fi
11100 -rm -f conftest.err conftest.$ac_objext \
11101 - conftest$ac_exeext conftest.$ac_ext
11102 - done
11103 +done
11104 +if test "${ac_cv_search_opendir+set}" = set; then
11105 + :
11106 +else
11107 + ac_cv_search_opendir=no
11108 fi
11109 +rm conftest.$ac_ext
11110 LIBS=$ac_func_search_save_LIBS
11111 fi
11112 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11113 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
11114 -if test "$ac_cv_search_opendir" != no; then
11115 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11116 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11117 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11118 +ac_res=$ac_cv_search_opendir
11119 +if test "$ac_res" != no; then
11120 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11121
11122 fi
11123
11124 fi
11125
11126 -echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
11127 -echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
11128 +{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
11129 +echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
11130 if test "${gcc_cv_header_string+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 @@ -10177,38 +10648,34 @@ main ()
11134 }
11135 _ACEOF
11136 rm -f conftest.$ac_objext
11137 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11138 - (eval $ac_compile) 2>conftest.er1
11139 +if { (ac_try="$ac_compile"
11140 +case "(($ac_try" in
11141 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 + *) ac_try_echo=$ac_try;;
11143 +esac
11144 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 + (eval "$ac_compile") 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 - (exit $ac_status); } &&
11152 - { ac_try='test -z "$ac_c_werror_flag"
11153 - || test ! -s conftest.err'
11154 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 - (eval $ac_try) 2>&5
11156 - ac_status=$?
11157 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 - (exit $ac_status); }; } &&
11159 - { ac_try='test -s conftest.$ac_objext'
11160 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 - (eval $ac_try) 2>&5
11162 - ac_status=$?
11163 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 - (exit $ac_status); }; }; then
11165 + (exit $ac_status); } && {
11166 + test -z "$ac_c_werror_flag" ||
11167 + test ! -s conftest.err
11168 + } && test -s conftest.$ac_objext; then
11169 gcc_cv_header_string=yes
11170 else
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174 -gcc_cv_header_string=no
11175 + gcc_cv_header_string=no
11176 fi
11177 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11178 +
11179 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11180 fi
11181 -echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
11182 -echo "${ECHO_T}$gcc_cv_header_string" >&6
11183 +{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
11184 +echo "${ECHO_T}$gcc_cv_header_string" >&6; }
11185 if test $gcc_cv_header_string = yes; then
11186
11187 cat >>confdefs.h <<\_ACEOF
11188 @@ -10227,9 +10694,9 @@ fi
11189 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
11190 do
11191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192 -echo "$as_me:$LINENO: checking for $ac_func" >&5
11193 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11194 -if eval "test \"\${$as_ac_var+set}\" = set"; then
11195 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11196 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11197 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200 cat >conftest.$ac_ext <<_ACEOF
11201 @@ -10255,68 +10722,60 @@ cat >>conftest.$ac_ext <<_ACEOF
11202
11203 #undef $ac_func
11204
11205 -/* Override any gcc2 internal prototype to avoid an error. */
11206 +/* Override any GCC internal prototype to avoid an error.
11207 + Use char because int might match the return type of a GCC
11208 + builtin and then its argument prototype would still apply. */
11209 #ifdef __cplusplus
11210 extern "C"
11211 -{
11212 #endif
11213 -/* We use char because int might match the return type of a gcc2
11214 - builtin and then its argument prototype would still apply. */
11215 char $ac_func ();
11216 /* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11220 +#if defined __stub_$ac_func || defined __stub___$ac_func
11221 choke me
11222 -#else
11223 -char (*f) () = $ac_func;
11224 -#endif
11225 -#ifdef __cplusplus
11226 -}
11227 #endif
11228
11229 int
11230 main ()
11231 {
11232 -return f != $ac_func;
11233 +return $ac_func ();
11234 ;
11235 return 0;
11236 }
11237 _ACEOF
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240 - (eval $ac_link) 2>conftest.er1
11241 +if { (ac_try="$ac_link"
11242 +case "(($ac_try" in
11243 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 + *) ac_try_echo=$ac_try;;
11245 +esac
11246 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 + (eval "$ac_link") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 - (exit $ac_status); } &&
11254 - { ac_try='test -z "$ac_c_werror_flag"
11255 - || test ! -s conftest.err'
11256 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 - (eval $ac_try) 2>&5
11258 - ac_status=$?
11259 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 - (exit $ac_status); }; } &&
11261 - { ac_try='test -s conftest$ac_exeext'
11262 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 - (eval $ac_try) 2>&5
11264 - ac_status=$?
11265 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 - (exit $ac_status); }; }; then
11267 + (exit $ac_status); } && {
11268 + test -z "$ac_c_werror_flag" ||
11269 + test ! -s conftest.err
11270 + } && test -s conftest$ac_exeext &&
11271 + $as_test_x conftest$ac_exeext; then
11272 eval "$as_ac_var=yes"
11273 else
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277 -eval "$as_ac_var=no"
11278 + eval "$as_ac_var=no"
11279 fi
11280 -rm -f conftest.err conftest.$ac_objext \
11281 +
11282 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11283 conftest$ac_exeext conftest.$ac_ext
11284 fi
11285 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11286 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11287 +ac_res=`eval echo '${'$as_ac_var'}'`
11288 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11289 +echo "${ECHO_T}$ac_res" >&6; }
11290 if test `eval echo '${'$as_ac_var'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11293 @@ -10329,9 +10788,9 @@ done
11294 for ac_func in strtoull
11295 do
11296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11297 -echo "$as_me:$LINENO: checking for $ac_func" >&5
11298 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11299 -if eval "test \"\${$as_ac_var+set}\" = set"; then
11300 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11301 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11302 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305 cat >conftest.$ac_ext <<_ACEOF
11306 @@ -10357,68 +10816,60 @@ cat >>conftest.$ac_ext <<_ACEOF
11307
11308 #undef $ac_func
11309
11310 -/* Override any gcc2 internal prototype to avoid an error. */
11311 +/* Override any GCC internal prototype to avoid an error.
11312 + Use char because int might match the return type of a GCC
11313 + builtin and then its argument prototype would still apply. */
11314 #ifdef __cplusplus
11315 extern "C"
11316 -{
11317 #endif
11318 -/* We use char because int might match the return type of a gcc2
11319 - builtin and then its argument prototype would still apply. */
11320 char $ac_func ();
11321 /* The GNU C library defines this for functions which it implements
11322 to always fail with ENOSYS. Some functions are actually named
11323 something starting with __ and the normal name is an alias. */
11324 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11325 +#if defined __stub_$ac_func || defined __stub___$ac_func
11326 choke me
11327 -#else
11328 -char (*f) () = $ac_func;
11329 -#endif
11330 -#ifdef __cplusplus
11331 -}
11332 #endif
11333
11334 int
11335 main ()
11336 {
11337 -return f != $ac_func;
11338 +return $ac_func ();
11339 ;
11340 return 0;
11341 }
11342 _ACEOF
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345 - (eval $ac_link) 2>conftest.er1
11346 +if { (ac_try="$ac_link"
11347 +case "(($ac_try" in
11348 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 + *) ac_try_echo=$ac_try;;
11350 +esac
11351 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 + (eval "$ac_link") 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 - (exit $ac_status); } &&
11359 - { ac_try='test -z "$ac_c_werror_flag"
11360 - || test ! -s conftest.err'
11361 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 - (eval $ac_try) 2>&5
11363 - ac_status=$?
11364 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 - (exit $ac_status); }; } &&
11366 - { ac_try='test -s conftest$ac_exeext'
11367 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 - (eval $ac_try) 2>&5
11369 - ac_status=$?
11370 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 - (exit $ac_status); }; }; then
11372 + (exit $ac_status); } && {
11373 + test -z "$ac_c_werror_flag" ||
11374 + test ! -s conftest.err
11375 + } && test -s conftest$ac_exeext &&
11376 + $as_test_x conftest$ac_exeext; then
11377 eval "$as_ac_var=yes"
11378 else
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 -eval "$as_ac_var=no"
11383 + eval "$as_ac_var=no"
11384 fi
11385 -rm -f conftest.err conftest.$ac_objext \
11386 +
11387 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11388 conftest$ac_exeext conftest.$ac_ext
11389 fi
11390 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11391 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11392 +ac_res=`eval echo '${'$as_ac_var'}'`
11393 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11394 +echo "${ECHO_T}$ac_res" >&6; }
11395 if test `eval echo '${'$as_ac_var'}'` = yes; then
11396 cat >>confdefs.h <<_ACEOF
11397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11398 @@ -10428,8 +10879,8 @@ fi
11399 done
11400
11401
11402 -echo "$as_me:$LINENO: checking whether basename is declared" >&5
11403 -echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11404 +{ echo "$as_me:$LINENO: checking whether basename is declared" >&5
11405 +echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6; }
11406 if test "${ac_cv_have_decl_basename+set}" = set; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 else
11409 @@ -10444,7 +10895,7 @@ int
11410 main ()
11411 {
11412 #ifndef basename
11413 - char *p = (char *) basename;
11414 + (void) basename;
11415 #endif
11416
11417 ;
11418 @@ -10452,38 +10903,34 @@ main ()
11419 }
11420 _ACEOF
11421 rm -f conftest.$ac_objext
11422 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11423 - (eval $ac_compile) 2>conftest.er1
11424 +if { (ac_try="$ac_compile"
11425 +case "(($ac_try" in
11426 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 + *) ac_try_echo=$ac_try;;
11428 +esac
11429 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 + (eval "$ac_compile") 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 - (exit $ac_status); } &&
11437 - { ac_try='test -z "$ac_c_werror_flag"
11438 - || test ! -s conftest.err'
11439 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 - (eval $ac_try) 2>&5
11441 - ac_status=$?
11442 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 - (exit $ac_status); }; } &&
11444 - { ac_try='test -s conftest.$ac_objext'
11445 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 - (eval $ac_try) 2>&5
11447 - ac_status=$?
11448 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 - (exit $ac_status); }; }; then
11450 + (exit $ac_status); } && {
11451 + test -z "$ac_c_werror_flag" ||
11452 + test ! -s conftest.err
11453 + } && test -s conftest.$ac_objext; then
11454 ac_cv_have_decl_basename=yes
11455 else
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11458
11459 -ac_cv_have_decl_basename=no
11460 + ac_cv_have_decl_basename=no
11461 fi
11462 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11463 +
11464 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 fi
11466 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11467 -echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11468 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11469 +echo "${ECHO_T}$ac_cv_have_decl_basename" >&6; }
11470 if test $ac_cv_have_decl_basename = yes; then
11471
11472 cat >>confdefs.h <<_ACEOF
11473 @@ -10500,8 +10947,8 @@ _ACEOF
11474 fi
11475
11476
11477 -echo "$as_me:$LINENO: checking whether ftello is declared" >&5
11478 -echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
11479 +{ echo "$as_me:$LINENO: checking whether ftello is declared" >&5
11480 +echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6; }
11481 if test "${ac_cv_have_decl_ftello+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484 @@ -10516,7 +10963,7 @@ int
11485 main ()
11486 {
11487 #ifndef ftello
11488 - char *p = (char *) ftello;
11489 + (void) ftello;
11490 #endif
11491
11492 ;
11493 @@ -10524,38 +10971,34 @@ main ()
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext
11497 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11498 - (eval $ac_compile) 2>conftest.er1
11499 +if { (ac_try="$ac_compile"
11500 +case "(($ac_try" in
11501 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 + *) ac_try_echo=$ac_try;;
11503 +esac
11504 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 + (eval "$ac_compile") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 - (exit $ac_status); } &&
11512 - { ac_try='test -z "$ac_c_werror_flag"
11513 - || test ! -s conftest.err'
11514 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 - (eval $ac_try) 2>&5
11516 - ac_status=$?
11517 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 - (exit $ac_status); }; } &&
11519 - { ac_try='test -s conftest.$ac_objext'
11520 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 - (eval $ac_try) 2>&5
11522 - ac_status=$?
11523 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 - (exit $ac_status); }; }; then
11525 + (exit $ac_status); } && {
11526 + test -z "$ac_c_werror_flag" ||
11527 + test ! -s conftest.err
11528 + } && test -s conftest.$ac_objext; then
11529 ac_cv_have_decl_ftello=yes
11530 else
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 -ac_cv_have_decl_ftello=no
11535 + ac_cv_have_decl_ftello=no
11536 fi
11537 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11538 +
11539 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 fi
11541 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
11542 -echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
11543 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
11544 +echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6; }
11545 if test $ac_cv_have_decl_ftello = yes; then
11546
11547 cat >>confdefs.h <<_ACEOF
11548 @@ -10572,8 +11015,8 @@ _ACEOF
11549 fi
11550
11551
11552 -echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
11553 -echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
11554 +{ echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
11555 +echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6; }
11556 if test "${ac_cv_have_decl_ftello64+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 @@ -10588,7 +11031,7 @@ int
11560 main ()
11561 {
11562 #ifndef ftello64
11563 - char *p = (char *) ftello64;
11564 + (void) ftello64;
11565 #endif
11566
11567 ;
11568 @@ -10596,38 +11039,34 @@ main ()
11569 }
11570 _ACEOF
11571 rm -f conftest.$ac_objext
11572 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11573 - (eval $ac_compile) 2>conftest.er1
11574 +if { (ac_try="$ac_compile"
11575 +case "(($ac_try" in
11576 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 + *) ac_try_echo=$ac_try;;
11578 +esac
11579 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 + (eval "$ac_compile") 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 - (exit $ac_status); } &&
11587 - { ac_try='test -z "$ac_c_werror_flag"
11588 - || test ! -s conftest.err'
11589 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 - (eval $ac_try) 2>&5
11591 - ac_status=$?
11592 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 - (exit $ac_status); }; } &&
11594 - { ac_try='test -s conftest.$ac_objext'
11595 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 - (eval $ac_try) 2>&5
11597 - ac_status=$?
11598 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 - (exit $ac_status); }; }; then
11600 + (exit $ac_status); } && {
11601 + test -z "$ac_c_werror_flag" ||
11602 + test ! -s conftest.err
11603 + } && test -s conftest.$ac_objext; then
11604 ac_cv_have_decl_ftello64=yes
11605 else
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609 -ac_cv_have_decl_ftello64=no
11610 + ac_cv_have_decl_ftello64=no
11611 fi
11612 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11613 +
11614 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615 fi
11616 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
11617 -echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
11618 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
11619 +echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6; }
11620 if test $ac_cv_have_decl_ftello64 = yes; then
11621
11622 cat >>confdefs.h <<_ACEOF
11623 @@ -10644,8 +11083,8 @@ _ACEOF
11624 fi
11625
11626
11627 -echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
11628 -echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
11629 +{ echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
11630 +echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6; }
11631 if test "${ac_cv_have_decl_fseeko+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634 @@ -10660,7 +11099,7 @@ int
11635 main ()
11636 {
11637 #ifndef fseeko
11638 - char *p = (char *) fseeko;
11639 + (void) fseeko;
11640 #endif
11641
11642 ;
11643 @@ -10668,38 +11107,34 @@ main ()
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext
11647 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 - (eval $ac_compile) 2>conftest.er1
11649 +if { (ac_try="$ac_compile"
11650 +case "(($ac_try" in
11651 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 + *) ac_try_echo=$ac_try;;
11653 +esac
11654 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 + (eval "$ac_compile") 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 - (exit $ac_status); } &&
11662 - { ac_try='test -z "$ac_c_werror_flag"
11663 - || test ! -s conftest.err'
11664 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 - (eval $ac_try) 2>&5
11666 - ac_status=$?
11667 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 - (exit $ac_status); }; } &&
11669 - { ac_try='test -s conftest.$ac_objext'
11670 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 - (eval $ac_try) 2>&5
11672 - ac_status=$?
11673 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 - (exit $ac_status); }; }; then
11675 + (exit $ac_status); } && {
11676 + test -z "$ac_c_werror_flag" ||
11677 + test ! -s conftest.err
11678 + } && test -s conftest.$ac_objext; then
11679 ac_cv_have_decl_fseeko=yes
11680 else
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684 -ac_cv_have_decl_fseeko=no
11685 + ac_cv_have_decl_fseeko=no
11686 fi
11687 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11688 +
11689 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690 fi
11691 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
11692 -echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
11693 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
11694 +echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6; }
11695 if test $ac_cv_have_decl_fseeko = yes; then
11696
11697 cat >>confdefs.h <<_ACEOF
11698 @@ -10716,8 +11151,8 @@ _ACEOF
11699 fi
11700
11701
11702 -echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
11703 -echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
11704 +{ echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
11705 +echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6; }
11706 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709 @@ -10732,7 +11167,7 @@ int
11710 main ()
11711 {
11712 #ifndef fseeko64
11713 - char *p = (char *) fseeko64;
11714 + (void) fseeko64;
11715 #endif
11716
11717 ;
11718 @@ -10740,38 +11175,34 @@ main ()
11719 }
11720 _ACEOF
11721 rm -f conftest.$ac_objext
11722 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 - (eval $ac_compile) 2>conftest.er1
11724 +if { (ac_try="$ac_compile"
11725 +case "(($ac_try" in
11726 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727 + *) ac_try_echo=$ac_try;;
11728 +esac
11729 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730 + (eval "$ac_compile") 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 - (exit $ac_status); } &&
11737 - { ac_try='test -z "$ac_c_werror_flag"
11738 - || test ! -s conftest.err'
11739 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 - (eval $ac_try) 2>&5
11741 - ac_status=$?
11742 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 - (exit $ac_status); }; } &&
11744 - { ac_try='test -s conftest.$ac_objext'
11745 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 - (eval $ac_try) 2>&5
11747 - ac_status=$?
11748 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 - (exit $ac_status); }; }; then
11750 + (exit $ac_status); } && {
11751 + test -z "$ac_c_werror_flag" ||
11752 + test ! -s conftest.err
11753 + } && test -s conftest.$ac_objext; then
11754 ac_cv_have_decl_fseeko64=yes
11755 else
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759 -ac_cv_have_decl_fseeko64=no
11760 + ac_cv_have_decl_fseeko64=no
11761 fi
11762 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11763 +
11764 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11765 fi
11766 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
11767 -echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
11768 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
11769 +echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6; }
11770 if test $ac_cv_have_decl_fseeko64 = yes; then
11771
11772 cat >>confdefs.h <<_ACEOF
11773 @@ -10799,8 +11230,8 @@ _ACEOF
11774 ;;
11775 esac
11776
11777 -echo "$as_me:$LINENO: checking whether ffs is declared" >&5
11778 -echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
11779 +{ echo "$as_me:$LINENO: checking whether ffs is declared" >&5
11780 +echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6; }
11781 if test "${ac_cv_have_decl_ffs+set}" = set; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 else
11784 @@ -10815,7 +11246,7 @@ int
11785 main ()
11786 {
11787 #ifndef ffs
11788 - char *p = (char *) ffs;
11789 + (void) ffs;
11790 #endif
11791
11792 ;
11793 @@ -10823,38 +11254,34 @@ main ()
11794 }
11795 _ACEOF
11796 rm -f conftest.$ac_objext
11797 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798 - (eval $ac_compile) 2>conftest.er1
11799 +if { (ac_try="$ac_compile"
11800 +case "(($ac_try" in
11801 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 + *) ac_try_echo=$ac_try;;
11803 +esac
11804 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 + (eval "$ac_compile") 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 - (exit $ac_status); } &&
11812 - { ac_try='test -z "$ac_c_werror_flag"
11813 - || test ! -s conftest.err'
11814 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 - (eval $ac_try) 2>&5
11816 - ac_status=$?
11817 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 - (exit $ac_status); }; } &&
11819 - { ac_try='test -s conftest.$ac_objext'
11820 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 - (eval $ac_try) 2>&5
11822 - ac_status=$?
11823 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 - (exit $ac_status); }; }; then
11825 + (exit $ac_status); } && {
11826 + test -z "$ac_c_werror_flag" ||
11827 + test ! -s conftest.err
11828 + } && test -s conftest.$ac_objext; then
11829 ac_cv_have_decl_ffs=yes
11830 else
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834 -ac_cv_have_decl_ffs=no
11835 + ac_cv_have_decl_ffs=no
11836 fi
11837 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11838 +
11839 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11840 fi
11841 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
11842 -echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
11843 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
11844 +echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6; }
11845 if test $ac_cv_have_decl_ffs = yes; then
11846
11847 cat >>confdefs.h <<_ACEOF
11848 @@ -10871,8 +11298,8 @@ _ACEOF
11849 fi
11850
11851
11852 -echo "$as_me:$LINENO: checking whether free is declared" >&5
11853 -echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
11854 +{ echo "$as_me:$LINENO: checking whether free is declared" >&5
11855 +echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
11856 if test "${ac_cv_have_decl_free+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859 @@ -10887,7 +11314,7 @@ int
11860 main ()
11861 {
11862 #ifndef free
11863 - char *p = (char *) free;
11864 + (void) free;
11865 #endif
11866
11867 ;
11868 @@ -10895,38 +11322,34 @@ main ()
11869 }
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873 - (eval $ac_compile) 2>conftest.er1
11874 +if { (ac_try="$ac_compile"
11875 +case "(($ac_try" in
11876 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 + *) ac_try_echo=$ac_try;;
11878 +esac
11879 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 + (eval "$ac_compile") 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 - (exit $ac_status); } &&
11887 - { ac_try='test -z "$ac_c_werror_flag"
11888 - || test ! -s conftest.err'
11889 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 - (eval $ac_try) 2>&5
11891 - ac_status=$?
11892 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 - (exit $ac_status); }; } &&
11894 - { ac_try='test -s conftest.$ac_objext'
11895 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 - (eval $ac_try) 2>&5
11897 - ac_status=$?
11898 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 - (exit $ac_status); }; }; then
11900 + (exit $ac_status); } && {
11901 + test -z "$ac_c_werror_flag" ||
11902 + test ! -s conftest.err
11903 + } && test -s conftest.$ac_objext; then
11904 ac_cv_have_decl_free=yes
11905 else
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909 -ac_cv_have_decl_free=no
11910 + ac_cv_have_decl_free=no
11911 fi
11912 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11913 +
11914 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11915 fi
11916 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
11917 -echo "${ECHO_T}$ac_cv_have_decl_free" >&6
11918 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
11919 +echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
11920 if test $ac_cv_have_decl_free = yes; then
11921
11922 cat >>confdefs.h <<_ACEOF
11923 @@ -10943,8 +11366,8 @@ _ACEOF
11924 fi
11925
11926
11927 -echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11928 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11929 +{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11930 +echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
11931 if test "${ac_cv_have_decl_getenv+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934 @@ -10959,7 +11382,7 @@ int
11935 main ()
11936 {
11937 #ifndef getenv
11938 - char *p = (char *) getenv;
11939 + (void) getenv;
11940 #endif
11941
11942 ;
11943 @@ -10967,38 +11390,34 @@ main ()
11944 }
11945 _ACEOF
11946 rm -f conftest.$ac_objext
11947 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11948 - (eval $ac_compile) 2>conftest.er1
11949 +if { (ac_try="$ac_compile"
11950 +case "(($ac_try" in
11951 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 + *) ac_try_echo=$ac_try;;
11953 +esac
11954 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 + (eval "$ac_compile") 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 - (exit $ac_status); } &&
11962 - { ac_try='test -z "$ac_c_werror_flag"
11963 - || test ! -s conftest.err'
11964 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 - (eval $ac_try) 2>&5
11966 - ac_status=$?
11967 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 - (exit $ac_status); }; } &&
11969 - { ac_try='test -s conftest.$ac_objext'
11970 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 - (eval $ac_try) 2>&5
11972 - ac_status=$?
11973 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 - (exit $ac_status); }; }; then
11975 + (exit $ac_status); } && {
11976 + test -z "$ac_c_werror_flag" ||
11977 + test ! -s conftest.err
11978 + } && test -s conftest.$ac_objext; then
11979 ac_cv_have_decl_getenv=yes
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 -ac_cv_have_decl_getenv=no
11985 + ac_cv_have_decl_getenv=no
11986 fi
11987 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11988 +
11989 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 fi
11991 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11992 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11993 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11994 +echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
11995 if test $ac_cv_have_decl_getenv = yes; then
11996
11997 cat >>confdefs.h <<_ACEOF
11998 @@ -11015,8 +11434,8 @@ _ACEOF
11999 fi
12000
12001
12002 -echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12003 -echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12004 +{ echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12005 +echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
12006 if test "${ac_cv_have_decl_malloc+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009 @@ -11031,7 +11450,7 @@ int
12010 main ()
12011 {
12012 #ifndef malloc
12013 - char *p = (char *) malloc;
12014 + (void) malloc;
12015 #endif
12016
12017 ;
12018 @@ -11039,38 +11458,34 @@ main ()
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext
12022 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12023 - (eval $ac_compile) 2>conftest.er1
12024 +if { (ac_try="$ac_compile"
12025 +case "(($ac_try" in
12026 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 + *) ac_try_echo=$ac_try;;
12028 +esac
12029 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 + (eval "$ac_compile") 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 - (exit $ac_status); } &&
12037 - { ac_try='test -z "$ac_c_werror_flag"
12038 - || test ! -s conftest.err'
12039 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 - (eval $ac_try) 2>&5
12041 - ac_status=$?
12042 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 - (exit $ac_status); }; } &&
12044 - { ac_try='test -s conftest.$ac_objext'
12045 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 - (eval $ac_try) 2>&5
12047 - ac_status=$?
12048 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 - (exit $ac_status); }; }; then
12050 + (exit $ac_status); } && {
12051 + test -z "$ac_c_werror_flag" ||
12052 + test ! -s conftest.err
12053 + } && test -s conftest.$ac_objext; then
12054 ac_cv_have_decl_malloc=yes
12055 else
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 -ac_cv_have_decl_malloc=no
12060 + ac_cv_have_decl_malloc=no
12061 fi
12062 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12063 +
12064 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 fi
12066 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12067 -echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12068 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12069 +echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
12070 if test $ac_cv_have_decl_malloc = yes; then
12071
12072 cat >>confdefs.h <<_ACEOF
12073 @@ -11087,8 +11502,8 @@ _ACEOF
12074 fi
12075
12076
12077 -echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12078 -echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
12079 +{ echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12080 +echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
12081 if test "${ac_cv_have_decl_realloc+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084 @@ -11103,7 +11518,7 @@ int
12085 main ()
12086 {
12087 #ifndef realloc
12088 - char *p = (char *) realloc;
12089 + (void) realloc;
12090 #endif
12091
12092 ;
12093 @@ -11111,38 +11526,34 @@ main ()
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext
12097 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12098 - (eval $ac_compile) 2>conftest.er1
12099 +if { (ac_try="$ac_compile"
12100 +case "(($ac_try" in
12101 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 + *) ac_try_echo=$ac_try;;
12103 +esac
12104 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 + (eval "$ac_compile") 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 - (exit $ac_status); } &&
12112 - { ac_try='test -z "$ac_c_werror_flag"
12113 - || test ! -s conftest.err'
12114 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 - (eval $ac_try) 2>&5
12116 - ac_status=$?
12117 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 - (exit $ac_status); }; } &&
12119 - { ac_try='test -s conftest.$ac_objext'
12120 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 - (eval $ac_try) 2>&5
12122 - ac_status=$?
12123 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 - (exit $ac_status); }; }; then
12125 + (exit $ac_status); } && {
12126 + test -z "$ac_c_werror_flag" ||
12127 + test ! -s conftest.err
12128 + } && test -s conftest.$ac_objext; then
12129 ac_cv_have_decl_realloc=yes
12130 else
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12133
12134 -ac_cv_have_decl_realloc=no
12135 + ac_cv_have_decl_realloc=no
12136 fi
12137 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12138 +
12139 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 fi
12141 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
12142 -echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
12143 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
12144 +echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
12145 if test $ac_cv_have_decl_realloc = yes; then
12146
12147 cat >>confdefs.h <<_ACEOF
12148 @@ -11159,8 +11570,8 @@ _ACEOF
12149 fi
12150
12151
12152 -echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12153 -echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12154 +{ echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12155 +echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
12156 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159 @@ -11175,7 +11586,7 @@ int
12160 main ()
12161 {
12162 #ifndef stpcpy
12163 - char *p = (char *) stpcpy;
12164 + (void) stpcpy;
12165 #endif
12166
12167 ;
12168 @@ -11183,38 +11594,34 @@ main ()
12169 }
12170 _ACEOF
12171 rm -f conftest.$ac_objext
12172 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 - (eval $ac_compile) 2>conftest.er1
12174 +if { (ac_try="$ac_compile"
12175 +case "(($ac_try" in
12176 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 + *) ac_try_echo=$ac_try;;
12178 +esac
12179 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 + (eval "$ac_compile") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 - (exit $ac_status); } &&
12187 - { ac_try='test -z "$ac_c_werror_flag"
12188 - || test ! -s conftest.err'
12189 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 - (eval $ac_try) 2>&5
12191 - ac_status=$?
12192 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 - (exit $ac_status); }; } &&
12194 - { ac_try='test -s conftest.$ac_objext'
12195 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 - (eval $ac_try) 2>&5
12197 - ac_status=$?
12198 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 - (exit $ac_status); }; }; then
12200 + (exit $ac_status); } && {
12201 + test -z "$ac_c_werror_flag" ||
12202 + test ! -s conftest.err
12203 + } && test -s conftest.$ac_objext; then
12204 ac_cv_have_decl_stpcpy=yes
12205 else
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12208
12209 -ac_cv_have_decl_stpcpy=no
12210 + ac_cv_have_decl_stpcpy=no
12211 fi
12212 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213 +
12214 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 fi
12216 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12217 -echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12218 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12219 +echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
12220 if test $ac_cv_have_decl_stpcpy = yes; then
12221
12222 cat >>confdefs.h <<_ACEOF
12223 @@ -11231,8 +11638,8 @@ _ACEOF
12224 fi
12225
12226
12227 -echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12228 -echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12229 +{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12230 +echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
12231 if test "${ac_cv_have_decl_strstr+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234 @@ -11247,7 +11654,7 @@ int
12235 main ()
12236 {
12237 #ifndef strstr
12238 - char *p = (char *) strstr;
12239 + (void) strstr;
12240 #endif
12241
12242 ;
12243 @@ -11255,38 +11662,34 @@ main ()
12244 }
12245 _ACEOF
12246 rm -f conftest.$ac_objext
12247 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12248 - (eval $ac_compile) 2>conftest.er1
12249 +if { (ac_try="$ac_compile"
12250 +case "(($ac_try" in
12251 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 + *) ac_try_echo=$ac_try;;
12253 +esac
12254 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 + (eval "$ac_compile") 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 - (exit $ac_status); } &&
12262 - { ac_try='test -z "$ac_c_werror_flag"
12263 - || test ! -s conftest.err'
12264 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 - (eval $ac_try) 2>&5
12266 - ac_status=$?
12267 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 - (exit $ac_status); }; } &&
12269 - { ac_try='test -s conftest.$ac_objext'
12270 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 - (eval $ac_try) 2>&5
12272 - ac_status=$?
12273 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 - (exit $ac_status); }; }; then
12275 + (exit $ac_status); } && {
12276 + test -z "$ac_c_werror_flag" ||
12277 + test ! -s conftest.err
12278 + } && test -s conftest.$ac_objext; then
12279 ac_cv_have_decl_strstr=yes
12280 else
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284 -ac_cv_have_decl_strstr=no
12285 + ac_cv_have_decl_strstr=no
12286 fi
12287 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12288 +
12289 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290 fi
12291 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12292 -echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12293 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12294 +echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
12295 if test $ac_cv_have_decl_strstr = yes; then
12296
12297 cat >>confdefs.h <<_ACEOF
12298 @@ -11303,8 +11706,8 @@ _ACEOF
12299 fi
12300
12301
12302 -echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
12303 -echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
12304 +{ echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
12305 +echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
12306 if test "${ac_cv_have_decl_snprintf+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309 @@ -11319,7 +11722,7 @@ int
12310 main ()
12311 {
12312 #ifndef snprintf
12313 - char *p = (char *) snprintf;
12314 + (void) snprintf;
12315 #endif
12316
12317 ;
12318 @@ -11327,38 +11730,34 @@ main ()
12319 }
12320 _ACEOF
12321 rm -f conftest.$ac_objext
12322 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12323 - (eval $ac_compile) 2>conftest.er1
12324 +if { (ac_try="$ac_compile"
12325 +case "(($ac_try" in
12326 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 + *) ac_try_echo=$ac_try;;
12328 +esac
12329 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 + (eval "$ac_compile") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 - (exit $ac_status); } &&
12337 - { ac_try='test -z "$ac_c_werror_flag"
12338 - || test ! -s conftest.err'
12339 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 - (eval $ac_try) 2>&5
12341 - ac_status=$?
12342 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 - (exit $ac_status); }; } &&
12344 - { ac_try='test -s conftest.$ac_objext'
12345 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 - (eval $ac_try) 2>&5
12347 - ac_status=$?
12348 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 - (exit $ac_status); }; }; then
12350 + (exit $ac_status); } && {
12351 + test -z "$ac_c_werror_flag" ||
12352 + test ! -s conftest.err
12353 + } && test -s conftest.$ac_objext; then
12354 ac_cv_have_decl_snprintf=yes
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 -ac_cv_have_decl_snprintf=no
12360 + ac_cv_have_decl_snprintf=no
12361 fi
12362 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12363 +
12364 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 fi
12366 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
12367 -echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
12368 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
12369 +echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
12370 if test $ac_cv_have_decl_snprintf = yes; then
12371
12372 cat >>confdefs.h <<_ACEOF
12373 @@ -11375,8 +11774,8 @@ _ACEOF
12374 fi
12375
12376
12377 -echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12378 -echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
12379 +{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12380 +echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
12381 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384 @@ -11391,7 +11790,7 @@ int
12385 main ()
12386 {
12387 #ifndef vsnprintf
12388 - char *p = (char *) vsnprintf;
12389 + (void) vsnprintf;
12390 #endif
12391
12392 ;
12393 @@ -11399,38 +11798,34 @@ main ()
12394 }
12395 _ACEOF
12396 rm -f conftest.$ac_objext
12397 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398 - (eval $ac_compile) 2>conftest.er1
12399 +if { (ac_try="$ac_compile"
12400 +case "(($ac_try" in
12401 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 + *) ac_try_echo=$ac_try;;
12403 +esac
12404 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 + (eval "$ac_compile") 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 - (exit $ac_status); } &&
12412 - { ac_try='test -z "$ac_c_werror_flag"
12413 - || test ! -s conftest.err'
12414 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 - (eval $ac_try) 2>&5
12416 - ac_status=$?
12417 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 - (exit $ac_status); }; } &&
12419 - { ac_try='test -s conftest.$ac_objext'
12420 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 - (eval $ac_try) 2>&5
12422 - ac_status=$?
12423 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 - (exit $ac_status); }; }; then
12425 + (exit $ac_status); } && {
12426 + test -z "$ac_c_werror_flag" ||
12427 + test ! -s conftest.err
12428 + } && test -s conftest.$ac_objext; then
12429 ac_cv_have_decl_vsnprintf=yes
12430 else
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 -ac_cv_have_decl_vsnprintf=no
12435 + ac_cv_have_decl_vsnprintf=no
12436 fi
12437 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12438 +
12439 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12440 fi
12441 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12442 -echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
12443 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12444 +echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
12445 if test $ac_cv_have_decl_vsnprintf = yes; then
12446
12447 cat >>confdefs.h <<_ACEOF
12448 @@ -11609,8 +12004,8 @@ if test "${target}" = "${host}"; then
12449 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
12450 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
12451 # have c_impl as a member of struct core_dumpx
12452 - echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
12453 -echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
12454 + { echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
12455 +echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6; }
12456 cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h. */
12458 _ACEOF
12459 @@ -11627,42 +12022,38 @@ struct core_dumpx c; c.c_impl = 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext
12463 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464 - (eval $ac_compile) 2>conftest.er1
12465 +if { (ac_try="$ac_compile"
12466 +case "(($ac_try" in
12467 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 + *) ac_try_echo=$ac_try;;
12469 +esac
12470 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 + (eval "$ac_compile") 2>conftest.er1
12472 ac_status=$?
12473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 - (exit $ac_status); } &&
12478 - { ac_try='test -z "$ac_c_werror_flag"
12479 - || test ! -s conftest.err'
12480 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 - (eval $ac_try) 2>&5
12482 - ac_status=$?
12483 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 - (exit $ac_status); }; } &&
12485 - { ac_try='test -s conftest.$ac_objext'
12486 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 - (eval $ac_try) 2>&5
12488 - ac_status=$?
12489 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 - (exit $ac_status); }; }; then
12491 + (exit $ac_status); } && {
12492 + test -z "$ac_c_werror_flag" ||
12493 + test ! -s conftest.err
12494 + } && test -s conftest.$ac_objext; then
12495
12496 cat >>confdefs.h <<\_ACEOF
12497 #define HAVE_ST_C_IMPL 1
12498 _ACEOF
12499
12500 - echo "$as_me:$LINENO: result: yes" >&5
12501 -echo "${ECHO_T}yes" >&6
12502 + { echo "$as_me:$LINENO: result: yes" >&5
12503 +echo "${ECHO_T}yes" >&6; }
12504 else
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508 -echo "$as_me:$LINENO: result: no" >&5
12509 -echo "${ECHO_T}no" >&6
12510 + { echo "$as_me:$LINENO: result: no" >&5
12511 +echo "${ECHO_T}no" >&6; }
12512 fi
12513 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12514 +
12515 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516 ;;
12517 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
12518 rs6000-*-*) COREFILE=rs6000-core.lo ;;
12519 @@ -11726,18 +12117,19 @@ rm -f conftest.err conftest.$ac_objext c
12520 for ac_header in sys/procfs.h
12521 do
12522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12523 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
12524 - echo "$as_me:$LINENO: checking for $ac_header" >&5
12525 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12526 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
12527 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12530 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 fi
12533 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12534 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12535 +ac_res=`eval echo '${'$as_ac_Header'}'`
12536 + { echo "$as_me:$LINENO: result: $ac_res" >&5
12537 +echo "${ECHO_T}$ac_res" >&6; }
12538 else
12539 # Is the header compilable?
12540 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
12541 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12542 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12543 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12544 cat >conftest.$ac_ext <<_ACEOF
12545 /* confdefs.h. */
12546 _ACEOF
12547 @@ -11748,41 +12140,37 @@ $ac_includes_default
12548 #include <$ac_header>
12549 _ACEOF
12550 rm -f conftest.$ac_objext
12551 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12552 - (eval $ac_compile) 2>conftest.er1
12553 +if { (ac_try="$ac_compile"
12554 +case "(($ac_try" in
12555 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 + *) ac_try_echo=$ac_try;;
12557 +esac
12558 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 + (eval "$ac_compile") 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 - (exit $ac_status); } &&
12566 - { ac_try='test -z "$ac_c_werror_flag"
12567 - || test ! -s conftest.err'
12568 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 - (eval $ac_try) 2>&5
12570 - ac_status=$?
12571 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 - (exit $ac_status); }; } &&
12573 - { ac_try='test -s conftest.$ac_objext'
12574 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 - (eval $ac_try) 2>&5
12576 - ac_status=$?
12577 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 - (exit $ac_status); }; }; then
12579 + (exit $ac_status); } && {
12580 + test -z "$ac_c_werror_flag" ||
12581 + test ! -s conftest.err
12582 + } && test -s conftest.$ac_objext; then
12583 ac_header_compiler=yes
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12587
12588 -ac_header_compiler=no
12589 + ac_header_compiler=no
12590 fi
12591 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12592 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12593 -echo "${ECHO_T}$ac_header_compiler" >&6
12594 +
12595 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12597 +echo "${ECHO_T}$ac_header_compiler" >&6; }
12598
12599 # Is the header present?
12600 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
12601 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12602 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12603 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12604 cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h. */
12606 _ACEOF
12607 @@ -11791,24 +12179,22 @@ cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 #include <$ac_header>
12610 _ACEOF
12611 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12612 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12613 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12614 +case "(($ac_try" in
12615 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 + *) ac_try_echo=$ac_try;;
12617 +esac
12618 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 - (exit $ac_status); } >/dev/null; then
12626 - if test -s conftest.err; then
12627 - ac_cpp_err=$ac_c_preproc_warn_flag
12628 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12629 - else
12630 - ac_cpp_err=
12631 - fi
12632 -else
12633 - ac_cpp_err=yes
12634 -fi
12635 -if test -z "$ac_cpp_err"; then
12636 + (exit $ac_status); } >/dev/null && {
12637 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12638 + test ! -s conftest.err
12639 + }; then
12640 ac_header_preproc=yes
12641 else
12642 echo "$as_me: failed program was:" >&5
12643 @@ -11816,9 +12202,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
12644
12645 ac_header_preproc=no
12646 fi
12647 +
12648 rm -f conftest.err conftest.$ac_ext
12649 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12650 -echo "${ECHO_T}$ac_header_preproc" >&6
12651 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12652 +echo "${ECHO_T}$ac_header_preproc" >&6; }
12653
12654 # So? What about this header?
12655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12656 @@ -11842,25 +12229,19 @@ echo "$as_me: WARNING: $ac_header: s
12657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12660 - (
12661 - cat <<\_ASBOX
12662 -## ------------------------------------------ ##
12663 -## Report this to the AC_PACKAGE_NAME lists. ##
12664 -## ------------------------------------------ ##
12665 -_ASBOX
12666 - ) |
12667 - sed "s/^/$as_me: WARNING: /" >&2
12668 +
12669 ;;
12670 esac
12671 -echo "$as_me:$LINENO: checking for $ac_header" >&5
12672 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12673 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
12674 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12675 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12676 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
12678 else
12679 eval "$as_ac_Header=\$ac_header_preproc"
12680 fi
12681 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12682 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12683 +ac_res=`eval echo '${'$as_ac_Header'}'`
12684 + { echo "$as_me:$LINENO: result: $ac_res" >&5
12685 +echo "${ECHO_T}$ac_res" >&6; }
12686
12687 fi
12688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12689 @@ -11873,8 +12254,8 @@ fi
12690 done
12691
12692 if test "$ac_cv_header_sys_procfs_h" = yes; then
12693 - echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
12694 -echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
12695 + { echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
12696 +echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6; }
12697 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 @@ -11896,36 +12277,32 @@ prstatus_t avar
12701 }
12702 _ACEOF
12703 rm -f conftest.$ac_objext
12704 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705 - (eval $ac_compile) 2>conftest.er1
12706 +if { (ac_try="$ac_compile"
12707 +case "(($ac_try" in
12708 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 + *) ac_try_echo=$ac_try;;
12710 +esac
12711 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 + (eval "$ac_compile") 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 - (exit $ac_status); } &&
12719 - { ac_try='test -z "$ac_c_werror_flag"
12720 - || test ! -s conftest.err'
12721 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 - (eval $ac_try) 2>&5
12723 - ac_status=$?
12724 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 - (exit $ac_status); }; } &&
12726 - { ac_try='test -s conftest.$ac_objext'
12727 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 - (eval $ac_try) 2>&5
12729 - ac_status=$?
12730 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 - (exit $ac_status); }; }; then
12732 + (exit $ac_status); } && {
12733 + test -z "$ac_c_werror_flag" ||
12734 + test ! -s conftest.err
12735 + } && test -s conftest.$ac_objext; then
12736 bfd_cv_have_sys_procfs_type_prstatus_t=yes
12737 else
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12740
12741 -bfd_cv_have_sys_procfs_type_prstatus_t=no
12742 + bfd_cv_have_sys_procfs_type_prstatus_t=no
12743
12744 fi
12745 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12746 +
12747 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748 fi
12749
12750 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
12751 @@ -11935,11 +12312,11 @@ cat >>confdefs.h <<\_ACEOF
12752 _ACEOF
12753
12754 fi
12755 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
12756 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
12757 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
12758 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
12759
12760 - echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
12761 -echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
12762 + { echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
12763 +echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6; }
12764 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767 @@ -11961,36 +12338,32 @@ prstatus32_t avar
12768 }
12769 _ACEOF
12770 rm -f conftest.$ac_objext
12771 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12772 - (eval $ac_compile) 2>conftest.er1
12773 +if { (ac_try="$ac_compile"
12774 +case "(($ac_try" in
12775 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 + *) ac_try_echo=$ac_try;;
12777 +esac
12778 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 + (eval "$ac_compile") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 - (exit $ac_status); } &&
12786 - { ac_try='test -z "$ac_c_werror_flag"
12787 - || test ! -s conftest.err'
12788 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 - (eval $ac_try) 2>&5
12790 - ac_status=$?
12791 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 - (exit $ac_status); }; } &&
12793 - { ac_try='test -s conftest.$ac_objext'
12794 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 - (eval $ac_try) 2>&5
12796 - ac_status=$?
12797 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 - (exit $ac_status); }; }; then
12799 + (exit $ac_status); } && {
12800 + test -z "$ac_c_werror_flag" ||
12801 + test ! -s conftest.err
12802 + } && test -s conftest.$ac_objext; then
12803 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
12804 else
12805 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808 -bfd_cv_have_sys_procfs_type_prstatus32_t=no
12809 + bfd_cv_have_sys_procfs_type_prstatus32_t=no
12810
12811 fi
12812 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12813 +
12814 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12815 fi
12816
12817 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
12818 @@ -12000,11 +12373,11 @@ cat >>confdefs.h <<\_ACEOF
12819 _ACEOF
12820
12821 fi
12822 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12823 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
12824 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12825 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
12826
12827 - echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12828 -echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12829 + { echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12830 +echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6; }
12831 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 @@ -12026,36 +12399,32 @@ prstatus_t avar; void* aref = (void*) &a
12835 }
12836 _ACEOF
12837 rm -f conftest.$ac_objext
12838 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12839 - (eval $ac_compile) 2>conftest.er1
12840 +if { (ac_try="$ac_compile"
12841 +case "(($ac_try" in
12842 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 + *) ac_try_echo=$ac_try;;
12844 +esac
12845 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 + (eval "$ac_compile") 2>conftest.er1
12847 ac_status=$?
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 - (exit $ac_status); } &&
12853 - { ac_try='test -z "$ac_c_werror_flag"
12854 - || test ! -s conftest.err'
12855 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 - (eval $ac_try) 2>&5
12857 - ac_status=$?
12858 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 - (exit $ac_status); }; } &&
12860 - { ac_try='test -s conftest.$ac_objext'
12861 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 - (eval $ac_try) 2>&5
12863 - ac_status=$?
12864 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 - (exit $ac_status); }; }; then
12866 + (exit $ac_status); } && {
12867 + test -z "$ac_c_werror_flag" ||
12868 + test ! -s conftest.err
12869 + } && test -s conftest.$ac_objext; then
12870 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12871 else
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875 -bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12876 + bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12877
12878 fi
12879 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12880 +
12881 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 fi
12883
12884 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
12885 @@ -12065,11 +12434,11 @@ cat >>confdefs.h <<\_ACEOF
12886 _ACEOF
12887
12888 fi
12889 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12890 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
12891 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12892 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
12893
12894 - echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12895 -echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12896 + { echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12897 +echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6; }
12898 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901 @@ -12091,36 +12460,32 @@ prstatus32_t avar; void* aref = (void*)
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext
12905 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 - (eval $ac_compile) 2>conftest.er1
12907 +if { (ac_try="$ac_compile"
12908 +case "(($ac_try" in
12909 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 + *) ac_try_echo=$ac_try;;
12911 +esac
12912 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 + (eval "$ac_compile") 2>conftest.er1
12914 ac_status=$?
12915 grep -v '^ *+' conftest.er1 >conftest.err
12916 rm -f conftest.er1
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 - (exit $ac_status); } &&
12920 - { ac_try='test -z "$ac_c_werror_flag"
12921 - || test ! -s conftest.err'
12922 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 - (eval $ac_try) 2>&5
12924 - ac_status=$?
12925 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 - (exit $ac_status); }; } &&
12927 - { ac_try='test -s conftest.$ac_objext'
12928 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 - (eval $ac_try) 2>&5
12930 - ac_status=$?
12931 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 - (exit $ac_status); }; }; then
12933 + (exit $ac_status); } && {
12934 + test -z "$ac_c_werror_flag" ||
12935 + test ! -s conftest.err
12936 + } && test -s conftest.$ac_objext; then
12937 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12938 else
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12941
12942 -bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12943 + bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12944
12945 fi
12946 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12947 +
12948 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949 fi
12950
12951 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12952 @@ -12130,11 +12495,11 @@ cat >>confdefs.h <<\_ACEOF
12953 _ACEOF
12954
12955 fi
12956 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12957 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12958 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12959 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
12960
12961 - echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12962 -echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12963 + { echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12964 +echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
12965 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 else
12968 @@ -12156,36 +12521,32 @@ pstatus_t avar
12969 }
12970 _ACEOF
12971 rm -f conftest.$ac_objext
12972 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12973 - (eval $ac_compile) 2>conftest.er1
12974 +if { (ac_try="$ac_compile"
12975 +case "(($ac_try" in
12976 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 + *) ac_try_echo=$ac_try;;
12978 +esac
12979 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 + (eval "$ac_compile") 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 - (exit $ac_status); } &&
12987 - { ac_try='test -z "$ac_c_werror_flag"
12988 - || test ! -s conftest.err'
12989 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 - (eval $ac_try) 2>&5
12991 - ac_status=$?
12992 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 - (exit $ac_status); }; } &&
12994 - { ac_try='test -s conftest.$ac_objext'
12995 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 - (eval $ac_try) 2>&5
12997 - ac_status=$?
12998 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 - (exit $ac_status); }; }; then
13000 + (exit $ac_status); } && {
13001 + test -z "$ac_c_werror_flag" ||
13002 + test ! -s conftest.err
13003 + } && test -s conftest.$ac_objext; then
13004 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13005 else
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13008
13009 -bfd_cv_have_sys_procfs_type_pstatus_t=no
13010 + bfd_cv_have_sys_procfs_type_pstatus_t=no
13011
13012 fi
13013 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13014 +
13015 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13016 fi
13017
13018 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13019 @@ -12195,11 +12556,11 @@ cat >>confdefs.h <<\_ACEOF
13020 _ACEOF
13021
13022 fi
13023 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13024 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
13025 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13026 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13027
13028 - echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
13029 -echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
13030 + { echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
13031 +echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13032 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 @@ -12221,36 +12582,32 @@ pxstatus_t avar
13036 }
13037 _ACEOF
13038 rm -f conftest.$ac_objext
13039 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13040 - (eval $ac_compile) 2>conftest.er1
13041 +if { (ac_try="$ac_compile"
13042 +case "(($ac_try" in
13043 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 + *) ac_try_echo=$ac_try;;
13045 +esac
13046 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 + (eval "$ac_compile") 2>conftest.er1
13048 ac_status=$?
13049 grep -v '^ *+' conftest.er1 >conftest.err
13050 rm -f conftest.er1
13051 cat conftest.err >&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 - (exit $ac_status); } &&
13054 - { ac_try='test -z "$ac_c_werror_flag"
13055 - || test ! -s conftest.err'
13056 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 - (eval $ac_try) 2>&5
13058 - ac_status=$?
13059 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 - (exit $ac_status); }; } &&
13061 - { ac_try='test -s conftest.$ac_objext'
13062 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 - (eval $ac_try) 2>&5
13064 - ac_status=$?
13065 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 - (exit $ac_status); }; }; then
13067 + (exit $ac_status); } && {
13068 + test -z "$ac_c_werror_flag" ||
13069 + test ! -s conftest.err
13070 + } && test -s conftest.$ac_objext; then
13071 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
13072 else
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 -bfd_cv_have_sys_procfs_type_pxstatus_t=no
13077 + bfd_cv_have_sys_procfs_type_pxstatus_t=no
13078
13079 fi
13080 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13081 +
13082 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 fi
13084
13085 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
13086 @@ -12260,11 +12617,11 @@ cat >>confdefs.h <<\_ACEOF
13087 _ACEOF
13088
13089 fi
13090 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
13091 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
13092 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
13093 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
13094
13095 - echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
13096 -echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
13097 + { echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
13098 +echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6; }
13099 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102 @@ -12286,36 +12643,32 @@ pstatus32_t avar
13103 }
13104 _ACEOF
13105 rm -f conftest.$ac_objext
13106 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13107 - (eval $ac_compile) 2>conftest.er1
13108 +if { (ac_try="$ac_compile"
13109 +case "(($ac_try" in
13110 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111 + *) ac_try_echo=$ac_try;;
13112 +esac
13113 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 + (eval "$ac_compile") 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 - (exit $ac_status); } &&
13121 - { ac_try='test -z "$ac_c_werror_flag"
13122 - || test ! -s conftest.err'
13123 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 - (eval $ac_try) 2>&5
13125 - ac_status=$?
13126 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 - (exit $ac_status); }; } &&
13128 - { ac_try='test -s conftest.$ac_objext'
13129 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 - (eval $ac_try) 2>&5
13131 - ac_status=$?
13132 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 - (exit $ac_status); }; }; then
13134 + (exit $ac_status); } && {
13135 + test -z "$ac_c_werror_flag" ||
13136 + test ! -s conftest.err
13137 + } && test -s conftest.$ac_objext; then
13138 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
13139 else
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13142
13143 -bfd_cv_have_sys_procfs_type_pstatus32_t=no
13144 + bfd_cv_have_sys_procfs_type_pstatus32_t=no
13145
13146 fi
13147 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13148 +
13149 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150 fi
13151
13152 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
13153 @@ -12325,11 +12678,11 @@ cat >>confdefs.h <<\_ACEOF
13154 _ACEOF
13155
13156 fi
13157 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
13158 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
13159 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
13160 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
13161
13162 - echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
13163 -echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
13164 + { echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
13165 +echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6; }
13166 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169 @@ -12351,36 +12704,32 @@ prpsinfo_t avar
13170 }
13171 _ACEOF
13172 rm -f conftest.$ac_objext
13173 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174 - (eval $ac_compile) 2>conftest.er1
13175 +if { (ac_try="$ac_compile"
13176 +case "(($ac_try" in
13177 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 + *) ac_try_echo=$ac_try;;
13179 +esac
13180 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 + (eval "$ac_compile") 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 - (exit $ac_status); } &&
13188 - { ac_try='test -z "$ac_c_werror_flag"
13189 - || test ! -s conftest.err'
13190 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 - (eval $ac_try) 2>&5
13192 - ac_status=$?
13193 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 - (exit $ac_status); }; } &&
13195 - { ac_try='test -s conftest.$ac_objext'
13196 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 - (eval $ac_try) 2>&5
13198 - ac_status=$?
13199 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 - (exit $ac_status); }; }; then
13201 + (exit $ac_status); } && {
13202 + test -z "$ac_c_werror_flag" ||
13203 + test ! -s conftest.err
13204 + } && test -s conftest.$ac_objext; then
13205 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
13206 else
13207 echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13209
13210 -bfd_cv_have_sys_procfs_type_prpsinfo_t=no
13211 + bfd_cv_have_sys_procfs_type_prpsinfo_t=no
13212
13213 fi
13214 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13215 +
13216 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13217 fi
13218
13219 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
13220 @@ -12390,11 +12739,11 @@ cat >>confdefs.h <<\_ACEOF
13221 _ACEOF
13222
13223 fi
13224 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
13225 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
13226 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
13227 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
13228
13229 - echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
13230 -echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
13231 + { echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
13232 +echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6; }
13233 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 @@ -12416,36 +12765,32 @@ prpsinfo32_t avar
13237 }
13238 _ACEOF
13239 rm -f conftest.$ac_objext
13240 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13241 - (eval $ac_compile) 2>conftest.er1
13242 +if { (ac_try="$ac_compile"
13243 +case "(($ac_try" in
13244 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 + *) ac_try_echo=$ac_try;;
13246 +esac
13247 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 + (eval "$ac_compile") 2>conftest.er1
13249 ac_status=$?
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 - (exit $ac_status); } &&
13255 - { ac_try='test -z "$ac_c_werror_flag"
13256 - || test ! -s conftest.err'
13257 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 - (eval $ac_try) 2>&5
13259 - ac_status=$?
13260 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 - (exit $ac_status); }; } &&
13262 - { ac_try='test -s conftest.$ac_objext'
13263 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 - (eval $ac_try) 2>&5
13265 - ac_status=$?
13266 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 - (exit $ac_status); }; }; then
13268 + (exit $ac_status); } && {
13269 + test -z "$ac_c_werror_flag" ||
13270 + test ! -s conftest.err
13271 + } && test -s conftest.$ac_objext; then
13272 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
13273 else
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277 -bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
13278 + bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
13279
13280 fi
13281 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13282 +
13283 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 fi
13285
13286 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
13287 @@ -12455,11 +12800,11 @@ cat >>confdefs.h <<\_ACEOF
13288 _ACEOF
13289
13290 fi
13291 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
13292 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
13293 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
13294 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
13295
13296 - echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
13297 -echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
13298 + { echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
13299 +echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6; }
13300 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 else
13303 @@ -12481,36 +12826,32 @@ psinfo_t avar
13304 }
13305 _ACEOF
13306 rm -f conftest.$ac_objext
13307 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 - (eval $ac_compile) 2>conftest.er1
13309 +if { (ac_try="$ac_compile"
13310 +case "(($ac_try" in
13311 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 + *) ac_try_echo=$ac_try;;
13313 +esac
13314 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 + (eval "$ac_compile") 2>conftest.er1
13316 ac_status=$?
13317 grep -v '^ *+' conftest.er1 >conftest.err
13318 rm -f conftest.er1
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 - (exit $ac_status); } &&
13322 - { ac_try='test -z "$ac_c_werror_flag"
13323 - || test ! -s conftest.err'
13324 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 - (eval $ac_try) 2>&5
13326 - ac_status=$?
13327 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 - (exit $ac_status); }; } &&
13329 - { ac_try='test -s conftest.$ac_objext'
13330 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 - (eval $ac_try) 2>&5
13332 - ac_status=$?
13333 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 - (exit $ac_status); }; }; then
13335 + (exit $ac_status); } && {
13336 + test -z "$ac_c_werror_flag" ||
13337 + test ! -s conftest.err
13338 + } && test -s conftest.$ac_objext; then
13339 bfd_cv_have_sys_procfs_type_psinfo_t=yes
13340 else
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13343
13344 -bfd_cv_have_sys_procfs_type_psinfo_t=no
13345 + bfd_cv_have_sys_procfs_type_psinfo_t=no
13346
13347 fi
13348 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13349 +
13350 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 fi
13352
13353 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
13354 @@ -12520,11 +12861,11 @@ cat >>confdefs.h <<\_ACEOF
13355 _ACEOF
13356
13357 fi
13358 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
13359 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
13360 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
13361 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
13362
13363 - echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
13364 -echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
13365 + { echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
13366 +echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6; }
13367 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370 @@ -12546,36 +12887,32 @@ psinfo32_t avar
13371 }
13372 _ACEOF
13373 rm -f conftest.$ac_objext
13374 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375 - (eval $ac_compile) 2>conftest.er1
13376 +if { (ac_try="$ac_compile"
13377 +case "(($ac_try" in
13378 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 + *) ac_try_echo=$ac_try;;
13380 +esac
13381 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 + (eval "$ac_compile") 2>conftest.er1
13383 ac_status=$?
13384 grep -v '^ *+' conftest.er1 >conftest.err
13385 rm -f conftest.er1
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 - (exit $ac_status); } &&
13389 - { ac_try='test -z "$ac_c_werror_flag"
13390 - || test ! -s conftest.err'
13391 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 - (eval $ac_try) 2>&5
13393 - ac_status=$?
13394 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 - (exit $ac_status); }; } &&
13396 - { ac_try='test -s conftest.$ac_objext'
13397 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 - (eval $ac_try) 2>&5
13399 - ac_status=$?
13400 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 - (exit $ac_status); }; }; then
13402 + (exit $ac_status); } && {
13403 + test -z "$ac_c_werror_flag" ||
13404 + test ! -s conftest.err
13405 + } && test -s conftest.$ac_objext; then
13406 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
13407 else
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13410
13411 -bfd_cv_have_sys_procfs_type_psinfo32_t=no
13412 + bfd_cv_have_sys_procfs_type_psinfo32_t=no
13413
13414 fi
13415 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13416 +
13417 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13418 fi
13419
13420 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
13421 @@ -12585,11 +12922,11 @@ cat >>confdefs.h <<\_ACEOF
13422 _ACEOF
13423
13424 fi
13425 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
13426 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
13427 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
13428 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
13429
13430 - echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
13431 -echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
13432 + { echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
13433 +echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13434 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 else
13437 @@ -12611,36 +12948,32 @@ lwpstatus_t avar
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext
13441 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442 - (eval $ac_compile) 2>conftest.er1
13443 +if { (ac_try="$ac_compile"
13444 +case "(($ac_try" in
13445 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 + *) ac_try_echo=$ac_try;;
13447 +esac
13448 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 + (eval "$ac_compile") 2>conftest.er1
13450 ac_status=$?
13451 grep -v '^ *+' conftest.er1 >conftest.err
13452 rm -f conftest.er1
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 - (exit $ac_status); } &&
13456 - { ac_try='test -z "$ac_c_werror_flag"
13457 - || test ! -s conftest.err'
13458 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 - (eval $ac_try) 2>&5
13460 - ac_status=$?
13461 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 - (exit $ac_status); }; } &&
13463 - { ac_try='test -s conftest.$ac_objext'
13464 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 - (eval $ac_try) 2>&5
13466 - ac_status=$?
13467 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 - (exit $ac_status); }; }; then
13469 + (exit $ac_status); } && {
13470 + test -z "$ac_c_werror_flag" ||
13471 + test ! -s conftest.err
13472 + } && test -s conftest.$ac_objext; then
13473 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
13474 else
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478 -bfd_cv_have_sys_procfs_type_lwpstatus_t=no
13479 + bfd_cv_have_sys_procfs_type_lwpstatus_t=no
13480
13481 fi
13482 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13483 +
13484 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 fi
13486
13487 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
13488 @@ -12650,11 +12983,11 @@ cat >>confdefs.h <<\_ACEOF
13489 _ACEOF
13490
13491 fi
13492 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
13493 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
13494 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
13495 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
13496
13497 - echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
13498 -echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
13499 + { echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
13500 +echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13501 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 else
13504 @@ -12676,36 +13009,32 @@ lwpxstatus_t avar
13505 }
13506 _ACEOF
13507 rm -f conftest.$ac_objext
13508 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13509 - (eval $ac_compile) 2>conftest.er1
13510 +if { (ac_try="$ac_compile"
13511 +case "(($ac_try" in
13512 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 + *) ac_try_echo=$ac_try;;
13514 +esac
13515 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 + (eval "$ac_compile") 2>conftest.er1
13517 ac_status=$?
13518 grep -v '^ *+' conftest.er1 >conftest.err
13519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 - (exit $ac_status); } &&
13523 - { ac_try='test -z "$ac_c_werror_flag"
13524 - || test ! -s conftest.err'
13525 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 - (eval $ac_try) 2>&5
13527 - ac_status=$?
13528 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 - (exit $ac_status); }; } &&
13530 - { ac_try='test -s conftest.$ac_objext'
13531 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 - (eval $ac_try) 2>&5
13533 - ac_status=$?
13534 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 - (exit $ac_status); }; }; then
13536 + (exit $ac_status); } && {
13537 + test -z "$ac_c_werror_flag" ||
13538 + test ! -s conftest.err
13539 + } && test -s conftest.$ac_objext; then
13540 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
13541 else
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545 -bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
13546 + bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
13547
13548 fi
13549 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13550 +
13551 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552 fi
13553
13554 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
13555 @@ -12715,11 +13044,11 @@ cat >>confdefs.h <<\_ACEOF
13556 _ACEOF
13557
13558 fi
13559 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
13560 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
13561 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
13562 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
13563
13564 - echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
13565 -echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
13566 + { echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
13567 +echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6; }
13568 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571 @@ -12741,36 +13070,32 @@ lwpstatus_t avar; void* aref = (void*) &
13572 }
13573 _ACEOF
13574 rm -f conftest.$ac_objext
13575 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576 - (eval $ac_compile) 2>conftest.er1
13577 +if { (ac_try="$ac_compile"
13578 +case "(($ac_try" in
13579 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 + *) ac_try_echo=$ac_try;;
13581 +esac
13582 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 + (eval "$ac_compile") 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 - (exit $ac_status); } &&
13590 - { ac_try='test -z "$ac_c_werror_flag"
13591 - || test ! -s conftest.err'
13592 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 - (eval $ac_try) 2>&5
13594 - ac_status=$?
13595 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 - (exit $ac_status); }; } &&
13597 - { ac_try='test -s conftest.$ac_objext'
13598 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 - (eval $ac_try) 2>&5
13600 - ac_status=$?
13601 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 - (exit $ac_status); }; }; then
13603 + (exit $ac_status); } && {
13604 + test -z "$ac_c_werror_flag" ||
13605 + test ! -s conftest.err
13606 + } && test -s conftest.$ac_objext; then
13607 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
13608 else
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13611
13612 -bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
13613 + bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
13614
13615 fi
13616 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13617 +
13618 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13619 fi
13620
13621 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
13622 @@ -12780,11 +13105,11 @@ cat >>confdefs.h <<\_ACEOF
13623 _ACEOF
13624
13625 fi
13626 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
13627 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
13628 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
13629 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
13630
13631 - echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
13632 -echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
13633 + { echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
13634 +echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6; }
13635 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638 @@ -12806,36 +13131,32 @@ lwpstatus_t avar; void* aref = (void*) &
13639 }
13640 _ACEOF
13641 rm -f conftest.$ac_objext
13642 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 - (eval $ac_compile) 2>conftest.er1
13644 +if { (ac_try="$ac_compile"
13645 +case "(($ac_try" in
13646 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 + *) ac_try_echo=$ac_try;;
13648 +esac
13649 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 + (eval "$ac_compile") 2>conftest.er1
13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 - (exit $ac_status); } &&
13657 - { ac_try='test -z "$ac_c_werror_flag"
13658 - || test ! -s conftest.err'
13659 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 - (eval $ac_try) 2>&5
13661 - ac_status=$?
13662 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 - (exit $ac_status); }; } &&
13664 - { ac_try='test -s conftest.$ac_objext'
13665 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 - (eval $ac_try) 2>&5
13667 - ac_status=$?
13668 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 - (exit $ac_status); }; }; then
13670 + (exit $ac_status); } && {
13671 + test -z "$ac_c_werror_flag" ||
13672 + test ! -s conftest.err
13673 + } && test -s conftest.$ac_objext; then
13674 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
13675 else
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13678
13679 -bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
13680 + bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
13681
13682 fi
13683 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684 +
13685 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 fi
13687
13688 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
13689 @@ -12845,11 +13166,11 @@ cat >>confdefs.h <<\_ACEOF
13690 _ACEOF
13691
13692 fi
13693 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
13694 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
13695 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
13696 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
13697
13698 - echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
13699 -echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
13700 + { echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
13701 +echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13702 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 else
13705 @@ -12871,36 +13192,32 @@ win32_pstatus_t avar
13706 }
13707 _ACEOF
13708 rm -f conftest.$ac_objext
13709 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710 - (eval $ac_compile) 2>conftest.er1
13711 +if { (ac_try="$ac_compile"
13712 +case "(($ac_try" in
13713 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 + *) ac_try_echo=$ac_try;;
13715 +esac
13716 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 + (eval "$ac_compile") 2>conftest.er1
13718 ac_status=$?
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 - (exit $ac_status); } &&
13724 - { ac_try='test -z "$ac_c_werror_flag"
13725 - || test ! -s conftest.err'
13726 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 - (eval $ac_try) 2>&5
13728 - ac_status=$?
13729 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 - (exit $ac_status); }; } &&
13731 - { ac_try='test -s conftest.$ac_objext'
13732 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 - (eval $ac_try) 2>&5
13734 - ac_status=$?
13735 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 - (exit $ac_status); }; }; then
13737 + (exit $ac_status); } && {
13738 + test -z "$ac_c_werror_flag" ||
13739 + test ! -s conftest.err
13740 + } && test -s conftest.$ac_objext; then
13741 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
13742 else
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13745
13746 -bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
13747 + bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
13748
13749 fi
13750 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13751 +
13752 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753 fi
13754
13755 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
13756 @@ -12910,8 +13227,8 @@ cat >>confdefs.h <<\_ACEOF
13757 _ACEOF
13758
13759 fi
13760 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
13761 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
13762 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
13763 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
13764
13765 fi
13766 fi
13767 @@ -13070,6 +13387,7 @@ do
13768 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
13769 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13770 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13771 + bfd_elf32_avr32_vec) tb="$tb elf32-avr32.lo elf32.lo $elf" ;;
13772 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13773 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13774 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13775 @@ -13389,8 +13707,8 @@ echo "$as_me: WARNING: your compiler may
13776 fi
13777 if test -n "$GCC" ; then
13778 bad_64bit_gcc=no;
13779 - echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13780 -echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13781 + { echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13782 +echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6; }
13783 # Add more tests for gcc versions with non-working 64-bit support here.
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h. */
13786 @@ -13403,11 +13721,11 @@ _ACEOF
13787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13788 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13789 bad_64bit_gcc=yes;
13790 - echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13791 -echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13792 + { echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13793 +echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6; }
13794 else
13795 - echo "$as_me:$LINENO: result: no" >&5
13796 -echo "${ECHO_T}no" >&6
13797 + { echo "$as_me:$LINENO: result: no" >&5
13798 +echo "${ECHO_T}no" >&6; }
13799 fi
13800 rm -f conftest*
13801
13802 @@ -13445,9 +13763,9 @@ esac
13803 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13804 do
13805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13806 -echo "$as_me:$LINENO: checking for $ac_func" >&5
13807 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13808 -if eval "test \"\${$as_ac_var+set}\" = set"; then
13809 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13810 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13811 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814 cat >conftest.$ac_ext <<_ACEOF
13815 @@ -13473,68 +13791,60 @@ cat >>conftest.$ac_ext <<_ACEOF
13816
13817 #undef $ac_func
13818
13819 -/* Override any gcc2 internal prototype to avoid an error. */
13820 +/* Override any GCC internal prototype to avoid an error.
13821 + Use char because int might match the return type of a GCC
13822 + builtin and then its argument prototype would still apply. */
13823 #ifdef __cplusplus
13824 extern "C"
13825 -{
13826 #endif
13827 -/* We use char because int might match the return type of a gcc2
13828 - builtin and then its argument prototype would still apply. */
13829 char $ac_func ();
13830 /* The GNU C library defines this for functions which it implements
13831 to always fail with ENOSYS. Some functions are actually named
13832 something starting with __ and the normal name is an alias. */
13833 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13834 +#if defined __stub_$ac_func || defined __stub___$ac_func
13835 choke me
13836 -#else
13837 -char (*f) () = $ac_func;
13838 -#endif
13839 -#ifdef __cplusplus
13840 -}
13841 #endif
13842
13843 int
13844 main ()
13845 {
13846 -return f != $ac_func;
13847 +return $ac_func ();
13848 ;
13849 return 0;
13850 }
13851 _ACEOF
13852 rm -f conftest.$ac_objext conftest$ac_exeext
13853 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854 - (eval $ac_link) 2>conftest.er1
13855 +if { (ac_try="$ac_link"
13856 +case "(($ac_try" in
13857 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 + *) ac_try_echo=$ac_try;;
13859 +esac
13860 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 + (eval "$ac_link") 2>conftest.er1
13862 ac_status=$?
13863 grep -v '^ *+' conftest.er1 >conftest.err
13864 rm -f conftest.er1
13865 cat conftest.err >&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 - (exit $ac_status); } &&
13868 - { ac_try='test -z "$ac_c_werror_flag"
13869 - || test ! -s conftest.err'
13870 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 - (eval $ac_try) 2>&5
13872 - ac_status=$?
13873 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 - (exit $ac_status); }; } &&
13875 - { ac_try='test -s conftest$ac_exeext'
13876 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 - (eval $ac_try) 2>&5
13878 - ac_status=$?
13879 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 - (exit $ac_status); }; }; then
13881 + (exit $ac_status); } && {
13882 + test -z "$ac_c_werror_flag" ||
13883 + test ! -s conftest.err
13884 + } && test -s conftest$ac_exeext &&
13885 + $as_test_x conftest$ac_exeext; then
13886 eval "$as_ac_var=yes"
13887 else
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13890
13891 -eval "$as_ac_var=no"
13892 + eval "$as_ac_var=no"
13893 fi
13894 -rm -f conftest.err conftest.$ac_objext \
13895 +
13896 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13897 conftest$ac_exeext conftest.$ac_ext
13898 fi
13899 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13900 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13901 +ac_res=`eval echo '${'$as_ac_var'}'`
13902 + { echo "$as_me:$LINENO: result: $ac_res" >&5
13903 +echo "${ECHO_T}$ac_res" >&6; }
13904 if test `eval echo '${'$as_ac_var'}'` = yes; then
13905 cat >>confdefs.h <<_ACEOF
13906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13907 @@ -13544,8 +13854,8 @@ fi
13908 done
13909
13910 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13911 - echo "$as_me:$LINENO: checking for off_t" >&5
13912 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13913 + { echo "$as_me:$LINENO: checking for off_t" >&5
13914 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13915 if test "${ac_cv_type_off_t+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 else
13918 @@ -13556,61 +13866,57 @@ cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13921 $ac_includes_default
13922 +typedef off_t ac__type_new_;
13923 int
13924 main ()
13925 {
13926 -if ((off_t *) 0)
13927 +if ((ac__type_new_ *) 0)
13928 return 0;
13929 -if (sizeof (off_t))
13930 +if (sizeof (ac__type_new_))
13931 return 0;
13932 ;
13933 return 0;
13934 }
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938 - (eval $ac_compile) 2>conftest.er1
13939 +if { (ac_try="$ac_compile"
13940 +case "(($ac_try" in
13941 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 + *) ac_try_echo=$ac_try;;
13943 +esac
13944 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 + (eval "$ac_compile") 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 - (exit $ac_status); } &&
13952 - { ac_try='test -z "$ac_c_werror_flag"
13953 - || test ! -s conftest.err'
13954 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 - (eval $ac_try) 2>&5
13956 - ac_status=$?
13957 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 - (exit $ac_status); }; } &&
13959 - { ac_try='test -s conftest.$ac_objext'
13960 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 - (eval $ac_try) 2>&5
13962 - ac_status=$?
13963 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 - (exit $ac_status); }; }; then
13965 + (exit $ac_status); } && {
13966 + test -z "$ac_c_werror_flag" ||
13967 + test ! -s conftest.err
13968 + } && test -s conftest.$ac_objext; then
13969 ac_cv_type_off_t=yes
13970 else
13971 echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13973
13974 -ac_cv_type_off_t=no
13975 + ac_cv_type_off_t=no
13976 fi
13977 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13978 +
13979 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 fi
13981 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13982 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
13983 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13984 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13985
13986 -echo "$as_me:$LINENO: checking size of off_t" >&5
13987 -echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13988 +# The cast to long int works around a bug in the HP C Compiler
13989 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13990 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13991 +# This bug is HP SR number 8606223364.
13992 +{ echo "$as_me:$LINENO: checking size of off_t" >&5
13993 +echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13994 if test "${ac_cv_sizeof_off_t+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997 - if test "$ac_cv_type_off_t" = yes; then
13998 - # The cast to unsigned long works around a bug in the HP C Compiler
13999 - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14000 - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14001 - # This bug is HP SR number 8606223364.
14002 if test "$cross_compiling" = yes; then
14003 # Depending upon the size, compute the lo and hi bounds.
14004 cat >conftest.$ac_ext <<_ACEOF
14005 @@ -13620,10 +13926,11 @@ cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 $ac_includes_default
14009 + typedef off_t ac__type_sizeof_;
14010 int
14011 main ()
14012 {
14013 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
14014 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14015 test_array [0] = 0
14016
14017 ;
14018 @@ -13631,27 +13938,22 @@ test_array [0] = 0
14019 }
14020 _ACEOF
14021 rm -f conftest.$ac_objext
14022 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023 - (eval $ac_compile) 2>conftest.er1
14024 +if { (ac_try="$ac_compile"
14025 +case "(($ac_try" in
14026 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 + *) ac_try_echo=$ac_try;;
14028 +esac
14029 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 + (eval "$ac_compile") 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 - (exit $ac_status); } &&
14037 - { ac_try='test -z "$ac_c_werror_flag"
14038 - || test ! -s conftest.err'
14039 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 - (eval $ac_try) 2>&5
14041 - ac_status=$?
14042 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 - (exit $ac_status); }; } &&
14044 - { ac_try='test -s conftest.$ac_objext'
14045 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 - (eval $ac_try) 2>&5
14047 - ac_status=$?
14048 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 - (exit $ac_status); }; }; then
14050 + (exit $ac_status); } && {
14051 + test -z "$ac_c_werror_flag" ||
14052 + test ! -s conftest.err
14053 + } && test -s conftest.$ac_objext; then
14054 ac_lo=0 ac_mid=0
14055 while :; do
14056 cat >conftest.$ac_ext <<_ACEOF
14057 @@ -13661,10 +13963,11 @@ cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14060 $ac_includes_default
14061 + typedef off_t ac__type_sizeof_;
14062 int
14063 main ()
14064 {
14065 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
14066 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14067 test_array [0] = 0
14068
14069 ;
14070 @@ -13672,56 +13975,53 @@ test_array [0] = 0
14071 }
14072 _ACEOF
14073 rm -f conftest.$ac_objext
14074 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075 - (eval $ac_compile) 2>conftest.er1
14076 +if { (ac_try="$ac_compile"
14077 +case "(($ac_try" in
14078 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 + *) ac_try_echo=$ac_try;;
14080 +esac
14081 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 + (eval "$ac_compile") 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 - (exit $ac_status); } &&
14089 - { ac_try='test -z "$ac_c_werror_flag"
14090 - || test ! -s conftest.err'
14091 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 - (eval $ac_try) 2>&5
14093 - ac_status=$?
14094 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 - (exit $ac_status); }; } &&
14096 - { ac_try='test -s conftest.$ac_objext'
14097 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 - (eval $ac_try) 2>&5
14099 - ac_status=$?
14100 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 - (exit $ac_status); }; }; then
14102 + (exit $ac_status); } && {
14103 + test -z "$ac_c_werror_flag" ||
14104 + test ! -s conftest.err
14105 + } && test -s conftest.$ac_objext; then
14106 ac_hi=$ac_mid; break
14107 else
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14110
14111 -ac_lo=`expr $ac_mid + 1`
14112 - if test $ac_lo -le $ac_mid; then
14113 - ac_lo= ac_hi=
14114 - break
14115 - fi
14116 - ac_mid=`expr 2 '*' $ac_mid + 1`
14117 + ac_lo=`expr $ac_mid + 1`
14118 + if test $ac_lo -le $ac_mid; then
14119 + ac_lo= ac_hi=
14120 + break
14121 + fi
14122 + ac_mid=`expr 2 '*' $ac_mid + 1`
14123 fi
14124 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14125 +
14126 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14127 done
14128 else
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132 -cat >conftest.$ac_ext <<_ACEOF
14133 + cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h. */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 $ac_includes_default
14140 + typedef off_t ac__type_sizeof_;
14141 int
14142 main ()
14143 {
14144 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
14145 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14146 test_array [0] = 0
14147
14148 ;
14149 @@ -13729,27 +14029,22 @@ test_array [0] = 0
14150 }
14151 _ACEOF
14152 rm -f conftest.$ac_objext
14153 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154 - (eval $ac_compile) 2>conftest.er1
14155 +if { (ac_try="$ac_compile"
14156 +case "(($ac_try" in
14157 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 + *) ac_try_echo=$ac_try;;
14159 +esac
14160 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 + (eval "$ac_compile") 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 - (exit $ac_status); } &&
14168 - { ac_try='test -z "$ac_c_werror_flag"
14169 - || test ! -s conftest.err'
14170 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 - (eval $ac_try) 2>&5
14172 - ac_status=$?
14173 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 - (exit $ac_status); }; } &&
14175 - { ac_try='test -s conftest.$ac_objext'
14176 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 - (eval $ac_try) 2>&5
14178 - ac_status=$?
14179 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 - (exit $ac_status); }; }; then
14181 + (exit $ac_status); } && {
14182 + test -z "$ac_c_werror_flag" ||
14183 + test ! -s conftest.err
14184 + } && test -s conftest.$ac_objext; then
14185 ac_hi=-1 ac_mid=-1
14186 while :; do
14187 cat >conftest.$ac_ext <<_ACEOF
14188 @@ -13759,10 +14054,11 @@ cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14191 $ac_includes_default
14192 + typedef off_t ac__type_sizeof_;
14193 int
14194 main ()
14195 {
14196 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
14197 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14198 test_array [0] = 0
14199
14200 ;
14201 @@ -13770,50 +14066,48 @@ test_array [0] = 0
14202 }
14203 _ACEOF
14204 rm -f conftest.$ac_objext
14205 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14206 - (eval $ac_compile) 2>conftest.er1
14207 +if { (ac_try="$ac_compile"
14208 +case "(($ac_try" in
14209 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 + *) ac_try_echo=$ac_try;;
14211 +esac
14212 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 + (eval "$ac_compile") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 - (exit $ac_status); } &&
14220 - { ac_try='test -z "$ac_c_werror_flag"
14221 - || test ! -s conftest.err'
14222 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 - (eval $ac_try) 2>&5
14224 - ac_status=$?
14225 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 - (exit $ac_status); }; } &&
14227 - { ac_try='test -s conftest.$ac_objext'
14228 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 - (eval $ac_try) 2>&5
14230 - ac_status=$?
14231 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 - (exit $ac_status); }; }; then
14233 + (exit $ac_status); } && {
14234 + test -z "$ac_c_werror_flag" ||
14235 + test ! -s conftest.err
14236 + } && test -s conftest.$ac_objext; then
14237 ac_lo=$ac_mid; break
14238 else
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14241
14242 -ac_hi=`expr '(' $ac_mid ')' - 1`
14243 - if test $ac_mid -le $ac_hi; then
14244 - ac_lo= ac_hi=
14245 - break
14246 - fi
14247 - ac_mid=`expr 2 '*' $ac_mid`
14248 + ac_hi=`expr '(' $ac_mid ')' - 1`
14249 + if test $ac_mid -le $ac_hi; then
14250 + ac_lo= ac_hi=
14251 + break
14252 + fi
14253 + ac_mid=`expr 2 '*' $ac_mid`
14254 fi
14255 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14256 +
14257 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258 done
14259 else
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 -ac_lo= ac_hi=
14264 + ac_lo= ac_hi=
14265 fi
14266 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14267 +
14268 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 fi
14270 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14271 +
14272 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 # Binary search between lo and hi bounds.
14274 while test "x$ac_lo" != "x$ac_hi"; do
14275 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14276 @@ -13824,10 +14118,11 @@ cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14279 $ac_includes_default
14280 + typedef off_t ac__type_sizeof_;
14281 int
14282 main ()
14283 {
14284 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
14285 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14286 test_array [0] = 0
14287
14288 ;
14289 @@ -13835,52 +14130,45 @@ test_array [0] = 0
14290 }
14291 _ACEOF
14292 rm -f conftest.$ac_objext
14293 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294 - (eval $ac_compile) 2>conftest.er1
14295 +if { (ac_try="$ac_compile"
14296 +case "(($ac_try" in
14297 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298 + *) ac_try_echo=$ac_try;;
14299 +esac
14300 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301 + (eval "$ac_compile") 2>conftest.er1
14302 ac_status=$?
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 - (exit $ac_status); } &&
14308 - { ac_try='test -z "$ac_c_werror_flag"
14309 - || test ! -s conftest.err'
14310 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 - (eval $ac_try) 2>&5
14312 - ac_status=$?
14313 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 - (exit $ac_status); }; } &&
14315 - { ac_try='test -s conftest.$ac_objext'
14316 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 - (eval $ac_try) 2>&5
14318 - ac_status=$?
14319 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 - (exit $ac_status); }; }; then
14321 + (exit $ac_status); } && {
14322 + test -z "$ac_c_werror_flag" ||
14323 + test ! -s conftest.err
14324 + } && test -s conftest.$ac_objext; then
14325 ac_hi=$ac_mid
14326 else
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 -ac_lo=`expr '(' $ac_mid ')' + 1`
14331 + ac_lo=`expr '(' $ac_mid ')' + 1`
14332 fi
14333 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14334 +
14335 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 done
14337 case $ac_lo in
14338 ?*) ac_cv_sizeof_off_t=$ac_lo;;
14339 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
14340 +'') if test "$ac_cv_type_off_t" = yes; then
14341 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
14342 See \`config.log' for more details." >&5
14343 -echo "$as_me: error: cannot compute sizeof (off_t), 77
14344 +echo "$as_me: error: cannot compute sizeof (off_t)
14345 See \`config.log' for more details." >&2;}
14346 - { (exit 1); exit 1; }; } ;;
14347 + { (exit 77); exit 77; }; }
14348 + else
14349 + ac_cv_sizeof_off_t=0
14350 + fi ;;
14351 esac
14352 else
14353 - if test "$cross_compiling" = yes; then
14354 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14355 -See \`config.log' for more details." >&5
14356 -echo "$as_me: error: cannot run test program while cross compiling
14357 -See \`config.log' for more details." >&2;}
14358 - { (exit 1); exit 1; }; }
14359 -else
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h. */
14362 _ACEOF
14363 @@ -13888,8 +14176,9 @@ cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 $ac_includes_default
14367 -long longval () { return (long) (sizeof (off_t)); }
14368 -unsigned long ulongval () { return (long) (sizeof (off_t)); }
14369 + typedef off_t ac__type_sizeof_;
14370 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14371 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14372 #include <stdio.h>
14373 #include <stdlib.h>
14374 int
14375 @@ -13898,35 +14187,44 @@ main ()
14376
14377 FILE *f = fopen ("conftest.val", "w");
14378 if (! f)
14379 - exit (1);
14380 - if (((long) (sizeof (off_t))) < 0)
14381 + return 1;
14382 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14383 {
14384 - long i = longval ();
14385 - if (i != ((long) (sizeof (off_t))))
14386 - exit (1);
14387 + long int i = longval ();
14388 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
14389 + return 1;
14390 fprintf (f, "%ld\n", i);
14391 }
14392 else
14393 {
14394 - unsigned long i = ulongval ();
14395 - if (i != ((long) (sizeof (off_t))))
14396 - exit (1);
14397 + unsigned long int i = ulongval ();
14398 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
14399 + return 1;
14400 fprintf (f, "%lu\n", i);
14401 }
14402 - exit (ferror (f) || fclose (f) != 0);
14403 + return ferror (f) || fclose (f) != 0;
14404
14405 ;
14406 return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest$ac_exeext
14410 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14411 - (eval $ac_link) 2>&5
14412 +if { (ac_try="$ac_link"
14413 +case "(($ac_try" in
14414 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 + *) ac_try_echo=$ac_try;;
14416 +esac
14417 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 + (eval "$ac_link") 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14422 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 - (eval $ac_try) 2>&5
14424 + { (case "(($ac_try" in
14425 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 + *) ac_try_echo=$ac_try;;
14427 +esac
14428 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 + (eval "$ac_try") 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 @@ -13937,30 +14235,33 @@ echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 ( exit $ac_status )
14437 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
14438 +if test "$ac_cv_type_off_t" = yes; then
14439 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
14440 See \`config.log' for more details." >&5
14441 -echo "$as_me: error: cannot compute sizeof (off_t), 77
14442 +echo "$as_me: error: cannot compute sizeof (off_t)
14443 See \`config.log' for more details." >&2;}
14444 - { (exit 1); exit 1; }; }
14445 -fi
14446 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14447 + { (exit 77); exit 77; }; }
14448 + else
14449 + ac_cv_sizeof_off_t=0
14450 + fi
14451 fi
14452 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14453 fi
14454 rm -f conftest.val
14455 -else
14456 - ac_cv_sizeof_off_t=0
14457 -fi
14458 fi
14459 -echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
14460 -echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
14461 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
14462 +echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
14463 +
14464 +
14465 +
14466 cat >>confdefs.h <<_ACEOF
14467 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14468 _ACEOF
14469
14470
14471 fi
14472 -echo "$as_me:$LINENO: checking file_ptr type" >&5
14473 -echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
14474 +{ echo "$as_me:$LINENO: checking file_ptr type" >&5
14475 +echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6; }
14476 bfd_file_ptr="long"
14477 bfd_ufile_ptr="unsigned long"
14478 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
14479 @@ -13968,8 +14269,8 @@ if test x"$ac_cv_func_ftello64" = xyes -
14480 bfd_file_ptr=BFD_HOST_64_BIT
14481 bfd_ufile_ptr=BFD_HOST_U_64_BIT
14482 fi
14483 -echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
14484 -echo "${ECHO_T}$bfd_file_ptr" >&6
14485 +{ echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
14486 +echo "${ECHO_T}$bfd_file_ptr" >&6; }
14487
14488
14489
14490 @@ -13987,18 +14288,19 @@ test -n "${havevecs}" && tdefaults="${td
14491 for ac_header in stdlib.h unistd.h
14492 do
14493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14494 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14495 - echo "$as_me:$LINENO: checking for $ac_header" >&5
14496 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14497 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14498 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14499 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
14500 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14501 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 fi
14504 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14505 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14506 +ac_res=`eval echo '${'$as_ac_Header'}'`
14507 + { echo "$as_me:$LINENO: result: $ac_res" >&5
14508 +echo "${ECHO_T}$ac_res" >&6; }
14509 else
14510 # Is the header compilable?
14511 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
14512 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14513 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14514 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 @@ -14009,41 +14311,37 @@ $ac_includes_default
14519 #include <$ac_header>
14520 _ACEOF
14521 rm -f conftest.$ac_objext
14522 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14523 - (eval $ac_compile) 2>conftest.er1
14524 +if { (ac_try="$ac_compile"
14525 +case "(($ac_try" in
14526 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 + *) ac_try_echo=$ac_try;;
14528 +esac
14529 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 + (eval "$ac_compile") 2>conftest.er1
14531 ac_status=$?
14532 grep -v '^ *+' conftest.er1 >conftest.err
14533 rm -f conftest.er1
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 - (exit $ac_status); } &&
14537 - { ac_try='test -z "$ac_c_werror_flag"
14538 - || test ! -s conftest.err'
14539 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 - (eval $ac_try) 2>&5
14541 - ac_status=$?
14542 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 - (exit $ac_status); }; } &&
14544 - { ac_try='test -s conftest.$ac_objext'
14545 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 - (eval $ac_try) 2>&5
14547 - ac_status=$?
14548 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 - (exit $ac_status); }; }; then
14550 + (exit $ac_status); } && {
14551 + test -z "$ac_c_werror_flag" ||
14552 + test ! -s conftest.err
14553 + } && test -s conftest.$ac_objext; then
14554 ac_header_compiler=yes
14555 else
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 -ac_header_compiler=no
14560 + ac_header_compiler=no
14561 fi
14562 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14563 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14564 -echo "${ECHO_T}$ac_header_compiler" >&6
14565 +
14566 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14567 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14568 +echo "${ECHO_T}$ac_header_compiler" >&6; }
14569
14570 # Is the header present?
14571 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
14572 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14573 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14574 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14575 cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h. */
14577 _ACEOF
14578 @@ -14052,24 +14350,22 @@ cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14580 #include <$ac_header>
14581 _ACEOF
14582 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14583 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14584 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14585 +case "(($ac_try" in
14586 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 + *) ac_try_echo=$ac_try;;
14588 +esac
14589 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 - (exit $ac_status); } >/dev/null; then
14597 - if test -s conftest.err; then
14598 - ac_cpp_err=$ac_c_preproc_warn_flag
14599 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14600 - else
14601 - ac_cpp_err=
14602 - fi
14603 -else
14604 - ac_cpp_err=yes
14605 -fi
14606 -if test -z "$ac_cpp_err"; then
14607 + (exit $ac_status); } >/dev/null && {
14608 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14609 + test ! -s conftest.err
14610 + }; then
14611 ac_header_preproc=yes
14612 else
14613 echo "$as_me: failed program was:" >&5
14614 @@ -14077,9 +14373,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
14615
14616 ac_header_preproc=no
14617 fi
14618 +
14619 rm -f conftest.err conftest.$ac_ext
14620 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14621 -echo "${ECHO_T}$ac_header_preproc" >&6
14622 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14623 +echo "${ECHO_T}$ac_header_preproc" >&6; }
14624
14625 # So? What about this header?
14626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14627 @@ -14103,25 +14400,19 @@ echo "$as_me: WARNING: $ac_header: s
14628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14631 - (
14632 - cat <<\_ASBOX
14633 -## ------------------------------------------ ##
14634 -## Report this to the AC_PACKAGE_NAME lists. ##
14635 -## ------------------------------------------ ##
14636 -_ASBOX
14637 - ) |
14638 - sed "s/^/$as_me: WARNING: /" >&2
14639 +
14640 ;;
14641 esac
14642 -echo "$as_me:$LINENO: checking for $ac_header" >&5
14643 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14644 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14645 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14646 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14647 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650 eval "$as_ac_Header=\$ac_header_preproc"
14651 fi
14652 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14653 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14654 +ac_res=`eval echo '${'$as_ac_Header'}'`
14655 + { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 +echo "${ECHO_T}$ac_res" >&6; }
14657
14658 fi
14659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14660 @@ -14137,9 +14428,9 @@ done
14661 for ac_func in getpagesize
14662 do
14663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14664 -echo "$as_me:$LINENO: checking for $ac_func" >&5
14665 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14666 -if eval "test \"\${$as_ac_var+set}\" = set"; then
14667 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14668 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14669 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672 cat >conftest.$ac_ext <<_ACEOF
14673 @@ -14165,68 +14456,60 @@ cat >>conftest.$ac_ext <<_ACEOF
14674
14675 #undef $ac_func
14676
14677 -/* Override any gcc2 internal prototype to avoid an error. */
14678 +/* Override any GCC internal prototype to avoid an error.
14679 + Use char because int might match the return type of a GCC
14680 + builtin and then its argument prototype would still apply. */
14681 #ifdef __cplusplus
14682 extern "C"
14683 -{
14684 #endif
14685 -/* We use char because int might match the return type of a gcc2
14686 - builtin and then its argument prototype would still apply. */
14687 char $ac_func ();
14688 /* The GNU C library defines this for functions which it implements
14689 to always fail with ENOSYS. Some functions are actually named
14690 something starting with __ and the normal name is an alias. */
14691 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14692 +#if defined __stub_$ac_func || defined __stub___$ac_func
14693 choke me
14694 -#else
14695 -char (*f) () = $ac_func;
14696 -#endif
14697 -#ifdef __cplusplus
14698 -}
14699 #endif
14700
14701 int
14702 main ()
14703 {
14704 -return f != $ac_func;
14705 +return $ac_func ();
14706 ;
14707 return 0;
14708 }
14709 _ACEOF
14710 rm -f conftest.$ac_objext conftest$ac_exeext
14711 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14712 - (eval $ac_link) 2>conftest.er1
14713 +if { (ac_try="$ac_link"
14714 +case "(($ac_try" in
14715 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 + *) ac_try_echo=$ac_try;;
14717 +esac
14718 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 + (eval "$ac_link") 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 - (exit $ac_status); } &&
14726 - { ac_try='test -z "$ac_c_werror_flag"
14727 - || test ! -s conftest.err'
14728 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 - (eval $ac_try) 2>&5
14730 - ac_status=$?
14731 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 - (exit $ac_status); }; } &&
14733 - { ac_try='test -s conftest$ac_exeext'
14734 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 - (eval $ac_try) 2>&5
14736 - ac_status=$?
14737 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 - (exit $ac_status); }; }; then
14739 + (exit $ac_status); } && {
14740 + test -z "$ac_c_werror_flag" ||
14741 + test ! -s conftest.err
14742 + } && test -s conftest$ac_exeext &&
14743 + $as_test_x conftest$ac_exeext; then
14744 eval "$as_ac_var=yes"
14745 else
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749 -eval "$as_ac_var=no"
14750 + eval "$as_ac_var=no"
14751 fi
14752 -rm -f conftest.err conftest.$ac_objext \
14753 +
14754 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14755 conftest$ac_exeext conftest.$ac_ext
14756 fi
14757 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14758 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14759 +ac_res=`eval echo '${'$as_ac_var'}'`
14760 + { echo "$as_me:$LINENO: result: $ac_res" >&5
14761 +echo "${ECHO_T}$ac_res" >&6; }
14762 if test `eval echo '${'$as_ac_var'}'` = yes; then
14763 cat >>confdefs.h <<_ACEOF
14764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14765 @@ -14235,8 +14518,8 @@ _ACEOF
14766 fi
14767 done
14768
14769 -echo "$as_me:$LINENO: checking for working mmap" >&5
14770 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14771 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
14772 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
14773 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 else
14776 @@ -14278,21 +14561,21 @@ $ac_includes_default
14777 #include <fcntl.h>
14778 #include <sys/mman.h>
14779
14780 -#if !STDC_HEADERS && !HAVE_STDLIB_H
14781 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14782 char *malloc ();
14783 #endif
14784
14785 /* This mess was copied from the GNU getpagesize.h. */
14786 -#if !HAVE_GETPAGESIZE
14787 +#ifndef HAVE_GETPAGESIZE
14788 /* Assume that all systems that can run configure have sys/param.h. */
14789 -# if !HAVE_SYS_PARAM_H
14790 +# ifndef HAVE_SYS_PARAM_H
14791 # define HAVE_SYS_PARAM_H 1
14792 # endif
14793
14794 # ifdef _SC_PAGESIZE
14795 # define getpagesize() sysconf(_SC_PAGESIZE)
14796 # else /* no _SC_PAGESIZE */
14797 -# if HAVE_SYS_PARAM_H
14798 +# ifdef HAVE_SYS_PARAM_H
14799 # include <sys/param.h>
14800 # ifdef EXEC_PAGESIZE
14801 # define getpagesize() EXEC_PAGESIZE
14802 @@ -14331,15 +14614,15 @@ main ()
14803 /* First, make a file with some known garbage in it. */
14804 data = (char *) malloc (pagesize);
14805 if (!data)
14806 - exit (1);
14807 + return 1;
14808 for (i = 0; i < pagesize; ++i)
14809 *(data + i) = rand ();
14810 umask (0);
14811 fd = creat ("conftest.mmap", 0600);
14812 if (fd < 0)
14813 - exit (1);
14814 + return 1;
14815 if (write (fd, data, pagesize) != pagesize)
14816 - exit (1);
14817 + return 1;
14818 close (fd);
14819
14820 /* Next, try to mmap the file at a fixed address which already has
14821 @@ -14347,17 +14630,17 @@ main ()
14822 we see the same garbage. */
14823 fd = open ("conftest.mmap", O_RDWR);
14824 if (fd < 0)
14825 - exit (1);
14826 + return 1;
14827 data2 = (char *) malloc (2 * pagesize);
14828 if (!data2)
14829 - exit (1);
14830 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14831 + return 1;
14832 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14833 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14834 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14835 - exit (1);
14836 + return 1;
14837 for (i = 0; i < pagesize; ++i)
14838 if (*(data + i) != *(data2 + i))
14839 - exit (1);
14840 + return 1;
14841
14842 /* Finally, make sure that changes to the mapped area do not
14843 percolate back to the file as seen by read(). (This is a bug on
14844 @@ -14366,24 +14649,33 @@ main ()
14845 *(data2 + i) = *(data2 + i) + 1;
14846 data3 = (char *) malloc (pagesize);
14847 if (!data3)
14848 - exit (1);
14849 + return 1;
14850 if (read (fd, data3, pagesize) != pagesize)
14851 - exit (1);
14852 + return 1;
14853 for (i = 0; i < pagesize; ++i)
14854 if (*(data + i) != *(data3 + i))
14855 - exit (1);
14856 + return 1;
14857 close (fd);
14858 - exit (0);
14859 + return 0;
14860 }
14861 _ACEOF
14862 rm -f conftest$ac_exeext
14863 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14864 - (eval $ac_link) 2>&5
14865 +if { (ac_try="$ac_link"
14866 +case "(($ac_try" in
14867 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 + *) ac_try_echo=$ac_try;;
14869 +esac
14870 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 + (eval "$ac_link") 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14875 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 - (eval $ac_try) 2>&5
14877 + { (case "(($ac_try" in
14878 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 + *) ac_try_echo=$ac_try;;
14880 +esac
14881 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 + (eval "$ac_try") 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 @@ -14396,11 +14688,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
14887 ( exit $ac_status )
14888 ac_cv_func_mmap_fixed_mapped=no
14889 fi
14890 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14891 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14892 fi
14893 +
14894 +
14895 fi
14896 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14897 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14898 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14899 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
14900 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14901
14902 cat >>confdefs.h <<\_ACEOF
14903 @@ -14415,9 +14709,9 @@ rm -f conftest.mmap
14904 for ac_func in madvise mprotect
14905 do
14906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14907 -echo "$as_me:$LINENO: checking for $ac_func" >&5
14908 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14909 -if eval "test \"\${$as_ac_var+set}\" = set"; then
14910 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14911 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14912 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 else
14915 cat >conftest.$ac_ext <<_ACEOF
14916 @@ -14443,68 +14737,60 @@ cat >>conftest.$ac_ext <<_ACEOF
14917
14918 #undef $ac_func
14919
14920 -/* Override any gcc2 internal prototype to avoid an error. */
14921 +/* Override any GCC internal prototype to avoid an error.
14922 + Use char because int might match the return type of a GCC
14923 + builtin and then its argument prototype would still apply. */
14924 #ifdef __cplusplus
14925 extern "C"
14926 -{
14927 #endif
14928 -/* We use char because int might match the return type of a gcc2
14929 - builtin and then its argument prototype would still apply. */
14930 char $ac_func ();
14931 /* The GNU C library defines this for functions which it implements
14932 to always fail with ENOSYS. Some functions are actually named
14933 something starting with __ and the normal name is an alias. */
14934 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14935 +#if defined __stub_$ac_func || defined __stub___$ac_func
14936 choke me
14937 -#else
14938 -char (*f) () = $ac_func;
14939 -#endif
14940 -#ifdef __cplusplus
14941 -}
14942 #endif
14943
14944 int
14945 main ()
14946 {
14947 -return f != $ac_func;
14948 +return $ac_func ();
14949 ;
14950 return 0;
14951 }
14952 _ACEOF
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14955 - (eval $ac_link) 2>conftest.er1
14956 +if { (ac_try="$ac_link"
14957 +case "(($ac_try" in
14958 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 + *) ac_try_echo=$ac_try;;
14960 +esac
14961 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 + (eval "$ac_link") 2>conftest.er1
14963 ac_status=$?
14964 grep -v '^ *+' conftest.er1 >conftest.err
14965 rm -f conftest.er1
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 - (exit $ac_status); } &&
14969 - { ac_try='test -z "$ac_c_werror_flag"
14970 - || test ! -s conftest.err'
14971 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 - (eval $ac_try) 2>&5
14973 - ac_status=$?
14974 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 - (exit $ac_status); }; } &&
14976 - { ac_try='test -s conftest$ac_exeext'
14977 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 - (eval $ac_try) 2>&5
14979 - ac_status=$?
14980 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 - (exit $ac_status); }; }; then
14982 + (exit $ac_status); } && {
14983 + test -z "$ac_c_werror_flag" ||
14984 + test ! -s conftest.err
14985 + } && test -s conftest$ac_exeext &&
14986 + $as_test_x conftest$ac_exeext; then
14987 eval "$as_ac_var=yes"
14988 else
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992 -eval "$as_ac_var=no"
14993 + eval "$as_ac_var=no"
14994 fi
14995 -rm -f conftest.err conftest.$ac_objext \
14996 +
14997 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14998 conftest$ac_exeext conftest.$ac_ext
14999 fi
15000 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15001 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15002 +ac_res=`eval echo '${'$as_ac_var'}'`
15003 + { echo "$as_me:$LINENO: result: $ac_res" >&5
15004 +echo "${ECHO_T}$ac_res" >&6; }
15005 if test `eval echo '${'$as_ac_var'}'` = yes; then
15006 cat >>confdefs.h <<_ACEOF
15007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15008 @@ -14522,9 +14808,9 @@ _ACEOF
15009 esac
15010
15011 rm -f doc/config.status
15012 - ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15013 +ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15014
15015 - ac_config_commands="$ac_config_commands default"
15016 +ac_config_commands="$ac_config_commands default"
15017
15018
15019
15020 @@ -14549,39 +14835,58 @@ _ACEOF
15021
15022 # The following way of writing the cache mishandles newlines in values,
15023 # but we know of no workaround that is simple, portable, and efficient.
15024 -# So, don't put newlines in cache variables' values.
15025 +# So, we kill variables containing newlines.
15026 # Ultrix sh set writes to stderr and can't be redirected directly,
15027 # and sets the high bit in the cache file unless we assign to the vars.
15028 -{
15029 +(
15030 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15031 + eval ac_val=\$$ac_var
15032 + case $ac_val in #(
15033 + *${as_nl}*)
15034 + case $ac_var in #(
15035 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15036 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15037 + esac
15038 + case $ac_var in #(
15039 + _ | IFS | as_nl) ;; #(
15040 + *) $as_unset $ac_var ;;
15041 + esac ;;
15042 + esac
15043 + done
15044 +
15045 (set) 2>&1 |
15046 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
15047 - *ac_space=\ *)
15048 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
15049 + *${as_nl}ac_space=\ *)
15050 # `set' does not quote correctly, so add quotes (double-quote
15051 # substitution turns \\\\ into \\, and sed turns \\ into \).
15052 sed -n \
15053 "s/'/'\\\\''/g;
15054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15055 - ;;
15056 + ;; #(
15057 *)
15058 # `set' quotes correctly as required by POSIX, so do not add quotes.
15059 - sed -n \
15060 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15061 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15062 ;;
15063 - esac;
15064 -} |
15065 + esac |
15066 + sort
15067 +) |
15068 sed '
15069 + /^ac_cv_env_/b end
15070 t clear
15071 - : clear
15072 + :clear
15073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15074 t end
15075 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15076 - : end' >>confcache
15077 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
15078 - if test -w $cache_file; then
15079 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15080 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15081 + :end' >>confcache
15082 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15083 + if test -w "$cache_file"; then
15084 + test "x$cache_file" != "x/dev/null" &&
15085 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15086 +echo "$as_me: updating cache $cache_file" >&6;}
15087 cat confcache >$cache_file
15088 else
15089 - echo "not updating unwritable cache $cache_file"
15090 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15091 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15092 fi
15093 fi
15094 rm -f confcache
15095 @@ -14590,32 +14895,18 @@ test "x$prefix" = xNONE && prefix=$ac_de
15096 # Let make expand exec_prefix.
15097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15098
15099 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
15100 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15101 -# trailing colons and then remove the whole line if VPATH becomes empty
15102 -# (actually we leave an empty line to preserve line numbers).
15103 -if test "x$srcdir" = x.; then
15104 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
15105 -s/:*\$(srcdir):*/:/;
15106 -s/:*\${srcdir}:*/:/;
15107 -s/:*@srcdir@:*/:/;
15108 -s/^\([^=]*=[ ]*\):*/\1/;
15109 -s/:*$//;
15110 -s/^[^=]*=[ ]*$//;
15111 -}'
15112 -fi
15113 -
15114 DEFS=-DHAVE_CONFIG_H
15115
15116 ac_libobjs=
15117 ac_ltlibobjs=
15118 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15119 # 1. Remove the extension, and $U if already installed.
15120 - ac_i=`echo "$ac_i" |
15121 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15122 - # 2. Add them.
15123 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15124 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15125 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15126 + ac_i=`echo "$ac_i" | sed "$ac_script"`
15127 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15128 + # will be set to the directory where LIBOBJS objects are built.
15129 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15130 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15131 done
15132 LIBOBJS=$ac_libobjs
15133
15134 @@ -14674,17 +14965,45 @@ cat >>$CONFIG_STATUS <<\_ACEOF
15135 ## M4sh Initialization. ##
15136 ## --------------------- ##
15137
15138 -# Be Bourne compatible
15139 +# Be more Bourne compatible
15140 +DUALCASE=1; export DUALCASE # for MKS sh
15141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15142 emulate sh
15143 NULLCMD=:
15144 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15145 # is contrary to our usage. Disable this feature.
15146 alias -g '${1+"$@"}'='"$@"'
15147 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15148 - set -o posix
15149 + setopt NO_GLOB_SUBST
15150 +else
15151 + case `(set -o) 2>/dev/null` in
15152 + *posix*) set -o posix ;;
15153 +esac
15154 +
15155 +fi
15156 +
15157 +
15158 +
15159 +
15160 +# PATH needs CR
15161 +# Avoid depending upon Character Ranges.
15162 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15163 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15164 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15165 +as_cr_digits='0123456789'
15166 +as_cr_alnum=$as_cr_Letters$as_cr_digits
15167 +
15168 +# The user is always right.
15169 +if test "${PATH_SEPARATOR+set}" != set; then
15170 + echo "#! /bin/sh" >conf$$.sh
15171 + echo "exit 0" >>conf$$.sh
15172 + chmod +x conf$$.sh
15173 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15174 + PATH_SEPARATOR=';'
15175 + else
15176 + PATH_SEPARATOR=:
15177 + fi
15178 + rm -f conf$$.sh
15179 fi
15180 -DUALCASE=1; export DUALCASE # for MKS sh
15181
15182 # Support unset when possible.
15183 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15184 @@ -14694,8 +15013,43 @@ else
15185 fi
15186
15187
15188 +# IFS
15189 +# We need space, tab and new line, in precisely that order. Quoting is
15190 +# there to prevent editors from complaining about space-tab.
15191 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15192 +# splitting by setting IFS to empty value.)
15193 +as_nl='
15194 +'
15195 +IFS=" "" $as_nl"
15196 +
15197 +# Find who we are. Look in the path if we contain no directory separator.
15198 +case $0 in
15199 + *[\\/]* ) as_myself=$0 ;;
15200 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201 +for as_dir in $PATH
15202 +do
15203 + IFS=$as_save_IFS
15204 + test -z "$as_dir" && as_dir=.
15205 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15206 +done
15207 +IFS=$as_save_IFS
15208 +
15209 + ;;
15210 +esac
15211 +# We did not find ourselves, most probably we were run as `sh COMMAND'
15212 +# in which case we are not to be found in the path.
15213 +if test "x$as_myself" = x; then
15214 + as_myself=$0
15215 +fi
15216 +if test ! -f "$as_myself"; then
15217 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15218 + { (exit 1); exit 1; }
15219 +fi
15220 +
15221 # Work around bugs in pre-3.0 UWIN ksh.
15222 -$as_unset ENV MAIL MAILPATH
15223 +for as_var in ENV MAIL MAILPATH
15224 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15225 +done
15226 PS1='$ '
15227 PS2='> '
15228 PS4='+ '
15229 @@ -14709,18 +15063,19 @@ do
15230 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15231 eval $as_var=C; export $as_var
15232 else
15233 - $as_unset $as_var
15234 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15235 fi
15236 done
15237
15238 # Required to use basename.
15239 -if expr a : '\(a\)' >/dev/null 2>&1; then
15240 +if expr a : '\(a\)' >/dev/null 2>&1 &&
15241 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
15242 as_expr=expr
15243 else
15244 as_expr=false
15245 fi
15246
15247 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15248 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15249 as_basename=basename
15250 else
15251 as_basename=false
15252 @@ -14728,159 +15083,120 @@ fi
15253
15254
15255 # Name of the executable.
15256 -as_me=`$as_basename "$0" ||
15257 +as_me=`$as_basename -- "$0" ||
15258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15259 X"$0" : 'X\(//\)$' \| \
15260 - X"$0" : 'X\(/\)$' \| \
15261 - . : '\(.\)' 2>/dev/null ||
15262 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15263 echo X/"$0" |
15264 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15265 - /^X\/\(\/\/\)$/{ s//\1/; q; }
15266 - /^X\/\(\/\).*/{ s//\1/; q; }
15267 - s/.*/./; q'`
15268 + sed '/^.*\/\([^/][^/]*\)\/*$/{
15269 + s//\1/
15270 + q
15271 + }
15272 + /^X\/\(\/\/\)$/{
15273 + s//\1/
15274 + q
15275 + }
15276 + /^X\/\(\/\).*/{
15277 + s//\1/
15278 + q
15279 + }
15280 + s/.*/./; q'`
15281
15282 -
15283 -# PATH needs CR, and LINENO needs CR and PATH.
15284 -# Avoid depending upon Character Ranges.
15285 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15286 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15287 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15288 -as_cr_digits='0123456789'
15289 -as_cr_alnum=$as_cr_Letters$as_cr_digits
15290 -
15291 -# The user is always right.
15292 -if test "${PATH_SEPARATOR+set}" != set; then
15293 - echo "#! /bin/sh" >conf$$.sh
15294 - echo "exit 0" >>conf$$.sh
15295 - chmod +x conf$$.sh
15296 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15297 - PATH_SEPARATOR=';'
15298 - else
15299 - PATH_SEPARATOR=:
15300 - fi
15301 - rm -f conf$$.sh
15302 -fi
15303 +# CDPATH.
15304 +$as_unset CDPATH
15305
15306
15307 - as_lineno_1=$LINENO
15308 - as_lineno_2=$LINENO
15309 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15310 - test "x$as_lineno_1" != "x$as_lineno_2" &&
15311 - test "x$as_lineno_3" = "x$as_lineno_2" || {
15312 - # Find who we are. Look in the path if we contain no path at all
15313 - # relative or not.
15314 - case $0 in
15315 - *[\\/]* ) as_myself=$0 ;;
15316 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15317 -for as_dir in $PATH
15318 -do
15319 - IFS=$as_save_IFS
15320 - test -z "$as_dir" && as_dir=.
15321 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15322 -done
15323
15324 - ;;
15325 - esac
15326 - # We did not find ourselves, most probably we were run as `sh COMMAND'
15327 - # in which case we are not to be found in the path.
15328 - if test "x$as_myself" = x; then
15329 - as_myself=$0
15330 - fi
15331 - if test ! -f "$as_myself"; then
15332 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15333 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15334 - { (exit 1); exit 1; }; }
15335 - fi
15336 - case $CONFIG_SHELL in
15337 - '')
15338 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15339 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15340 -do
15341 - IFS=$as_save_IFS
15342 - test -z "$as_dir" && as_dir=.
15343 - for as_base in sh bash ksh sh5; do
15344 - case $as_dir in
15345 - /*)
15346 - if ("$as_dir/$as_base" -c '
15347 as_lineno_1=$LINENO
15348 as_lineno_2=$LINENO
15349 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15350 test "x$as_lineno_1" != "x$as_lineno_2" &&
15351 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15352 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15353 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15354 - CONFIG_SHELL=$as_dir/$as_base
15355 - export CONFIG_SHELL
15356 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15357 - fi;;
15358 - esac
15359 - done
15360 -done
15361 -;;
15362 - esac
15363 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15364
15365 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15366 # uniformly replaced by the line number. The first 'sed' inserts a
15367 - # line-number line before each line; the second 'sed' does the real
15368 - # work. The second script uses 'N' to pair each line-number line
15369 - # with the numbered line, and appends trailing '-' during
15370 - # substitution so that $LINENO is not a special case at line end.
15371 + # line-number line after each line using $LINENO; the second 'sed'
15372 + # does the real work. The second script uses 'N' to pair each
15373 + # line-number line with the line containing $LINENO, and appends
15374 + # trailing '-' during substitution so that $LINENO is not a special
15375 + # case at line end.
15376 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15377 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15378 - sed '=' <$as_myself |
15379 + # scripts with optimization help from Paolo Bonzini. Blame Lee
15380 + # E. McMahon (1931-1989) for sed's syntax. :-)
15381 + sed -n '
15382 + p
15383 + /[$]LINENO/=
15384 + ' <$as_myself |
15385 sed '
15386 + s/[$]LINENO.*/&-/
15387 + t lineno
15388 + b
15389 + :lineno
15390 N
15391 - s,$,-,
15392 - : loop
15393 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15394 + :loop
15395 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15396 t loop
15397 - s,-$,,
15398 - s,^['$as_cr_digits']*\n,,
15399 + s/-\n.*//
15400 ' >$as_me.lineno &&
15401 - chmod +x $as_me.lineno ||
15402 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15403 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15404 + chmod +x "$as_me.lineno" ||
15405 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15406 { (exit 1); exit 1; }; }
15407
15408 # Don't try to exec as it changes $[0], causing all sort of problems
15409 # (the dirname of $[0] is not the place where we might find the
15410 - # original and so on. Autoconf is especially sensible to this).
15411 - . ./$as_me.lineno
15412 + # original and so on. Autoconf is especially sensitive to this).
15413 + . "./$as_me.lineno"
15414 # Exit status is that of the last command.
15415 exit
15416 }
15417
15418
15419 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15420 - *c*,-n*) ECHO_N= ECHO_C='
15421 -' ECHO_T=' ' ;;
15422 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15423 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15424 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15425 + as_dirname=dirname
15426 +else
15427 + as_dirname=false
15428 +fi
15429 +
15430 +ECHO_C= ECHO_N= ECHO_T=
15431 +case `echo -n x` in
15432 +-n*)
15433 + case `echo 'x\c'` in
15434 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15435 + *) ECHO_C='\c';;
15436 + esac;;
15437 +*)
15438 + ECHO_N='-n';;
15439 esac
15440
15441 -if expr a : '\(a\)' >/dev/null 2>&1; then
15442 +if expr a : '\(a\)' >/dev/null 2>&1 &&
15443 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
15444 as_expr=expr
15445 else
15446 as_expr=false
15447 fi
15448
15449 rm -f conf$$ conf$$.exe conf$$.file
15450 +if test -d conf$$.dir; then
15451 + rm -f conf$$.dir/conf$$.file
15452 +else
15453 + rm -f conf$$.dir
15454 + mkdir conf$$.dir
15455 +fi
15456 echo >conf$$.file
15457 if ln -s conf$$.file conf$$ 2>/dev/null; then
15458 - # We could just check for DJGPP; but this test a) works b) is more generic
15459 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15460 - if test -f conf$$.exe; then
15461 - # Don't use ln at all; we don't have any links
15462 + as_ln_s='ln -s'
15463 + # ... but there are two gotchas:
15464 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15465 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15466 + # In both cases, we have to default to `cp -p'.
15467 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15468 as_ln_s='cp -p'
15469 - else
15470 - as_ln_s='ln -s'
15471 - fi
15472 elif ln conf$$.file conf$$ 2>/dev/null; then
15473 as_ln_s=ln
15474 else
15475 as_ln_s='cp -p'
15476 fi
15477 -rm -f conf$$ conf$$.exe conf$$.file
15478 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15479 +rmdir conf$$.dir 2>/dev/null
15480
15481 if mkdir -p . 2>/dev/null; then
15482 as_mkdir_p=:
15483 @@ -14889,7 +15205,28 @@ else
15484 as_mkdir_p=false
15485 fi
15486
15487 -as_executable_p="test -f"
15488 +if test -x / >/dev/null 2>&1; then
15489 + as_test_x='test -x'
15490 +else
15491 + if ls -dL / >/dev/null 2>&1; then
15492 + as_ls_L_option=L
15493 + else
15494 + as_ls_L_option=
15495 + fi
15496 + as_test_x='
15497 + eval sh -c '\''
15498 + if test -d "$1"; then
15499 + test -d "$1/.";
15500 + else
15501 + case $1 in
15502 + -*)set "./$1";;
15503 + esac;
15504 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15505 + ???[sx]*):;;*)false;;esac;fi
15506 + '\'' sh
15507 + '
15508 +fi
15509 +as_executable_p=$as_test_x
15510
15511 # Sed expression to map a string onto a valid CPP name.
15512 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15513 @@ -14898,31 +15235,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
15514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15515
15516
15517 -# IFS
15518 -# We need space, tab and new line, in precisely that order.
15519 -as_nl='
15520 -'
15521 -IFS=" $as_nl"
15522 -
15523 -# CDPATH.
15524 -$as_unset CDPATH
15525 -
15526 exec 6>&1
15527
15528 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
15529 +# Save the log message, to keep $[0] and so on meaningful, and to
15530 # report actual input values of CONFIG_FILES etc. instead of their
15531 -# values after options handling. Logging --version etc. is OK.
15532 -exec 5>>config.log
15533 -{
15534 - echo
15535 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15536 -## Running $as_me. ##
15537 -_ASBOX
15538 -} >&5
15539 -cat >&5 <<_CSEOF
15540 -
15541 +# values after options handling.
15542 +ac_log="
15543 This file was extended by $as_me, which was
15544 -generated by GNU Autoconf 2.59. Invocation command line was
15545 +generated by GNU Autoconf 2.61. Invocation command line was
15546
15547 CONFIG_FILES = $CONFIG_FILES
15548 CONFIG_HEADERS = $CONFIG_HEADERS
15549 @@ -14930,30 +15250,20 @@ generated by GNU Autoconf 2.59. Invocat
15550 CONFIG_COMMANDS = $CONFIG_COMMANDS
15551 $ $0 $@
15552
15553 -_CSEOF
15554 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15555 -echo >&5
15556 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
15557 +"
15558 +
15559 _ACEOF
15560
15561 +cat >>$CONFIG_STATUS <<_ACEOF
15562 # Files that config.status was made for.
15563 -if test -n "$ac_config_files"; then
15564 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15565 -fi
15566 +config_files="$ac_config_files"
15567 +config_headers="$ac_config_headers"
15568 +config_commands="$ac_config_commands"
15569
15570 -if test -n "$ac_config_headers"; then
15571 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15572 -fi
15573 -
15574 -if test -n "$ac_config_links"; then
15575 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15576 -fi
15577 -
15578 -if test -n "$ac_config_commands"; then
15579 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15580 -fi
15581 +_ACEOF
15582
15583 cat >>$CONFIG_STATUS <<\_ACEOF
15584 -
15585 ac_cs_usage="\
15586 \`$as_me' instantiates files from templates according to the
15587 current configuration.
15588 @@ -14961,7 +15271,7 @@ current configuration.
15589 Usage: $0 [OPTIONS] [FILE]...
15590
15591 -h, --help print this help, then exit
15592 - -V, --version print version number, then exit
15593 + -V, --version print version number and configuration settings, then exit
15594 -q, --quiet do not print progress messages
15595 -d, --debug don't remove temporary files
15596 --recheck update $as_me by reconfiguring in the same conditions
15597 @@ -14980,19 +15290,21 @@ Configuration commands:
15598 $config_commands
15599
15600 Report bugs to <bug-autoconf@gnu.org>."
15601 -_ACEOF
15602
15603 +_ACEOF
15604 cat >>$CONFIG_STATUS <<_ACEOF
15605 ac_cs_version="\\
15606 config.status
15607 -configured by $0, generated by GNU Autoconf 2.59,
15608 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15609 +configured by $0, generated by GNU Autoconf 2.61,
15610 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15611
15612 -Copyright (C) 2003 Free Software Foundation, Inc.
15613 +Copyright (C) 2006 Free Software Foundation, Inc.
15614 This config.status script is free software; the Free Software Foundation
15615 gives unlimited permission to copy, distribute and modify it."
15616 -srcdir=$srcdir
15617 -INSTALL="$INSTALL"
15618 +
15619 +ac_pwd='$ac_pwd'
15620 +srcdir='$srcdir'
15621 +INSTALL='$INSTALL'
15622 _ACEOF
15623
15624 cat >>$CONFIG_STATUS <<\_ACEOF
15625 @@ -15003,39 +15315,24 @@ while test $# != 0
15626 do
15627 case $1 in
15628 --*=*)
15629 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
15630 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15631 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
15632 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15633 ac_shift=:
15634 ;;
15635 - -*)
15636 + *)
15637 ac_option=$1
15638 ac_optarg=$2
15639 ac_shift=shift
15640 ;;
15641 - *) # This is not an option, so the user has probably given explicit
15642 - # arguments.
15643 - ac_option=$1
15644 - ac_need_defaults=false;;
15645 esac
15646
15647 case $ac_option in
15648 # Handling of the options.
15649 -_ACEOF
15650 -cat >>$CONFIG_STATUS <<\_ACEOF
15651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15652 ac_cs_recheck=: ;;
15653 - --version | --vers* | -V )
15654 - echo "$ac_cs_version"; exit 0 ;;
15655 - --he | --h)
15656 - # Conflict between --help and --header
15657 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
15658 -Try \`$0 --help' for more information." >&5
15659 -echo "$as_me: error: ambiguous option: $1
15660 -Try \`$0 --help' for more information." >&2;}
15661 - { (exit 1); exit 1; }; };;
15662 - --help | --hel | -h )
15663 - echo "$ac_cs_usage"; exit 0 ;;
15664 - --debug | --d* | -d )
15665 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15666 + echo "$ac_cs_version"; exit ;;
15667 + --debug | --debu | --deb | --de | --d | -d )
15668 debug=: ;;
15669 --file | --fil | --fi | --f )
15670 $ac_shift
15671 @@ -15045,18 +15342,24 @@ Try \`$0 --help' for more information."
15672 $ac_shift
15673 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15674 ac_need_defaults=false;;
15675 + --he | --h)
15676 + # Conflict between --help and --header
15677 + { echo "$as_me: error: ambiguous option: $1
15678 +Try \`$0 --help' for more information." >&2
15679 + { (exit 1); exit 1; }; };;
15680 + --help | --hel | -h )
15681 + echo "$ac_cs_usage"; exit ;;
15682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15683 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15684 ac_cs_silent=: ;;
15685
15686 # This is an error.
15687 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15688 -Try \`$0 --help' for more information." >&5
15689 -echo "$as_me: error: unrecognized option: $1
15690 -Try \`$0 --help' for more information." >&2;}
15691 + -*) { echo "$as_me: error: unrecognized option: $1
15692 +Try \`$0 --help' for more information." >&2
15693 { (exit 1); exit 1; }; } ;;
15694
15695 - *) ac_config_targets="$ac_config_targets $1" ;;
15696 + *) ac_config_targets="$ac_config_targets $1"
15697 + ac_need_defaults=false ;;
15698
15699 esac
15700 shift
15701 @@ -15072,42 +15375,54 @@ fi
15702 _ACEOF
15703 cat >>$CONFIG_STATUS <<_ACEOF
15704 if \$ac_cs_recheck; then
15705 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15706 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15707 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15708 + CONFIG_SHELL=$SHELL
15709 + export CONFIG_SHELL
15710 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15711 fi
15712
15713 _ACEOF
15714 +cat >>$CONFIG_STATUS <<\_ACEOF
15715 +exec 5>>config.log
15716 +{
15717 + echo
15718 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15719 +## Running $as_me. ##
15720 +_ASBOX
15721 + echo "$ac_log"
15722 +} >&5
15723
15724 +_ACEOF
15725 cat >>$CONFIG_STATUS <<_ACEOF
15726 #
15727 -# INIT-COMMANDS section.
15728 +# INIT-COMMANDS
15729 #
15730 -
15731 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15732
15733
15734 _ACEOF
15735
15736 -
15737 -
15738 cat >>$CONFIG_STATUS <<\_ACEOF
15739 +
15740 +# Handling of arguments.
15741 for ac_config_target in $ac_config_targets
15742 do
15743 - case "$ac_config_target" in
15744 - # Handling of arguments.
15745 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15746 - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15747 - "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15748 - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15749 - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15750 - "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15751 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15752 + case $ac_config_target in
15753 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15754 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15755 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15756 + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15757 + "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15758 + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15759 + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15760 +
15761 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15762 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15763 { (exit 1); exit 1; }; };;
15764 esac
15765 done
15766
15767 +
15768 # If the user did not use the arguments to specify the items to instantiate,
15769 # then the envvar interface is used. Set only those that are not.
15770 # We use the long form for the default assignment because of an extremely
15771 @@ -15119,401 +15434,504 @@ if $ac_need_defaults; then
15772 fi
15773
15774 # Have a temporary directory for convenience. Make it in the build tree
15775 -# simply because there is no reason to put it here, and in addition,
15776 +# simply because there is no reason against having it here, and in addition,
15777 # creating and moving files from /tmp can sometimes cause problems.
15778 -# Create a temporary directory, and hook for its removal unless debugging.
15779 +# Hook for its removal unless debugging.
15780 +# Note that there is a small window in which the directory will not be cleaned:
15781 +# after its creation but before its name has been assigned to `$tmp'.
15782 $debug ||
15783 {
15784 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15785 + tmp=
15786 + trap 'exit_status=$?
15787 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15788 +' 0
15789 trap '{ (exit 1); exit 1; }' 1 2 13 15
15790 }
15791 -
15792 # Create a (secure) tmp directory for tmp files.
15793
15794 {
15795 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15796 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15797 test -n "$tmp" && test -d "$tmp"
15798 } ||
15799 {
15800 - tmp=./confstat$$-$RANDOM
15801 - (umask 077 && mkdir $tmp)
15802 + tmp=./conf$$-$RANDOM
15803 + (umask 077 && mkdir "$tmp")
15804 } ||
15805 {
15806 echo "$me: cannot create a temporary directory in ." >&2
15807 { (exit 1); exit 1; }
15808 }
15809
15810 -_ACEOF
15811 -
15812 -cat >>$CONFIG_STATUS <<_ACEOF
15813 -
15814 #
15815 -# CONFIG_FILES section.
15816 +# Set up the sed scripts for CONFIG_FILES section.
15817 #
15818
15819 # No need to generate the scripts if there are no CONFIG_FILES.
15820 # This happens for instance when ./config.status config.h
15821 -if test -n "\$CONFIG_FILES"; then
15822 - # Protect against being on the right side of a sed subst in config.status.
15823 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15824 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15825 -s,@SHELL@,$SHELL,;t t
15826 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15827 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15828 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15829 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15830 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15831 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15832 -s,@exec_prefix@,$exec_prefix,;t t
15833 -s,@prefix@,$prefix,;t t
15834 -s,@program_transform_name@,$program_transform_name,;t t
15835 -s,@bindir@,$bindir,;t t
15836 -s,@sbindir@,$sbindir,;t t
15837 -s,@libexecdir@,$libexecdir,;t t
15838 -s,@datadir@,$datadir,;t t
15839 -s,@sysconfdir@,$sysconfdir,;t t
15840 -s,@sharedstatedir@,$sharedstatedir,;t t
15841 -s,@localstatedir@,$localstatedir,;t t
15842 -s,@libdir@,$libdir,;t t
15843 -s,@includedir@,$includedir,;t t
15844 -s,@oldincludedir@,$oldincludedir,;t t
15845 -s,@infodir@,$infodir,;t t
15846 -s,@mandir@,$mandir,;t t
15847 -s,@build_alias@,$build_alias,;t t
15848 -s,@host_alias@,$host_alias,;t t
15849 -s,@target_alias@,$target_alias,;t t
15850 -s,@DEFS@,$DEFS,;t t
15851 -s,@ECHO_C@,$ECHO_C,;t t
15852 -s,@ECHO_N@,$ECHO_N,;t t
15853 -s,@ECHO_T@,$ECHO_T,;t t
15854 -s,@LIBS@,$LIBS,;t t
15855 -s,@build@,$build,;t t
15856 -s,@build_cpu@,$build_cpu,;t t
15857 -s,@build_vendor@,$build_vendor,;t t
15858 -s,@build_os@,$build_os,;t t
15859 -s,@host@,$host,;t t
15860 -s,@host_cpu@,$host_cpu,;t t
15861 -s,@host_vendor@,$host_vendor,;t t
15862 -s,@host_os@,$host_os,;t t
15863 -s,@target@,$target,;t t
15864 -s,@target_cpu@,$target_cpu,;t t
15865 -s,@target_vendor@,$target_vendor,;t t
15866 -s,@target_os@,$target_os,;t t
15867 -s,@CC@,$CC,;t t
15868 -s,@CFLAGS@,$CFLAGS,;t t
15869 -s,@LDFLAGS@,$LDFLAGS,;t t
15870 -s,@CPPFLAGS@,$CPPFLAGS,;t t
15871 -s,@ac_ct_CC@,$ac_ct_CC,;t t
15872 -s,@EXEEXT@,$EXEEXT,;t t
15873 -s,@OBJEXT@,$OBJEXT,;t t
15874 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15875 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15876 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15877 -s,@CYGPATH_W@,$CYGPATH_W,;t t
15878 -s,@PACKAGE@,$PACKAGE,;t t
15879 -s,@VERSION@,$VERSION,;t t
15880 -s,@ACLOCAL@,$ACLOCAL,;t t
15881 -s,@AUTOCONF@,$AUTOCONF,;t t
15882 -s,@AUTOMAKE@,$AUTOMAKE,;t t
15883 -s,@AUTOHEADER@,$AUTOHEADER,;t t
15884 -s,@MAKEINFO@,$MAKEINFO,;t t
15885 -s,@install_sh@,$install_sh,;t t
15886 -s,@STRIP@,$STRIP,;t t
15887 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15888 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15889 -s,@mkdir_p@,$mkdir_p,;t t
15890 -s,@AWK@,$AWK,;t t
15891 -s,@SET_MAKE@,$SET_MAKE,;t t
15892 -s,@am__leading_dot@,$am__leading_dot,;t t
15893 -s,@AMTAR@,$AMTAR,;t t
15894 -s,@am__tar@,$am__tar,;t t
15895 -s,@am__untar@,$am__untar,;t t
15896 -s,@DEPDIR@,$DEPDIR,;t t
15897 -s,@am__include@,$am__include,;t t
15898 -s,@am__quote@,$am__quote,;t t
15899 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15900 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15901 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15902 -s,@CCDEPMODE@,$CCDEPMODE,;t t
15903 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15904 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15905 -s,@AR@,$AR,;t t
15906 -s,@ac_ct_AR@,$ac_ct_AR,;t t
15907 -s,@RANLIB@,$RANLIB,;t t
15908 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15909 -s,@LN_S@,$LN_S,;t t
15910 -s,@LIBTOOL@,$LIBTOOL,;t t
15911 -s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15912 -s,@NO_WERROR@,$NO_WERROR,;t t
15913 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15914 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15915 -s,@MAINT@,$MAINT,;t t
15916 -s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15917 -s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15918 -s,@host_noncanonical@,$host_noncanonical,;t t
15919 -s,@target_noncanonical@,$target_noncanonical,;t t
15920 -s,@bfdlibdir@,$bfdlibdir,;t t
15921 -s,@bfdincludedir@,$bfdincludedir,;t t
15922 -s,@CPP@,$CPP,;t t
15923 -s,@EGREP@,$EGREP,;t t
15924 -s,@ALLOCA@,$ALLOCA,;t t
15925 -s,@USE_NLS@,$USE_NLS,;t t
15926 -s,@MSGFMT@,$MSGFMT,;t t
15927 -s,@GMSGFMT@,$GMSGFMT,;t t
15928 -s,@XGETTEXT@,$XGETTEXT,;t t
15929 -s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15930 -s,@CATALOGS@,$CATALOGS,;t t
15931 -s,@CATOBJEXT@,$CATOBJEXT,;t t
15932 -s,@DATADIRNAME@,$DATADIRNAME,;t t
15933 -s,@GMOFILES@,$GMOFILES,;t t
15934 -s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15935 -s,@INTLDEPS@,$INTLDEPS,;t t
15936 -s,@INTLLIBS@,$INTLLIBS,;t t
15937 -s,@INTLOBJS@,$INTLOBJS,;t t
15938 -s,@POFILES@,$POFILES,;t t
15939 -s,@POSUB@,$POSUB,;t t
15940 -s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15941 -s,@GT_NO@,$GT_NO,;t t
15942 -s,@GT_YES@,$GT_YES,;t t
15943 -s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15944 -s,@l@,$l,;t t
15945 -s,@HDEFINES@,$HDEFINES,;t t
15946 -s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15947 -s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15948 -s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15949 -s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15950 -s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15951 -s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15952 -s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15953 -s,@COREFILE@,$COREFILE,;t t
15954 -s,@COREFLAG@,$COREFLAG,;t t
15955 -s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15956 -s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15957 -s,@TDEFINES@,$TDEFINES,;t t
15958 -s,@wordsize@,$wordsize,;t t
15959 -s,@bfd_libs@,$bfd_libs,;t t
15960 -s,@all_backends@,$all_backends,;t t
15961 -s,@bfd_backends@,$bfd_backends,;t t
15962 -s,@bfd_machines@,$bfd_machines,;t t
15963 -s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15964 -s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15965 -s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15966 -s,@tdefaults@,$tdefaults,;t t
15967 -s,@datarootdir@,$datarootdir,;t t
15968 -s,@docdir@,$docdir,;t t
15969 -s,@htmldir@,$htmldir,;t t
15970 -s,@LIBOBJS@,$LIBOBJS,;t t
15971 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15972 -CEOF
15973 -
15974 -_ACEOF
15975 -
15976 - cat >>$CONFIG_STATUS <<\_ACEOF
15977 - # Split the substitutions into bite-sized pieces for seds with
15978 - # small command number limits, like on Digital OSF/1 and HP-UX.
15979 - ac_max_sed_lines=48
15980 - ac_sed_frag=1 # Number of current file.
15981 - ac_beg=1 # First line for current file.
15982 - ac_end=$ac_max_sed_lines # Line after last line for current file.
15983 - ac_more_lines=:
15984 - ac_sed_cmds=
15985 - while $ac_more_lines; do
15986 - if test $ac_beg -gt 1; then
15987 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15988 - else
15989 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15990 - fi
15991 - if test ! -s $tmp/subs.frag; then
15992 - ac_more_lines=false
15993 - else
15994 - # The purpose of the label and of the branching condition is to
15995 - # speed up the sed processing (if there are no `@' at all, there
15996 - # is no need to browse any of the substitutions).
15997 - # These are the two extra sed commands mentioned above.
15998 - (echo ':t
15999 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16000 - if test -z "$ac_sed_cmds"; then
16001 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16002 - else
16003 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16004 - fi
16005 - ac_sed_frag=`expr $ac_sed_frag + 1`
16006 - ac_beg=$ac_end
16007 - ac_end=`expr $ac_end + $ac_max_sed_lines`
16008 - fi
16009 - done
16010 - if test -z "$ac_sed_cmds"; then
16011 - ac_sed_cmds=cat
16012 +if test -n "$CONFIG_FILES"; then
16013 +
16014 +_ACEOF
16015 +
16016 +
16017 +
16018 +ac_delim='%!_!# '
16019 +for ac_last_try in false false false false false :; do
16020 + cat >conf$$subs.sed <<_ACEOF
16021 +SHELL!$SHELL$ac_delim
16022 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16023 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16024 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16025 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16026 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16027 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16028 +exec_prefix!$exec_prefix$ac_delim
16029 +prefix!$prefix$ac_delim
16030 +program_transform_name!$program_transform_name$ac_delim
16031 +bindir!$bindir$ac_delim
16032 +sbindir!$sbindir$ac_delim
16033 +libexecdir!$libexecdir$ac_delim
16034 +datarootdir!$datarootdir$ac_delim
16035 +datadir!$datadir$ac_delim
16036 +sysconfdir!$sysconfdir$ac_delim
16037 +sharedstatedir!$sharedstatedir$ac_delim
16038 +localstatedir!$localstatedir$ac_delim
16039 +includedir!$includedir$ac_delim
16040 +oldincludedir!$oldincludedir$ac_delim
16041 +docdir!$docdir$ac_delim
16042 +infodir!$infodir$ac_delim
16043 +htmldir!$htmldir$ac_delim
16044 +dvidir!$dvidir$ac_delim
16045 +pdfdir!$pdfdir$ac_delim
16046 +psdir!$psdir$ac_delim
16047 +libdir!$libdir$ac_delim
16048 +localedir!$localedir$ac_delim
16049 +mandir!$mandir$ac_delim
16050 +DEFS!$DEFS$ac_delim
16051 +ECHO_C!$ECHO_C$ac_delim
16052 +ECHO_N!$ECHO_N$ac_delim
16053 +ECHO_T!$ECHO_T$ac_delim
16054 +LIBS!$LIBS$ac_delim
16055 +build_alias!$build_alias$ac_delim
16056 +host_alias!$host_alias$ac_delim
16057 +target_alias!$target_alias$ac_delim
16058 +build!$build$ac_delim
16059 +build_cpu!$build_cpu$ac_delim
16060 +build_vendor!$build_vendor$ac_delim
16061 +build_os!$build_os$ac_delim
16062 +host!$host$ac_delim
16063 +host_cpu!$host_cpu$ac_delim
16064 +host_vendor!$host_vendor$ac_delim
16065 +host_os!$host_os$ac_delim
16066 +target!$target$ac_delim
16067 +target_cpu!$target_cpu$ac_delim
16068 +target_vendor!$target_vendor$ac_delim
16069 +target_os!$target_os$ac_delim
16070 +CC!$CC$ac_delim
16071 +CFLAGS!$CFLAGS$ac_delim
16072 +LDFLAGS!$LDFLAGS$ac_delim
16073 +CPPFLAGS!$CPPFLAGS$ac_delim
16074 +ac_ct_CC!$ac_ct_CC$ac_delim
16075 +EXEEXT!$EXEEXT$ac_delim
16076 +OBJEXT!$OBJEXT$ac_delim
16077 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16078 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16079 +INSTALL_DATA!$INSTALL_DATA$ac_delim
16080 +CYGPATH_W!$CYGPATH_W$ac_delim
16081 +PACKAGE!$PACKAGE$ac_delim
16082 +VERSION!$VERSION$ac_delim
16083 +ACLOCAL!$ACLOCAL$ac_delim
16084 +AUTOCONF!$AUTOCONF$ac_delim
16085 +AUTOMAKE!$AUTOMAKE$ac_delim
16086 +AUTOHEADER!$AUTOHEADER$ac_delim
16087 +MAKEINFO!$MAKEINFO$ac_delim
16088 +install_sh!$install_sh$ac_delim
16089 +STRIP!$STRIP$ac_delim
16090 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16091 +mkdir_p!$mkdir_p$ac_delim
16092 +AWK!$AWK$ac_delim
16093 +SET_MAKE!$SET_MAKE$ac_delim
16094 +am__leading_dot!$am__leading_dot$ac_delim
16095 +AMTAR!$AMTAR$ac_delim
16096 +am__tar!$am__tar$ac_delim
16097 +am__untar!$am__untar$ac_delim
16098 +DEPDIR!$DEPDIR$ac_delim
16099 +am__include!$am__include$ac_delim
16100 +am__quote!$am__quote$ac_delim
16101 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16102 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16103 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16104 +CCDEPMODE!$CCDEPMODE$ac_delim
16105 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16106 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16107 +AR!$AR$ac_delim
16108 +RANLIB!$RANLIB$ac_delim
16109 +LN_S!$LN_S$ac_delim
16110 +LIBTOOL!$LIBTOOL$ac_delim
16111 +WARN_CFLAGS!$WARN_CFLAGS$ac_delim
16112 +NO_WERROR!$NO_WERROR$ac_delim
16113 +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16114 +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16115 +MAINT!$MAINT$ac_delim
16116 +INSTALL_LIBBFD_TRUE!$INSTALL_LIBBFD_TRUE$ac_delim
16117 +INSTALL_LIBBFD_FALSE!$INSTALL_LIBBFD_FALSE$ac_delim
16118 +_ACEOF
16119 +
16120 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16121 + break
16122 + elif $ac_last_try; then
16123 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16124 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16125 + { (exit 1); exit 1; }; }
16126 + else
16127 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16128 fi
16129 -fi # test -n "$CONFIG_FILES"
16130 +done
16131 +
16132 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16133 +if test -n "$ac_eof"; then
16134 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16135 + ac_eof=`expr $ac_eof + 1`
16136 +fi
16137
16138 +cat >>$CONFIG_STATUS <<_ACEOF
16139 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16140 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16141 +_ACEOF
16142 +sed '
16143 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16144 +s/^/s,@/; s/!/@,|#_!!_#|/
16145 +:n
16146 +t n
16147 +s/'"$ac_delim"'$/,g/; t
16148 +s/$/\\/; p
16149 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16150 +' >>$CONFIG_STATUS <conf$$subs.sed
16151 +rm -f conf$$subs.sed
16152 +cat >>$CONFIG_STATUS <<_ACEOF
16153 +CEOF$ac_eof
16154 +_ACEOF
16155 +
16156 +
16157 +ac_delim='%!_!# '
16158 +for ac_last_try in false false false false false :; do
16159 + cat >conf$$subs.sed <<_ACEOF
16160 +host_noncanonical!$host_noncanonical$ac_delim
16161 +target_noncanonical!$target_noncanonical$ac_delim
16162 +bfdlibdir!$bfdlibdir$ac_delim
16163 +bfdincludedir!$bfdincludedir$ac_delim
16164 +CPP!$CPP$ac_delim
16165 +GREP!$GREP$ac_delim
16166 +EGREP!$EGREP$ac_delim
16167 +ALLOCA!$ALLOCA$ac_delim
16168 +USE_NLS!$USE_NLS$ac_delim
16169 +MSGFMT!$MSGFMT$ac_delim
16170 +GMSGFMT!$GMSGFMT$ac_delim
16171 +XGETTEXT!$XGETTEXT$ac_delim
16172 +USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16173 +CATALOGS!$CATALOGS$ac_delim
16174 +CATOBJEXT!$CATOBJEXT$ac_delim
16175 +DATADIRNAME!$DATADIRNAME$ac_delim
16176 +GMOFILES!$GMOFILES$ac_delim
16177 +INSTOBJEXT!$INSTOBJEXT$ac_delim
16178 +INTLDEPS!$INTLDEPS$ac_delim
16179 +INTLLIBS!$INTLLIBS$ac_delim
16180 +INTLOBJS!$INTLOBJS$ac_delim
16181 +POFILES!$POFILES$ac_delim
16182 +POSUB!$POSUB$ac_delim
16183 +INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
16184 +GT_NO!$GT_NO$ac_delim
16185 +GT_YES!$GT_YES$ac_delim
16186 +MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16187 +l!$l$ac_delim
16188 +HDEFINES!$HDEFINES$ac_delim
16189 +BFD_HOST_64BIT_LONG!$BFD_HOST_64BIT_LONG$ac_delim
16190 +BFD_HOST_LONG_LONG!$BFD_HOST_LONG_LONG$ac_delim
16191 +BFD_HOST_64_BIT_DEFINED!$BFD_HOST_64_BIT_DEFINED$ac_delim
16192 +BFD_HOST_64_BIT!$BFD_HOST_64_BIT$ac_delim
16193 +BFD_HOST_U_64_BIT!$BFD_HOST_U_64_BIT$ac_delim
16194 +CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16195 +EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
16196 +COREFILE!$COREFILE$ac_delim
16197 +COREFLAG!$COREFLAG$ac_delim
16198 +WIN32LDFLAGS!$WIN32LDFLAGS$ac_delim
16199 +WIN32LIBADD!$WIN32LIBADD$ac_delim
16200 +TDEFINES!$TDEFINES$ac_delim
16201 +wordsize!$wordsize$ac_delim
16202 +bfd_libs!$bfd_libs$ac_delim
16203 +all_backends!$all_backends$ac_delim
16204 +bfd_backends!$bfd_backends$ac_delim
16205 +bfd_machines!$bfd_machines$ac_delim
16206 +bfd_default_target_size!$bfd_default_target_size$ac_delim
16207 +bfd_file_ptr!$bfd_file_ptr$ac_delim
16208 +bfd_ufile_ptr!$bfd_ufile_ptr$ac_delim
16209 +tdefaults!$tdefaults$ac_delim
16210 +LIBOBJS!$LIBOBJS$ac_delim
16211 +LTLIBOBJS!$LTLIBOBJS$ac_delim
16212 _ACEOF
16213 +
16214 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
16215 + break
16216 + elif $ac_last_try; then
16217 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16218 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16219 + { (exit 1); exit 1; }; }
16220 + else
16221 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16222 + fi
16223 +done
16224 +
16225 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16226 +if test -n "$ac_eof"; then
16227 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16228 + ac_eof=`expr $ac_eof + 1`
16229 +fi
16230 +
16231 +cat >>$CONFIG_STATUS <<_ACEOF
16232 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16233 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16234 +_ACEOF
16235 +sed '
16236 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16237 +s/^/s,@/; s/!/@,|#_!!_#|/
16238 +:n
16239 +t n
16240 +s/'"$ac_delim"'$/,g/; t
16241 +s/$/\\/; p
16242 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16243 +' >>$CONFIG_STATUS <conf$$subs.sed
16244 +rm -f conf$$subs.sed
16245 +cat >>$CONFIG_STATUS <<_ACEOF
16246 +:end
16247 +s/|#_!!_#|//g
16248 +CEOF$ac_eof
16249 +_ACEOF
16250 +
16251 +
16252 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
16253 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16254 +# trailing colons and then remove the whole line if VPATH becomes empty
16255 +# (actually we leave an empty line to preserve line numbers).
16256 +if test "x$srcdir" = x.; then
16257 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
16258 +s/:*\$(srcdir):*/:/
16259 +s/:*\${srcdir}:*/:/
16260 +s/:*@srcdir@:*/:/
16261 +s/^\([^=]*=[ ]*\):*/\1/
16262 +s/:*$//
16263 +s/^[^=]*=[ ]*$//
16264 +}'
16265 +fi
16266 +
16267 cat >>$CONFIG_STATUS <<\_ACEOF
16268 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16269 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16270 - case $ac_file in
16271 - - | *:- | *:-:* ) # input from stdin
16272 - cat >$tmp/stdin
16273 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16274 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16275 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16276 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16277 - * ) ac_file_in=$ac_file.in ;;
16278 +fi # test -n "$CONFIG_FILES"
16279 +
16280 +
16281 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16282 +do
16283 + case $ac_tag in
16284 + :[FHLC]) ac_mode=$ac_tag; continue;;
16285 + esac
16286 + case $ac_mode$ac_tag in
16287 + :[FHL]*:*);;
16288 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16289 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16290 + { (exit 1); exit 1; }; };;
16291 + :[FH]-) ac_tag=-:-;;
16292 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16293 + esac
16294 + ac_save_IFS=$IFS
16295 + IFS=:
16296 + set x $ac_tag
16297 + IFS=$ac_save_IFS
16298 + shift
16299 + ac_file=$1
16300 + shift
16301 +
16302 + case $ac_mode in
16303 + :L) ac_source=$1;;
16304 + :[FH])
16305 + ac_file_inputs=
16306 + for ac_f
16307 + do
16308 + case $ac_f in
16309 + -) ac_f="$tmp/stdin";;
16310 + *) # Look for the file first in the build tree, then in the source tree
16311 + # (if the path is not absolute). The absolute path cannot be DOS-style,
16312 + # because $ac_f cannot contain `:'.
16313 + test -f "$ac_f" ||
16314 + case $ac_f in
16315 + [\\/$]*) false;;
16316 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16317 + esac ||
16318 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16319 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16320 + { (exit 1); exit 1; }; };;
16321 + esac
16322 + ac_file_inputs="$ac_file_inputs $ac_f"
16323 + done
16324 +
16325 + # Let's still pretend it is `configure' which instantiates (i.e., don't
16326 + # use $as_me), people would be surprised to read:
16327 + # /* config.h. Generated by config.status. */
16328 + configure_input="Generated from "`IFS=:
16329 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16330 + if test x"$ac_file" != x-; then
16331 + configure_input="$ac_file. $configure_input"
16332 + { echo "$as_me:$LINENO: creating $ac_file" >&5
16333 +echo "$as_me: creating $ac_file" >&6;}
16334 + fi
16335 +
16336 + case $ac_tag in
16337 + *:-:* | *:-) cat >"$tmp/stdin";;
16338 + esac
16339 + ;;
16340 esac
16341
16342 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16343 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16344 + ac_dir=`$as_dirname -- "$ac_file" ||
16345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16346 X"$ac_file" : 'X\(//\)[^/]' \| \
16347 X"$ac_file" : 'X\(//\)$' \| \
16348 - X"$ac_file" : 'X\(/\)' \| \
16349 - . : '\(.\)' 2>/dev/null ||
16350 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16351 echo X"$ac_file" |
16352 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16353 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16354 - /^X\(\/\/\)$/{ s//\1/; q; }
16355 - /^X\(\/\).*/{ s//\1/; q; }
16356 - s/.*/./; q'`
16357 - { if $as_mkdir_p; then
16358 - mkdir -p "$ac_dir"
16359 - else
16360 - as_dir="$ac_dir"
16361 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16362 + s//\1/
16363 + q
16364 + }
16365 + /^X\(\/\/\)[^/].*/{
16366 + s//\1/
16367 + q
16368 + }
16369 + /^X\(\/\/\)$/{
16370 + s//\1/
16371 + q
16372 + }
16373 + /^X\(\/\).*/{
16374 + s//\1/
16375 + q
16376 + }
16377 + s/.*/./; q'`
16378 + { as_dir="$ac_dir"
16379 + case $as_dir in #(
16380 + -*) as_dir=./$as_dir;;
16381 + esac
16382 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16383 as_dirs=
16384 - while test ! -d "$as_dir"; do
16385 - as_dirs="$as_dir $as_dirs"
16386 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
16387 + while :; do
16388 + case $as_dir in #(
16389 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16390 + *) as_qdir=$as_dir;;
16391 + esac
16392 + as_dirs="'$as_qdir' $as_dirs"
16393 + as_dir=`$as_dirname -- "$as_dir" ||
16394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16395 X"$as_dir" : 'X\(//\)[^/]' \| \
16396 X"$as_dir" : 'X\(//\)$' \| \
16397 - X"$as_dir" : 'X\(/\)' \| \
16398 - . : '\(.\)' 2>/dev/null ||
16399 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16400 echo X"$as_dir" |
16401 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16402 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16403 - /^X\(\/\/\)$/{ s//\1/; q; }
16404 - /^X\(\/\).*/{ s//\1/; q; }
16405 - s/.*/./; q'`
16406 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16407 + s//\1/
16408 + q
16409 + }
16410 + /^X\(\/\/\)[^/].*/{
16411 + s//\1/
16412 + q
16413 + }
16414 + /^X\(\/\/\)$/{
16415 + s//\1/
16416 + q
16417 + }
16418 + /^X\(\/\).*/{
16419 + s//\1/
16420 + q
16421 + }
16422 + s/.*/./; q'`
16423 + test -d "$as_dir" && break
16424 done
16425 - test ! -n "$as_dirs" || mkdir $as_dirs
16426 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16427 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16428 + test -z "$as_dirs" || eval "mkdir $as_dirs"
16429 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16430 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
16431 { (exit 1); exit 1; }; }; }
16432 -
16433 ac_builddir=.
16434
16435 -if test "$ac_dir" != .; then
16436 +case "$ac_dir" in
16437 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16438 +*)
16439 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16440 - # A "../" for each directory in $ac_dir_suffix.
16441 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16442 -else
16443 - ac_dir_suffix= ac_top_builddir=
16444 -fi
16445 + # A ".." for each directory in $ac_dir_suffix.
16446 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16447 + case $ac_top_builddir_sub in
16448 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16449 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16450 + esac ;;
16451 +esac
16452 +ac_abs_top_builddir=$ac_pwd
16453 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
16454 +# for backward compatibility:
16455 +ac_top_builddir=$ac_top_build_prefix
16456
16457 case $srcdir in
16458 - .) # No --srcdir option. We are building in place.
16459 + .) # We are building in place.
16460 ac_srcdir=.
16461 - if test -z "$ac_top_builddir"; then
16462 - ac_top_srcdir=.
16463 - else
16464 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16465 - fi ;;
16466 - [\\/]* | ?:[\\/]* ) # Absolute path.
16467 + ac_top_srcdir=$ac_top_builddir_sub
16468 + ac_abs_top_srcdir=$ac_pwd ;;
16469 + [\\/]* | ?:[\\/]* ) # Absolute name.
16470 ac_srcdir=$srcdir$ac_dir_suffix;
16471 - ac_top_srcdir=$srcdir ;;
16472 - *) # Relative path.
16473 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16474 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
16475 -esac
16476 + ac_top_srcdir=$srcdir
16477 + ac_abs_top_srcdir=$srcdir ;;
16478 + *) # Relative name.
16479 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16480 + ac_top_srcdir=$ac_top_build_prefix$srcdir
16481 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16482 +esac
16483 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16484
16485 -# Do not use `cd foo && pwd` to compute absolute paths, because
16486 -# the directories may not exist.
16487 -case `pwd` in
16488 -.) ac_abs_builddir="$ac_dir";;
16489 -*)
16490 - case "$ac_dir" in
16491 - .) ac_abs_builddir=`pwd`;;
16492 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16493 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
16494 - esac;;
16495 -esac
16496 -case $ac_abs_builddir in
16497 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
16498 -*)
16499 - case ${ac_top_builddir}. in
16500 - .) ac_abs_top_builddir=$ac_abs_builddir;;
16501 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16502 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16503 - esac;;
16504 -esac
16505 -case $ac_abs_builddir in
16506 -.) ac_abs_srcdir=$ac_srcdir;;
16507 -*)
16508 - case $ac_srcdir in
16509 - .) ac_abs_srcdir=$ac_abs_builddir;;
16510 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16511 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16512 - esac;;
16513 -esac
16514 -case $ac_abs_builddir in
16515 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
16516 -*)
16517 - case $ac_top_srcdir in
16518 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
16519 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16520 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16521 - esac;;
16522 -esac
16523
16524 + case $ac_mode in
16525 + :F)
16526 + #
16527 + # CONFIG_FILE
16528 + #
16529
16530 case $INSTALL in
16531 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16532 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16533 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16534 esac
16535 +_ACEOF
16536
16537 - if test x"$ac_file" != x-; then
16538 - { echo "$as_me:$LINENO: creating $ac_file" >&5
16539 -echo "$as_me: creating $ac_file" >&6;}
16540 - rm -f "$ac_file"
16541 - fi
16542 - # Let's still pretend it is `configure' which instantiates (i.e., don't
16543 - # use $as_me), people would be surprised to read:
16544 - # /* config.h. Generated by config.status. */
16545 - if test x"$ac_file" = x-; then
16546 - configure_input=
16547 - else
16548 - configure_input="$ac_file. "
16549 - fi
16550 - configure_input=$configure_input"Generated from `echo $ac_file_in |
16551 - sed 's,.*/,,'` by configure."
16552 -
16553 - # First look for the input files in the build tree, otherwise in the
16554 - # src tree.
16555 - ac_file_inputs=`IFS=:
16556 - for f in $ac_file_in; do
16557 - case $f in
16558 - -) echo $tmp/stdin ;;
16559 - [\\/$]*)
16560 - # Absolute (can't be DOS-style, as IFS=:)
16561 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16562 -echo "$as_me: error: cannot find input file: $f" >&2;}
16563 - { (exit 1); exit 1; }; }
16564 - echo "$f";;
16565 - *) # Relative
16566 - if test -f "$f"; then
16567 - # Build tree
16568 - echo "$f"
16569 - elif test -f "$srcdir/$f"; then
16570 - # Source tree
16571 - echo "$srcdir/$f"
16572 - else
16573 - # /dev/null tree
16574 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16575 -echo "$as_me: error: cannot find input file: $f" >&2;}
16576 - { (exit 1); exit 1; }; }
16577 - fi;;
16578 - esac
16579 - done` || { (exit 1); exit 1; }
16580 +cat >>$CONFIG_STATUS <<\_ACEOF
16581 +# If the template does not know about datarootdir, expand it.
16582 +# FIXME: This hack should be removed a few years after 2.60.
16583 +ac_datarootdir_hack=; ac_datarootdir_seen=
16584 +
16585 +case `sed -n '/datarootdir/ {
16586 + p
16587 + q
16588 +}
16589 +/@datadir@/p
16590 +/@docdir@/p
16591 +/@infodir@/p
16592 +/@localedir@/p
16593 +/@mandir@/p
16594 +' $ac_file_inputs` in
16595 +*datarootdir*) ac_datarootdir_seen=yes;;
16596 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16597 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16598 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16599 +_ACEOF
16600 +cat >>$CONFIG_STATUS <<_ACEOF
16601 + ac_datarootdir_hack='
16602 + s&@datadir@&$datadir&g
16603 + s&@docdir@&$docdir&g
16604 + s&@infodir@&$infodir&g
16605 + s&@localedir@&$localedir&g
16606 + s&@mandir@&$mandir&g
16607 + s&\\\${datarootdir}&$datarootdir&g' ;;
16608 +esac
16609 _ACEOF
16610 +
16611 +# Neutralize VPATH when `$srcdir' = `.'.
16612 +# Shell code in configure.ac might set extrasub.
16613 +# FIXME: do we really want to maintain this feature?
16614 cat >>$CONFIG_STATUS <<_ACEOF
16615 sed "$ac_vpsub
16616 $extrasub
16617 @@ -15521,248 +15939,130 @@ _ACEOF
16618 cat >>$CONFIG_STATUS <<\_ACEOF
16619 :t
16620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16621 -s,@configure_input@,$configure_input,;t t
16622 -s,@srcdir@,$ac_srcdir,;t t
16623 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
16624 -s,@top_srcdir@,$ac_top_srcdir,;t t
16625 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16626 -s,@builddir@,$ac_builddir,;t t
16627 -s,@abs_builddir@,$ac_abs_builddir,;t t
16628 -s,@top_builddir@,$ac_top_builddir,;t t
16629 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16630 -s,@INSTALL@,$ac_INSTALL,;t t
16631 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16632 - rm -f $tmp/stdin
16633 - if test x"$ac_file" != x-; then
16634 - mv $tmp/out $ac_file
16635 - else
16636 - cat $tmp/out
16637 - rm -f $tmp/out
16638 - fi
16639 -
16640 -done
16641 -_ACEOF
16642 -cat >>$CONFIG_STATUS <<\_ACEOF
16643 -
16644 -#
16645 -# CONFIG_HEADER section.
16646 -#
16647 -
16648 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16649 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
16650 -#
16651 -# ac_d sets the value in "#define NAME VALUE" lines.
16652 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16653 -ac_dB='[ ].*$,\1#\2'
16654 -ac_dC=' '
16655 -ac_dD=',;t'
16656 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16657 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16658 -ac_uB='$,\1#\2define\3'
16659 -ac_uC=' '
16660 -ac_uD=',;t'
16661 +s&@configure_input@&$configure_input&;t t
16662 +s&@top_builddir@&$ac_top_builddir_sub&;t t
16663 +s&@srcdir@&$ac_srcdir&;t t
16664 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
16665 +s&@top_srcdir@&$ac_top_srcdir&;t t
16666 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16667 +s&@builddir@&$ac_builddir&;t t
16668 +s&@abs_builddir@&$ac_abs_builddir&;t t
16669 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16670 +s&@INSTALL@&$ac_INSTALL&;t t
16671 +$ac_datarootdir_hack
16672 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16673 +
16674 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16675 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16676 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16677 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16678 +which seems to be undefined. Please make sure it is defined." >&5
16679 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16680 +which seems to be undefined. Please make sure it is defined." >&2;}
16681
16682 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16683 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16684 + rm -f "$tmp/stdin"
16685 case $ac_file in
16686 - - | *:- | *:-:* ) # input from stdin
16687 - cat >$tmp/stdin
16688 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16689 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16690 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16691 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16692 - * ) ac_file_in=$ac_file.in ;;
16693 + -) cat "$tmp/out"; rm -f "$tmp/out";;
16694 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16695 esac
16696 + ;;
16697 + :H)
16698 + #
16699 + # CONFIG_HEADER
16700 + #
16701 +_ACEOF
16702 +
16703 +# Transform confdefs.h into a sed script `conftest.defines', that
16704 +# substitutes the proper values into config.h.in to produce config.h.
16705 +rm -f conftest.defines conftest.tail
16706 +# First, append a space to every undef/define line, to ease matching.
16707 +echo 's/$/ /' >conftest.defines
16708 +# Then, protect against being on the right side of a sed subst, or in
16709 +# an unquoted here document, in config.status. If some macros were
16710 +# called several times there might be several #defines for the same
16711 +# symbol, which is useless. But do not sort them, since the last
16712 +# AC_DEFINE must be honored.
16713 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16714 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16715 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
16716 +# PARAMS is the parameter list in the macro definition--in most cases, it's
16717 +# just an empty string.
16718 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16719 +ac_dB='\\)[ (].*,\\1define\\2'
16720 +ac_dC=' '
16721 +ac_dD=' ,'
16722
16723 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16724 -echo "$as_me: creating $ac_file" >&6;}
16725 -
16726 - # First look for the input files in the build tree, otherwise in the
16727 - # src tree.
16728 - ac_file_inputs=`IFS=:
16729 - for f in $ac_file_in; do
16730 - case $f in
16731 - -) echo $tmp/stdin ;;
16732 - [\\/$]*)
16733 - # Absolute (can't be DOS-style, as IFS=:)
16734 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16735 -echo "$as_me: error: cannot find input file: $f" >&2;}
16736 - { (exit 1); exit 1; }; }
16737 - # Do quote $f, to prevent DOS paths from being IFS'd.
16738 - echo "$f";;
16739 - *) # Relative
16740 - if test -f "$f"; then
16741 - # Build tree
16742 - echo "$f"
16743 - elif test -f "$srcdir/$f"; then
16744 - # Source tree
16745 - echo "$srcdir/$f"
16746 - else
16747 - # /dev/null tree
16748 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16749 -echo "$as_me: error: cannot find input file: $f" >&2;}
16750 - { (exit 1); exit 1; }; }
16751 - fi;;
16752 - esac
16753 - done` || { (exit 1); exit 1; }
16754 - # Remove the trailing spaces.
16755 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16756 -
16757 -_ACEOF
16758 -
16759 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
16760 -# `conftest.undefs', that substitutes the proper values into
16761 -# config.h.in to produce config.h. The first handles `#define'
16762 -# templates, and the second `#undef' templates.
16763 -# And first: Protect against being on the right side of a sed subst in
16764 -# config.status. Protect against being in an unquoted here document
16765 -# in config.status.
16766 -rm -f conftest.defines conftest.undefs
16767 -# Using a here document instead of a string reduces the quoting nightmare.
16768 -# Putting comments in sed scripts is not portable.
16769 -#
16770 -# `end' is used to avoid that the second main sed command (meant for
16771 -# 0-ary CPP macros) applies to n-ary macro definitions.
16772 -# See the Autoconf documentation for `clear'.
16773 -cat >confdef2sed.sed <<\_ACEOF
16774 -s/[\\&,]/\\&/g
16775 -s,[\\$`],\\&,g
16776 -t clear
16777 -: clear
16778 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16779 -t end
16780 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16781 -: end
16782 -_ACEOF
16783 -# If some macros were called several times there might be several times
16784 -# the same #defines, which is useless. Nevertheless, we may not want to
16785 -# sort them, since we want the *last* AC-DEFINE to be honored.
16786 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16787 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16788 -rm -f confdef2sed.sed
16789 +uniq confdefs.h |
16790 + sed -n '
16791 + t rset
16792 + :rset
16793 + s/^[ ]*#[ ]*define[ ][ ]*//
16794 + t ok
16795 + d
16796 + :ok
16797 + s/[\\&,]/\\&/g
16798 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16799 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16800 + ' >>conftest.defines
16801
16802 -# This sed command replaces #undef with comments. This is necessary, for
16803 +# Remove the space that was appended to ease matching.
16804 +# Then replace #undef with comments. This is necessary, for
16805 # example, in the case of _POSIX_SOURCE, which is predefined and required
16806 # on some systems where configure will not decide to define it.
16807 -cat >>conftest.undefs <<\_ACEOF
16808 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16809 +# (The regexp can be short, since the line contains either #define or #undef.)
16810 +echo 's/ $//
16811 +s,^[ #]*u.*,/* & */,' >>conftest.defines
16812 +
16813 +# Break up conftest.defines:
16814 +ac_max_sed_lines=50
16815 +
16816 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16817 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16818 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16819 +# et cetera.
16820 +ac_in='$ac_file_inputs'
16821 +ac_out='"$tmp/out1"'
16822 +ac_nxt='"$tmp/out2"'
16823 +
16824 +while :
16825 +do
16826 + # Write a here document:
16827 + cat >>$CONFIG_STATUS <<_ACEOF
16828 + # First, check the format of the line:
16829 + cat >"\$tmp/defines.sed" <<\\CEOF
16830 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16831 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16832 +b
16833 +:def
16834 _ACEOF
16835 -
16836 -# Break up conftest.defines because some shells have a limit on the size
16837 -# of here documents, and old seds have small limits too (100 cmds).
16838 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16839 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16840 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16841 -echo ' :' >>$CONFIG_STATUS
16842 -rm -f conftest.tail
16843 -while grep . conftest.defines >/dev/null
16844 -do
16845 - # Write a limited-size here document to $tmp/defines.sed.
16846 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16847 - # Speed up: don't consider the non `#define' lines.
16848 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16849 - # Work around the forget-to-reset-the-flag bug.
16850 - echo 't clr' >>$CONFIG_STATUS
16851 - echo ': clr' >>$CONFIG_STATUS
16852 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16853 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16854 echo 'CEOF
16855 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
16856 - rm -f $tmp/in
16857 - mv $tmp/out $tmp/in
16858 -' >>$CONFIG_STATUS
16859 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16860 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16861 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16862 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16863 + grep . conftest.tail >/dev/null || break
16864 rm -f conftest.defines
16865 mv conftest.tail conftest.defines
16866 done
16867 -rm -f conftest.defines
16868 -echo ' fi # grep' >>$CONFIG_STATUS
16869 -echo >>$CONFIG_STATUS
16870 -
16871 -# Break up conftest.undefs because some shells have a limit on the size
16872 -# of here documents, and old seds have small limits too (100 cmds).
16873 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16874 -rm -f conftest.tail
16875 -while grep . conftest.undefs >/dev/null
16876 -do
16877 - # Write a limited-size here document to $tmp/undefs.sed.
16878 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16879 - # Speed up: don't consider the non `#undef'
16880 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16881 - # Work around the forget-to-reset-the-flag bug.
16882 - echo 't clr' >>$CONFIG_STATUS
16883 - echo ': clr' >>$CONFIG_STATUS
16884 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16885 - echo 'CEOF
16886 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16887 - rm -f $tmp/in
16888 - mv $tmp/out $tmp/in
16889 -' >>$CONFIG_STATUS
16890 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16891 - rm -f conftest.undefs
16892 - mv conftest.tail conftest.undefs
16893 -done
16894 -rm -f conftest.undefs
16895 +rm -f conftest.defines conftest.tail
16896
16897 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
16898 cat >>$CONFIG_STATUS <<\_ACEOF
16899 - # Let's still pretend it is `configure' which instantiates (i.e., don't
16900 - # use $as_me), people would be surprised to read:
16901 - # /* config.h. Generated by config.status. */
16902 - if test x"$ac_file" = x-; then
16903 - echo "/* Generated by configure. */" >$tmp/config.h
16904 - else
16905 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16906 - fi
16907 - cat $tmp/in >>$tmp/config.h
16908 - rm -f $tmp/in
16909 if test x"$ac_file" != x-; then
16910 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16911 + echo "/* $configure_input */" >"$tmp/config.h"
16912 + cat "$ac_result" >>"$tmp/config.h"
16913 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16914 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16915 echo "$as_me: $ac_file is unchanged" >&6;}
16916 else
16917 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16918 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16919 - X"$ac_file" : 'X\(//\)[^/]' \| \
16920 - X"$ac_file" : 'X\(//\)$' \| \
16921 - X"$ac_file" : 'X\(/\)' \| \
16922 - . : '\(.\)' 2>/dev/null ||
16923 -echo X"$ac_file" |
16924 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16925 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16926 - /^X\(\/\/\)$/{ s//\1/; q; }
16927 - /^X\(\/\).*/{ s//\1/; q; }
16928 - s/.*/./; q'`
16929 - { if $as_mkdir_p; then
16930 - mkdir -p "$ac_dir"
16931 - else
16932 - as_dir="$ac_dir"
16933 - as_dirs=
16934 - while test ! -d "$as_dir"; do
16935 - as_dirs="$as_dir $as_dirs"
16936 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
16937 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16938 - X"$as_dir" : 'X\(//\)[^/]' \| \
16939 - X"$as_dir" : 'X\(//\)$' \| \
16940 - X"$as_dir" : 'X\(/\)' \| \
16941 - . : '\(.\)' 2>/dev/null ||
16942 -echo X"$as_dir" |
16943 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16944 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16945 - /^X\(\/\/\)$/{ s//\1/; q; }
16946 - /^X\(\/\).*/{ s//\1/; q; }
16947 - s/.*/./; q'`
16948 - done
16949 - test ! -n "$as_dirs" || mkdir $as_dirs
16950 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16951 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16952 - { (exit 1); exit 1; }; }; }
16953 -
16954 rm -f $ac_file
16955 - mv $tmp/config.h $ac_file
16956 + mv "$tmp/config.h" $ac_file
16957 fi
16958 else
16959 - cat $tmp/config.h
16960 - rm -f $tmp/config.h
16961 + echo "/* $configure_input */"
16962 + cat "$ac_result"
16963 fi
16964 + rm -f "$tmp/out12"
16965 # Compute $ac_file's index in $config_headers.
16966 _am_stamp_count=1
16967 for _am_header in $config_headers :; do
16968 @@ -15773,135 +16073,39 @@ for _am_header in $config_headers :; do
16969 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16970 esac
16971 done
16972 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16973 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
16974 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16975 X$ac_file : 'X\(//\)[^/]' \| \
16976 X$ac_file : 'X\(//\)$' \| \
16977 - X$ac_file : 'X\(/\)' \| \
16978 - . : '\(.\)' 2>/dev/null ||
16979 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
16980 echo X$ac_file |
16981 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16982 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16983 - /^X\(\/\/\)$/{ s//\1/; q; }
16984 - /^X\(\/\).*/{ s//\1/; q; }
16985 - s/.*/./; q'`/stamp-h$_am_stamp_count
16986 -done
16987 -_ACEOF
16988 -cat >>$CONFIG_STATUS <<\_ACEOF
16989 -
16990 -#
16991 -# CONFIG_COMMANDS section.
16992 -#
16993 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16994 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16995 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16996 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16997 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16998 - X"$ac_dest" : 'X\(//\)[^/]' \| \
16999 - X"$ac_dest" : 'X\(//\)$' \| \
17000 - X"$ac_dest" : 'X\(/\)' \| \
17001 - . : '\(.\)' 2>/dev/null ||
17002 -echo X"$ac_dest" |
17003 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17004 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17005 - /^X\(\/\/\)$/{ s//\1/; q; }
17006 - /^X\(\/\).*/{ s//\1/; q; }
17007 - s/.*/./; q'`
17008 - { if $as_mkdir_p; then
17009 - mkdir -p "$ac_dir"
17010 - else
17011 - as_dir="$ac_dir"
17012 - as_dirs=
17013 - while test ! -d "$as_dir"; do
17014 - as_dirs="$as_dir $as_dirs"
17015 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
17016 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17017 - X"$as_dir" : 'X\(//\)[^/]' \| \
17018 - X"$as_dir" : 'X\(//\)$' \| \
17019 - X"$as_dir" : 'X\(/\)' \| \
17020 - . : '\(.\)' 2>/dev/null ||
17021 -echo X"$as_dir" |
17022 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17023 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17024 - /^X\(\/\/\)$/{ s//\1/; q; }
17025 - /^X\(\/\).*/{ s//\1/; q; }
17026 - s/.*/./; q'`
17027 - done
17028 - test ! -n "$as_dirs" || mkdir $as_dirs
17029 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17030 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17031 - { (exit 1); exit 1; }; }; }
17032 -
17033 - ac_builddir=.
17034 -
17035 -if test "$ac_dir" != .; then
17036 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17037 - # A "../" for each directory in $ac_dir_suffix.
17038 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17039 -else
17040 - ac_dir_suffix= ac_top_builddir=
17041 -fi
17042 -
17043 -case $srcdir in
17044 - .) # No --srcdir option. We are building in place.
17045 - ac_srcdir=.
17046 - if test -z "$ac_top_builddir"; then
17047 - ac_top_srcdir=.
17048 - else
17049 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17050 - fi ;;
17051 - [\\/]* | ?:[\\/]* ) # Absolute path.
17052 - ac_srcdir=$srcdir$ac_dir_suffix;
17053 - ac_top_srcdir=$srcdir ;;
17054 - *) # Relative path.
17055 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17056 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
17057 -esac
17058 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17059 + s//\1/
17060 + q
17061 + }
17062 + /^X\(\/\/\)[^/].*/{
17063 + s//\1/
17064 + q
17065 + }
17066 + /^X\(\/\/\)$/{
17067 + s//\1/
17068 + q
17069 + }
17070 + /^X\(\/\).*/{
17071 + s//\1/
17072 + q
17073 + }
17074 + s/.*/./; q'`/stamp-h$_am_stamp_count
17075 + ;;
17076
17077 -# Do not use `cd foo && pwd` to compute absolute paths, because
17078 -# the directories may not exist.
17079 -case `pwd` in
17080 -.) ac_abs_builddir="$ac_dir";;
17081 -*)
17082 - case "$ac_dir" in
17083 - .) ac_abs_builddir=`pwd`;;
17084 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17085 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
17086 - esac;;
17087 -esac
17088 -case $ac_abs_builddir in
17089 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
17090 -*)
17091 - case ${ac_top_builddir}. in
17092 - .) ac_abs_top_builddir=$ac_abs_builddir;;
17093 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17094 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17095 - esac;;
17096 -esac
17097 -case $ac_abs_builddir in
17098 -.) ac_abs_srcdir=$ac_srcdir;;
17099 -*)
17100 - case $ac_srcdir in
17101 - .) ac_abs_srcdir=$ac_abs_builddir;;
17102 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17103 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17104 - esac;;
17105 -esac
17106 -case $ac_abs_builddir in
17107 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
17108 -*)
17109 - case $ac_top_srcdir in
17110 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
17111 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17112 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17113 - esac;;
17114 -esac
17115 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17116 +echo "$as_me: executing $ac_file commands" >&6;}
17117 + ;;
17118 + esac
17119
17120
17121 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17122 -echo "$as_me: executing $ac_dest commands" >&6;}
17123 - case $ac_dest in
17124 - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17125 + case $ac_file$ac_mode in
17126 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17127 # Strip MF so we end up with the name of the file.
17128 mf=`echo "$mf" | sed -e 's/:.*$//'`
17129 # Check whether this is an Automake generated Makefile or not.
17130 @@ -15911,18 +16115,29 @@ echo "$as_me: executing $ac_dest command
17131 # each Makefile.in and add a new line on top of each file to say so.
17132 # So let's grep whole file.
17133 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17134 - dirpart=`(dirname "$mf") 2>/dev/null ||
17135 + dirpart=`$as_dirname -- "$mf" ||
17136 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17137 X"$mf" : 'X\(//\)[^/]' \| \
17138 X"$mf" : 'X\(//\)$' \| \
17139 - X"$mf" : 'X\(/\)' \| \
17140 - . : '\(.\)' 2>/dev/null ||
17141 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17142 echo X"$mf" |
17143 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17144 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17145 - /^X\(\/\/\)$/{ s//\1/; q; }
17146 - /^X\(\/\).*/{ s//\1/; q; }
17147 - s/.*/./; q'`
17148 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17149 + s//\1/
17150 + q
17151 + }
17152 + /^X\(\/\/\)[^/].*/{
17153 + s//\1/
17154 + q
17155 + }
17156 + /^X\(\/\/\)$/{
17157 + s//\1/
17158 + q
17159 + }
17160 + /^X\(\/\).*/{
17161 + s//\1/
17162 + q
17163 + }
17164 + s/.*/./; q'`
17165 else
17166 continue
17167 fi
17168 @@ -15944,54 +16159,80 @@ echo X"$mf" |
17169 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17170 # Make sure the directory exists.
17171 test -f "$dirpart/$file" && continue
17172 - fdir=`(dirname "$file") 2>/dev/null ||
17173 + fdir=`$as_dirname -- "$file" ||
17174 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17175 X"$file" : 'X\(//\)[^/]' \| \
17176 X"$file" : 'X\(//\)$' \| \
17177 - X"$file" : 'X\(/\)' \| \
17178 - . : '\(.\)' 2>/dev/null ||
17179 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17180 echo X"$file" |
17181 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17182 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17183 - /^X\(\/\/\)$/{ s//\1/; q; }
17184 - /^X\(\/\).*/{ s//\1/; q; }
17185 - s/.*/./; q'`
17186 - { if $as_mkdir_p; then
17187 - mkdir -p $dirpart/$fdir
17188 - else
17189 - as_dir=$dirpart/$fdir
17190 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17191 + s//\1/
17192 + q
17193 + }
17194 + /^X\(\/\/\)[^/].*/{
17195 + s//\1/
17196 + q
17197 + }
17198 + /^X\(\/\/\)$/{
17199 + s//\1/
17200 + q
17201 + }
17202 + /^X\(\/\).*/{
17203 + s//\1/
17204 + q
17205 + }
17206 + s/.*/./; q'`
17207 + { as_dir=$dirpart/$fdir
17208 + case $as_dir in #(
17209 + -*) as_dir=./$as_dir;;
17210 + esac
17211 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17212 as_dirs=
17213 - while test ! -d "$as_dir"; do
17214 - as_dirs="$as_dir $as_dirs"
17215 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
17216 + while :; do
17217 + case $as_dir in #(
17218 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17219 + *) as_qdir=$as_dir;;
17220 + esac
17221 + as_dirs="'$as_qdir' $as_dirs"
17222 + as_dir=`$as_dirname -- "$as_dir" ||
17223 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17224 X"$as_dir" : 'X\(//\)[^/]' \| \
17225 X"$as_dir" : 'X\(//\)$' \| \
17226 - X"$as_dir" : 'X\(/\)' \| \
17227 - . : '\(.\)' 2>/dev/null ||
17228 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17229 echo X"$as_dir" |
17230 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17231 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17232 - /^X\(\/\/\)$/{ s//\1/; q; }
17233 - /^X\(\/\).*/{ s//\1/; q; }
17234 - s/.*/./; q'`
17235 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17236 + s//\1/
17237 + q
17238 + }
17239 + /^X\(\/\/\)[^/].*/{
17240 + s//\1/
17241 + q
17242 + }
17243 + /^X\(\/\/\)$/{
17244 + s//\1/
17245 + q
17246 + }
17247 + /^X\(\/\).*/{
17248 + s//\1/
17249 + q
17250 + }
17251 + s/.*/./; q'`
17252 + test -d "$as_dir" && break
17253 done
17254 - test ! -n "$as_dirs" || mkdir $as_dirs
17255 - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17256 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17257 + test -z "$as_dirs" || eval "mkdir $as_dirs"
17258 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17259 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
17260 { (exit 1); exit 1; }; }; }
17261 -
17262 # echo "creating $dirpart/$file"
17263 echo '# dummy' > "$dirpart/$file"
17264 done
17265 done
17266 ;;
17267 - default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
17268 + "default":C) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
17269 +
17270 esac
17271 -done
17272 -_ACEOF
17273 +done # for ac_tag
17274
17275 -cat >>$CONFIG_STATUS <<\_ACEOF
17276
17277 { (exit 0); exit 0; }
17278 _ACEOF
17279 --- /dev/null
17280 +++ b/bfd/cpu-avr32.c
17281 @@ -0,0 +1,49 @@
17282 +/* BFD library support routines for AVR32.
17283 + Copyright 2003-2006 Atmel Corporation.
17284 +
17285 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
17286 +
17287 + This is part of BFD, the Binary File Descriptor library.
17288 +
17289 + This program is free software; you can redistribute it and/or modify
17290 + it under the terms of the GNU General Public License as published by
17291 + the Free Software Foundation; either version 2 of the License, or
17292 + (at your option) any later version.
17293 +
17294 + This program is distributed in the hope that it will be useful,
17295 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17296 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17297 + GNU General Public License for more details.
17298 +
17299 + You should have received a copy of the GNU General Public License
17300 + along with this program; if not, write to the Free Software
17301 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17302 +
17303 +#include "bfd.h"
17304 +#include "sysdep.h"
17305 +#include "libbfd.h"
17306 +
17307 +#define N(machine, print, default, next) \
17308 + { \
17309 + 32, /* 32 bits in a word */ \
17310 + 32, /* 32 bits in an address */ \
17311 + 8, /* 8 bits in a byte */ \
17312 + bfd_arch_avr32, /* architecture */ \
17313 + machine, /* machine */ \
17314 + "avr32", /* arch name */ \
17315 + print, /* printable name */ \
17316 + 1, /* section align power */ \
17317 + default, /* the default machine? */ \
17318 + bfd_default_compatible, \
17319 + bfd_default_scan, \
17320 + next, \
17321 + }
17322 +
17323 +static const bfd_arch_info_type cpu_info[] =
17324 +{
17325 + N(bfd_mach_avr32_ap, "avr32:ap", FALSE, &cpu_info[1]),
17326 + N(bfd_mach_avr32_uc, "avr32:uc", FALSE, NULL),
17327 +};
17328 +
17329 +const bfd_arch_info_type bfd_avr32_arch =
17330 + N(bfd_mach_avr32_ap, "avr32", TRUE, &cpu_info[0]);
17331 --- a/bfd/doc/bfd.info
17332 +++ b/bfd/doc/bfd.info
17333 @@ -1,5 +1,7 @@
17334 -This is ../.././bfd/doc/bfd.info, produced by makeinfo version 4.8 from
17335 -../.././bfd/doc/bfd.texinfo.
17336 +This is
17337 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/bfd/doc/bfd.info,
17338 +produced by makeinfo version 4.8 from
17339 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/bfd/doc/bfd.texinfo.
17340
17341 START-INFO-DIR-ENTRY
17342 * Bfd: (bfd). The Binary File Descriptor library.
17343 @@ -10239,67 +10241,67 @@ Index
17344
17345 \1f
17346 Tag Table:
17347 -Node: Top\7f724
17348 -Node: Overview\7f1056
17349 -Node: History\7f2107
17350 -Node: How It Works\7f3053
17351 -Node: What BFD Version 2 Can Do\7f4595
17352 -Node: BFD information loss\7f5910
17353 -Node: Canonical format\7f8442
17354 -Node: BFD front end\7f12814
17355 -Node: Memory Usage\7f38428
17356 -Node: Initialization\7f39656
17357 -Node: Sections\7f40115
17358 -Node: Section Input\7f40598
17359 -Node: Section Output\7f41963
17360 -Node: typedef asection\7f44449
17361 -Node: section prototypes\7f69406
17362 -Node: Symbols\7f79086
17363 -Node: Reading Symbols\7f80681
17364 -Node: Writing Symbols\7f81788
17365 -Node: Mini Symbols\7f83497
17366 -Node: typedef asymbol\7f84471
17367 -Node: symbol handling functions\7f89389
17368 -Node: Archives\7f94731
17369 -Node: Formats\7f98457
17370 -Node: Relocations\7f101405
17371 -Node: typedef arelent\7f102132
17372 -Node: howto manager\7f117943
17373 -Node: Core Files\7f180223
17374 -Node: Targets\7f182040
17375 -Node: bfd_target\7f184010
17376 -Node: Architectures\7f204090
17377 -Node: Opening and Closing\7f225522
17378 -Node: Internal\7f236524
17379 -Node: File Caching\7f242857
17380 -Node: Linker Functions\7f244771
17381 -Node: Creating a Linker Hash Table\7f246444
17382 -Node: Adding Symbols to the Hash Table\7f248182
17383 -Node: Differing file formats\7f249082
17384 -Node: Adding symbols from an object file\7f250830
17385 -Node: Adding symbols from an archive\7f252981
17386 -Node: Performing the Final Link\7f255395
17387 -Node: Information provided by the linker\7f256637
17388 -Node: Relocating the section contents\7f257791
17389 -Node: Writing the symbol table\7f259542
17390 -Node: Hash Tables\7f262535
17391 -Node: Creating and Freeing a Hash Table\7f263733
17392 -Node: Looking Up or Entering a String\7f264983
17393 -Node: Traversing a Hash Table\7f266236
17394 -Node: Deriving a New Hash Table Type\7f267025
17395 -Node: Define the Derived Structures\7f268091
17396 -Node: Write the Derived Creation Routine\7f269172
17397 -Node: Write Other Derived Routines\7f271796
17398 -Node: BFD back ends\7f273111
17399 -Node: What to Put Where\7f273381
17400 -Node: aout\7f273519
17401 -Node: coff\7f279837
17402 -Node: elf\7f304314
17403 -Node: mmo\7f305177
17404 -Node: File layout\7f306105
17405 -Node: Symbol-table\7f311752
17406 -Node: mmo section mapping\7f315521
17407 -Node: GNU Free Documentation License\7f319173
17408 -Node: Index\7f338898
17409 +Node: Top\7f858
17410 +Node: Overview\7f1190
17411 +Node: History\7f2241
17412 +Node: How It Works\7f3187
17413 +Node: What BFD Version 2 Can Do\7f4729
17414 +Node: BFD information loss\7f6044
17415 +Node: Canonical format\7f8576
17416 +Node: BFD front end\7f12948
17417 +Node: Memory Usage\7f38562
17418 +Node: Initialization\7f39790
17419 +Node: Sections\7f40249
17420 +Node: Section Input\7f40732
17421 +Node: Section Output\7f42097
17422 +Node: typedef asection\7f44583
17423 +Node: section prototypes\7f69540
17424 +Node: Symbols\7f79220
17425 +Node: Reading Symbols\7f80815
17426 +Node: Writing Symbols\7f81922
17427 +Node: Mini Symbols\7f83631
17428 +Node: typedef asymbol\7f84605
17429 +Node: symbol handling functions\7f89523
17430 +Node: Archives\7f94865
17431 +Node: Formats\7f98591
17432 +Node: Relocations\7f101539
17433 +Node: typedef arelent\7f102266
17434 +Node: howto manager\7f118077
17435 +Node: Core Files\7f180357
17436 +Node: Targets\7f182174
17437 +Node: bfd_target\7f184144
17438 +Node: Architectures\7f204224
17439 +Node: Opening and Closing\7f225656
17440 +Node: Internal\7f236658
17441 +Node: File Caching\7f242991
17442 +Node: Linker Functions\7f244905
17443 +Node: Creating a Linker Hash Table\7f246578
17444 +Node: Adding Symbols to the Hash Table\7f248316
17445 +Node: Differing file formats\7f249216
17446 +Node: Adding symbols from an object file\7f250964
17447 +Node: Adding symbols from an archive\7f253115
17448 +Node: Performing the Final Link\7f255529
17449 +Node: Information provided by the linker\7f256771
17450 +Node: Relocating the section contents\7f257925
17451 +Node: Writing the symbol table\7f259676
17452 +Node: Hash Tables\7f262669
17453 +Node: Creating and Freeing a Hash Table\7f263867
17454 +Node: Looking Up or Entering a String\7f265117
17455 +Node: Traversing a Hash Table\7f266370
17456 +Node: Deriving a New Hash Table Type\7f267159
17457 +Node: Define the Derived Structures\7f268225
17458 +Node: Write the Derived Creation Routine\7f269306
17459 +Node: Write Other Derived Routines\7f271930
17460 +Node: BFD back ends\7f273245
17461 +Node: What to Put Where\7f273515
17462 +Node: aout\7f273653
17463 +Node: coff\7f279971
17464 +Node: elf\7f304448
17465 +Node: mmo\7f305311
17466 +Node: File layout\7f306239
17467 +Node: Symbol-table\7f311886
17468 +Node: mmo section mapping\7f315655
17469 +Node: GNU Free Documentation License\7f319307
17470 +Node: Index\7f339032
17471 \1f
17472 End Tag Table
17473 --- a/bfd/doc/Makefile.in
17474 +++ b/bfd/doc/Makefile.in
17475 @@ -1,4 +1,4 @@
17476 -# Makefile.in generated by automake 1.9.5 from Makefile.am.
17477 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
17478 # @configure_input@
17479
17480 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
17481 @@ -105,6 +105,7 @@ EXEEXT = @EXEEXT@
17482 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
17483 GMOFILES = @GMOFILES@
17484 GMSGFMT = @GMSGFMT@
17485 +GREP = @GREP@
17486 GT_NO = @GT_NO@
17487 GT_YES = @GT_YES@
17488 HDEFINES = @HDEFINES@
17489 @@ -154,10 +155,7 @@ WARN_CFLAGS = @WARN_CFLAGS@
17490 WIN32LDFLAGS = @WIN32LDFLAGS@
17491 WIN32LIBADD = @WIN32LIBADD@
17492 XGETTEXT = @XGETTEXT@
17493 -ac_ct_AR = @ac_ct_AR@
17494 ac_ct_CC = @ac_ct_CC@
17495 -ac_ct_RANLIB = @ac_ct_RANLIB@
17496 -ac_ct_STRIP = @ac_ct_STRIP@
17497 all_backends = @all_backends@
17498 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
17499 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
17500 @@ -183,6 +181,7 @@ build_vendor = @build_vendor@
17501 datadir = @datadir@
17502 datarootdir = @datarootdir@
17503 docdir = @docdir@
17504 +dvidir = @dvidir@
17505 exec_prefix = @exec_prefix@
17506 host = @host@
17507 host_alias = @host_alias@
17508 @@ -197,12 +196,15 @@ install_sh = @install_sh@
17509 l = @l@
17510 libdir = @libdir@
17511 libexecdir = @libexecdir@
17512 +localedir = @localedir@
17513 localstatedir = @localstatedir@
17514 mandir = @mandir@
17515 mkdir_p = @mkdir_p@
17516 oldincludedir = @oldincludedir@
17517 +pdfdir = @pdfdir@
17518 prefix = @prefix@
17519 program_transform_name = @program_transform_name@
17520 +psdir = @psdir@
17521 sbindir = @sbindir@
17522 sharedstatedir = @sharedstatedir@
17523 sysconfdir = @sysconfdir@
17524 @@ -364,9 +366,11 @@ distclean-libtool:
17525 restore=: && backupdir="$(am__leading_dot)am$$$$" && \
17526 am__cwd=`pwd` && cd $(srcdir) && \
17527 rm -rf $$backupdir && mkdir $$backupdir && \
17528 - for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
17529 - if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
17530 - done; \
17531 + if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
17532 + for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
17533 + if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
17534 + done; \
17535 + else :; fi && \
17536 cd "$$am__cwd"; \
17537 if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
17538 -o $@ $<; \
17539 @@ -408,6 +412,7 @@ bfd.dvi: bfd.texinfo
17540 bfd.pdf: bfd.texinfo
17541 bfd.html: bfd.texinfo
17542 .dvi.ps:
17543 + TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
17544 $(DVIPS) -o $@ $<
17545
17546 uninstall-info-am:
17547 @@ -440,10 +445,13 @@ dist-info: $(INFO_DEPS)
17548 $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
17549 esac; \
17550 if test -f $$base; then d=.; else d=$(srcdir); fi; \
17551 - for file in $$d/$$base*; do \
17552 - relfile=`expr "$$file" : "$$d/\(.*\)"`; \
17553 - test -f $(distdir)/$$relfile || \
17554 - cp -p $$file $(distdir)/$$relfile; \
17555 + base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
17556 + for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
17557 + if test -f $$file; then \
17558 + relfile=`expr "$$file" : "$$d/\(.*\)"`; \
17559 + test -f $(distdir)/$$relfile || \
17560 + cp -p $$file $(distdir)/$$relfile; \
17561 + else :; fi; \
17562 done; \
17563 done
17564
17565 --- /dev/null
17566 +++ b/bfd/elf32-avr32.c
17567 @@ -0,0 +1,3881 @@
17568 +/* AVR32-specific support for 32-bit ELF.
17569 + Copyright 2003-2006 Atmel Corporation.
17570 +
17571 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
17572 +
17573 + This file is part of BFD, the Binary File Descriptor library.
17574 +
17575 + This program is free software; you can redistribute it and/or modify
17576 + it under the terms of the GNU General Public License as published by
17577 + the Free Software Foundation; either version 2 of the License, or
17578 + (at your option) any later version.
17579 +
17580 + This program is distributed in the hope that it will be useful,
17581 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17582 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17583 + GNU General Public License for more details.
17584 +
17585 + You should have received a copy of the GNU General Public License
17586 + along with this program; if not, write to the Free Software
17587 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17588 +
17589 +#include "bfd.h"
17590 +#include "sysdep.h"
17591 +#include "bfdlink.h"
17592 +#include "libbfd.h"
17593 +#include "elf-bfd.h"
17594 +#include "elf/avr32.h"
17595 +#include "elf32-avr32.h"
17596 +
17597 +#define xDEBUG
17598 +#define xRELAX_DEBUG
17599 +
17600 +#ifdef DEBUG
17601 +# define pr_debug(fmt, args...) fprintf(stderr, fmt, ##args)
17602 +#else
17603 +# define pr_debug(fmt, args...) do { } while (0)
17604 +#endif
17605 +
17606 +#ifdef RELAX_DEBUG
17607 +# define RDBG(fmt, args...) fprintf(stderr, fmt, ##args)
17608 +#else
17609 +# define RDBG(fmt, args...) do { } while (0)
17610 +#endif
17611 +
17612 +/* When things go wrong, we want it to blow up, damnit! */
17613 +#undef BFD_ASSERT
17614 +#undef abort
17615 +#define BFD_ASSERT(expr) \
17616 + do \
17617 + { \
17618 + if (!(expr)) \
17619 + { \
17620 + bfd_assert(__FILE__, __LINE__); \
17621 + abort(); \
17622 + } \
17623 + } \
17624 + while (0)
17625 +
17626 +/* The name of the dynamic interpreter. This is put in the .interp section. */
17627 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
17628 +
17629 +#define AVR32_GOT_HEADER_SIZE 8
17630 +#define AVR32_FUNCTION_STUB_SIZE 8
17631 +
17632 +#define ELF_R_INFO(x, y) ELF32_R_INFO(x, y)
17633 +#define ELF_R_TYPE(x) ELF32_R_TYPE(x)
17634 +#define ELF_R_SYM(x) ELF32_R_SYM(x)
17635 +
17636 +#define NOP_OPCODE 0xd703
17637 +
17638 +\f
17639 +/* Mapping between BFD relocations and ELF relocations */
17640 +
17641 +static reloc_howto_type *
17642 +bfd_elf32_bfd_reloc_type_lookup(bfd *abfd, bfd_reloc_code_real_type code);
17643 +static void
17644 +avr32_info_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst);
17645 +
17646 +/* Generic HOWTO */
17647 +#define GENH(name, align, size, bitsize, pcrel, bitpos, complain, mask) \
17648 + HOWTO(name, align, size, bitsize, pcrel, bitpos, \
17649 + complain_overflow_##complain, bfd_elf_generic_reloc, #name, \
17650 + FALSE, 0, mask, pcrel)
17651 +
17652 +static reloc_howto_type elf_avr32_howto_table[] = {
17653 + /* NAME ALN SZ BSZ PCREL BP COMPLAIN MASK */
17654 + GENH(R_AVR32_NONE, 0, 0, 0, FALSE, 0, dont, 0x00000000),
17655 +
17656 + GENH(R_AVR32_32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17657 + GENH(R_AVR32_16, 0, 1, 16, FALSE, 0, bitfield, 0x0000ffff),
17658 + GENH(R_AVR32_8, 0, 0, 8, FALSE, 0, bitfield, 0x000000ff),
17659 + GENH(R_AVR32_32_PCREL, 0, 2, 32, TRUE, 0, signed, 0xffffffff),
17660 + GENH(R_AVR32_16_PCREL, 0, 1, 16, TRUE, 0, signed, 0x0000ffff),
17661 + GENH(R_AVR32_8_PCREL, 0, 0, 8, TRUE, 0, signed, 0x000000ff),
17662 +
17663 + /* Difference between two symbol (sym2 - sym1). The reloc encodes
17664 + the value of sym1. The field contains the difference before any
17665 + relaxing is done. */
17666 + GENH(R_AVR32_DIFF32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17667 + GENH(R_AVR32_DIFF16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
17668 + GENH(R_AVR32_DIFF8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
17669 +
17670 + GENH(R_AVR32_GOT32, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
17671 + GENH(R_AVR32_GOT16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
17672 + GENH(R_AVR32_GOT8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
17673 +
17674 + GENH(R_AVR32_21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17675 + GENH(R_AVR32_16U, 0, 2, 16, FALSE, 0, unsigned, 0x0000ffff),
17676 + GENH(R_AVR32_16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
17677 + GENH(R_AVR32_8S, 0, 1, 8, FALSE, 4, signed, 0x00000ff0),
17678 + GENH(R_AVR32_8S_EXT, 0, 2, 8, FALSE, 0, signed, 0x000000ff),
17679 +
17680 + GENH(R_AVR32_22H_PCREL, 1, 2, 21, TRUE, 0, signed, 0x1e10ffff),
17681 + GENH(R_AVR32_18W_PCREL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
17682 + GENH(R_AVR32_16B_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
17683 + GENH(R_AVR32_16N_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
17684 + GENH(R_AVR32_14UW_PCREL, 2, 2, 12, TRUE, 0, unsigned, 0x0000f0ff),
17685 + GENH(R_AVR32_11H_PCREL, 1, 1, 10, TRUE, 4, signed, 0x00000ff3),
17686 + GENH(R_AVR32_10UW_PCREL, 2, 2, 8, TRUE, 0, unsigned, 0x000000ff),
17687 + GENH(R_AVR32_9H_PCREL, 1, 1, 8, TRUE, 4, signed, 0x00000ff0),
17688 + GENH(R_AVR32_9UW_PCREL, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
17689 +
17690 + GENH(R_AVR32_HI16, 16, 2, 16, FALSE, 0, dont, 0x0000ffff),
17691 + GENH(R_AVR32_LO16, 0, 2, 16, FALSE, 0, dont, 0x0000ffff),
17692 +
17693 + GENH(R_AVR32_GOTPC, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17694 + GENH(R_AVR32_GOTCALL, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17695 + GENH(R_AVR32_LDA_GOT, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17696 + GENH(R_AVR32_GOT21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17697 + GENH(R_AVR32_GOT18SW, 2, 2, 16, FALSE, 0, signed, 0x0000ffff),
17698 + GENH(R_AVR32_GOT16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
17699 + GENH(R_AVR32_GOT7UW, 2, 1, 5, FALSE, 4, unsigned, 0x000001f0),
17700 +
17701 + GENH(R_AVR32_32_CPENT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17702 + GENH(R_AVR32_CPCALL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
17703 + GENH(R_AVR32_16_CP, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
17704 + GENH(R_AVR32_9W_CP, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
17705 +
17706 + GENH(R_AVR32_RELATIVE, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
17707 + GENH(R_AVR32_GLOB_DAT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17708 + GENH(R_AVR32_JMP_SLOT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17709 +
17710 + GENH(R_AVR32_ALIGN, 0, 1, 0, FALSE, 0, unsigned, 0x00000000),
17711 +};
17712 +
17713 +struct elf_reloc_map
17714 +{
17715 + bfd_reloc_code_real_type bfd_reloc_val;
17716 + unsigned char elf_reloc_val;
17717 +};
17718 +
17719 +static const struct elf_reloc_map avr32_reloc_map[] =
17720 +{
17721 + { BFD_RELOC_NONE, R_AVR32_NONE },
17722 +
17723 + { BFD_RELOC_32, R_AVR32_32 },
17724 + { BFD_RELOC_16, R_AVR32_16 },
17725 + { BFD_RELOC_8, R_AVR32_8 },
17726 + { BFD_RELOC_32_PCREL, R_AVR32_32_PCREL },
17727 + { BFD_RELOC_16_PCREL, R_AVR32_16_PCREL },
17728 + { BFD_RELOC_8_PCREL, R_AVR32_8_PCREL },
17729 + { BFD_RELOC_AVR32_DIFF32, R_AVR32_DIFF32 },
17730 + { BFD_RELOC_AVR32_DIFF16, R_AVR32_DIFF16 },
17731 + { BFD_RELOC_AVR32_DIFF8, R_AVR32_DIFF8 },
17732 + { BFD_RELOC_AVR32_GOT32, R_AVR32_GOT32 },
17733 + { BFD_RELOC_AVR32_GOT16, R_AVR32_GOT16 },
17734 + { BFD_RELOC_AVR32_GOT8, R_AVR32_GOT8 },
17735 +
17736 + { BFD_RELOC_AVR32_21S, R_AVR32_21S },
17737 + { BFD_RELOC_AVR32_16U, R_AVR32_16U },
17738 + { BFD_RELOC_AVR32_16S, R_AVR32_16S },
17739 + { BFD_RELOC_AVR32_SUB5, R_AVR32_16S },
17740 + { BFD_RELOC_AVR32_8S_EXT, R_AVR32_8S_EXT },
17741 + { BFD_RELOC_AVR32_8S, R_AVR32_8S },
17742 +
17743 + { BFD_RELOC_AVR32_22H_PCREL, R_AVR32_22H_PCREL },
17744 + { BFD_RELOC_AVR32_18W_PCREL, R_AVR32_18W_PCREL },
17745 + { BFD_RELOC_AVR32_16B_PCREL, R_AVR32_16B_PCREL },
17746 + { BFD_RELOC_AVR32_16N_PCREL, R_AVR32_16N_PCREL },
17747 + { BFD_RELOC_AVR32_11H_PCREL, R_AVR32_11H_PCREL },
17748 + { BFD_RELOC_AVR32_10UW_PCREL, R_AVR32_10UW_PCREL },
17749 + { BFD_RELOC_AVR32_9H_PCREL, R_AVR32_9H_PCREL },
17750 + { BFD_RELOC_AVR32_9UW_PCREL, R_AVR32_9UW_PCREL },
17751 +
17752 + { BFD_RELOC_HI16, R_AVR32_HI16 },
17753 + { BFD_RELOC_LO16, R_AVR32_LO16 },
17754 +
17755 + { BFD_RELOC_AVR32_GOTPC, R_AVR32_GOTPC },
17756 + { BFD_RELOC_AVR32_GOTCALL, R_AVR32_GOTCALL },
17757 + { BFD_RELOC_AVR32_LDA_GOT, R_AVR32_LDA_GOT },
17758 + { BFD_RELOC_AVR32_GOT21S, R_AVR32_GOT21S },
17759 + { BFD_RELOC_AVR32_GOT18SW, R_AVR32_GOT18SW },
17760 + { BFD_RELOC_AVR32_GOT16S, R_AVR32_GOT16S },
17761 + /* GOT7UW should never be generated by the assembler */
17762 +
17763 + { BFD_RELOC_AVR32_32_CPENT, R_AVR32_32_CPENT },
17764 + { BFD_RELOC_AVR32_CPCALL, R_AVR32_CPCALL },
17765 + { BFD_RELOC_AVR32_16_CP, R_AVR32_16_CP },
17766 + { BFD_RELOC_AVR32_9W_CP, R_AVR32_9W_CP },
17767 +
17768 + { BFD_RELOC_AVR32_ALIGN, R_AVR32_ALIGN },
17769 +};
17770 +
17771 +static reloc_howto_type *
17772 +bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
17773 + bfd_reloc_code_real_type code)
17774 +{
17775 + unsigned int i;
17776 +
17777 + for (i = 0; i < sizeof(avr32_reloc_map) / sizeof(struct elf_reloc_map); i++)
17778 + {
17779 + if (avr32_reloc_map[i].bfd_reloc_val == code)
17780 + return &elf_avr32_howto_table[avr32_reloc_map[i].elf_reloc_val];
17781 + }
17782 +
17783 + return NULL;
17784 +}
17785 +
17786 +static void
17787 +avr32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
17788 + arelent *cache_ptr,
17789 + Elf_Internal_Rela *dst)
17790 +{
17791 + unsigned int r_type;
17792 +
17793 + r_type = ELF32_R_TYPE (dst->r_info);
17794 + BFD_ASSERT (r_type < (unsigned int) R_AVR32_max);
17795 + cache_ptr->howto = &elf_avr32_howto_table[r_type];
17796 +}
17797 +
17798 +\f
17799 +/* AVR32 ELF linker hash table and associated hash entries. */
17800 +
17801 +static struct bfd_hash_entry *
17802 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
17803 + struct bfd_hash_table *table,
17804 + const char *string);
17805 +static void
17806 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
17807 + struct elf_link_hash_entry *dir,
17808 + struct elf_link_hash_entry *ind);
17809 +static struct bfd_link_hash_table *
17810 +avr32_elf_link_hash_table_create(bfd *abfd);
17811 +
17812 +/*
17813 + Try to limit memory usage to something reasonable when sorting the
17814 + GOT. If we ever get more than this many references to the same
17815 + symbol, we may need to do something special.
17816 +*/
17817 +#define MAX_NR_GOT_HOLES 8192
17818 +
17819 +/*
17820 + AVR32 GOT entry. We need to keep track of refcounts and offsets
17821 + simultaneously, since we need the offsets during relaxation, and we
17822 + also want to be able to drop GOT entries during relaxation. In
17823 + addition to this, we want to keep the list of GOT entries sorted so
17824 + that we can keep the most-used entries at the lowest offsets.
17825 +*/
17826 +struct got_entry
17827 +{
17828 + struct got_entry *next;
17829 + struct got_entry **pprev;
17830 + int refcount;
17831 + bfd_signed_vma offset;
17832 +};
17833 +
17834 +struct elf_avr32_link_hash_entry
17835 +{
17836 + struct elf_link_hash_entry root;
17837 +
17838 + /* Number of runtime relocations against this symbol. */
17839 + unsigned int possibly_dynamic_relocs;
17840 +
17841 + /* If there are anything but R_AVR32_GOT18 relocations against this
17842 + symbol, it means that someone may be taking the address of the
17843 + function, and we should therefore not create a stub. */
17844 + bfd_boolean no_fn_stub;
17845 +
17846 + /* If there is a R_AVR32_32 relocation in a read-only section
17847 + against this symbol, we could be in trouble. If we're linking a
17848 + shared library or this symbol is defined in one, it means we must
17849 + emit a run-time reloc for it and that's not allowed in read-only
17850 + sections. */
17851 + asection *readonly_reloc_sec;
17852 + bfd_vma readonly_reloc_offset;
17853 +
17854 + /* Record which frag (if any) contains the symbol. This is used
17855 + during relaxation in order to avoid having to update all symbols
17856 + whenever we move something. For local symbols, this information
17857 + is in the local_sym_frag member of struct elf_obj_tdata. */
17858 + struct fragment *sym_frag;
17859 +};
17860 +#define avr32_elf_hash_entry(ent) ((struct elf_avr32_link_hash_entry *)(ent))
17861 +
17862 +struct elf_avr32_link_hash_table
17863 +{
17864 + struct elf_link_hash_table root;
17865 +
17866 + /* Shortcuts to get to dynamic linker sections. */
17867 + asection *sgot;
17868 + asection *srelgot;
17869 + asection *sstub;
17870 +
17871 + /* We use a variation of Pigeonhole Sort to sort the GOT. After the
17872 + initial refcounts have been determined, we initialize
17873 + nr_got_holes to the highest refcount ever seen and allocate an
17874 + array of nr_got_holes entries for got_hole. Each GOT entry is
17875 + then stored in this array at the index given by its refcount.
17876 +
17877 + When a GOT entry has its refcount decremented during relaxation,
17878 + it is moved to a lower index in the got_hole array.
17879 + */
17880 + struct got_entry **got_hole;
17881 + int nr_got_holes;
17882 +
17883 + /* Dynamic relocations to local symbols. Only used when linking a
17884 + shared library and -Bsymbolic is not given. */
17885 + unsigned int local_dynamic_relocs;
17886 +
17887 + bfd_boolean relocations_analyzed;
17888 + bfd_boolean symbols_adjusted;
17889 + bfd_boolean repeat_pass;
17890 + bfd_boolean direct_data_refs;
17891 + unsigned int relax_iteration;
17892 + unsigned int relax_pass;
17893 +};
17894 +#define avr32_elf_hash_table(p) \
17895 + ((struct elf_avr32_link_hash_table *)((p)->hash))
17896 +
17897 +static struct bfd_hash_entry *
17898 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
17899 + struct bfd_hash_table *table,
17900 + const char *string)
17901 +{
17902 + struct elf_avr32_link_hash_entry *ret = avr32_elf_hash_entry(entry);
17903 +
17904 + /* Allocate the structure if it hasn't already been allocated by a
17905 + subclass */
17906 + if (ret == NULL)
17907 + ret = (struct elf_avr32_link_hash_entry *)
17908 + bfd_hash_allocate(table, sizeof(struct elf_avr32_link_hash_entry));
17909 +
17910 + if (ret == NULL)
17911 + return NULL;
17912 +
17913 + memset(ret, 0, sizeof(struct elf_avr32_link_hash_entry));
17914 +
17915 + /* Give the superclass a chance */
17916 + ret = (struct elf_avr32_link_hash_entry *)
17917 + _bfd_elf_link_hash_newfunc((struct bfd_hash_entry *)ret, table, string);
17918 +
17919 + return (struct bfd_hash_entry *)ret;
17920 +}
17921 +
17922 +/* Copy data from an indirect symbol to its direct symbol, hiding the
17923 + old indirect symbol. Process additional relocation information.
17924 + Also called for weakdefs, in which case we just let
17925 + _bfd_elf_link_hash_copy_indirect copy the flags for us. */
17926 +
17927 +static void
17928 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
17929 + struct elf_link_hash_entry *dir,
17930 + struct elf_link_hash_entry *ind)
17931 +{
17932 + struct elf_avr32_link_hash_entry *edir, *eind;
17933 +
17934 + _bfd_elf_link_hash_copy_indirect (info, dir, ind);
17935 +
17936 + if (ind->root.type != bfd_link_hash_indirect)
17937 + return;
17938 +
17939 + edir = (struct elf_avr32_link_hash_entry *)dir;
17940 + eind = (struct elf_avr32_link_hash_entry *)ind;
17941 +
17942 + edir->possibly_dynamic_relocs += eind->possibly_dynamic_relocs;
17943 + edir->no_fn_stub = edir->no_fn_stub || eind->no_fn_stub;
17944 +}
17945 +
17946 +static struct bfd_link_hash_table *
17947 +avr32_elf_link_hash_table_create(bfd *abfd)
17948 +{
17949 + struct elf_avr32_link_hash_table *ret;
17950 +
17951 + ret = bfd_zmalloc(sizeof(*ret));
17952 + if (ret == NULL)
17953 + return NULL;
17954 +
17955 + if (! _bfd_elf_link_hash_table_init(&ret->root, abfd,
17956 + avr32_elf_link_hash_newfunc,
17957 + sizeof (struct elf_avr32_link_hash_entry)))
17958 + {
17959 + free(ret);
17960 + return NULL;
17961 + }
17962 +
17963 + /* Prevent the BFD core from creating bogus got_entry pointers */
17964 + ret->root.init_got_refcount.glist = NULL;
17965 + ret->root.init_plt_refcount.glist = NULL;
17966 + ret->root.init_got_offset.glist = NULL;
17967 + ret->root.init_plt_offset.glist = NULL;
17968 +
17969 + return &ret->root.root;
17970 +}
17971 +
17972 +\f
17973 +/* Initial analysis and creation of dynamic sections and symbols */
17974 +
17975 +static asection *
17976 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
17977 + unsigned int align_power);
17978 +static struct elf_link_hash_entry *
17979 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
17980 + const char *name, asection *sec,
17981 + bfd_vma offset);
17982 +static bfd_boolean
17983 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info);
17984 +static bfd_boolean
17985 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info);
17986 +static bfd_boolean
17987 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
17988 + const Elf_Internal_Rela *relocs);
17989 +static bfd_boolean
17990 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
17991 + struct elf_link_hash_entry *h);
17992 +
17993 +static asection *
17994 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
17995 + unsigned int align_power)
17996 +{
17997 + asection *sec;
17998 +
17999 + sec = bfd_make_section(dynobj, name);
18000 + if (!sec
18001 + || !bfd_set_section_flags(dynobj, sec, flags)
18002 + || !bfd_set_section_alignment(dynobj, sec, align_power))
18003 + return NULL;
18004 +
18005 + return sec;
18006 +}
18007 +
18008 +static struct elf_link_hash_entry *
18009 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
18010 + const char *name, asection *sec,
18011 + bfd_vma offset)
18012 +{
18013 + struct bfd_link_hash_entry *bh = NULL;
18014 + struct elf_link_hash_entry *h;
18015 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
18016 +
18017 + if (!(_bfd_generic_link_add_one_symbol
18018 + (info, dynobj, name, BSF_GLOBAL, sec, offset, NULL, FALSE,
18019 + bed->collect, &bh)))
18020 + return NULL;
18021 +
18022 + h = (struct elf_link_hash_entry *)bh;
18023 + h->def_regular = 1;
18024 + h->type = STT_OBJECT;
18025 + h->other = STV_HIDDEN;
18026 +
18027 + return h;
18028 +}
18029 +
18030 +static bfd_boolean
18031 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info)
18032 +{
18033 + struct elf_avr32_link_hash_table *htab;
18034 + flagword flags;
18035 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
18036 +
18037 + htab = avr32_elf_hash_table(info);
18038 + flags = bed->dynamic_sec_flags;
18039 +
18040 + if (htab->sgot)
18041 + return TRUE;
18042 +
18043 + htab->sgot = create_dynamic_section(dynobj, ".got", flags, 2);
18044 + if (!htab->srelgot)
18045 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
18046 + flags | SEC_READONLY, 2);
18047 +
18048 + if (!htab->sgot || !htab->srelgot)
18049 + return FALSE;
18050 +
18051 + htab->root.hgot = create_dynamic_symbol(dynobj, info, "_GLOBAL_OFFSET_TABLE_",
18052 + htab->sgot, 0);
18053 + if (!htab->root.hgot)
18054 + return FALSE;
18055 +
18056 + /* Make room for the GOT header */
18057 + htab->sgot->size += bed->got_header_size;
18058 +
18059 + return TRUE;
18060 +}
18061 +
18062 +/* (1) Create all dynamic (i.e. linker generated) sections that we may
18063 + need during the link */
18064 +
18065 +static bfd_boolean
18066 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
18067 +{
18068 + struct elf_avr32_link_hash_table *htab;
18069 + flagword flags;
18070 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
18071 +
18072 + pr_debug("(1) create dynamic sections\n");
18073 +
18074 + htab = avr32_elf_hash_table(info);
18075 + flags = bed->dynamic_sec_flags;
18076 +
18077 + if (!avr32_elf_create_got_section (dynobj, info))
18078 + return FALSE;
18079 +
18080 + if (!htab->sstub)
18081 + htab->sstub = create_dynamic_section(dynobj, ".stub",
18082 + flags | SEC_READONLY | SEC_CODE, 2);
18083 +
18084 + if (!htab->sstub)
18085 + return FALSE;
18086 +
18087 + return TRUE;
18088 +}
18089 +
18090 +/* (2) Go through all the relocs and count any potential GOT- or
18091 + PLT-references to each symbol */
18092 +
18093 +static bfd_boolean
18094 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
18095 + const Elf_Internal_Rela *relocs)
18096 +{
18097 + Elf_Internal_Shdr *symtab_hdr;
18098 + struct elf_avr32_link_hash_table *htab;
18099 + struct elf_link_hash_entry **sym_hashes;
18100 + const Elf_Internal_Rela *rel, *rel_end;
18101 + struct got_entry **local_got_ents;
18102 + struct got_entry *got;
18103 + const struct elf_backend_data *bed = get_elf_backend_data (abfd);
18104 + asection *sgot;
18105 + bfd *dynobj;
18106 +
18107 + pr_debug("(2) check relocs for %s:<%s> (size 0x%lx)\n",
18108 + abfd->filename, sec->name, sec->size);
18109 +
18110 + if (info->relocatable)
18111 + return TRUE;
18112 +
18113 + dynobj = elf_hash_table(info)->dynobj;
18114 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
18115 + sym_hashes = elf_sym_hashes(abfd);
18116 + htab = avr32_elf_hash_table(info);
18117 + local_got_ents = elf_local_got_ents(abfd);
18118 + sgot = htab->sgot;
18119 +
18120 + rel_end = relocs + sec->reloc_count;
18121 + for (rel = relocs; rel < rel_end; rel++)
18122 + {
18123 + unsigned long r_symndx, r_type;
18124 + struct elf_avr32_link_hash_entry *h;
18125 +
18126 + r_symndx = ELF32_R_SYM(rel->r_info);
18127 + r_type = ELF32_R_TYPE(rel->r_info);
18128 +
18129 + /* Local symbols use local_got_ents, while others store the same
18130 + information in the hash entry */
18131 + if (r_symndx < symtab_hdr->sh_info)
18132 + {
18133 + pr_debug(" (2a) processing local symbol %lu\n", r_symndx);
18134 + h = NULL;
18135 + }
18136 + else
18137 + {
18138 + h = (struct elf_avr32_link_hash_entry *)
18139 + sym_hashes[r_symndx - symtab_hdr->sh_info];
18140 + while (h->root.type == bfd_link_hash_indirect
18141 + || h->root.type == bfd_link_hash_warning)
18142 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
18143 + pr_debug(" (2a) processing symbol %s\n", h->root.root.root.string);
18144 + }
18145 +
18146 + /* Some relocs require special sections to be created. */
18147 + switch (r_type)
18148 + {
18149 + case R_AVR32_GOT32:
18150 + case R_AVR32_GOT16:
18151 + case R_AVR32_GOT8:
18152 + case R_AVR32_GOT21S:
18153 + case R_AVR32_GOT18SW:
18154 + case R_AVR32_GOT16S:
18155 + case R_AVR32_GOT7UW:
18156 + case R_AVR32_LDA_GOT:
18157 + case R_AVR32_GOTCALL:
18158 + if (rel->r_addend)
18159 + {
18160 + if (info->callbacks->reloc_dangerous
18161 + (info, _("Non-zero addend on GOT-relative relocation"),
18162 + abfd, sec, rel->r_offset) == FALSE)
18163 + return FALSE;
18164 + }
18165 + /* fall through */
18166 + case R_AVR32_GOTPC:
18167 + if (dynobj == NULL)
18168 + elf_hash_table(info)->dynobj = dynobj = abfd;
18169 + if (sgot == NULL && !avr32_elf_create_got_section(dynobj, info))
18170 + return FALSE;
18171 + break;
18172 + case R_AVR32_32:
18173 + /* We may need to create .rela.dyn later on. */
18174 + if (dynobj == NULL
18175 + && (info->shared || h != NULL)
18176 + && (sec->flags & SEC_ALLOC))
18177 + elf_hash_table(info)->dynobj = dynobj = abfd;
18178 + break;
18179 + }
18180 +
18181 + if (h != NULL && r_type != R_AVR32_GOT18SW)
18182 + h->no_fn_stub = TRUE;
18183 +
18184 + switch (r_type)
18185 + {
18186 + case R_AVR32_GOT32:
18187 + case R_AVR32_GOT16:
18188 + case R_AVR32_GOT8:
18189 + case R_AVR32_GOT21S:
18190 + case R_AVR32_GOT18SW:
18191 + case R_AVR32_GOT16S:
18192 + case R_AVR32_GOT7UW:
18193 + case R_AVR32_LDA_GOT:
18194 + case R_AVR32_GOTCALL:
18195 + if (h != NULL)
18196 + {
18197 + got = h->root.got.glist;
18198 + if (!got)
18199 + {
18200 + got = bfd_zalloc(abfd, sizeof(struct got_entry));
18201 + if (!got)
18202 + return FALSE;
18203 + h->root.got.glist = got;
18204 + }
18205 + }
18206 + else
18207 + {
18208 + if (!local_got_ents)
18209 + {
18210 + bfd_size_type size;
18211 + bfd_size_type i;
18212 + struct got_entry *tmp_entry;
18213 +
18214 + size = symtab_hdr->sh_info;
18215 + size *= sizeof(struct got_entry *) + sizeof(struct got_entry);
18216 + local_got_ents = bfd_zalloc(abfd, size);
18217 + if (!local_got_ents)
18218 + return FALSE;
18219 +
18220 + elf_local_got_ents(abfd) = local_got_ents;
18221 +
18222 + tmp_entry = (struct got_entry *)(local_got_ents
18223 + + symtab_hdr->sh_info);
18224 + for (i = 0; i < symtab_hdr->sh_info; i++)
18225 + local_got_ents[i] = &tmp_entry[i];
18226 + }
18227 +
18228 + got = local_got_ents[r_symndx];
18229 + }
18230 +
18231 + got->refcount++;
18232 + if (got->refcount > htab->nr_got_holes)
18233 + htab->nr_got_holes = got->refcount;
18234 + break;
18235 +
18236 + case R_AVR32_32:
18237 + if ((info->shared || h != NULL)
18238 + && (sec->flags & SEC_ALLOC))
18239 + {
18240 + if (htab->srelgot == NULL)
18241 + {
18242 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
18243 + bed->dynamic_sec_flags
18244 + | SEC_READONLY, 2);
18245 + if (htab->srelgot == NULL)
18246 + return FALSE;
18247 + }
18248 +
18249 + if (sec->flags & SEC_READONLY
18250 + && !h->readonly_reloc_sec)
18251 + {
18252 + h->readonly_reloc_sec = sec;
18253 + h->readonly_reloc_offset = rel->r_offset;
18254 + }
18255 +
18256 + if (h != NULL)
18257 + {
18258 + pr_debug("Non-GOT reference to symbol %s\n",
18259 + h->root.root.root.string);
18260 + h->possibly_dynamic_relocs++;
18261 + }
18262 + else
18263 + {
18264 + pr_debug("Non-GOT reference to local symbol %lu\n",
18265 + r_symndx);
18266 + htab->local_dynamic_relocs++;
18267 + }
18268 + }
18269 +
18270 + break;
18271 +
18272 + /* TODO: GNU_VTINHERIT and GNU_VTENTRY */
18273 + }
18274 + }
18275 +
18276 + return TRUE;
18277 +}
18278 +
18279 +/* (3) Adjust a symbol defined by a dynamic object and referenced by a
18280 + regular object. The current definition is in some section of the
18281 + dynamic object, but we're not including those sections. We have to
18282 + change the definition to something the rest of the link can
18283 + understand. */
18284 +
18285 +static bfd_boolean
18286 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
18287 + struct elf_link_hash_entry *h)
18288 +{
18289 + struct elf_avr32_link_hash_table *htab;
18290 + struct elf_avr32_link_hash_entry *havr;
18291 + bfd *dynobj;
18292 +
18293 + pr_debug("(3) adjust dynamic symbol %s\n", h->root.root.string);
18294 +
18295 + htab = avr32_elf_hash_table(info);
18296 + havr = (struct elf_avr32_link_hash_entry *)h;
18297 + dynobj = elf_hash_table(info)->dynobj;
18298 +
18299 + /* Make sure we know what is going on here. */
18300 + BFD_ASSERT (dynobj != NULL
18301 + && (h->u.weakdef != NULL
18302 + || (h->def_dynamic
18303 + && h->ref_regular
18304 + && !h->def_regular)));
18305 +
18306 + /* We don't want dynamic relocations in read-only sections. */
18307 + if (havr->readonly_reloc_sec)
18308 + {
18309 + if (info->callbacks->reloc_dangerous
18310 + (info, _("dynamic relocation in read-only section"),
18311 + havr->readonly_reloc_sec->owner, havr->readonly_reloc_sec,
18312 + havr->readonly_reloc_offset) == FALSE)
18313 + return FALSE;
18314 + }
18315 +
18316 + /* If this is a function, create a stub if possible and set the
18317 + symbol to the stub location. */
18318 + if (0 && !havr->no_fn_stub)
18319 + {
18320 + if (!h->def_regular)
18321 + {
18322 + asection *s = htab->sstub;
18323 +
18324 + BFD_ASSERT(s != NULL);
18325 +
18326 + h->root.u.def.section = s;
18327 + h->root.u.def.value = s->size;
18328 + h->plt.offset = s->size;
18329 + s->size += AVR32_FUNCTION_STUB_SIZE;
18330 +
18331 + return TRUE;
18332 + }
18333 + }
18334 + else if (h->type == STT_FUNC)
18335 + {
18336 + /* This will set the entry for this symbol in the GOT to 0, and
18337 + the dynamic linker will take care of this. */
18338 + h->root.u.def.value = 0;
18339 + return TRUE;
18340 + }
18341 +
18342 + /* If this is a weak symbol, and there is a real definition, the
18343 + processor independent code will have arranged for us to see the
18344 + real definition first, and we can just use the same value. */
18345 + if (h->u.weakdef != NULL)
18346 + {
18347 + BFD_ASSERT(h->u.weakdef->root.type == bfd_link_hash_defined
18348 + || h->u.weakdef->root.type == bfd_link_hash_defweak);
18349 + h->root.u.def.section = h->u.weakdef->root.u.def.section;
18350 + h->root.u.def.value = h->u.weakdef->root.u.def.value;
18351 + return TRUE;
18352 + }
18353 +
18354 + /* This is a reference to a symbol defined by a dynamic object which
18355 + is not a function. */
18356 +
18357 + return TRUE;
18358 +}
18359 +
18360 +\f
18361 +/* Garbage-collection of unused sections */
18362 +
18363 +static asection *
18364 +avr32_elf_gc_mark_hook(asection *sec,
18365 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
18366 + Elf_Internal_Rela *rel,
18367 + struct elf_link_hash_entry *h,
18368 + Elf_Internal_Sym *sym)
18369 +{
18370 + if (h)
18371 + {
18372 + switch (ELF32_R_TYPE(rel->r_info))
18373 + {
18374 + /* TODO: VTINHERIT/VTENTRY */
18375 + default:
18376 + switch (h->root.type)
18377 + {
18378 + case bfd_link_hash_defined:
18379 + case bfd_link_hash_defweak:
18380 + return h->root.u.def.section;
18381 +
18382 + case bfd_link_hash_common:
18383 + return h->root.u.c.p->section;
18384 +
18385 + default:
18386 + break;
18387 + }
18388 + }
18389 + }
18390 + else
18391 + return bfd_section_from_elf_index(sec->owner, sym->st_shndx);
18392 +
18393 + return NULL;
18394 +}
18395 +
18396 +/* Update the GOT entry reference counts for the section being removed. */
18397 +static bfd_boolean
18398 +avr32_elf_gc_sweep_hook(bfd *abfd,
18399 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
18400 + asection *sec,
18401 + const Elf_Internal_Rela *relocs)
18402 +{
18403 + Elf_Internal_Shdr *symtab_hdr;
18404 + struct elf_avr32_link_hash_entry **sym_hashes;
18405 + struct got_entry **local_got_ents;
18406 + const Elf_Internal_Rela *rel, *relend;
18407 +
18408 + if (!(sec->flags & SEC_ALLOC))
18409 + return TRUE;
18410 +
18411 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
18412 + sym_hashes = (struct elf_avr32_link_hash_entry **)elf_sym_hashes(abfd);
18413 + local_got_ents = elf_local_got_ents(abfd);
18414 +
18415 + relend = relocs + sec->reloc_count;
18416 + for (rel = relocs; rel < relend; rel++)
18417 + {
18418 + unsigned long r_symndx;
18419 + unsigned int r_type;
18420 + struct elf_avr32_link_hash_entry *h = NULL;
18421 +
18422 + r_symndx = ELF32_R_SYM(rel->r_info);
18423 + if (r_symndx >= symtab_hdr->sh_info)
18424 + {
18425 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
18426 + while (h->root.root.type == bfd_link_hash_indirect
18427 + || h->root.root.type == bfd_link_hash_warning)
18428 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
18429 + }
18430 +
18431 + r_type = ELF32_R_TYPE(rel->r_info);
18432 +
18433 + switch (r_type)
18434 + {
18435 + case R_AVR32_GOT32:
18436 + case R_AVR32_GOT16:
18437 + case R_AVR32_GOT8:
18438 + case R_AVR32_GOT21S:
18439 + case R_AVR32_GOT18SW:
18440 + case R_AVR32_GOT16S:
18441 + case R_AVR32_GOT7UW:
18442 + case R_AVR32_LDA_GOT:
18443 + case R_AVR32_GOTCALL:
18444 + if (h)
18445 + h->root.got.glist->refcount--;
18446 + else
18447 + local_got_ents[r_symndx]->refcount--;
18448 + break;
18449 +
18450 + case R_AVR32_32:
18451 + if (info->shared || h)
18452 + {
18453 + if (h)
18454 + h->possibly_dynamic_relocs--;
18455 + else
18456 + avr32_elf_hash_table(info)->local_dynamic_relocs--;
18457 + }
18458 +
18459 + default:
18460 + break;
18461 + }
18462 + }
18463 +
18464 + return TRUE;
18465 +}
18466 +\f
18467 +/* Sizing and refcounting of dynamic sections */
18468 +
18469 +static void
18470 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
18471 +static void
18472 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
18473 +static void
18474 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
18475 +static bfd_boolean
18476 +assign_got_offsets(struct elf_avr32_link_hash_table *htab);
18477 +static bfd_boolean
18478 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info);
18479 +static bfd_boolean
18480 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
18481 + struct bfd_link_info *info);
18482 +
18483 +static void
18484 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
18485 +{
18486 + /* TODO: Support got_refcount > htab->nr_got_holes by using a
18487 + different sort algorithm for those. */
18488 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
18489 +
18490 + got->pprev = &htab->got_hole[got->refcount];
18491 + got->next = htab->got_hole[got->refcount];
18492 + if (got->next)
18493 + got->next->pprev = &got->next;
18494 +
18495 + htab->got_hole[got->refcount] = got;
18496 +}
18497 +
18498 +/* Decrement the refcount of a GOT entry and update its position in
18499 + the pigeonhole array. */
18500 +static void
18501 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
18502 +{
18503 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
18504 + BFD_ASSERT(got->refcount > 0);
18505 +
18506 + if (got->next)
18507 + got->next->pprev = got->pprev;
18508 +
18509 + *(got->pprev) = got->next;
18510 + got->refcount--;
18511 + insert_got_entry(htab, got);
18512 +}
18513 +
18514 +static void
18515 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
18516 +{
18517 + if (got->next)
18518 + got->next->pprev = got->pprev;
18519 +
18520 + *(got->pprev) = got->next;
18521 + got->refcount++;
18522 + insert_got_entry(htab, got);
18523 +
18524 + BFD_ASSERT(got->refcount > 0);
18525 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
18526 +}
18527 +
18528 +/* Assign offsets to all GOT entries we intend to keep. The entries
18529 + that are referenced most often are placed at low offsets so that we
18530 + can use compact instructions as much as possible.
18531 +
18532 + Returns TRUE if any offsets or the total size of the GOT changed. */
18533 +
18534 +static bfd_boolean
18535 +assign_got_offsets(struct elf_avr32_link_hash_table *htab)
18536 +{
18537 + struct got_entry *got;
18538 + bfd_size_type got_size = 0;
18539 + bfd_boolean changed = FALSE;
18540 + bfd_signed_vma offset;
18541 + int i;
18542 +
18543 + /* The GOT header provides the address of the DYNAMIC segment, so
18544 + we need that even if the GOT is otherwise empty. */
18545 + if (htab->root.dynamic_sections_created)
18546 + got_size = AVR32_GOT_HEADER_SIZE;
18547 +
18548 + for (i = htab->nr_got_holes; i > 0; i--)
18549 + {
18550 + got = htab->got_hole[i];
18551 + while (got)
18552 + {
18553 + if (got->refcount > 0)
18554 + {
18555 + offset = got_size;
18556 + if (got->offset != offset)
18557 + {
18558 + RDBG("GOT offset changed: %ld -> %ld\n",
18559 + got->offset, offset);
18560 + changed = TRUE;
18561 + }
18562 + got->offset = offset;
18563 + got_size += 4;
18564 + }
18565 + got = got->next;
18566 + }
18567 + }
18568 +
18569 + if (htab->sgot->size != got_size)
18570 + {
18571 + RDBG("GOT size changed: %lu -> %lu\n", htab->sgot->size,
18572 + got_size);
18573 + changed = TRUE;
18574 + }
18575 + htab->sgot->size = got_size;
18576 +
18577 + RDBG("assign_got_offsets: total size %lu (%s)\n",
18578 + got_size, changed ? "changed" : "no change");
18579 +
18580 + return changed;
18581 +}
18582 +
18583 +static bfd_boolean
18584 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info)
18585 +{
18586 + struct bfd_link_info *info = _info;
18587 + struct elf_avr32_link_hash_table *htab;
18588 + struct elf_avr32_link_hash_entry *havr;
18589 + struct got_entry *got;
18590 +
18591 + pr_debug(" (4b) allocate_dynrelocs: %s\n", h->root.root.string);
18592 +
18593 + if (h->root.type == bfd_link_hash_indirect)
18594 + return TRUE;
18595 +
18596 + if (h->root.type == bfd_link_hash_warning)
18597 + /* When warning symbols are created, they **replace** the "real"
18598 + entry in the hash table, thus we never get to see the real
18599 + symbol in a hash traversal. So look at it now. */
18600 + h = (struct elf_link_hash_entry *) h->root.u.i.link;
18601 +
18602 + htab = avr32_elf_hash_table(info);
18603 + havr = (struct elf_avr32_link_hash_entry *)h;
18604 +
18605 + got = h->got.glist;
18606 +
18607 + /* If got is NULL, the symbol is never referenced through the GOT */
18608 + if (got && got->refcount > 0)
18609 + {
18610 + insert_got_entry(htab, got);
18611 +
18612 + /* Shared libraries need relocs for all GOT entries unless the
18613 + symbol is forced local or -Bsymbolic is used. Others need
18614 + relocs for everything that is not guaranteed to be defined in
18615 + a regular object. */
18616 + if ((info->shared
18617 + && !info->symbolic
18618 + && h->dynindx != -1)
18619 + || (htab->root.dynamic_sections_created
18620 + && h->def_dynamic
18621 + && !h->def_regular))
18622 + htab->srelgot->size += sizeof(Elf32_External_Rela);
18623 + }
18624 +
18625 + if (havr->possibly_dynamic_relocs
18626 + && (info->shared
18627 + || (elf_hash_table(info)->dynamic_sections_created
18628 + && h->def_dynamic
18629 + && !h->def_regular)))
18630 + {
18631 + pr_debug("Allocating %d dynamic reloc against symbol %s...\n",
18632 + havr->possibly_dynamic_relocs, h->root.root.string);
18633 + htab->srelgot->size += (havr->possibly_dynamic_relocs
18634 + * sizeof(Elf32_External_Rela));
18635 + }
18636 +
18637 + return TRUE;
18638 +}
18639 +
18640 +/* (4) Calculate the sizes of the linker-generated sections and
18641 + allocate memory for them. */
18642 +
18643 +static bfd_boolean
18644 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
18645 + struct bfd_link_info *info)
18646 +{
18647 + struct elf_avr32_link_hash_table *htab;
18648 + bfd *dynobj;
18649 + asection *s;
18650 + bfd *ibfd;
18651 + bfd_boolean relocs;
18652 +
18653 + pr_debug("(4) size dynamic sections\n");
18654 +
18655 + htab = avr32_elf_hash_table(info);
18656 + dynobj = htab->root.dynobj;
18657 + BFD_ASSERT(dynobj != NULL);
18658 +
18659 + if (htab->root.dynamic_sections_created)
18660 + {
18661 + /* Initialize the contents of the .interp section to the name of
18662 + the dynamic loader */
18663 + if (info->executable)
18664 + {
18665 + s = bfd_get_section_by_name(dynobj, ".interp");
18666 + BFD_ASSERT(s != NULL);
18667 + s->size = sizeof(ELF_DYNAMIC_INTERPRETER);
18668 + s->contents = (unsigned char *)ELF_DYNAMIC_INTERPRETER;
18669 + }
18670 + }
18671 +
18672 + if (htab->nr_got_holes > 0)
18673 + {
18674 + /* Allocate holes for the pigeonhole sort algorithm */
18675 + pr_debug("Highest GOT refcount: %d\n", htab->nr_got_holes);
18676 + if (htab->nr_got_holes >= MAX_NR_GOT_HOLES)
18677 + {
18678 + /* TODO: Do something clever (different sorting algorithm) */
18679 + _bfd_error_handler(_("Highest refcount %d too high (max %d)\n"),
18680 + htab->nr_got_holes, MAX_NR_GOT_HOLES);
18681 + bfd_set_error(bfd_error_no_memory);
18682 + return FALSE;
18683 + }
18684 + htab->got_hole = bfd_zalloc(output_bfd,
18685 + sizeof(struct got_entry *)
18686 + * (htab->nr_got_holes + 1));
18687 + if (!htab->got_hole)
18688 + return FALSE;
18689 +
18690 + /* Set up .got offsets for local syms. */
18691 + for (ibfd = info->input_bfds; ibfd != NULL; ibfd = ibfd->link_next)
18692 + {
18693 + struct got_entry **local_got;
18694 + struct got_entry **end_local_got;
18695 + Elf_Internal_Shdr *symtab_hdr;
18696 + bfd_size_type locsymcount;
18697 +
18698 + pr_debug(" (4a) processing file %s...\n", ibfd->filename);
18699 +
18700 + BFD_ASSERT(bfd_get_flavour(ibfd) == bfd_target_elf_flavour);
18701 +
18702 + local_got = elf_local_got_ents(ibfd);
18703 + if (!local_got)
18704 + continue;
18705 +
18706 + symtab_hdr = &elf_tdata(ibfd)->symtab_hdr;
18707 + locsymcount = symtab_hdr->sh_info;
18708 + end_local_got = local_got + locsymcount;
18709 +
18710 + for (; local_got < end_local_got; ++local_got)
18711 + insert_got_entry(htab, *local_got);
18712 + }
18713 + }
18714 +
18715 + /* Allocate global sym .got entries and space for global sym
18716 + dynamic relocs */
18717 + elf_link_hash_traverse(&htab->root, allocate_dynrelocs, info);
18718 +
18719 + /* Now that we have sorted the GOT entries, we are ready to
18720 + assign offsets and determine the initial size of the GOT. */
18721 + if (htab->sgot)
18722 + assign_got_offsets(htab);
18723 +
18724 + /* Allocate space for local sym dynamic relocs */
18725 + BFD_ASSERT(htab->local_dynamic_relocs == 0 || info->shared);
18726 + if (htab->local_dynamic_relocs)
18727 + htab->srelgot->size += (htab->local_dynamic_relocs
18728 + * sizeof(Elf32_External_Rela));
18729 +
18730 + /* We now have determined the sizes of the various dynamic
18731 + sections. Allocate memory for them. */
18732 + relocs = FALSE;
18733 + for (s = dynobj->sections; s; s = s->next)
18734 + {
18735 + if ((s->flags & SEC_LINKER_CREATED) == 0)
18736 + continue;
18737 +
18738 + if (s == htab->sgot
18739 + || s == htab->sstub)
18740 + {
18741 + /* Strip this section if we don't need it */
18742 + }
18743 + else if (strncmp (bfd_get_section_name(dynobj, s), ".rela", 5) == 0)
18744 + {
18745 + if (s->size != 0)
18746 + relocs = TRUE;
18747 +
18748 + s->reloc_count = 0;
18749 + }
18750 + else
18751 + {
18752 + /* It's not one of our sections */
18753 + continue;
18754 + }
18755 +
18756 + if (s->size == 0)
18757 + {
18758 + /* Strip unneeded sections */
18759 + pr_debug("Stripping section %s from output...\n", s->name);
18760 + /* deleted function in 2.17
18761 + _bfd_strip_section_from_output(info, s);
18762 + */
18763 + continue;
18764 + }
18765 +
18766 + s->contents = bfd_zalloc(dynobj, s->size);
18767 + if (s->contents == NULL)
18768 + return FALSE;
18769 + }
18770 +
18771 + if (htab->root.dynamic_sections_created)
18772 + {
18773 + /* Add some entries to the .dynamic section. We fill in the
18774 + values later, in sh_elf_finish_dynamic_sections, but we
18775 + must add the entries now so that we get the correct size for
18776 + the .dynamic section. The DT_DEBUG entry is filled in by the
18777 + dynamic linker and used by the debugger. */
18778 +#define add_dynamic_entry(TAG, VAL) _bfd_elf_add_dynamic_entry(info, TAG, VAL)
18779 +
18780 + if (!add_dynamic_entry(DT_PLTGOT, 0))
18781 + return FALSE;
18782 + if (!add_dynamic_entry(DT_AVR32_GOTSZ, 0))
18783 + return FALSE;
18784 +
18785 + if (info->executable)
18786 + {
18787 + if (!add_dynamic_entry(DT_DEBUG, 0))
18788 + return FALSE;
18789 + }
18790 + if (relocs)
18791 + {
18792 + if (!add_dynamic_entry(DT_RELA, 0)
18793 + || !add_dynamic_entry(DT_RELASZ, 0)
18794 + || !add_dynamic_entry(DT_RELAENT,
18795 + sizeof(Elf32_External_Rela)))
18796 + return FALSE;
18797 + }
18798 + }
18799 +#undef add_dynamic_entry
18800 +
18801 + return TRUE;
18802 +}
18803 +
18804 +\f
18805 +/* Access to internal relocations, section contents and symbols.
18806 + (stolen from the xtensa port) */
18807 +
18808 +static Elf_Internal_Rela *
18809 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory);
18810 +static void
18811 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
18812 +static void
18813 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
18814 +static bfd_byte *
18815 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory);
18816 +/*
18817 +static void
18818 +pin_contents (asection *sec, bfd_byte *contents);
18819 +*/
18820 +static void
18821 +release_contents (asection *sec, bfd_byte *contents);
18822 +static Elf_Internal_Sym *
18823 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory);
18824 +/*
18825 +static void
18826 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
18827 +*/
18828 +static void
18829 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
18830 +
18831 +/* During relaxation, we need to modify relocations, section contents,
18832 + and symbol definitions, and we need to keep the original values from
18833 + being reloaded from the input files, i.e., we need to "pin" the
18834 + modified values in memory. We also want to continue to observe the
18835 + setting of the "keep-memory" flag. The following functions wrap the
18836 + standard BFD functions to take care of this for us. */
18837 +
18838 +static Elf_Internal_Rela *
18839 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory)
18840 +{
18841 + /* _bfd_elf_link_read_relocs knows about caching, so no need for us
18842 + to be clever here. */
18843 + return _bfd_elf_link_read_relocs(abfd, sec, NULL, NULL, keep_memory);
18844 +}
18845 +
18846 +static void
18847 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
18848 +{
18849 + elf_section_data (sec)->relocs = internal_relocs;
18850 +}
18851 +
18852 +static void
18853 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
18854 +{
18855 + if (internal_relocs
18856 + && elf_section_data (sec)->relocs != internal_relocs)
18857 + free (internal_relocs);
18858 +}
18859 +
18860 +static bfd_byte *
18861 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory)
18862 +{
18863 + bfd_byte *contents;
18864 + bfd_size_type sec_size;
18865 +
18866 + sec_size = bfd_get_section_limit (abfd, sec);
18867 + contents = elf_section_data (sec)->this_hdr.contents;
18868 +
18869 + if (contents == NULL && sec_size != 0)
18870 + {
18871 + if (!bfd_malloc_and_get_section (abfd, sec, &contents))
18872 + {
18873 + if (contents)
18874 + free (contents);
18875 + return NULL;
18876 + }
18877 + if (keep_memory)
18878 + elf_section_data (sec)->this_hdr.contents = contents;
18879 + }
18880 + return contents;
18881 +}
18882 +
18883 +/*
18884 +static void
18885 +pin_contents (asection *sec, bfd_byte *contents)
18886 +{
18887 + elf_section_data (sec)->this_hdr.contents = contents;
18888 +}
18889 +*/
18890 +static void
18891 +release_contents (asection *sec, bfd_byte *contents)
18892 +{
18893 + if (contents && elf_section_data (sec)->this_hdr.contents != contents)
18894 + free (contents);
18895 +}
18896 +
18897 +static Elf_Internal_Sym *
18898 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory)
18899 +{
18900 + Elf_Internal_Shdr *symtab_hdr;
18901 + Elf_Internal_Sym *isymbuf;
18902 + size_t locsymcount;
18903 +
18904 + symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
18905 + locsymcount = symtab_hdr->sh_info;
18906 +
18907 + isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
18908 + if (isymbuf == NULL && locsymcount != 0)
18909 + {
18910 + isymbuf = bfd_elf_get_elf_syms (input_bfd, symtab_hdr, locsymcount, 0,
18911 + NULL, NULL, NULL);
18912 + if (isymbuf && keep_memory)
18913 + symtab_hdr->contents = (unsigned char *) isymbuf;
18914 + }
18915 +
18916 + return isymbuf;
18917 +}
18918 +
18919 +/*
18920 +static void
18921 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
18922 +{
18923 + elf_tdata (input_bfd)->symtab_hdr.contents = (unsigned char *)isymbuf;
18924 +}
18925 +
18926 +*/
18927 +static void
18928 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
18929 +{
18930 + if (isymbuf && (elf_tdata (input_bfd)->symtab_hdr.contents
18931 + != (unsigned char *)isymbuf))
18932 + free (isymbuf);
18933 +}
18934 +
18935 +\f/* Data structures used during relaxation. */
18936 +
18937 +enum relax_state_id {
18938 + RS_ERROR = -1,
18939 + RS_NONE = 0,
18940 + RS_ALIGN,
18941 + RS_CPENT,
18942 + RS_PIC_CALL,
18943 + RS_PIC_MCALL,
18944 + RS_PIC_RCALL2,
18945 + RS_PIC_RCALL1,
18946 + RS_PIC_LDA,
18947 + RS_PIC_LDW4,
18948 + RS_PIC_LDW3,
18949 + RS_PIC_SUB5,
18950 + RS_NOPIC_MCALL,
18951 + RS_NOPIC_RCALL2,
18952 + RS_NOPIC_RCALL1,
18953 + RS_NOPIC_LDW4,
18954 + RS_NOPIC_LDDPC,
18955 + RS_NOPIC_SUB5,
18956 + RS_NOPIC_MOV2,
18957 + RS_NOPIC_MOV1,
18958 + RS_RCALL2,
18959 + RS_RCALL1,
18960 + RS_BRC2,
18961 + RS_BRC1,
18962 + RS_BRAL,
18963 + RS_RJMP,
18964 + RS_MAX,
18965 +};
18966 +
18967 +enum reference_type {
18968 + REF_ABSOLUTE,
18969 + REF_PCREL,
18970 + REF_CPOOL,
18971 + REF_GOT,
18972 +};
18973 +
18974 +struct relax_state
18975 +{
18976 + const char *name;
18977 + enum relax_state_id id;
18978 + enum relax_state_id direct;
18979 + enum relax_state_id next;
18980 + enum relax_state_id prev;
18981 +
18982 + enum reference_type reftype;
18983 +
18984 + unsigned int r_type;
18985 +
18986 + bfd_vma opcode;
18987 + bfd_vma opcode_mask;
18988 +
18989 + bfd_signed_vma range_min;
18990 + bfd_signed_vma range_max;
18991 +
18992 + bfd_size_type size;
18993 +};
18994 +
18995 +/*
18996 + * This is for relocs that
18997 + * a) has an addend or is of type R_AVR32_DIFF32, and
18998 + * b) references a different section than it's in, and
18999 + * c) references a section that is relaxable
19000 + *
19001 + * as well as relocs that references the constant pool, in which case
19002 + * the add_frag member points to the frag containing the constant pool
19003 + * entry.
19004 + *
19005 + * Such relocs must be fixed up whenever we delete any code. Sections
19006 + * that don't have any relocs with all of the above properties don't
19007 + * have any additional reloc data, but sections that do will have
19008 + * additional data for all its relocs.
19009 + */
19010 +struct avr32_reloc_data
19011 +{
19012 + struct fragment *add_frag;
19013 + struct fragment *sub_frag;
19014 +};
19015 +
19016 +/*
19017 + * A 'fragment' is a relaxable entity, that is, code may be added or
19018 + * deleted at the end of a fragment. When this happens, all subsequent
19019 + * fragments in the list will have their offsets updated.
19020 + */
19021 +struct fragment
19022 +{
19023 + enum relax_state_id state;
19024 + enum relax_state_id initial_state;
19025 +
19026 + Elf_Internal_Rela *rela;
19027 + bfd_size_type size;
19028 + bfd_vma offset;
19029 + int size_adjust;
19030 + int offset_adjust;
19031 + bfd_boolean has_grown;
19032 +
19033 + /* Only used by constant pool entries. When this drops to zero, the
19034 + frag is discarded (i.e. size_adjust is set to -4.) */
19035 + int refcount;
19036 +};
19037 +
19038 +struct avr32_relax_data
19039 +{
19040 + unsigned int frag_count;
19041 + struct fragment *frag;
19042 + struct avr32_reloc_data *reloc_data;
19043 +
19044 + /* TRUE if this section has one or more relaxable relocations */
19045 + bfd_boolean is_relaxable;
19046 + unsigned int iteration;
19047 +};
19048 +
19049 +struct avr32_section_data
19050 +{
19051 + struct bfd_elf_section_data elf;
19052 + struct avr32_relax_data relax_data;
19053 +};
19054 +
19055 +\f/* Relax state definitions */
19056 +
19057 +#define PIC_MOV2_OPCODE 0xe0600000
19058 +#define PIC_MOV2_MASK 0xe1e00000
19059 +#define PIC_MOV2_RANGE_MIN (-1048576 * 4)
19060 +#define PIC_MOV2_RANGE_MAX (1048575 * 4)
19061 +#define PIC_MCALL_OPCODE 0xf0160000
19062 +#define PIC_MCALL_MASK 0xffff0000
19063 +#define PIC_MCALL_RANGE_MIN (-131072)
19064 +#define PIC_MCALL_RANGE_MAX (131068)
19065 +#define RCALL2_OPCODE 0xe0a00000
19066 +#define RCALL2_MASK 0xe1ef0000
19067 +#define RCALL2_RANGE_MIN (-2097152)
19068 +#define RCALL2_RANGE_MAX (2097150)
19069 +#define RCALL1_OPCODE 0xc00c0000
19070 +#define RCALL1_MASK 0xf00c0000
19071 +#define RCALL1_RANGE_MIN (-1024)
19072 +#define RCALL1_RANGE_MAX (1022)
19073 +#define PIC_LDW4_OPCODE 0xecf00000
19074 +#define PIC_LDW4_MASK 0xfff00000
19075 +#define PIC_LDW4_RANGE_MIN (-32768)
19076 +#define PIC_LDW4_RANGE_MAX (32767)
19077 +#define PIC_LDW3_OPCODE 0x6c000000
19078 +#define PIC_LDW3_MASK 0xfe000000
19079 +#define PIC_LDW3_RANGE_MIN (0)
19080 +#define PIC_LDW3_RANGE_MAX (124)
19081 +#define SUB5_PC_OPCODE 0xfec00000
19082 +#define SUB5_PC_MASK 0xfff00000
19083 +#define SUB5_PC_RANGE_MIN (-32768)
19084 +#define SUB5_PC_RANGE_MAX (32767)
19085 +#define NOPIC_MCALL_OPCODE 0xf01f0000
19086 +#define NOPIC_MCALL_MASK 0xffff0000
19087 +#define NOPIC_MCALL_RANGE_MIN PIC_MCALL_RANGE_MIN
19088 +#define NOPIC_MCALL_RANGE_MAX PIC_MCALL_RANGE_MAX
19089 +#define NOPIC_LDW4_OPCODE 0xfef00000
19090 +#define NOPIC_LDW4_MASK 0xfff00000
19091 +#define NOPIC_LDW4_RANGE_MIN PIC_LDW4_RANGE_MIN
19092 +#define NOPIC_LDW4_RANGE_MAX PIC_LDW4_RANGE_MAX
19093 +#define LDDPC_OPCODE 0x48000000
19094 +#define LDDPC_MASK 0xf8000000
19095 +#define LDDPC_RANGE_MIN 0
19096 +#define LDDPC_RANGE_MAX 508
19097 +
19098 +#define NOPIC_MOV2_OPCODE 0xe0600000
19099 +#define NOPIC_MOV2_MASK 0xe1e00000
19100 +#define NOPIC_MOV2_RANGE_MIN (-1048576)
19101 +#define NOPIC_MOV2_RANGE_MAX (1048575)
19102 +#define NOPIC_MOV1_OPCODE 0x30000000
19103 +#define NOPIC_MOV1_MASK 0xf0000000
19104 +#define NOPIC_MOV1_RANGE_MIN (-128)
19105 +#define NOPIC_MOV1_RANGE_MAX (127)
19106 +
19107 +/* Only brc2 variants with cond[3] == 0 is considered, since the
19108 + others are not relaxable. bral is a special case and is handled
19109 + separately. */
19110 +#define BRC2_OPCODE 0xe0800000
19111 +#define BRC2_MASK 0xe1e80000
19112 +#define BRC2_RANGE_MIN (-2097152)
19113 +#define BRC2_RANGE_MAX (2097150)
19114 +#define BRC1_OPCODE 0xc0000000
19115 +#define BRC1_MASK 0xf0080000
19116 +#define BRC1_RANGE_MIN (-256)
19117 +#define BRC1_RANGE_MAX (254)
19118 +#define BRAL_OPCODE 0xe08f0000
19119 +#define BRAL_MASK 0xe1ef0000
19120 +#define BRAL_RANGE_MIN BRC2_RANGE_MIN
19121 +#define BRAL_RANGE_MAX BRC2_RANGE_MAX
19122 +#define RJMP_OPCODE 0xc0080000
19123 +#define RJMP_MASK 0xf00c0000
19124 +#define RJMP_RANGE_MIN (-1024)
19125 +#define RJMP_RANGE_MAX (1022)
19126 +
19127 +/* Define a relax state using the GOT */
19128 +#define RG(id, dir, next, prev, r_type, opc, size) \
19129 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_GOT, \
19130 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19131 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19132 +/* Define a relax state using the Constant Pool */
19133 +#define RC(id, dir, next, prev, r_type, opc, size) \
19134 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_CPOOL, \
19135 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19136 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19137 +
19138 +/* Define a relax state using pc-relative direct reference */
19139 +#define RP(id, dir, next, prev, r_type, opc, size) \
19140 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_PCREL, \
19141 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19142 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19143 +
19144 +/* Define a relax state using non-pc-relative direct reference */
19145 +#define RD(id, dir, next, prev, r_type, opc, size) \
19146 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_ABSOLUTE, \
19147 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19148 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19149 +
19150 +/* Define a relax state that will be handled specially */
19151 +#define RS(id, r_type, size) \
19152 + { "RS_"#id, RS_##id, RS_NONE, RS_NONE, RS_NONE, REF_ABSOLUTE, \
19153 + R_AVR32_##r_type, 0, 0, 0, 0, size }
19154 +
19155 +const struct relax_state relax_state[RS_MAX] = {
19156 + RS(NONE, NONE, 0),
19157 + RS(ALIGN, ALIGN, 0),
19158 + RS(CPENT, 32_CPENT, 4),
19159 +
19160 + RG(PIC_CALL, PIC_RCALL1, PIC_MCALL, NONE, GOTCALL, PIC_MOV2, 10),
19161 + RG(PIC_MCALL, PIC_RCALL1, NONE, PIC_CALL, GOT18SW, PIC_MCALL, 4),
19162 + RP(PIC_RCALL2, NONE, PIC_RCALL1, PIC_MCALL, 22H_PCREL, RCALL2, 4),
19163 + RP(PIC_RCALL1, NONE, NONE, PIC_RCALL2, 11H_PCREL, RCALL1, 2),
19164 +
19165 + RG(PIC_LDA, PIC_SUB5, PIC_LDW4, NONE, LDA_GOT, PIC_MOV2, 8),
19166 + RG(PIC_LDW4, PIC_SUB5, PIC_LDW3, PIC_LDA, GOT16S, PIC_LDW4, 4),
19167 + RG(PIC_LDW3, PIC_SUB5, NONE, PIC_LDW4, GOT7UW, PIC_LDW3, 2),
19168 + RP(PIC_SUB5, NONE, NONE, PIC_LDW3, 16N_PCREL, SUB5_PC, 4),
19169 +
19170 + RC(NOPIC_MCALL, NOPIC_RCALL1, NONE, NONE, CPCALL, NOPIC_MCALL, 4),
19171 + RP(NOPIC_RCALL2, NONE, NOPIC_RCALL1, NOPIC_MCALL, 22H_PCREL, RCALL2, 4),
19172 + RP(NOPIC_RCALL1, NONE, NONE, NOPIC_RCALL2, 11H_PCREL, RCALL1, 2),
19173 +
19174 + RC(NOPIC_LDW4, NOPIC_MOV1, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
19175 + RC(NOPIC_LDDPC, NOPIC_MOV1, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
19176 + RP(NOPIC_SUB5, NOPIC_MOV1, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
19177 + RD(NOPIC_MOV2, NONE, NOPIC_MOV1, NOPIC_SUB5, 21S, NOPIC_MOV2, 4),
19178 + RD(NOPIC_MOV1, NONE, NONE, NOPIC_MOV2, 8S, NOPIC_MOV1, 2),
19179 +
19180 + RP(RCALL2, NONE, RCALL1, NONE, 22H_PCREL, RCALL2, 4),
19181 + RP(RCALL1, NONE, NONE, RCALL2, 11H_PCREL, RCALL1, 2),
19182 + RP(BRC2, NONE, BRC1, NONE, 22H_PCREL, BRC2, 4),
19183 + RP(BRC1, NONE, NONE, BRC2, 9H_PCREL, BRC1, 2),
19184 + RP(BRAL, NONE, RJMP, NONE, 22H_PCREL, BRAL, 4),
19185 + RP(RJMP, NONE, NONE, BRAL, 11H_PCREL, RJMP, 2),
19186 +};
19187 +
19188 +static bfd_boolean
19189 +avr32_elf_new_section_hook(bfd *abfd, asection *sec)
19190 +{
19191 + struct avr32_section_data *sdata;
19192 +
19193 + sdata = bfd_zalloc(abfd, sizeof(struct avr32_section_data));
19194 + if (!sdata)
19195 + return FALSE;
19196 +
19197 + sec->used_by_bfd = sdata;
19198 + return _bfd_elf_new_section_hook(abfd, sec);
19199 +}
19200 +
19201 +static struct avr32_relax_data *
19202 +avr32_relax_data(asection *sec)
19203 +{
19204 + struct avr32_section_data *sdata;
19205 +
19206 + BFD_ASSERT(sec->used_by_bfd);
19207 +
19208 + sdata = (struct avr32_section_data *)elf_section_data(sec);
19209 + return &sdata->relax_data;
19210 +}
19211 +
19212 +\f/* Link-time relaxation */
19213 +
19214 +static bfd_boolean
19215 +avr32_elf_relax_section(bfd *abfd, asection *sec,
19216 + struct bfd_link_info *info, bfd_boolean *again);
19217 +
19218 +enum relax_pass_id {
19219 + RELAX_PASS_SIZE_FRAGS,
19220 + RELAX_PASS_MOVE_DATA,
19221 +};
19222 +
19223 +/* Stolen from the xtensa port */
19224 +static int
19225 +internal_reloc_compare (const void *ap, const void *bp)
19226 +{
19227 + const Elf_Internal_Rela *a = (const Elf_Internal_Rela *) ap;
19228 + const Elf_Internal_Rela *b = (const Elf_Internal_Rela *) bp;
19229 +
19230 + if (a->r_offset != b->r_offset)
19231 + return (a->r_offset - b->r_offset);
19232 +
19233 + /* We don't need to sort on these criteria for correctness,
19234 + but enforcing a more strict ordering prevents unstable qsort
19235 + from behaving differently with different implementations.
19236 + Without the code below we get correct but different results
19237 + on Solaris 2.7 and 2.8. We would like to always produce the
19238 + same results no matter the host. */
19239 +
19240 + if (a->r_info != b->r_info)
19241 + return (a->r_info - b->r_info);
19242 +
19243 + return (a->r_addend - b->r_addend);
19244 +}
19245 +
19246 +static enum relax_state_id
19247 +get_pcrel22_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
19248 + const Elf_Internal_Rela *rela)
19249 +{
19250 + bfd_byte *contents;
19251 + bfd_vma insn;
19252 + enum relax_state_id rs = RS_NONE;
19253 +
19254 + contents = retrieve_contents(abfd, sec, info->keep_memory);
19255 + if (!contents)
19256 + return RS_ERROR;
19257 +
19258 + insn = bfd_get_32(abfd, contents + rela->r_offset);
19259 + if ((insn & RCALL2_MASK) == RCALL2_OPCODE)
19260 + rs = RS_RCALL2;
19261 + else if ((insn & BRAL_MASK) == BRAL_OPCODE)
19262 + /* Optimizing bral -> rjmp gets us into all kinds of
19263 + trouble with jump tables. Better not do it. */
19264 + rs = RS_NONE;
19265 + else if ((insn & BRC2_MASK) == BRC2_OPCODE)
19266 + rs = RS_BRC2;
19267 +
19268 + release_contents(sec, contents);
19269 +
19270 + return rs;
19271 +}
19272 +
19273 +static enum relax_state_id
19274 +get_initial_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
19275 + const Elf_Internal_Rela *rela)
19276 +{
19277 + switch (ELF_R_TYPE(rela->r_info))
19278 + {
19279 + case R_AVR32_GOTCALL:
19280 + return RS_PIC_CALL;
19281 + case R_AVR32_GOT18SW:
19282 + return RS_PIC_MCALL;
19283 + case R_AVR32_LDA_GOT:
19284 + return RS_PIC_LDA;
19285 + case R_AVR32_GOT16S:
19286 + return RS_PIC_LDW4;
19287 + case R_AVR32_CPCALL:
19288 + return RS_NOPIC_MCALL;
19289 + case R_AVR32_16_CP:
19290 + return RS_NOPIC_LDW4;
19291 + case R_AVR32_9W_CP:
19292 + return RS_NOPIC_LDDPC;
19293 + case R_AVR32_ALIGN:
19294 + return RS_ALIGN;
19295 + case R_AVR32_32_CPENT:
19296 + return RS_CPENT;
19297 + case R_AVR32_22H_PCREL:
19298 + return get_pcrel22_relax_state(abfd, sec, info, rela);
19299 + case R_AVR32_9H_PCREL:
19300 + return RS_BRC1;
19301 + default:
19302 + return RS_NONE;
19303 + }
19304 +}
19305 +
19306 +static bfd_boolean
19307 +reloc_is_cpool_ref(const Elf_Internal_Rela *rela)
19308 +{
19309 + switch (ELF_R_TYPE(rela->r_info))
19310 + {
19311 + case R_AVR32_CPCALL:
19312 + case R_AVR32_16_CP:
19313 + case R_AVR32_9W_CP:
19314 + return TRUE;
19315 + default:
19316 + return FALSE;
19317 + }
19318 +}
19319 +
19320 +static struct fragment *
19321 +new_frag(bfd *abfd ATTRIBUTE_UNUSED, asection *sec,
19322 + struct avr32_relax_data *rd, enum relax_state_id state,
19323 + Elf_Internal_Rela *rela)
19324 +{
19325 + struct fragment *frag;
19326 + bfd_size_type r_size;
19327 + bfd_vma r_offset;
19328 + unsigned int i = rd->frag_count;
19329 +
19330 + BFD_ASSERT(state >= RS_NONE && state < RS_MAX);
19331 +
19332 + rd->frag_count++;
19333 + frag = bfd_realloc(rd->frag, sizeof(struct fragment) * rd->frag_count);
19334 + if (!frag)
19335 + return NULL;
19336 + rd->frag = frag;
19337 +
19338 + frag += i;
19339 + memset(frag, 0, sizeof(struct fragment));
19340 +
19341 + if (state == RS_ALIGN)
19342 + r_size = (((rela->r_offset + (1 << rela->r_addend) - 1)
19343 + & ~((1 << rela->r_addend) - 1)) - rela->r_offset);
19344 + else
19345 + r_size = relax_state[state].size;
19346 +
19347 + if (rela)
19348 + r_offset = rela->r_offset;
19349 + else
19350 + r_offset = sec->size;
19351 +
19352 + if (i == 0)
19353 + {
19354 + frag->offset = 0;
19355 + frag->size = r_offset + r_size;
19356 + }
19357 + else
19358 + {
19359 + frag->offset = rd->frag[i - 1].offset + rd->frag[i - 1].size;
19360 + frag->size = r_offset + r_size - frag->offset;
19361 + }
19362 +
19363 + if (state != RS_CPENT)
19364 + /* Make sure we don't discard this frag */
19365 + frag->refcount = 1;
19366 +
19367 + frag->initial_state = frag->state = state;
19368 + frag->rela = rela;
19369 +
19370 + return frag;
19371 +}
19372 +
19373 +static struct fragment *
19374 +find_frag(asection *sec, bfd_vma offset)
19375 +{
19376 + struct fragment *first, *last;
19377 + struct avr32_relax_data *rd = avr32_relax_data(sec);
19378 +
19379 + if (rd->frag_count == 0)
19380 + return NULL;
19381 +
19382 + first = &rd->frag[0];
19383 + last = &rd->frag[rd->frag_count - 1];
19384 +
19385 + /* This may be a reloc referencing the end of a section. The last
19386 + frag will never have a reloc associated with it, so its size will
19387 + never change, thus the offset adjustment of the last frag will
19388 + always be the same as the offset adjustment of the end of the
19389 + section. */
19390 + if (offset == sec->size)
19391 + {
19392 + BFD_ASSERT(last->offset + last->size == sec->size);
19393 + BFD_ASSERT(!last->rela);
19394 + return last;
19395 + }
19396 +
19397 + while (first <= last)
19398 + {
19399 + struct fragment *mid;
19400 +
19401 + mid = (last - first) / 2 + first;
19402 + if ((mid->offset + mid->size) <= offset)
19403 + first = mid + 1;
19404 + else if (mid->offset > offset)
19405 + last = mid - 1;
19406 + else
19407 + return mid;
19408 + }
19409 +
19410 + return NULL;
19411 +}
19412 +
19413 +/* Look through all relocs in a section and determine if any relocs
19414 + may be affected by relaxation in other sections. If so, allocate
19415 + an array of additional relocation data which links the affected
19416 + relocations to the frag(s) where the relaxation may occur.
19417 +
19418 + This function also links cpool references to cpool entries and
19419 + increments the refcount of the latter when this happens. */
19420 +
19421 +static bfd_boolean
19422 +allocate_reloc_data(bfd *abfd, asection *sec, Elf_Internal_Rela *relocs,
19423 + struct bfd_link_info *info)
19424 +{
19425 + Elf_Internal_Shdr *symtab_hdr;
19426 + Elf_Internal_Sym *isymbuf = NULL;
19427 + struct avr32_relax_data *rd;
19428 + unsigned int i;
19429 + bfd_boolean ret = FALSE;
19430 +
19431 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
19432 + rd = avr32_relax_data(sec);
19433 +
19434 + RDBG("%s<%s>: allocate_reloc_data\n", abfd->filename, sec->name);
19435 +
19436 + for (i = 0; i < sec->reloc_count; i++)
19437 + {
19438 + Elf_Internal_Rela *rel = &relocs[i];
19439 + asection *sym_sec;
19440 + unsigned long r_symndx;
19441 + bfd_vma sym_value;
19442 +
19443 + if (!rel->r_addend && ELF_R_TYPE(rel->r_info) != R_AVR32_DIFF32
19444 + && !reloc_is_cpool_ref(rel))
19445 + continue;
19446 +
19447 + r_symndx = ELF_R_SYM(rel->r_info);
19448 +
19449 + if (r_symndx < symtab_hdr->sh_info)
19450 + {
19451 + Elf_Internal_Sym *isym;
19452 +
19453 + if (!isymbuf)
19454 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
19455 + if (!isymbuf)
19456 + return FALSE;
19457 +
19458 + isym = &isymbuf[r_symndx];
19459 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
19460 + sym_value = isym->st_value;
19461 + }
19462 + else
19463 + {
19464 + struct elf_link_hash_entry *h;
19465 +
19466 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
19467 +
19468 + while (h->root.type == bfd_link_hash_indirect
19469 + || h->root.type == bfd_link_hash_warning)
19470 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
19471 +
19472 + if (h->root.type != bfd_link_hash_defined
19473 + && h->root.type != bfd_link_hash_defweak)
19474 + continue;
19475 +
19476 + sym_sec = h->root.u.def.section;
19477 + sym_value = h->root.u.def.value;
19478 + }
19479 +
19480 + if (sym_sec && avr32_relax_data(sym_sec)->is_relaxable)
19481 + {
19482 + bfd_size_type size;
19483 + struct fragment *frag;
19484 +
19485 + if (!rd->reloc_data)
19486 + {
19487 + size = sizeof(struct avr32_reloc_data) * sec->reloc_count;
19488 + rd->reloc_data = bfd_zalloc(abfd, size);
19489 + if (!rd->reloc_data)
19490 + goto out;
19491 + }
19492 +
19493 + RDBG("[%3d] 0x%04lx: target: 0x%lx + 0x%lx",
19494 + i, rel->r_offset, sym_value, rel->r_addend);
19495 +
19496 + frag = find_frag(sym_sec, sym_value + rel->r_addend);
19497 + BFD_ASSERT(frag);
19498 + rd->reloc_data[i].add_frag = frag;
19499 +
19500 + RDBG(" -> %s<%s>:%04lx\n", sym_sec->owner->filename, sym_sec->name,
19501 + frag->rela ? frag->rela->r_offset : sym_sec->size);
19502 +
19503 + if (reloc_is_cpool_ref(rel))
19504 + {
19505 + BFD_ASSERT(ELF_R_TYPE(frag->rela->r_info) == R_AVR32_32_CPENT);
19506 + frag->refcount++;
19507 + }
19508 +
19509 + if (ELF_R_TYPE(rel->r_info) == R_AVR32_DIFF32)
19510 + {
19511 + bfd_byte *contents;
19512 + bfd_signed_vma diff;
19513 +
19514 + contents = retrieve_contents(abfd, sec, info->keep_memory);
19515 + if (!contents)
19516 + goto out;
19517 +
19518 + diff = bfd_get_signed_32(abfd, contents + rel->r_offset);
19519 + frag = find_frag(sym_sec, sym_value + rel->r_addend + diff);
19520 + BFD_ASSERT(frag);
19521 + rd->reloc_data[i].sub_frag = frag;
19522 +
19523 + release_contents(sec, contents);
19524 + }
19525 + }
19526 + }
19527 +
19528 + ret = TRUE;
19529 +
19530 + out:
19531 + release_local_syms(abfd, isymbuf);
19532 + return ret;
19533 +}
19534 +
19535 +static bfd_boolean
19536 +global_sym_set_frag(struct elf_avr32_link_hash_entry *havr,
19537 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
19538 +{
19539 + struct fragment *frag;
19540 + asection *sec;
19541 +
19542 + if (havr->root.root.type != bfd_link_hash_defined
19543 + && havr->root.root.type != bfd_link_hash_defweak)
19544 + return TRUE;
19545 +
19546 + sec = havr->root.root.u.def.section;
19547 + if (bfd_is_const_section(sec)
19548 + || !avr32_relax_data(sec)->is_relaxable)
19549 + return TRUE;
19550 +
19551 + frag = find_frag(sec, havr->root.root.u.def.value);
19552 + if (!frag)
19553 + {
19554 + unsigned int i;
19555 + struct avr32_relax_data *rd = avr32_relax_data(sec);
19556 +
19557 + RDBG("In %s: No frag for %s <%s+%lu> (limit %lu)\n",
19558 + sec->owner->filename, havr->root.root.root.string,
19559 + sec->name, havr->root.root.u.def.value, sec->size);
19560 + for (i = 0; i < rd->frag_count; i++)
19561 + RDBG(" %8lu - %8lu\n", rd->frag[i].offset,
19562 + rd->frag[i].offset + rd->frag[i].size);
19563 + }
19564 + BFD_ASSERT(frag);
19565 +
19566 + havr->sym_frag = frag;
19567 + return TRUE;
19568 +}
19569 +
19570 +static bfd_boolean
19571 +analyze_relocations(struct bfd_link_info *info)
19572 +{
19573 + bfd *abfd;
19574 + asection *sec;
19575 +
19576 + /* Divide all relaxable sections into fragments */
19577 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
19578 + {
19579 + if (!(elf_elfheader(abfd)->e_flags & EF_AVR32_LINKRELAX))
19580 + {
19581 + if (!(*info->callbacks->warning)
19582 + (info, _("input is not relaxable"), NULL, abfd, NULL, 0))
19583 + return FALSE;
19584 + continue;
19585 + }
19586 +
19587 + for (sec = abfd->sections; sec; sec = sec->next)
19588 + {
19589 + struct avr32_relax_data *rd;
19590 + struct fragment *frag;
19591 + Elf_Internal_Rela *relocs;
19592 + unsigned int i;
19593 + bfd_boolean ret = TRUE;
19594 +
19595 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
19596 + continue;
19597 +
19598 + rd = avr32_relax_data(sec);
19599 +
19600 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
19601 + if (!relocs)
19602 + return FALSE;
19603 +
19604 + qsort(relocs, sec->reloc_count, sizeof(Elf_Internal_Rela),
19605 + internal_reloc_compare);
19606 +
19607 + for (i = 0; i < sec->reloc_count; i++)
19608 + {
19609 + enum relax_state_id state;
19610 +
19611 + ret = FALSE;
19612 + state = get_initial_relax_state(abfd, sec, info, &relocs[i]);
19613 + if (state == RS_ERROR)
19614 + break;
19615 +
19616 + if (state)
19617 + {
19618 + frag = new_frag(abfd, sec, rd, state, &relocs[i]);
19619 + if (!frag)
19620 + break;
19621 +
19622 + pin_internal_relocs(sec, relocs);
19623 + rd->is_relaxable = TRUE;
19624 + }
19625 +
19626 + ret = TRUE;
19627 + }
19628 +
19629 + release_internal_relocs(sec, relocs);
19630 + if (!ret)
19631 + return ret;
19632 +
19633 + if (rd->is_relaxable)
19634 + {
19635 + frag = new_frag(abfd, sec, rd, RS_NONE, NULL);
19636 + if (!frag)
19637 + return FALSE;
19638 + }
19639 + }
19640 + }
19641 +
19642 + /* Link each global symbol to the fragment where it's defined. */
19643 + elf_link_hash_traverse(elf_hash_table(info), global_sym_set_frag, info);
19644 +
19645 + /* Do the same for local symbols. */
19646 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
19647 + {
19648 + Elf_Internal_Sym *isymbuf, *isym;
19649 + struct fragment **local_sym_frag;
19650 + unsigned int i, sym_count;
19651 +
19652 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
19653 + if (sym_count == 0)
19654 + continue;
19655 +
19656 + local_sym_frag = bfd_zalloc(abfd, sym_count * sizeof(struct fragment *));
19657 + if (!local_sym_frag)
19658 + return FALSE;
19659 + elf_tdata(abfd)->local_sym_frag = local_sym_frag;
19660 +
19661 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
19662 + if (!isymbuf)
19663 + return FALSE;
19664 +
19665 + for (i = 0; i < sym_count; i++)
19666 + {
19667 + struct avr32_relax_data *rd;
19668 + struct fragment *frag;
19669 + asection *sec;
19670 +
19671 + isym = &isymbuf[i];
19672 +
19673 + sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
19674 + if (!sec)
19675 + continue;
19676 +
19677 + rd = avr32_relax_data(sec);
19678 + if (!rd->is_relaxable)
19679 + continue;
19680 +
19681 + frag = find_frag(sec, isym->st_value);
19682 + BFD_ASSERT(frag);
19683 +
19684 + local_sym_frag[i] = frag;
19685 + }
19686 +
19687 + release_local_syms(abfd, isymbuf);
19688 + }
19689 +
19690 + /* And again for relocs with addends and constant pool references */
19691 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
19692 + for (sec = abfd->sections; sec; sec = sec->next)
19693 + {
19694 + Elf_Internal_Rela *relocs;
19695 + bfd_boolean ret;
19696 +
19697 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
19698 + continue;
19699 +
19700 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
19701 + if (!relocs)
19702 + return FALSE;
19703 +
19704 + ret = allocate_reloc_data(abfd, sec, relocs, info);
19705 +
19706 + release_internal_relocs(sec, relocs);
19707 + if (ret == FALSE)
19708 + return ret;
19709 + }
19710 +
19711 + return TRUE;
19712 +}
19713 +
19714 +static bfd_boolean
19715 +rs_is_good_enough(const struct relax_state *rs, struct fragment *frag,
19716 + bfd_vma symval, bfd_vma addr, struct got_entry *got,
19717 + struct avr32_reloc_data *ind_data,
19718 + bfd_signed_vma offset_adjust)
19719 +{
19720 + bfd_signed_vma target = 0;
19721 +
19722 + switch (rs->reftype)
19723 + {
19724 + case REF_ABSOLUTE:
19725 + target = symval;
19726 + break;
19727 + case REF_PCREL:
19728 + target = symval - addr;
19729 + break;
19730 + case REF_CPOOL:
19731 + /* cpool frags are always in the same section and always after
19732 + all frags referring to it. So it's always correct to add in
19733 + offset_adjust here. */
19734 + target = (ind_data->add_frag->offset + ind_data->add_frag->offset_adjust
19735 + + offset_adjust - frag->offset - frag->offset_adjust);
19736 + break;
19737 + case REF_GOT:
19738 + target = got->offset;
19739 + break;
19740 + default:
19741 + abort();
19742 + }
19743 +
19744 + if (target >= rs->range_min && target <= rs->range_max)
19745 + return TRUE;
19746 + else
19747 + return FALSE;
19748 +}
19749 +
19750 +static bfd_boolean
19751 +avr32_size_frags(bfd *abfd, asection *sec, struct bfd_link_info *info)
19752 +{
19753 + struct elf_avr32_link_hash_table *htab;
19754 + struct avr32_relax_data *rd;
19755 + Elf_Internal_Shdr *symtab_hdr;
19756 + Elf_Internal_Rela *relocs = NULL;
19757 + Elf_Internal_Sym *isymbuf = NULL;
19758 + struct got_entry **local_got_ents;
19759 + struct fragment **local_sym_frag;
19760 + bfd_boolean ret = FALSE;
19761 + bfd_signed_vma delta = 0;
19762 + unsigned int i;
19763 +
19764 + htab = avr32_elf_hash_table(info);
19765 + rd = avr32_relax_data(sec);
19766 +
19767 + if (sec == htab->sgot)
19768 + {
19769 + RDBG("Relaxing GOT section (vma: 0x%lx)\n",
19770 + sec->output_section->vma + sec->output_offset);
19771 + if (assign_got_offsets(htab))
19772 + htab->repeat_pass = TRUE;
19773 + return TRUE;
19774 + }
19775 +
19776 + if (!rd->is_relaxable)
19777 + return TRUE;
19778 +
19779 + if (!sec->rawsize)
19780 + sec->rawsize = sec->size;
19781 +
19782 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
19783 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
19784 + if (!relocs)
19785 + goto out;
19786 +
19787 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
19788 + if (!isymbuf)
19789 + goto out;
19790 +
19791 + local_got_ents = elf_local_got_ents(abfd);
19792 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
19793 +
19794 + RDBG("size_frags: %s<%s>\n vma: 0x%08lx, size: 0x%08lx\n",
19795 + abfd->filename, sec->name,
19796 + sec->output_section->vma + sec->output_offset, sec->size);
19797 +
19798 + for (i = 0; i < rd->frag_count; i++)
19799 + {
19800 + struct fragment *frag = &rd->frag[i];
19801 + struct avr32_reloc_data *r_data = NULL, *ind_data = NULL;
19802 + const struct relax_state *state, *next_state;
19803 + struct fragment *target_frag = NULL;
19804 + asection *sym_sec = NULL;
19805 + Elf_Internal_Rela *rela;
19806 + struct got_entry *got;
19807 + bfd_vma symval, r_offset, addend, addr;
19808 + bfd_signed_vma size_adjust = 0, distance;
19809 + unsigned long r_symndx;
19810 + bfd_boolean defined = TRUE, dynamic = FALSE;
19811 + unsigned char sym_type;
19812 +
19813 + frag->offset_adjust += delta;
19814 + state = next_state = &relax_state[frag->state];
19815 + rela = frag->rela;
19816 +
19817 + BFD_ASSERT(state->id == frag->state);
19818 +
19819 + RDBG(" 0x%04lx%c%d: %s [size %ld]", rela ? rela->r_offset : sec->rawsize,
19820 + (frag->offset_adjust < 0)?'-':'+',
19821 + abs(frag->offset_adjust), state->name, state->size);
19822 +
19823 + if (!rela)
19824 + {
19825 + RDBG(": no reloc, ignoring\n");
19826 + continue;
19827 + }
19828 +
19829 + BFD_ASSERT((unsigned int)(rela - relocs) < sec->reloc_count);
19830 + BFD_ASSERT(state != RS_NONE);
19831 +
19832 + r_offset = rela->r_offset + frag->offset_adjust;
19833 + addr = sec->output_section->vma + sec->output_offset + r_offset;
19834 +
19835 + switch (frag->state)
19836 + {
19837 + case RS_ALIGN:
19838 + size_adjust = ((addr + (1 << rela->r_addend) - 1)
19839 + & ~((1 << rela->r_addend) - 1));
19840 + size_adjust -= (sec->output_section->vma + sec->output_offset
19841 + + frag->offset + frag->offset_adjust
19842 + + frag->size + frag->size_adjust);
19843 +
19844 + RDBG(": adjusting size %lu -> %lu\n", frag->size + frag->size_adjust,
19845 + frag->size + frag->size_adjust + size_adjust);
19846 + break;
19847 +
19848 + case RS_CPENT:
19849 + if (frag->refcount == 0 && frag->size_adjust == 0)
19850 + {
19851 + RDBG(": discarding frag\n");
19852 + size_adjust = -4;
19853 + }
19854 + else if (frag->refcount > 0 && frag->size_adjust < 0)
19855 + {
19856 + RDBG(": un-discarding frag\n");
19857 + size_adjust = 4;
19858 + }
19859 + break;
19860 +
19861 + default:
19862 + if (rd->reloc_data)
19863 + r_data = &rd->reloc_data[frag->rela - relocs];
19864 +
19865 + /* If this is a cpool reference, we want the symbol that the
19866 + cpool entry refers to, not the symbol for the cpool entry
19867 + itself, as we already know what frag it's in. */
19868 + if (relax_state[frag->initial_state].reftype == REF_CPOOL)
19869 + {
19870 + Elf_Internal_Rela *irela = r_data->add_frag->rela;
19871 +
19872 + r_symndx = ELF_R_SYM(irela->r_info);
19873 + addend = irela->r_addend;
19874 +
19875 + /* The constant pool must be in the same section as the
19876 + reloc referring to it. */
19877 + BFD_ASSERT((unsigned long)(irela - relocs) < sec->reloc_count);
19878 +
19879 + ind_data = r_data;
19880 + r_data = &rd->reloc_data[irela - relocs];
19881 + }
19882 + else
19883 + {
19884 + r_symndx = ELF_R_SYM(rela->r_info);
19885 + addend = rela->r_addend;
19886 + }
19887 +
19888 + /* Get the value of the symbol referred to by the reloc. */
19889 + if (r_symndx < symtab_hdr->sh_info)
19890 + {
19891 + Elf_Internal_Sym *isym;
19892 +
19893 + isym = isymbuf + r_symndx;
19894 + symval = 0;
19895 +
19896 + RDBG(" local sym %lu: ", r_symndx);
19897 +
19898 + if (isym->st_shndx == SHN_UNDEF)
19899 + defined = FALSE;
19900 + else if (isym->st_shndx == SHN_ABS)
19901 + sym_sec = bfd_abs_section_ptr;
19902 + else if (isym->st_shndx == SHN_COMMON)
19903 + sym_sec = bfd_com_section_ptr;
19904 + else
19905 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
19906 +
19907 + symval = isym->st_value;
19908 + sym_type = ELF_ST_TYPE(isym->st_info);
19909 + target_frag = local_sym_frag[r_symndx];
19910 +
19911 + if (local_got_ents)
19912 + got = local_got_ents[r_symndx];
19913 + else
19914 + got = NULL;
19915 + }
19916 + else
19917 + {
19918 + /* Global symbol */
19919 + unsigned long index;
19920 + struct elf_link_hash_entry *h;
19921 + struct elf_avr32_link_hash_entry *havr;
19922 +
19923 + index = r_symndx - symtab_hdr->sh_info;
19924 + h = elf_sym_hashes(abfd)[index];
19925 + BFD_ASSERT(h != NULL);
19926 +
19927 + while (h->root.type == bfd_link_hash_indirect
19928 + || h->root.type == bfd_link_hash_warning)
19929 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
19930 +
19931 + havr = (struct elf_avr32_link_hash_entry *)h;
19932 + got = h->got.glist;
19933 +
19934 + symval = 0;
19935 +
19936 + RDBG(" %s: ", h->root.root.string);
19937 +
19938 + if (h->root.type != bfd_link_hash_defined
19939 + && h->root.type != bfd_link_hash_defweak)
19940 + {
19941 + RDBG("(undef)");
19942 + defined = FALSE;
19943 + }
19944 + else if ((info->shared && !info->symbolic && h->dynindx != -1)
19945 + || (htab->root.dynamic_sections_created
19946 + && h->def_dynamic && !h->def_regular))
19947 + {
19948 + RDBG("(dynamic)");
19949 + dynamic = TRUE;
19950 + sym_sec = h->root.u.def.section;
19951 + }
19952 + else
19953 + {
19954 + sym_sec = h->root.u.def.section;
19955 + symval = h->root.u.def.value;
19956 + target_frag = havr->sym_frag;
19957 + }
19958 +
19959 + sym_type = h->type;
19960 + }
19961 +
19962 + /* Thanks to elf32-ppc for this one. */
19963 + if (sym_sec && sym_sec->sec_info_type == ELF_INFO_TYPE_MERGE)
19964 + {
19965 + /* At this stage in linking, no SEC_MERGE symbol has been
19966 + adjusted, so all references to such symbols need to be
19967 + passed through _bfd_merged_section_offset. (Later, in
19968 + relocate_section, all SEC_MERGE symbols *except* for
19969 + section symbols have been adjusted.)
19970 +
19971 + SEC_MERGE sections are not relaxed by us, as they
19972 + shouldn't contain any code. */
19973 +
19974 + BFD_ASSERT(!target_frag && !(r_data && r_data->add_frag));
19975 +
19976 + /* gas may reduce relocations against symbols in SEC_MERGE
19977 + sections to a relocation against the section symbol when
19978 + the original addend was zero. When the reloc is against
19979 + a section symbol we should include the addend in the
19980 + offset passed to _bfd_merged_section_offset, since the
19981 + location of interest is the original symbol. On the
19982 + other hand, an access to "sym+addend" where "sym" is not
19983 + a section symbol should not include the addend; Such an
19984 + access is presumed to be an offset from "sym"; The
19985 + location of interest is just "sym". */
19986 + RDBG("\n MERGE: %s: 0x%lx+0x%lx+0x%lx -> ",
19987 + (sym_type == STT_SECTION)?"section":"not section",
19988 + sym_sec->output_section->vma + sym_sec->output_offset,
19989 + symval, addend);
19990 +
19991 + if (sym_type == STT_SECTION)
19992 + symval += addend;
19993 +
19994 + symval = (_bfd_merged_section_offset
19995 + (abfd, &sym_sec,
19996 + elf_section_data(sym_sec)->sec_info, symval));
19997 +
19998 + if (sym_type != STT_SECTION)
19999 + symval += addend;
20000 + }
20001 + else
20002 + symval += addend;
20003 +
20004 + if (defined && !dynamic)
20005 + {
20006 + RDBG("0x%lx+0x%lx",
20007 + sym_sec->output_section->vma + sym_sec->output_offset,
20008 + symval);
20009 + symval += sym_sec->output_section->vma + sym_sec->output_offset;
20010 + }
20011 +
20012 + if (r_data && r_data->add_frag)
20013 + /* If the add_frag pointer is set, it means that this reloc
20014 + has an addend that may be affected by relaxation. */
20015 + target_frag = r_data->add_frag;
20016 +
20017 + if (target_frag)
20018 + {
20019 + symval += target_frag->offset_adjust;
20020 +
20021 + /* If target_frag comes after this frag in the same
20022 + section, we should assume that it will be moved by
20023 + the same amount we are. */
20024 + if ((target_frag - rd->frag) < (int)rd->frag_count
20025 + && target_frag > frag)
20026 + symval += delta;
20027 + }
20028 +
20029 + distance = symval - addr;
20030 +
20031 + /* First, try to make a direct reference. If the symbol is
20032 + dynamic or undefined, we must take care not to change its
20033 + reference type, that is, we can't make it direct.
20034 +
20035 + Also, it seems like some sections may actually be resized
20036 + after the relaxation code is done, so we can't really
20037 + trust that our "distance" is correct. There's really no
20038 + easy solution to this problem, so we'll just disallow
20039 + direct references to SEC_DATA sections.
20040 +
20041 + Oh, and .bss isn't actually SEC_DATA, so we disallow
20042 + !SEC_HAS_CONTENTS as well. */
20043 + if (!dynamic && defined
20044 + && (htab->direct_data_refs
20045 + || (!(sym_sec->flags & SEC_DATA)
20046 + && (sym_sec->flags & SEC_HAS_CONTENTS)))
20047 + && next_state->direct)
20048 + {
20049 + next_state = &relax_state[next_state->direct];
20050 + RDBG(" D-> %s", next_state->name);
20051 + }
20052 +
20053 + /* Iterate backwards until we find a state that fits. */
20054 + while (next_state->prev
20055 + && !rs_is_good_enough(next_state, frag, symval, addr,
20056 + got, ind_data, delta))
20057 + {
20058 + next_state = &relax_state[next_state->prev];
20059 + RDBG(" P-> %s", next_state->name);
20060 + }
20061 +
20062 + /* Then try to find the best possible state. */
20063 + while (next_state->next)
20064 + {
20065 + const struct relax_state *candidate;
20066 +
20067 + candidate = &relax_state[next_state->next];
20068 + if (!rs_is_good_enough(candidate, frag, symval, addr, got,
20069 + ind_data, delta))
20070 + break;
20071 +
20072 + next_state = candidate;
20073 + RDBG(" N-> %s", next_state->name);
20074 + }
20075 +
20076 + RDBG(" [size %ld]\n", next_state->size);
20077 +
20078 + BFD_ASSERT(next_state->id);
20079 + BFD_ASSERT(!dynamic || next_state->reftype == REF_GOT);
20080 +
20081 + size_adjust = next_state->size - state->size;
20082 +
20083 + /* There's a theoretical possibility that shrinking one frag
20084 + may cause another to grow, which may cause the first one to
20085 + grow as well, and we're back where we started. Avoid this
20086 + scenario by disallowing a frag that has grown to ever
20087 + shrink again. */
20088 + if (state->reftype == REF_GOT && next_state->reftype != REF_GOT)
20089 + {
20090 + if (frag->has_grown)
20091 + next_state = state;
20092 + else
20093 + unref_got_entry(htab, got);
20094 + }
20095 + else if (state->reftype != REF_GOT && next_state->reftype == REF_GOT)
20096 + {
20097 + ref_got_entry(htab, got);
20098 + frag->has_grown = TRUE;
20099 + }
20100 + else if (state->reftype == REF_CPOOL
20101 + && next_state->reftype != REF_CPOOL)
20102 + {
20103 + if (frag->has_grown)
20104 + next_state = state;
20105 + else
20106 + ind_data->add_frag->refcount--;
20107 + }
20108 + else if (state->reftype != REF_CPOOL
20109 + && next_state->reftype == REF_CPOOL)
20110 + {
20111 + ind_data->add_frag->refcount++;
20112 + frag->has_grown = TRUE;
20113 + }
20114 + else
20115 + {
20116 + if (frag->has_grown && size_adjust < 0)
20117 + next_state = state;
20118 + else if (size_adjust > 0)
20119 + frag->has_grown = TRUE;
20120 + }
20121 +
20122 + size_adjust = next_state->size - state->size;
20123 + frag->state = next_state->id;
20124 +
20125 + break;
20126 + }
20127 +
20128 + if (size_adjust)
20129 + htab->repeat_pass = TRUE;
20130 +
20131 + frag->size_adjust += size_adjust;
20132 + sec->size += size_adjust;
20133 + delta += size_adjust;
20134 +
20135 + BFD_ASSERT((frag->offset + frag->offset_adjust
20136 + + frag->size + frag->size_adjust)
20137 + == (frag[1].offset + frag[1].offset_adjust + delta));
20138 + }
20139 +
20140 + ret = TRUE;
20141 +
20142 + out:
20143 + release_local_syms(abfd, isymbuf);
20144 + release_internal_relocs(sec, relocs);
20145 + return ret;
20146 +}
20147 +
20148 +static bfd_boolean
20149 +adjust_global_symbol(struct elf_avr32_link_hash_entry *havr,
20150 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
20151 +{
20152 + struct elf_link_hash_entry *h = &havr->root;
20153 +
20154 + if (havr->sym_frag && (h->root.type == bfd_link_hash_defined
20155 + || h->root.type == bfd_link_hash_defweak))
20156 + {
20157 + RDBG("adjust_global_symbol: %s 0x%08lx -> 0x%08lx\n",
20158 + h->root.root.string, h->root.u.def.value,
20159 + h->root.u.def.value + havr->sym_frag->offset_adjust);
20160 + h->root.u.def.value += havr->sym_frag->offset_adjust;
20161 + }
20162 + return TRUE;
20163 +}
20164 +
20165 +static bfd_boolean
20166 +adjust_syms(struct bfd_link_info *info)
20167 +{
20168 + struct elf_avr32_link_hash_table *htab;
20169 + bfd *abfd;
20170 +
20171 + htab = avr32_elf_hash_table(info);
20172 + elf_link_hash_traverse(&htab->root, adjust_global_symbol, info);
20173 +
20174 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
20175 + {
20176 + Elf_Internal_Sym *isymbuf;
20177 + struct fragment **local_sym_frag, *frag;
20178 + unsigned int i, sym_count;
20179 +
20180 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
20181 + if (sym_count == 0)
20182 + continue;
20183 +
20184 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
20185 + if (!isymbuf)
20186 + return FALSE;
20187 +
20188 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
20189 +
20190 + for (i = 0; i < sym_count; i++)
20191 + {
20192 + frag = local_sym_frag[i];
20193 + if (frag)
20194 + {
20195 + RDBG("adjust_local_symbol: %s[%u] 0x%08lx -> 0x%08lx\n",
20196 + abfd->filename, i, isymbuf[i].st_value,
20197 + isymbuf[i].st_value + frag->offset_adjust);
20198 + isymbuf[i].st_value += frag->offset_adjust;
20199 + }
20200 + }
20201 +
20202 + release_local_syms(abfd, isymbuf);
20203 + }
20204 +
20205 + htab->symbols_adjusted = TRUE;
20206 + return TRUE;
20207 +}
20208 +
20209 +static bfd_boolean
20210 +adjust_relocs(bfd *abfd, asection *sec, struct bfd_link_info *info)
20211 +{
20212 + struct avr32_relax_data *rd;
20213 + Elf_Internal_Rela *relocs;
20214 + Elf_Internal_Shdr *symtab_hdr;
20215 + unsigned int i;
20216 + bfd_boolean ret = FALSE;
20217 +
20218 + rd = avr32_relax_data(sec);
20219 + if (!rd->reloc_data)
20220 + return TRUE;
20221 +
20222 + RDBG("adjust_relocs: %s<%s> (count: %u)\n", abfd->filename, sec->name,
20223 + sec->reloc_count);
20224 +
20225 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
20226 + if (!relocs)
20227 + return FALSE;
20228 +
20229 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
20230 +
20231 + for (i = 0; i < sec->reloc_count; i++)
20232 + {
20233 + Elf_Internal_Rela *rela = &relocs[i];
20234 + struct avr32_reloc_data *r_data = &rd->reloc_data[i];
20235 + struct fragment *sym_frag;
20236 + unsigned long r_symndx;
20237 +
20238 + if (r_data->add_frag)
20239 + {
20240 + r_symndx = ELF_R_SYM(rela->r_info);
20241 +
20242 + if (r_symndx < symtab_hdr->sh_info)
20243 + sym_frag = elf_tdata(abfd)->local_sym_frag[r_symndx];
20244 + else
20245 + {
20246 + struct elf_link_hash_entry *h;
20247 +
20248 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
20249 +
20250 + while (h->root.type == bfd_link_hash_indirect
20251 + || h->root.type == bfd_link_hash_warning)
20252 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
20253 +
20254 + BFD_ASSERT(h->root.type == bfd_link_hash_defined
20255 + || h->root.type == bfd_link_hash_defweak);
20256 +
20257 + sym_frag = ((struct elf_avr32_link_hash_entry *)h)->sym_frag;
20258 + }
20259 +
20260 + RDBG(" addend: 0x%08lx -> 0x%08lx\n",
20261 + rela->r_addend,
20262 + rela->r_addend + r_data->add_frag->offset_adjust
20263 + - (sym_frag ? sym_frag->offset_adjust : 0));
20264 +
20265 + /* If this is against a section symbol, we won't find any
20266 + sym_frag, so we'll just adjust the addend. */
20267 + rela->r_addend += r_data->add_frag->offset_adjust;
20268 + if (sym_frag)
20269 + rela->r_addend -= sym_frag->offset_adjust;
20270 +
20271 + if (r_data->sub_frag)
20272 + {
20273 + bfd_byte *contents;
20274 + bfd_signed_vma diff;
20275 +
20276 + contents = retrieve_contents(abfd, sec, info->keep_memory);
20277 + if (!contents)
20278 + goto out;
20279 +
20280 + /* I realize now that sub_frag is misnamed. It's
20281 + actually add_frag which is subtracted in this
20282 + case... */
20283 + diff = bfd_get_signed_32(abfd, contents + rela->r_offset);
20284 + diff += (r_data->sub_frag->offset_adjust
20285 + - r_data->add_frag->offset_adjust);
20286 + bfd_put_32(abfd, diff, contents + rela->r_offset);
20287 +
20288 + RDBG(" 0x%lx: DIFF32 updated: 0x%lx\n", rela->r_offset, diff);
20289 +
20290 + release_contents(sec, contents);
20291 + }
20292 + }
20293 + else
20294 + BFD_ASSERT(!r_data->sub_frag);
20295 + }
20296 +
20297 + ret = TRUE;
20298 +
20299 + out:
20300 + release_internal_relocs(sec, relocs);
20301 + return ret;
20302 +}
20303 +
20304 +static bfd_boolean
20305 +avr32_move_data(bfd *abfd, asection *sec, struct bfd_link_info *info)
20306 +{
20307 + struct elf_avr32_link_hash_table *htab;
20308 + struct avr32_relax_data *rd;
20309 + struct fragment *frag, *fragend;
20310 + Elf_Internal_Rela *relocs = NULL;
20311 + bfd_byte *contents = NULL;
20312 + unsigned int i;
20313 + bfd_boolean ret = FALSE;
20314 +
20315 + htab = avr32_elf_hash_table(info);
20316 + rd = avr32_relax_data(sec);
20317 +
20318 + if (!htab->symbols_adjusted)
20319 + if (!adjust_syms(info))
20320 + return FALSE;
20321 +
20322 + if (rd->is_relaxable)
20323 + {
20324 + /* Resize the section first, so that we can be sure that enough
20325 + memory is allocated in case the section has grown. */
20326 + if (sec->size > sec->rawsize
20327 + && elf_section_data(sec)->this_hdr.contents)
20328 + {
20329 + /* We must not use cached data if the section has grown. */
20330 + free(elf_section_data(sec)->this_hdr.contents);
20331 + elf_section_data(sec)->this_hdr.contents = NULL;
20332 + }
20333 +
20334 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
20335 + if (!relocs)
20336 + goto out;
20337 + contents = retrieve_contents(abfd, sec, info->keep_memory);
20338 + if (!contents)
20339 + goto out;
20340 +
20341 + fragend = rd->frag + rd->frag_count;
20342 +
20343 + RDBG("move_data: %s<%s>: relocs=%p, contents=%p\n",
20344 + abfd->filename, sec->name, relocs, contents);
20345 +
20346 + /* First, move the data into place. We must take care to move
20347 + frags in the right order so that we don't accidentally
20348 + overwrite parts of the next frag. */
20349 + for (frag = rd->frag; frag < fragend; frag++)
20350 + {
20351 + RDBG(" 0x%08lx%c0x%x: size 0x%lx%c0x%x\n",
20352 + frag->offset, frag->offset_adjust >= 0 ? '+' : '-',
20353 + abs(frag->offset_adjust),
20354 + frag->size, frag->size_adjust >= 0 ? '+' : '-',
20355 + abs(frag->size_adjust));
20356 + if (frag->offset_adjust > 0)
20357 + {
20358 + struct fragment *prev = frag - 1;
20359 + struct fragment *last;
20360 +
20361 + for (last = frag; last < fragend && last->offset_adjust > 0;
20362 + last++) ;
20363 +
20364 + if (last == fragend)
20365 + last--;
20366 +
20367 + for (frag = last; frag != prev; frag--)
20368 + {
20369 + if (frag->offset_adjust
20370 + && frag->size + frag->size_adjust > 0)
20371 + {
20372 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
20373 + frag->offset, frag->offset + frag->offset_adjust,
20374 + frag->size + frag->size_adjust);
20375 + memmove(contents + frag->offset + frag->offset_adjust,
20376 + contents + frag->offset,
20377 + frag->size + frag->size_adjust);
20378 + }
20379 + }
20380 + frag = last;
20381 + }
20382 + else if (frag->offset_adjust && frag->size + frag->size_adjust > 0)
20383 + {
20384 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
20385 + frag->offset, frag->offset + frag->offset_adjust,
20386 + frag->size + frag->size_adjust);
20387 + memmove(contents + frag->offset + frag->offset_adjust,
20388 + contents + frag->offset,
20389 + frag->size + frag->size_adjust);
20390 + }
20391 + }
20392 +
20393 + i = 0;
20394 +
20395 + for (frag = rd->frag; frag < fragend; frag++)
20396 + {
20397 + const struct relax_state *state, *istate;
20398 + struct avr32_reloc_data *r_data = NULL;
20399 +
20400 + istate = &relax_state[frag->initial_state];
20401 + state = &relax_state[frag->state];
20402 +
20403 + if (rd->reloc_data)
20404 + r_data = &rd->reloc_data[frag->rela - relocs];
20405 +
20406 + BFD_ASSERT((long)(frag->size + frag->size_adjust) >= 0);
20407 + BFD_ASSERT(state->reftype != REF_CPOOL
20408 + || r_data->add_frag->refcount > 0);
20409 +
20410 + if (istate->reftype == REF_CPOOL && state->reftype != REF_CPOOL)
20411 + {
20412 + struct fragment *ifrag;
20413 +
20414 + /* An indirect reference through the cpool has been
20415 + converted to a direct reference. We must update the
20416 + reloc to point to the symbol itself instead of the
20417 + constant pool entry. The reloc type will be updated
20418 + later. */
20419 + ifrag = r_data->add_frag;
20420 + frag->rela->r_info = ifrag->rela->r_info;
20421 + frag->rela->r_addend = ifrag->rela->r_addend;
20422 +
20423 + /* Copy the reloc data so the addend will be adjusted
20424 + correctly later. */
20425 + *r_data = rd->reloc_data[ifrag->rela - relocs];
20426 + }
20427 +
20428 + /* Move all relocs covered by this frag. */
20429 + if (frag->rela)
20430 + BFD_ASSERT(&relocs[i] <= frag->rela);
20431 + else
20432 + BFD_ASSERT((frag + 1) == fragend && frag->state == RS_NONE);
20433 +
20434 + if (frag == rd->frag)
20435 + BFD_ASSERT(i == 0);
20436 + else
20437 + BFD_ASSERT(&relocs[i] > frag[-1].rela);
20438 +
20439 + /* If non-null, frag->rela is the last relocation in the
20440 + fragment. frag->rela can only be null in the last
20441 + fragment, so in that case, we'll just do the rest. */
20442 + for (; (i < sec->reloc_count
20443 + && (!frag->rela || &relocs[i] <= frag->rela)); i++)
20444 + {
20445 + RDBG("[%4u] r_offset 0x%08lx -> 0x%08lx\n", i, relocs[i].r_offset,
20446 + relocs[i].r_offset + frag->offset_adjust);
20447 + relocs[i].r_offset += frag->offset_adjust;
20448 + }
20449 +
20450 + if (frag->refcount == 0)
20451 + {
20452 + /* If this frag is to be discarded, make sure we won't
20453 + relocate it later on. */
20454 + BFD_ASSERT(frag->state == RS_CPENT);
20455 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
20456 + R_AVR32_NONE);
20457 + }
20458 + else if (frag->state == RS_ALIGN)
20459 + {
20460 + bfd_vma addr, addr_end;
20461 +
20462 + addr = frag->rela->r_offset;
20463 + addr_end = (frag->offset + frag->offset_adjust
20464 + + frag->size + frag->size_adjust);
20465 +
20466 + /* If the section is executable, insert NOPs.
20467 + Otherwise, insert zeroes. */
20468 + if (sec->flags & SEC_CODE)
20469 + {
20470 + if (addr & 1)
20471 + {
20472 + bfd_put_8(abfd, 0, contents + addr);
20473 + addr++;
20474 + }
20475 +
20476 + BFD_ASSERT(!((addr_end - addr) & 1));
20477 +
20478 + while (addr < addr_end)
20479 + {
20480 + bfd_put_16(abfd, NOP_OPCODE, contents + addr);
20481 + addr += 2;
20482 + }
20483 + }
20484 + else
20485 + memset(contents + addr, 0, addr_end - addr);
20486 + }
20487 + else if (state->opcode_mask)
20488 + {
20489 + bfd_vma insn;
20490 +
20491 + /* Update the opcode and the relocation type unless it's a
20492 + "special" relax state (i.e. RS_NONE, RS_ALIGN or
20493 + RS_CPENT.), in which case the opcode mask is zero. */
20494 + insn = bfd_get_32(abfd, contents + frag->rela->r_offset);
20495 + insn &= ~state->opcode_mask;
20496 + insn |= state->opcode;
20497 + RDBG(" 0x%lx: inserting insn %08lx\n",
20498 + frag->rela->r_offset, insn);
20499 + bfd_put_32(abfd, insn, contents + frag->rela->r_offset);
20500 +
20501 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
20502 + state->r_type);
20503 + }
20504 +
20505 + if ((frag + 1) == fragend)
20506 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
20507 + + frag->size_adjust) == sec->size);
20508 + else
20509 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
20510 + + frag->size_adjust)
20511 + == (frag[1].offset + frag[1].offset_adjust));
20512 + }
20513 + }
20514 +
20515 + /* Adjust reloc addends and DIFF32 differences */
20516 + if (!adjust_relocs(abfd, sec, info))
20517 + return FALSE;
20518 +
20519 + ret = TRUE;
20520 +
20521 + out:
20522 + release_contents(sec, contents);
20523 + release_internal_relocs(sec, relocs);
20524 + return ret;
20525 +}
20526 +
20527 +static bfd_boolean
20528 +avr32_elf_relax_section(bfd *abfd, asection *sec,
20529 + struct bfd_link_info *info, bfd_boolean *again)
20530 +{
20531 + struct elf_avr32_link_hash_table *htab;
20532 + struct avr32_relax_data *rd;
20533 +
20534 + *again = FALSE;
20535 + if (info->relocatable)
20536 + return TRUE;
20537 +
20538 + htab = avr32_elf_hash_table(info);
20539 + if ((!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
20540 + && sec != htab->sgot)
20541 + return TRUE;
20542 +
20543 + if (!htab->relocations_analyzed)
20544 + {
20545 + if (!analyze_relocations(info))
20546 + return FALSE;
20547 + htab->relocations_analyzed = TRUE;
20548 + }
20549 +
20550 + rd = avr32_relax_data(sec);
20551 +
20552 + if (rd->iteration != htab->relax_iteration)
20553 + {
20554 + if (!htab->repeat_pass)
20555 + htab->relax_pass++;
20556 + htab->relax_iteration++;
20557 + htab->repeat_pass = FALSE;
20558 + }
20559 +
20560 + rd->iteration++;
20561 +
20562 + switch (htab->relax_pass)
20563 + {
20564 + case RELAX_PASS_SIZE_FRAGS:
20565 + if (!avr32_size_frags(abfd, sec, info))
20566 + return FALSE;
20567 + *again = TRUE;
20568 + break;
20569 + case RELAX_PASS_MOVE_DATA:
20570 + if (!avr32_move_data(abfd, sec, info))
20571 + return FALSE;
20572 + break;
20573 + }
20574 +
20575 + return TRUE;
20576 +}
20577 +
20578 +\f
20579 +/* Relocation */
20580 +
20581 +static bfd_reloc_status_type
20582 +avr32_check_reloc_value(asection *sec, Elf_Internal_Rela *rela,
20583 + bfd_signed_vma relocation, reloc_howto_type *howto);
20584 +static bfd_reloc_status_type
20585 +avr32_final_link_relocate(reloc_howto_type *howto, bfd *input_bfd,
20586 + asection *input_section, bfd_byte *contents,
20587 + Elf_Internal_Rela *rel, bfd_vma value);
20588 +static bfd_boolean
20589 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
20590 + bfd *input_bfd, asection *input_section,
20591 + bfd_byte *contents, Elf_Internal_Rela *relocs,
20592 + Elf_Internal_Sym *local_syms,
20593 + asection **local_sections);
20594 +
20595 +
20596 +#define symbol_address(symbol) \
20597 + symbol->value + symbol->section->output_section->vma \
20598 + + symbol->section->output_offset
20599 +
20600 +#define avr32_elf_insert_field(size, field, abfd, reloc_entry, data) \
20601 + do \
20602 + { \
20603 + unsigned long x; \
20604 + x = bfd_get_##size (abfd, data + reloc_entry->address); \
20605 + x &= ~reloc_entry->howto->dst_mask; \
20606 + x |= field & reloc_entry->howto->dst_mask; \
20607 + bfd_put_##size (abfd, (bfd_vma) x, data + reloc_entry->address); \
20608 + } \
20609 + while(0)
20610 +
20611 +static bfd_reloc_status_type
20612 +avr32_check_reloc_value(asection *sec ATTRIBUTE_UNUSED,
20613 + Elf_Internal_Rela *rela ATTRIBUTE_UNUSED,
20614 + bfd_signed_vma relocation,
20615 + reloc_howto_type *howto)
20616 +{
20617 + bfd_vma reloc_u;
20618 +
20619 + /* We take "complain_overflow_dont" to mean "don't complain on
20620 + alignment either". This way, we don't have to special-case
20621 + R_AVR32_HI16 */
20622 + if (howto->complain_on_overflow == complain_overflow_dont)
20623 + return bfd_reloc_ok;
20624 +
20625 + /* Check if the value is correctly aligned */
20626 + if (relocation & ((1 << howto->rightshift) - 1))
20627 + {
20628 + RDBG("misaligned: %s<%s+%lx>: %s: 0x%lx (align %u)\n",
20629 + sec->owner->filename, sec->name, rela->r_offset,
20630 + howto->name, relocation, howto->rightshift);
20631 + return bfd_reloc_overflow;
20632 + }
20633 +
20634 + /* Now, get rid of the unnecessary bits */
20635 + relocation >>= howto->rightshift;
20636 + reloc_u = (bfd_vma)relocation;
20637 +
20638 + switch (howto->complain_on_overflow)
20639 + {
20640 + case complain_overflow_unsigned:
20641 + case complain_overflow_bitfield:
20642 + if (reloc_u > (unsigned long)((1 << howto->bitsize) - 1))
20643 + {
20644 + RDBG("unsigned overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
20645 + sec->owner->filename, sec->name, rela->r_offset,
20646 + howto->name, reloc_u, howto->bitsize);
20647 + RDBG("reloc vma: 0x%lx\n",
20648 + sec->output_section->vma + sec->output_offset + rela->r_offset);
20649 +
20650 + return bfd_reloc_overflow;
20651 + }
20652 + break;
20653 + case complain_overflow_signed:
20654 + if (relocation > (1 << (howto->bitsize - 1)) - 1)
20655 + {
20656 + RDBG("signed overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
20657 + sec->owner->filename, sec->name, rela->r_offset,
20658 + howto->name, reloc_u, howto->bitsize);
20659 + RDBG("reloc vma: 0x%lx\n",
20660 + sec->output_section->vma + sec->output_offset + rela->r_offset);
20661 +
20662 + return bfd_reloc_overflow;
20663 + }
20664 + if (relocation < -(1 << (howto->bitsize - 1)))
20665 + {
20666 + RDBG("signed overflow: %s<%s+%lx>: %s: -0x%lx (size %u)\n",
20667 + sec->owner->filename, sec->name, rela->r_offset,
20668 + howto->name, -relocation, howto->bitsize);
20669 + RDBG("reloc vma: 0x%lx\n",
20670 + sec->output_section->vma + sec->output_offset + rela->r_offset);
20671 +
20672 + return bfd_reloc_overflow;
20673 + }
20674 + break;
20675 + default:
20676 + abort();
20677 + }
20678 +
20679 + return bfd_reloc_ok;
20680 +}
20681 +
20682 +
20683 +static bfd_reloc_status_type
20684 +avr32_final_link_relocate(reloc_howto_type *howto,
20685 + bfd *input_bfd,
20686 + asection *input_section,
20687 + bfd_byte *contents,
20688 + Elf_Internal_Rela *rel,
20689 + bfd_vma value)
20690 +{
20691 + bfd_vma field;
20692 + bfd_vma relocation;
20693 + bfd_reloc_status_type status;
20694 + bfd_byte *p = contents + rel->r_offset;
20695 + unsigned long x;
20696 +
20697 + pr_debug(" (6b) final link relocate\n");
20698 +
20699 + /* Sanity check the address */
20700 + if (rel->r_offset > input_section->size)
20701 + {
20702 + (*_bfd_error_handler)
20703 + ("%B: %A+0x%lx: offset out of range (section size: 0x%lx)",
20704 + input_bfd, input_section, rel->r_offset, input_section->size);
20705 + return bfd_reloc_outofrange;
20706 + }
20707 +
20708 + relocation = value + rel->r_addend;
20709 +
20710 + if (howto->pc_relative)
20711 + {
20712 + bfd_vma addr;
20713 +
20714 + addr = input_section->output_section->vma
20715 + + input_section->output_offset + rel->r_offset;
20716 + addr &= ~0UL << howto->rightshift;
20717 + relocation -= addr;
20718 + }
20719 +
20720 + switch (ELF32_R_TYPE(rel->r_info))
20721 + {
20722 + case R_AVR32_16N_PCREL:
20723 + /* sub reg, pc, . - (sym + addend) */
20724 + relocation = -relocation;
20725 + break;
20726 + }
20727 +
20728 + status = avr32_check_reloc_value(input_section, rel, relocation, howto);
20729 +
20730 + relocation >>= howto->rightshift;
20731 + if (howto->bitsize == 21)
20732 + field = (relocation & 0xffff)
20733 + | ((relocation & 0x10000) << 4)
20734 + | ((relocation & 0x1e0000) << 8);
20735 + else if (howto->bitsize == 12)
20736 + field = (relocation & 0xff) | ((relocation & 0xf00) << 4);
20737 + else if (howto->bitsize == 10)
20738 + field = ((relocation & 0xff) << 4)
20739 + | ((relocation & 0x300) >> 8);
20740 + else
20741 + field = relocation << howto->bitpos;
20742 +
20743 + switch (howto->size)
20744 + {
20745 + case 0:
20746 + x = bfd_get_8 (input_bfd, p);
20747 + x &= ~howto->dst_mask;
20748 + x |= field & howto->dst_mask;
20749 + bfd_put_8 (input_bfd, (bfd_vma) x, p);
20750 + break;
20751 + case 1:
20752 + x = bfd_get_16 (input_bfd, p);
20753 + x &= ~howto->dst_mask;
20754 + x |= field & howto->dst_mask;
20755 + bfd_put_16 (input_bfd, (bfd_vma) x, p);
20756 + break;
20757 + case 2:
20758 + x = bfd_get_32 (input_bfd, p);
20759 + x &= ~howto->dst_mask;
20760 + x |= field & howto->dst_mask;
20761 + bfd_put_32 (input_bfd, (bfd_vma) x, p);
20762 + break;
20763 + default:
20764 + abort();
20765 + }
20766 +
20767 + return status;
20768 +}
20769 +
20770 +/* (6) Apply relocations to the normal (non-dynamic) sections */
20771 +
20772 +static bfd_boolean
20773 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
20774 + bfd *input_bfd, asection *input_section,
20775 + bfd_byte *contents, Elf_Internal_Rela *relocs,
20776 + Elf_Internal_Sym *local_syms,
20777 + asection **local_sections)
20778 +{
20779 + struct elf_avr32_link_hash_table *htab;
20780 + Elf_Internal_Shdr *symtab_hdr;
20781 + Elf_Internal_Rela *rel, *relend;
20782 + struct elf_link_hash_entry **sym_hashes;
20783 + struct got_entry **local_got_ents;
20784 + asection *sgot;
20785 + asection *srelgot;
20786 +
20787 + pr_debug("(6) relocate section %s:<%s> (size 0x%lx)\n",
20788 + input_bfd->filename, input_section->name, input_section->size);
20789 +
20790 + /* If we're doing a partial link, we don't have to do anything since
20791 + we're using RELA relocations */
20792 + if (info->relocatable)
20793 + return TRUE;
20794 +
20795 + htab = avr32_elf_hash_table(info);
20796 + symtab_hdr = &elf_tdata(input_bfd)->symtab_hdr;
20797 + sym_hashes = elf_sym_hashes(input_bfd);
20798 + local_got_ents = elf_local_got_ents(input_bfd);
20799 + sgot = htab->sgot;
20800 + srelgot = htab->srelgot;
20801 +
20802 + relend = relocs + input_section->reloc_count;
20803 + for (rel = relocs; rel < relend; rel++)
20804 + {
20805 + unsigned long r_type, r_symndx;
20806 + reloc_howto_type *howto;
20807 + Elf_Internal_Sym *sym = NULL;
20808 + struct elf_link_hash_entry *h = NULL;
20809 + asection *sec = NULL;
20810 + bfd_vma value;
20811 + bfd_vma offset;
20812 + bfd_reloc_status_type status;
20813 +
20814 + r_type = ELF32_R_TYPE(rel->r_info);
20815 + r_symndx = ELF32_R_SYM(rel->r_info);
20816 +
20817 + if (r_type == R_AVR32_NONE
20818 + || r_type == R_AVR32_ALIGN
20819 + || r_type == R_AVR32_DIFF32
20820 + || r_type == R_AVR32_DIFF16
20821 + || r_type == R_AVR32_DIFF8)
20822 + continue;
20823 +
20824 + /* Sanity check */
20825 + if (r_type > R_AVR32_max)
20826 + {
20827 + bfd_set_error(bfd_error_bad_value);
20828 + return FALSE;
20829 + }
20830 +
20831 + howto = &elf_avr32_howto_table[r_type];
20832 +
20833 + if (r_symndx < symtab_hdr->sh_info)
20834 + {
20835 + sym = local_syms + r_symndx;
20836 + sec = local_sections[r_symndx];
20837 +
20838 + pr_debug(" (6a) processing %s against local symbol %lu\n",
20839 + howto->name, r_symndx);
20840 +
20841 + /* The following function changes rel->r_addend behind our back. */
20842 + value = _bfd_elf_rela_local_sym(output_bfd, sym, &sec, rel);
20843 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
20844 + }
20845 + else
20846 + {
20847 + if (sym_hashes == NULL)
20848 + return FALSE;
20849 +
20850 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
20851 + while (h->root.type == bfd_link_hash_indirect
20852 + || h->root.type == bfd_link_hash_warning)
20853 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
20854 +
20855 + pr_debug(" (6a) processing %s against symbol %s\n",
20856 + howto->name, h->root.root.string);
20857 +
20858 + if (h->root.type == bfd_link_hash_defined
20859 + || h->root.type == bfd_link_hash_defweak)
20860 + {
20861 + bfd_boolean dyn;
20862 +
20863 + dyn = htab->root.dynamic_sections_created;
20864 + sec = h->root.u.def.section;
20865 +
20866 + if (sec->output_section)
20867 + value = (h->root.u.def.value
20868 + + sec->output_section->vma
20869 + + sec->output_offset);
20870 + else
20871 + value = h->root.u.def.value;
20872 + }
20873 + else if (h->root.type == bfd_link_hash_undefweak)
20874 + value = 0;
20875 + else if (info->unresolved_syms_in_objects == RM_IGNORE
20876 + && ELF_ST_VISIBILITY(h->other) == STV_DEFAULT)
20877 + value = 0;
20878 + else
20879 + {
20880 + bfd_boolean err;
20881 + err = (info->unresolved_syms_in_objects == RM_GENERATE_ERROR
20882 + || ELF_ST_VISIBILITY(h->other) != STV_DEFAULT);
20883 + if (!info->callbacks->undefined_symbol
20884 + (info, h->root.root.string, input_bfd,
20885 + input_section, rel->r_offset, err))
20886 + return FALSE;
20887 + value = 0;
20888 + }
20889 +
20890 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
20891 + }
20892 +
20893 + switch (r_type)
20894 + {
20895 + case R_AVR32_GOT32:
20896 + case R_AVR32_GOT16:
20897 + case R_AVR32_GOT8:
20898 + case R_AVR32_GOT21S:
20899 + case R_AVR32_GOT18SW:
20900 + case R_AVR32_GOT16S:
20901 + case R_AVR32_GOT7UW:
20902 + case R_AVR32_LDA_GOT:
20903 + case R_AVR32_GOTCALL:
20904 + BFD_ASSERT(sgot != NULL);
20905 +
20906 + if (h != NULL)
20907 + {
20908 + BFD_ASSERT(h->got.glist->refcount > 0);
20909 + offset = h->got.glist->offset;
20910 +
20911 + BFD_ASSERT(offset < sgot->size);
20912 + if (!elf_hash_table(info)->dynamic_sections_created
20913 + || (h->def_regular
20914 + && (!info->shared
20915 + || info->symbolic
20916 + || h->dynindx == -1)))
20917 + {
20918 + /* This is actually a static link, or it is a
20919 + -Bsymbolic link and the symbol is defined
20920 + locally, or the symbol was forced to be local. */
20921 + bfd_put_32(output_bfd, value, sgot->contents + offset);
20922 + }
20923 + }
20924 + else
20925 + {
20926 + BFD_ASSERT(local_got_ents &&
20927 + local_got_ents[r_symndx]->refcount > 0);
20928 + offset = local_got_ents[r_symndx]->offset;
20929 +
20930 + /* Local GOT entries don't have relocs. If this is a
20931 + shared library, the dynamic linker will add the load
20932 + address to the initial value at startup. */
20933 + BFD_ASSERT(offset < sgot->size);
20934 + pr_debug("Initializing GOT entry at offset %lu: 0x%lx\n",
20935 + offset, value);
20936 + bfd_put_32 (output_bfd, value, sgot->contents + offset);
20937 + }
20938 +
20939 + value = sgot->output_offset + offset;
20940 + pr_debug("GOT reference: New value %lx\n", value);
20941 + break;
20942 +
20943 + case R_AVR32_GOTPC:
20944 + /* This relocation type is for constant pool entries used in
20945 + the calculation "Rd = PC - (PC - GOT)", where the
20946 + constant pool supplies the constant (PC - GOT)
20947 + offset. The symbol value + addend indicates where the
20948 + value of PC is taken. */
20949 + value -= sgot->output_section->vma;
20950 + break;
20951 +
20952 + case R_AVR32_32_PCREL:
20953 + /* We must adjust r_offset to account for discarded data in
20954 + the .eh_frame section. This is probably not the right
20955 + way to do this, since AFAICS all other architectures do
20956 + it some other way. I just can't figure out how... */
20957 + {
20958 + bfd_vma r_offset;
20959 +
20960 + r_offset = _bfd_elf_section_offset(output_bfd, info,
20961 + input_section,
20962 + rel->r_offset);
20963 + if (r_offset == (bfd_vma)-1
20964 + || r_offset == (bfd_vma)-2)
20965 + continue;
20966 + rel->r_offset = r_offset;
20967 + }
20968 + break;
20969 +
20970 + case R_AVR32_32:
20971 + /* We need to emit a run-time relocation in the following cases:
20972 + - we're creating a shared library
20973 + - the symbol is not defined in any regular objects
20974 +
20975 + Of course, sections that aren't going to be part of the
20976 + run-time image will not get any relocs, and undefined
20977 + symbols won't have any either (only weak undefined
20978 + symbols should get this far). */
20979 + if ((info->shared
20980 + || (elf_hash_table(info)->dynamic_sections_created
20981 + && h != NULL
20982 + && h->def_dynamic
20983 + && !h->def_regular))
20984 + && r_symndx != 0
20985 + && (input_section->flags & SEC_ALLOC))
20986 + {
20987 + Elf_Internal_Rela outrel;
20988 + bfd_byte *loc;
20989 + bfd_boolean skip, relocate;
20990 + struct elf_avr32_link_hash_entry *avrh;
20991 +
20992 + pr_debug("Going to generate dynamic reloc...\n");
20993 +
20994 + skip = FALSE;
20995 + relocate = FALSE;
20996 +
20997 + outrel.r_offset = _bfd_elf_section_offset(output_bfd, info,
20998 + input_section,
20999 + rel->r_offset);
21000 + if (outrel.r_offset == (bfd_vma)-1)
21001 + skip = TRUE;
21002 + else if (outrel.r_offset == (bfd_vma)-2)
21003 + skip = TRUE, relocate = TRUE;
21004 +
21005 + outrel.r_offset += (input_section->output_section->vma
21006 + + input_section->output_offset);
21007 +
21008 + pr_debug(" ... offset %lx, dynindx %ld\n",
21009 + outrel.r_offset, h ? h->dynindx : -1);
21010 +
21011 + if (skip)
21012 + memset(&outrel, 0, sizeof(outrel));
21013 + else
21014 + {
21015 + avrh = (struct elf_avr32_link_hash_entry *)h;
21016 + /* h->dynindx may be -1 if this symbol was marked to
21017 + become local. */
21018 + if (h == NULL
21019 + || ((info->symbolic || h->dynindx == -1)
21020 + && h->def_regular))
21021 + {
21022 + relocate = TRUE;
21023 + outrel.r_info = ELF32_R_INFO(0, R_AVR32_RELATIVE);
21024 + outrel.r_addend = value + rel->r_addend;
21025 + pr_debug(" ... R_AVR32_RELATIVE\n");
21026 + }
21027 + else
21028 + {
21029 + BFD_ASSERT(h->dynindx != -1);
21030 + relocate = TRUE;
21031 + outrel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
21032 + outrel.r_addend = rel->r_addend;
21033 + pr_debug(" ... R_AVR32_GLOB_DAT\n");
21034 + }
21035 + }
21036 +
21037 + pr_debug("srelgot reloc_count: %d, size %lu\n",
21038 + srelgot->reloc_count, srelgot->size);
21039 +
21040 + loc = srelgot->contents;
21041 + loc += srelgot->reloc_count++ * sizeof(Elf32_External_Rela);
21042 + bfd_elf32_swap_reloca_out(output_bfd, &outrel, loc);
21043 +
21044 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
21045 + <= srelgot->size);
21046 +
21047 + if (!relocate)
21048 + continue;
21049 + }
21050 + break;
21051 + }
21052 +
21053 + status = avr32_final_link_relocate(howto, input_bfd, input_section,
21054 + contents, rel, value);
21055 +
21056 + switch (status)
21057 + {
21058 + case bfd_reloc_ok:
21059 + break;
21060 +
21061 + case bfd_reloc_overflow:
21062 + {
21063 + const char *name;
21064 +
21065 + if (h != NULL)
21066 + name = h->root.root.string;
21067 + else
21068 + {
21069 + name = bfd_elf_string_from_elf_section(input_bfd,
21070 + symtab_hdr->sh_link,
21071 + sym->st_name);
21072 + if (name == NULL)
21073 + return FALSE;
21074 + if (*name == '\0')
21075 + name = bfd_section_name(input_bfd, sec);
21076 + }
21077 + if (!((*info->callbacks->reloc_overflow)
21078 + (info, (h ? &h->root : NULL), name, howto->name,
21079 + rel->r_addend, input_bfd, input_section, rel->r_offset)))
21080 + return FALSE;
21081 + }
21082 + break;
21083 +
21084 + case bfd_reloc_outofrange:
21085 + default:
21086 + abort();
21087 + }
21088 + }
21089 +
21090 + return TRUE;
21091 +}
21092 +
21093 +\f
21094 +/* Additional processing of dynamic sections after relocation */
21095 +
21096 +static bfd_boolean
21097 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
21098 + struct elf_link_hash_entry *h,
21099 + Elf_Internal_Sym *sym);
21100 +static bfd_boolean
21101 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info);
21102 +
21103 +
21104 +/* (7) Initialize the contents of a dynamic symbol and/or emit
21105 + relocations for it */
21106 +
21107 +static bfd_boolean
21108 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
21109 + struct elf_link_hash_entry *h,
21110 + Elf_Internal_Sym *sym)
21111 +{
21112 + struct elf_avr32_link_hash_table *htab;
21113 + struct got_entry *got;
21114 +
21115 + pr_debug("(7) finish dynamic symbol: %s\n", h->root.root.string);
21116 +
21117 + htab = avr32_elf_hash_table(info);
21118 + got = h->got.glist;
21119 +
21120 + if (got && got->refcount > 0)
21121 + {
21122 + asection *sgot;
21123 + asection *srelgot;
21124 + Elf_Internal_Rela rel;
21125 + bfd_byte *loc;
21126 +
21127 + /* This symbol has an entry in the GOT. Set it up. */
21128 + sgot = htab->sgot;
21129 + srelgot = htab->srelgot;
21130 + BFD_ASSERT(sgot && srelgot);
21131 +
21132 + rel.r_offset = (sgot->output_section->vma
21133 + + sgot->output_offset
21134 + + got->offset);
21135 +
21136 + /* If this is a static link, or it is a -Bsymbolic link and the
21137 + symbol is defined locally or was forced to be local because
21138 + of a version file, we just want to emit a RELATIVE reloc. The
21139 + entry in the global offset table will already have been
21140 + initialized in the relocate_section function. */
21141 + if ((info->shared
21142 + && !info->symbolic
21143 + && h->dynindx != -1)
21144 + || (htab->root.dynamic_sections_created
21145 + && h->def_dynamic
21146 + && !h->def_regular))
21147 + {
21148 + bfd_put_32(output_bfd, 0, sgot->contents + got->offset);
21149 + rel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
21150 + rel.r_addend = 0;
21151 +
21152 + pr_debug("GOT reloc R_AVR32_GLOB_DAT, dynindx: %ld\n", h->dynindx);
21153 + pr_debug(" srelgot reloc_count: %d, size: %lu\n",
21154 + srelgot->reloc_count, srelgot->size);
21155 +
21156 + loc = (srelgot->contents
21157 + + srelgot->reloc_count++ * sizeof(Elf32_External_Rela));
21158 + bfd_elf32_swap_reloca_out(output_bfd, &rel, loc);
21159 +
21160 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
21161 + <= srelgot->size);
21162 + }
21163 + }
21164 +
21165 + /* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute */
21166 + if (strcmp(h->root.root.string, "_DYNAMIC") == 0
21167 + || strcmp(h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
21168 + sym->st_shndx = SHN_ABS;
21169 +
21170 + return TRUE;
21171 +}
21172 +
21173 +/* (8) Do any remaining initialization of the dynamic sections */
21174 +
21175 +static bfd_boolean
21176 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info)
21177 +{
21178 + struct elf_avr32_link_hash_table *htab;
21179 + asection *sgot, *sdyn;
21180 +
21181 + pr_debug("(8) finish dynamic sections\n");
21182 +
21183 + htab = avr32_elf_hash_table(info);
21184 + sgot = htab->sgot;
21185 + sdyn = bfd_get_section_by_name(htab->root.dynobj, ".dynamic");
21186 +
21187 + if (htab->root.dynamic_sections_created)
21188 + {
21189 + Elf32_External_Dyn *dyncon, *dynconend;
21190 +
21191 + BFD_ASSERT(sdyn && sgot && sgot->size >= AVR32_GOT_HEADER_SIZE);
21192 +
21193 + dyncon = (Elf32_External_Dyn *)sdyn->contents;
21194 + dynconend = (Elf32_External_Dyn *)(sdyn->contents + sdyn->size);
21195 + for (; dyncon < dynconend; dyncon++)
21196 + {
21197 + Elf_Internal_Dyn dyn;
21198 + asection *s;
21199 +
21200 + bfd_elf32_swap_dyn_in(htab->root.dynobj, dyncon, &dyn);
21201 +
21202 + switch (dyn.d_tag)
21203 + {
21204 + default:
21205 + break;
21206 +
21207 + case DT_PLTGOT:
21208 + s = sgot->output_section;
21209 + BFD_ASSERT(s != NULL);
21210 + dyn.d_un.d_ptr = s->vma;
21211 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
21212 + break;
21213 +
21214 + case DT_AVR32_GOTSZ:
21215 + s = sgot->output_section;
21216 + BFD_ASSERT(s != NULL);
21217 + dyn.d_un.d_val = s->size;
21218 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
21219 + break;
21220 + }
21221 + }
21222 +
21223 + /* Fill in the first two entries in the global offset table */
21224 + bfd_put_32(output_bfd,
21225 + sdyn->output_section->vma + sdyn->output_offset,
21226 + sgot->contents);
21227 +
21228 + /* The runtime linker will fill this one in with the address of
21229 + the run-time link map */
21230 + bfd_put_32(output_bfd, 0, sgot->contents + 4);
21231 + }
21232 +
21233 + if (sgot)
21234 + elf_section_data(sgot->output_section)->this_hdr.sh_entsize = 4;
21235 +
21236 + return TRUE;
21237 +}
21238 +
21239 +\f
21240 +/* AVR32-specific private ELF data */
21241 +
21242 +static bfd_boolean
21243 +avr32_elf_set_private_flags(bfd *abfd, flagword flags);
21244 +static bfd_boolean
21245 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd);
21246 +static bfd_boolean
21247 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd);
21248 +static bfd_boolean
21249 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr);
21250 +
21251 +static bfd_boolean
21252 +avr32_elf_set_private_flags(bfd *abfd, flagword flags)
21253 +{
21254 + elf_elfheader(abfd)->e_flags = flags;
21255 + elf_flags_init(abfd) = TRUE;
21256 +
21257 + return TRUE;
21258 +}
21259 +
21260 +/* Copy backend specific data from one object module to another. */
21261 +
21262 +static bfd_boolean
21263 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd)
21264 +{
21265 + elf_elfheader(obfd)->e_flags = elf_elfheader(ibfd)->e_flags;
21266 + return TRUE;
21267 +}
21268 +
21269 +/* Merge backend specific data from an object file to the output
21270 + object file when linking. */
21271 +
21272 +static bfd_boolean
21273 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd)
21274 +{
21275 + flagword out_flags, in_flags;
21276 +
21277 + pr_debug("(0) merge_private_bfd_data: %s -> %s\n",
21278 + ibfd->filename, obfd->filename);
21279 +
21280 + in_flags = elf_elfheader(ibfd)->e_flags;
21281 + out_flags = elf_elfheader(obfd)->e_flags;
21282 +
21283 + if (elf_flags_init(obfd))
21284 + {
21285 + /* If one of the inputs are non-PIC, the output must be
21286 + considered non-PIC. The same applies to linkrelax. */
21287 + if (!(in_flags & EF_AVR32_PIC))
21288 + out_flags &= ~EF_AVR32_PIC;
21289 + if (!(in_flags & EF_AVR32_LINKRELAX))
21290 + out_flags &= ~EF_AVR32_LINKRELAX;
21291 + }
21292 + else
21293 + {
21294 + elf_flags_init(obfd) = TRUE;
21295 + out_flags = in_flags;
21296 + }
21297 +
21298 + elf_elfheader(obfd)->e_flags = out_flags;
21299 +
21300 + return TRUE;
21301 +}
21302 +
21303 +static bfd_boolean
21304 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr)
21305 +{
21306 + FILE *file = (FILE *)ptr;
21307 + unsigned long flags;
21308 +
21309 + BFD_ASSERT(abfd != NULL && ptr != NULL);
21310 +
21311 + _bfd_elf_print_private_bfd_data(abfd, ptr);
21312 +
21313 + flags = elf_elfheader(abfd)->e_flags;
21314 +
21315 + fprintf(file, _("private flags = %lx:"), elf_elfheader(abfd)->e_flags);
21316 +
21317 + if (flags & EF_AVR32_PIC)
21318 + fprintf(file, " [PIC]");
21319 + if (flags & EF_AVR32_LINKRELAX)
21320 + fprintf(file, " [linker relaxable]");
21321 +
21322 + flags &= ~(EF_AVR32_PIC | EF_AVR32_LINKRELAX);
21323 +
21324 + if (flags)
21325 + fprintf(file, _("<Unrecognized flag bits set>"));
21326 +
21327 + fputc('\n', file);
21328 +
21329 + return TRUE;
21330 +}
21331 +
21332 +/* Set avr32-specific linker options. */
21333 +void bfd_elf32_avr32_set_options(struct bfd_link_info *info,
21334 + int direct_data_refs)
21335 +{
21336 + struct elf_avr32_link_hash_table *htab;
21337 +
21338 + htab = avr32_elf_hash_table (info);
21339 + htab->direct_data_refs = !!direct_data_refs;
21340 +}
21341 +
21342 +
21343 +\f
21344 +/* Understanding core dumps */
21345 +
21346 +static bfd_boolean
21347 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note);
21348 +static bfd_boolean
21349 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note);
21350 +
21351 +static bfd_boolean
21352 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note)
21353 +{
21354 + /* Linux/AVR32B elf_prstatus */
21355 + if (note->descsz != 148)
21356 + return FALSE;
21357 +
21358 + /* pr_cursig */
21359 + elf_tdata(abfd)->core_signal = bfd_get_16(abfd, note->descdata + 12);
21360 +
21361 + /* pr_pid */
21362 + elf_tdata(abfd)->core_pid = bfd_get_32(abfd, note->descdata + 24);
21363 +
21364 + /* Make a ".reg/999" section for pr_reg. The size is for 16
21365 + general-purpose registers, SR and r12_orig (18 * 4 = 72). */
21366 + return _bfd_elfcore_make_pseudosection(abfd, ".reg", 72,
21367 + note->descpos + 72);
21368 +}
21369 +
21370 +static bfd_boolean
21371 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note)
21372 +{
21373 + /* Linux/AVR32B elf_prpsinfo */
21374 + if (note->descsz != 128)
21375 + return FALSE;
21376 +
21377 + elf_tdata(abfd)->core_program
21378 + = _bfd_elfcore_strndup(abfd, note->descdata + 32, 16);
21379 + elf_tdata(abfd)->core_command
21380 + = _bfd_elfcore_strndup(abfd, note->descdata + 48, 80);
21381 +
21382 + /* Note that for some reason, a spurious space is tacked
21383 + onto the end of the args in some (at least one anyway)
21384 + implementations, so strip it off if it exists. */
21385 +
21386 + {
21387 + char *command = elf_tdata (abfd)->core_command;
21388 + int n = strlen (command);
21389 +
21390 + if (0 < n && command[n - 1] == ' ')
21391 + command[n - 1] = '\0';
21392 + }
21393 +
21394 + return TRUE;
21395 +}
21396 +
21397 +\f
21398 +#define ELF_ARCH bfd_arch_avr32
21399 +#define ELF_MACHINE_CODE EM_AVR32
21400 +#define ELF_MAXPAGESIZE 0x1000
21401 +
21402 +#define TARGET_BIG_SYM bfd_elf32_avr32_vec
21403 +#define TARGET_BIG_NAME "elf32-avr32"
21404 +
21405 +#define elf_backend_grok_prstatus avr32_elf_grok_prstatus
21406 +#define elf_backend_grok_psinfo avr32_elf_grok_psinfo
21407 +
21408 +/* Only RELA relocations are used */
21409 +#define elf_backend_may_use_rel_p 0
21410 +#define elf_backend_may_use_rela_p 1
21411 +#define elf_backend_default_use_rela_p 1
21412 +#define elf_backend_rela_normal 1
21413 +#define elf_info_to_howto_rel NULL
21414 +#define elf_info_to_howto avr32_info_to_howto
21415 +
21416 +#define bfd_elf32_bfd_copy_private_bfd_data avr32_elf_copy_private_bfd_data
21417 +#define bfd_elf32_bfd_merge_private_bfd_data avr32_elf_merge_private_bfd_data
21418 +#define bfd_elf32_bfd_set_private_flags avr32_elf_set_private_flags
21419 +#define bfd_elf32_bfd_print_private_bfd_data avr32_elf_print_private_bfd_data
21420 +#define bfd_elf32_new_section_hook avr32_elf_new_section_hook
21421 +
21422 +#define elf_backend_gc_mark_hook avr32_elf_gc_mark_hook
21423 +#define elf_backend_gc_sweep_hook avr32_elf_gc_sweep_hook
21424 +#define elf_backend_relocate_section avr32_elf_relocate_section
21425 +#define elf_backend_copy_indirect_symbol avr32_elf_copy_indirect_symbol
21426 +#define elf_backend_create_dynamic_sections avr32_elf_create_dynamic_sections
21427 +#define bfd_elf32_bfd_link_hash_table_create avr32_elf_link_hash_table_create
21428 +#define elf_backend_adjust_dynamic_symbol avr32_elf_adjust_dynamic_symbol
21429 +#define elf_backend_size_dynamic_sections avr32_elf_size_dynamic_sections
21430 +#define elf_backend_finish_dynamic_symbol avr32_elf_finish_dynamic_symbol
21431 +#define elf_backend_finish_dynamic_sections avr32_elf_finish_dynamic_sections
21432 +
21433 +#define bfd_elf32_bfd_relax_section avr32_elf_relax_section
21434 +
21435 +/* Find out which symbols need an entry in .got. */
21436 +#define elf_backend_check_relocs avr32_check_relocs
21437 +#define elf_backend_can_refcount 1
21438 +#define elf_backend_can_gc_sections 1
21439 +#define elf_backend_plt_readonly 1
21440 +#define elf_backend_plt_not_loaded 1
21441 +#define elf_backend_want_plt_sym 0
21442 +#define elf_backend_plt_alignment 2
21443 +#define elf_backend_want_dynbss 0
21444 +#define elf_backend_want_got_plt 0
21445 +#define elf_backend_want_got_sym 1
21446 +#define elf_backend_got_header_size AVR32_GOT_HEADER_SIZE
21447 +
21448 +#include "elf32-target.h"
21449 --- /dev/null
21450 +++ b/bfd/elf32-avr32.c.orig
21451 @@ -0,0 +1,3880 @@
21452 +/* AVR32-specific support for 32-bit ELF.
21453 + Copyright 2003-2006 Atmel Corporation.
21454 +
21455 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
21456 +
21457 + This file is part of BFD, the Binary File Descriptor library.
21458 +
21459 + This program is free software; you can redistribute it and/or modify
21460 + it under the terms of the GNU General Public License as published by
21461 + the Free Software Foundation; either version 2 of the License, or
21462 + (at your option) any later version.
21463 +
21464 + This program is distributed in the hope that it will be useful,
21465 + but WITHOUT ANY WARRANTY; without even the implied warranty of
21466 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21467 + GNU General Public License for more details.
21468 +
21469 + You should have received a copy of the GNU General Public License
21470 + along with this program; if not, write to the Free Software
21471 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21472 +
21473 +#include "bfd.h"
21474 +#include "sysdep.h"
21475 +#include "bfdlink.h"
21476 +#include "libbfd.h"
21477 +#include "elf-bfd.h"
21478 +#include "elf/avr32.h"
21479 +
21480 +#define xDEBUG
21481 +#define xRELAX_DEBUG
21482 +
21483 +#ifdef DEBUG
21484 +# define pr_debug(fmt, args...) fprintf(stderr, fmt, ##args)
21485 +#else
21486 +# define pr_debug(fmt, args...) do { } while (0)
21487 +#endif
21488 +
21489 +#ifdef RELAX_DEBUG
21490 +# define RDBG(fmt, args...) fprintf(stderr, fmt, ##args)
21491 +#else
21492 +# define RDBG(fmt, args...) do { } while (0)
21493 +#endif
21494 +
21495 +/* When things go wrong, we want it to blow up, damnit! */
21496 +#undef BFD_ASSERT
21497 +#undef abort
21498 +#define BFD_ASSERT(expr) \
21499 + do \
21500 + { \
21501 + if (!(expr)) \
21502 + { \
21503 + bfd_assert(__FILE__, __LINE__); \
21504 + abort(); \
21505 + } \
21506 + } \
21507 + while (0)
21508 +
21509 +/* The name of the dynamic interpreter. This is put in the .interp section. */
21510 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
21511 +
21512 +#define AVR32_GOT_HEADER_SIZE 8
21513 +#define AVR32_FUNCTION_STUB_SIZE 8
21514 +
21515 +#define ELF_R_INFO(x, y) ELF32_R_INFO(x, y)
21516 +#define ELF_R_TYPE(x) ELF32_R_TYPE(x)
21517 +#define ELF_R_SYM(x) ELF32_R_SYM(x)
21518 +
21519 +#define NOP_OPCODE 0xd703
21520 +
21521 +\f
21522 +/* Mapping between BFD relocations and ELF relocations */
21523 +
21524 +static reloc_howto_type *
21525 +bfd_elf32_bfd_reloc_type_lookup(bfd *abfd, bfd_reloc_code_real_type code);
21526 +static void
21527 +avr32_info_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst);
21528 +
21529 +/* Generic HOWTO */
21530 +#define GENH(name, align, size, bitsize, pcrel, bitpos, complain, mask) \
21531 + HOWTO(name, align, size, bitsize, pcrel, bitpos, \
21532 + complain_overflow_##complain, bfd_elf_generic_reloc, #name, \
21533 + FALSE, 0, mask, pcrel)
21534 +
21535 +static reloc_howto_type elf_avr32_howto_table[] = {
21536 + /* NAME ALN SZ BSZ PCREL BP COMPLAIN MASK */
21537 + GENH(R_AVR32_NONE, 0, 0, 0, FALSE, 0, dont, 0x00000000),
21538 +
21539 + GENH(R_AVR32_32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21540 + GENH(R_AVR32_16, 0, 1, 16, FALSE, 0, bitfield, 0x0000ffff),
21541 + GENH(R_AVR32_8, 0, 0, 8, FALSE, 0, bitfield, 0x000000ff),
21542 + GENH(R_AVR32_32_PCREL, 0, 2, 32, TRUE, 0, signed, 0xffffffff),
21543 + GENH(R_AVR32_16_PCREL, 0, 1, 16, TRUE, 0, signed, 0x0000ffff),
21544 + GENH(R_AVR32_8_PCREL, 0, 0, 8, TRUE, 0, signed, 0x000000ff),
21545 +
21546 + /* Difference between two symbol (sym2 - sym1). The reloc encodes
21547 + the value of sym1. The field contains the difference before any
21548 + relaxing is done. */
21549 + GENH(R_AVR32_DIFF32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21550 + GENH(R_AVR32_DIFF16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
21551 + GENH(R_AVR32_DIFF8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
21552 +
21553 + GENH(R_AVR32_GOT32, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
21554 + GENH(R_AVR32_GOT16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
21555 + GENH(R_AVR32_GOT8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
21556 +
21557 + GENH(R_AVR32_21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21558 + GENH(R_AVR32_16U, 0, 2, 16, FALSE, 0, unsigned, 0x0000ffff),
21559 + GENH(R_AVR32_16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
21560 + GENH(R_AVR32_8S, 0, 1, 8, FALSE, 4, signed, 0x00000ff0),
21561 + GENH(R_AVR32_8S_EXT, 0, 2, 8, FALSE, 0, signed, 0x000000ff),
21562 +
21563 + GENH(R_AVR32_22H_PCREL, 1, 2, 21, TRUE, 0, signed, 0x1e10ffff),
21564 + GENH(R_AVR32_18W_PCREL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
21565 + GENH(R_AVR32_16B_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
21566 + GENH(R_AVR32_16N_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
21567 + GENH(R_AVR32_14UW_PCREL, 2, 2, 12, TRUE, 0, unsigned, 0x0000f0ff),
21568 + GENH(R_AVR32_11H_PCREL, 1, 1, 10, TRUE, 4, signed, 0x00000ff3),
21569 + GENH(R_AVR32_10UW_PCREL, 2, 2, 8, TRUE, 0, unsigned, 0x000000ff),
21570 + GENH(R_AVR32_9H_PCREL, 1, 1, 8, TRUE, 4, signed, 0x00000ff0),
21571 + GENH(R_AVR32_9UW_PCREL, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
21572 +
21573 + GENH(R_AVR32_HI16, 16, 2, 16, FALSE, 0, dont, 0x0000ffff),
21574 + GENH(R_AVR32_LO16, 0, 2, 16, FALSE, 0, dont, 0x0000ffff),
21575 +
21576 + GENH(R_AVR32_GOTPC, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21577 + GENH(R_AVR32_GOTCALL, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21578 + GENH(R_AVR32_LDA_GOT, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21579 + GENH(R_AVR32_GOT21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21580 + GENH(R_AVR32_GOT18SW, 2, 2, 16, FALSE, 0, signed, 0x0000ffff),
21581 + GENH(R_AVR32_GOT16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
21582 + GENH(R_AVR32_GOT7UW, 2, 1, 5, FALSE, 4, unsigned, 0x000001f0),
21583 +
21584 + GENH(R_AVR32_32_CPENT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21585 + GENH(R_AVR32_CPCALL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
21586 + GENH(R_AVR32_16_CP, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
21587 + GENH(R_AVR32_9W_CP, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
21588 +
21589 + GENH(R_AVR32_RELATIVE, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
21590 + GENH(R_AVR32_GLOB_DAT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21591 + GENH(R_AVR32_JMP_SLOT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21592 +
21593 + GENH(R_AVR32_ALIGN, 0, 1, 0, FALSE, 0, unsigned, 0x00000000),
21594 +};
21595 +
21596 +struct elf_reloc_map
21597 +{
21598 + bfd_reloc_code_real_type bfd_reloc_val;
21599 + unsigned char elf_reloc_val;
21600 +};
21601 +
21602 +static const struct elf_reloc_map avr32_reloc_map[] =
21603 +{
21604 + { BFD_RELOC_NONE, R_AVR32_NONE },
21605 +
21606 + { BFD_RELOC_32, R_AVR32_32 },
21607 + { BFD_RELOC_16, R_AVR32_16 },
21608 + { BFD_RELOC_8, R_AVR32_8 },
21609 + { BFD_RELOC_32_PCREL, R_AVR32_32_PCREL },
21610 + { BFD_RELOC_16_PCREL, R_AVR32_16_PCREL },
21611 + { BFD_RELOC_8_PCREL, R_AVR32_8_PCREL },
21612 + { BFD_RELOC_AVR32_DIFF32, R_AVR32_DIFF32 },
21613 + { BFD_RELOC_AVR32_DIFF16, R_AVR32_DIFF16 },
21614 + { BFD_RELOC_AVR32_DIFF8, R_AVR32_DIFF8 },
21615 + { BFD_RELOC_AVR32_GOT32, R_AVR32_GOT32 },
21616 + { BFD_RELOC_AVR32_GOT16, R_AVR32_GOT16 },
21617 + { BFD_RELOC_AVR32_GOT8, R_AVR32_GOT8 },
21618 +
21619 + { BFD_RELOC_AVR32_21S, R_AVR32_21S },
21620 + { BFD_RELOC_AVR32_16U, R_AVR32_16U },
21621 + { BFD_RELOC_AVR32_16S, R_AVR32_16S },
21622 + { BFD_RELOC_AVR32_SUB5, R_AVR32_16S },
21623 + { BFD_RELOC_AVR32_8S_EXT, R_AVR32_8S_EXT },
21624 + { BFD_RELOC_AVR32_8S, R_AVR32_8S },
21625 +
21626 + { BFD_RELOC_AVR32_22H_PCREL, R_AVR32_22H_PCREL },
21627 + { BFD_RELOC_AVR32_18W_PCREL, R_AVR32_18W_PCREL },
21628 + { BFD_RELOC_AVR32_16B_PCREL, R_AVR32_16B_PCREL },
21629 + { BFD_RELOC_AVR32_16N_PCREL, R_AVR32_16N_PCREL },
21630 + { BFD_RELOC_AVR32_11H_PCREL, R_AVR32_11H_PCREL },
21631 + { BFD_RELOC_AVR32_10UW_PCREL, R_AVR32_10UW_PCREL },
21632 + { BFD_RELOC_AVR32_9H_PCREL, R_AVR32_9H_PCREL },
21633 + { BFD_RELOC_AVR32_9UW_PCREL, R_AVR32_9UW_PCREL },
21634 +
21635 + { BFD_RELOC_HI16, R_AVR32_HI16 },
21636 + { BFD_RELOC_LO16, R_AVR32_LO16 },
21637 +
21638 + { BFD_RELOC_AVR32_GOTPC, R_AVR32_GOTPC },
21639 + { BFD_RELOC_AVR32_GOTCALL, R_AVR32_GOTCALL },
21640 + { BFD_RELOC_AVR32_LDA_GOT, R_AVR32_LDA_GOT },
21641 + { BFD_RELOC_AVR32_GOT21S, R_AVR32_GOT21S },
21642 + { BFD_RELOC_AVR32_GOT18SW, R_AVR32_GOT18SW },
21643 + { BFD_RELOC_AVR32_GOT16S, R_AVR32_GOT16S },
21644 + /* GOT7UW should never be generated by the assembler */
21645 +
21646 + { BFD_RELOC_AVR32_32_CPENT, R_AVR32_32_CPENT },
21647 + { BFD_RELOC_AVR32_CPCALL, R_AVR32_CPCALL },
21648 + { BFD_RELOC_AVR32_16_CP, R_AVR32_16_CP },
21649 + { BFD_RELOC_AVR32_9W_CP, R_AVR32_9W_CP },
21650 +
21651 + { BFD_RELOC_AVR32_ALIGN, R_AVR32_ALIGN },
21652 +};
21653 +
21654 +static reloc_howto_type *
21655 +bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
21656 + bfd_reloc_code_real_type code)
21657 +{
21658 + unsigned int i;
21659 +
21660 + for (i = 0; i < sizeof(avr32_reloc_map) / sizeof(struct elf_reloc_map); i++)
21661 + {
21662 + if (avr32_reloc_map[i].bfd_reloc_val == code)
21663 + return &elf_avr32_howto_table[avr32_reloc_map[i].elf_reloc_val];
21664 + }
21665 +
21666 + return NULL;
21667 +}
21668 +
21669 +static void
21670 +avr32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
21671 + arelent *cache_ptr,
21672 + Elf_Internal_Rela *dst)
21673 +{
21674 + unsigned int r_type;
21675 +
21676 + r_type = ELF32_R_TYPE (dst->r_info);
21677 + BFD_ASSERT (r_type < (unsigned int) R_AVR32_max);
21678 + cache_ptr->howto = &elf_avr32_howto_table[r_type];
21679 +}
21680 +
21681 +\f
21682 +/* AVR32 ELF linker hash table and associated hash entries. */
21683 +
21684 +static struct bfd_hash_entry *
21685 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
21686 + struct bfd_hash_table *table,
21687 + const char *string);
21688 +static void
21689 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
21690 + struct elf_link_hash_entry *dir,
21691 + struct elf_link_hash_entry *ind);
21692 +static struct bfd_link_hash_table *
21693 +avr32_elf_link_hash_table_create(bfd *abfd);
21694 +
21695 +/*
21696 + Try to limit memory usage to something reasonable when sorting the
21697 + GOT. If we ever get more than this many references to the same
21698 + symbol, we may need to do something special.
21699 +*/
21700 +#define MAX_NR_GOT_HOLES 8192
21701 +
21702 +/*
21703 + AVR32 GOT entry. We need to keep track of refcounts and offsets
21704 + simultaneously, since we need the offsets during relaxation, and we
21705 + also want to be able to drop GOT entries during relaxation. In
21706 + addition to this, we want to keep the list of GOT entries sorted so
21707 + that we can keep the most-used entries at the lowest offsets.
21708 +*/
21709 +struct got_entry
21710 +{
21711 + struct got_entry *next;
21712 + struct got_entry **pprev;
21713 + int refcount;
21714 + bfd_signed_vma offset;
21715 +};
21716 +
21717 +struct elf_avr32_link_hash_entry
21718 +{
21719 + struct elf_link_hash_entry root;
21720 +
21721 + /* Number of runtime relocations against this symbol. */
21722 + unsigned int possibly_dynamic_relocs;
21723 +
21724 + /* If there are anything but R_AVR32_GOT18 relocations against this
21725 + symbol, it means that someone may be taking the address of the
21726 + function, and we should therefore not create a stub. */
21727 + bfd_boolean no_fn_stub;
21728 +
21729 + /* If there is a R_AVR32_32 relocation in a read-only section
21730 + against this symbol, we could be in trouble. If we're linking a
21731 + shared library or this symbol is defined in one, it means we must
21732 + emit a run-time reloc for it and that's not allowed in read-only
21733 + sections. */
21734 + asection *readonly_reloc_sec;
21735 + bfd_vma readonly_reloc_offset;
21736 +
21737 + /* Record which frag (if any) contains the symbol. This is used
21738 + during relaxation in order to avoid having to update all symbols
21739 + whenever we move something. For local symbols, this information
21740 + is in the local_sym_frag member of struct elf_obj_tdata. */
21741 + struct fragment *sym_frag;
21742 +};
21743 +#define avr32_elf_hash_entry(ent) ((struct elf_avr32_link_hash_entry *)(ent))
21744 +
21745 +struct elf_avr32_link_hash_table
21746 +{
21747 + struct elf_link_hash_table root;
21748 +
21749 + /* Shortcuts to get to dynamic linker sections. */
21750 + asection *sgot;
21751 + asection *srelgot;
21752 + asection *sstub;
21753 +
21754 + /* We use a variation of Pigeonhole Sort to sort the GOT. After the
21755 + initial refcounts have been determined, we initialize
21756 + nr_got_holes to the highest refcount ever seen and allocate an
21757 + array of nr_got_holes entries for got_hole. Each GOT entry is
21758 + then stored in this array at the index given by its refcount.
21759 +
21760 + When a GOT entry has its refcount decremented during relaxation,
21761 + it is moved to a lower index in the got_hole array.
21762 + */
21763 + struct got_entry **got_hole;
21764 + int nr_got_holes;
21765 +
21766 + /* Dynamic relocations to local symbols. Only used when linking a
21767 + shared library and -Bsymbolic is not given. */
21768 + unsigned int local_dynamic_relocs;
21769 +
21770 + bfd_boolean relocations_analyzed;
21771 + bfd_boolean symbols_adjusted;
21772 + bfd_boolean repeat_pass;
21773 + unsigned int relax_iteration;
21774 + unsigned int relax_pass;
21775 +};
21776 +#define avr32_elf_hash_table(p) \
21777 + ((struct elf_avr32_link_hash_table *)((p)->hash))
21778 +
21779 +static struct bfd_hash_entry *
21780 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
21781 + struct bfd_hash_table *table,
21782 + const char *string)
21783 +{
21784 + struct elf_avr32_link_hash_entry *ret = avr32_elf_hash_entry(entry);
21785 +
21786 + /* Allocate the structure if it hasn't already been allocated by a
21787 + subclass */
21788 + if (ret == NULL)
21789 + ret = (struct elf_avr32_link_hash_entry *)
21790 + bfd_hash_allocate(table, sizeof(struct elf_avr32_link_hash_entry));
21791 +
21792 + if (ret == NULL)
21793 + return NULL;
21794 +
21795 + memset(ret, 0, sizeof(struct elf_avr32_link_hash_entry));
21796 +
21797 + /* Give the superclass a chance */
21798 + ret = (struct elf_avr32_link_hash_entry *)
21799 + _bfd_elf_link_hash_newfunc((struct bfd_hash_entry *)ret, table, string);
21800 +
21801 + return (struct bfd_hash_entry *)ret;
21802 +}
21803 +
21804 +/* Copy data from an indirect symbol to its direct symbol, hiding the
21805 + old indirect symbol. Process additional relocation information.
21806 + Also called for weakdefs, in which case we just let
21807 + _bfd_elf_link_hash_copy_indirect copy the flags for us. */
21808 +
21809 +static void
21810 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
21811 + struct elf_link_hash_entry *dir,
21812 + struct elf_link_hash_entry *ind)
21813 +{
21814 + struct elf_avr32_link_hash_entry *edir, *eind;
21815 +
21816 + _bfd_elf_link_hash_copy_indirect (info, dir, ind);
21817 +
21818 + if (ind->root.type != bfd_link_hash_indirect)
21819 + return;
21820 +
21821 + edir = (struct elf_avr32_link_hash_entry *)dir;
21822 + eind = (struct elf_avr32_link_hash_entry *)ind;
21823 +
21824 + edir->possibly_dynamic_relocs += eind->possibly_dynamic_relocs;
21825 + edir->no_fn_stub = edir->no_fn_stub || eind->no_fn_stub;
21826 +}
21827 +
21828 +static struct bfd_link_hash_table *
21829 +avr32_elf_link_hash_table_create(bfd *abfd)
21830 +{
21831 + struct elf_avr32_link_hash_table *ret;
21832 +
21833 + ret = bfd_zmalloc(sizeof(*ret));
21834 + if (ret == NULL)
21835 + return NULL;
21836 +
21837 + if (! _bfd_elf_link_hash_table_init(&ret->root, abfd,
21838 + avr32_elf_link_hash_newfunc,
21839 + sizeof (struct elf_avr32_link_hash_entry)))
21840 + {
21841 + free(ret);
21842 + return NULL;
21843 + }
21844 +
21845 + /* Prevent the BFD core from creating bogus got_entry pointers */
21846 + ret->root.init_got_refcount.glist = NULL;
21847 + ret->root.init_plt_refcount.glist = NULL;
21848 +
21849 + return &ret->root.root;
21850 +}
21851 +
21852 +\f
21853 +/* Initial analysis and creation of dynamic sections and symbols */
21854 +
21855 +static asection *
21856 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
21857 + unsigned int align_power);
21858 +static struct elf_link_hash_entry *
21859 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
21860 + const char *name, asection *sec,
21861 + bfd_vma offset);
21862 +static bfd_boolean
21863 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info);
21864 +static bfd_boolean
21865 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info);
21866 +static bfd_boolean
21867 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
21868 + const Elf_Internal_Rela *relocs);
21869 +static bfd_boolean
21870 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
21871 + struct elf_link_hash_entry *h);
21872 +
21873 +static asection *
21874 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
21875 + unsigned int align_power)
21876 +{
21877 + asection *sec;
21878 +
21879 + sec = bfd_make_section(dynobj, name);
21880 + if (!sec
21881 + || !bfd_set_section_flags(dynobj, sec, flags)
21882 + || !bfd_set_section_alignment(dynobj, sec, align_power))
21883 + return NULL;
21884 +
21885 + return sec;
21886 +}
21887 +
21888 +static struct elf_link_hash_entry *
21889 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
21890 + const char *name, asection *sec,
21891 + bfd_vma offset)
21892 +{
21893 + struct bfd_link_hash_entry *bh = NULL;
21894 + struct elf_link_hash_entry *h;
21895 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
21896 +
21897 + if (!(_bfd_generic_link_add_one_symbol
21898 + (info, dynobj, name, BSF_GLOBAL, sec, offset, NULL, FALSE,
21899 + bed->collect, &bh)))
21900 + return NULL;
21901 +
21902 + h = (struct elf_link_hash_entry *)bh;
21903 + h->def_regular = 1;
21904 + h->type = STT_OBJECT;
21905 + h->other = STV_HIDDEN;
21906 +
21907 + return h;
21908 +}
21909 +
21910 +static bfd_boolean
21911 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info)
21912 +{
21913 + struct elf_avr32_link_hash_table *htab;
21914 + flagword flags;
21915 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
21916 +
21917 + htab = avr32_elf_hash_table(info);
21918 + flags = bed->dynamic_sec_flags;
21919 +
21920 + if (htab->sgot)
21921 + return TRUE;
21922 +
21923 + htab->sgot = create_dynamic_section(dynobj, ".got", flags, 2);
21924 + if (!htab->srelgot)
21925 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
21926 + flags | SEC_READONLY, 2);
21927 +
21928 + if (!htab->sgot || !htab->srelgot)
21929 + return FALSE;
21930 +
21931 + htab->root.hgot = create_dynamic_symbol(dynobj, info, "_GLOBAL_OFFSET_TABLE_",
21932 + htab->sgot, 0);
21933 + if (!htab->root.hgot)
21934 + return FALSE;
21935 +
21936 + /* Make room for the GOT header */
21937 + htab->sgot->size += bed->got_header_size;
21938 +
21939 + return TRUE;
21940 +}
21941 +
21942 +/* (1) Create all dynamic (i.e. linker generated) sections that we may
21943 + need during the link */
21944 +
21945 +static bfd_boolean
21946 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
21947 +{
21948 + struct elf_avr32_link_hash_table *htab;
21949 + flagword flags;
21950 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
21951 +
21952 + pr_debug("(1) create dynamic sections\n");
21953 +
21954 + htab = avr32_elf_hash_table(info);
21955 + flags = bed->dynamic_sec_flags;
21956 +
21957 + if (!avr32_elf_create_got_section (dynobj, info))
21958 + return FALSE;
21959 +
21960 + if (!htab->sstub)
21961 + htab->sstub = create_dynamic_section(dynobj, ".stub",
21962 + flags | SEC_READONLY | SEC_CODE, 2);
21963 +
21964 + if (!htab->sstub)
21965 + return FALSE;
21966 +
21967 + return TRUE;
21968 +}
21969 +
21970 +/* (2) Go through all the relocs and count any potential GOT- or
21971 + PLT-references to each symbol */
21972 +
21973 +static bfd_boolean
21974 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
21975 + const Elf_Internal_Rela *relocs)
21976 +{
21977 + Elf_Internal_Shdr *symtab_hdr;
21978 + struct elf_avr32_link_hash_table *htab;
21979 + struct elf_link_hash_entry **sym_hashes;
21980 + const Elf_Internal_Rela *rel, *rel_end;
21981 + struct got_entry **local_got_ents;
21982 + struct got_entry *got;
21983 + const struct elf_backend_data *bed = get_elf_backend_data (abfd);
21984 + asection *sgot;
21985 + bfd *dynobj;
21986 +
21987 + pr_debug("(2) check relocs for %s:<%s> (size 0x%lx)\n",
21988 + abfd->filename, sec->name, sec->size);
21989 +
21990 + if (info->relocatable)
21991 + return TRUE;
21992 +
21993 + dynobj = elf_hash_table(info)->dynobj;
21994 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
21995 + sym_hashes = elf_sym_hashes(abfd);
21996 + htab = avr32_elf_hash_table(info);
21997 + local_got_ents = elf_local_got_ents(abfd);
21998 + sgot = htab->sgot;
21999 +
22000 + rel_end = relocs + sec->reloc_count;
22001 + for (rel = relocs; rel < rel_end; rel++)
22002 + {
22003 + unsigned long r_symndx, r_type;
22004 + struct elf_avr32_link_hash_entry *h;
22005 +
22006 + r_symndx = ELF32_R_SYM(rel->r_info);
22007 + r_type = ELF32_R_TYPE(rel->r_info);
22008 +
22009 + /* Local symbols use local_got_ents, while others store the same
22010 + information in the hash entry */
22011 + if (r_symndx < symtab_hdr->sh_info)
22012 + {
22013 + pr_debug(" (2a) processing local symbol %lu\n", r_symndx);
22014 + h = NULL;
22015 + }
22016 + else
22017 + {
22018 + h = (struct elf_avr32_link_hash_entry *)
22019 + sym_hashes[r_symndx - symtab_hdr->sh_info];
22020 + while (h->root.type == bfd_link_hash_indirect
22021 + || h->root.type == bfd_link_hash_warning)
22022 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
22023 + pr_debug(" (2a) processing symbol %s\n", h->root.root.root.string);
22024 + }
22025 +
22026 + /* Some relocs require special sections to be created. */
22027 + switch (r_type)
22028 + {
22029 + case R_AVR32_GOT32:
22030 + case R_AVR32_GOT16:
22031 + case R_AVR32_GOT8:
22032 + case R_AVR32_GOT21S:
22033 + case R_AVR32_GOT18SW:
22034 + case R_AVR32_GOT16S:
22035 + case R_AVR32_GOT7UW:
22036 + case R_AVR32_LDA_GOT:
22037 + case R_AVR32_GOTCALL:
22038 + if (rel->r_addend)
22039 + {
22040 + if (info->callbacks->reloc_dangerous
22041 + (info, _("Non-zero addend on GOT-relative relocation"),
22042 + abfd, sec, rel->r_offset) == FALSE)
22043 + return FALSE;
22044 + }
22045 + /* fall through */
22046 + case R_AVR32_GOTPC:
22047 + if (dynobj == NULL)
22048 + elf_hash_table(info)->dynobj = dynobj = abfd;
22049 + if (sgot == NULL && !avr32_elf_create_got_section(dynobj, info))
22050 + return FALSE;
22051 + break;
22052 + case R_AVR32_32:
22053 + /* We may need to create .rela.dyn later on. */
22054 + if (dynobj == NULL
22055 + && (info->shared || h != NULL)
22056 + && (sec->flags & SEC_ALLOC))
22057 + elf_hash_table(info)->dynobj = dynobj = abfd;
22058 + break;
22059 + }
22060 +
22061 + if (h != NULL && r_type != R_AVR32_GOT18SW)
22062 + h->no_fn_stub = TRUE;
22063 +
22064 + switch (r_type)
22065 + {
22066 + case R_AVR32_GOT32:
22067 + case R_AVR32_GOT16:
22068 + case R_AVR32_GOT8:
22069 + case R_AVR32_GOT21S:
22070 + case R_AVR32_GOT18SW:
22071 + case R_AVR32_GOT16S:
22072 + case R_AVR32_GOT7UW:
22073 + case R_AVR32_LDA_GOT:
22074 + case R_AVR32_GOTCALL:
22075 + if (h != NULL)
22076 + {
22077 + got = h->root.got.glist;
22078 + if (!got)
22079 + {
22080 + got = bfd_zalloc(abfd, sizeof(struct got_entry));
22081 + if (!got)
22082 + return FALSE;
22083 + h->root.got.glist = got;
22084 + }
22085 + }
22086 + else
22087 + {
22088 + if (!local_got_ents)
22089 + {
22090 + bfd_size_type size;
22091 + bfd_size_type i;
22092 + struct got_entry *tmp_entry;
22093 +
22094 + size = symtab_hdr->sh_info;
22095 + size *= sizeof(struct got_entry *) + sizeof(struct got_entry);
22096 + local_got_ents = bfd_zalloc(abfd, size);
22097 + if (!local_got_ents)
22098 + return FALSE;
22099 +
22100 + elf_local_got_ents(abfd) = local_got_ents;
22101 +
22102 + tmp_entry = (struct got_entry *)(local_got_ents
22103 + + symtab_hdr->sh_info);
22104 + for (i = 0; i < symtab_hdr->sh_info; i++)
22105 + local_got_ents[i] = &tmp_entry[i];
22106 + }
22107 +
22108 + got = local_got_ents[r_symndx];
22109 + }
22110 +
22111 + got->refcount++;
22112 + if (got->refcount > htab->nr_got_holes)
22113 + htab->nr_got_holes = got->refcount;
22114 + break;
22115 +
22116 + case R_AVR32_32:
22117 + if ((info->shared || h != NULL)
22118 + && (sec->flags & SEC_ALLOC))
22119 + {
22120 + if (htab->srelgot == NULL)
22121 + {
22122 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
22123 + bed->dynamic_sec_flags
22124 + | SEC_READONLY, 2);
22125 + if (htab->srelgot == NULL)
22126 + return FALSE;
22127 + }
22128 +
22129 + if (sec->flags & SEC_READONLY
22130 + && !h->readonly_reloc_sec)
22131 + {
22132 + h->readonly_reloc_sec = sec;
22133 + h->readonly_reloc_offset = rel->r_offset;
22134 + }
22135 +
22136 + if (h != NULL)
22137 + {
22138 + pr_debug("Non-GOT reference to symbol %s\n",
22139 + h->root.root.root.string);
22140 + h->possibly_dynamic_relocs++;
22141 + }
22142 + else
22143 + {
22144 + pr_debug("Non-GOT reference to local symbol %lu\n",
22145 + r_symndx);
22146 + htab->local_dynamic_relocs++;
22147 + }
22148 + }
22149 +
22150 + break;
22151 +
22152 + /* TODO: GNU_VTINHERIT and GNU_VTENTRY */
22153 + }
22154 + }
22155 +
22156 + return TRUE;
22157 +}
22158 +
22159 +/* (3) Adjust a symbol defined by a dynamic object and referenced by a
22160 + regular object. The current definition is in some section of the
22161 + dynamic object, but we're not including those sections. We have to
22162 + change the definition to something the rest of the link can
22163 + understand. */
22164 +
22165 +static bfd_boolean
22166 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
22167 + struct elf_link_hash_entry *h)
22168 +{
22169 + struct elf_avr32_link_hash_table *htab;
22170 + struct elf_avr32_link_hash_entry *havr;
22171 + bfd *dynobj;
22172 +
22173 + pr_debug("(3) adjust dynamic symbol %s\n", h->root.root.string);
22174 +
22175 + htab = avr32_elf_hash_table(info);
22176 + havr = (struct elf_avr32_link_hash_entry *)h;
22177 + dynobj = elf_hash_table(info)->dynobj;
22178 +
22179 + /* Make sure we know what is going on here. */
22180 + BFD_ASSERT (dynobj != NULL
22181 + && (h->u.weakdef != NULL
22182 + || (h->def_dynamic
22183 + && h->ref_regular
22184 + && !h->def_regular)));
22185 +
22186 + /* We don't want dynamic relocations in read-only sections. */
22187 + if (havr->readonly_reloc_sec)
22188 + {
22189 + if (info->callbacks->reloc_dangerous
22190 + (info, _("dynamic relocation in read-only section"),
22191 + havr->readonly_reloc_sec->owner, havr->readonly_reloc_sec,
22192 + havr->readonly_reloc_offset) == FALSE)
22193 + return FALSE;
22194 + }
22195 +
22196 + /* If this is a function, create a stub if possible and set the
22197 + symbol to the stub location. */
22198 + if (0 && !havr->no_fn_stub)
22199 + {
22200 + if (!h->def_regular)
22201 + {
22202 + asection *s = htab->sstub;
22203 +
22204 + BFD_ASSERT(s != NULL);
22205 +
22206 + h->root.u.def.section = s;
22207 + h->root.u.def.value = s->size;
22208 + h->plt.offset = s->size;
22209 + s->size += AVR32_FUNCTION_STUB_SIZE;
22210 +
22211 + return TRUE;
22212 + }
22213 + }
22214 + else if (h->type == STT_FUNC)
22215 + {
22216 + /* This will set the entry for this symbol in the GOT to 0, and
22217 + the dynamic linker will take care of this. */
22218 + h->root.u.def.value = 0;
22219 + return TRUE;
22220 + }
22221 +
22222 + /* If this is a weak symbol, and there is a real definition, the
22223 + processor independent code will have arranged for us to see the
22224 + real definition first, and we can just use the same value. */
22225 + if (h->u.weakdef != NULL)
22226 + {
22227 + BFD_ASSERT(h->u.weakdef->root.type == bfd_link_hash_defined
22228 + || h->u.weakdef->root.type == bfd_link_hash_defweak);
22229 + h->root.u.def.section = h->u.weakdef->root.u.def.section;
22230 + h->root.u.def.value = h->u.weakdef->root.u.def.value;
22231 + return TRUE;
22232 + }
22233 +
22234 + /* This is a reference to a symbol defined by a dynamic object which
22235 + is not a function. */
22236 +
22237 + return TRUE;
22238 +}
22239 +
22240 +\f
22241 +/* Garbage-collection of unused sections */
22242 +
22243 +static asection *
22244 +avr32_elf_gc_mark_hook(asection *sec,
22245 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
22246 + Elf_Internal_Rela *rel,
22247 + struct elf_link_hash_entry *h,
22248 + Elf_Internal_Sym *sym)
22249 +{
22250 + if (h)
22251 + {
22252 + switch (ELF32_R_TYPE(rel->r_info))
22253 + {
22254 + /* TODO: VTINHERIT/VTENTRY */
22255 + default:
22256 + switch (h->root.type)
22257 + {
22258 + case bfd_link_hash_defined:
22259 + case bfd_link_hash_defweak:
22260 + return h->root.u.def.section;
22261 +
22262 + case bfd_link_hash_common:
22263 + return h->root.u.c.p->section;
22264 +
22265 + default:
22266 + break;
22267 + }
22268 + }
22269 + }
22270 + else
22271 + return bfd_section_from_elf_index(sec->owner, sym->st_shndx);
22272 +
22273 + return NULL;
22274 +}
22275 +
22276 +/* Update the GOT entry reference counts for the section being removed. */
22277 +static bfd_boolean
22278 +avr32_elf_gc_sweep_hook(bfd *abfd,
22279 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
22280 + asection *sec,
22281 + const Elf_Internal_Rela *relocs)
22282 +{
22283 + Elf_Internal_Shdr *symtab_hdr;
22284 + struct elf_avr32_link_hash_entry **sym_hashes;
22285 + struct got_entry **local_got_ents;
22286 + const Elf_Internal_Rela *rel, *relend;
22287 +
22288 + if (!(sec->flags & SEC_ALLOC))
22289 + return TRUE;
22290 +
22291 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
22292 + sym_hashes = (struct elf_avr32_link_hash_entry **)elf_sym_hashes(abfd);
22293 + local_got_ents = elf_local_got_ents(abfd);
22294 +
22295 + relend = relocs + sec->reloc_count;
22296 + for (rel = relocs; rel < relend; rel++)
22297 + {
22298 + unsigned long r_symndx;
22299 + unsigned int r_type;
22300 + struct elf_avr32_link_hash_entry *h = NULL;
22301 +
22302 + r_symndx = ELF32_R_SYM(rel->r_info);
22303 + if (r_symndx >= symtab_hdr->sh_info)
22304 + {
22305 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
22306 + while (h->root.root.type == bfd_link_hash_indirect
22307 + || h->root.root.type == bfd_link_hash_warning)
22308 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
22309 + }
22310 +
22311 + r_type = ELF32_R_TYPE(rel->r_info);
22312 +
22313 + switch (r_type)
22314 + {
22315 + case R_AVR32_GOT32:
22316 + case R_AVR32_GOT16:
22317 + case R_AVR32_GOT8:
22318 + case R_AVR32_GOT21S:
22319 + case R_AVR32_GOT18SW:
22320 + case R_AVR32_GOT16S:
22321 + case R_AVR32_GOT7UW:
22322 + case R_AVR32_LDA_GOT:
22323 + case R_AVR32_GOTCALL:
22324 + if (h)
22325 + h->root.got.glist->refcount--;
22326 + else
22327 + local_got_ents[r_symndx]->refcount--;
22328 + break;
22329 +
22330 + case R_AVR32_32:
22331 + if (info->shared || h)
22332 + {
22333 + if (h)
22334 + h->possibly_dynamic_relocs--;
22335 + else
22336 + avr32_elf_hash_table(info)->local_dynamic_relocs--;
22337 + }
22338 +
22339 + default:
22340 + break;
22341 + }
22342 + }
22343 +
22344 + return TRUE;
22345 +}
22346 +\f
22347 +/* Sizing and refcounting of dynamic sections */
22348 +
22349 +static void
22350 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
22351 +static void
22352 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
22353 +static void
22354 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
22355 +static bfd_boolean
22356 +assign_got_offsets(struct elf_avr32_link_hash_table *htab);
22357 +static bfd_boolean
22358 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info);
22359 +static bfd_boolean
22360 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
22361 + struct bfd_link_info *info);
22362 +
22363 +static void
22364 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
22365 +{
22366 + /* TODO: Support got_refcount > htab->nr_got_holes by using a
22367 + different sort algorithm for those. */
22368 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
22369 +
22370 + got->pprev = &htab->got_hole[got->refcount];
22371 + got->next = htab->got_hole[got->refcount];
22372 + if (got->next)
22373 + got->next->pprev = &got->next;
22374 +
22375 + htab->got_hole[got->refcount] = got;
22376 +}
22377 +
22378 +/* Decrement the refcount of a GOT entry and update its position in
22379 + the pigeonhole array. */
22380 +static void
22381 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
22382 +{
22383 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
22384 + BFD_ASSERT(got->refcount > 0);
22385 +
22386 + if (got->next)
22387 + got->next->pprev = got->pprev;
22388 +
22389 + *(got->pprev) = got->next;
22390 + got->refcount--;
22391 + insert_got_entry(htab, got);
22392 +}
22393 +
22394 +static void
22395 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
22396 +{
22397 + if (got->next)
22398 + got->next->pprev = got->pprev;
22399 +
22400 + *(got->pprev) = got->next;
22401 + got->refcount++;
22402 + insert_got_entry(htab, got);
22403 +
22404 + BFD_ASSERT(got->refcount > 0);
22405 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
22406 +}
22407 +
22408 +/* Assign offsets to all GOT entries we intend to keep. The entries
22409 + that are referenced most often are placed at low offsets so that we
22410 + can use compact instructions as much as possible.
22411 +
22412 + Returns TRUE if any offsets or the total size of the GOT changed. */
22413 +
22414 +static bfd_boolean
22415 +assign_got_offsets(struct elf_avr32_link_hash_table *htab)
22416 +{
22417 + struct got_entry *got;
22418 + bfd_size_type got_size = 0;
22419 + bfd_boolean changed = FALSE;
22420 + bfd_signed_vma offset;
22421 + int i;
22422 +
22423 + /* The GOT header provides the address of the DYNAMIC segment, so
22424 + we need that even if the GOT is otherwise empty. */
22425 + if (htab->root.dynamic_sections_created)
22426 + got_size = AVR32_GOT_HEADER_SIZE;
22427 +
22428 + for (i = htab->nr_got_holes; i > 0; i--)
22429 + {
22430 + got = htab->got_hole[i];
22431 + while (got)
22432 + {
22433 + if (got->refcount > 0)
22434 + {
22435 + offset = got_size;
22436 + if (got->offset != offset)
22437 + {
22438 + RDBG("GOT offset changed: %ld -> %ld\n",
22439 + got->offset, offset);
22440 + changed = TRUE;
22441 + }
22442 + got->offset = offset;
22443 + got_size += 4;
22444 + }
22445 + got = got->next;
22446 + }
22447 + }
22448 +
22449 + if (htab->sgot->size != got_size)
22450 + {
22451 + RDBG("GOT size changed: %lu -> %lu\n", htab->sgot->size,
22452 + got_size);
22453 + changed = TRUE;
22454 + }
22455 + htab->sgot->size = got_size;
22456 +
22457 + RDBG("assign_got_offsets: total size %lu (%s)\n",
22458 + got_size, changed ? "changed" : "no change");
22459 +
22460 + return changed;
22461 +}
22462 +
22463 +static bfd_boolean
22464 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info)
22465 +{
22466 + struct bfd_link_info *info = _info;
22467 + struct elf_avr32_link_hash_table *htab;
22468 + struct elf_avr32_link_hash_entry *havr;
22469 + struct got_entry *got;
22470 +
22471 + pr_debug(" (4b) allocate_dynrelocs: %s\n", h->root.root.string);
22472 +
22473 + if (h->root.type == bfd_link_hash_indirect)
22474 + return TRUE;
22475 +
22476 + if (h->root.type == bfd_link_hash_warning)
22477 + /* When warning symbols are created, they **replace** the "real"
22478 + entry in the hash table, thus we never get to see the real
22479 + symbol in a hash traversal. So look at it now. */
22480 + h = (struct elf_link_hash_entry *) h->root.u.i.link;
22481 +
22482 + htab = avr32_elf_hash_table(info);
22483 + havr = (struct elf_avr32_link_hash_entry *)h;
22484 +
22485 + got = h->got.glist;
22486 +
22487 + /* If got is NULL, the symbol is never referenced through the GOT */
22488 + if (got && got->refcount > 0)
22489 + {
22490 + insert_got_entry(htab, got);
22491 +
22492 + /* Shared libraries need relocs for all GOT entries unless the
22493 + symbol is forced local or -Bsymbolic is used. Others need
22494 + relocs for everything that is not guaranteed to be defined in
22495 + a regular object. */
22496 + if ((info->shared
22497 + && !info->symbolic
22498 + && h->dynindx != -1)
22499 + || (htab->root.dynamic_sections_created
22500 + && h->def_dynamic
22501 + && !h->def_regular))
22502 + htab->srelgot->size += sizeof(Elf32_External_Rela);
22503 + }
22504 +
22505 + if (havr->possibly_dynamic_relocs
22506 + && (info->shared
22507 + || (elf_hash_table(info)->dynamic_sections_created
22508 + && h->def_dynamic
22509 + && !h->def_regular)))
22510 + {
22511 + pr_debug("Allocating %d dynamic reloc against symbol %s...\n",
22512 + havr->possibly_dynamic_relocs, h->root.root.string);
22513 + htab->srelgot->size += (havr->possibly_dynamic_relocs
22514 + * sizeof(Elf32_External_Rela));
22515 + }
22516 +
22517 + return TRUE;
22518 +}
22519 +
22520 +/* (4) Calculate the sizes of the linker-generated sections and
22521 + allocate memory for them. */
22522 +
22523 +static bfd_boolean
22524 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
22525 + struct bfd_link_info *info)
22526 +{
22527 + struct elf_avr32_link_hash_table *htab;
22528 + bfd *dynobj;
22529 + asection *s;
22530 + bfd *ibfd;
22531 + bfd_boolean relocs;
22532 +
22533 + pr_debug("(4) size dynamic sections\n");
22534 +
22535 + htab = avr32_elf_hash_table(info);
22536 + dynobj = htab->root.dynobj;
22537 + BFD_ASSERT(dynobj != NULL);
22538 +
22539 + if (htab->root.dynamic_sections_created)
22540 + {
22541 + /* Initialize the contents of the .interp section to the name of
22542 + the dynamic loader */
22543 + if (info->executable)
22544 + {
22545 + s = bfd_get_section_by_name(dynobj, ".interp");
22546 + BFD_ASSERT(s != NULL);
22547 + s->size = sizeof(ELF_DYNAMIC_INTERPRETER);
22548 + s->contents = (unsigned char *)ELF_DYNAMIC_INTERPRETER;
22549 + }
22550 + }
22551 +
22552 + if (htab->nr_got_holes > 0)
22553 + {
22554 + /* Allocate holes for the pigeonhole sort algorithm */
22555 + pr_debug("Highest GOT refcount: %d\n", htab->nr_got_holes);
22556 + if (htab->nr_got_holes >= MAX_NR_GOT_HOLES)
22557 + {
22558 + /* TODO: Do something clever (different sorting algorithm) */
22559 + _bfd_error_handler(_("Highest refcount %d too high (max %d)\n"),
22560 + htab->nr_got_holes, MAX_NR_GOT_HOLES);
22561 + bfd_set_error(bfd_error_no_memory);
22562 + return FALSE;
22563 + }
22564 + htab->got_hole = bfd_zalloc(output_bfd,
22565 + sizeof(struct got_entry *)
22566 + * (htab->nr_got_holes + 1));
22567 + if (!htab->got_hole)
22568 + return FALSE;
22569 +
22570 + /* Set up .got offsets for local syms. */
22571 + for (ibfd = info->input_bfds; ibfd != NULL; ibfd = ibfd->link_next)
22572 + {
22573 + struct got_entry **local_got;
22574 + struct got_entry **end_local_got;
22575 + Elf_Internal_Shdr *symtab_hdr;
22576 + bfd_size_type locsymcount;
22577 +
22578 + pr_debug(" (4a) processing file %s...\n", ibfd->filename);
22579 +
22580 + BFD_ASSERT(bfd_get_flavour(ibfd) == bfd_target_elf_flavour);
22581 +
22582 + local_got = elf_local_got_ents(ibfd);
22583 + if (!local_got)
22584 + continue;
22585 +
22586 + symtab_hdr = &elf_tdata(ibfd)->symtab_hdr;
22587 + locsymcount = symtab_hdr->sh_info;
22588 + end_local_got = local_got + locsymcount;
22589 +
22590 + for (; local_got < end_local_got; ++local_got)
22591 + insert_got_entry(htab, *local_got);
22592 + }
22593 + }
22594 +
22595 + /* Allocate global sym .got entries and space for global sym
22596 + dynamic relocs */
22597 + elf_link_hash_traverse(&htab->root, allocate_dynrelocs, info);
22598 +
22599 + /* Now that we have sorted the GOT entries, we are ready to
22600 + assign offsets and determine the initial size of the GOT. */
22601 + if (htab->sgot)
22602 + assign_got_offsets(htab);
22603 +
22604 + /* Allocate space for local sym dynamic relocs */
22605 + BFD_ASSERT(htab->local_dynamic_relocs == 0 || info->shared);
22606 + if (htab->local_dynamic_relocs)
22607 + htab->srelgot->size += (htab->local_dynamic_relocs
22608 + * sizeof(Elf32_External_Rela));
22609 +
22610 + /* We now have determined the sizes of the various dynamic
22611 + sections. Allocate memory for them. */
22612 + relocs = FALSE;
22613 + for (s = dynobj->sections; s; s = s->next)
22614 + {
22615 + if ((s->flags & SEC_LINKER_CREATED) == 0)
22616 + continue;
22617 +
22618 + if (s == htab->sgot
22619 + || s == htab->sstub)
22620 + {
22621 + /* Strip this section if we don't need it */
22622 + }
22623 + else if (strncmp (bfd_get_section_name(dynobj, s), ".rela", 5) == 0)
22624 + {
22625 + if (s->size != 0)
22626 + relocs = TRUE;
22627 +
22628 + s->reloc_count = 0;
22629 + }
22630 + else
22631 + {
22632 + /* It's not one of our sections */
22633 + continue;
22634 + }
22635 +
22636 + if (s->size == 0)
22637 + {
22638 + /* Strip unneeded sections */
22639 + pr_debug("Stripping section %s from output...\n", s->name);
22640 + /* deleted function in 2.17
22641 + _bfd_strip_section_from_output(info, s);
22642 + */
22643 + continue;
22644 + }
22645 +
22646 + s->contents = bfd_zalloc(dynobj, s->size);
22647 + if (s->contents == NULL)
22648 + return FALSE;
22649 + }
22650 +
22651 + if (htab->root.dynamic_sections_created)
22652 + {
22653 + /* Add some entries to the .dynamic section. We fill in the
22654 + values later, in sh_elf_finish_dynamic_sections, but we
22655 + must add the entries now so that we get the correct size for
22656 + the .dynamic section. The DT_DEBUG entry is filled in by the
22657 + dynamic linker and used by the debugger. */
22658 +#define add_dynamic_entry(TAG, VAL) _bfd_elf_add_dynamic_entry(info, TAG, VAL)
22659 +
22660 + if (!add_dynamic_entry(DT_PLTGOT, 0))
22661 + return FALSE;
22662 + if (!add_dynamic_entry(DT_AVR32_GOTSZ, 0))
22663 + return FALSE;
22664 +
22665 + if (info->executable)
22666 + {
22667 + if (!add_dynamic_entry(DT_DEBUG, 0))
22668 + return FALSE;
22669 + }
22670 + if (relocs)
22671 + {
22672 + if (!add_dynamic_entry(DT_RELA, 0)
22673 + || !add_dynamic_entry(DT_RELASZ, 0)
22674 + || !add_dynamic_entry(DT_RELAENT,
22675 + sizeof(Elf32_External_Rela)))
22676 + return FALSE;
22677 + }
22678 + }
22679 +#undef add_dynamic_entry
22680 +
22681 + return TRUE;
22682 +}
22683 +
22684 +\f
22685 +/* Access to internal relocations, section contents and symbols.
22686 + (stolen from the xtensa port) */
22687 +
22688 +static Elf_Internal_Rela *
22689 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory);
22690 +static void
22691 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
22692 +static void
22693 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
22694 +static bfd_byte *
22695 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory);
22696 +/*
22697 +static void
22698 +pin_contents (asection *sec, bfd_byte *contents);
22699 +*/
22700 +static void
22701 +release_contents (asection *sec, bfd_byte *contents);
22702 +static Elf_Internal_Sym *
22703 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory);
22704 +/*
22705 +static void
22706 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
22707 +*/
22708 +static void
22709 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
22710 +
22711 +/* During relaxation, we need to modify relocations, section contents,
22712 + and symbol definitions, and we need to keep the original values from
22713 + being reloaded from the input files, i.e., we need to "pin" the
22714 + modified values in memory. We also want to continue to observe the
22715 + setting of the "keep-memory" flag. The following functions wrap the
22716 + standard BFD functions to take care of this for us. */
22717 +
22718 +static Elf_Internal_Rela *
22719 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory)
22720 +{
22721 + /* _bfd_elf_link_read_relocs knows about caching, so no need for us
22722 + to be clever here. */
22723 + return _bfd_elf_link_read_relocs(abfd, sec, NULL, NULL, keep_memory);
22724 +}
22725 +
22726 +static void
22727 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
22728 +{
22729 + elf_section_data (sec)->relocs = internal_relocs;
22730 +}
22731 +
22732 +static void
22733 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
22734 +{
22735 + if (internal_relocs
22736 + && elf_section_data (sec)->relocs != internal_relocs)
22737 + free (internal_relocs);
22738 +}
22739 +
22740 +static bfd_byte *
22741 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory)
22742 +{
22743 + bfd_byte *contents;
22744 + bfd_size_type sec_size;
22745 +
22746 + sec_size = bfd_get_section_limit (abfd, sec);
22747 + contents = elf_section_data (sec)->this_hdr.contents;
22748 +
22749 + if (contents == NULL && sec_size != 0)
22750 + {
22751 + if (!bfd_malloc_and_get_section (abfd, sec, &contents))
22752 + {
22753 + if (contents)
22754 + free (contents);
22755 + return NULL;
22756 + }
22757 + if (keep_memory)
22758 + elf_section_data (sec)->this_hdr.contents = contents;
22759 + }
22760 + return contents;
22761 +}
22762 +
22763 +/*
22764 +static void
22765 +pin_contents (asection *sec, bfd_byte *contents)
22766 +{
22767 + elf_section_data (sec)->this_hdr.contents = contents;
22768 +}
22769 +*/
22770 +static void
22771 +release_contents (asection *sec, bfd_byte *contents)
22772 +{
22773 + if (contents && elf_section_data (sec)->this_hdr.contents != contents)
22774 + free (contents);
22775 +}
22776 +
22777 +static Elf_Internal_Sym *
22778 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory)
22779 +{
22780 + Elf_Internal_Shdr *symtab_hdr;
22781 + Elf_Internal_Sym *isymbuf;
22782 + size_t locsymcount;
22783 +
22784 + symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
22785 + locsymcount = symtab_hdr->sh_info;
22786 +
22787 + isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
22788 + if (isymbuf == NULL && locsymcount != 0)
22789 + {
22790 + isymbuf = bfd_elf_get_elf_syms (input_bfd, symtab_hdr, locsymcount, 0,
22791 + NULL, NULL, NULL);
22792 + if (isymbuf && keep_memory)
22793 + symtab_hdr->contents = (unsigned char *) isymbuf;
22794 + }
22795 +
22796 + return isymbuf;
22797 +}
22798 +
22799 +/*
22800 +static void
22801 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
22802 +{
22803 + elf_tdata (input_bfd)->symtab_hdr.contents = (unsigned char *)isymbuf;
22804 +}
22805 +
22806 +*/
22807 +static void
22808 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
22809 +{
22810 + if (isymbuf && (elf_tdata (input_bfd)->symtab_hdr.contents
22811 + != (unsigned char *)isymbuf))
22812 + free (isymbuf);
22813 +}
22814 +
22815 +\f/* Data structures used during relaxation. */
22816 +
22817 +enum relax_state_id {
22818 + RS_ERROR = -1,
22819 + RS_NONE = 0,
22820 + RS_ALIGN,
22821 + RS_CPENT,
22822 + RS_PIC_CALL,
22823 + RS_PIC_MCALL,
22824 + RS_PIC_RCALL2,
22825 + RS_PIC_RCALL1,
22826 + RS_PIC_LDA,
22827 + RS_PIC_LDW4,
22828 + RS_PIC_LDW3,
22829 + RS_PIC_SUB5,
22830 + RS_NOPIC_MCALL,
22831 + RS_NOPIC_RCALL2,
22832 + RS_NOPIC_RCALL1,
22833 + RS_NOPIC_LDW4,
22834 + RS_NOPIC_LDDPC,
22835 + RS_NOPIC_SUB5,
22836 +#ifdef DHRYSTONE_FIX
22837 + RS_NOPIC_MOV2,
22838 + RS_NOPIC_MOV1,
22839 +#endif
22840 + RS_RCALL2,
22841 + RS_RCALL1,
22842 + RS_BRC2,
22843 + RS_BRC1,
22844 + RS_BRAL,
22845 + RS_RJMP,
22846 + RS_MAX,
22847 +};
22848 +
22849 +enum reference_type {
22850 + REF_ABSOLUTE,
22851 + REF_PCREL,
22852 + REF_CPOOL,
22853 + REF_GOT,
22854 +};
22855 +
22856 +struct relax_state
22857 +{
22858 + const char *name;
22859 + enum relax_state_id id;
22860 + enum relax_state_id direct;
22861 + enum relax_state_id next;
22862 + enum relax_state_id prev;
22863 +
22864 + enum reference_type reftype;
22865 +
22866 + unsigned int r_type;
22867 +
22868 + bfd_vma opcode;
22869 + bfd_vma opcode_mask;
22870 +
22871 + bfd_signed_vma range_min;
22872 + bfd_signed_vma range_max;
22873 +
22874 + bfd_size_type size;
22875 +};
22876 +
22877 +/*
22878 + * This is for relocs that
22879 + * a) has an addend or is of type R_AVR32_DIFF32, and
22880 + * b) references a different section than it's in, and
22881 + * c) references a section that is relaxable
22882 + *
22883 + * as well as relocs that references the constant pool, in which case
22884 + * the add_frag member points to the frag containing the constant pool
22885 + * entry.
22886 + *
22887 + * Such relocs must be fixed up whenever we delete any code. Sections
22888 + * that don't have any relocs with all of the above properties don't
22889 + * have any additional reloc data, but sections that do will have
22890 + * additional data for all its relocs.
22891 + */
22892 +struct avr32_reloc_data
22893 +{
22894 + struct fragment *add_frag;
22895 + struct fragment *sub_frag;
22896 +};
22897 +
22898 +/*
22899 + * A 'fragment' is a relaxable entity, that is, code may be added or
22900 + * deleted at the end of a fragment. When this happens, all subsequent
22901 + * fragments in the list will have their offsets updated.
22902 + */
22903 +struct fragment
22904 +{
22905 + enum relax_state_id state;
22906 + enum relax_state_id initial_state;
22907 +
22908 + Elf_Internal_Rela *rela;
22909 + bfd_size_type size;
22910 + bfd_vma offset;
22911 + int size_adjust;
22912 + int offset_adjust;
22913 + bfd_boolean has_grown;
22914 +
22915 + /* Only used by constant pool entries. When this drops to zero, the
22916 + frag is discarded (i.e. size_adjust is set to -4.) */
22917 + int refcount;
22918 +};
22919 +
22920 +struct avr32_relax_data
22921 +{
22922 + unsigned int frag_count;
22923 + struct fragment *frag;
22924 + struct avr32_reloc_data *reloc_data;
22925 +
22926 + /* TRUE if this section has one or more relaxable relocations */
22927 + bfd_boolean is_relaxable;
22928 + unsigned int iteration;
22929 +};
22930 +
22931 +struct avr32_section_data
22932 +{
22933 + struct bfd_elf_section_data elf;
22934 + struct avr32_relax_data relax_data;
22935 +};
22936 +
22937 +\f/* Relax state definitions */
22938 +
22939 +#define PIC_MOV2_OPCODE 0xe0600000
22940 +#define PIC_MOV2_MASK 0xe1e00000
22941 +#define PIC_MOV2_RANGE_MIN (-1048576 * 4)
22942 +#define PIC_MOV2_RANGE_MAX (1048575 * 4)
22943 +#define PIC_MCALL_OPCODE 0xf0160000
22944 +#define PIC_MCALL_MASK 0xffff0000
22945 +#define PIC_MCALL_RANGE_MIN (-131072)
22946 +#define PIC_MCALL_RANGE_MAX (131068)
22947 +#define RCALL2_OPCODE 0xe0a00000
22948 +#define RCALL2_MASK 0xe1ef0000
22949 +#define RCALL2_RANGE_MIN (-2097152)
22950 +#define RCALL2_RANGE_MAX (2097150)
22951 +#define RCALL1_OPCODE 0xc00c0000
22952 +#define RCALL1_MASK 0xf00c0000
22953 +#define RCALL1_RANGE_MIN (-1024)
22954 +#define RCALL1_RANGE_MAX (1022)
22955 +#define PIC_LDW4_OPCODE 0xecf00000
22956 +#define PIC_LDW4_MASK 0xfff00000
22957 +#define PIC_LDW4_RANGE_MIN (-32768)
22958 +#define PIC_LDW4_RANGE_MAX (32767)
22959 +#define PIC_LDW3_OPCODE 0x6c000000
22960 +#define PIC_LDW3_MASK 0xfe000000
22961 +#define PIC_LDW3_RANGE_MIN (0)
22962 +#define PIC_LDW3_RANGE_MAX (124)
22963 +#define SUB5_PC_OPCODE 0xfec00000
22964 +#define SUB5_PC_MASK 0xfff00000
22965 +#define SUB5_PC_RANGE_MIN (-32768)
22966 +#define SUB5_PC_RANGE_MAX (32767)
22967 +#define NOPIC_MCALL_OPCODE 0xf01f0000
22968 +#define NOPIC_MCALL_MASK 0xffff0000
22969 +#define NOPIC_MCALL_RANGE_MIN PIC_MCALL_RANGE_MIN
22970 +#define NOPIC_MCALL_RANGE_MAX PIC_MCALL_RANGE_MAX
22971 +#define NOPIC_LDW4_OPCODE 0xfef00000
22972 +#define NOPIC_LDW4_MASK 0xfff00000
22973 +#define NOPIC_LDW4_RANGE_MIN PIC_LDW4_RANGE_MIN
22974 +#define NOPIC_LDW4_RANGE_MAX PIC_LDW4_RANGE_MAX
22975 +#define LDDPC_OPCODE 0x48000000
22976 +#define LDDPC_MASK 0xf8000000
22977 +#define LDDPC_RANGE_MIN 0
22978 +#define LDDPC_RANGE_MAX 508
22979 +
22980 +#ifdef DHRYSTONE_FIX
22981 +#define NOPIC_MOV2_OPCODE 0xe0600000
22982 +#define NOPIC_MOV2_MASK 0xe1e00000
22983 +#define NOPIC_MOV2_RANGE_MIN (-1048576)
22984 +#define NOPIC_MOV2_RANGE_MAX (1048575)
22985 +#define NOPIC_MOV1_OPCODE 0x30000000
22986 +#define NOPIC_MOV1_MASK 0xf0000000
22987 +#define NOPIC_MOV1_RANGE_MIN (-128)
22988 +#define NOPIC_MOV1_RANGE_MAX (127)
22989 +#endif
22990 +
22991 +/* Only brc2 variants with cond[3] == 0 is considered, since the
22992 + others are not relaxable. bral is a special case and is handled
22993 + separately. */
22994 +#define BRC2_OPCODE 0xe0800000
22995 +#define BRC2_MASK 0xe1e80000
22996 +#define BRC2_RANGE_MIN (-2097152)
22997 +#define BRC2_RANGE_MAX (2097150)
22998 +#define BRC1_OPCODE 0xc0000000
22999 +#define BRC1_MASK 0xf0080000
23000 +#define BRC1_RANGE_MIN (-256)
23001 +#define BRC1_RANGE_MAX (254)
23002 +#define BRAL_OPCODE 0xe08f0000
23003 +#define BRAL_MASK 0xe1ef0000
23004 +#define BRAL_RANGE_MIN BRC2_RANGE_MIN
23005 +#define BRAL_RANGE_MAX BRC2_RANGE_MAX
23006 +#define RJMP_OPCODE 0xc0080000
23007 +#define RJMP_MASK 0xf00c0000
23008 +#define RJMP_RANGE_MIN (-1024)
23009 +#define RJMP_RANGE_MAX (1022)
23010 +
23011 +/* Define a relax state using the GOT */
23012 +#define RG(id, dir, next, prev, r_type, opc, size) \
23013 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_GOT, \
23014 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23015 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23016 +/* Define a relax state using the Constant Pool */
23017 +#define RC(id, dir, next, prev, r_type, opc, size) \
23018 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_CPOOL, \
23019 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23020 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23021 +
23022 +/* Define a relax state using pc-relative direct reference */
23023 +#define RP(id, dir, next, prev, r_type, opc, size) \
23024 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_PCREL, \
23025 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23026 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23027 +
23028 +#ifdef DHRYSTONE_FIX
23029 +/* Define a relax state using non-pc-relative direct reference */
23030 +#define RD(id, dir, next, prev, r_type, opc, size) \
23031 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_ABSOLUTE, \
23032 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23033 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23034 +
23035 +#endif
23036 +
23037 +/* Define a relax state that will be handled specially */
23038 +#define RS(id, r_type, size) \
23039 + { "RS_"#id, RS_##id, RS_NONE, RS_NONE, RS_NONE, REF_ABSOLUTE, \
23040 + R_AVR32_##r_type, 0, 0, 0, 0, size }
23041 +
23042 +const struct relax_state relax_state[RS_MAX] = {
23043 + RS(NONE, NONE, 0),
23044 + RS(ALIGN, ALIGN, 0),
23045 + RS(CPENT, 32_CPENT, 4),
23046 +
23047 + RG(PIC_CALL, PIC_RCALL1, PIC_MCALL, NONE, GOTCALL, PIC_MOV2, 10),
23048 + RG(PIC_MCALL, PIC_RCALL1, NONE, PIC_CALL, GOT18SW, PIC_MCALL, 4),
23049 + RP(PIC_RCALL2, NONE, PIC_RCALL1, PIC_MCALL, 22H_PCREL, RCALL2, 4),
23050 + RP(PIC_RCALL1, NONE, NONE, PIC_RCALL2, 11H_PCREL, RCALL1, 2),
23051 +
23052 + RG(PIC_LDA, PIC_SUB5, PIC_LDW4, NONE, LDA_GOT, PIC_MOV2, 8),
23053 + RG(PIC_LDW4, PIC_SUB5, PIC_LDW3, PIC_LDA, GOT16S, PIC_LDW4, 4),
23054 + RG(PIC_LDW3, PIC_SUB5, NONE, PIC_LDW4, GOT7UW, PIC_LDW3, 2),
23055 + RP(PIC_SUB5, NONE, NONE, PIC_LDW3, 16N_PCREL, SUB5_PC, 4),
23056 +
23057 + RC(NOPIC_MCALL, NOPIC_RCALL1, NONE, NONE, CPCALL, NOPIC_MCALL, 4),
23058 + RP(NOPIC_RCALL2, NONE, NOPIC_RCALL1, NOPIC_MCALL, 22H_PCREL, RCALL2, 4),
23059 + RP(NOPIC_RCALL1, NONE, NONE, NOPIC_RCALL2, 11H_PCREL, RCALL1, 2),
23060 +
23061 +#ifdef DHRYSTONE_FIX
23062 + RC(NOPIC_LDW4, NOPIC_MOV1, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
23063 + RC(NOPIC_LDDPC, NOPIC_MOV1, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
23064 + RP(NOPIC_SUB5, NOPIC_MOV1, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
23065 + RD(NOPIC_MOV2, NONE, NOPIC_MOV1, NOPIC_SUB5, 21S, NOPIC_MOV2, 4),
23066 + RD(NOPIC_MOV1, NONE, NONE, NOPIC_MOV2, 8S, NOPIC_MOV1, 2),
23067 +#else
23068 + RC(NOPIC_LDW4, NOPIC_SUB5, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
23069 + RC(NOPIC_LDDPC, NOPIC_SUB5, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
23070 + RP(NOPIC_SUB5, NONE, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
23071 +#endif
23072 +
23073 + RP(RCALL2, NONE, RCALL1, NONE, 22H_PCREL, RCALL2, 4),
23074 + RP(RCALL1, NONE, NONE, RCALL2, 11H_PCREL, RCALL1, 2),
23075 + RP(BRC2, NONE, BRC1, NONE, 22H_PCREL, BRC2, 4),
23076 + RP(BRC1, NONE, NONE, BRC2, 9H_PCREL, BRC1, 2),
23077 + RP(BRAL, NONE, RJMP, NONE, 22H_PCREL, BRAL, 4),
23078 + RP(RJMP, NONE, NONE, BRAL, 11H_PCREL, RJMP, 2),
23079 +};
23080 +
23081 +static bfd_boolean
23082 +avr32_elf_new_section_hook(bfd *abfd, asection *sec)
23083 +{
23084 + struct avr32_section_data *sdata;
23085 +
23086 + sdata = bfd_zalloc(abfd, sizeof(struct avr32_section_data));
23087 + if (!sdata)
23088 + return FALSE;
23089 +
23090 + sec->used_by_bfd = sdata;
23091 + return _bfd_elf_new_section_hook(abfd, sec);
23092 +}
23093 +
23094 +static struct avr32_relax_data *
23095 +avr32_relax_data(asection *sec)
23096 +{
23097 + struct avr32_section_data *sdata;
23098 +
23099 + BFD_ASSERT(sec->used_by_bfd);
23100 +
23101 + sdata = (struct avr32_section_data *)elf_section_data(sec);
23102 + return &sdata->relax_data;
23103 +}
23104 +
23105 +\f/* Link-time relaxation */
23106 +
23107 +static bfd_boolean
23108 +avr32_elf_relax_section(bfd *abfd, asection *sec,
23109 + struct bfd_link_info *info, bfd_boolean *again);
23110 +
23111 +enum relax_pass_id {
23112 + RELAX_PASS_SIZE_FRAGS,
23113 + RELAX_PASS_MOVE_DATA,
23114 +};
23115 +
23116 +/* Stolen from the xtensa port */
23117 +static int
23118 +internal_reloc_compare (const void *ap, const void *bp)
23119 +{
23120 + const Elf_Internal_Rela *a = (const Elf_Internal_Rela *) ap;
23121 + const Elf_Internal_Rela *b = (const Elf_Internal_Rela *) bp;
23122 +
23123 + if (a->r_offset != b->r_offset)
23124 + return (a->r_offset - b->r_offset);
23125 +
23126 + /* We don't need to sort on these criteria for correctness,
23127 + but enforcing a more strict ordering prevents unstable qsort
23128 + from behaving differently with different implementations.
23129 + Without the code below we get correct but different results
23130 + on Solaris 2.7 and 2.8. We would like to always produce the
23131 + same results no matter the host. */
23132 +
23133 + if (a->r_info != b->r_info)
23134 + return (a->r_info - b->r_info);
23135 +
23136 + return (a->r_addend - b->r_addend);
23137 +}
23138 +
23139 +static enum relax_state_id
23140 +get_pcrel22_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
23141 + const Elf_Internal_Rela *rela)
23142 +{
23143 + bfd_byte *contents;
23144 + bfd_vma insn;
23145 + enum relax_state_id rs = RS_NONE;
23146 +
23147 + contents = retrieve_contents(abfd, sec, info->keep_memory);
23148 + if (!contents)
23149 + return RS_ERROR;
23150 +
23151 + insn = bfd_get_32(abfd, contents + rela->r_offset);
23152 + if ((insn & RCALL2_MASK) == RCALL2_OPCODE)
23153 + rs = RS_RCALL2;
23154 + else if ((insn & BRAL_MASK) == BRAL_OPCODE)
23155 + /* Optimizing bral -> rjmp gets us into all kinds of
23156 + trouble with jump tables. Better not do it. */
23157 + rs = RS_NONE;
23158 + else if ((insn & BRC2_MASK) == BRC2_OPCODE)
23159 + rs = RS_BRC2;
23160 +
23161 + release_contents(sec, contents);
23162 +
23163 + return rs;
23164 +}
23165 +
23166 +static enum relax_state_id
23167 +get_initial_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
23168 + const Elf_Internal_Rela *rela)
23169 +{
23170 + switch (ELF_R_TYPE(rela->r_info))
23171 + {
23172 + case R_AVR32_GOTCALL:
23173 + return RS_PIC_CALL;
23174 + case R_AVR32_GOT18SW:
23175 + return RS_PIC_MCALL;
23176 + case R_AVR32_LDA_GOT:
23177 + return RS_PIC_LDA;
23178 + case R_AVR32_GOT16S:
23179 + return RS_PIC_LDW4;
23180 + case R_AVR32_CPCALL:
23181 + return RS_NOPIC_MCALL;
23182 + case R_AVR32_16_CP:
23183 + return RS_NOPIC_LDW4;
23184 + case R_AVR32_9W_CP:
23185 + return RS_NOPIC_LDDPC;
23186 + case R_AVR32_ALIGN:
23187 + return RS_ALIGN;
23188 + case R_AVR32_32_CPENT:
23189 + return RS_CPENT;
23190 + case R_AVR32_22H_PCREL:
23191 + return get_pcrel22_relax_state(abfd, sec, info, rela);
23192 + case R_AVR32_9H_PCREL:
23193 + return RS_BRC1;
23194 + default:
23195 + return RS_NONE;
23196 + }
23197 +}
23198 +
23199 +static bfd_boolean
23200 +reloc_is_cpool_ref(const Elf_Internal_Rela *rela)
23201 +{
23202 + switch (ELF_R_TYPE(rela->r_info))
23203 + {
23204 + case R_AVR32_CPCALL:
23205 + case R_AVR32_16_CP:
23206 + case R_AVR32_9W_CP:
23207 + return TRUE;
23208 + default:
23209 + return FALSE;
23210 + }
23211 +}
23212 +
23213 +static struct fragment *
23214 +new_frag(bfd *abfd ATTRIBUTE_UNUSED, asection *sec,
23215 + struct avr32_relax_data *rd, enum relax_state_id state,
23216 + Elf_Internal_Rela *rela)
23217 +{
23218 + struct fragment *frag;
23219 + bfd_size_type r_size;
23220 + bfd_vma r_offset;
23221 + unsigned int i = rd->frag_count;
23222 +
23223 + BFD_ASSERT(state >= RS_NONE && state < RS_MAX);
23224 +
23225 + rd->frag_count++;
23226 + frag = bfd_realloc(rd->frag, sizeof(struct fragment) * rd->frag_count);
23227 + if (!frag)
23228 + return NULL;
23229 + rd->frag = frag;
23230 +
23231 + frag += i;
23232 + memset(frag, 0, sizeof(struct fragment));
23233 +
23234 + if (state == RS_ALIGN)
23235 + r_size = (((rela->r_offset + (1 << rela->r_addend) - 1)
23236 + & ~((1 << rela->r_addend) - 1)) - rela->r_offset);
23237 + else
23238 + r_size = relax_state[state].size;
23239 +
23240 + if (rela)
23241 + r_offset = rela->r_offset;
23242 + else
23243 + r_offset = sec->size;
23244 +
23245 + if (i == 0)
23246 + {
23247 + frag->offset = 0;
23248 + frag->size = r_offset + r_size;
23249 + }
23250 + else
23251 + {
23252 + frag->offset = rd->frag[i - 1].offset + rd->frag[i - 1].size;
23253 + frag->size = r_offset + r_size - frag->offset;
23254 + }
23255 +
23256 + if (state != RS_CPENT)
23257 + /* Make sure we don't discard this frag */
23258 + frag->refcount = 1;
23259 +
23260 + frag->initial_state = frag->state = state;
23261 + frag->rela = rela;
23262 +
23263 + return frag;
23264 +}
23265 +
23266 +static struct fragment *
23267 +find_frag(asection *sec, bfd_vma offset)
23268 +{
23269 + struct fragment *first, *last;
23270 + struct avr32_relax_data *rd = avr32_relax_data(sec);
23271 +
23272 + if (rd->frag_count == 0)
23273 + return NULL;
23274 +
23275 + first = &rd->frag[0];
23276 + last = &rd->frag[rd->frag_count - 1];
23277 +
23278 + /* This may be a reloc referencing the end of a section. The last
23279 + frag will never have a reloc associated with it, so its size will
23280 + never change, thus the offset adjustment of the last frag will
23281 + always be the same as the offset adjustment of the end of the
23282 + section. */
23283 + if (offset == sec->size)
23284 + {
23285 + BFD_ASSERT(last->offset + last->size == sec->size);
23286 + BFD_ASSERT(!last->rela);
23287 + return last;
23288 + }
23289 +
23290 + while (first <= last)
23291 + {
23292 + struct fragment *mid;
23293 +
23294 + mid = (last - first) / 2 + first;
23295 + if ((mid->offset + mid->size) <= offset)
23296 + first = mid + 1;
23297 + else if (mid->offset > offset)
23298 + last = mid - 1;
23299 + else
23300 + return mid;
23301 + }
23302 +
23303 + return NULL;
23304 +}
23305 +
23306 +/* Look through all relocs in a section and determine if any relocs
23307 + may be affected by relaxation in other sections. If so, allocate
23308 + an array of additional relocation data which links the affected
23309 + relocations to the frag(s) where the relaxation may occur.
23310 +
23311 + This function also links cpool references to cpool entries and
23312 + increments the refcount of the latter when this happens. */
23313 +
23314 +static bfd_boolean
23315 +allocate_reloc_data(bfd *abfd, asection *sec, Elf_Internal_Rela *relocs,
23316 + struct bfd_link_info *info)
23317 +{
23318 + Elf_Internal_Shdr *symtab_hdr;
23319 + Elf_Internal_Sym *isymbuf = NULL;
23320 + struct avr32_relax_data *rd;
23321 + unsigned int i;
23322 + bfd_boolean ret = FALSE;
23323 +
23324 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
23325 + rd = avr32_relax_data(sec);
23326 +
23327 + RDBG("%s<%s>: allocate_reloc_data\n", abfd->filename, sec->name);
23328 +
23329 + for (i = 0; i < sec->reloc_count; i++)
23330 + {
23331 + Elf_Internal_Rela *rel = &relocs[i];
23332 + asection *sym_sec;
23333 + unsigned long r_symndx;
23334 + bfd_vma sym_value;
23335 +
23336 + if (!rel->r_addend && ELF_R_TYPE(rel->r_info) != R_AVR32_DIFF32
23337 + && !reloc_is_cpool_ref(rel))
23338 + continue;
23339 +
23340 + r_symndx = ELF_R_SYM(rel->r_info);
23341 +
23342 + if (r_symndx < symtab_hdr->sh_info)
23343 + {
23344 + Elf_Internal_Sym *isym;
23345 +
23346 + if (!isymbuf)
23347 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
23348 + if (!isymbuf)
23349 + return FALSE;
23350 +
23351 + isym = &isymbuf[r_symndx];
23352 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
23353 + sym_value = isym->st_value;
23354 + }
23355 + else
23356 + {
23357 + struct elf_link_hash_entry *h;
23358 +
23359 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
23360 +
23361 + while (h->root.type == bfd_link_hash_indirect
23362 + || h->root.type == bfd_link_hash_warning)
23363 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
23364 +
23365 + if (h->root.type != bfd_link_hash_defined
23366 + && h->root.type != bfd_link_hash_defweak)
23367 + continue;
23368 +
23369 + sym_sec = h->root.u.def.section;
23370 + sym_value = h->root.u.def.value;
23371 + }
23372 +
23373 + if (sym_sec && avr32_relax_data(sym_sec)->is_relaxable)
23374 + {
23375 + bfd_size_type size;
23376 + struct fragment *frag;
23377 +
23378 + if (!rd->reloc_data)
23379 + {
23380 + size = sizeof(struct avr32_reloc_data) * sec->reloc_count;
23381 + rd->reloc_data = bfd_zalloc(abfd, size);
23382 + if (!rd->reloc_data)
23383 + goto out;
23384 + }
23385 +
23386 + RDBG("[%3d] 0x%04lx: target: 0x%lx + 0x%lx",
23387 + i, rel->r_offset, sym_value, rel->r_addend);
23388 +
23389 + frag = find_frag(sym_sec, sym_value + rel->r_addend);
23390 + BFD_ASSERT(frag);
23391 + rd->reloc_data[i].add_frag = frag;
23392 +
23393 + RDBG(" -> %s<%s>:%04lx\n", sym_sec->owner->filename, sym_sec->name,
23394 + frag->rela ? frag->rela->r_offset : sym_sec->size);
23395 +
23396 + if (reloc_is_cpool_ref(rel))
23397 + {
23398 + BFD_ASSERT(ELF_R_TYPE(frag->rela->r_info) == R_AVR32_32_CPENT);
23399 + frag->refcount++;
23400 + }
23401 +
23402 + if (ELF_R_TYPE(rel->r_info) == R_AVR32_DIFF32)
23403 + {
23404 + bfd_byte *contents;
23405 + bfd_signed_vma diff;
23406 +
23407 + contents = retrieve_contents(abfd, sec, info->keep_memory);
23408 + if (!contents)
23409 + goto out;
23410 +
23411 + diff = bfd_get_signed_32(abfd, contents + rel->r_offset);
23412 + frag = find_frag(sym_sec, sym_value + rel->r_addend + diff);
23413 + BFD_ASSERT(frag);
23414 + rd->reloc_data[i].sub_frag = frag;
23415 +
23416 + release_contents(sec, contents);
23417 + }
23418 + }
23419 + }
23420 +
23421 + ret = TRUE;
23422 +
23423 + out:
23424 + release_local_syms(abfd, isymbuf);
23425 + return ret;
23426 +}
23427 +
23428 +static bfd_boolean
23429 +global_sym_set_frag(struct elf_avr32_link_hash_entry *havr,
23430 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
23431 +{
23432 + struct fragment *frag;
23433 + asection *sec;
23434 +
23435 + if (havr->root.root.type != bfd_link_hash_defined
23436 + && havr->root.root.type != bfd_link_hash_defweak)
23437 + return TRUE;
23438 +
23439 + sec = havr->root.root.u.def.section;
23440 + if (bfd_is_const_section(sec)
23441 + || !avr32_relax_data(sec)->is_relaxable)
23442 + return TRUE;
23443 +
23444 + frag = find_frag(sec, havr->root.root.u.def.value);
23445 + if (!frag)
23446 + {
23447 + unsigned int i;
23448 + struct avr32_relax_data *rd = avr32_relax_data(sec);
23449 +
23450 + RDBG("In %s: No frag for %s <%s+%lu> (limit %lu)\n",
23451 + sec->owner->filename, havr->root.root.root.string,
23452 + sec->name, havr->root.root.u.def.value, sec->size);
23453 + for (i = 0; i < rd->frag_count; i++)
23454 + RDBG(" %8lu - %8lu\n", rd->frag[i].offset,
23455 + rd->frag[i].offset + rd->frag[i].size);
23456 + }
23457 + BFD_ASSERT(frag);
23458 +
23459 + havr->sym_frag = frag;
23460 + return TRUE;
23461 +}
23462 +
23463 +static bfd_boolean
23464 +analyze_relocations(struct bfd_link_info *info)
23465 +{
23466 + bfd *abfd;
23467 + asection *sec;
23468 +
23469 + /* Divide all relaxable sections into fragments */
23470 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
23471 + {
23472 + if (!(elf_elfheader(abfd)->e_flags & EF_AVR32_LINKRELAX))
23473 + {
23474 + if (!(*info->callbacks->warning)
23475 + (info, _("input is not relaxable"), NULL, abfd, NULL, 0))
23476 + return FALSE;
23477 + continue;
23478 + }
23479 +
23480 + for (sec = abfd->sections; sec; sec = sec->next)
23481 + {
23482 + struct avr32_relax_data *rd;
23483 + struct fragment *frag;
23484 + Elf_Internal_Rela *relocs;
23485 + unsigned int i;
23486 + bfd_boolean ret = TRUE;
23487 +
23488 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
23489 + continue;
23490 +
23491 + rd = avr32_relax_data(sec);
23492 +
23493 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
23494 + if (!relocs)
23495 + return FALSE;
23496 +
23497 + qsort(relocs, sec->reloc_count, sizeof(Elf_Internal_Rela),
23498 + internal_reloc_compare);
23499 +
23500 + for (i = 0; i < sec->reloc_count; i++)
23501 + {
23502 + enum relax_state_id state;
23503 +
23504 + ret = FALSE;
23505 + state = get_initial_relax_state(abfd, sec, info, &relocs[i]);
23506 + if (state == RS_ERROR)
23507 + break;
23508 +
23509 + if (state)
23510 + {
23511 + frag = new_frag(abfd, sec, rd, state, &relocs[i]);
23512 + if (!frag)
23513 + break;
23514 +
23515 + pin_internal_relocs(sec, relocs);
23516 + rd->is_relaxable = TRUE;
23517 + }
23518 +
23519 + ret = TRUE;
23520 + }
23521 +
23522 + release_internal_relocs(sec, relocs);
23523 + if (!ret)
23524 + return ret;
23525 +
23526 + if (rd->is_relaxable)
23527 + {
23528 + frag = new_frag(abfd, sec, rd, RS_NONE, NULL);
23529 + if (!frag)
23530 + return FALSE;
23531 + }
23532 + }
23533 + }
23534 +
23535 + /* Link each global symbol to the fragment where it's defined. */
23536 + elf_link_hash_traverse(elf_hash_table(info), global_sym_set_frag, info);
23537 +
23538 + /* Do the same for local symbols. */
23539 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
23540 + {
23541 + Elf_Internal_Sym *isymbuf, *isym;
23542 + struct fragment **local_sym_frag;
23543 + unsigned int i, sym_count;
23544 +
23545 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
23546 + if (sym_count == 0)
23547 + continue;
23548 +
23549 + local_sym_frag = bfd_zalloc(abfd, sym_count * sizeof(struct fragment *));
23550 + if (!local_sym_frag)
23551 + return FALSE;
23552 + elf_tdata(abfd)->local_sym_frag = local_sym_frag;
23553 +
23554 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
23555 + if (!isymbuf)
23556 + return FALSE;
23557 +
23558 + for (i = 0; i < sym_count; i++)
23559 + {
23560 + struct avr32_relax_data *rd;
23561 + struct fragment *frag;
23562 + asection *sec;
23563 +
23564 + isym = &isymbuf[i];
23565 +
23566 + sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
23567 + if (!sec)
23568 + continue;
23569 +
23570 + rd = avr32_relax_data(sec);
23571 + if (!rd->is_relaxable)
23572 + continue;
23573 +
23574 + frag = find_frag(sec, isym->st_value);
23575 + BFD_ASSERT(frag);
23576 +
23577 + local_sym_frag[i] = frag;
23578 + }
23579 +
23580 + release_local_syms(abfd, isymbuf);
23581 + }
23582 +
23583 + /* And again for relocs with addends and constant pool references */
23584 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
23585 + for (sec = abfd->sections; sec; sec = sec->next)
23586 + {
23587 + Elf_Internal_Rela *relocs;
23588 + bfd_boolean ret;
23589 +
23590 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
23591 + continue;
23592 +
23593 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
23594 + if (!relocs)
23595 + return FALSE;
23596 +
23597 + ret = allocate_reloc_data(abfd, sec, relocs, info);
23598 +
23599 + release_internal_relocs(sec, relocs);
23600 + if (ret == FALSE)
23601 + return ret;
23602 + }
23603 +
23604 + return TRUE;
23605 +}
23606 +
23607 +static bfd_boolean
23608 +rs_is_good_enough(const struct relax_state *rs, struct fragment *frag,
23609 + bfd_vma symval, bfd_vma addr, struct got_entry *got,
23610 + struct avr32_reloc_data *ind_data,
23611 + bfd_signed_vma offset_adjust)
23612 +{
23613 + bfd_signed_vma target = 0;
23614 +
23615 + switch (rs->reftype)
23616 + {
23617 + case REF_ABSOLUTE:
23618 + target = symval;
23619 + break;
23620 + case REF_PCREL:
23621 + target = symval - addr;
23622 + break;
23623 + case REF_CPOOL:
23624 + /* cpool frags are always in the same section and always after
23625 + all frags referring to it. So it's always correct to add in
23626 + offset_adjust here. */
23627 + target = (ind_data->add_frag->offset + ind_data->add_frag->offset_adjust
23628 + + offset_adjust - frag->offset - frag->offset_adjust);
23629 + break;
23630 + case REF_GOT:
23631 + target = got->offset;
23632 + break;
23633 + default:
23634 + abort();
23635 + }
23636 +
23637 + if (target >= rs->range_min && target <= rs->range_max)
23638 + return TRUE;
23639 + else
23640 + return FALSE;
23641 +}
23642 +
23643 +static bfd_boolean
23644 +avr32_size_frags(bfd *abfd, asection *sec, struct bfd_link_info *info)
23645 +{
23646 + struct elf_avr32_link_hash_table *htab;
23647 + struct avr32_relax_data *rd;
23648 + Elf_Internal_Shdr *symtab_hdr;
23649 + Elf_Internal_Rela *relocs = NULL;
23650 + Elf_Internal_Sym *isymbuf = NULL;
23651 + struct got_entry **local_got_ents;
23652 + struct fragment **local_sym_frag;
23653 + bfd_boolean ret = FALSE;
23654 + bfd_signed_vma delta = 0;
23655 + unsigned int i;
23656 +
23657 + htab = avr32_elf_hash_table(info);
23658 + rd = avr32_relax_data(sec);
23659 +
23660 + if (sec == htab->sgot)
23661 + {
23662 + RDBG("Relaxing GOT section (vma: 0x%lx)\n",
23663 + sec->output_section->vma + sec->output_offset);
23664 + if (assign_got_offsets(htab))
23665 + htab->repeat_pass = TRUE;
23666 + return TRUE;
23667 + }
23668 +
23669 + if (!rd->is_relaxable)
23670 + return TRUE;
23671 +
23672 + if (!sec->rawsize)
23673 + sec->rawsize = sec->size;
23674 +
23675 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
23676 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
23677 + if (!relocs)
23678 + goto out;
23679 +
23680 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
23681 + if (!isymbuf)
23682 + goto out;
23683 +
23684 + local_got_ents = elf_local_got_ents(abfd);
23685 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
23686 +
23687 + RDBG("size_frags: %s<%s>\n vma: 0x%08lx, size: 0x%08lx\n",
23688 + abfd->filename, sec->name,
23689 + sec->output_section->vma + sec->output_offset, sec->size);
23690 +
23691 + for (i = 0; i < rd->frag_count; i++)
23692 + {
23693 + struct fragment *frag = &rd->frag[i];
23694 + struct avr32_reloc_data *r_data = NULL, *ind_data = NULL;
23695 + const struct relax_state *state, *next_state;
23696 + struct fragment *target_frag = NULL;
23697 + asection *sym_sec = NULL;
23698 + Elf_Internal_Rela *rela;
23699 + struct got_entry *got;
23700 + bfd_vma symval, r_offset, addend, addr;
23701 + bfd_signed_vma size_adjust = 0, distance;
23702 + unsigned long r_symndx;
23703 + bfd_boolean defined = TRUE, dynamic = FALSE;
23704 + unsigned char sym_type;
23705 +
23706 + frag->offset_adjust += delta;
23707 + state = next_state = &relax_state[frag->state];
23708 + rela = frag->rela;
23709 +
23710 + BFD_ASSERT(state->id == frag->state);
23711 +
23712 + RDBG(" 0x%04lx%c%d: %s [size %ld]", rela ? rela->r_offset : sec->rawsize,
23713 + (frag->offset_adjust < 0)?'-':'+',
23714 + abs(frag->offset_adjust), state->name, state->size);
23715 +
23716 + if (!rela)
23717 + {
23718 + RDBG(": no reloc, ignoring\n");
23719 + continue;
23720 + }
23721 +
23722 + BFD_ASSERT((unsigned int)(rela - relocs) < sec->reloc_count);
23723 + BFD_ASSERT(state != RS_NONE);
23724 +
23725 + r_offset = rela->r_offset + frag->offset_adjust;
23726 + addr = sec->output_section->vma + sec->output_offset + r_offset;
23727 +
23728 + switch (frag->state)
23729 + {
23730 + case RS_ALIGN:
23731 + size_adjust = ((addr + (1 << rela->r_addend) - 1)
23732 + & ~((1 << rela->r_addend) - 1));
23733 + size_adjust -= (sec->output_section->vma + sec->output_offset
23734 + + frag->offset + frag->offset_adjust
23735 + + frag->size + frag->size_adjust);
23736 +
23737 + RDBG(": adjusting size %lu -> %lu\n", frag->size + frag->size_adjust,
23738 + frag->size + frag->size_adjust + size_adjust);
23739 + break;
23740 +
23741 + case RS_CPENT:
23742 + if (frag->refcount == 0 && frag->size_adjust == 0)
23743 + {
23744 + RDBG(": discarding frag\n");
23745 + size_adjust = -4;
23746 + }
23747 + else if (frag->refcount > 0 && frag->size_adjust < 0)
23748 + {
23749 + RDBG(": un-discarding frag\n");
23750 + size_adjust = 4;
23751 + }
23752 + break;
23753 +
23754 + default:
23755 + if (rd->reloc_data)
23756 + r_data = &rd->reloc_data[frag->rela - relocs];
23757 +
23758 + /* If this is a cpool reference, we want the symbol that the
23759 + cpool entry refers to, not the symbol for the cpool entry
23760 + itself, as we already know what frag it's in. */
23761 + if (relax_state[frag->initial_state].reftype == REF_CPOOL)
23762 + {
23763 + Elf_Internal_Rela *irela = r_data->add_frag->rela;
23764 +
23765 + r_symndx = ELF_R_SYM(irela->r_info);
23766 + addend = irela->r_addend;
23767 +
23768 + /* The constant pool must be in the same section as the
23769 + reloc referring to it. */
23770 + BFD_ASSERT((unsigned long)(irela - relocs) < sec->reloc_count);
23771 +
23772 + ind_data = r_data;
23773 + r_data = &rd->reloc_data[irela - relocs];
23774 + }
23775 + else
23776 + {
23777 + r_symndx = ELF_R_SYM(rela->r_info);
23778 + addend = rela->r_addend;
23779 + }
23780 +
23781 + /* Get the value of the symbol referred to by the reloc. */
23782 + if (r_symndx < symtab_hdr->sh_info)
23783 + {
23784 + Elf_Internal_Sym *isym;
23785 +
23786 + isym = isymbuf + r_symndx;
23787 + symval = 0;
23788 +
23789 + RDBG(" local sym %lu: ", r_symndx);
23790 +
23791 + if (isym->st_shndx == SHN_UNDEF)
23792 + defined = FALSE;
23793 + else if (isym->st_shndx == SHN_ABS)
23794 + sym_sec = bfd_abs_section_ptr;
23795 + else if (isym->st_shndx == SHN_COMMON)
23796 + sym_sec = bfd_com_section_ptr;
23797 + else
23798 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
23799 +
23800 + symval = isym->st_value;
23801 + sym_type = ELF_ST_TYPE(isym->st_info);
23802 + target_frag = local_sym_frag[r_symndx];
23803 +
23804 + if (local_got_ents)
23805 + got = local_got_ents[r_symndx];
23806 + else
23807 + got = NULL;
23808 + }
23809 + else
23810 + {
23811 + /* Global symbol */
23812 + unsigned long index;
23813 + struct elf_link_hash_entry *h;
23814 + struct elf_avr32_link_hash_entry *havr;
23815 +
23816 + index = r_symndx - symtab_hdr->sh_info;
23817 + h = elf_sym_hashes(abfd)[index];
23818 + BFD_ASSERT(h != NULL);
23819 +
23820 + while (h->root.type == bfd_link_hash_indirect
23821 + || h->root.type == bfd_link_hash_warning)
23822 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
23823 +
23824 + havr = (struct elf_avr32_link_hash_entry *)h;
23825 + got = h->got.glist;
23826 +
23827 + symval = 0;
23828 +
23829 + RDBG(" %s: ", h->root.root.string);
23830 +
23831 + if (h->root.type != bfd_link_hash_defined
23832 + && h->root.type != bfd_link_hash_defweak)
23833 + {
23834 + RDBG("(undef)");
23835 + defined = FALSE;
23836 + }
23837 + else if ((info->shared && !info->symbolic && h->dynindx != -1)
23838 + || (htab->root.dynamic_sections_created
23839 + && h->def_dynamic && !h->def_regular))
23840 + {
23841 + RDBG("(dynamic)");
23842 + dynamic = TRUE;
23843 + sym_sec = h->root.u.def.section;
23844 + }
23845 + else
23846 + {
23847 + sym_sec = h->root.u.def.section;
23848 + symval = h->root.u.def.value;
23849 + target_frag = havr->sym_frag;
23850 + }
23851 +
23852 + sym_type = h->type;
23853 + }
23854 +
23855 + /* Thanks to elf32-ppc for this one. */
23856 + if (sym_sec && sym_sec->sec_info_type == ELF_INFO_TYPE_MERGE)
23857 + {
23858 + /* At this stage in linking, no SEC_MERGE symbol has been
23859 + adjusted, so all references to such symbols need to be
23860 + passed through _bfd_merged_section_offset. (Later, in
23861 + relocate_section, all SEC_MERGE symbols *except* for
23862 + section symbols have been adjusted.)
23863 +
23864 + SEC_MERGE sections are not relaxed by us, as they
23865 + shouldn't contain any code. */
23866 +
23867 + BFD_ASSERT(!target_frag && !(r_data && r_data->add_frag));
23868 +
23869 + /* gas may reduce relocations against symbols in SEC_MERGE
23870 + sections to a relocation against the section symbol when
23871 + the original addend was zero. When the reloc is against
23872 + a section symbol we should include the addend in the
23873 + offset passed to _bfd_merged_section_offset, since the
23874 + location of interest is the original symbol. On the
23875 + other hand, an access to "sym+addend" where "sym" is not
23876 + a section symbol should not include the addend; Such an
23877 + access is presumed to be an offset from "sym"; The
23878 + location of interest is just "sym". */
23879 + RDBG("\n MERGE: %s: 0x%lx+0x%lx+0x%lx -> ",
23880 + (sym_type == STT_SECTION)?"section":"not section",
23881 + sym_sec->output_section->vma + sym_sec->output_offset,
23882 + symval, addend);
23883 +
23884 + if (sym_type == STT_SECTION)
23885 + symval += addend;
23886 +
23887 + symval = (_bfd_merged_section_offset
23888 + (abfd, &sym_sec,
23889 + elf_section_data(sym_sec)->sec_info, symval));
23890 +
23891 + if (sym_type != STT_SECTION)
23892 + symval += addend;
23893 + }
23894 + else
23895 + symval += addend;
23896 +
23897 + if (defined && !dynamic)
23898 + {
23899 + RDBG("0x%lx+0x%lx",
23900 + sym_sec->output_section->vma + sym_sec->output_offset,
23901 + symval);
23902 + symval += sym_sec->output_section->vma + sym_sec->output_offset;
23903 + }
23904 +
23905 + if (r_data && r_data->add_frag)
23906 + /* If the add_frag pointer is set, it means that this reloc
23907 + has an addend that may be affected by relaxation. */
23908 + target_frag = r_data->add_frag;
23909 +
23910 + if (target_frag)
23911 + {
23912 + symval += target_frag->offset_adjust;
23913 +
23914 + /* If target_frag comes after this frag in the same
23915 + section, we should assume that it will be moved by
23916 + the same amount we are. */
23917 + if ((target_frag - rd->frag) < (int)rd->frag_count
23918 + && target_frag > frag)
23919 + symval += delta;
23920 + }
23921 +
23922 + distance = symval - addr;
23923 +
23924 + /* First, try to make a direct reference. If the symbol is
23925 + dynamic or undefined, we must take care not to change its
23926 + reference type, that is, we can't make it direct.
23927 +
23928 + Also, it seems like some sections may actually be resized
23929 + after the relaxation code is done, so we can't really
23930 + trust that our "distance" is correct. There's really no
23931 + easy solution to this problem, so we'll just disallow
23932 + direct references to SEC_DATA sections.
23933 +
23934 + Oh, and .bss isn't actually SEC_DATA, so we disallow
23935 + !SEC_HAS_CONTENTS as well. */
23936 + if (!dynamic && defined
23937 +#ifndef DHRYSTONE_FIX
23938 + && !(sym_sec->flags & SEC_DATA)
23939 +#endif
23940 + && (sym_sec->flags & SEC_HAS_CONTENTS)
23941 + && next_state->direct)
23942 + {
23943 + next_state = &relax_state[next_state->direct];
23944 + RDBG(" D-> %s", next_state->name);
23945 + }
23946 +
23947 + /* Iterate backwards until we find a state that fits. */
23948 + while (next_state->prev
23949 + && !rs_is_good_enough(next_state, frag, symval, addr,
23950 + got, ind_data, delta))
23951 + {
23952 + next_state = &relax_state[next_state->prev];
23953 + RDBG(" P-> %s", next_state->name);
23954 + }
23955 +
23956 + /* Then try to find the best possible state. */
23957 + while (next_state->next)
23958 + {
23959 + const struct relax_state *candidate;
23960 +
23961 + candidate = &relax_state[next_state->next];
23962 + if (!rs_is_good_enough(candidate, frag, symval, addr, got,
23963 + ind_data, delta))
23964 + break;
23965 +
23966 + next_state = candidate;
23967 + RDBG(" N-> %s", next_state->name);
23968 + }
23969 +
23970 + RDBG(" [size %ld]\n", next_state->size);
23971 +
23972 + BFD_ASSERT(next_state->id);
23973 + BFD_ASSERT(!dynamic || next_state->reftype == REF_GOT);
23974 +
23975 + size_adjust = next_state->size - state->size;
23976 +
23977 + /* There's a theoretical possibility that shrinking one frag
23978 + may cause another to grow, which may cause the first one to
23979 + grow as well, and we're back where we started. Avoid this
23980 + scenario by disallowing a frag that has grown to ever
23981 + shrink again. */
23982 + if (state->reftype == REF_GOT && next_state->reftype != REF_GOT)
23983 + {
23984 + if (frag->has_grown)
23985 + next_state = state;
23986 + else
23987 + unref_got_entry(htab, got);
23988 + }
23989 + else if (state->reftype != REF_GOT && next_state->reftype == REF_GOT)
23990 + {
23991 + ref_got_entry(htab, got);
23992 + frag->has_grown = TRUE;
23993 + }
23994 + else if (state->reftype == REF_CPOOL
23995 + && next_state->reftype != REF_CPOOL)
23996 + {
23997 + if (frag->has_grown)
23998 + next_state = state;
23999 + else
24000 + ind_data->add_frag->refcount--;
24001 + }
24002 + else if (state->reftype != REF_CPOOL
24003 + && next_state->reftype == REF_CPOOL)
24004 + {
24005 + ind_data->add_frag->refcount++;
24006 + frag->has_grown = TRUE;
24007 + }
24008 + else
24009 + {
24010 + if (frag->has_grown && size_adjust < 0)
24011 + next_state = state;
24012 + else if (size_adjust > 0)
24013 + frag->has_grown = TRUE;
24014 + }
24015 +
24016 + size_adjust = next_state->size - state->size;
24017 + frag->state = next_state->id;
24018 +
24019 + break;
24020 + }
24021 +
24022 + if (size_adjust)
24023 + htab->repeat_pass = TRUE;
24024 +
24025 + frag->size_adjust += size_adjust;
24026 + sec->size += size_adjust;
24027 + delta += size_adjust;
24028 +
24029 + BFD_ASSERT((frag->offset + frag->offset_adjust
24030 + + frag->size + frag->size_adjust)
24031 + == (frag[1].offset + frag[1].offset_adjust + delta));
24032 + }
24033 +
24034 + ret = TRUE;
24035 +
24036 + out:
24037 + release_local_syms(abfd, isymbuf);
24038 + release_internal_relocs(sec, relocs);
24039 + return ret;
24040 +}
24041 +
24042 +static bfd_boolean
24043 +adjust_global_symbol(struct elf_avr32_link_hash_entry *havr,
24044 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
24045 +{
24046 + struct elf_link_hash_entry *h = &havr->root;
24047 +
24048 + if (havr->sym_frag && (h->root.type == bfd_link_hash_defined
24049 + || h->root.type == bfd_link_hash_defweak))
24050 + {
24051 + RDBG("adjust_global_symbol: %s 0x%08lx -> 0x%08lx\n",
24052 + h->root.root.string, h->root.u.def.value,
24053 + h->root.u.def.value + havr->sym_frag->offset_adjust);
24054 + h->root.u.def.value += havr->sym_frag->offset_adjust;
24055 + }
24056 + return TRUE;
24057 +}
24058 +
24059 +static bfd_boolean
24060 +adjust_syms(struct bfd_link_info *info)
24061 +{
24062 + struct elf_avr32_link_hash_table *htab;
24063 + bfd *abfd;
24064 +
24065 + htab = avr32_elf_hash_table(info);
24066 + elf_link_hash_traverse(&htab->root, adjust_global_symbol, info);
24067 +
24068 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
24069 + {
24070 + Elf_Internal_Sym *isymbuf;
24071 + struct fragment **local_sym_frag, *frag;
24072 + unsigned int i, sym_count;
24073 +
24074 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
24075 + if (sym_count == 0)
24076 + continue;
24077 +
24078 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
24079 + if (!isymbuf)
24080 + return FALSE;
24081 +
24082 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
24083 +
24084 + for (i = 0; i < sym_count; i++)
24085 + {
24086 + frag = local_sym_frag[i];
24087 + if (frag)
24088 + {
24089 + RDBG("adjust_local_symbol: %s[%u] 0x%08lx -> 0x%08lx\n",
24090 + abfd->filename, i, isymbuf[i].st_value,
24091 + isymbuf[i].st_value + frag->offset_adjust);
24092 + isymbuf[i].st_value += frag->offset_adjust;
24093 + }
24094 + }
24095 +
24096 + release_local_syms(abfd, isymbuf);
24097 + }
24098 +
24099 + htab->symbols_adjusted = TRUE;
24100 + return TRUE;
24101 +}
24102 +
24103 +static bfd_boolean
24104 +adjust_relocs(bfd *abfd, asection *sec, struct bfd_link_info *info)
24105 +{
24106 + struct avr32_relax_data *rd;
24107 + Elf_Internal_Rela *relocs;
24108 + Elf_Internal_Shdr *symtab_hdr;
24109 + unsigned int i;
24110 + bfd_boolean ret = FALSE;
24111 +
24112 + rd = avr32_relax_data(sec);
24113 + if (!rd->reloc_data)
24114 + return TRUE;
24115 +
24116 + RDBG("adjust_relocs: %s<%s> (count: %u)\n", abfd->filename, sec->name,
24117 + sec->reloc_count);
24118 +
24119 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
24120 + if (!relocs)
24121 + return FALSE;
24122 +
24123 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
24124 +
24125 + for (i = 0; i < sec->reloc_count; i++)
24126 + {
24127 + Elf_Internal_Rela *rela = &relocs[i];
24128 + struct avr32_reloc_data *r_data = &rd->reloc_data[i];
24129 + struct fragment *sym_frag;
24130 + unsigned long r_symndx;
24131 +
24132 + if (r_data->add_frag)
24133 + {
24134 + r_symndx = ELF_R_SYM(rela->r_info);
24135 +
24136 + if (r_symndx < symtab_hdr->sh_info)
24137 + sym_frag = elf_tdata(abfd)->local_sym_frag[r_symndx];
24138 + else
24139 + {
24140 + struct elf_link_hash_entry *h;
24141 +
24142 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
24143 +
24144 + while (h->root.type == bfd_link_hash_indirect
24145 + || h->root.type == bfd_link_hash_warning)
24146 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
24147 +
24148 + BFD_ASSERT(h->root.type == bfd_link_hash_defined
24149 + || h->root.type == bfd_link_hash_defweak);
24150 +
24151 + sym_frag = ((struct elf_avr32_link_hash_entry *)h)->sym_frag;
24152 + }
24153 +
24154 + RDBG(" addend: 0x%08lx -> 0x%08lx\n",
24155 + rela->r_addend,
24156 + rela->r_addend + r_data->add_frag->offset_adjust
24157 + - (sym_frag ? sym_frag->offset_adjust : 0));
24158 +
24159 + /* If this is against a section symbol, we won't find any
24160 + sym_frag, so we'll just adjust the addend. */
24161 + rela->r_addend += r_data->add_frag->offset_adjust;
24162 + if (sym_frag)
24163 + rela->r_addend -= sym_frag->offset_adjust;
24164 +
24165 + if (r_data->sub_frag)
24166 + {
24167 + bfd_byte *contents;
24168 + bfd_signed_vma diff;
24169 +
24170 + contents = retrieve_contents(abfd, sec, info->keep_memory);
24171 + if (!contents)
24172 + goto out;
24173 +
24174 + /* I realize now that sub_frag is misnamed. It's
24175 + actually add_frag which is subtracted in this
24176 + case... */
24177 + diff = bfd_get_signed_32(abfd, contents + rela->r_offset);
24178 + diff += (r_data->sub_frag->offset_adjust
24179 + - r_data->add_frag->offset_adjust);
24180 + bfd_put_32(abfd, diff, contents + rela->r_offset);
24181 +
24182 + RDBG(" 0x%lx: DIFF32 updated: 0x%lx\n", rela->r_offset, diff);
24183 +
24184 + release_contents(sec, contents);
24185 + }
24186 + }
24187 + else
24188 + BFD_ASSERT(!r_data->sub_frag);
24189 + }
24190 +
24191 + ret = TRUE;
24192 +
24193 + out:
24194 + release_internal_relocs(sec, relocs);
24195 + return ret;
24196 +}
24197 +
24198 +static bfd_boolean
24199 +avr32_move_data(bfd *abfd, asection *sec, struct bfd_link_info *info)
24200 +{
24201 + struct elf_avr32_link_hash_table *htab;
24202 + struct avr32_relax_data *rd;
24203 + struct fragment *frag, *fragend;
24204 + Elf_Internal_Rela *relocs = NULL;
24205 + bfd_byte *contents = NULL;
24206 + unsigned int i;
24207 + bfd_boolean ret = FALSE;
24208 +
24209 + htab = avr32_elf_hash_table(info);
24210 + rd = avr32_relax_data(sec);
24211 +
24212 + if (!htab->symbols_adjusted)
24213 + if (!adjust_syms(info))
24214 + return FALSE;
24215 +
24216 + if (rd->is_relaxable)
24217 + {
24218 + /* Resize the section first, so that we can be sure that enough
24219 + memory is allocated in case the section has grown. */
24220 + if (sec->size > sec->rawsize
24221 + && elf_section_data(sec)->this_hdr.contents)
24222 + {
24223 + /* We must not use cached data if the section has grown. */
24224 + free(elf_section_data(sec)->this_hdr.contents);
24225 + elf_section_data(sec)->this_hdr.contents = NULL;
24226 + }
24227 +
24228 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
24229 + if (!relocs)
24230 + goto out;
24231 + contents = retrieve_contents(abfd, sec, info->keep_memory);
24232 + if (!contents)
24233 + goto out;
24234 +
24235 + fragend = rd->frag + rd->frag_count;
24236 +
24237 + RDBG("move_data: %s<%s>: relocs=%p, contents=%p\n",
24238 + abfd->filename, sec->name, relocs, contents);
24239 +
24240 + /* First, move the data into place. We must take care to move
24241 + frags in the right order so that we don't accidentally
24242 + overwrite parts of the next frag. */
24243 + for (frag = rd->frag; frag < fragend; frag++)
24244 + {
24245 + RDBG(" 0x%08lx%c0x%x: size 0x%lx%c0x%x\n",
24246 + frag->offset, frag->offset_adjust >= 0 ? '+' : '-',
24247 + abs(frag->offset_adjust),
24248 + frag->size, frag->size_adjust >= 0 ? '+' : '-',
24249 + abs(frag->size_adjust));
24250 + if (frag->offset_adjust > 0)
24251 + {
24252 + struct fragment *prev = frag - 1;
24253 + struct fragment *last;
24254 +
24255 + for (last = frag; last < fragend && last->offset_adjust > 0;
24256 + last++) ;
24257 +
24258 + if (last == fragend)
24259 + last--;
24260 +
24261 + for (frag = last; frag != prev; frag--)
24262 + {
24263 + if (frag->offset_adjust
24264 + && frag->size + frag->size_adjust > 0)
24265 + {
24266 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
24267 + frag->offset, frag->offset + frag->offset_adjust,
24268 + frag->size + frag->size_adjust);
24269 + memmove(contents + frag->offset + frag->offset_adjust,
24270 + contents + frag->offset,
24271 + frag->size + frag->size_adjust);
24272 + }
24273 + }
24274 + frag = last;
24275 + }
24276 + else if (frag->offset_adjust && frag->size + frag->size_adjust > 0)
24277 + {
24278 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
24279 + frag->offset, frag->offset + frag->offset_adjust,
24280 + frag->size + frag->size_adjust);
24281 + memmove(contents + frag->offset + frag->offset_adjust,
24282 + contents + frag->offset,
24283 + frag->size + frag->size_adjust);
24284 + }
24285 + }
24286 +
24287 + i = 0;
24288 +
24289 + for (frag = rd->frag; frag < fragend; frag++)
24290 + {
24291 + const struct relax_state *state, *istate;
24292 + struct avr32_reloc_data *r_data = NULL;
24293 +
24294 + istate = &relax_state[frag->initial_state];
24295 + state = &relax_state[frag->state];
24296 +
24297 + if (rd->reloc_data)
24298 + r_data = &rd->reloc_data[frag->rela - relocs];
24299 +
24300 + BFD_ASSERT((long)(frag->size + frag->size_adjust) >= 0);
24301 + BFD_ASSERT(state->reftype != REF_CPOOL
24302 + || r_data->add_frag->refcount > 0);
24303 +
24304 + if (istate->reftype == REF_CPOOL && state->reftype != REF_CPOOL)
24305 + {
24306 + struct fragment *ifrag;
24307 +
24308 + /* An indirect reference through the cpool has been
24309 + converted to a direct reference. We must update the
24310 + reloc to point to the symbol itself instead of the
24311 + constant pool entry. The reloc type will be updated
24312 + later. */
24313 + ifrag = r_data->add_frag;
24314 + frag->rela->r_info = ifrag->rela->r_info;
24315 + frag->rela->r_addend = ifrag->rela->r_addend;
24316 +
24317 + /* Copy the reloc data so the addend will be adjusted
24318 + correctly later. */
24319 + *r_data = rd->reloc_data[ifrag->rela - relocs];
24320 + }
24321 +
24322 + /* Move all relocs covered by this frag. */
24323 + if (frag->rela)
24324 + BFD_ASSERT(&relocs[i] <= frag->rela);
24325 + else
24326 + BFD_ASSERT((frag + 1) == fragend && frag->state == RS_NONE);
24327 +
24328 + if (frag == rd->frag)
24329 + BFD_ASSERT(i == 0);
24330 + else
24331 + BFD_ASSERT(&relocs[i] > frag[-1].rela);
24332 +
24333 + /* If non-null, frag->rela is the last relocation in the
24334 + fragment. frag->rela can only be null in the last
24335 + fragment, so in that case, we'll just do the rest. */
24336 + for (; (i < sec->reloc_count
24337 + && (!frag->rela || &relocs[i] <= frag->rela)); i++)
24338 + {
24339 + RDBG("[%4u] r_offset 0x%08lx -> 0x%08lx\n", i, relocs[i].r_offset,
24340 + relocs[i].r_offset + frag->offset_adjust);
24341 + relocs[i].r_offset += frag->offset_adjust;
24342 + }
24343 +
24344 + if (frag->refcount == 0)
24345 + {
24346 + /* If this frag is to be discarded, make sure we won't
24347 + relocate it later on. */
24348 + BFD_ASSERT(frag->state == RS_CPENT);
24349 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
24350 + R_AVR32_NONE);
24351 + }
24352 + else if (frag->state == RS_ALIGN)
24353 + {
24354 + bfd_vma addr, addr_end;
24355 +
24356 + addr = frag->rela->r_offset;
24357 + addr_end = (frag->offset + frag->offset_adjust
24358 + + frag->size + frag->size_adjust);
24359 +
24360 + /* If the section is executable, insert NOPs.
24361 + Otherwise, insert zeroes. */
24362 + if (sec->flags & SEC_CODE)
24363 + {
24364 + if (addr & 1)
24365 + {
24366 + bfd_put_8(abfd, 0, contents + addr);
24367 + addr++;
24368 + }
24369 +
24370 + BFD_ASSERT(!((addr_end - addr) & 1));
24371 +
24372 + while (addr < addr_end)
24373 + {
24374 + bfd_put_16(abfd, NOP_OPCODE, contents + addr);
24375 + addr += 2;
24376 + }
24377 + }
24378 + else
24379 + memset(contents + addr, 0, addr_end - addr);
24380 + }
24381 + else if (state->opcode_mask)
24382 + {
24383 + bfd_vma insn;
24384 +
24385 + /* Update the opcode and the relocation type unless it's a
24386 + "special" relax state (i.e. RS_NONE, RS_ALIGN or
24387 + RS_CPENT.), in which case the opcode mask is zero. */
24388 + insn = bfd_get_32(abfd, contents + frag->rela->r_offset);
24389 + insn &= ~state->opcode_mask;
24390 + insn |= state->opcode;
24391 + RDBG(" 0x%lx: inserting insn %08lx\n",
24392 + frag->rela->r_offset, insn);
24393 + bfd_put_32(abfd, insn, contents + frag->rela->r_offset);
24394 +
24395 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
24396 + state->r_type);
24397 + }
24398 +
24399 + if ((frag + 1) == fragend)
24400 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
24401 + + frag->size_adjust) == sec->size);
24402 + else
24403 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
24404 + + frag->size_adjust)
24405 + == (frag[1].offset + frag[1].offset_adjust));
24406 + }
24407 + }
24408 +
24409 + /* Adjust reloc addends and DIFF32 differences */
24410 + if (!adjust_relocs(abfd, sec, info))
24411 + return FALSE;
24412 +
24413 + ret = TRUE;
24414 +
24415 + out:
24416 + release_contents(sec, contents);
24417 + release_internal_relocs(sec, relocs);
24418 + return ret;
24419 +}
24420 +
24421 +static bfd_boolean
24422 +avr32_elf_relax_section(bfd *abfd, asection *sec,
24423 + struct bfd_link_info *info, bfd_boolean *again)
24424 +{
24425 + struct elf_avr32_link_hash_table *htab;
24426 + struct avr32_relax_data *rd;
24427 +
24428 + *again = FALSE;
24429 + if (info->relocatable)
24430 + return TRUE;
24431 +
24432 + htab = avr32_elf_hash_table(info);
24433 + if ((!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
24434 + && sec != htab->sgot)
24435 + return TRUE;
24436 +
24437 + if (!htab->relocations_analyzed)
24438 + {
24439 + if (!analyze_relocations(info))
24440 + return FALSE;
24441 + htab->relocations_analyzed = TRUE;
24442 + }
24443 +
24444 + rd = avr32_relax_data(sec);
24445 +
24446 + if (rd->iteration != htab->relax_iteration)
24447 + {
24448 + if (!htab->repeat_pass)
24449 + htab->relax_pass++;
24450 + htab->relax_iteration++;
24451 + htab->repeat_pass = FALSE;
24452 + }
24453 +
24454 + rd->iteration++;
24455 +
24456 + switch (htab->relax_pass)
24457 + {
24458 + case RELAX_PASS_SIZE_FRAGS:
24459 + if (!avr32_size_frags(abfd, sec, info))
24460 + return FALSE;
24461 + *again = TRUE;
24462 + break;
24463 + case RELAX_PASS_MOVE_DATA:
24464 + if (!avr32_move_data(abfd, sec, info))
24465 + return FALSE;
24466 + break;
24467 + }
24468 +
24469 + return TRUE;
24470 +}
24471 +
24472 +\f
24473 +/* Relocation */
24474 +
24475 +static bfd_reloc_status_type
24476 +avr32_check_reloc_value(asection *sec, Elf_Internal_Rela *rela,
24477 + bfd_signed_vma relocation, reloc_howto_type *howto);
24478 +static bfd_reloc_status_type
24479 +avr32_final_link_relocate(reloc_howto_type *howto, bfd *input_bfd,
24480 + asection *input_section, bfd_byte *contents,
24481 + Elf_Internal_Rela *rel, bfd_vma value);
24482 +static bfd_boolean
24483 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
24484 + bfd *input_bfd, asection *input_section,
24485 + bfd_byte *contents, Elf_Internal_Rela *relocs,
24486 + Elf_Internal_Sym *local_syms,
24487 + asection **local_sections);
24488 +
24489 +
24490 +#define symbol_address(symbol) \
24491 + symbol->value + symbol->section->output_section->vma \
24492 + + symbol->section->output_offset
24493 +
24494 +#define avr32_elf_insert_field(size, field, abfd, reloc_entry, data) \
24495 + do \
24496 + { \
24497 + unsigned long x; \
24498 + x = bfd_get_##size (abfd, data + reloc_entry->address); \
24499 + x &= ~reloc_entry->howto->dst_mask; \
24500 + x |= field & reloc_entry->howto->dst_mask; \
24501 + bfd_put_##size (abfd, (bfd_vma) x, data + reloc_entry->address); \
24502 + } \
24503 + while(0)
24504 +
24505 +static bfd_reloc_status_type
24506 +avr32_check_reloc_value(asection *sec ATTRIBUTE_UNUSED,
24507 + Elf_Internal_Rela *rela ATTRIBUTE_UNUSED,
24508 + bfd_signed_vma relocation,
24509 + reloc_howto_type *howto)
24510 +{
24511 + bfd_vma reloc_u;
24512 +
24513 + /* We take "complain_overflow_dont" to mean "don't complain on
24514 + alignment either". This way, we don't have to special-case
24515 + R_AVR32_HI16 */
24516 + if (howto->complain_on_overflow == complain_overflow_dont)
24517 + return bfd_reloc_ok;
24518 +
24519 + /* Check if the value is correctly aligned */
24520 + if (relocation & ((1 << howto->rightshift) - 1))
24521 + {
24522 + RDBG("misaligned: %s<%s+%lx>: %s: 0x%lx (align %u)\n",
24523 + sec->owner->filename, sec->name, rela->r_offset,
24524 + howto->name, relocation, howto->rightshift);
24525 + return bfd_reloc_overflow;
24526 + }
24527 +
24528 + /* Now, get rid of the unnecessary bits */
24529 + relocation >>= howto->rightshift;
24530 + reloc_u = (bfd_vma)relocation;
24531 +
24532 + switch (howto->complain_on_overflow)
24533 + {
24534 + case complain_overflow_unsigned:
24535 + case complain_overflow_bitfield:
24536 + if (reloc_u > (unsigned long)((1 << howto->bitsize) - 1))
24537 + {
24538 + RDBG("unsigned overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
24539 + sec->owner->filename, sec->name, rela->r_offset,
24540 + howto->name, reloc_u, howto->bitsize);
24541 + RDBG("reloc vma: 0x%lx\n",
24542 + sec->output_section->vma + sec->output_offset + rela->r_offset);
24543 +
24544 + return bfd_reloc_overflow;
24545 + }
24546 + break;
24547 + case complain_overflow_signed:
24548 + if (relocation > (1 << (howto->bitsize - 1)) - 1)
24549 + {
24550 + RDBG("signed overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
24551 + sec->owner->filename, sec->name, rela->r_offset,
24552 + howto->name, reloc_u, howto->bitsize);
24553 + RDBG("reloc vma: 0x%lx\n",
24554 + sec->output_section->vma + sec->output_offset + rela->r_offset);
24555 +
24556 + return bfd_reloc_overflow;
24557 + }
24558 + if (relocation < -(1 << (howto->bitsize - 1)))
24559 + {
24560 + RDBG("signed overflow: %s<%s+%lx>: %s: -0x%lx (size %u)\n",
24561 + sec->owner->filename, sec->name, rela->r_offset,
24562 + howto->name, -relocation, howto->bitsize);
24563 + RDBG("reloc vma: 0x%lx\n",
24564 + sec->output_section->vma + sec->output_offset + rela->r_offset);
24565 +
24566 + return bfd_reloc_overflow;
24567 + }
24568 + break;
24569 + default:
24570 + abort();
24571 + }
24572 +
24573 + return bfd_reloc_ok;
24574 +}
24575 +
24576 +
24577 +static bfd_reloc_status_type
24578 +avr32_final_link_relocate(reloc_howto_type *howto,
24579 + bfd *input_bfd,
24580 + asection *input_section,
24581 + bfd_byte *contents,
24582 + Elf_Internal_Rela *rel,
24583 + bfd_vma value)
24584 +{
24585 + bfd_vma field;
24586 + bfd_vma relocation;
24587 + bfd_reloc_status_type status;
24588 + bfd_byte *p = contents + rel->r_offset;
24589 + unsigned long x;
24590 +
24591 + pr_debug(" (6b) final link relocate\n");
24592 +
24593 + /* Sanity check the address */
24594 + if (rel->r_offset > input_section->size)
24595 + {
24596 + (*_bfd_error_handler)
24597 + ("%B: %A+0x%lx: offset out of range (section size: 0x%lx)",
24598 + input_bfd, input_section, rel->r_offset, input_section->size);
24599 + return bfd_reloc_outofrange;
24600 + }
24601 +
24602 + relocation = value + rel->r_addend;
24603 +
24604 + if (howto->pc_relative)
24605 + {
24606 + bfd_vma addr;
24607 +
24608 + addr = input_section->output_section->vma
24609 + + input_section->output_offset + rel->r_offset;
24610 + addr &= ~0UL << howto->rightshift;
24611 + relocation -= addr;
24612 + }
24613 +
24614 + switch (ELF32_R_TYPE(rel->r_info))
24615 + {
24616 + case R_AVR32_16N_PCREL:
24617 + /* sub reg, pc, . - (sym + addend) */
24618 + relocation = -relocation;
24619 + break;
24620 + }
24621 +
24622 + status = avr32_check_reloc_value(input_section, rel, relocation, howto);
24623 +
24624 + relocation >>= howto->rightshift;
24625 + if (howto->bitsize == 21)
24626 + field = (relocation & 0xffff)
24627 + | ((relocation & 0x10000) << 4)
24628 + | ((relocation & 0x1e0000) << 8);
24629 + else if (howto->bitsize == 12)
24630 + field = (relocation & 0xff) | ((relocation & 0xf00) << 4);
24631 + else if (howto->bitsize == 10)
24632 + field = ((relocation & 0xff) << 4)
24633 + | ((relocation & 0x300) >> 8);
24634 + else
24635 + field = relocation << howto->bitpos;
24636 +
24637 + switch (howto->size)
24638 + {
24639 + case 0:
24640 + x = bfd_get_8 (input_bfd, p);
24641 + x &= ~howto->dst_mask;
24642 + x |= field & howto->dst_mask;
24643 + bfd_put_8 (input_bfd, (bfd_vma) x, p);
24644 + break;
24645 + case 1:
24646 + x = bfd_get_16 (input_bfd, p);
24647 + x &= ~howto->dst_mask;
24648 + x |= field & howto->dst_mask;
24649 + bfd_put_16 (input_bfd, (bfd_vma) x, p);
24650 + break;
24651 + case 2:
24652 + x = bfd_get_32 (input_bfd, p);
24653 + x &= ~howto->dst_mask;
24654 + x |= field & howto->dst_mask;
24655 + bfd_put_32 (input_bfd, (bfd_vma) x, p);
24656 + break;
24657 + default:
24658 + abort();
24659 + }
24660 +
24661 + return status;
24662 +}
24663 +
24664 +/* (6) Apply relocations to the normal (non-dynamic) sections */
24665 +
24666 +static bfd_boolean
24667 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
24668 + bfd *input_bfd, asection *input_section,
24669 + bfd_byte *contents, Elf_Internal_Rela *relocs,
24670 + Elf_Internal_Sym *local_syms,
24671 + asection **local_sections)
24672 +{
24673 + struct elf_avr32_link_hash_table *htab;
24674 + Elf_Internal_Shdr *symtab_hdr;
24675 + Elf_Internal_Rela *rel, *relend;
24676 + struct elf_link_hash_entry **sym_hashes;
24677 + struct got_entry **local_got_ents;
24678 + asection *sgot;
24679 + asection *srelgot;
24680 +
24681 + pr_debug("(6) relocate section %s:<%s> (size 0x%lx)\n",
24682 + input_bfd->filename, input_section->name, input_section->size);
24683 +
24684 + /* If we're doing a partial link, we don't have to do anything since
24685 + we're using RELA relocations */
24686 + if (info->relocatable)
24687 + return TRUE;
24688 +
24689 + htab = avr32_elf_hash_table(info);
24690 + symtab_hdr = &elf_tdata(input_bfd)->symtab_hdr;
24691 + sym_hashes = elf_sym_hashes(input_bfd);
24692 + local_got_ents = elf_local_got_ents(input_bfd);
24693 + sgot = htab->sgot;
24694 + srelgot = htab->srelgot;
24695 +
24696 + relend = relocs + input_section->reloc_count;
24697 + for (rel = relocs; rel < relend; rel++)
24698 + {
24699 + unsigned long r_type, r_symndx;
24700 + reloc_howto_type *howto;
24701 + Elf_Internal_Sym *sym = NULL;
24702 + struct elf_link_hash_entry *h = NULL;
24703 + asection *sec = NULL;
24704 + bfd_vma value;
24705 + bfd_vma offset;
24706 + bfd_reloc_status_type status;
24707 +
24708 + r_type = ELF32_R_TYPE(rel->r_info);
24709 + r_symndx = ELF32_R_SYM(rel->r_info);
24710 +
24711 + if (r_type == R_AVR32_NONE
24712 + || r_type == R_AVR32_ALIGN
24713 + || r_type == R_AVR32_DIFF32
24714 + || r_type == R_AVR32_DIFF16
24715 + || r_type == R_AVR32_DIFF8)
24716 + continue;
24717 +
24718 + /* Sanity check */
24719 + if (r_type > R_AVR32_max)
24720 + {
24721 + bfd_set_error(bfd_error_bad_value);
24722 + return FALSE;
24723 + }
24724 +
24725 + howto = &elf_avr32_howto_table[r_type];
24726 +
24727 + if (r_symndx < symtab_hdr->sh_info)
24728 + {
24729 + sym = local_syms + r_symndx;
24730 + sec = local_sections[r_symndx];
24731 +
24732 + pr_debug(" (6a) processing %s against local symbol %lu\n",
24733 + howto->name, r_symndx);
24734 +
24735 + /* The following function changes rel->r_addend behind our back. */
24736 + value = _bfd_elf_rela_local_sym(output_bfd, sym, &sec, rel);
24737 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
24738 + }
24739 + else
24740 + {
24741 + if (sym_hashes == NULL)
24742 + return FALSE;
24743 +
24744 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
24745 + while (h->root.type == bfd_link_hash_indirect
24746 + || h->root.type == bfd_link_hash_warning)
24747 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
24748 +
24749 + pr_debug(" (6a) processing %s against symbol %s\n",
24750 + howto->name, h->root.root.string);
24751 +
24752 + if (h->root.type == bfd_link_hash_defined
24753 + || h->root.type == bfd_link_hash_defweak)
24754 + {
24755 + bfd_boolean dyn;
24756 +
24757 + dyn = htab->root.dynamic_sections_created;
24758 + sec = h->root.u.def.section;
24759 +
24760 + if (sec->output_section)
24761 + value = (h->root.u.def.value
24762 + + sec->output_section->vma
24763 + + sec->output_offset);
24764 + else
24765 + value = h->root.u.def.value;
24766 + }
24767 + else if (h->root.type == bfd_link_hash_undefweak)
24768 + value = 0;
24769 + else if (info->unresolved_syms_in_objects == RM_IGNORE
24770 + && ELF_ST_VISIBILITY(h->other) == STV_DEFAULT)
24771 + value = 0;
24772 + else
24773 + {
24774 + bfd_boolean err;
24775 + err = (info->unresolved_syms_in_objects == RM_GENERATE_ERROR
24776 + || ELF_ST_VISIBILITY(h->other) != STV_DEFAULT);
24777 + if (!info->callbacks->undefined_symbol
24778 + (info, h->root.root.string, input_bfd,
24779 + input_section, rel->r_offset, err))
24780 + return FALSE;
24781 + value = 0;
24782 + }
24783 +
24784 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
24785 + }
24786 +
24787 + switch (r_type)
24788 + {
24789 + case R_AVR32_GOT32:
24790 + case R_AVR32_GOT16:
24791 + case R_AVR32_GOT8:
24792 + case R_AVR32_GOT21S:
24793 + case R_AVR32_GOT18SW:
24794 + case R_AVR32_GOT16S:
24795 + case R_AVR32_GOT7UW:
24796 + case R_AVR32_LDA_GOT:
24797 + case R_AVR32_GOTCALL:
24798 + BFD_ASSERT(sgot != NULL);
24799 +
24800 + if (h != NULL)
24801 + {
24802 + BFD_ASSERT(h->got.glist->refcount > 0);
24803 + offset = h->got.glist->offset;
24804 +
24805 + BFD_ASSERT(offset < sgot->size);
24806 + if (!elf_hash_table(info)->dynamic_sections_created
24807 + || (h->def_regular
24808 + && (!info->shared
24809 + || info->symbolic
24810 + || h->dynindx == -1)))
24811 + {
24812 + /* This is actually a static link, or it is a
24813 + -Bsymbolic link and the symbol is defined
24814 + locally, or the symbol was forced to be local. */
24815 + bfd_put_32(output_bfd, value, sgot->contents + offset);
24816 + }
24817 + }
24818 + else
24819 + {
24820 + BFD_ASSERT(local_got_ents &&
24821 + local_got_ents[r_symndx]->refcount > 0);
24822 + offset = local_got_ents[r_symndx]->offset;
24823 +
24824 + /* Local GOT entries don't have relocs. If this is a
24825 + shared library, the dynamic linker will add the load
24826 + address to the initial value at startup. */
24827 + BFD_ASSERT(offset < sgot->size);
24828 + pr_debug("Initializing GOT entry at offset %lu: 0x%lx\n",
24829 + offset, value);
24830 + bfd_put_32 (output_bfd, value, sgot->contents + offset);
24831 + }
24832 +
24833 + value = sgot->output_offset + offset;
24834 + pr_debug("GOT reference: New value %lx\n", value);
24835 + break;
24836 +
24837 + case R_AVR32_GOTPC:
24838 + /* This relocation type is for constant pool entries used in
24839 + the calculation "Rd = PC - (PC - GOT)", where the
24840 + constant pool supplies the constant (PC - GOT)
24841 + offset. The symbol value + addend indicates where the
24842 + value of PC is taken. */
24843 + value -= sgot->output_section->vma;
24844 + break;
24845 +
24846 + case R_AVR32_32_PCREL:
24847 + /* We must adjust r_offset to account for discarded data in
24848 + the .eh_frame section. This is probably not the right
24849 + way to do this, since AFAICS all other architectures do
24850 + it some other way. I just can't figure out how... */
24851 + {
24852 + bfd_vma r_offset;
24853 +
24854 + r_offset = _bfd_elf_section_offset(output_bfd, info,
24855 + input_section,
24856 + rel->r_offset);
24857 + if (r_offset == (bfd_vma)-1
24858 + || r_offset == (bfd_vma)-2)
24859 + continue;
24860 + rel->r_offset = r_offset;
24861 + }
24862 + break;
24863 +
24864 + case R_AVR32_32:
24865 + /* We need to emit a run-time relocation in the following cases:
24866 + - we're creating a shared library
24867 + - the symbol is not defined in any regular objects
24868 +
24869 + Of course, sections that aren't going to be part of the
24870 + run-time image will not get any relocs, and undefined
24871 + symbols won't have any either (only weak undefined
24872 + symbols should get this far). */
24873 + if ((info->shared
24874 + || (elf_hash_table(info)->dynamic_sections_created
24875 + && h != NULL
24876 + && h->def_dynamic
24877 + && !h->def_regular))
24878 + && r_symndx != 0
24879 + && (input_section->flags & SEC_ALLOC))
24880 + {
24881 + Elf_Internal_Rela outrel;
24882 + bfd_byte *loc;
24883 + bfd_boolean skip, relocate;
24884 + struct elf_avr32_link_hash_entry *avrh;
24885 +
24886 + pr_debug("Going to generate dynamic reloc...\n");
24887 +
24888 + skip = FALSE;
24889 + relocate = FALSE;
24890 +
24891 + outrel.r_offset = _bfd_elf_section_offset(output_bfd, info,
24892 + input_section,
24893 + rel->r_offset);
24894 + if (outrel.r_offset == (bfd_vma)-1)
24895 + skip = TRUE;
24896 + else if (outrel.r_offset == (bfd_vma)-2)
24897 + skip = TRUE, relocate = TRUE;
24898 +
24899 + outrel.r_offset += (input_section->output_section->vma
24900 + + input_section->output_offset);
24901 +
24902 + pr_debug(" ... offset %lx, dynindx %ld\n",
24903 + outrel.r_offset, h ? h->dynindx : -1);
24904 +
24905 + if (skip)
24906 + memset(&outrel, 0, sizeof(outrel));
24907 + else
24908 + {
24909 + avrh = (struct elf_avr32_link_hash_entry *)h;
24910 + /* h->dynindx may be -1 if this symbol was marked to
24911 + become local. */
24912 + if (h == NULL
24913 + || ((info->symbolic || h->dynindx == -1)
24914 + && h->def_regular))
24915 + {
24916 + relocate = TRUE;
24917 + outrel.r_info = ELF32_R_INFO(0, R_AVR32_RELATIVE);
24918 + outrel.r_addend = value + rel->r_addend;
24919 + pr_debug(" ... R_AVR32_RELATIVE\n");
24920 + }
24921 + else
24922 + {
24923 + BFD_ASSERT(h->dynindx != -1);
24924 + relocate = TRUE;
24925 + outrel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
24926 + outrel.r_addend = rel->r_addend;
24927 + pr_debug(" ... R_AVR32_GLOB_DAT\n");
24928 + }
24929 + }
24930 +
24931 + pr_debug("srelgot reloc_count: %d, size %lu\n",
24932 + srelgot->reloc_count, srelgot->size);
24933 +
24934 + loc = srelgot->contents;
24935 + loc += srelgot->reloc_count++ * sizeof(Elf32_External_Rela);
24936 + bfd_elf32_swap_reloca_out(output_bfd, &outrel, loc);
24937 +
24938 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
24939 + <= srelgot->size);
24940 +
24941 + if (!relocate)
24942 + continue;
24943 + }
24944 + break;
24945 + }
24946 +
24947 + status = avr32_final_link_relocate(howto, input_bfd, input_section,
24948 + contents, rel, value);
24949 +
24950 + switch (status)
24951 + {
24952 + case bfd_reloc_ok:
24953 + break;
24954 +
24955 + case bfd_reloc_overflow:
24956 + {
24957 + const char *name;
24958 +
24959 + if (h != NULL)
24960 + name = h->root.root.string;
24961 + else
24962 + {
24963 + name = bfd_elf_string_from_elf_section(input_bfd,
24964 + symtab_hdr->sh_link,
24965 + sym->st_name);
24966 + if (name == NULL)
24967 + return FALSE;
24968 + if (*name == '\0')
24969 + name = bfd_section_name(input_bfd, sec);
24970 + }
24971 + if (!((*info->callbacks->reloc_overflow)
24972 + (info, (h ? &h->root : NULL), name, howto->name,
24973 + rel->r_addend, input_bfd, input_section, rel->r_offset)))
24974 + return FALSE;
24975 + }
24976 + break;
24977 +
24978 + case bfd_reloc_outofrange:
24979 + default:
24980 + abort();
24981 + }
24982 + }
24983 +
24984 + return TRUE;
24985 +}
24986 +
24987 +\f
24988 +/* Additional processing of dynamic sections after relocation */
24989 +
24990 +static bfd_boolean
24991 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
24992 + struct elf_link_hash_entry *h,
24993 + Elf_Internal_Sym *sym);
24994 +static bfd_boolean
24995 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info);
24996 +
24997 +
24998 +/* (7) Initialize the contents of a dynamic symbol and/or emit
24999 + relocations for it */
25000 +
25001 +static bfd_boolean
25002 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
25003 + struct elf_link_hash_entry *h,
25004 + Elf_Internal_Sym *sym)
25005 +{
25006 + struct elf_avr32_link_hash_table *htab;
25007 + struct got_entry *got;
25008 +
25009 + pr_debug("(7) finish dynamic symbol: %s\n", h->root.root.string);
25010 +
25011 + htab = avr32_elf_hash_table(info);
25012 + got = h->got.glist;
25013 +
25014 + if (got && got->refcount > 0)
25015 + {
25016 + asection *sgot;
25017 + asection *srelgot;
25018 + Elf_Internal_Rela rel;
25019 + bfd_byte *loc;
25020 +
25021 + /* This symbol has an entry in the GOT. Set it up. */
25022 + sgot = htab->sgot;
25023 + srelgot = htab->srelgot;
25024 + BFD_ASSERT(sgot && srelgot);
25025 +
25026 + rel.r_offset = (sgot->output_section->vma
25027 + + sgot->output_offset
25028 + + got->offset);
25029 +
25030 + /* If this is a static link, or it is a -Bsymbolic link and the
25031 + symbol is defined locally or was forced to be local because
25032 + of a version file, we just want to emit a RELATIVE reloc. The
25033 + entry in the global offset table will already have been
25034 + initialized in the relocate_section function. */
25035 + if ((info->shared
25036 + && !info->symbolic
25037 + && h->dynindx != -1)
25038 + || (htab->root.dynamic_sections_created
25039 + && h->def_dynamic
25040 + && !h->def_regular))
25041 + {
25042 + bfd_put_32(output_bfd, 0, sgot->contents + got->offset);
25043 + rel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
25044 + rel.r_addend = 0;
25045 +
25046 + pr_debug("GOT reloc R_AVR32_GLOB_DAT, dynindx: %ld\n", h->dynindx);
25047 + pr_debug(" srelgot reloc_count: %d, size: %lu\n",
25048 + srelgot->reloc_count, srelgot->size);
25049 +
25050 + loc = (srelgot->contents
25051 + + srelgot->reloc_count++ * sizeof(Elf32_External_Rela));
25052 + bfd_elf32_swap_reloca_out(output_bfd, &rel, loc);
25053 +
25054 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
25055 + <= srelgot->size);
25056 + }
25057 + }
25058 +
25059 + /* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute */
25060 + if (strcmp(h->root.root.string, "_DYNAMIC") == 0
25061 + || strcmp(h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
25062 + sym->st_shndx = SHN_ABS;
25063 +
25064 + return TRUE;
25065 +}
25066 +
25067 +/* (8) Do any remaining initialization of the dynamic sections */
25068 +
25069 +static bfd_boolean
25070 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info)
25071 +{
25072 + struct elf_avr32_link_hash_table *htab;
25073 + asection *sgot, *sdyn;
25074 +
25075 + pr_debug("(8) finish dynamic sections\n");
25076 +
25077 + htab = avr32_elf_hash_table(info);
25078 + sgot = htab->sgot;
25079 + sdyn = bfd_get_section_by_name(htab->root.dynobj, ".dynamic");
25080 +
25081 + if (htab->root.dynamic_sections_created)
25082 + {
25083 + Elf32_External_Dyn *dyncon, *dynconend;
25084 +
25085 + BFD_ASSERT(sdyn && sgot && sgot->size >= AVR32_GOT_HEADER_SIZE);
25086 +
25087 + dyncon = (Elf32_External_Dyn *)sdyn->contents;
25088 + dynconend = (Elf32_External_Dyn *)(sdyn->contents + sdyn->size);
25089 + for (; dyncon < dynconend; dyncon++)
25090 + {
25091 + Elf_Internal_Dyn dyn;
25092 + asection *s;
25093 +
25094 + bfd_elf32_swap_dyn_in(htab->root.dynobj, dyncon, &dyn);
25095 +
25096 + switch (dyn.d_tag)
25097 + {
25098 + default:
25099 + break;
25100 +
25101 + case DT_PLTGOT:
25102 + s = sgot->output_section;
25103 + BFD_ASSERT(s != NULL);
25104 + dyn.d_un.d_ptr = s->vma;
25105 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
25106 + break;
25107 +
25108 + case DT_AVR32_GOTSZ:
25109 + s = sgot->output_section;
25110 + BFD_ASSERT(s != NULL);
25111 + dyn.d_un.d_val = s->size;
25112 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
25113 + break;
25114 + }
25115 + }
25116 +
25117 + /* Fill in the first two entries in the global offset table */
25118 + bfd_put_32(output_bfd,
25119 + sdyn->output_section->vma + sdyn->output_offset,
25120 + sgot->contents);
25121 +
25122 + /* The runtime linker will fill this one in with the address of
25123 + the run-time link map */
25124 + bfd_put_32(output_bfd, 0, sgot->contents + 4);
25125 + }
25126 +
25127 + if (sgot)
25128 + elf_section_data(sgot->output_section)->this_hdr.sh_entsize = 4;
25129 +
25130 + return TRUE;
25131 +}
25132 +
25133 +\f
25134 +/* AVR32-specific private ELF data */
25135 +
25136 +static bfd_boolean
25137 +avr32_elf_set_private_flags(bfd *abfd, flagword flags);
25138 +static bfd_boolean
25139 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd);
25140 +static bfd_boolean
25141 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd);
25142 +static bfd_boolean
25143 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr);
25144 +
25145 +static bfd_boolean
25146 +avr32_elf_set_private_flags(bfd *abfd, flagword flags)
25147 +{
25148 + elf_elfheader(abfd)->e_flags = flags;
25149 + elf_flags_init(abfd) = TRUE;
25150 +
25151 + return TRUE;
25152 +}
25153 +
25154 +/* Copy backend specific data from one object module to another. */
25155 +
25156 +static bfd_boolean
25157 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd)
25158 +{
25159 + elf_elfheader(obfd)->e_flags = elf_elfheader(ibfd)->e_flags;
25160 + return TRUE;
25161 +}
25162 +
25163 +/* Merge backend specific data from an object file to the output
25164 + object file when linking. */
25165 +
25166 +static bfd_boolean
25167 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd)
25168 +{
25169 + flagword out_flags, in_flags;
25170 +
25171 + pr_debug("(0) merge_private_bfd_data: %s -> %s\n",
25172 + ibfd->filename, obfd->filename);
25173 +
25174 + in_flags = elf_elfheader(ibfd)->e_flags;
25175 + out_flags = elf_elfheader(obfd)->e_flags;
25176 +
25177 + if (elf_flags_init(obfd))
25178 + {
25179 + /* If one of the inputs are non-PIC, the output must be
25180 + considered non-PIC. The same applies to linkrelax. */
25181 + if (!(in_flags & EF_AVR32_PIC))
25182 + out_flags &= ~EF_AVR32_PIC;
25183 + if (!(in_flags & EF_AVR32_LINKRELAX))
25184 + out_flags &= ~EF_AVR32_LINKRELAX;
25185 + }
25186 + else
25187 + {
25188 + elf_flags_init(obfd) = TRUE;
25189 + out_flags = in_flags;
25190 + }
25191 +
25192 + elf_elfheader(obfd)->e_flags = out_flags;
25193 +
25194 + return TRUE;
25195 +}
25196 +
25197 +static bfd_boolean
25198 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr)
25199 +{
25200 + FILE *file = (FILE *)ptr;
25201 + unsigned long flags;
25202 +
25203 + BFD_ASSERT(abfd != NULL && ptr != NULL);
25204 +
25205 + _bfd_elf_print_private_bfd_data(abfd, ptr);
25206 +
25207 + flags = elf_elfheader(abfd)->e_flags;
25208 +
25209 + fprintf(file, _("private flags = %lx:"), elf_elfheader(abfd)->e_flags);
25210 +
25211 + if (flags & EF_AVR32_PIC)
25212 + fprintf(file, " [PIC]");
25213 + if (flags & EF_AVR32_LINKRELAX)
25214 + fprintf(file, " [linker relaxable]");
25215 +
25216 + flags &= ~(EF_AVR32_PIC | EF_AVR32_LINKRELAX);
25217 +
25218 + if (flags)
25219 + fprintf(file, _("<Unrecognized flag bits set>"));
25220 +
25221 + fputc('\n', file);
25222 +
25223 + return TRUE;
25224 +}
25225 +
25226 +\f
25227 +/* Understanding core dumps */
25228 +
25229 +static bfd_boolean
25230 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note);
25231 +static bfd_boolean
25232 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note);
25233 +
25234 +static bfd_boolean
25235 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note)
25236 +{
25237 + /* Linux/AVR32B elf_prstatus */
25238 + if (note->descsz != 148)
25239 + return FALSE;
25240 +
25241 + /* pr_cursig */
25242 + elf_tdata(abfd)->core_signal = bfd_get_16(abfd, note->descdata + 12);
25243 +
25244 + /* pr_pid */
25245 + elf_tdata(abfd)->core_pid = bfd_get_32(abfd, note->descdata + 24);
25246 +
25247 + /* Make a ".reg/999" section for pr_reg. The size is for 16
25248 + general-purpose registers, SR and r12_orig (18 * 4 = 72). */
25249 + return _bfd_elfcore_make_pseudosection(abfd, ".reg", 72,
25250 + note->descpos + 72);
25251 +}
25252 +
25253 +static bfd_boolean
25254 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note)
25255 +{
25256 + /* Linux/AVR32B elf_prpsinfo */
25257 + if (note->descsz != 128)
25258 + return FALSE;
25259 +
25260 + elf_tdata(abfd)->core_program
25261 + = _bfd_elfcore_strndup(abfd, note->descdata + 32, 16);
25262 + elf_tdata(abfd)->core_command
25263 + = _bfd_elfcore_strndup(abfd, note->descdata + 48, 80);
25264 +
25265 + /* Note that for some reason, a spurious space is tacked
25266 + onto the end of the args in some (at least one anyway)
25267 + implementations, so strip it off if it exists. */
25268 +
25269 + {
25270 + char *command = elf_tdata (abfd)->core_command;
25271 + int n = strlen (command);
25272 +
25273 + if (0 < n && command[n - 1] == ' ')
25274 + command[n - 1] = '\0';
25275 + }
25276 +
25277 + return TRUE;
25278 +}
25279 +
25280 +\f
25281 +#define ELF_ARCH bfd_arch_avr32
25282 +#define ELF_MACHINE_CODE EM_AVR32
25283 +#define ELF_MAXPAGESIZE 0x1000
25284 +
25285 +#define TARGET_BIG_SYM bfd_elf32_avr32_vec
25286 +#define TARGET_BIG_NAME "elf32-avr32"
25287 +
25288 +#define elf_backend_grok_prstatus avr32_elf_grok_prstatus
25289 +#define elf_backend_grok_psinfo avr32_elf_grok_psinfo
25290 +
25291 +/* Only RELA relocations are used */
25292 +#define elf_backend_may_use_rel_p 0
25293 +#define elf_backend_may_use_rela_p 1
25294 +#define elf_backend_default_use_rela_p 1
25295 +#define elf_backend_rela_normal 1
25296 +#define elf_info_to_howto_rel NULL
25297 +#define elf_info_to_howto avr32_info_to_howto
25298 +
25299 +#define bfd_elf32_bfd_copy_private_bfd_data avr32_elf_copy_private_bfd_data
25300 +#define bfd_elf32_bfd_merge_private_bfd_data avr32_elf_merge_private_bfd_data
25301 +#define bfd_elf32_bfd_set_private_flags avr32_elf_set_private_flags
25302 +#define bfd_elf32_bfd_print_private_bfd_data avr32_elf_print_private_bfd_data
25303 +#define bfd_elf32_new_section_hook avr32_elf_new_section_hook
25304 +
25305 +#define elf_backend_gc_mark_hook avr32_elf_gc_mark_hook
25306 +#define elf_backend_gc_sweep_hook avr32_elf_gc_sweep_hook
25307 +#define elf_backend_relocate_section avr32_elf_relocate_section
25308 +#define elf_backend_copy_indirect_symbol avr32_elf_copy_indirect_symbol
25309 +#define elf_backend_create_dynamic_sections avr32_elf_create_dynamic_sections
25310 +#define bfd_elf32_bfd_link_hash_table_create avr32_elf_link_hash_table_create
25311 +#define elf_backend_adjust_dynamic_symbol avr32_elf_adjust_dynamic_symbol
25312 +#define elf_backend_size_dynamic_sections avr32_elf_size_dynamic_sections
25313 +#define elf_backend_finish_dynamic_symbol avr32_elf_finish_dynamic_symbol
25314 +#define elf_backend_finish_dynamic_sections avr32_elf_finish_dynamic_sections
25315 +
25316 +#define bfd_elf32_bfd_relax_section avr32_elf_relax_section
25317 +
25318 +/* Find out which symbols need an entry in .got. */
25319 +#define elf_backend_check_relocs avr32_check_relocs
25320 +#define elf_backend_can_refcount 1
25321 +#define elf_backend_can_gc_sections 1
25322 +#define elf_backend_plt_readonly 1
25323 +#define elf_backend_plt_not_loaded 1
25324 +#define elf_backend_want_plt_sym 0
25325 +#define elf_backend_plt_alignment 2
25326 +#define elf_backend_want_dynbss 0
25327 +#define elf_backend_want_got_plt 0
25328 +#define elf_backend_want_got_sym 1
25329 +#define elf_backend_got_header_size AVR32_GOT_HEADER_SIZE
25330 +
25331 +#include "elf32-target.h"
25332 --- /dev/null
25333 +++ b/bfd/elf32-avr32.h
25334 @@ -0,0 +1,23 @@
25335 +/* AVR32-specific support for 32-bit ELF.
25336 + Copyright 2007 Atmel Corporation.
25337 +
25338 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
25339 +
25340 + This file is part of BFD, the Binary File Descriptor library.
25341 +
25342 + This program is free software; you can redistribute it and/or modify
25343 + it under the terms of the GNU General Public License as published by
25344 + the Free Software Foundation; either version 2 of the License, or
25345 + (at your option) any later version.
25346 +
25347 + This program is distributed in the hope that it will be useful,
25348 + but WITHOUT ANY WARRANTY; without even the implied warranty of
25349 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25350 + GNU General Public License for more details.
25351 +
25352 + You should have received a copy of the GNU General Public License
25353 + along with this program; if not, write to the Free Software
25354 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
25355 +
25356 +void bfd_elf32_avr32_set_options(struct bfd_link_info *info,
25357 + int direct_data_refs);
25358 --- a/bfd/elf-bfd.h
25359 +++ b/bfd/elf-bfd.h
25360 @@ -1307,6 +1307,10 @@ struct elf_obj_tdata
25361 find_nearest_line. */
25362 struct mips_elf_find_line *find_line_info;
25363
25364 + /* Used by AVR32 ELF relaxation code. Contains an array of pointers
25365 + for each local symbol to the fragment where it is defined. */
25366 + struct fragment **local_sym_frag;
25367 +
25368 /* A place to stash dwarf1 info for this bfd. */
25369 struct dwarf1_debug *dwarf1_find_line_info;
25370
25371 --- a/bfd/libbfd.h
25372 +++ b/bfd/libbfd.h
25373 @@ -1518,6 +1518,47 @@ static const char *const bfd_reloc_code_
25374 "BFD_RELOC_AVR_LDI",
25375 "BFD_RELOC_AVR_6",
25376 "BFD_RELOC_AVR_6_ADIW",
25377 + "BFD_RELOC_AVR32_DIFF32",
25378 + "BFD_RELOC_AVR32_DIFF16",
25379 + "BFD_RELOC_AVR32_DIFF8",
25380 + "BFD_RELOC_AVR32_GOT32",
25381 + "BFD_RELOC_AVR32_GOT16",
25382 + "BFD_RELOC_AVR32_GOT8",
25383 + "BFD_RELOC_AVR32_21S",
25384 + "BFD_RELOC_AVR32_16U",
25385 + "BFD_RELOC_AVR32_16S",
25386 + "BFD_RELOC_AVR32_SUB5",
25387 + "BFD_RELOC_AVR32_8S_EXT",
25388 + "BFD_RELOC_AVR32_8S",
25389 + "BFD_RELOC_AVR32_22H_PCREL",
25390 + "BFD_RELOC_AVR32_18W_PCREL",
25391 + "BFD_RELOC_AVR32_16B_PCREL",
25392 + "BFD_RELOC_AVR32_16N_PCREL",
25393 + "BFD_RELOC_AVR32_14UW_PCREL",
25394 + "BFD_RELOC_AVR32_11H_PCREL",
25395 + "BFD_RELOC_AVR32_10UW_PCREL",
25396 + "BFD_RELOC_AVR32_9H_PCREL",
25397 + "BFD_RELOC_AVR32_9UW_PCREL",
25398 + "BFD_RELOC_AVR32_GOTPC",
25399 + "BFD_RELOC_AVR32_GOTCALL",
25400 + "BFD_RELOC_AVR32_LDA_GOT",
25401 + "BFD_RELOC_AVR32_GOT21S",
25402 + "BFD_RELOC_AVR32_GOT18SW",
25403 + "BFD_RELOC_AVR32_GOT16S",
25404 + "BFD_RELOC_AVR32_32_CPENT",
25405 + "BFD_RELOC_AVR32_CPCALL",
25406 + "BFD_RELOC_AVR32_16_CP",
25407 + "BFD_RELOC_AVR32_9W_CP",
25408 + "BFD_RELOC_AVR32_ALIGN",
25409 + "BFD_RELOC_AVR32_14UW",
25410 + "BFD_RELOC_AVR32_10UW",
25411 + "BFD_RELOC_AVR32_10SW",
25412 + "BFD_RELOC_AVR32_STHH_W",
25413 + "BFD_RELOC_AVR32_7UW",
25414 + "BFD_RELOC_AVR32_6S",
25415 + "BFD_RELOC_AVR32_6UW",
25416 + "BFD_RELOC_AVR32_4UH",
25417 + "BFD_RELOC_AVR32_3U",
25418 "BFD_RELOC_390_12",
25419 "BFD_RELOC_390_GOT12",
25420 "BFD_RELOC_390_PLT32",
25421 --- a/bfd/Makefile.am
25422 +++ b/bfd/Makefile.am
25423 @@ -3,7 +3,7 @@
25424 AUTOMAKE_OPTIONS = 1.9 cygnus
25425
25426 # Uncomment the following line when doing a release.
25427 -RELEASE=y
25428 +# RELEASE=y
25429
25430 INCDIR = $(srcdir)/../include
25431 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
25432 @@ -62,6 +62,7 @@ ALL_MACHINES = \
25433 cpu-arc.lo \
25434 cpu-arm.lo \
25435 cpu-avr.lo \
25436 + cpu-avr32.lo \
25437 cpu-bfin.lo \
25438 cpu-cr16c.lo \
25439 cpu-cris.lo \
25440 @@ -234,6 +235,7 @@ BFD32_BACKENDS = \
25441 elf32-arc.lo \
25442 elf32-arm.lo \
25443 elf32-avr.lo \
25444 + elf32-avr32.lo \
25445 elf32-bfin.lo \
25446 elf32-cr16c.lo \
25447 elf32-cris.lo \
25448 @@ -1265,6 +1267,10 @@ elf32-bfin.lo: elf32-bfin.c $(INCDIR)/fi
25449 elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
25450 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/bfin.h \
25451 $(INCDIR)/elf/reloc-macros.h elf32-target.h
25452 +elf32-avr32.lo: elf32-avr32.c $(INCDIR)/filenames.h elf-bfd.h \
25453 + $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
25454 + $(INCDIR)/bfdlink.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/reloc-macros.h \
25455 + elf32-target.h
25456 elf32-cr16c.lo: elf32-cr16c.c $(INCDIR)/filenames.h \
25457 $(INCDIR)/hashtab.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/cr16c.h \
25458 $(INCDIR)/elf/reloc-macros.h elf-bfd.h $(INCDIR)/elf/common.h \
25459 --- a/bfd/Makefile.in
25460 +++ b/bfd/Makefile.in
25461 @@ -1,4 +1,4 @@
25462 -# Makefile.in generated by automake 1.9.5 from Makefile.am.
25463 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
25464 # @configure_input@
25465
25466 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
25467 @@ -15,8 +15,6 @@
25468 @SET_MAKE@
25469
25470
25471 -SOURCES = $(libbfd_a_SOURCES) $(libbfd_la_SOURCES)
25472 -
25473 srcdir = @srcdir@
25474 top_srcdir = @top_srcdir@
25475 VPATH = @srcdir@
25476 @@ -141,6 +139,7 @@ EXEEXT = @EXEEXT@
25477 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
25478 GMOFILES = @GMOFILES@
25479 GMSGFMT = @GMSGFMT@
25480 +GREP = @GREP@
25481 GT_NO = @GT_NO@
25482 GT_YES = @GT_YES@
25483 HDEFINES = @HDEFINES@
25484 @@ -190,10 +189,7 @@ WARN_CFLAGS = @WARN_CFLAGS@
25485 WIN32LDFLAGS = @WIN32LDFLAGS@
25486 WIN32LIBADD = @WIN32LIBADD@
25487 XGETTEXT = @XGETTEXT@
25488 -ac_ct_AR = @ac_ct_AR@
25489 ac_ct_CC = @ac_ct_CC@
25490 -ac_ct_RANLIB = @ac_ct_RANLIB@
25491 -ac_ct_STRIP = @ac_ct_STRIP@
25492 all_backends = @all_backends@
25493 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
25494 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
25495 @@ -219,6 +215,7 @@ build_vendor = @build_vendor@
25496 datadir = @datadir@
25497 datarootdir = @datarootdir@
25498 docdir = @docdir@
25499 +dvidir = @dvidir@
25500 exec_prefix = @exec_prefix@
25501 host = @host@
25502 host_alias = @host_alias@
25503 @@ -233,12 +230,15 @@ install_sh = @install_sh@
25504 l = @l@
25505 libdir = @libdir@
25506 libexecdir = @libexecdir@
25507 +localedir = @localedir@
25508 localstatedir = @localstatedir@
25509 mandir = @mandir@
25510 mkdir_p = @mkdir_p@
25511 oldincludedir = @oldincludedir@
25512 +pdfdir = @pdfdir@
25513 prefix = @prefix@
25514 program_transform_name = @program_transform_name@
25515 +psdir = @psdir@
25516 sbindir = @sbindir@
25517 sharedstatedir = @sharedstatedir@
25518 sysconfdir = @sysconfdir@
25519 @@ -253,7 +253,7 @@ wordsize = @wordsize@
25520 AUTOMAKE_OPTIONS = 1.9 cygnus
25521
25522 # Uncomment the following line when doing a release.
25523 -RELEASE=y
25524 +# RELEASE=y
25525 INCDIR = $(srcdir)/../include
25526 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
25527 MKDEP = gcc -MM
25528 @@ -298,6 +298,7 @@ ALL_MACHINES = \
25529 cpu-arc.lo \
25530 cpu-arm.lo \
25531 cpu-avr.lo \
25532 + cpu-avr32.lo \
25533 cpu-bfin.lo \
25534 cpu-cr16c.lo \
25535 cpu-cris.lo \
25536 @@ -471,6 +472,7 @@ BFD32_BACKENDS = \
25537 elf32-arc.lo \
25538 elf32-arm.lo \
25539 elf32-avr.lo \
25540 + elf32-avr32.lo \
25541 elf32-bfin.lo \
25542 elf32-cr16c.lo \
25543 elf32-cris.lo \
25544 @@ -1831,6 +1833,10 @@ elf32-bfin.lo: elf32-bfin.c $(INCDIR)/fi
25545 elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
25546 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/bfin.h \
25547 $(INCDIR)/elf/reloc-macros.h elf32-target.h
25548 +elf32-avr32.lo: elf32-avr32.c $(INCDIR)/filenames.h elf-bfd.h \
25549 + $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
25550 + $(INCDIR)/bfdlink.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/reloc-macros.h \
25551 + elf32-target.h
25552 elf32-cr16c.lo: elf32-cr16c.c $(INCDIR)/filenames.h \
25553 $(INCDIR)/hashtab.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/cr16c.h \
25554 $(INCDIR)/elf/reloc-macros.h elf-bfd.h $(INCDIR)/elf/common.h \
25555 --- a/bfd/reloc.c
25556 +++ b/bfd/reloc.c
25557 @@ -3714,6 +3714,129 @@ ENUMDOC
25558 instructions
25559
25560 ENUM
25561 + BFD_RELOC_AVR32_DIFF32
25562 +ENUMX
25563 + BFD_RELOC_AVR32_DIFF16
25564 +ENUMX
25565 + BFD_RELOC_AVR32_DIFF8
25566 +ENUMDOC
25567 + Difference between two labels: L2 - L1. The value of L1 is encoded
25568 + as sym + addend, while the initial difference after assembly is
25569 + inserted into the object file by the assembler.
25570 +ENUM
25571 + BFD_RELOC_AVR32_GOT32
25572 +ENUMX
25573 + BFD_RELOC_AVR32_GOT16
25574 +ENUMX
25575 + BFD_RELOC_AVR32_GOT8
25576 +ENUMDOC
25577 + Reference to a symbol through the Global Offset Table. The linker
25578 + will allocate an entry for symbol in the GOT and insert the offset
25579 + of this entry as the relocation value.
25580 +ENUM
25581 + BFD_RELOC_AVR32_21S
25582 +ENUMX
25583 + BFD_RELOC_AVR32_16U
25584 +ENUMX
25585 + BFD_RELOC_AVR32_16S
25586 +ENUMX
25587 + BFD_RELOC_AVR32_SUB5
25588 +ENUMX
25589 + BFD_RELOC_AVR32_8S_EXT
25590 +ENUMX
25591 + BFD_RELOC_AVR32_8S
25592 +ENUMDOC
25593 + Normal (non-pc-relative) code relocations. Alignment and signedness
25594 + is indicated by the suffixes. S means signed, U means unsigned. W
25595 + means word-aligned, H means halfword-aligned, neither means
25596 + byte-aligned (no alignment.) SUB5 is the same relocation as 16S.
25597 +ENUM
25598 + BFD_RELOC_AVR32_22H_PCREL
25599 +ENUMX
25600 + BFD_RELOC_AVR32_18W_PCREL
25601 +ENUMX
25602 + BFD_RELOC_AVR32_16B_PCREL
25603 +ENUMX
25604 + BFD_RELOC_AVR32_16N_PCREL
25605 +ENUMX
25606 + BFD_RELOC_AVR32_14UW_PCREL
25607 +ENUMX
25608 + BFD_RELOC_AVR32_11H_PCREL
25609 +ENUMX
25610 + BFD_RELOC_AVR32_10UW_PCREL
25611 +ENUMX
25612 + BFD_RELOC_AVR32_9H_PCREL
25613 +ENUMX
25614 + BFD_RELOC_AVR32_9UW_PCREL
25615 +ENUMDOC
25616 + PC-relative relocations are signed if neither 'U' nor 'S' is
25617 + specified. However, we explicitly tack on a 'B' to indicate no
25618 + alignment, to avoid confusion with data relocs. All of these resolve
25619 + to sym + addend - offset, except the one with 'N' (negated) suffix.
25620 + This particular one resolves to offset - sym - addend.
25621 +ENUM
25622 + BFD_RELOC_AVR32_GOTPC
25623 +ENUMDOC
25624 + Subtract the link-time address of the GOT from (symbol + addend)
25625 + and insert the result.
25626 +ENUM
25627 + BFD_RELOC_AVR32_GOTCALL
25628 +ENUMX
25629 + BFD_RELOC_AVR32_LDA_GOT
25630 +ENUMX
25631 + BFD_RELOC_AVR32_GOT21S
25632 +ENUMX
25633 + BFD_RELOC_AVR32_GOT18SW
25634 +ENUMX
25635 + BFD_RELOC_AVR32_GOT16S
25636 +ENUMDOC
25637 + Reference to a symbol through the GOT. The linker will allocate an
25638 + entry for symbol in the GOT and insert the offset of this entry as
25639 + the relocation value. addend must be zero. As usual, 'S' means
25640 + signed, 'W' means word-aligned, etc.
25641 +ENUM
25642 + BFD_RELOC_AVR32_32_CPENT
25643 +ENUMDOC
25644 + 32-bit constant pool entry. I don't think 8- and 16-bit entries make
25645 + a whole lot of sense.
25646 +ENUM
25647 + BFD_RELOC_AVR32_CPCALL
25648 +ENUMX
25649 + BFD_RELOC_AVR32_16_CP
25650 +ENUMX
25651 + BFD_RELOC_AVR32_9W_CP
25652 +ENUMDOC
25653 + Constant pool references. Some of these relocations are signed,
25654 + others are unsigned. It doesn't really matter, since the constant
25655 + pool always comes after the code that references it.
25656 +ENUM
25657 + BFD_RELOC_AVR32_ALIGN
25658 +ENUMDOC
25659 + sym must be the absolute symbol. The addend specifies the alignment
25660 + order, e.g. if addend is 2, the linker must add padding so that the
25661 + next address is aligned to a 4-byte boundary.
25662 +ENUM
25663 + BFD_RELOC_AVR32_14UW
25664 +ENUMX
25665 + BFD_RELOC_AVR32_10UW
25666 +ENUMX
25667 + BFD_RELOC_AVR32_10SW
25668 +ENUMX
25669 + BFD_RELOC_AVR32_STHH_W
25670 +ENUMX
25671 + BFD_RELOC_AVR32_7UW
25672 +ENUMX
25673 + BFD_RELOC_AVR32_6S
25674 +ENUMX
25675 + BFD_RELOC_AVR32_6UW
25676 +ENUMX
25677 + BFD_RELOC_AVR32_4UH
25678 +ENUMX
25679 + BFD_RELOC_AVR32_3U
25680 +ENUMDOC
25681 + Code relocations that will never make it to the output file.
25682 +
25683 +ENUM
25684 BFD_RELOC_390_12
25685 ENUMDOC
25686 Direct 12 bit.
25687 --- a/bfd/targets.c
25688 +++ b/bfd/targets.c
25689 @@ -553,6 +553,7 @@ extern const bfd_target b_out_vec_little
25690 extern const bfd_target bfd_efi_app_ia32_vec;
25691 extern const bfd_target bfd_efi_app_ia64_vec;
25692 extern const bfd_target bfd_elf32_avr_vec;
25693 +extern const bfd_target bfd_elf32_avr32_vec;
25694 extern const bfd_target bfd_elf32_bfin_vec;
25695 extern const bfd_target bfd_elf32_bfinfdpic_vec;
25696 extern const bfd_target bfd_elf32_big_generic_vec;
25697 @@ -855,6 +856,7 @@ static const bfd_target * const _bfd_tar
25698 &bfd_efi_app_ia64_vec,
25699 #endif
25700 &bfd_elf32_avr_vec,
25701 + &bfd_elf32_avr32_vec,
25702 &bfd_elf32_bfin_vec,
25703 &bfd_elf32_bfinfdpic_vec,
25704
25705 --- a/binutils/config.in
25706 +++ b/binutils/config.in
25707 @@ -218,7 +218,7 @@
25708
25709 /* If using the C implementation of alloca, define if you know the
25710 direction of stack growth for your system; otherwise it will be
25711 - automatically deduced at run-time.
25712 + automatically deduced at runtime.
25713 STACK_DIRECTION > 0 => grows toward higher addresses
25714 STACK_DIRECTION < 0 => grows toward lower addresses
25715 STACK_DIRECTION = 0 => direction of growth unknown */
25716 @@ -260,8 +260,8 @@
25717 #undef inline
25718 #endif
25719
25720 -/* Define to `long' if <sys/types.h> does not define. */
25721 +/* Define to `long int' if <sys/types.h> does not define. */
25722 #undef off_t
25723
25724 -/* Define to `unsigned' if <sys/types.h> does not define. */
25725 +/* Define to `unsigned int' if <sys/types.h> does not define. */
25726 #undef size_t
25727 --- a/binutils/configure
25728 +++ b/binutils/configure
25729 @@ -1,25 +1,54 @@
25730 #! /bin/sh
25731 # Guess values for system-dependent variables and create Makefiles.
25732 -# Generated by GNU Autoconf 2.59.
25733 +# Generated by GNU Autoconf 2.61.
25734 #
25735 -# Copyright (C) 2003 Free Software Foundation, Inc.
25736 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
25737 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
25738 # This configure script is free software; the Free Software Foundation
25739 # gives unlimited permission to copy, distribute and modify it.
25740 ## --------------------- ##
25741 ## M4sh Initialization. ##
25742 ## --------------------- ##
25743
25744 -# Be Bourne compatible
25745 +# Be more Bourne compatible
25746 +DUALCASE=1; export DUALCASE # for MKS sh
25747 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25748 emulate sh
25749 NULLCMD=:
25750 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25751 # is contrary to our usage. Disable this feature.
25752 alias -g '${1+"$@"}'='"$@"'
25753 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25754 - set -o posix
25755 + setopt NO_GLOB_SUBST
25756 +else
25757 + case `(set -o) 2>/dev/null` in
25758 + *posix*) set -o posix ;;
25759 +esac
25760 +
25761 +fi
25762 +
25763 +
25764 +
25765 +
25766 +# PATH needs CR
25767 +# Avoid depending upon Character Ranges.
25768 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25769 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25770 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25771 +as_cr_digits='0123456789'
25772 +as_cr_alnum=$as_cr_Letters$as_cr_digits
25773 +
25774 +# The user is always right.
25775 +if test "${PATH_SEPARATOR+set}" != set; then
25776 + echo "#! /bin/sh" >conf$$.sh
25777 + echo "exit 0" >>conf$$.sh
25778 + chmod +x conf$$.sh
25779 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25780 + PATH_SEPARATOR=';'
25781 + else
25782 + PATH_SEPARATOR=:
25783 + fi
25784 + rm -f conf$$.sh
25785 fi
25786 -DUALCASE=1; export DUALCASE # for MKS sh
25787
25788 # Support unset when possible.
25789 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25790 @@ -29,8 +58,43 @@ else
25791 fi
25792
25793
25794 +# IFS
25795 +# We need space, tab and new line, in precisely that order. Quoting is
25796 +# there to prevent editors from complaining about space-tab.
25797 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25798 +# splitting by setting IFS to empty value.)
25799 +as_nl='
25800 +'
25801 +IFS=" "" $as_nl"
25802 +
25803 +# Find who we are. Look in the path if we contain no directory separator.
25804 +case $0 in
25805 + *[\\/]* ) as_myself=$0 ;;
25806 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25807 +for as_dir in $PATH
25808 +do
25809 + IFS=$as_save_IFS
25810 + test -z "$as_dir" && as_dir=.
25811 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25812 +done
25813 +IFS=$as_save_IFS
25814 +
25815 + ;;
25816 +esac
25817 +# We did not find ourselves, most probably we were run as `sh COMMAND'
25818 +# in which case we are not to be found in the path.
25819 +if test "x$as_myself" = x; then
25820 + as_myself=$0
25821 +fi
25822 +if test ! -f "$as_myself"; then
25823 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25824 + { (exit 1); exit 1; }
25825 +fi
25826 +
25827 # Work around bugs in pre-3.0 UWIN ksh.
25828 -$as_unset ENV MAIL MAILPATH
25829 +for as_var in ENV MAIL MAILPATH
25830 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25831 +done
25832 PS1='$ '
25833 PS2='> '
25834 PS4='+ '
25835 @@ -44,18 +108,19 @@ do
25836 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25837 eval $as_var=C; export $as_var
25838 else
25839 - $as_unset $as_var
25840 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25841 fi
25842 done
25843
25844 # Required to use basename.
25845 -if expr a : '\(a\)' >/dev/null 2>&1; then
25846 +if expr a : '\(a\)' >/dev/null 2>&1 &&
25847 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
25848 as_expr=expr
25849 else
25850 as_expr=false
25851 fi
25852
25853 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25854 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25855 as_basename=basename
25856 else
25857 as_basename=false
25858 @@ -63,157 +128,388 @@ fi
25859
25860
25861 # Name of the executable.
25862 -as_me=`$as_basename "$0" ||
25863 +as_me=`$as_basename -- "$0" ||
25864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25865 X"$0" : 'X\(//\)$' \| \
25866 - X"$0" : 'X\(/\)$' \| \
25867 - . : '\(.\)' 2>/dev/null ||
25868 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25869 echo X/"$0" |
25870 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25871 - /^X\/\(\/\/\)$/{ s//\1/; q; }
25872 - /^X\/\(\/\).*/{ s//\1/; q; }
25873 - s/.*/./; q'`
25874 + sed '/^.*\/\([^/][^/]*\)\/*$/{
25875 + s//\1/
25876 + q
25877 + }
25878 + /^X\/\(\/\/\)$/{
25879 + s//\1/
25880 + q
25881 + }
25882 + /^X\/\(\/\).*/{
25883 + s//\1/
25884 + q
25885 + }
25886 + s/.*/./; q'`
25887
25888 +# CDPATH.
25889 +$as_unset CDPATH
25890
25891 -# PATH needs CR, and LINENO needs CR and PATH.
25892 -# Avoid depending upon Character Ranges.
25893 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25894 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25895 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25896 -as_cr_digits='0123456789'
25897 -as_cr_alnum=$as_cr_Letters$as_cr_digits
25898
25899 -# The user is always right.
25900 -if test "${PATH_SEPARATOR+set}" != set; then
25901 - echo "#! /bin/sh" >conf$$.sh
25902 - echo "exit 0" >>conf$$.sh
25903 - chmod +x conf$$.sh
25904 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25905 - PATH_SEPARATOR=';'
25906 - else
25907 - PATH_SEPARATOR=:
25908 - fi
25909 - rm -f conf$$.sh
25910 +if test "x$CONFIG_SHELL" = x; then
25911 + if (eval ":") 2>/dev/null; then
25912 + as_have_required=yes
25913 +else
25914 + as_have_required=no
25915 +fi
25916 +
25917 + if test $as_have_required = yes && (eval ":
25918 +(as_func_return () {
25919 + (exit \$1)
25920 +}
25921 +as_func_success () {
25922 + as_func_return 0
25923 +}
25924 +as_func_failure () {
25925 + as_func_return 1
25926 +}
25927 +as_func_ret_success () {
25928 + return 0
25929 +}
25930 +as_func_ret_failure () {
25931 + return 1
25932 +}
25933 +
25934 +exitcode=0
25935 +if as_func_success; then
25936 + :
25937 +else
25938 + exitcode=1
25939 + echo as_func_success failed.
25940 fi
25941
25942 +if as_func_failure; then
25943 + exitcode=1
25944 + echo as_func_failure succeeded.
25945 +fi
25946
25947 - as_lineno_1=$LINENO
25948 - as_lineno_2=$LINENO
25949 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25950 - test "x$as_lineno_1" != "x$as_lineno_2" &&
25951 - test "x$as_lineno_3" = "x$as_lineno_2" || {
25952 - # Find who we are. Look in the path if we contain no path at all
25953 - # relative or not.
25954 - case $0 in
25955 - *[\\/]* ) as_myself=$0 ;;
25956 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25957 -for as_dir in $PATH
25958 -do
25959 - IFS=$as_save_IFS
25960 - test -z "$as_dir" && as_dir=.
25961 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25962 -done
25963 +if as_func_ret_success; then
25964 + :
25965 +else
25966 + exitcode=1
25967 + echo as_func_ret_success failed.
25968 +fi
25969
25970 - ;;
25971 - esac
25972 - # We did not find ourselves, most probably we were run as `sh COMMAND'
25973 - # in which case we are not to be found in the path.
25974 - if test "x$as_myself" = x; then
25975 - as_myself=$0
25976 - fi
25977 - if test ! -f "$as_myself"; then
25978 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
25979 - { (exit 1); exit 1; }; }
25980 - fi
25981 - case $CONFIG_SHELL in
25982 - '')
25983 +if as_func_ret_failure; then
25984 + exitcode=1
25985 + echo as_func_ret_failure succeeded.
25986 +fi
25987 +
25988 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
25989 + :
25990 +else
25991 + exitcode=1
25992 + echo positional parameters were not saved.
25993 +fi
25994 +
25995 +test \$exitcode = 0) || { (exit 1); exit 1; }
25996 +
25997 +(
25998 + as_lineno_1=\$LINENO
25999 + as_lineno_2=\$LINENO
26000 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
26001 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
26002 +") 2> /dev/null; then
26003 + :
26004 +else
26005 + as_candidate_shells=
26006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26007 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26008 do
26009 IFS=$as_save_IFS
26010 test -z "$as_dir" && as_dir=.
26011 - for as_base in sh bash ksh sh5; do
26012 - case $as_dir in
26013 + case $as_dir in
26014 /*)
26015 - if ("$as_dir/$as_base" -c '
26016 + for as_base in sh bash ksh sh5; do
26017 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
26018 + done;;
26019 + esac
26020 +done
26021 +IFS=$as_save_IFS
26022 +
26023 +
26024 + for as_shell in $as_candidate_shells $SHELL; do
26025 + # Try only shells that exist, to save several forks.
26026 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
26027 + { ("$as_shell") 2> /dev/null <<\_ASEOF
26028 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26029 + emulate sh
26030 + NULLCMD=:
26031 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26032 + # is contrary to our usage. Disable this feature.
26033 + alias -g '${1+"$@"}'='"$@"'
26034 + setopt NO_GLOB_SUBST
26035 +else
26036 + case `(set -o) 2>/dev/null` in
26037 + *posix*) set -o posix ;;
26038 +esac
26039 +
26040 +fi
26041 +
26042 +
26043 +:
26044 +_ASEOF
26045 +}; then
26046 + CONFIG_SHELL=$as_shell
26047 + as_have_required=yes
26048 + if { "$as_shell" 2> /dev/null <<\_ASEOF
26049 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26050 + emulate sh
26051 + NULLCMD=:
26052 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26053 + # is contrary to our usage. Disable this feature.
26054 + alias -g '${1+"$@"}'='"$@"'
26055 + setopt NO_GLOB_SUBST
26056 +else
26057 + case `(set -o) 2>/dev/null` in
26058 + *posix*) set -o posix ;;
26059 +esac
26060 +
26061 +fi
26062 +
26063 +
26064 +:
26065 +(as_func_return () {
26066 + (exit $1)
26067 +}
26068 +as_func_success () {
26069 + as_func_return 0
26070 +}
26071 +as_func_failure () {
26072 + as_func_return 1
26073 +}
26074 +as_func_ret_success () {
26075 + return 0
26076 +}
26077 +as_func_ret_failure () {
26078 + return 1
26079 +}
26080 +
26081 +exitcode=0
26082 +if as_func_success; then
26083 + :
26084 +else
26085 + exitcode=1
26086 + echo as_func_success failed.
26087 +fi
26088 +
26089 +if as_func_failure; then
26090 + exitcode=1
26091 + echo as_func_failure succeeded.
26092 +fi
26093 +
26094 +if as_func_ret_success; then
26095 + :
26096 +else
26097 + exitcode=1
26098 + echo as_func_ret_success failed.
26099 +fi
26100 +
26101 +if as_func_ret_failure; then
26102 + exitcode=1
26103 + echo as_func_ret_failure succeeded.
26104 +fi
26105 +
26106 +if ( set x; as_func_ret_success y && test x = "$1" ); then
26107 + :
26108 +else
26109 + exitcode=1
26110 + echo positional parameters were not saved.
26111 +fi
26112 +
26113 +test $exitcode = 0) || { (exit 1); exit 1; }
26114 +
26115 +(
26116 as_lineno_1=$LINENO
26117 as_lineno_2=$LINENO
26118 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26119 test "x$as_lineno_1" != "x$as_lineno_2" &&
26120 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26121 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26122 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26123 - CONFIG_SHELL=$as_dir/$as_base
26124 - export CONFIG_SHELL
26125 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26126 - fi;;
26127 - esac
26128 - done
26129 -done
26130 -;;
26131 - esac
26132 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
26133 +
26134 +_ASEOF
26135 +}; then
26136 + break
26137 +fi
26138 +
26139 +fi
26140 +
26141 + done
26142 +
26143 + if test "x$CONFIG_SHELL" != x; then
26144 + for as_var in BASH_ENV ENV
26145 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26146 + done
26147 + export CONFIG_SHELL
26148 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
26149 +fi
26150 +
26151 +
26152 + if test $as_have_required = no; then
26153 + echo This script requires a shell more modern than all the
26154 + echo shells that I found on your system. Please install a
26155 + echo modern shell, or manually run the script under such a
26156 + echo shell if you do have one.
26157 + { (exit 1); exit 1; }
26158 +fi
26159 +
26160 +
26161 +fi
26162 +
26163 +fi
26164 +
26165 +
26166 +
26167 +(eval "as_func_return () {
26168 + (exit \$1)
26169 +}
26170 +as_func_success () {
26171 + as_func_return 0
26172 +}
26173 +as_func_failure () {
26174 + as_func_return 1
26175 +}
26176 +as_func_ret_success () {
26177 + return 0
26178 +}
26179 +as_func_ret_failure () {
26180 + return 1
26181 +}
26182 +
26183 +exitcode=0
26184 +if as_func_success; then
26185 + :
26186 +else
26187 + exitcode=1
26188 + echo as_func_success failed.
26189 +fi
26190 +
26191 +if as_func_failure; then
26192 + exitcode=1
26193 + echo as_func_failure succeeded.
26194 +fi
26195 +
26196 +if as_func_ret_success; then
26197 + :
26198 +else
26199 + exitcode=1
26200 + echo as_func_ret_success failed.
26201 +fi
26202 +
26203 +if as_func_ret_failure; then
26204 + exitcode=1
26205 + echo as_func_ret_failure succeeded.
26206 +fi
26207 +
26208 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
26209 + :
26210 +else
26211 + exitcode=1
26212 + echo positional parameters were not saved.
26213 +fi
26214 +
26215 +test \$exitcode = 0") || {
26216 + echo No shell found that supports shell functions.
26217 + echo Please tell autoconf@gnu.org about your system,
26218 + echo including any error possibly output before this
26219 + echo message
26220 +}
26221 +
26222 +
26223 +
26224 + as_lineno_1=$LINENO
26225 + as_lineno_2=$LINENO
26226 + test "x$as_lineno_1" != "x$as_lineno_2" &&
26227 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26228
26229 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26230 # uniformly replaced by the line number. The first 'sed' inserts a
26231 - # line-number line before each line; the second 'sed' does the real
26232 - # work. The second script uses 'N' to pair each line-number line
26233 - # with the numbered line, and appends trailing '-' during
26234 - # substitution so that $LINENO is not a special case at line end.
26235 + # line-number line after each line using $LINENO; the second 'sed'
26236 + # does the real work. The second script uses 'N' to pair each
26237 + # line-number line with the line containing $LINENO, and appends
26238 + # trailing '-' during substitution so that $LINENO is not a special
26239 + # case at line end.
26240 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26241 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26242 - sed '=' <$as_myself |
26243 + # scripts with optimization help from Paolo Bonzini. Blame Lee
26244 + # E. McMahon (1931-1989) for sed's syntax. :-)
26245 + sed -n '
26246 + p
26247 + /[$]LINENO/=
26248 + ' <$as_myself |
26249 sed '
26250 + s/[$]LINENO.*/&-/
26251 + t lineno
26252 + b
26253 + :lineno
26254 N
26255 - s,$,-,
26256 - : loop
26257 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26258 + :loop
26259 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26260 t loop
26261 - s,-$,,
26262 - s,^['$as_cr_digits']*\n,,
26263 + s/-\n.*//
26264 ' >$as_me.lineno &&
26265 - chmod +x $as_me.lineno ||
26266 + chmod +x "$as_me.lineno" ||
26267 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26268 { (exit 1); exit 1; }; }
26269
26270 # Don't try to exec as it changes $[0], causing all sort of problems
26271 # (the dirname of $[0] is not the place where we might find the
26272 - # original and so on. Autoconf is especially sensible to this).
26273 - . ./$as_me.lineno
26274 + # original and so on. Autoconf is especially sensitive to this).
26275 + . "./$as_me.lineno"
26276 # Exit status is that of the last command.
26277 exit
26278 }
26279
26280
26281 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26282 - *c*,-n*) ECHO_N= ECHO_C='
26283 -' ECHO_T=' ' ;;
26284 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26285 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26286 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26287 + as_dirname=dirname
26288 +else
26289 + as_dirname=false
26290 +fi
26291 +
26292 +ECHO_C= ECHO_N= ECHO_T=
26293 +case `echo -n x` in
26294 +-n*)
26295 + case `echo 'x\c'` in
26296 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26297 + *) ECHO_C='\c';;
26298 + esac;;
26299 +*)
26300 + ECHO_N='-n';;
26301 esac
26302
26303 -if expr a : '\(a\)' >/dev/null 2>&1; then
26304 +if expr a : '\(a\)' >/dev/null 2>&1 &&
26305 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
26306 as_expr=expr
26307 else
26308 as_expr=false
26309 fi
26310
26311 rm -f conf$$ conf$$.exe conf$$.file
26312 +if test -d conf$$.dir; then
26313 + rm -f conf$$.dir/conf$$.file
26314 +else
26315 + rm -f conf$$.dir
26316 + mkdir conf$$.dir
26317 +fi
26318 echo >conf$$.file
26319 if ln -s conf$$.file conf$$ 2>/dev/null; then
26320 - # We could just check for DJGPP; but this test a) works b) is more generic
26321 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26322 - if test -f conf$$.exe; then
26323 - # Don't use ln at all; we don't have any links
26324 + as_ln_s='ln -s'
26325 + # ... but there are two gotchas:
26326 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26327 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26328 + # In both cases, we have to default to `cp -p'.
26329 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26330 as_ln_s='cp -p'
26331 - else
26332 - as_ln_s='ln -s'
26333 - fi
26334 elif ln conf$$.file conf$$ 2>/dev/null; then
26335 as_ln_s=ln
26336 else
26337 as_ln_s='cp -p'
26338 fi
26339 -rm -f conf$$ conf$$.exe conf$$.file
26340 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26341 +rmdir conf$$.dir 2>/dev/null
26342
26343 if mkdir -p . 2>/dev/null; then
26344 as_mkdir_p=:
26345 @@ -222,7 +518,28 @@ else
26346 as_mkdir_p=false
26347 fi
26348
26349 -as_executable_p="test -f"
26350 +if test -x / >/dev/null 2>&1; then
26351 + as_test_x='test -x'
26352 +else
26353 + if ls -dL / >/dev/null 2>&1; then
26354 + as_ls_L_option=L
26355 + else
26356 + as_ls_L_option=
26357 + fi
26358 + as_test_x='
26359 + eval sh -c '\''
26360 + if test -d "$1"; then
26361 + test -d "$1/.";
26362 + else
26363 + case $1 in
26364 + -*)set "./$1";;
26365 + esac;
26366 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26367 + ???[sx]*):;;*)false;;esac;fi
26368 + '\'' sh
26369 + '
26370 +fi
26371 +as_executable_p=$as_test_x
26372
26373 # Sed expression to map a string onto a valid CPP name.
26374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26375 @@ -231,39 +548,27 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
26376 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26377
26378
26379 -# IFS
26380 -# We need space, tab and new line, in precisely that order.
26381 -as_nl='
26382 -'
26383 -IFS=" $as_nl"
26384 -
26385 -# CDPATH.
26386 -$as_unset CDPATH
26387
26388 +exec 7<&0 </dev/null 6>&1
26389
26390 # Name of the host.
26391 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
26392 # so uname gets run too.
26393 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
26394
26395 -exec 6>&1
26396 -
26397 #
26398 # Initializations.
26399 #
26400 ac_default_prefix=/usr/local
26401 +ac_clean_files=
26402 ac_config_libobj_dir=.
26403 +LIBOBJS=
26404 cross_compiling=no
26405 subdirs=
26406 MFLAGS=
26407 MAKEFLAGS=
26408 SHELL=${CONFIG_SHELL-/bin/sh}
26409
26410 -# Maximum number of lines to put in a shell here document.
26411 -# This variable seems obsolete. It should probably be removed, and
26412 -# only ac_max_sed_lines should be used.
26413 -: ${ac_max_here_lines=38}
26414 -
26415 # Identity of this package.
26416 PACKAGE_NAME=
26417 PACKAGE_TARNAME=
26418 @@ -275,42 +580,193 @@ ac_unique_file="ar.c"
26419 # Factoring default headers for most tests.
26420 ac_includes_default="\
26421 #include <stdio.h>
26422 -#if HAVE_SYS_TYPES_H
26423 +#ifdef HAVE_SYS_TYPES_H
26424 # include <sys/types.h>
26425 #endif
26426 -#if HAVE_SYS_STAT_H
26427 +#ifdef HAVE_SYS_STAT_H
26428 # include <sys/stat.h>
26429 #endif
26430 -#if STDC_HEADERS
26431 +#ifdef STDC_HEADERS
26432 # include <stdlib.h>
26433 # include <stddef.h>
26434 #else
26435 -# if HAVE_STDLIB_H
26436 +# ifdef HAVE_STDLIB_H
26437 # include <stdlib.h>
26438 # endif
26439 #endif
26440 -#if HAVE_STRING_H
26441 -# if !STDC_HEADERS && HAVE_MEMORY_H
26442 +#ifdef HAVE_STRING_H
26443 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
26444 # include <memory.h>
26445 # endif
26446 # include <string.h>
26447 #endif
26448 -#if HAVE_STRINGS_H
26449 +#ifdef HAVE_STRINGS_H
26450 # include <strings.h>
26451 #endif
26452 -#if HAVE_INTTYPES_H
26453 +#ifdef HAVE_INTTYPES_H
26454 # include <inttypes.h>
26455 -#else
26456 -# if HAVE_STDINT_H
26457 -# include <stdint.h>
26458 -# endif
26459 #endif
26460 -#if HAVE_UNISTD_H
26461 +#ifdef HAVE_STDINT_H
26462 +# include <stdint.h>
26463 +#endif
26464 +#ifdef HAVE_UNISTD_H
26465 # include <unistd.h>
26466 #endif"
26467
26468 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
26469 +ac_subst_vars='SHELL
26470 +PATH_SEPARATOR
26471 +PACKAGE_NAME
26472 +PACKAGE_TARNAME
26473 +PACKAGE_VERSION
26474 +PACKAGE_STRING
26475 +PACKAGE_BUGREPORT
26476 +exec_prefix
26477 +prefix
26478 +program_transform_name
26479 +bindir
26480 +sbindir
26481 +libexecdir
26482 +datarootdir
26483 +datadir
26484 +sysconfdir
26485 +sharedstatedir
26486 +localstatedir
26487 +includedir
26488 +oldincludedir
26489 +docdir
26490 +infodir
26491 +htmldir
26492 +dvidir
26493 +pdfdir
26494 +psdir
26495 +libdir
26496 +localedir
26497 +mandir
26498 +DEFS
26499 +ECHO_C
26500 +ECHO_N
26501 +ECHO_T
26502 +LIBS
26503 +build_alias
26504 +host_alias
26505 +target_alias
26506 +build
26507 +build_cpu
26508 +build_vendor
26509 +build_os
26510 +host
26511 +host_cpu
26512 +host_vendor
26513 +host_os
26514 +target
26515 +target_cpu
26516 +target_vendor
26517 +target_os
26518 +CC
26519 +CFLAGS
26520 +LDFLAGS
26521 +CPPFLAGS
26522 +ac_ct_CC
26523 +EXEEXT
26524 +OBJEXT
26525 +INSTALL_PROGRAM
26526 +INSTALL_SCRIPT
26527 +INSTALL_DATA
26528 +CYGPATH_W
26529 +PACKAGE
26530 +VERSION
26531 +ACLOCAL
26532 +AUTOCONF
26533 +AUTOMAKE
26534 +AUTOHEADER
26535 +MAKEINFO
26536 +install_sh
26537 +STRIP
26538 +INSTALL_STRIP_PROGRAM
26539 +mkdir_p
26540 +AWK
26541 +SET_MAKE
26542 +am__leading_dot
26543 +AMTAR
26544 +am__tar
26545 +am__untar
26546 +DEPDIR
26547 +am__include
26548 +am__quote
26549 +AMDEP_TRUE
26550 +AMDEP_FALSE
26551 +AMDEPBACKSLASH
26552 +CCDEPMODE
26553 +am__fastdepCC_TRUE
26554 +am__fastdepCC_FALSE
26555 +LN_S
26556 +RANLIB
26557 +LIBTOOL
26558 +WARN_CFLAGS
26559 +NO_WERROR
26560 +YACC
26561 +YFLAGS
26562 +LEX
26563 +LEX_OUTPUT_ROOT
26564 +LEXLIB
26565 +CPP
26566 +GREP
26567 +EGREP
26568 +ALLOCA
26569 +USE_NLS
26570 +MSGFMT
26571 +GMSGFMT
26572 +XGETTEXT
26573 +USE_INCLUDED_LIBINTL
26574 +CATALOGS
26575 +CATOBJEXT
26576 +DATADIRNAME
26577 +GMOFILES
26578 +INSTOBJEXT
26579 +INTLDEPS
26580 +INTLLIBS
26581 +INTLOBJS
26582 +POFILES
26583 +POSUB
26584 +INCLUDE_LOCALE_H
26585 +GT_NO
26586 +GT_YES
26587 +MKINSTALLDIRS
26588 +l
26589 +MAINTAINER_MODE_TRUE
26590 +MAINTAINER_MODE_FALSE
26591 +MAINT
26592 +HDEFINES
26593 +AR
26594 +CC_FOR_BUILD
26595 +EXEEXT_FOR_BUILD
26596 +DEMANGLER_NAME
26597 +NLMCONV_DEFS
26598 +BUILD_NLMCONV
26599 +BUILD_SRCONV
26600 +BUILD_DLLTOOL
26601 +DLLTOOL_DEFS
26602 +BUILD_WINDRES
26603 +BUILD_DLLWRAP
26604 +BUILD_MISC
26605 +OBJDUMP_DEFS
26606 +EMULATION
26607 +EMULATION_VECTOR
26608 +LIBOBJS
26609 +LTLIBOBJS'
26610 ac_subst_files=''
26611 + ac_precious_vars='build_alias
26612 +host_alias
26613 +target_alias
26614 +CC
26615 +CFLAGS
26616 +LDFLAGS
26617 +LIBS
26618 +CPPFLAGS
26619 +YACC
26620 +YFLAGS
26621 +CPP'
26622 +
26623
26624 # Initialize some variables set by options.
26625 ac_init_help=
26626 @@ -337,34 +793,48 @@ x_libraries=NONE
26627 # and all the variables that are supposed to be based on exec_prefix
26628 # by default will actually change.
26629 # Use braces instead of parens because sh, perl, etc. also accept them.
26630 +# (The list follows the same order as the GNU Coding Standards.)
26631 bindir='${exec_prefix}/bin'
26632 sbindir='${exec_prefix}/sbin'
26633 libexecdir='${exec_prefix}/libexec'
26634 -datadir='${prefix}/share'
26635 +datarootdir='${prefix}/share'
26636 +datadir='${datarootdir}'
26637 sysconfdir='${prefix}/etc'
26638 sharedstatedir='${prefix}/com'
26639 localstatedir='${prefix}/var'
26640 -libdir='${exec_prefix}/lib'
26641 includedir='${prefix}/include'
26642 oldincludedir='/usr/include'
26643 -infodir='${prefix}/info'
26644 -mandir='${prefix}/man'
26645 +docdir='${datarootdir}/doc/${PACKAGE}'
26646 +infodir='${datarootdir}/info'
26647 +htmldir='${docdir}'
26648 +dvidir='${docdir}'
26649 +pdfdir='${docdir}'
26650 +psdir='${docdir}'
26651 +libdir='${exec_prefix}/lib'
26652 +localedir='${datarootdir}/locale'
26653 +mandir='${datarootdir}/man'
26654
26655 ac_prev=
26656 +ac_dashdash=
26657 for ac_option
26658 do
26659 # If the previous option needs an argument, assign it.
26660 if test -n "$ac_prev"; then
26661 - eval "$ac_prev=\$ac_option"
26662 + eval $ac_prev=\$ac_option
26663 ac_prev=
26664 continue
26665 fi
26666
26667 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
26668 + case $ac_option in
26669 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
26670 + *) ac_optarg=yes ;;
26671 + esac
26672
26673 # Accept the important Cygnus configure options, so we can diagnose typos.
26674
26675 - case $ac_option in
26676 + case $ac_dashdash$ac_option in
26677 + --)
26678 + ac_dashdash=yes ;;
26679
26680 -bindir | --bindir | --bindi | --bind | --bin | --bi)
26681 ac_prev=bindir ;;
26682 @@ -386,33 +856,45 @@ do
26683 --config-cache | -C)
26684 cache_file=config.cache ;;
26685
26686 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
26687 + -datadir | --datadir | --datadi | --datad)
26688 ac_prev=datadir ;;
26689 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
26690 - | --da=*)
26691 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
26692 datadir=$ac_optarg ;;
26693
26694 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
26695 + | --dataroo | --dataro | --datar)
26696 + ac_prev=datarootdir ;;
26697 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
26698 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
26699 + datarootdir=$ac_optarg ;;
26700 +
26701 -disable-* | --disable-*)
26702 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
26703 # Reject names that are not valid shell variable names.
26704 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26705 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26706 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
26707 { (exit 1); exit 1; }; }
26708 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
26709 - eval "enable_$ac_feature=no" ;;
26710 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
26711 + eval enable_$ac_feature=no ;;
26712 +
26713 + -docdir | --docdir | --docdi | --doc | --do)
26714 + ac_prev=docdir ;;
26715 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
26716 + docdir=$ac_optarg ;;
26717 +
26718 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
26719 + ac_prev=dvidir ;;
26720 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
26721 + dvidir=$ac_optarg ;;
26722
26723 -enable-* | --enable-*)
26724 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
26725 # Reject names that are not valid shell variable names.
26726 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26727 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26728 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
26729 { (exit 1); exit 1; }; }
26730 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
26731 - case $ac_option in
26732 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
26733 - *) ac_optarg=yes ;;
26734 - esac
26735 - eval "enable_$ac_feature='$ac_optarg'" ;;
26736 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
26737 + eval enable_$ac_feature=\$ac_optarg ;;
26738
26739 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
26740 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
26741 @@ -439,6 +921,12 @@ do
26742 -host=* | --host=* | --hos=* | --ho=*)
26743 host_alias=$ac_optarg ;;
26744
26745 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
26746 + ac_prev=htmldir ;;
26747 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
26748 + | --ht=*)
26749 + htmldir=$ac_optarg ;;
26750 +
26751 -includedir | --includedir | --includedi | --included | --include \
26752 | --includ | --inclu | --incl | --inc)
26753 ac_prev=includedir ;;
26754 @@ -463,13 +951,16 @@ do
26755 | --libexe=* | --libex=* | --libe=*)
26756 libexecdir=$ac_optarg ;;
26757
26758 + -localedir | --localedir | --localedi | --localed | --locale)
26759 + ac_prev=localedir ;;
26760 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
26761 + localedir=$ac_optarg ;;
26762 +
26763 -localstatedir | --localstatedir | --localstatedi | --localstated \
26764 - | --localstate | --localstat | --localsta | --localst \
26765 - | --locals | --local | --loca | --loc | --lo)
26766 + | --localstate | --localstat | --localsta | --localst | --locals)
26767 ac_prev=localstatedir ;;
26768 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
26769 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
26770 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
26771 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
26772 localstatedir=$ac_optarg ;;
26773
26774 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
26775 @@ -534,6 +1025,16 @@ do
26776 | --progr-tra=* | --program-tr=* | --program-t=*)
26777 program_transform_name=$ac_optarg ;;
26778
26779 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
26780 + ac_prev=pdfdir ;;
26781 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
26782 + pdfdir=$ac_optarg ;;
26783 +
26784 + -psdir | --psdir | --psdi | --psd | --ps)
26785 + ac_prev=psdir ;;
26786 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
26787 + psdir=$ac_optarg ;;
26788 +
26789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26790 | -silent | --silent | --silen | --sile | --sil)
26791 silent=yes ;;
26792 @@ -586,24 +1087,20 @@ do
26793 -with-* | --with-*)
26794 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
26795 # Reject names that are not valid shell variable names.
26796 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26797 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26798 { echo "$as_me: error: invalid package name: $ac_package" >&2
26799 { (exit 1); exit 1; }; }
26800 - ac_package=`echo $ac_package| sed 's/-/_/g'`
26801 - case $ac_option in
26802 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
26803 - *) ac_optarg=yes ;;
26804 - esac
26805 - eval "with_$ac_package='$ac_optarg'" ;;
26806 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
26807 + eval with_$ac_package=\$ac_optarg ;;
26808
26809 -without-* | --without-*)
26810 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
26811 # Reject names that are not valid shell variable names.
26812 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26813 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26814 { echo "$as_me: error: invalid package name: $ac_package" >&2
26815 { (exit 1); exit 1; }; }
26816 - ac_package=`echo $ac_package | sed 's/-/_/g'`
26817 - eval "with_$ac_package=no" ;;
26818 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
26819 + eval with_$ac_package=no ;;
26820
26821 --x)
26822 # Obsolete; use --with-x.
26823 @@ -634,8 +1131,7 @@ Try \`$0 --help' for more information."
26824 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
26825 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
26826 { (exit 1); exit 1; }; }
26827 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
26828 - eval "$ac_envvar='$ac_optarg'"
26829 + eval $ac_envvar=\$ac_optarg
26830 export $ac_envvar ;;
26831
26832 *)
26833 @@ -655,27 +1151,19 @@ if test -n "$ac_prev"; then
26834 { (exit 1); exit 1; }; }
26835 fi
26836
26837 -# Be sure to have absolute paths.
26838 -for ac_var in exec_prefix prefix
26839 -do
26840 - eval ac_val=$`echo $ac_var`
26841 - case $ac_val in
26842 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
26843 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
26844 - { (exit 1); exit 1; }; };;
26845 - esac
26846 -done
26847 -
26848 -# Be sure to have absolute paths.
26849 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
26850 - localstatedir libdir includedir oldincludedir infodir mandir
26851 +# Be sure to have absolute directory names.
26852 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
26853 + datadir sysconfdir sharedstatedir localstatedir includedir \
26854 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
26855 + libdir localedir mandir
26856 do
26857 - eval ac_val=$`echo $ac_var`
26858 + eval ac_val=\$$ac_var
26859 case $ac_val in
26860 - [\\/$]* | ?:[\\/]* ) ;;
26861 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
26862 - { (exit 1); exit 1; }; };;
26863 + [\\/$]* | ?:[\\/]* ) continue;;
26864 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
26865 esac
26866 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
26867 + { (exit 1); exit 1; }; }
26868 done
26869
26870 # There might be people who depend on the old broken behavior: `$host'
26871 @@ -702,74 +1190,76 @@ test -n "$host_alias" && ac_tool_prefix=
26872 test "$silent" = yes && exec 6>/dev/null
26873
26874
26875 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
26876 +ac_ls_di=`ls -di .` &&
26877 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
26878 + { echo "$as_me: error: Working directory cannot be determined" >&2
26879 + { (exit 1); exit 1; }; }
26880 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
26881 + { echo "$as_me: error: pwd does not report name of working directory" >&2
26882 + { (exit 1); exit 1; }; }
26883 +
26884 +
26885 # Find the source files, if location was not specified.
26886 if test -z "$srcdir"; then
26887 ac_srcdir_defaulted=yes
26888 - # Try the directory containing this script, then its parent.
26889 - ac_confdir=`(dirname "$0") 2>/dev/null ||
26890 + # Try the directory containing this script, then the parent directory.
26891 + ac_confdir=`$as_dirname -- "$0" ||
26892 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26893 X"$0" : 'X\(//\)[^/]' \| \
26894 X"$0" : 'X\(//\)$' \| \
26895 - X"$0" : 'X\(/\)' \| \
26896 - . : '\(.\)' 2>/dev/null ||
26897 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26898 echo X"$0" |
26899 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26900 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26901 - /^X\(\/\/\)$/{ s//\1/; q; }
26902 - /^X\(\/\).*/{ s//\1/; q; }
26903 - s/.*/./; q'`
26904 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26905 + s//\1/
26906 + q
26907 + }
26908 + /^X\(\/\/\)[^/].*/{
26909 + s//\1/
26910 + q
26911 + }
26912 + /^X\(\/\/\)$/{
26913 + s//\1/
26914 + q
26915 + }
26916 + /^X\(\/\).*/{
26917 + s//\1/
26918 + q
26919 + }
26920 + s/.*/./; q'`
26921 srcdir=$ac_confdir
26922 - if test ! -r $srcdir/$ac_unique_file; then
26923 + if test ! -r "$srcdir/$ac_unique_file"; then
26924 srcdir=..
26925 fi
26926 else
26927 ac_srcdir_defaulted=no
26928 fi
26929 -if test ! -r $srcdir/$ac_unique_file; then
26930 - if test "$ac_srcdir_defaulted" = yes; then
26931 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
26932 - { (exit 1); exit 1; }; }
26933 - else
26934 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
26935 - { (exit 1); exit 1; }; }
26936 - fi
26937 -fi
26938 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
26939 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
26940 - { (exit 1); exit 1; }; }
26941 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
26942 -ac_env_build_alias_set=${build_alias+set}
26943 -ac_env_build_alias_value=$build_alias
26944 -ac_cv_env_build_alias_set=${build_alias+set}
26945 -ac_cv_env_build_alias_value=$build_alias
26946 -ac_env_host_alias_set=${host_alias+set}
26947 -ac_env_host_alias_value=$host_alias
26948 -ac_cv_env_host_alias_set=${host_alias+set}
26949 -ac_cv_env_host_alias_value=$host_alias
26950 -ac_env_target_alias_set=${target_alias+set}
26951 -ac_env_target_alias_value=$target_alias
26952 -ac_cv_env_target_alias_set=${target_alias+set}
26953 -ac_cv_env_target_alias_value=$target_alias
26954 -ac_env_CC_set=${CC+set}
26955 -ac_env_CC_value=$CC
26956 -ac_cv_env_CC_set=${CC+set}
26957 -ac_cv_env_CC_value=$CC
26958 -ac_env_CFLAGS_set=${CFLAGS+set}
26959 -ac_env_CFLAGS_value=$CFLAGS
26960 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
26961 -ac_cv_env_CFLAGS_value=$CFLAGS
26962 -ac_env_LDFLAGS_set=${LDFLAGS+set}
26963 -ac_env_LDFLAGS_value=$LDFLAGS
26964 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
26965 -ac_cv_env_LDFLAGS_value=$LDFLAGS
26966 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
26967 -ac_env_CPPFLAGS_value=$CPPFLAGS
26968 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
26969 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
26970 -ac_env_CPP_set=${CPP+set}
26971 -ac_env_CPP_value=$CPP
26972 -ac_cv_env_CPP_set=${CPP+set}
26973 -ac_cv_env_CPP_value=$CPP
26974 +if test ! -r "$srcdir/$ac_unique_file"; then
26975 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
26976 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
26977 + { (exit 1); exit 1; }; }
26978 +fi
26979 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
26980 +ac_abs_confdir=`(
26981 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
26982 + { (exit 1); exit 1; }; }
26983 + pwd)`
26984 +# When building in place, set srcdir=.
26985 +if test "$ac_abs_confdir" = "$ac_pwd"; then
26986 + srcdir=.
26987 +fi
26988 +# Remove unnecessary trailing slashes from srcdir.
26989 +# Double slashes in file names in object file debugging info
26990 +# mess up M-x gdb in Emacs.
26991 +case $srcdir in
26992 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
26993 +esac
26994 +for ac_var in $ac_precious_vars; do
26995 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
26996 + eval ac_env_${ac_var}_value=\$${ac_var}
26997 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
26998 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
26999 +done
27000
27001 #
27002 # Report the --help message.
27003 @@ -798,9 +1288,6 @@ Configuration:
27004 -n, --no-create do not create output files
27005 --srcdir=DIR find the sources in DIR [configure dir or \`..']
27006
27007 -_ACEOF
27008 -
27009 - cat <<_ACEOF
27010 Installation directories:
27011 --prefix=PREFIX install architecture-independent files in PREFIX
27012 [$ac_default_prefix]
27013 @@ -818,15 +1305,22 @@ Fine tuning of the installation director
27014 --bindir=DIR user executables [EPREFIX/bin]
27015 --sbindir=DIR system admin executables [EPREFIX/sbin]
27016 --libexecdir=DIR program executables [EPREFIX/libexec]
27017 - --datadir=DIR read-only architecture-independent data [PREFIX/share]
27018 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
27019 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
27020 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
27021 --libdir=DIR object code libraries [EPREFIX/lib]
27022 --includedir=DIR C header files [PREFIX/include]
27023 --oldincludedir=DIR C header files for non-gcc [/usr/include]
27024 - --infodir=DIR info documentation [PREFIX/info]
27025 - --mandir=DIR man documentation [PREFIX/man]
27026 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
27027 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
27028 + --infodir=DIR info documentation [DATAROOTDIR/info]
27029 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
27030 + --mandir=DIR man documentation [DATAROOTDIR/man]
27031 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
27032 + --htmldir=DIR html documentation [DOCDIR]
27033 + --dvidir=DIR dvi documentation [DOCDIR]
27034 + --pdfdir=DIR pdf documentation [DOCDIR]
27035 + --psdir=DIR ps documentation [DOCDIR]
27036 _ACEOF
27037
27038 cat <<\_ACEOF
27039 @@ -876,126 +1370,100 @@ Some influential environment variables:
27040 CFLAGS C compiler flags
27041 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
27042 nonstandard directory <lib dir>
27043 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
27044 - headers in a nonstandard directory <include dir>
27045 + LIBS libraries to pass to the linker, e.g. -l<library>
27046 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
27047 + you have headers in a nonstandard directory <include dir>
27048 + YACC The `Yet Another C Compiler' implementation to use. Defaults to
27049 + the first program found out of: `bison -y', `byacc', `yacc'.
27050 + YFLAGS The list of arguments that will be passed by default to $YACC.
27051 + This script will default YFLAGS to the empty string to avoid a
27052 + default value of `-d' given by some make applications.
27053 CPP C preprocessor
27054
27055 Use these variables to override the choices made by `configure' or to help
27056 it to find libraries and programs with nonstandard names/locations.
27057
27058 _ACEOF
27059 +ac_status=$?
27060 fi
27061
27062 if test "$ac_init_help" = "recursive"; then
27063 # If there are subdirs, report their specific --help.
27064 - ac_popdir=`pwd`
27065 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
27066 - test -d $ac_dir || continue
27067 + test -d "$ac_dir" || continue
27068 ac_builddir=.
27069
27070 -if test "$ac_dir" != .; then
27071 +case "$ac_dir" in
27072 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27073 +*)
27074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27075 - # A "../" for each directory in $ac_dir_suffix.
27076 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27077 -else
27078 - ac_dir_suffix= ac_top_builddir=
27079 -fi
27080 + # A ".." for each directory in $ac_dir_suffix.
27081 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27082 + case $ac_top_builddir_sub in
27083 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27084 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27085 + esac ;;
27086 +esac
27087 +ac_abs_top_builddir=$ac_pwd
27088 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
27089 +# for backward compatibility:
27090 +ac_top_builddir=$ac_top_build_prefix
27091
27092 case $srcdir in
27093 - .) # No --srcdir option. We are building in place.
27094 + .) # We are building in place.
27095 ac_srcdir=.
27096 - if test -z "$ac_top_builddir"; then
27097 - ac_top_srcdir=.
27098 - else
27099 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27100 - fi ;;
27101 - [\\/]* | ?:[\\/]* ) # Absolute path.
27102 + ac_top_srcdir=$ac_top_builddir_sub
27103 + ac_abs_top_srcdir=$ac_pwd ;;
27104 + [\\/]* | ?:[\\/]* ) # Absolute name.
27105 ac_srcdir=$srcdir$ac_dir_suffix;
27106 - ac_top_srcdir=$srcdir ;;
27107 - *) # Relative path.
27108 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27109 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
27110 -esac
27111 -
27112 -# Do not use `cd foo && pwd` to compute absolute paths, because
27113 -# the directories may not exist.
27114 -case `pwd` in
27115 -.) ac_abs_builddir="$ac_dir";;
27116 -*)
27117 - case "$ac_dir" in
27118 - .) ac_abs_builddir=`pwd`;;
27119 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27120 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
27121 - esac;;
27122 -esac
27123 -case $ac_abs_builddir in
27124 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
27125 -*)
27126 - case ${ac_top_builddir}. in
27127 - .) ac_abs_top_builddir=$ac_abs_builddir;;
27128 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27129 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27130 - esac;;
27131 -esac
27132 -case $ac_abs_builddir in
27133 -.) ac_abs_srcdir=$ac_srcdir;;
27134 -*)
27135 - case $ac_srcdir in
27136 - .) ac_abs_srcdir=$ac_abs_builddir;;
27137 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27138 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27139 - esac;;
27140 -esac
27141 -case $ac_abs_builddir in
27142 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
27143 -*)
27144 - case $ac_top_srcdir in
27145 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
27146 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27147 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27148 - esac;;
27149 -esac
27150 -
27151 - cd $ac_dir
27152 - # Check for guested configure; otherwise get Cygnus style configure.
27153 - if test -f $ac_srcdir/configure.gnu; then
27154 - echo
27155 - $SHELL $ac_srcdir/configure.gnu --help=recursive
27156 - elif test -f $ac_srcdir/configure; then
27157 - echo
27158 - $SHELL $ac_srcdir/configure --help=recursive
27159 - elif test -f $ac_srcdir/configure.ac ||
27160 - test -f $ac_srcdir/configure.in; then
27161 - echo
27162 - $ac_configure --help
27163 + ac_top_srcdir=$srcdir
27164 + ac_abs_top_srcdir=$srcdir ;;
27165 + *) # Relative name.
27166 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27167 + ac_top_srcdir=$ac_top_build_prefix$srcdir
27168 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27169 +esac
27170 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27171 +
27172 + cd "$ac_dir" || { ac_status=$?; continue; }
27173 + # Check for guested configure.
27174 + if test -f "$ac_srcdir/configure.gnu"; then
27175 + echo &&
27176 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
27177 + elif test -f "$ac_srcdir/configure"; then
27178 + echo &&
27179 + $SHELL "$ac_srcdir/configure" --help=recursive
27180 else
27181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
27182 - fi
27183 - cd $ac_popdir
27184 + fi || ac_status=$?
27185 + cd "$ac_pwd" || { ac_status=$?; break; }
27186 done
27187 fi
27188
27189 -test -n "$ac_init_help" && exit 0
27190 +test -n "$ac_init_help" && exit $ac_status
27191 if $ac_init_version; then
27192 cat <<\_ACEOF
27193 +configure
27194 +generated by GNU Autoconf 2.61
27195
27196 -Copyright (C) 2003 Free Software Foundation, Inc.
27197 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
27198 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
27199 This configure script is free software; the Free Software Foundation
27200 gives unlimited permission to copy, distribute and modify it.
27201 _ACEOF
27202 - exit 0
27203 + exit
27204 fi
27205 -exec 5>config.log
27206 -cat >&5 <<_ACEOF
27207 +cat >config.log <<_ACEOF
27208 This file contains any messages produced by compilers while
27209 running configure, to aid debugging if configure makes a mistake.
27210
27211 It was created by $as_me, which was
27212 -generated by GNU Autoconf 2.59. Invocation command line was
27213 +generated by GNU Autoconf 2.61. Invocation command line was
27214
27215 $ $0 $@
27216
27217 _ACEOF
27218 +exec 5>>config.log
27219 {
27220 cat <<_ASUNAME
27221 ## --------- ##
27222 @@ -1014,7 +1482,7 @@ uname -v = `(uname -v) 2>/dev/null || ec
27223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
27224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
27225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
27226 -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
27227 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
27228 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
27229 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
27230 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
27231 @@ -1028,6 +1496,7 @@ do
27232 test -z "$as_dir" && as_dir=.
27233 echo "PATH: $as_dir"
27234 done
27235 +IFS=$as_save_IFS
27236
27237 } >&5
27238
27239 @@ -1049,7 +1518,6 @@ _ACEOF
27240 ac_configure_args=
27241 ac_configure_args0=
27242 ac_configure_args1=
27243 -ac_sep=
27244 ac_must_keep_next=false
27245 for ac_pass in 1 2
27246 do
27247 @@ -1060,7 +1528,7 @@ do
27248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27249 | -silent | --silent | --silen | --sile | --sil)
27250 continue ;;
27251 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
27252 + *\'*)
27253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27254 esac
27255 case $ac_pass in
27256 @@ -1082,9 +1550,7 @@ do
27257 -* ) ac_must_keep_next=true ;;
27258 esac
27259 fi
27260 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
27261 - # Get rid of the leading space.
27262 - ac_sep=" "
27263 + ac_configure_args="$ac_configure_args '$ac_arg'"
27264 ;;
27265 esac
27266 done
27267 @@ -1095,8 +1561,8 @@ $as_unset ac_configure_args1 || test "${
27268 # When interrupted or exit'd, cleanup temporary files, and complete
27269 # config.log. We remove comments because anyway the quotes in there
27270 # would cause problems or look ugly.
27271 -# WARNING: Be sure not to use single quotes in there, as some shells,
27272 -# such as our DU 5.0 friend, will then `close' the trap.
27273 +# WARNING: Use '\'' to represent an apostrophe within the trap.
27274 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
27275 trap 'exit_status=$?
27276 # Save into config.log some information that might help in debugging.
27277 {
27278 @@ -1109,20 +1575,34 @@ trap 'exit_status=$?
27279 _ASBOX
27280 echo
27281 # The following way of writing the cache mishandles newlines in values,
27282 -{
27283 +(
27284 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
27285 + eval ac_val=\$$ac_var
27286 + case $ac_val in #(
27287 + *${as_nl}*)
27288 + case $ac_var in #(
27289 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27290 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27291 + esac
27292 + case $ac_var in #(
27293 + _ | IFS | as_nl) ;; #(
27294 + *) $as_unset $ac_var ;;
27295 + esac ;;
27296 + esac
27297 + done
27298 (set) 2>&1 |
27299 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
27300 - *ac_space=\ *)
27301 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
27302 + *${as_nl}ac_space=\ *)
27303 sed -n \
27304 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
27305 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
27306 - ;;
27307 + "s/'\''/'\''\\\\'\'''\''/g;
27308 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
27309 + ;; #(
27310 *)
27311 - sed -n \
27312 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27313 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27314 ;;
27315 - esac;
27316 -}
27317 + esac |
27318 + sort
27319 +)
27320 echo
27321
27322 cat <<\_ASBOX
27323 @@ -1133,22 +1613,28 @@ _ASBOX
27324 echo
27325 for ac_var in $ac_subst_vars
27326 do
27327 - eval ac_val=$`echo $ac_var`
27328 - echo "$ac_var='"'"'$ac_val'"'"'"
27329 + eval ac_val=\$$ac_var
27330 + case $ac_val in
27331 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
27332 + esac
27333 + echo "$ac_var='\''$ac_val'\''"
27334 done | sort
27335 echo
27336
27337 if test -n "$ac_subst_files"; then
27338 cat <<\_ASBOX
27339 -## ------------- ##
27340 -## Output files. ##
27341 -## ------------- ##
27342 +## ------------------- ##
27343 +## File substitutions. ##
27344 +## ------------------- ##
27345 _ASBOX
27346 echo
27347 for ac_var in $ac_subst_files
27348 do
27349 - eval ac_val=$`echo $ac_var`
27350 - echo "$ac_var='"'"'$ac_val'"'"'"
27351 + eval ac_val=\$$ac_var
27352 + case $ac_val in
27353 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
27354 + esac
27355 + echo "$ac_var='\''$ac_val'\''"
27356 done | sort
27357 echo
27358 fi
27359 @@ -1160,26 +1646,24 @@ _ASBOX
27360 ## ----------- ##
27361 _ASBOX
27362 echo
27363 - sed "/^$/d" confdefs.h | sort
27364 + cat confdefs.h
27365 echo
27366 fi
27367 test "$ac_signal" != 0 &&
27368 echo "$as_me: caught signal $ac_signal"
27369 echo "$as_me: exit $exit_status"
27370 } >&5
27371 - rm -f core *.core &&
27372 - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
27373 + rm -f core *.core core.conftest.* &&
27374 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
27375 exit $exit_status
27376 - ' 0
27377 +' 0
27378 for ac_signal in 1 2 13 15; do
27379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
27380 done
27381 ac_signal=0
27382
27383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
27384 -rm -rf conftest* confdefs.h
27385 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
27386 -echo >confdefs.h
27387 +rm -f -r conftest* confdefs.h
27388
27389 # Predefined preprocessor variables.
27390
27391 @@ -1210,14 +1694,17 @@ _ACEOF
27392
27393 # Let the site file select an alternate cache file if it wants to.
27394 # Prefer explicitly selected file to automatically selected ones.
27395 -if test -z "$CONFIG_SITE"; then
27396 - if test "x$prefix" != xNONE; then
27397 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
27398 - else
27399 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
27400 - fi
27401 +if test -n "$CONFIG_SITE"; then
27402 + set x "$CONFIG_SITE"
27403 +elif test "x$prefix" != xNONE; then
27404 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
27405 +else
27406 + set x "$ac_default_prefix/share/config.site" \
27407 + "$ac_default_prefix/etc/config.site"
27408 fi
27409 -for ac_site_file in $CONFIG_SITE; do
27410 +shift
27411 +for ac_site_file
27412 +do
27413 if test -r "$ac_site_file"; then
27414 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
27415 echo "$as_me: loading site script $ac_site_file" >&6;}
27416 @@ -1233,8 +1720,8 @@ if test -r "$cache_file"; then
27417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
27418 echo "$as_me: loading cache $cache_file" >&6;}
27419 case $cache_file in
27420 - [\\/]* | ?:[\\/]* ) . $cache_file;;
27421 - *) . ./$cache_file;;
27422 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
27423 + *) . "./$cache_file";;
27424 esac
27425 fi
27426 else
27427 @@ -1246,12 +1733,11 @@ fi
27428 # Check that the precious variables saved in the cache have kept the same
27429 # value.
27430 ac_cache_corrupted=false
27431 -for ac_var in `(set) 2>&1 |
27432 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
27433 +for ac_var in $ac_precious_vars; do
27434 eval ac_old_set=\$ac_cv_env_${ac_var}_set
27435 eval ac_new_set=\$ac_env_${ac_var}_set
27436 - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
27437 - eval ac_new_val="\$ac_env_${ac_var}_value"
27438 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
27439 + eval ac_new_val=\$ac_env_${ac_var}_value
27440 case $ac_old_set,$ac_new_set in
27441 set,)
27442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
27443 @@ -1276,8 +1762,7 @@ echo "$as_me: current value: $ac_new_v
27444 # Pass precious variables to config.status.
27445 if test "$ac_new_set" = set; then
27446 case $ac_new_val in
27447 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
27448 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
27449 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
27450 *) ac_arg=$ac_var=$ac_new_val ;;
27451 esac
27452 case " $ac_configure_args " in
27453 @@ -1294,12 +1779,6 @@ echo "$as_me: error: run \`make distclea
27454 { (exit 1); exit 1; }; }
27455 fi
27456
27457 -ac_ext=c
27458 -ac_cpp='$CPP $CPPFLAGS'
27459 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27460 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27461 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
27462 -
27463
27464
27465
27466 @@ -1316,108 +1795,163 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
27467
27468
27469
27470 +ac_ext=c
27471 +ac_cpp='$CPP $CPPFLAGS'
27472 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27473 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27474 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
27475
27476
27477
27478 ac_aux_dir=
27479 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
27480 - if test -f $ac_dir/install-sh; then
27481 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
27482 + if test -f "$ac_dir/install-sh"; then
27483 ac_aux_dir=$ac_dir
27484 ac_install_sh="$ac_aux_dir/install-sh -c"
27485 break
27486 - elif test -f $ac_dir/install.sh; then
27487 + elif test -f "$ac_dir/install.sh"; then
27488 ac_aux_dir=$ac_dir
27489 ac_install_sh="$ac_aux_dir/install.sh -c"
27490 break
27491 - elif test -f $ac_dir/shtool; then
27492 + elif test -f "$ac_dir/shtool"; then
27493 ac_aux_dir=$ac_dir
27494 ac_install_sh="$ac_aux_dir/shtool install -c"
27495 break
27496 fi
27497 done
27498 if test -z "$ac_aux_dir"; then
27499 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
27500 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
27501 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
27502 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
27503 { (exit 1); exit 1; }; }
27504 fi
27505 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
27506 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
27507 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
27508 +
27509 +# These three variables are undocumented and unsupported,
27510 +# and are intended to be withdrawn in a future Autoconf release.
27511 +# They can cause serious problems if a builder's source tree is in a directory
27512 +# whose full name contains unusual characters.
27513 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
27514 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
27515 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
27516 +
27517
27518 # Make sure we can run config.sub.
27519 -$ac_config_sub sun4 >/dev/null 2>&1 ||
27520 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
27521 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
27522 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
27523 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
27524 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
27525 { (exit 1); exit 1; }; }
27526
27527 -echo "$as_me:$LINENO: checking build system type" >&5
27528 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
27529 +{ echo "$as_me:$LINENO: checking build system type" >&5
27530 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
27531 if test "${ac_cv_build+set}" = set; then
27532 echo $ECHO_N "(cached) $ECHO_C" >&6
27533 else
27534 - ac_cv_build_alias=$build_alias
27535 -test -z "$ac_cv_build_alias" &&
27536 - ac_cv_build_alias=`$ac_config_guess`
27537 -test -z "$ac_cv_build_alias" &&
27538 + ac_build_alias=$build_alias
27539 +test "x$ac_build_alias" = x &&
27540 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
27541 +test "x$ac_build_alias" = x &&
27542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
27543 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
27544 { (exit 1); exit 1; }; }
27545 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
27546 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
27547 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
27548 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
27549 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
27550 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
27551 { (exit 1); exit 1; }; }
27552
27553 fi
27554 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
27555 -echo "${ECHO_T}$ac_cv_build" >&6
27556 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
27557 +echo "${ECHO_T}$ac_cv_build" >&6; }
27558 +case $ac_cv_build in
27559 +*-*-*) ;;
27560 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
27561 +echo "$as_me: error: invalid value of canonical build" >&2;}
27562 + { (exit 1); exit 1; }; };;
27563 +esac
27564 build=$ac_cv_build
27565 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
27566 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
27567 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
27568 +ac_save_IFS=$IFS; IFS='-'
27569 +set x $ac_cv_build
27570 +shift
27571 +build_cpu=$1
27572 +build_vendor=$2
27573 +shift; shift
27574 +# Remember, the first character of IFS is used to create $*,
27575 +# except with old shells:
27576 +build_os=$*
27577 +IFS=$ac_save_IFS
27578 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
27579
27580
27581 -echo "$as_me:$LINENO: checking host system type" >&5
27582 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
27583 +{ echo "$as_me:$LINENO: checking host system type" >&5
27584 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
27585 if test "${ac_cv_host+set}" = set; then
27586 echo $ECHO_N "(cached) $ECHO_C" >&6
27587 else
27588 - ac_cv_host_alias=$host_alias
27589 -test -z "$ac_cv_host_alias" &&
27590 - ac_cv_host_alias=$ac_cv_build_alias
27591 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
27592 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
27593 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
27594 + if test "x$host_alias" = x; then
27595 + ac_cv_host=$ac_cv_build
27596 +else
27597 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
27598 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
27599 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
27600 { (exit 1); exit 1; }; }
27601 +fi
27602
27603 fi
27604 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
27605 -echo "${ECHO_T}$ac_cv_host" >&6
27606 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
27607 +echo "${ECHO_T}$ac_cv_host" >&6; }
27608 +case $ac_cv_host in
27609 +*-*-*) ;;
27610 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
27611 +echo "$as_me: error: invalid value of canonical host" >&2;}
27612 + { (exit 1); exit 1; }; };;
27613 +esac
27614 host=$ac_cv_host
27615 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
27616 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
27617 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
27618 +ac_save_IFS=$IFS; IFS='-'
27619 +set x $ac_cv_host
27620 +shift
27621 +host_cpu=$1
27622 +host_vendor=$2
27623 +shift; shift
27624 +# Remember, the first character of IFS is used to create $*,
27625 +# except with old shells:
27626 +host_os=$*
27627 +IFS=$ac_save_IFS
27628 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
27629
27630
27631 -echo "$as_me:$LINENO: checking target system type" >&5
27632 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
27633 +{ echo "$as_me:$LINENO: checking target system type" >&5
27634 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
27635 if test "${ac_cv_target+set}" = set; then
27636 echo $ECHO_N "(cached) $ECHO_C" >&6
27637 else
27638 - ac_cv_target_alias=$target_alias
27639 -test "x$ac_cv_target_alias" = "x" &&
27640 - ac_cv_target_alias=$ac_cv_host_alias
27641 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
27642 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
27643 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
27644 + if test "x$target_alias" = x; then
27645 + ac_cv_target=$ac_cv_host
27646 +else
27647 + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
27648 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
27649 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
27650 { (exit 1); exit 1; }; }
27651 +fi
27652
27653 fi
27654 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
27655 -echo "${ECHO_T}$ac_cv_target" >&6
27656 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
27657 +echo "${ECHO_T}$ac_cv_target" >&6; }
27658 +case $ac_cv_target in
27659 +*-*-*) ;;
27660 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
27661 +echo "$as_me: error: invalid value of canonical target" >&2;}
27662 + { (exit 1); exit 1; }; };;
27663 +esac
27664 target=$ac_cv_target
27665 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
27666 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
27667 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
27668 +ac_save_IFS=$IFS; IFS='-'
27669 +set x $ac_cv_target
27670 +shift
27671 +target_cpu=$1
27672 +target_vendor=$2
27673 +shift; shift
27674 +# Remember, the first character of IFS is used to create $*,
27675 +# except with old shells:
27676 +target_os=$*
27677 +IFS=$ac_save_IFS
27678 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
27679
27680
27681 # The aliases save the names the user supplied, while $host etc.
27682 @@ -1434,8 +1968,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
27683 if test -n "$ac_tool_prefix"; then
27684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
27686 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27687 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27688 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27689 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27690 if test "${ac_cv_prog_CC+set}" = set; then
27691 echo $ECHO_N "(cached) $ECHO_C" >&6
27692 else
27693 @@ -1448,32 +1982,34 @@ do
27694 IFS=$as_save_IFS
27695 test -z "$as_dir" && as_dir=.
27696 for ac_exec_ext in '' $ac_executable_extensions; do
27697 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27698 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
27700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27701 break 2
27702 fi
27703 done
27704 done
27705 +IFS=$as_save_IFS
27706
27707 fi
27708 fi
27709 CC=$ac_cv_prog_CC
27710 if test -n "$CC"; then
27711 - echo "$as_me:$LINENO: result: $CC" >&5
27712 -echo "${ECHO_T}$CC" >&6
27713 + { echo "$as_me:$LINENO: result: $CC" >&5
27714 +echo "${ECHO_T}$CC" >&6; }
27715 else
27716 - echo "$as_me:$LINENO: result: no" >&5
27717 -echo "${ECHO_T}no" >&6
27718 + { echo "$as_me:$LINENO: result: no" >&5
27719 +echo "${ECHO_T}no" >&6; }
27720 fi
27721
27722 +
27723 fi
27724 if test -z "$ac_cv_prog_CC"; then
27725 ac_ct_CC=$CC
27726 # Extract the first word of "gcc", so it can be a program name with args.
27727 set dummy gcc; ac_word=$2
27728 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27729 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27730 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27731 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27733 echo $ECHO_N "(cached) $ECHO_C" >&6
27734 else
27735 @@ -1486,36 +2022,51 @@ do
27736 IFS=$as_save_IFS
27737 test -z "$as_dir" && as_dir=.
27738 for ac_exec_ext in '' $ac_executable_extensions; do
27739 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27740 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27741 ac_cv_prog_ac_ct_CC="gcc"
27742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27743 break 2
27744 fi
27745 done
27746 done
27747 +IFS=$as_save_IFS
27748
27749 fi
27750 fi
27751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
27752 if test -n "$ac_ct_CC"; then
27753 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27754 -echo "${ECHO_T}$ac_ct_CC" >&6
27755 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27756 +echo "${ECHO_T}$ac_ct_CC" >&6; }
27757 else
27758 - echo "$as_me:$LINENO: result: no" >&5
27759 -echo "${ECHO_T}no" >&6
27760 + { echo "$as_me:$LINENO: result: no" >&5
27761 +echo "${ECHO_T}no" >&6; }
27762 fi
27763
27764 - CC=$ac_ct_CC
27765 + if test "x$ac_ct_CC" = x; then
27766 + CC=""
27767 + else
27768 + case $cross_compiling:$ac_tool_warned in
27769 +yes:)
27770 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27771 +whose name does not start with the host triplet. If you think this
27772 +configuration is useful to you, please write to autoconf@gnu.org." >&5
27773 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27774 +whose name does not start with the host triplet. If you think this
27775 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27776 +ac_tool_warned=yes ;;
27777 +esac
27778 + CC=$ac_ct_CC
27779 + fi
27780 else
27781 CC="$ac_cv_prog_CC"
27782 fi
27783
27784 if test -z "$CC"; then
27785 - if test -n "$ac_tool_prefix"; then
27786 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27787 + if test -n "$ac_tool_prefix"; then
27788 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27789 set dummy ${ac_tool_prefix}cc; ac_word=$2
27790 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27791 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27792 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27793 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27794 if test "${ac_cv_prog_CC+set}" = set; then
27795 echo $ECHO_N "(cached) $ECHO_C" >&6
27796 else
27797 @@ -1528,74 +2079,34 @@ do
27798 IFS=$as_save_IFS
27799 test -z "$as_dir" && as_dir=.
27800 for ac_exec_ext in '' $ac_executable_extensions; do
27801 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27802 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27803 ac_cv_prog_CC="${ac_tool_prefix}cc"
27804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27805 break 2
27806 fi
27807 done
27808 done
27809 +IFS=$as_save_IFS
27810
27811 fi
27812 fi
27813 CC=$ac_cv_prog_CC
27814 if test -n "$CC"; then
27815 - echo "$as_me:$LINENO: result: $CC" >&5
27816 -echo "${ECHO_T}$CC" >&6
27817 -else
27818 - echo "$as_me:$LINENO: result: no" >&5
27819 -echo "${ECHO_T}no" >&6
27820 -fi
27821 -
27822 -fi
27823 -if test -z "$ac_cv_prog_CC"; then
27824 - ac_ct_CC=$CC
27825 - # Extract the first word of "cc", so it can be a program name with args.
27826 -set dummy cc; ac_word=$2
27827 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27828 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27829 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27830 - echo $ECHO_N "(cached) $ECHO_C" >&6
27831 -else
27832 - if test -n "$ac_ct_CC"; then
27833 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27834 -else
27835 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27836 -for as_dir in $PATH
27837 -do
27838 - IFS=$as_save_IFS
27839 - test -z "$as_dir" && as_dir=.
27840 - for ac_exec_ext in '' $ac_executable_extensions; do
27841 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27842 - ac_cv_prog_ac_ct_CC="cc"
27843 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27844 - break 2
27845 - fi
27846 -done
27847 -done
27848 -
27849 -fi
27850 -fi
27851 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
27852 -if test -n "$ac_ct_CC"; then
27853 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27854 -echo "${ECHO_T}$ac_ct_CC" >&6
27855 + { echo "$as_me:$LINENO: result: $CC" >&5
27856 +echo "${ECHO_T}$CC" >&6; }
27857 else
27858 - echo "$as_me:$LINENO: result: no" >&5
27859 -echo "${ECHO_T}no" >&6
27860 + { echo "$as_me:$LINENO: result: no" >&5
27861 +echo "${ECHO_T}no" >&6; }
27862 fi
27863
27864 - CC=$ac_ct_CC
27865 -else
27866 - CC="$ac_cv_prog_CC"
27867 -fi
27868
27869 + fi
27870 fi
27871 if test -z "$CC"; then
27872 # Extract the first word of "cc", so it can be a program name with args.
27873 set dummy cc; ac_word=$2
27874 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27875 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27876 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27877 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27878 if test "${ac_cv_prog_CC+set}" = set; then
27879 echo $ECHO_N "(cached) $ECHO_C" >&6
27880 else
27881 @@ -1609,7 +2120,7 @@ do
27882 IFS=$as_save_IFS
27883 test -z "$as_dir" && as_dir=.
27884 for ac_exec_ext in '' $ac_executable_extensions; do
27885 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27886 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27887 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
27888 ac_prog_rejected=yes
27889 continue
27890 @@ -1620,6 +2131,7 @@ do
27891 fi
27892 done
27893 done
27894 +IFS=$as_save_IFS
27895
27896 if test $ac_prog_rejected = yes; then
27897 # We found a bogon in the path, so make sure we never use it.
27898 @@ -1637,22 +2149,23 @@ fi
27899 fi
27900 CC=$ac_cv_prog_CC
27901 if test -n "$CC"; then
27902 - echo "$as_me:$LINENO: result: $CC" >&5
27903 -echo "${ECHO_T}$CC" >&6
27904 + { echo "$as_me:$LINENO: result: $CC" >&5
27905 +echo "${ECHO_T}$CC" >&6; }
27906 else
27907 - echo "$as_me:$LINENO: result: no" >&5
27908 -echo "${ECHO_T}no" >&6
27909 + { echo "$as_me:$LINENO: result: no" >&5
27910 +echo "${ECHO_T}no" >&6; }
27911 fi
27912
27913 +
27914 fi
27915 if test -z "$CC"; then
27916 if test -n "$ac_tool_prefix"; then
27917 - for ac_prog in cl
27918 + for ac_prog in cl.exe
27919 do
27920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27922 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27923 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27924 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27925 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27926 if test "${ac_cv_prog_CC+set}" = set; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27928 else
27929 @@ -1665,36 +2178,38 @@ do
27930 IFS=$as_save_IFS
27931 test -z "$as_dir" && as_dir=.
27932 for ac_exec_ext in '' $ac_executable_extensions; do
27933 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27934 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
27936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27937 break 2
27938 fi
27939 done
27940 done
27941 +IFS=$as_save_IFS
27942
27943 fi
27944 fi
27945 CC=$ac_cv_prog_CC
27946 if test -n "$CC"; then
27947 - echo "$as_me:$LINENO: result: $CC" >&5
27948 -echo "${ECHO_T}$CC" >&6
27949 + { echo "$as_me:$LINENO: result: $CC" >&5
27950 +echo "${ECHO_T}$CC" >&6; }
27951 else
27952 - echo "$as_me:$LINENO: result: no" >&5
27953 -echo "${ECHO_T}no" >&6
27954 + { echo "$as_me:$LINENO: result: no" >&5
27955 +echo "${ECHO_T}no" >&6; }
27956 fi
27957
27958 +
27959 test -n "$CC" && break
27960 done
27961 fi
27962 if test -z "$CC"; then
27963 ac_ct_CC=$CC
27964 - for ac_prog in cl
27965 + for ac_prog in cl.exe
27966 do
27967 # Extract the first word of "$ac_prog", so it can be a program name with args.
27968 set dummy $ac_prog; ac_word=$2
27969 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27970 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27971 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27972 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27974 echo $ECHO_N "(cached) $ECHO_C" >&6
27975 else
27976 @@ -1707,29 +2222,45 @@ do
27977 IFS=$as_save_IFS
27978 test -z "$as_dir" && as_dir=.
27979 for ac_exec_ext in '' $ac_executable_extensions; do
27980 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27981 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27982 ac_cv_prog_ac_ct_CC="$ac_prog"
27983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27984 break 2
27985 fi
27986 done
27987 done
27988 +IFS=$as_save_IFS
27989
27990 fi
27991 fi
27992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
27993 if test -n "$ac_ct_CC"; then
27994 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27995 -echo "${ECHO_T}$ac_ct_CC" >&6
27996 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27997 +echo "${ECHO_T}$ac_ct_CC" >&6; }
27998 else
27999 - echo "$as_me:$LINENO: result: no" >&5
28000 -echo "${ECHO_T}no" >&6
28001 + { echo "$as_me:$LINENO: result: no" >&5
28002 +echo "${ECHO_T}no" >&6; }
28003 fi
28004
28005 +
28006 test -n "$ac_ct_CC" && break
28007 done
28008
28009 - CC=$ac_ct_CC
28010 + if test "x$ac_ct_CC" = x; then
28011 + CC=""
28012 + else
28013 + case $cross_compiling:$ac_tool_warned in
28014 +yes:)
28015 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28016 +whose name does not start with the host triplet. If you think this
28017 +configuration is useful to you, please write to autoconf@gnu.org." >&5
28018 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28019 +whose name does not start with the host triplet. If you think this
28020 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28021 +ac_tool_warned=yes ;;
28022 +esac
28023 + CC=$ac_ct_CC
28024 + fi
28025 fi
28026
28027 fi
28028 @@ -1742,21 +2273,35 @@ See \`config.log' for more details." >&2
28029 { (exit 1); exit 1; }; }
28030
28031 # Provide some information about the compiler.
28032 -echo "$as_me:$LINENO:" \
28033 - "checking for C compiler version" >&5
28034 +echo "$as_me:$LINENO: checking for C compiler version" >&5
28035 ac_compiler=`set X $ac_compile; echo $2`
28036 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
28037 - (eval $ac_compiler --version </dev/null >&5) 2>&5
28038 +{ (ac_try="$ac_compiler --version >&5"
28039 +case "(($ac_try" in
28040 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28041 + *) ac_try_echo=$ac_try;;
28042 +esac
28043 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28044 + (eval "$ac_compiler --version >&5") 2>&5
28045 ac_status=$?
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); }
28048 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
28049 - (eval $ac_compiler -v </dev/null >&5) 2>&5
28050 +{ (ac_try="$ac_compiler -v >&5"
28051 +case "(($ac_try" in
28052 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28053 + *) ac_try_echo=$ac_try;;
28054 +esac
28055 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28056 + (eval "$ac_compiler -v >&5") 2>&5
28057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }
28060 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
28061 - (eval $ac_compiler -V </dev/null >&5) 2>&5
28062 +{ (ac_try="$ac_compiler -V >&5"
28063 +case "(($ac_try" in
28064 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065 + *) ac_try_echo=$ac_try;;
28066 +esac
28067 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28068 + (eval "$ac_compiler -V >&5") 2>&5
28069 ac_status=$?
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); }
28072 @@ -1781,47 +2326,77 @@ ac_clean_files="$ac_clean_files a.out a.
28073 # Try to create an executable without -o first, disregard a.out.
28074 # It will help us diagnose broken compilers, and finding out an intuition
28075 # of exeext.
28076 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
28077 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
28078 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
28079 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
28080 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
28081 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
28082 - (eval $ac_link_default) 2>&5
28083 +#
28084 +# List of possible output files, starting from the most likely.
28085 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
28086 +# only as a last resort. b.out is created by i960 compilers.
28087 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
28088 +#
28089 +# The IRIX 6 linker writes into existing files which may not be
28090 +# executable, retaining their permissions. Remove them first so a
28091 +# subsequent execution test works.
28092 +ac_rmfiles=
28093 +for ac_file in $ac_files
28094 +do
28095 + case $ac_file in
28096 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
28097 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
28098 + esac
28099 +done
28100 +rm -f $ac_rmfiles
28101 +
28102 +if { (ac_try="$ac_link_default"
28103 +case "(($ac_try" in
28104 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105 + *) ac_try_echo=$ac_try;;
28106 +esac
28107 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108 + (eval "$ac_link_default") 2>&5
28109 ac_status=$?
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); }; then
28112 - # Find the output, starting from the most likely. This scheme is
28113 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
28114 -# resort.
28115 -
28116 -# Be careful to initialize this variable, since it used to be cached.
28117 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
28118 -ac_cv_exeext=
28119 -# b.out is created by i960 compilers.
28120 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
28121 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
28122 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
28123 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
28124 +# so that the user can short-circuit this test for compilers unknown to
28125 +# Autoconf.
28126 +for ac_file in $ac_files ''
28127 do
28128 test -f "$ac_file" || continue
28129 case $ac_file in
28130 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
28131 - ;;
28132 - conftest.$ac_ext )
28133 - # This is the source file.
28134 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
28135 ;;
28136 [ab].out )
28137 # We found the default executable, but exeext='' is most
28138 # certainly right.
28139 break;;
28140 *.* )
28141 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28142 - # FIXME: I believe we export ac_cv_exeext for Libtool,
28143 - # but it would be cool to find out if it's true. Does anybody
28144 - # maintain Libtool? --akim.
28145 - export ac_cv_exeext
28146 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
28147 + then :; else
28148 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28149 + fi
28150 + # We set ac_cv_exeext here because the later test for it is not
28151 + # safe: cross compilers may not add the suffix if given an `-o'
28152 + # argument, so we may need to know it at that point already.
28153 + # Even if this section looks crufty: it has the advantage of
28154 + # actually working.
28155 break;;
28156 * )
28157 break;;
28158 esac
28159 done
28160 +test "$ac_cv_exeext" = no && ac_cv_exeext=
28161 +
28162 else
28163 + ac_file=''
28164 +fi
28165 +
28166 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
28167 +echo "${ECHO_T}$ac_file" >&6; }
28168 +if test -z "$ac_file"; then
28169 echo "$as_me: failed program was:" >&5
28170 sed 's/^/| /' conftest.$ac_ext >&5
28171
28172 @@ -1833,19 +2408,21 @@ See \`config.log' for more details." >&2
28173 fi
28174
28175 ac_exeext=$ac_cv_exeext
28176 -echo "$as_me:$LINENO: result: $ac_file" >&5
28177 -echo "${ECHO_T}$ac_file" >&6
28178
28179 -# Check the compiler produces executables we can run. If not, either
28180 +# Check that the compiler produces executables we can run. If not, either
28181 # the compiler is broken, or we cross compile.
28182 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
28183 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
28184 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
28185 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
28186 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
28187 # If not cross compiling, check that we can run a simple program.
28188 if test "$cross_compiling" != yes; then
28189 if { ac_try='./$ac_file'
28190 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28191 - (eval $ac_try) 2>&5
28192 + { (case "(($ac_try" in
28193 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28194 + *) ac_try_echo=$ac_try;;
28195 +esac
28196 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197 + (eval "$ac_try") 2>&5
28198 ac_status=$?
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); }; }; then
28201 @@ -1864,22 +2441,27 @@ See \`config.log' for more details." >&2
28202 fi
28203 fi
28204 fi
28205 -echo "$as_me:$LINENO: result: yes" >&5
28206 -echo "${ECHO_T}yes" >&6
28207 +{ echo "$as_me:$LINENO: result: yes" >&5
28208 +echo "${ECHO_T}yes" >&6; }
28209
28210 rm -f a.out a.exe conftest$ac_cv_exeext b.out
28211 ac_clean_files=$ac_clean_files_save
28212 -# Check the compiler produces executables we can run. If not, either
28213 +# Check that the compiler produces executables we can run. If not, either
28214 # the compiler is broken, or we cross compile.
28215 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
28216 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
28217 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
28218 -echo "${ECHO_T}$cross_compiling" >&6
28219 -
28220 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
28221 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
28222 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28223 - (eval $ac_link) 2>&5
28224 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
28225 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
28226 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
28227 +echo "${ECHO_T}$cross_compiling" >&6; }
28228 +
28229 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
28230 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
28231 +if { (ac_try="$ac_link"
28232 +case "(($ac_try" in
28233 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28234 + *) ac_try_echo=$ac_try;;
28235 +esac
28236 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237 + (eval "$ac_link") 2>&5
28238 ac_status=$?
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; then
28241 @@ -1890,9 +2472,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
28242 for ac_file in conftest.exe conftest conftest.*; do
28243 test -f "$ac_file" || continue
28244 case $ac_file in
28245 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
28246 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
28247 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28248 - export ac_cv_exeext
28249 break;;
28250 * ) break;;
28251 esac
28252 @@ -1906,14 +2487,14 @@ See \`config.log' for more details." >&2
28253 fi
28254
28255 rm -f conftest$ac_cv_exeext
28256 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
28257 -echo "${ECHO_T}$ac_cv_exeext" >&6
28258 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
28259 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
28260
28261 rm -f conftest.$ac_ext
28262 EXEEXT=$ac_cv_exeext
28263 ac_exeext=$EXEEXT
28264 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
28265 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
28266 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
28267 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
28268 if test "${ac_cv_objext+set}" = set; then
28269 echo $ECHO_N "(cached) $ECHO_C" >&6
28270 else
28271 @@ -1933,14 +2514,20 @@ main ()
28272 }
28273 _ACEOF
28274 rm -f conftest.o conftest.obj
28275 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28276 - (eval $ac_compile) 2>&5
28277 +if { (ac_try="$ac_compile"
28278 +case "(($ac_try" in
28279 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280 + *) ac_try_echo=$ac_try;;
28281 +esac
28282 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 + (eval "$ac_compile") 2>&5
28284 ac_status=$?
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; then
28287 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
28288 + for ac_file in conftest.o conftest.obj conftest.*; do
28289 + test -f "$ac_file" || continue;
28290 case $ac_file in
28291 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
28292 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
28293 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
28294 break;;
28295 esac
28296 @@ -1958,12 +2545,12 @@ fi
28297
28298 rm -f conftest.$ac_cv_objext conftest.$ac_ext
28299 fi
28300 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
28301 -echo "${ECHO_T}$ac_cv_objext" >&6
28302 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
28303 +echo "${ECHO_T}$ac_cv_objext" >&6; }
28304 OBJEXT=$ac_cv_objext
28305 ac_objext=$OBJEXT
28306 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
28307 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
28308 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
28309 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
28310 if test "${ac_cv_c_compiler_gnu+set}" = set; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28312 else
28313 @@ -1986,50 +2573,49 @@ main ()
28314 }
28315 _ACEOF
28316 rm -f conftest.$ac_objext
28317 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28318 - (eval $ac_compile) 2>conftest.er1
28319 +if { (ac_try="$ac_compile"
28320 +case "(($ac_try" in
28321 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322 + *) ac_try_echo=$ac_try;;
28323 +esac
28324 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28325 + (eval "$ac_compile") 2>conftest.er1
28326 ac_status=$?
28327 grep -v '^ *+' conftest.er1 >conftest.err
28328 rm -f conftest.er1
28329 cat conftest.err >&5
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 - (exit $ac_status); } &&
28332 - { ac_try='test -z "$ac_c_werror_flag"
28333 - || test ! -s conftest.err'
28334 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28335 - (eval $ac_try) 2>&5
28336 - ac_status=$?
28337 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 - (exit $ac_status); }; } &&
28339 - { ac_try='test -s conftest.$ac_objext'
28340 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28341 - (eval $ac_try) 2>&5
28342 - ac_status=$?
28343 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 - (exit $ac_status); }; }; then
28345 + (exit $ac_status); } && {
28346 + test -z "$ac_c_werror_flag" ||
28347 + test ! -s conftest.err
28348 + } && test -s conftest.$ac_objext; then
28349 ac_compiler_gnu=yes
28350 else
28351 echo "$as_me: failed program was:" >&5
28352 sed 's/^/| /' conftest.$ac_ext >&5
28353
28354 -ac_compiler_gnu=no
28355 + ac_compiler_gnu=no
28356 fi
28357 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28358 +
28359 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
28361
28362 fi
28363 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
28364 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
28365 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
28366 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
28367 GCC=`test $ac_compiler_gnu = yes && echo yes`
28368 ac_test_CFLAGS=${CFLAGS+set}
28369 ac_save_CFLAGS=$CFLAGS
28370 -CFLAGS="-g"
28371 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
28372 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
28373 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
28374 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
28375 if test "${ac_cv_prog_cc_g+set}" = set; then
28376 echo $ECHO_N "(cached) $ECHO_C" >&6
28377 else
28378 - cat >conftest.$ac_ext <<_ACEOF
28379 + ac_save_c_werror_flag=$ac_c_werror_flag
28380 + ac_c_werror_flag=yes
28381 + ac_cv_prog_cc_g=no
28382 + CFLAGS="-g"
28383 + cat >conftest.$ac_ext <<_ACEOF
28384 /* confdefs.h. */
28385 _ACEOF
28386 cat confdefs.h >>conftest.$ac_ext
28387 @@ -2045,38 +2631,118 @@ main ()
28388 }
28389 _ACEOF
28390 rm -f conftest.$ac_objext
28391 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28392 - (eval $ac_compile) 2>conftest.er1
28393 +if { (ac_try="$ac_compile"
28394 +case "(($ac_try" in
28395 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 + *) ac_try_echo=$ac_try;;
28397 +esac
28398 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399 + (eval "$ac_compile") 2>conftest.er1
28400 ac_status=$?
28401 grep -v '^ *+' conftest.er1 >conftest.err
28402 rm -f conftest.er1
28403 cat conftest.err >&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 - (exit $ac_status); } &&
28406 - { ac_try='test -z "$ac_c_werror_flag"
28407 - || test ! -s conftest.err'
28408 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409 - (eval $ac_try) 2>&5
28410 + (exit $ac_status); } && {
28411 + test -z "$ac_c_werror_flag" ||
28412 + test ! -s conftest.err
28413 + } && test -s conftest.$ac_objext; then
28414 + ac_cv_prog_cc_g=yes
28415 +else
28416 + echo "$as_me: failed program was:" >&5
28417 +sed 's/^/| /' conftest.$ac_ext >&5
28418 +
28419 + CFLAGS=""
28420 + cat >conftest.$ac_ext <<_ACEOF
28421 +/* confdefs.h. */
28422 +_ACEOF
28423 +cat confdefs.h >>conftest.$ac_ext
28424 +cat >>conftest.$ac_ext <<_ACEOF
28425 +/* end confdefs.h. */
28426 +
28427 +int
28428 +main ()
28429 +{
28430 +
28431 + ;
28432 + return 0;
28433 +}
28434 +_ACEOF
28435 +rm -f conftest.$ac_objext
28436 +if { (ac_try="$ac_compile"
28437 +case "(($ac_try" in
28438 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28439 + *) ac_try_echo=$ac_try;;
28440 +esac
28441 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28442 + (eval "$ac_compile") 2>conftest.er1
28443 ac_status=$?
28444 + grep -v '^ *+' conftest.er1 >conftest.err
28445 + rm -f conftest.er1
28446 + cat conftest.err >&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 - (exit $ac_status); }; } &&
28449 - { ac_try='test -s conftest.$ac_objext'
28450 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 - (eval $ac_try) 2>&5
28452 + (exit $ac_status); } && {
28453 + test -z "$ac_c_werror_flag" ||
28454 + test ! -s conftest.err
28455 + } && test -s conftest.$ac_objext; then
28456 + :
28457 +else
28458 + echo "$as_me: failed program was:" >&5
28459 +sed 's/^/| /' conftest.$ac_ext >&5
28460 +
28461 + ac_c_werror_flag=$ac_save_c_werror_flag
28462 + CFLAGS="-g"
28463 + cat >conftest.$ac_ext <<_ACEOF
28464 +/* confdefs.h. */
28465 +_ACEOF
28466 +cat confdefs.h >>conftest.$ac_ext
28467 +cat >>conftest.$ac_ext <<_ACEOF
28468 +/* end confdefs.h. */
28469 +
28470 +int
28471 +main ()
28472 +{
28473 +
28474 + ;
28475 + return 0;
28476 +}
28477 +_ACEOF
28478 +rm -f conftest.$ac_objext
28479 +if { (ac_try="$ac_compile"
28480 +case "(($ac_try" in
28481 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482 + *) ac_try_echo=$ac_try;;
28483 +esac
28484 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485 + (eval "$ac_compile") 2>conftest.er1
28486 ac_status=$?
28487 + grep -v '^ *+' conftest.er1 >conftest.err
28488 + rm -f conftest.er1
28489 + cat conftest.err >&5
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 - (exit $ac_status); }; }; then
28492 + (exit $ac_status); } && {
28493 + test -z "$ac_c_werror_flag" ||
28494 + test ! -s conftest.err
28495 + } && test -s conftest.$ac_objext; then
28496 ac_cv_prog_cc_g=yes
28497 else
28498 echo "$as_me: failed program was:" >&5
28499 sed 's/^/| /' conftest.$ac_ext >&5
28500
28501 -ac_cv_prog_cc_g=no
28502 +
28503 +fi
28504 +
28505 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28506 +fi
28507 +
28508 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28509 fi
28510 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28511 +
28512 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28513 + ac_c_werror_flag=$ac_save_c_werror_flag
28514 fi
28515 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
28516 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
28517 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
28518 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
28519 if test "$ac_test_CFLAGS" = set; then
28520 CFLAGS=$ac_save_CFLAGS
28521 elif test $ac_cv_prog_cc_g = yes; then
28522 @@ -2092,12 +2758,12 @@ else
28523 CFLAGS=
28524 fi
28525 fi
28526 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
28527 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
28528 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
28529 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
28530 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
28531 +if test "${ac_cv_prog_cc_c89+set}" = set; then
28532 echo $ECHO_N "(cached) $ECHO_C" >&6
28533 else
28534 - ac_cv_prog_cc_stdc=no
28535 + ac_cv_prog_cc_c89=no
28536 ac_save_CC=$CC
28537 cat >conftest.$ac_ext <<_ACEOF
28538 /* confdefs.h. */
28539 @@ -2131,12 +2797,17 @@ static char *f (char * (*g) (char **, in
28540 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
28541 function prototypes and stuff, but not '\xHH' hex character constants.
28542 These don't provoke an error unfortunately, instead are silently treated
28543 - as 'x'. The following induces an error, until -std1 is added to get
28544 + as 'x'. The following induces an error, until -std is added to get
28545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
28546 array size at least. It's necessary to write '\x00'==0 to get something
28547 - that's true only with -std1. */
28548 + that's true only with -std. */
28549 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
28550
28551 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
28552 + inside strings and character constants. */
28553 +#define FOO(x) 'x'
28554 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
28555 +
28556 int test (int i, double x);
28557 struct s1 {int (*f) (int a);};
28558 struct s2 {int (*f) (double a);};
28559 @@ -2151,335 +2822,144 @@ return f (e, argv, 0) != argv[0] || f
28560 return 0;
28561 }
28562 _ACEOF
28563 -# Don't try gcc -ansi; that turns off useful extensions and
28564 -# breaks some systems' header files.
28565 -# AIX -qlanglvl=ansi
28566 -# Ultrix and OSF/1 -std1
28567 -# HP-UX 10.20 and later -Ae
28568 -# HP-UX older versions -Aa -D_HPUX_SOURCE
28569 -# SVR4 -Xc -D__EXTENSIONS__
28570 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
28571 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
28572 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
28573 do
28574 CC="$ac_save_CC $ac_arg"
28575 rm -f conftest.$ac_objext
28576 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28577 - (eval $ac_compile) 2>conftest.er1
28578 +if { (ac_try="$ac_compile"
28579 +case "(($ac_try" in
28580 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581 + *) ac_try_echo=$ac_try;;
28582 +esac
28583 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 + (eval "$ac_compile") 2>conftest.er1
28585 ac_status=$?
28586 grep -v '^ *+' conftest.er1 >conftest.err
28587 rm -f conftest.er1
28588 cat conftest.err >&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 - (exit $ac_status); } &&
28591 - { ac_try='test -z "$ac_c_werror_flag"
28592 - || test ! -s conftest.err'
28593 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594 - (eval $ac_try) 2>&5
28595 - ac_status=$?
28596 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 - (exit $ac_status); }; } &&
28598 - { ac_try='test -s conftest.$ac_objext'
28599 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600 - (eval $ac_try) 2>&5
28601 - ac_status=$?
28602 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 - (exit $ac_status); }; }; then
28604 - ac_cv_prog_cc_stdc=$ac_arg
28605 -break
28606 + (exit $ac_status); } && {
28607 + test -z "$ac_c_werror_flag" ||
28608 + test ! -s conftest.err
28609 + } && test -s conftest.$ac_objext; then
28610 + ac_cv_prog_cc_c89=$ac_arg
28611 else
28612 echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28614
28615 +
28616 fi
28617 -rm -f conftest.err conftest.$ac_objext
28618 +
28619 +rm -f core conftest.err conftest.$ac_objext
28620 + test "x$ac_cv_prog_cc_c89" != "xno" && break
28621 done
28622 -rm -f conftest.$ac_ext conftest.$ac_objext
28623 +rm -f conftest.$ac_ext
28624 CC=$ac_save_CC
28625
28626 fi
28627 -
28628 -case "x$ac_cv_prog_cc_stdc" in
28629 - x|xno)
28630 - echo "$as_me:$LINENO: result: none needed" >&5
28631 -echo "${ECHO_T}none needed" >&6 ;;
28632 +# AC_CACHE_VAL
28633 +case "x$ac_cv_prog_cc_c89" in
28634 + x)
28635 + { echo "$as_me:$LINENO: result: none needed" >&5
28636 +echo "${ECHO_T}none needed" >&6; } ;;
28637 + xno)
28638 + { echo "$as_me:$LINENO: result: unsupported" >&5
28639 +echo "${ECHO_T}unsupported" >&6; } ;;
28640 *)
28641 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
28642 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
28643 - CC="$CC $ac_cv_prog_cc_stdc" ;;
28644 + CC="$CC $ac_cv_prog_cc_c89"
28645 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
28646 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
28647 esac
28648
28649 -# Some people use a C++ compiler to compile C. Since we use `exit',
28650 -# in C++ we need to declare it. In case someone uses the same compiler
28651 -# for both compiling C and C++ we need to have the C++ compiler decide
28652 -# the declaration of exit, since it's the most demanding environment.
28653 +
28654 +ac_ext=c
28655 +ac_cpp='$CPP $CPPFLAGS'
28656 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28657 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28658 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28659 +
28660 +
28661 +{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
28662 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
28663 +if test "${ac_cv_search_strerror+set}" = set; then
28664 + echo $ECHO_N "(cached) $ECHO_C" >&6
28665 +else
28666 + ac_func_search_save_LIBS=$LIBS
28667 cat >conftest.$ac_ext <<_ACEOF
28668 -#ifndef __cplusplus
28669 - choke me
28670 -#endif
28671 -_ACEOF
28672 -rm -f conftest.$ac_objext
28673 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28674 - (eval $ac_compile) 2>conftest.er1
28675 - ac_status=$?
28676 - grep -v '^ *+' conftest.er1 >conftest.err
28677 - rm -f conftest.er1
28678 - cat conftest.err >&5
28679 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680 - (exit $ac_status); } &&
28681 - { ac_try='test -z "$ac_c_werror_flag"
28682 - || test ! -s conftest.err'
28683 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28684 - (eval $ac_try) 2>&5
28685 - ac_status=$?
28686 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 - (exit $ac_status); }; } &&
28688 - { ac_try='test -s conftest.$ac_objext'
28689 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690 - (eval $ac_try) 2>&5
28691 - ac_status=$?
28692 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 - (exit $ac_status); }; }; then
28694 - for ac_declaration in \
28695 - '' \
28696 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
28697 - 'extern "C" void std::exit (int); using std::exit;' \
28698 - 'extern "C" void exit (int) throw ();' \
28699 - 'extern "C" void exit (int);' \
28700 - 'void exit (int);'
28701 -do
28702 - cat >conftest.$ac_ext <<_ACEOF
28703 /* confdefs.h. */
28704 _ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h. */
28708 -$ac_declaration
28709 -#include <stdlib.h>
28710 +
28711 +/* Override any GCC internal prototype to avoid an error.
28712 + Use char because int might match the return type of a GCC
28713 + builtin and then its argument prototype would still apply. */
28714 +#ifdef __cplusplus
28715 +extern "C"
28716 +#endif
28717 +char strerror ();
28718 int
28719 main ()
28720 {
28721 -exit (42);
28722 +return strerror ();
28723 ;
28724 return 0;
28725 }
28726 _ACEOF
28727 -rm -f conftest.$ac_objext
28728 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28729 - (eval $ac_compile) 2>conftest.er1
28730 +for ac_lib in '' cposix; do
28731 + if test -z "$ac_lib"; then
28732 + ac_res="none required"
28733 + else
28734 + ac_res=-l$ac_lib
28735 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28736 + fi
28737 + rm -f conftest.$ac_objext conftest$ac_exeext
28738 +if { (ac_try="$ac_link"
28739 +case "(($ac_try" in
28740 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 + *) ac_try_echo=$ac_try;;
28742 +esac
28743 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 + (eval "$ac_link") 2>conftest.er1
28745 ac_status=$?
28746 grep -v '^ *+' conftest.er1 >conftest.err
28747 rm -f conftest.er1
28748 cat conftest.err >&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 - (exit $ac_status); } &&
28751 - { ac_try='test -z "$ac_c_werror_flag"
28752 - || test ! -s conftest.err'
28753 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28754 - (eval $ac_try) 2>&5
28755 - ac_status=$?
28756 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 - (exit $ac_status); }; } &&
28758 - { ac_try='test -s conftest.$ac_objext'
28759 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760 - (eval $ac_try) 2>&5
28761 - ac_status=$?
28762 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 - (exit $ac_status); }; }; then
28764 - :
28765 + (exit $ac_status); } && {
28766 + test -z "$ac_c_werror_flag" ||
28767 + test ! -s conftest.err
28768 + } && test -s conftest$ac_exeext &&
28769 + $as_test_x conftest$ac_exeext; then
28770 + ac_cv_search_strerror=$ac_res
28771 else
28772 echo "$as_me: failed program was:" >&5
28773 sed 's/^/| /' conftest.$ac_ext >&5
28774
28775 -continue
28776 -fi
28777 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28778 - cat >conftest.$ac_ext <<_ACEOF
28779 -/* confdefs.h. */
28780 -_ACEOF
28781 -cat confdefs.h >>conftest.$ac_ext
28782 -cat >>conftest.$ac_ext <<_ACEOF
28783 -/* end confdefs.h. */
28784 -$ac_declaration
28785 -int
28786 -main ()
28787 -{
28788 -exit (42);
28789 - ;
28790 - return 0;
28791 -}
28792 -_ACEOF
28793 -rm -f conftest.$ac_objext
28794 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28795 - (eval $ac_compile) 2>conftest.er1
28796 - ac_status=$?
28797 - grep -v '^ *+' conftest.er1 >conftest.err
28798 - rm -f conftest.er1
28799 - cat conftest.err >&5
28800 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 - (exit $ac_status); } &&
28802 - { ac_try='test -z "$ac_c_werror_flag"
28803 - || test ! -s conftest.err'
28804 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805 - (eval $ac_try) 2>&5
28806 - ac_status=$?
28807 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 - (exit $ac_status); }; } &&
28809 - { ac_try='test -s conftest.$ac_objext'
28810 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811 - (eval $ac_try) 2>&5
28812 - ac_status=$?
28813 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 - (exit $ac_status); }; }; then
28815 - break
28816 -else
28817 - echo "$as_me: failed program was:" >&5
28818 -sed 's/^/| /' conftest.$ac_ext >&5
28819
28820 fi
28821 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28822 -done
28823 -rm -f conftest*
28824 -if test -n "$ac_declaration"; then
28825 - echo '#ifdef __cplusplus' >>confdefs.h
28826 - echo $ac_declaration >>confdefs.h
28827 - echo '#endif' >>confdefs.h
28828 -fi
28829 -
28830 -else
28831 - echo "$as_me: failed program was:" >&5
28832 -sed 's/^/| /' conftest.$ac_ext >&5
28833
28834 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28835 + conftest$ac_exeext
28836 + if test "${ac_cv_search_strerror+set}" = set; then
28837 + break
28838 fi
28839 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28840 -ac_ext=c
28841 -ac_cpp='$CPP $CPPFLAGS'
28842 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28843 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28844 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
28845 -
28846 -
28847 -echo "$as_me:$LINENO: checking for library containing strerror" >&5
28848 -echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
28849 +done
28850 if test "${ac_cv_search_strerror+set}" = set; then
28851 - echo $ECHO_N "(cached) $ECHO_C" >&6
28852 -else
28853 - ac_func_search_save_LIBS=$LIBS
28854 -ac_cv_search_strerror=no
28855 -cat >conftest.$ac_ext <<_ACEOF
28856 -/* confdefs.h. */
28857 -_ACEOF
28858 -cat confdefs.h >>conftest.$ac_ext
28859 -cat >>conftest.$ac_ext <<_ACEOF
28860 -/* end confdefs.h. */
28861 -
28862 -/* Override any gcc2 internal prototype to avoid an error. */
28863 -#ifdef __cplusplus
28864 -extern "C"
28865 -#endif
28866 -/* We use char because int might match the return type of a gcc2
28867 - builtin and then its argument prototype would still apply. */
28868 -char strerror ();
28869 -int
28870 -main ()
28871 -{
28872 -strerror ();
28873 - ;
28874 - return 0;
28875 -}
28876 -_ACEOF
28877 -rm -f conftest.$ac_objext conftest$ac_exeext
28878 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28879 - (eval $ac_link) 2>conftest.er1
28880 - ac_status=$?
28881 - grep -v '^ *+' conftest.er1 >conftest.err
28882 - rm -f conftest.er1
28883 - cat conftest.err >&5
28884 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 - (exit $ac_status); } &&
28886 - { ac_try='test -z "$ac_c_werror_flag"
28887 - || test ! -s conftest.err'
28888 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889 - (eval $ac_try) 2>&5
28890 - ac_status=$?
28891 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 - (exit $ac_status); }; } &&
28893 - { ac_try='test -s conftest$ac_exeext'
28894 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895 - (eval $ac_try) 2>&5
28896 - ac_status=$?
28897 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 - (exit $ac_status); }; }; then
28899 - ac_cv_search_strerror="none required"
28900 -else
28901 - echo "$as_me: failed program was:" >&5
28902 -sed 's/^/| /' conftest.$ac_ext >&5
28903 -
28904 -fi
28905 -rm -f conftest.err conftest.$ac_objext \
28906 - conftest$ac_exeext conftest.$ac_ext
28907 -if test "$ac_cv_search_strerror" = no; then
28908 - for ac_lib in cposix; do
28909 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28910 - cat >conftest.$ac_ext <<_ACEOF
28911 -/* confdefs.h. */
28912 -_ACEOF
28913 -cat confdefs.h >>conftest.$ac_ext
28914 -cat >>conftest.$ac_ext <<_ACEOF
28915 -/* end confdefs.h. */
28916 -
28917 -/* Override any gcc2 internal prototype to avoid an error. */
28918 -#ifdef __cplusplus
28919 -extern "C"
28920 -#endif
28921 -/* We use char because int might match the return type of a gcc2
28922 - builtin and then its argument prototype would still apply. */
28923 -char strerror ();
28924 -int
28925 -main ()
28926 -{
28927 -strerror ();
28928 - ;
28929 - return 0;
28930 -}
28931 -_ACEOF
28932 -rm -f conftest.$ac_objext conftest$ac_exeext
28933 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28934 - (eval $ac_link) 2>conftest.er1
28935 - ac_status=$?
28936 - grep -v '^ *+' conftest.er1 >conftest.err
28937 - rm -f conftest.er1
28938 - cat conftest.err >&5
28939 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 - (exit $ac_status); } &&
28941 - { ac_try='test -z "$ac_c_werror_flag"
28942 - || test ! -s conftest.err'
28943 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28944 - (eval $ac_try) 2>&5
28945 - ac_status=$?
28946 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 - (exit $ac_status); }; } &&
28948 - { ac_try='test -s conftest$ac_exeext'
28949 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28950 - (eval $ac_try) 2>&5
28951 - ac_status=$?
28952 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 - (exit $ac_status); }; }; then
28954 - ac_cv_search_strerror="-l$ac_lib"
28955 -break
28956 + :
28957 else
28958 - echo "$as_me: failed program was:" >&5
28959 -sed 's/^/| /' conftest.$ac_ext >&5
28960 -
28961 -fi
28962 -rm -f conftest.err conftest.$ac_objext \
28963 - conftest$ac_exeext conftest.$ac_ext
28964 - done
28965 + ac_cv_search_strerror=no
28966 fi
28967 +rm conftest.$ac_ext
28968 LIBS=$ac_func_search_save_LIBS
28969 fi
28970 -echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
28971 -echo "${ECHO_T}$ac_cv_search_strerror" >&6
28972 -if test "$ac_cv_search_strerror" != no; then
28973 - test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
28974 +{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
28975 +echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
28976 +ac_res=$ac_cv_search_strerror
28977 +if test "$ac_res" != no; then
28978 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28979
28980 fi
28981
28982 @@ -2499,8 +2979,8 @@ am__api_version="1.9"
28983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
28984 # OS/2's system install, which has a completely different semantic
28985 # ./install, which can be erroneously created by make from ./install.sh.
28986 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
28987 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
28988 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
28989 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
28990 if test -z "$INSTALL"; then
28991 if test "${ac_cv_path_install+set}" = set; then
28992 echo $ECHO_N "(cached) $ECHO_C" >&6
28993 @@ -2522,7 +3002,7 @@ case $as_dir/ in
28994 # by default.
28995 for ac_prog in ginstall scoinst install; do
28996 for ac_exec_ext in '' $ac_executable_extensions; do
28997 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
28998 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
28999 if test $ac_prog = install &&
29000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
29001 # AIX install. It has an incompatible calling convention.
29002 @@ -2541,21 +3021,22 @@ case $as_dir/ in
29003 ;;
29004 esac
29005 done
29006 +IFS=$as_save_IFS
29007
29008
29009 fi
29010 if test "${ac_cv_path_install+set}" = set; then
29011 INSTALL=$ac_cv_path_install
29012 else
29013 - # As a last resort, use the slow shell script. We don't cache a
29014 - # path for INSTALL within a source directory, because that will
29015 + # As a last resort, use the slow shell script. Don't cache a
29016 + # value for INSTALL within a source directory, because that will
29017 # break other packages using the cache if that directory is
29018 - # removed, or if the path is relative.
29019 + # removed, or if the value is a relative name.
29020 INSTALL=$ac_install_sh
29021 fi
29022 fi
29023 -echo "$as_me:$LINENO: result: $INSTALL" >&5
29024 -echo "${ECHO_T}$INSTALL" >&6
29025 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
29026 +echo "${ECHO_T}$INSTALL" >&6; }
29027
29028 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
29029 # It thinks the first close brace ends the variable substitution.
29030 @@ -2565,8 +3046,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
29031
29032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
29033
29034 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
29035 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
29036 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
29037 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
29038 # Just in case
29039 sleep 1
29040 echo timestamp > conftest.file
29041 @@ -2608,20 +3089,20 @@ echo "$as_me: error: newly created file
29042 Check your system clock" >&2;}
29043 { (exit 1); exit 1; }; }
29044 fi
29045 -echo "$as_me:$LINENO: result: yes" >&5
29046 -echo "${ECHO_T}yes" >&6
29047 +{ echo "$as_me:$LINENO: result: yes" >&5
29048 +echo "${ECHO_T}yes" >&6; }
29049 test "$program_prefix" != NONE &&
29050 - program_transform_name="s,^,$program_prefix,;$program_transform_name"
29051 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
29052 # Use a double $ so make ignores it.
29053 test "$program_suffix" != NONE &&
29054 - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
29055 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
29056 # Double any \ or $. echo might interpret backslashes.
29057 # By default was `s,x,x', remove it if useless.
29058 cat <<\_ACEOF >conftest.sed
29059 s/[\\$]/&&/g;s/;s,x,x,$//
29060 _ACEOF
29061 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
29062 -rm conftest.sed
29063 +rm -f conftest.sed
29064
29065 # expand $ac_aux_dir to an absolute path
29066 am_aux_dir=`cd $ac_aux_dir && pwd`
29067 @@ -2673,8 +3154,8 @@ for ac_prog in gawk mawk nawk awk
29068 do
29069 # Extract the first word of "$ac_prog", so it can be a program name with args.
29070 set dummy $ac_prog; ac_word=$2
29071 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29072 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29073 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29074 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29075 if test "${ac_cv_prog_AWK+set}" = set; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29077 else
29078 @@ -2687,54 +3168,57 @@ do
29079 IFS=$as_save_IFS
29080 test -z "$as_dir" && as_dir=.
29081 for ac_exec_ext in '' $ac_executable_extensions; do
29082 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29083 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29084 ac_cv_prog_AWK="$ac_prog"
29085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29086 break 2
29087 fi
29088 done
29089 done
29090 +IFS=$as_save_IFS
29091
29092 fi
29093 fi
29094 AWK=$ac_cv_prog_AWK
29095 if test -n "$AWK"; then
29096 - echo "$as_me:$LINENO: result: $AWK" >&5
29097 -echo "${ECHO_T}$AWK" >&6
29098 + { echo "$as_me:$LINENO: result: $AWK" >&5
29099 +echo "${ECHO_T}$AWK" >&6; }
29100 else
29101 - echo "$as_me:$LINENO: result: no" >&5
29102 -echo "${ECHO_T}no" >&6
29103 + { echo "$as_me:$LINENO: result: no" >&5
29104 +echo "${ECHO_T}no" >&6; }
29105 fi
29106
29107 +
29108 test -n "$AWK" && break
29109 done
29110
29111 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29112 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
29113 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
29114 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
29115 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29116 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
29117 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29118 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
29119 echo $ECHO_N "(cached) $ECHO_C" >&6
29120 else
29121 cat >conftest.make <<\_ACEOF
29122 +SHELL = /bin/sh
29123 all:
29124 - @echo 'ac_maketemp="$(MAKE)"'
29125 + @echo '@@@%%%=$(MAKE)=@@@%%%'
29126 _ACEOF
29127 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29128 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
29129 -if test -n "$ac_maketemp"; then
29130 - eval ac_cv_prog_make_${ac_make}_set=yes
29131 -else
29132 - eval ac_cv_prog_make_${ac_make}_set=no
29133 -fi
29134 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
29135 + *@@@%%%=?*=@@@%%%*)
29136 + eval ac_cv_prog_make_${ac_make}_set=yes;;
29137 + *)
29138 + eval ac_cv_prog_make_${ac_make}_set=no;;
29139 +esac
29140 rm -f conftest.make
29141 fi
29142 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
29143 - echo "$as_me:$LINENO: result: yes" >&5
29144 -echo "${ECHO_T}yes" >&6
29145 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29146 + { echo "$as_me:$LINENO: result: yes" >&5
29147 +echo "${ECHO_T}yes" >&6; }
29148 SET_MAKE=
29149 else
29150 - echo "$as_me:$LINENO: result: no" >&5
29151 -echo "${ECHO_T}no" >&6
29152 + { echo "$as_me:$LINENO: result: no" >&5
29153 +echo "${ECHO_T}no" >&6; }
29154 SET_MAKE="MAKE=${MAKE-make}"
29155 fi
29156
29157 @@ -2749,7 +3233,7 @@ rmdir .tst 2>/dev/null
29158
29159 DEPDIR="${am__leading_dot}deps"
29160
29161 - ac_config_commands="$ac_config_commands depfiles"
29162 +ac_config_commands="$ac_config_commands depfiles"
29163
29164
29165 am_make=${MAKE-make}
29166 @@ -2759,8 +3243,8 @@ am__doit:
29167 .PHONY: am__doit
29168 END
29169 # If we don't find an include directive, just comment out the code.
29170 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
29171 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
29172 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
29173 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
29174 am__include="#"
29175 am__quote=
29176 _am_result=none
29177 @@ -2787,15 +3271,15 @@ if test "$am__include" = "#"; then
29178 fi
29179
29180
29181 -echo "$as_me:$LINENO: result: $_am_result" >&5
29182 -echo "${ECHO_T}$_am_result" >&6
29183 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
29184 +echo "${ECHO_T}$_am_result" >&6; }
29185 rm -f confinc confmf
29186
29187 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
29188 +# Check whether --enable-dependency-tracking was given.
29189 if test "${enable_dependency_tracking+set}" = set; then
29190 - enableval="$enable_dependency_tracking"
29191 + enableval=$enable_dependency_tracking;
29192 +fi
29193
29194 -fi;
29195 if test "x$enable_dependency_tracking" != xno; then
29196 am_depcomp="$ac_aux_dir/depcomp"
29197 AMDEPBACKSLASH='\'
29198 @@ -2870,8 +3354,8 @@ if test "$cross_compiling" != no; then
29199 if test -n "$ac_tool_prefix"; then
29200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
29201 set dummy ${ac_tool_prefix}strip; ac_word=$2
29202 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29203 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29204 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29205 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29206 if test "${ac_cv_prog_STRIP+set}" = set; then
29207 echo $ECHO_N "(cached) $ECHO_C" >&6
29208 else
29209 @@ -2884,32 +3368,34 @@ do
29210 IFS=$as_save_IFS
29211 test -z "$as_dir" && as_dir=.
29212 for ac_exec_ext in '' $ac_executable_extensions; do
29213 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29214 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
29216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29217 break 2
29218 fi
29219 done
29220 done
29221 +IFS=$as_save_IFS
29222
29223 fi
29224 fi
29225 STRIP=$ac_cv_prog_STRIP
29226 if test -n "$STRIP"; then
29227 - echo "$as_me:$LINENO: result: $STRIP" >&5
29228 -echo "${ECHO_T}$STRIP" >&6
29229 + { echo "$as_me:$LINENO: result: $STRIP" >&5
29230 +echo "${ECHO_T}$STRIP" >&6; }
29231 else
29232 - echo "$as_me:$LINENO: result: no" >&5
29233 -echo "${ECHO_T}no" >&6
29234 + { echo "$as_me:$LINENO: result: no" >&5
29235 +echo "${ECHO_T}no" >&6; }
29236 fi
29237
29238 +
29239 fi
29240 if test -z "$ac_cv_prog_STRIP"; then
29241 ac_ct_STRIP=$STRIP
29242 # Extract the first word of "strip", so it can be a program name with args.
29243 set dummy strip; ac_word=$2
29244 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29245 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29246 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29247 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29248 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29250 else
29251 @@ -2922,27 +3408,41 @@ do
29252 IFS=$as_save_IFS
29253 test -z "$as_dir" && as_dir=.
29254 for ac_exec_ext in '' $ac_executable_extensions; do
29255 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29256 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29257 ac_cv_prog_ac_ct_STRIP="strip"
29258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29259 break 2
29260 fi
29261 done
29262 done
29263 +IFS=$as_save_IFS
29264
29265 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
29266 fi
29267 fi
29268 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
29269 if test -n "$ac_ct_STRIP"; then
29270 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29271 -echo "${ECHO_T}$ac_ct_STRIP" >&6
29272 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29273 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
29274 else
29275 - echo "$as_me:$LINENO: result: no" >&5
29276 -echo "${ECHO_T}no" >&6
29277 + { echo "$as_me:$LINENO: result: no" >&5
29278 +echo "${ECHO_T}no" >&6; }
29279 fi
29280
29281 - STRIP=$ac_ct_STRIP
29282 + if test "x$ac_ct_STRIP" = x; then
29283 + STRIP=":"
29284 + else
29285 + case $cross_compiling:$ac_tool_warned in
29286 +yes:)
29287 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29288 +whose name does not start with the host triplet. If you think this
29289 +configuration is useful to you, please write to autoconf@gnu.org." >&5
29290 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29291 +whose name does not start with the host triplet. If you think this
29292 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29293 +ac_tool_warned=yes ;;
29294 +esac
29295 + STRIP=$ac_ct_STRIP
29296 + fi
29297 else
29298 STRIP="$ac_cv_prog_STRIP"
29299 fi
29300 @@ -2963,8 +3463,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
29301
29302 depcc="$CC" am_compiler_list=
29303
29304 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29305 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
29306 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29307 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
29308 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
29309 echo $ECHO_N "(cached) $ECHO_C" >&6
29310 else
29311 @@ -3053,8 +3553,8 @@ else
29312 fi
29313
29314 fi
29315 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
29316 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
29317 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
29318 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
29319 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
29320
29321
29322 @@ -3072,10 +3572,9 @@ fi
29323
29324
29325
29326 -# Check whether --enable-shared or --disable-shared was given.
29327 +# Check whether --enable-shared was given.
29328 if test "${enable_shared+set}" = set; then
29329 - enableval="$enable_shared"
29330 - p=${PACKAGE-default}
29331 + enableval=$enable_shared; p=${PACKAGE-default}
29332 case $enableval in
29333 yes) enable_shared=yes ;;
29334 no) enable_shared=no ;;
29335 @@ -3093,11 +3592,11 @@ no) enable_shared=no ;;
29336 esac
29337 else
29338 enable_shared=yes
29339 -fi;
29340 -# Check whether --enable-static or --disable-static was given.
29341 +fi
29342 +
29343 +# Check whether --enable-static was given.
29344 if test "${enable_static+set}" = set; then
29345 - enableval="$enable_static"
29346 - p=${PACKAGE-default}
29347 + enableval=$enable_static; p=${PACKAGE-default}
29348 case $enableval in
29349 yes) enable_static=yes ;;
29350 no) enable_static=no ;;
29351 @@ -3115,11 +3614,11 @@ no) enable_static=no ;;
29352 esac
29353 else
29354 enable_static=yes
29355 -fi;
29356 -# Check whether --enable-fast-install or --disable-fast-install was given.
29357 +fi
29358 +
29359 +# Check whether --enable-fast-install was given.
29360 if test "${enable_fast_install+set}" = set; then
29361 - enableval="$enable_fast_install"
29362 - p=${PACKAGE-default}
29363 + enableval=$enable_fast_install; p=${PACKAGE-default}
29364 case $enableval in
29365 yes) enable_fast_install=yes ;;
29366 no) enable_fast_install=no ;;
29367 @@ -3137,20 +3636,21 @@ no) enable_fast_install=no ;;
29368 esac
29369 else
29370 enable_fast_install=yes
29371 -fi;
29372 +fi
29373 +
29374
29375 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
29376 +# Check whether --with-gnu-ld was given.
29377 if test "${with_gnu_ld+set}" = set; then
29378 - withval="$with_gnu_ld"
29379 - test "$withval" = no || with_gnu_ld=yes
29380 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
29381 else
29382 with_gnu_ld=no
29383 -fi;
29384 +fi
29385 +
29386 ac_prog=ld
29387 if test "$GCC" = yes; then
29388 # Check if gcc -print-prog-name=ld gives a path.
29389 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
29390 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
29391 + { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
29392 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
29393 case $host in
29394 *-*-mingw*)
29395 # gcc leaves a trailing carriage return which upsets mingw
29396 @@ -3179,11 +3679,11 @@ echo $ECHO_N "checking for ld used by GC
29397 ;;
29398 esac
29399 elif test "$with_gnu_ld" = yes; then
29400 - echo "$as_me:$LINENO: checking for GNU ld" >&5
29401 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
29402 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
29403 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
29404 else
29405 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
29406 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
29407 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
29408 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
29409 fi
29410 if test "${lt_cv_path_LD+set}" = set; then
29411 echo $ECHO_N "(cached) $ECHO_C" >&6
29412 @@ -3212,17 +3712,17 @@ fi
29413
29414 LD="$lt_cv_path_LD"
29415 if test -n "$LD"; then
29416 - echo "$as_me:$LINENO: result: $LD" >&5
29417 -echo "${ECHO_T}$LD" >&6
29418 + { echo "$as_me:$LINENO: result: $LD" >&5
29419 +echo "${ECHO_T}$LD" >&6; }
29420 else
29421 - echo "$as_me:$LINENO: result: no" >&5
29422 -echo "${ECHO_T}no" >&6
29423 + { echo "$as_me:$LINENO: result: no" >&5
29424 +echo "${ECHO_T}no" >&6; }
29425 fi
29426 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
29427 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
29428 { (exit 1); exit 1; }; }
29429 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
29430 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
29431 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
29432 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
29433 if test "${lt_cv_prog_gnu_ld+set}" = set; then
29434 echo $ECHO_N "(cached) $ECHO_C" >&6
29435 else
29436 @@ -3233,25 +3733,25 @@ else
29437 lt_cv_prog_gnu_ld=no
29438 fi
29439 fi
29440 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
29441 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
29442 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
29443 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
29444 with_gnu_ld=$lt_cv_prog_gnu_ld
29445
29446
29447 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
29448 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
29449 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
29450 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
29451 if test "${lt_cv_ld_reload_flag+set}" = set; then
29452 echo $ECHO_N "(cached) $ECHO_C" >&6
29453 else
29454 lt_cv_ld_reload_flag='-r'
29455 fi
29456 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
29457 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
29458 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
29459 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
29460 reload_flag=$lt_cv_ld_reload_flag
29461 test -n "$reload_flag" && reload_flag=" $reload_flag"
29462
29463 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
29464 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
29465 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
29466 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
29467 if test "${lt_cv_path_NM+set}" = set; then
29468 echo $ECHO_N "(cached) $ECHO_C" >&6
29469 else
29470 @@ -3286,22 +3786,22 @@ fi
29471 fi
29472
29473 NM="$lt_cv_path_NM"
29474 -echo "$as_me:$LINENO: result: $NM" >&5
29475 -echo "${ECHO_T}$NM" >&6
29476 +{ echo "$as_me:$LINENO: result: $NM" >&5
29477 +echo "${ECHO_T}$NM" >&6; }
29478
29479 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
29480 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
29481 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
29482 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
29483 LN_S=$as_ln_s
29484 if test "$LN_S" = "ln -s"; then
29485 - echo "$as_me:$LINENO: result: yes" >&5
29486 -echo "${ECHO_T}yes" >&6
29487 + { echo "$as_me:$LINENO: result: yes" >&5
29488 +echo "${ECHO_T}yes" >&6; }
29489 else
29490 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
29491 -echo "${ECHO_T}no, using $LN_S" >&6
29492 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
29493 +echo "${ECHO_T}no, using $LN_S" >&6; }
29494 fi
29495
29496 -echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
29497 -echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
29498 +{ echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
29499 +echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
29500 if test "${lt_cv_deplibs_check_method+set}" = set; then
29501 echo $ECHO_N "(cached) $ECHO_C" >&6
29502 else
29503 @@ -3463,8 +3963,8 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
29504 esac
29505
29506 fi
29507 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
29508 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
29509 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
29510 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
29511 file_magic_cmd=$lt_cv_file_magic_cmd
29512 deplibs_check_method=$lt_cv_deplibs_check_method
29513
29514 @@ -3474,8 +3974,8 @@ deplibs_check_method=$lt_cv_deplibs_chec
29515 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
29516
29517 # find the maximum length of command line arguments
29518 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
29519 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
29520 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
29521 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
29522 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29524 else
29525 @@ -3526,11 +4026,11 @@ else
29526 fi
29527
29528 if test -n "$lt_cv_sys_max_cmd_len" ; then
29529 - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
29530 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
29531 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
29532 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
29533 else
29534 - echo "$as_me:$LINENO: result: none" >&5
29535 -echo "${ECHO_T}none" >&6
29536 + { echo "$as_me:$LINENO: result: none" >&5
29537 +echo "${ECHO_T}none" >&6; }
29538 fi
29539
29540
29541 @@ -3538,8 +4038,8 @@ fi
29542 case $deplibs_check_method in
29543 file_magic*)
29544 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
29545 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
29546 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
29547 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
29548 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
29549 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
29550 echo $ECHO_N "(cached) $ECHO_C" >&6
29551 else
29552 @@ -3593,17 +4093,17 @@ fi
29553
29554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
29555 if test -n "$MAGIC_CMD"; then
29556 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29557 -echo "${ECHO_T}$MAGIC_CMD" >&6
29558 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29559 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
29560 else
29561 - echo "$as_me:$LINENO: result: no" >&5
29562 -echo "${ECHO_T}no" >&6
29563 + { echo "$as_me:$LINENO: result: no" >&5
29564 +echo "${ECHO_T}no" >&6; }
29565 fi
29566
29567 if test -z "$lt_cv_path_MAGIC_CMD"; then
29568 if test -n "$ac_tool_prefix"; then
29569 - echo "$as_me:$LINENO: checking for file" >&5
29570 -echo $ECHO_N "checking for file... $ECHO_C" >&6
29571 + { echo "$as_me:$LINENO: checking for file" >&5
29572 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
29573 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29575 else
29576 @@ -3657,11 +4157,11 @@ fi
29577
29578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
29579 if test -n "$MAGIC_CMD"; then
29580 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29581 -echo "${ECHO_T}$MAGIC_CMD" >&6
29582 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29583 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
29584 else
29585 - echo "$as_me:$LINENO: result: no" >&5
29586 -echo "${ECHO_T}no" >&6
29587 + { echo "$as_me:$LINENO: result: no" >&5
29588 +echo "${ECHO_T}no" >&6; }
29589 fi
29590
29591 else
29592 @@ -3676,8 +4176,8 @@ esac
29593 if test -n "$ac_tool_prefix"; then
29594 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
29595 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
29596 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29597 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29598 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29599 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29600 if test "${ac_cv_prog_RANLIB+set}" = set; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29602 else
29603 @@ -3690,32 +4190,34 @@ do
29604 IFS=$as_save_IFS
29605 test -z "$as_dir" && as_dir=.
29606 for ac_exec_ext in '' $ac_executable_extensions; do
29607 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29608 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29609 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
29610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29611 break 2
29612 fi
29613 done
29614 done
29615 +IFS=$as_save_IFS
29616
29617 fi
29618 fi
29619 RANLIB=$ac_cv_prog_RANLIB
29620 if test -n "$RANLIB"; then
29621 - echo "$as_me:$LINENO: result: $RANLIB" >&5
29622 -echo "${ECHO_T}$RANLIB" >&6
29623 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
29624 +echo "${ECHO_T}$RANLIB" >&6; }
29625 else
29626 - echo "$as_me:$LINENO: result: no" >&5
29627 -echo "${ECHO_T}no" >&6
29628 + { echo "$as_me:$LINENO: result: no" >&5
29629 +echo "${ECHO_T}no" >&6; }
29630 fi
29631
29632 +
29633 fi
29634 if test -z "$ac_cv_prog_RANLIB"; then
29635 ac_ct_RANLIB=$RANLIB
29636 # Extract the first word of "ranlib", so it can be a program name with args.
29637 set dummy ranlib; ac_word=$2
29638 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29639 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29640 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29641 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
29643 echo $ECHO_N "(cached) $ECHO_C" >&6
29644 else
29645 @@ -3728,27 +4230,41 @@ do
29646 IFS=$as_save_IFS
29647 test -z "$as_dir" && as_dir=.
29648 for ac_exec_ext in '' $ac_executable_extensions; do
29649 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29650 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29651 ac_cv_prog_ac_ct_RANLIB="ranlib"
29652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29653 break 2
29654 fi
29655 done
29656 done
29657 +IFS=$as_save_IFS
29658
29659 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
29660 fi
29661 fi
29662 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
29663 if test -n "$ac_ct_RANLIB"; then
29664 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
29665 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
29666 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
29667 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
29668 else
29669 - echo "$as_me:$LINENO: result: no" >&5
29670 -echo "${ECHO_T}no" >&6
29671 + { echo "$as_me:$LINENO: result: no" >&5
29672 +echo "${ECHO_T}no" >&6; }
29673 fi
29674
29675 - RANLIB=$ac_ct_RANLIB
29676 + if test "x$ac_ct_RANLIB" = x; then
29677 + RANLIB=":"
29678 + else
29679 + case $cross_compiling:$ac_tool_warned in
29680 +yes:)
29681 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29682 +whose name does not start with the host triplet. If you think this
29683 +configuration is useful to you, please write to autoconf@gnu.org." >&5
29684 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29685 +whose name does not start with the host triplet. If you think this
29686 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29687 +ac_tool_warned=yes ;;
29688 +esac
29689 + RANLIB=$ac_ct_RANLIB
29690 + fi
29691 else
29692 RANLIB="$ac_cv_prog_RANLIB"
29693 fi
29694 @@ -3756,8 +4272,8 @@ fi
29695 if test -n "$ac_tool_prefix"; then
29696 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
29697 set dummy ${ac_tool_prefix}strip; ac_word=$2
29698 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29699 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29700 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29701 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29702 if test "${ac_cv_prog_STRIP+set}" = set; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29704 else
29705 @@ -3770,32 +4286,34 @@ do
29706 IFS=$as_save_IFS
29707 test -z "$as_dir" && as_dir=.
29708 for ac_exec_ext in '' $ac_executable_extensions; do
29709 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29710 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
29712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29713 break 2
29714 fi
29715 done
29716 done
29717 +IFS=$as_save_IFS
29718
29719 fi
29720 fi
29721 STRIP=$ac_cv_prog_STRIP
29722 if test -n "$STRIP"; then
29723 - echo "$as_me:$LINENO: result: $STRIP" >&5
29724 -echo "${ECHO_T}$STRIP" >&6
29725 + { echo "$as_me:$LINENO: result: $STRIP" >&5
29726 +echo "${ECHO_T}$STRIP" >&6; }
29727 else
29728 - echo "$as_me:$LINENO: result: no" >&5
29729 -echo "${ECHO_T}no" >&6
29730 + { echo "$as_me:$LINENO: result: no" >&5
29731 +echo "${ECHO_T}no" >&6; }
29732 fi
29733
29734 +
29735 fi
29736 if test -z "$ac_cv_prog_STRIP"; then
29737 ac_ct_STRIP=$STRIP
29738 # Extract the first word of "strip", so it can be a program name with args.
29739 set dummy strip; ac_word=$2
29740 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29741 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29742 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29743 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29744 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
29745 echo $ECHO_N "(cached) $ECHO_C" >&6
29746 else
29747 @@ -3808,27 +4326,41 @@ do
29748 IFS=$as_save_IFS
29749 test -z "$as_dir" && as_dir=.
29750 for ac_exec_ext in '' $ac_executable_extensions; do
29751 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29752 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29753 ac_cv_prog_ac_ct_STRIP="strip"
29754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29755 break 2
29756 fi
29757 done
29758 done
29759 +IFS=$as_save_IFS
29760
29761 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
29762 fi
29763 fi
29764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
29765 if test -n "$ac_ct_STRIP"; then
29766 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29767 -echo "${ECHO_T}$ac_ct_STRIP" >&6
29768 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29769 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
29770 else
29771 - echo "$as_me:$LINENO: result: no" >&5
29772 -echo "${ECHO_T}no" >&6
29773 + { echo "$as_me:$LINENO: result: no" >&5
29774 +echo "${ECHO_T}no" >&6; }
29775 fi
29776
29777 - STRIP=$ac_ct_STRIP
29778 + if test "x$ac_ct_STRIP" = x; then
29779 + STRIP=":"
29780 + else
29781 + case $cross_compiling:$ac_tool_warned in
29782 +yes:)
29783 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29784 +whose name does not start with the host triplet. If you think this
29785 +configuration is useful to you, please write to autoconf@gnu.org." >&5
29786 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29787 +whose name does not start with the host triplet. If you think this
29788 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29789 +ac_tool_warned=yes ;;
29790 +esac
29791 + STRIP=$ac_ct_STRIP
29792 + fi
29793 else
29794 STRIP="$ac_cv_prog_STRIP"
29795 fi
29796 @@ -3843,22 +4375,22 @@ test "$GCC" = yes && libtool_flags="$lib
29797 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
29798
29799
29800 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
29801 +# Check whether --enable-libtool-lock was given.
29802 if test "${enable_libtool_lock+set}" = set; then
29803 - enableval="$enable_libtool_lock"
29804 + enableval=$enable_libtool_lock;
29805 +fi
29806
29807 -fi;
29808 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
29809 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
29810
29811
29812 -# Check whether --with-pic or --without-pic was given.
29813 +# Check whether --with-pic was given.
29814 if test "${with_pic+set}" = set; then
29815 - withval="$with_pic"
29816 - pic_mode="$withval"
29817 + withval=$with_pic; pic_mode="$withval"
29818 else
29819 pic_mode=default
29820 -fi;
29821 +fi
29822 +
29823 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
29824 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
29825
29826 @@ -3867,7 +4399,7 @@ test x"$pic_mode" = xno && libtool_flags
29827 case $host in
29828 *-*-irix6*)
29829 # Find out which ABI we are using.
29830 - echo '#line 3870 "configure"' > conftest.$ac_ext
29831 + echo '#line 4402 "configure"' > conftest.$ac_ext
29832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29833 (eval $ac_compile) 2>&5
29834 ac_status=$?
29835 @@ -3972,13 +4504,12 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
29836 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
29837 SAVE_CFLAGS="$CFLAGS"
29838 CFLAGS="$CFLAGS -belf"
29839 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
29840 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
29841 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
29842 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
29843 if test "${lt_cv_cc_needs_belf+set}" = set; then
29844 echo $ECHO_N "(cached) $ECHO_C" >&6
29845 else
29846
29847 -
29848 ac_ext=c
29849 ac_cpp='$CPP $CPPFLAGS'
29850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29851 @@ -4001,35 +4532,32 @@ main ()
29852 }
29853 _ACEOF
29854 rm -f conftest.$ac_objext conftest$ac_exeext
29855 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29856 - (eval $ac_link) 2>conftest.er1
29857 +if { (ac_try="$ac_link"
29858 +case "(($ac_try" in
29859 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860 + *) ac_try_echo=$ac_try;;
29861 +esac
29862 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863 + (eval "$ac_link") 2>conftest.er1
29864 ac_status=$?
29865 grep -v '^ *+' conftest.er1 >conftest.err
29866 rm -f conftest.er1
29867 cat conftest.err >&5
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 - (exit $ac_status); } &&
29870 - { ac_try='test -z "$ac_c_werror_flag"
29871 - || test ! -s conftest.err'
29872 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29873 - (eval $ac_try) 2>&5
29874 - ac_status=$?
29875 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876 - (exit $ac_status); }; } &&
29877 - { ac_try='test -s conftest$ac_exeext'
29878 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29879 - (eval $ac_try) 2>&5
29880 - ac_status=$?
29881 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 - (exit $ac_status); }; }; then
29883 + (exit $ac_status); } && {
29884 + test -z "$ac_c_werror_flag" ||
29885 + test ! -s conftest.err
29886 + } && test -s conftest$ac_exeext &&
29887 + $as_test_x conftest$ac_exeext; then
29888 lt_cv_cc_needs_belf=yes
29889 else
29890 echo "$as_me: failed program was:" >&5
29891 sed 's/^/| /' conftest.$ac_ext >&5
29892
29893 -lt_cv_cc_needs_belf=no
29894 + lt_cv_cc_needs_belf=no
29895 fi
29896 -rm -f conftest.err conftest.$ac_objext \
29897 +
29898 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29899 conftest$ac_exeext conftest.$ac_ext
29900 ac_ext=c
29901 ac_cpp='$CPP $CPPFLAGS'
29902 @@ -4038,8 +4566,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
29903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29904
29905 fi
29906 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
29907 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
29908 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
29909 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
29910 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
29911 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
29912 CFLAGS="$SAVE_CFLAGS"
29913 @@ -4069,39 +4597,58 @@ _ACEOF
29914
29915 # The following way of writing the cache mishandles newlines in values,
29916 # but we know of no workaround that is simple, portable, and efficient.
29917 -# So, don't put newlines in cache variables' values.
29918 +# So, we kill variables containing newlines.
29919 # Ultrix sh set writes to stderr and can't be redirected directly,
29920 # and sets the high bit in the cache file unless we assign to the vars.
29921 -{
29922 +(
29923 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29924 + eval ac_val=\$$ac_var
29925 + case $ac_val in #(
29926 + *${as_nl}*)
29927 + case $ac_var in #(
29928 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29929 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29930 + esac
29931 + case $ac_var in #(
29932 + _ | IFS | as_nl) ;; #(
29933 + *) $as_unset $ac_var ;;
29934 + esac ;;
29935 + esac
29936 + done
29937 +
29938 (set) 2>&1 |
29939 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
29940 - *ac_space=\ *)
29941 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
29942 + *${as_nl}ac_space=\ *)
29943 # `set' does not quote correctly, so add quotes (double-quote
29944 # substitution turns \\\\ into \\, and sed turns \\ into \).
29945 sed -n \
29946 "s/'/'\\\\''/g;
29947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29948 - ;;
29949 + ;; #(
29950 *)
29951 # `set' quotes correctly as required by POSIX, so do not add quotes.
29952 - sed -n \
29953 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29954 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29955 ;;
29956 - esac;
29957 -} |
29958 + esac |
29959 + sort
29960 +) |
29961 sed '
29962 + /^ac_cv_env_/b end
29963 t clear
29964 - : clear
29965 + :clear
29966 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29967 t end
29968 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29969 - : end' >>confcache
29970 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
29971 - if test -w $cache_file; then
29972 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29973 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29974 + :end' >>confcache
29975 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29976 + if test -w "$cache_file"; then
29977 + test "x$cache_file" != "x/dev/null" &&
29978 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29979 +echo "$as_me: updating cache $cache_file" >&6;}
29980 cat confcache >$cache_file
29981 else
29982 - echo "not updating unwritable cache $cache_file"
29983 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29984 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29985 fi
29986 fi
29987 rm -f confcache
29988 @@ -4127,8 +4674,8 @@ if test -r "$cache_file"; then
29989 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
29990 echo "$as_me: loading cache $cache_file" >&6;}
29991 case $cache_file in
29992 - [\\/]* | ?:[\\/]* ) . $cache_file;;
29993 - *) . ./$cache_file;;
29994 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
29995 + *) . "./$cache_file";;
29996 esac
29997 fi
29998 else
29999 @@ -4154,10 +4701,9 @@ exec 5>>./config.log
30000
30001
30002
30003 -# Check whether --enable-targets or --disable-targets was given.
30004 +# Check whether --enable-targets was given.
30005 if test "${enable_targets+set}" = set; then
30006 - enableval="$enable_targets"
30007 - case "${enableval}" in
30008 + enableval=$enable_targets; case "${enableval}" in
30009 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
30010 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
30011 { (exit 1); exit 1; }; }
30012 @@ -4165,31 +4711,32 @@ echo "$as_me: error: enable-targets opti
30013 no) enable_targets= ;;
30014 *) enable_targets=$enableval ;;
30015 esac
30016 -fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
30017 +fi
30018 +# Check whether --enable-commonbfdlib was given.
30019 if test "${enable_commonbfdlib+set}" = set; then
30020 - enableval="$enable_commonbfdlib"
30021 - case "${enableval}" in
30022 + enableval=$enable_commonbfdlib; case "${enableval}" in
30023 yes) commonbfdlib=true ;;
30024 no) commonbfdlib=false ;;
30025 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
30026 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
30027 { (exit 1); exit 1; }; } ;;
30028 esac
30029 -fi;
30030 +fi
30031 +
30032
30033 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
30034
30035 -# Check whether --enable-werror or --disable-werror was given.
30036 +# Check whether --enable-werror was given.
30037 if test "${enable_werror+set}" = set; then
30038 - enableval="$enable_werror"
30039 - case "${enableval}" in
30040 + enableval=$enable_werror; case "${enableval}" in
30041 yes | y) ERROR_ON_WARNING="yes" ;;
30042 no | n) ERROR_ON_WARNING="no" ;;
30043 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
30044 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
30045 { (exit 1); exit 1; }; } ;;
30046 esac
30047 -fi;
30048 +fi
30049 +
30050
30051 # Enable -Werror by default when using gcc
30052 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
30053 @@ -4206,10 +4753,9 @@ if test "${GCC}" = yes ; then
30054 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
30055 fi
30056
30057 -# Check whether --enable-build-warnings or --disable-build-warnings was given.
30058 +# Check whether --enable-build-warnings was given.
30059 if test "${enable_build_warnings+set}" = set; then
30060 - enableval="$enable_build_warnings"
30061 - case "${enableval}" in
30062 + enableval=$enable_build_warnings; case "${enableval}" in
30063 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
30064 no) if test "${GCC}" = yes ; then
30065 WARN_CFLAGS="-w"
30066 @@ -4220,7 +4766,8 @@ if test "${enable_build_warnings+set}" =
30067 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
30068 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
30069 esac
30070 -fi;
30071 +fi
30072 +
30073
30074 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
30075 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
30076 @@ -4230,7 +4777,7 @@ fi
30077
30078
30079
30080 - ac_config_headers="$ac_config_headers config.h:config.in"
30081 +ac_config_headers="$ac_config_headers config.h:config.in"
30082
30083
30084 if test -z "$target" ; then
30085 @@ -4252,8 +4799,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
30086 if test -n "$ac_tool_prefix"; then
30087 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
30088 set dummy ${ac_tool_prefix}gcc; ac_word=$2
30089 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30090 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30091 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30092 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30093 if test "${ac_cv_prog_CC+set}" = set; then
30094 echo $ECHO_N "(cached) $ECHO_C" >&6
30095 else
30096 @@ -4266,32 +4813,34 @@ do
30097 IFS=$as_save_IFS
30098 test -z "$as_dir" && as_dir=.
30099 for ac_exec_ext in '' $ac_executable_extensions; do
30100 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30101 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30102 ac_cv_prog_CC="${ac_tool_prefix}gcc"
30103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30104 break 2
30105 fi
30106 done
30107 done
30108 +IFS=$as_save_IFS
30109
30110 fi
30111 fi
30112 CC=$ac_cv_prog_CC
30113 if test -n "$CC"; then
30114 - echo "$as_me:$LINENO: result: $CC" >&5
30115 -echo "${ECHO_T}$CC" >&6
30116 + { echo "$as_me:$LINENO: result: $CC" >&5
30117 +echo "${ECHO_T}$CC" >&6; }
30118 else
30119 - echo "$as_me:$LINENO: result: no" >&5
30120 -echo "${ECHO_T}no" >&6
30121 + { echo "$as_me:$LINENO: result: no" >&5
30122 +echo "${ECHO_T}no" >&6; }
30123 fi
30124
30125 +
30126 fi
30127 if test -z "$ac_cv_prog_CC"; then
30128 ac_ct_CC=$CC
30129 # Extract the first word of "gcc", so it can be a program name with args.
30130 set dummy gcc; ac_word=$2
30131 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30132 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30133 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30134 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30136 echo $ECHO_N "(cached) $ECHO_C" >&6
30137 else
30138 @@ -4304,36 +4853,51 @@ do
30139 IFS=$as_save_IFS
30140 test -z "$as_dir" && as_dir=.
30141 for ac_exec_ext in '' $ac_executable_extensions; do
30142 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30143 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30144 ac_cv_prog_ac_ct_CC="gcc"
30145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30146 break 2
30147 fi
30148 done
30149 done
30150 +IFS=$as_save_IFS
30151
30152 fi
30153 fi
30154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30155 if test -n "$ac_ct_CC"; then
30156 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30157 -echo "${ECHO_T}$ac_ct_CC" >&6
30158 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30159 +echo "${ECHO_T}$ac_ct_CC" >&6; }
30160 else
30161 - echo "$as_me:$LINENO: result: no" >&5
30162 -echo "${ECHO_T}no" >&6
30163 + { echo "$as_me:$LINENO: result: no" >&5
30164 +echo "${ECHO_T}no" >&6; }
30165 fi
30166
30167 - CC=$ac_ct_CC
30168 + if test "x$ac_ct_CC" = x; then
30169 + CC=""
30170 + else
30171 + case $cross_compiling:$ac_tool_warned in
30172 +yes:)
30173 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30174 +whose name does not start with the host triplet. If you think this
30175 +configuration is useful to you, please write to autoconf@gnu.org." >&5
30176 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30177 +whose name does not start with the host triplet. If you think this
30178 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30179 +ac_tool_warned=yes ;;
30180 +esac
30181 + CC=$ac_ct_CC
30182 + fi
30183 else
30184 CC="$ac_cv_prog_CC"
30185 fi
30186
30187 if test -z "$CC"; then
30188 - if test -n "$ac_tool_prefix"; then
30189 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30190 + if test -n "$ac_tool_prefix"; then
30191 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30192 set dummy ${ac_tool_prefix}cc; ac_word=$2
30193 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30194 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30195 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30196 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30197 if test "${ac_cv_prog_CC+set}" = set; then
30198 echo $ECHO_N "(cached) $ECHO_C" >&6
30199 else
30200 @@ -4346,74 +4910,34 @@ do
30201 IFS=$as_save_IFS
30202 test -z "$as_dir" && as_dir=.
30203 for ac_exec_ext in '' $ac_executable_extensions; do
30204 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30205 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30206 ac_cv_prog_CC="${ac_tool_prefix}cc"
30207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30208 break 2
30209 fi
30210 done
30211 done
30212 +IFS=$as_save_IFS
30213
30214 fi
30215 fi
30216 CC=$ac_cv_prog_CC
30217 if test -n "$CC"; then
30218 - echo "$as_me:$LINENO: result: $CC" >&5
30219 -echo "${ECHO_T}$CC" >&6
30220 -else
30221 - echo "$as_me:$LINENO: result: no" >&5
30222 -echo "${ECHO_T}no" >&6
30223 -fi
30224 -
30225 -fi
30226 -if test -z "$ac_cv_prog_CC"; then
30227 - ac_ct_CC=$CC
30228 - # Extract the first word of "cc", so it can be a program name with args.
30229 -set dummy cc; ac_word=$2
30230 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30231 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30232 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30233 - echo $ECHO_N "(cached) $ECHO_C" >&6
30234 -else
30235 - if test -n "$ac_ct_CC"; then
30236 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30237 -else
30238 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30239 -for as_dir in $PATH
30240 -do
30241 - IFS=$as_save_IFS
30242 - test -z "$as_dir" && as_dir=.
30243 - for ac_exec_ext in '' $ac_executable_extensions; do
30244 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30245 - ac_cv_prog_ac_ct_CC="cc"
30246 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30247 - break 2
30248 - fi
30249 -done
30250 -done
30251 -
30252 -fi
30253 -fi
30254 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
30255 -if test -n "$ac_ct_CC"; then
30256 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30257 -echo "${ECHO_T}$ac_ct_CC" >&6
30258 + { echo "$as_me:$LINENO: result: $CC" >&5
30259 +echo "${ECHO_T}$CC" >&6; }
30260 else
30261 - echo "$as_me:$LINENO: result: no" >&5
30262 -echo "${ECHO_T}no" >&6
30263 + { echo "$as_me:$LINENO: result: no" >&5
30264 +echo "${ECHO_T}no" >&6; }
30265 fi
30266
30267 - CC=$ac_ct_CC
30268 -else
30269 - CC="$ac_cv_prog_CC"
30270 -fi
30271
30272 + fi
30273 fi
30274 if test -z "$CC"; then
30275 # Extract the first word of "cc", so it can be a program name with args.
30276 set dummy cc; ac_word=$2
30277 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30278 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30279 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30280 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30281 if test "${ac_cv_prog_CC+set}" = set; then
30282 echo $ECHO_N "(cached) $ECHO_C" >&6
30283 else
30284 @@ -4427,7 +4951,7 @@ do
30285 IFS=$as_save_IFS
30286 test -z "$as_dir" && as_dir=.
30287 for ac_exec_ext in '' $ac_executable_extensions; do
30288 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30289 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
30291 ac_prog_rejected=yes
30292 continue
30293 @@ -4438,6 +4962,7 @@ do
30294 fi
30295 done
30296 done
30297 +IFS=$as_save_IFS
30298
30299 if test $ac_prog_rejected = yes; then
30300 # We found a bogon in the path, so make sure we never use it.
30301 @@ -4455,22 +4980,23 @@ fi
30302 fi
30303 CC=$ac_cv_prog_CC
30304 if test -n "$CC"; then
30305 - echo "$as_me:$LINENO: result: $CC" >&5
30306 -echo "${ECHO_T}$CC" >&6
30307 + { echo "$as_me:$LINENO: result: $CC" >&5
30308 +echo "${ECHO_T}$CC" >&6; }
30309 else
30310 - echo "$as_me:$LINENO: result: no" >&5
30311 -echo "${ECHO_T}no" >&6
30312 + { echo "$as_me:$LINENO: result: no" >&5
30313 +echo "${ECHO_T}no" >&6; }
30314 fi
30315
30316 +
30317 fi
30318 if test -z "$CC"; then
30319 if test -n "$ac_tool_prefix"; then
30320 - for ac_prog in cl
30321 + for ac_prog in cl.exe
30322 do
30323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30325 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30326 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30327 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30328 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30329 if test "${ac_cv_prog_CC+set}" = set; then
30330 echo $ECHO_N "(cached) $ECHO_C" >&6
30331 else
30332 @@ -4483,36 +5009,38 @@ do
30333 IFS=$as_save_IFS
30334 test -z "$as_dir" && as_dir=.
30335 for ac_exec_ext in '' $ac_executable_extensions; do
30336 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30337 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30338 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
30339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30340 break 2
30341 fi
30342 done
30343 done
30344 +IFS=$as_save_IFS
30345
30346 fi
30347 fi
30348 CC=$ac_cv_prog_CC
30349 if test -n "$CC"; then
30350 - echo "$as_me:$LINENO: result: $CC" >&5
30351 -echo "${ECHO_T}$CC" >&6
30352 + { echo "$as_me:$LINENO: result: $CC" >&5
30353 +echo "${ECHO_T}$CC" >&6; }
30354 else
30355 - echo "$as_me:$LINENO: result: no" >&5
30356 -echo "${ECHO_T}no" >&6
30357 + { echo "$as_me:$LINENO: result: no" >&5
30358 +echo "${ECHO_T}no" >&6; }
30359 fi
30360
30361 +
30362 test -n "$CC" && break
30363 done
30364 fi
30365 if test -z "$CC"; then
30366 ac_ct_CC=$CC
30367 - for ac_prog in cl
30368 + for ac_prog in cl.exe
30369 do
30370 # Extract the first word of "$ac_prog", so it can be a program name with args.
30371 set dummy $ac_prog; ac_word=$2
30372 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30373 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30374 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30375 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30376 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30377 echo $ECHO_N "(cached) $ECHO_C" >&6
30378 else
30379 @@ -4525,29 +5053,45 @@ do
30380 IFS=$as_save_IFS
30381 test -z "$as_dir" && as_dir=.
30382 for ac_exec_ext in '' $ac_executable_extensions; do
30383 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30384 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30385 ac_cv_prog_ac_ct_CC="$ac_prog"
30386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30387 break 2
30388 fi
30389 done
30390 done
30391 +IFS=$as_save_IFS
30392
30393 fi
30394 fi
30395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30396 if test -n "$ac_ct_CC"; then
30397 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30398 -echo "${ECHO_T}$ac_ct_CC" >&6
30399 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30400 +echo "${ECHO_T}$ac_ct_CC" >&6; }
30401 else
30402 - echo "$as_me:$LINENO: result: no" >&5
30403 -echo "${ECHO_T}no" >&6
30404 + { echo "$as_me:$LINENO: result: no" >&5
30405 +echo "${ECHO_T}no" >&6; }
30406 fi
30407
30408 +
30409 test -n "$ac_ct_CC" && break
30410 done
30411
30412 - CC=$ac_ct_CC
30413 + if test "x$ac_ct_CC" = x; then
30414 + CC=""
30415 + else
30416 + case $cross_compiling:$ac_tool_warned in
30417 +yes:)
30418 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30419 +whose name does not start with the host triplet. If you think this
30420 +configuration is useful to you, please write to autoconf@gnu.org." >&5
30421 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30422 +whose name does not start with the host triplet. If you think this
30423 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30424 +ac_tool_warned=yes ;;
30425 +esac
30426 + CC=$ac_ct_CC
30427 + fi
30428 fi
30429
30430 fi
30431 @@ -4560,27 +5104,41 @@ See \`config.log' for more details." >&2
30432 { (exit 1); exit 1; }; }
30433
30434 # Provide some information about the compiler.
30435 -echo "$as_me:$LINENO:" \
30436 - "checking for C compiler version" >&5
30437 +echo "$as_me:$LINENO: checking for C compiler version" >&5
30438 ac_compiler=`set X $ac_compile; echo $2`
30439 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
30440 - (eval $ac_compiler --version </dev/null >&5) 2>&5
30441 +{ (ac_try="$ac_compiler --version >&5"
30442 +case "(($ac_try" in
30443 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444 + *) ac_try_echo=$ac_try;;
30445 +esac
30446 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447 + (eval "$ac_compiler --version >&5") 2>&5
30448 ac_status=$?
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }
30451 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
30452 - (eval $ac_compiler -v </dev/null >&5) 2>&5
30453 +{ (ac_try="$ac_compiler -v >&5"
30454 +case "(($ac_try" in
30455 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30456 + *) ac_try_echo=$ac_try;;
30457 +esac
30458 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30459 + (eval "$ac_compiler -v >&5") 2>&5
30460 ac_status=$?
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); }
30463 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
30464 - (eval $ac_compiler -V </dev/null >&5) 2>&5
30465 +{ (ac_try="$ac_compiler -V >&5"
30466 +case "(($ac_try" in
30467 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468 + *) ac_try_echo=$ac_try;;
30469 +esac
30470 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471 + (eval "$ac_compiler -V >&5") 2>&5
30472 ac_status=$?
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }
30475
30476 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30477 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
30478 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30479 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
30480 if test "${ac_cv_c_compiler_gnu+set}" = set; then
30481 echo $ECHO_N "(cached) $ECHO_C" >&6
30482 else
30483 @@ -4603,50 +5161,49 @@ main ()
30484 }
30485 _ACEOF
30486 rm -f conftest.$ac_objext
30487 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30488 - (eval $ac_compile) 2>conftest.er1
30489 +if { (ac_try="$ac_compile"
30490 +case "(($ac_try" in
30491 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30492 + *) ac_try_echo=$ac_try;;
30493 +esac
30494 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30495 + (eval "$ac_compile") 2>conftest.er1
30496 ac_status=$?
30497 grep -v '^ *+' conftest.er1 >conftest.err
30498 rm -f conftest.er1
30499 cat conftest.err >&5
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 - (exit $ac_status); } &&
30502 - { ac_try='test -z "$ac_c_werror_flag"
30503 - || test ! -s conftest.err'
30504 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505 - (eval $ac_try) 2>&5
30506 - ac_status=$?
30507 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 - (exit $ac_status); }; } &&
30509 - { ac_try='test -s conftest.$ac_objext'
30510 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30511 - (eval $ac_try) 2>&5
30512 - ac_status=$?
30513 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514 - (exit $ac_status); }; }; then
30515 + (exit $ac_status); } && {
30516 + test -z "$ac_c_werror_flag" ||
30517 + test ! -s conftest.err
30518 + } && test -s conftest.$ac_objext; then
30519 ac_compiler_gnu=yes
30520 else
30521 echo "$as_me: failed program was:" >&5
30522 sed 's/^/| /' conftest.$ac_ext >&5
30523
30524 -ac_compiler_gnu=no
30525 + ac_compiler_gnu=no
30526 fi
30527 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30528 +
30529 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
30531
30532 fi
30533 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
30534 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
30535 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
30536 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
30537 GCC=`test $ac_compiler_gnu = yes && echo yes`
30538 ac_test_CFLAGS=${CFLAGS+set}
30539 ac_save_CFLAGS=$CFLAGS
30540 -CFLAGS="-g"
30541 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
30542 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
30543 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
30544 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
30545 if test "${ac_cv_prog_cc_g+set}" = set; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30547 else
30548 - cat >conftest.$ac_ext <<_ACEOF
30549 + ac_save_c_werror_flag=$ac_c_werror_flag
30550 + ac_c_werror_flag=yes
30551 + ac_cv_prog_cc_g=no
30552 + CFLAGS="-g"
30553 + cat >conftest.$ac_ext <<_ACEOF
30554 /* confdefs.h. */
30555 _ACEOF
30556 cat confdefs.h >>conftest.$ac_ext
30557 @@ -4662,311 +5219,248 @@ main ()
30558 }
30559 _ACEOF
30560 rm -f conftest.$ac_objext
30561 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30562 - (eval $ac_compile) 2>conftest.er1
30563 +if { (ac_try="$ac_compile"
30564 +case "(($ac_try" in
30565 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30566 + *) ac_try_echo=$ac_try;;
30567 +esac
30568 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30569 + (eval "$ac_compile") 2>conftest.er1
30570 ac_status=$?
30571 grep -v '^ *+' conftest.er1 >conftest.err
30572 rm -f conftest.er1
30573 cat conftest.err >&5
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 - (exit $ac_status); } &&
30576 - { ac_try='test -z "$ac_c_werror_flag"
30577 - || test ! -s conftest.err'
30578 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30579 - (eval $ac_try) 2>&5
30580 - ac_status=$?
30581 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 - (exit $ac_status); }; } &&
30583 - { ac_try='test -s conftest.$ac_objext'
30584 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30585 - (eval $ac_try) 2>&5
30586 - ac_status=$?
30587 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 - (exit $ac_status); }; }; then
30589 + (exit $ac_status); } && {
30590 + test -z "$ac_c_werror_flag" ||
30591 + test ! -s conftest.err
30592 + } && test -s conftest.$ac_objext; then
30593 ac_cv_prog_cc_g=yes
30594 else
30595 echo "$as_me: failed program was:" >&5
30596 sed 's/^/| /' conftest.$ac_ext >&5
30597
30598 -ac_cv_prog_cc_g=no
30599 -fi
30600 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30601 -fi
30602 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
30603 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
30604 -if test "$ac_test_CFLAGS" = set; then
30605 - CFLAGS=$ac_save_CFLAGS
30606 -elif test $ac_cv_prog_cc_g = yes; then
30607 - if test "$GCC" = yes; then
30608 - CFLAGS="-g -O2"
30609 - else
30610 - CFLAGS="-g"
30611 - fi
30612 -else
30613 - if test "$GCC" = yes; then
30614 - CFLAGS="-O2"
30615 - else
30616 - CFLAGS=
30617 - fi
30618 -fi
30619 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
30620 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
30621 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
30622 - echo $ECHO_N "(cached) $ECHO_C" >&6
30623 -else
30624 - ac_cv_prog_cc_stdc=no
30625 -ac_save_CC=$CC
30626 -cat >conftest.$ac_ext <<_ACEOF
30627 + CFLAGS=""
30628 + cat >conftest.$ac_ext <<_ACEOF
30629 /* confdefs.h. */
30630 _ACEOF
30631 cat confdefs.h >>conftest.$ac_ext
30632 cat >>conftest.$ac_ext <<_ACEOF
30633 /* end confdefs.h. */
30634 -#include <stdarg.h>
30635 -#include <stdio.h>
30636 -#include <sys/types.h>
30637 -#include <sys/stat.h>
30638 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
30639 -struct buf { int x; };
30640 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
30641 -static char *e (p, i)
30642 - char **p;
30643 - int i;
30644 -{
30645 - return p[i];
30646 -}
30647 -static char *f (char * (*g) (char **, int), char **p, ...)
30648 -{
30649 - char *s;
30650 - va_list v;
30651 - va_start (v,p);
30652 - s = g (p, va_arg (v,int));
30653 - va_end (v);
30654 - return s;
30655 -}
30656
30657 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
30658 - function prototypes and stuff, but not '\xHH' hex character constants.
30659 - These don't provoke an error unfortunately, instead are silently treated
30660 - as 'x'. The following induces an error, until -std1 is added to get
30661 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
30662 - array size at least. It's necessary to write '\x00'==0 to get something
30663 - that's true only with -std1. */
30664 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
30665 -
30666 -int test (int i, double x);
30667 -struct s1 {int (*f) (int a);};
30668 -struct s2 {int (*f) (double a);};
30669 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30670 -int argc;
30671 -char **argv;
30672 int
30673 main ()
30674 {
30675 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
30676 +
30677 ;
30678 return 0;
30679 }
30680 _ACEOF
30681 -# Don't try gcc -ansi; that turns off useful extensions and
30682 -# breaks some systems' header files.
30683 -# AIX -qlanglvl=ansi
30684 -# Ultrix and OSF/1 -std1
30685 -# HP-UX 10.20 and later -Ae
30686 -# HP-UX older versions -Aa -D_HPUX_SOURCE
30687 -# SVR4 -Xc -D__EXTENSIONS__
30688 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30689 -do
30690 - CC="$ac_save_CC $ac_arg"
30691 - rm -f conftest.$ac_objext
30692 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30693 - (eval $ac_compile) 2>conftest.er1
30694 +rm -f conftest.$ac_objext
30695 +if { (ac_try="$ac_compile"
30696 +case "(($ac_try" in
30697 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698 + *) ac_try_echo=$ac_try;;
30699 +esac
30700 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701 + (eval "$ac_compile") 2>conftest.er1
30702 ac_status=$?
30703 grep -v '^ *+' conftest.er1 >conftest.err
30704 rm -f conftest.er1
30705 cat conftest.err >&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 - (exit $ac_status); } &&
30708 - { ac_try='test -z "$ac_c_werror_flag"
30709 - || test ! -s conftest.err'
30710 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30711 - (eval $ac_try) 2>&5
30712 - ac_status=$?
30713 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714 - (exit $ac_status); }; } &&
30715 - { ac_try='test -s conftest.$ac_objext'
30716 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30717 - (eval $ac_try) 2>&5
30718 - ac_status=$?
30719 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 - (exit $ac_status); }; }; then
30721 - ac_cv_prog_cc_stdc=$ac_arg
30722 -break
30723 + (exit $ac_status); } && {
30724 + test -z "$ac_c_werror_flag" ||
30725 + test ! -s conftest.err
30726 + } && test -s conftest.$ac_objext; then
30727 + :
30728 else
30729 echo "$as_me: failed program was:" >&5
30730 sed 's/^/| /' conftest.$ac_ext >&5
30731
30732 -fi
30733 -rm -f conftest.err conftest.$ac_objext
30734 -done
30735 -rm -f conftest.$ac_ext conftest.$ac_objext
30736 -CC=$ac_save_CC
30737 -
30738 -fi
30739 -
30740 -case "x$ac_cv_prog_cc_stdc" in
30741 - x|xno)
30742 - echo "$as_me:$LINENO: result: none needed" >&5
30743 -echo "${ECHO_T}none needed" >&6 ;;
30744 - *)
30745 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
30746 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
30747 - CC="$CC $ac_cv_prog_cc_stdc" ;;
30748 -esac
30749 -
30750 -# Some people use a C++ compiler to compile C. Since we use `exit',
30751 -# in C++ we need to declare it. In case someone uses the same compiler
30752 -# for both compiling C and C++ we need to have the C++ compiler decide
30753 -# the declaration of exit, since it's the most demanding environment.
30754 -cat >conftest.$ac_ext <<_ACEOF
30755 -#ifndef __cplusplus
30756 - choke me
30757 -#endif
30758 -_ACEOF
30759 -rm -f conftest.$ac_objext
30760 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30761 - (eval $ac_compile) 2>conftest.er1
30762 - ac_status=$?
30763 - grep -v '^ *+' conftest.er1 >conftest.err
30764 - rm -f conftest.er1
30765 - cat conftest.err >&5
30766 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 - (exit $ac_status); } &&
30768 - { ac_try='test -z "$ac_c_werror_flag"
30769 - || test ! -s conftest.err'
30770 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30771 - (eval $ac_try) 2>&5
30772 - ac_status=$?
30773 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 - (exit $ac_status); }; } &&
30775 - { ac_try='test -s conftest.$ac_objext'
30776 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777 - (eval $ac_try) 2>&5
30778 - ac_status=$?
30779 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 - (exit $ac_status); }; }; then
30781 - for ac_declaration in \
30782 - '' \
30783 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
30784 - 'extern "C" void std::exit (int); using std::exit;' \
30785 - 'extern "C" void exit (int) throw ();' \
30786 - 'extern "C" void exit (int);' \
30787 - 'void exit (int);'
30788 -do
30789 - cat >conftest.$ac_ext <<_ACEOF
30790 + ac_c_werror_flag=$ac_save_c_werror_flag
30791 + CFLAGS="-g"
30792 + cat >conftest.$ac_ext <<_ACEOF
30793 /* confdefs.h. */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30798 -$ac_declaration
30799 -#include <stdlib.h>
30800 +
30801 int
30802 main ()
30803 {
30804 -exit (42);
30805 +
30806 ;
30807 return 0;
30808 }
30809 _ACEOF
30810 rm -f conftest.$ac_objext
30811 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30812 - (eval $ac_compile) 2>conftest.er1
30813 +if { (ac_try="$ac_compile"
30814 +case "(($ac_try" in
30815 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816 + *) ac_try_echo=$ac_try;;
30817 +esac
30818 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819 + (eval "$ac_compile") 2>conftest.er1
30820 ac_status=$?
30821 grep -v '^ *+' conftest.er1 >conftest.err
30822 rm -f conftest.er1
30823 cat conftest.err >&5
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 - (exit $ac_status); } &&
30826 - { ac_try='test -z "$ac_c_werror_flag"
30827 - || test ! -s conftest.err'
30828 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829 - (eval $ac_try) 2>&5
30830 - ac_status=$?
30831 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 - (exit $ac_status); }; } &&
30833 - { ac_try='test -s conftest.$ac_objext'
30834 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30835 - (eval $ac_try) 2>&5
30836 - ac_status=$?
30837 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 - (exit $ac_status); }; }; then
30839 - :
30840 + (exit $ac_status); } && {
30841 + test -z "$ac_c_werror_flag" ||
30842 + test ! -s conftest.err
30843 + } && test -s conftest.$ac_objext; then
30844 + ac_cv_prog_cc_g=yes
30845 else
30846 echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.$ac_ext >&5
30848
30849 -continue
30850 +
30851 fi
30852 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30853 - cat >conftest.$ac_ext <<_ACEOF
30854 +
30855 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30856 +fi
30857 +
30858 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30859 +fi
30860 +
30861 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30862 + ac_c_werror_flag=$ac_save_c_werror_flag
30863 +fi
30864 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
30865 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
30866 +if test "$ac_test_CFLAGS" = set; then
30867 + CFLAGS=$ac_save_CFLAGS
30868 +elif test $ac_cv_prog_cc_g = yes; then
30869 + if test "$GCC" = yes; then
30870 + CFLAGS="-g -O2"
30871 + else
30872 + CFLAGS="-g"
30873 + fi
30874 +else
30875 + if test "$GCC" = yes; then
30876 + CFLAGS="-O2"
30877 + else
30878 + CFLAGS=
30879 + fi
30880 +fi
30881 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
30882 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
30883 +if test "${ac_cv_prog_cc_c89+set}" = set; then
30884 + echo $ECHO_N "(cached) $ECHO_C" >&6
30885 +else
30886 + ac_cv_prog_cc_c89=no
30887 +ac_save_CC=$CC
30888 +cat >conftest.$ac_ext <<_ACEOF
30889 /* confdefs.h. */
30890 _ACEOF
30891 cat confdefs.h >>conftest.$ac_ext
30892 cat >>conftest.$ac_ext <<_ACEOF
30893 /* end confdefs.h. */
30894 -$ac_declaration
30895 +#include <stdarg.h>
30896 +#include <stdio.h>
30897 +#include <sys/types.h>
30898 +#include <sys/stat.h>
30899 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
30900 +struct buf { int x; };
30901 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
30902 +static char *e (p, i)
30903 + char **p;
30904 + int i;
30905 +{
30906 + return p[i];
30907 +}
30908 +static char *f (char * (*g) (char **, int), char **p, ...)
30909 +{
30910 + char *s;
30911 + va_list v;
30912 + va_start (v,p);
30913 + s = g (p, va_arg (v,int));
30914 + va_end (v);
30915 + return s;
30916 +}
30917 +
30918 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
30919 + function prototypes and stuff, but not '\xHH' hex character constants.
30920 + These don't provoke an error unfortunately, instead are silently treated
30921 + as 'x'. The following induces an error, until -std is added to get
30922 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
30923 + array size at least. It's necessary to write '\x00'==0 to get something
30924 + that's true only with -std. */
30925 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
30926 +
30927 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
30928 + inside strings and character constants. */
30929 +#define FOO(x) 'x'
30930 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
30931 +
30932 +int test (int i, double x);
30933 +struct s1 {int (*f) (int a);};
30934 +struct s2 {int (*f) (double a);};
30935 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30936 +int argc;
30937 +char **argv;
30938 int
30939 main ()
30940 {
30941 -exit (42);
30942 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
30943 ;
30944 return 0;
30945 }
30946 _ACEOF
30947 -rm -f conftest.$ac_objext
30948 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30949 - (eval $ac_compile) 2>conftest.er1
30950 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
30951 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30952 +do
30953 + CC="$ac_save_CC $ac_arg"
30954 + rm -f conftest.$ac_objext
30955 +if { (ac_try="$ac_compile"
30956 +case "(($ac_try" in
30957 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30958 + *) ac_try_echo=$ac_try;;
30959 +esac
30960 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30961 + (eval "$ac_compile") 2>conftest.er1
30962 ac_status=$?
30963 grep -v '^ *+' conftest.er1 >conftest.err
30964 rm -f conftest.er1
30965 cat conftest.err >&5
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 - (exit $ac_status); } &&
30968 - { ac_try='test -z "$ac_c_werror_flag"
30969 - || test ! -s conftest.err'
30970 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30971 - (eval $ac_try) 2>&5
30972 - ac_status=$?
30973 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 - (exit $ac_status); }; } &&
30975 - { ac_try='test -s conftest.$ac_objext'
30976 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977 - (eval $ac_try) 2>&5
30978 - ac_status=$?
30979 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 - (exit $ac_status); }; }; then
30981 - break
30982 + (exit $ac_status); } && {
30983 + test -z "$ac_c_werror_flag" ||
30984 + test ! -s conftest.err
30985 + } && test -s conftest.$ac_objext; then
30986 + ac_cv_prog_cc_c89=$ac_arg
30987 else
30988 echo "$as_me: failed program was:" >&5
30989 sed 's/^/| /' conftest.$ac_ext >&5
30990
30991 +
30992 fi
30993 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30994 +
30995 +rm -f core conftest.err conftest.$ac_objext
30996 + test "x$ac_cv_prog_cc_c89" != "xno" && break
30997 done
30998 -rm -f conftest*
30999 -if test -n "$ac_declaration"; then
31000 - echo '#ifdef __cplusplus' >>confdefs.h
31001 - echo $ac_declaration >>confdefs.h
31002 - echo '#endif' >>confdefs.h
31003 +rm -f conftest.$ac_ext
31004 +CC=$ac_save_CC
31005 +
31006 fi
31007 +# AC_CACHE_VAL
31008 +case "x$ac_cv_prog_cc_c89" in
31009 + x)
31010 + { echo "$as_me:$LINENO: result: none needed" >&5
31011 +echo "${ECHO_T}none needed" >&6; } ;;
31012 + xno)
31013 + { echo "$as_me:$LINENO: result: unsupported" >&5
31014 +echo "${ECHO_T}unsupported" >&6; } ;;
31015 + *)
31016 + CC="$CC $ac_cv_prog_cc_c89"
31017 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
31018 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
31019 +esac
31020
31021 -else
31022 - echo "$as_me: failed program was:" >&5
31023 -sed 's/^/| /' conftest.$ac_ext >&5
31024
31025 -fi
31026 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31027 ac_ext=c
31028 ac_cpp='$CPP $CPPFLAGS'
31029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31030 @@ -4984,8 +5478,8 @@ for ac_prog in 'bison -y' byacc
31031 do
31032 # Extract the first word of "$ac_prog", so it can be a program name with args.
31033 set dummy $ac_prog; ac_word=$2
31034 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31035 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31036 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31037 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31038 if test "${ac_cv_prog_YACC+set}" = set; then
31039 echo $ECHO_N "(cached) $ECHO_C" >&6
31040 else
31041 @@ -4998,25 +5492,27 @@ do
31042 IFS=$as_save_IFS
31043 test -z "$as_dir" && as_dir=.
31044 for ac_exec_ext in '' $ac_executable_extensions; do
31045 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31046 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31047 ac_cv_prog_YACC="$ac_prog"
31048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31049 break 2
31050 fi
31051 done
31052 done
31053 +IFS=$as_save_IFS
31054
31055 fi
31056 fi
31057 YACC=$ac_cv_prog_YACC
31058 if test -n "$YACC"; then
31059 - echo "$as_me:$LINENO: result: $YACC" >&5
31060 -echo "${ECHO_T}$YACC" >&6
31061 + { echo "$as_me:$LINENO: result: $YACC" >&5
31062 +echo "${ECHO_T}$YACC" >&6; }
31063 else
31064 - echo "$as_me:$LINENO: result: no" >&5
31065 -echo "${ECHO_T}no" >&6
31066 + { echo "$as_me:$LINENO: result: no" >&5
31067 +echo "${ECHO_T}no" >&6; }
31068 fi
31069
31070 +
31071 test -n "$YACC" && break
31072 done
31073 test -n "$YACC" || YACC="yacc"
31074 @@ -5025,8 +5521,8 @@ for ac_prog in flex lex
31075 do
31076 # Extract the first word of "$ac_prog", so it can be a program name with args.
31077 set dummy $ac_prog; ac_word=$2
31078 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31079 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31080 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31081 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31082 if test "${ac_cv_prog_LEX+set}" = set; then
31083 echo $ECHO_N "(cached) $ECHO_C" >&6
31084 else
31085 @@ -5039,253 +5535,182 @@ do
31086 IFS=$as_save_IFS
31087 test -z "$as_dir" && as_dir=.
31088 for ac_exec_ext in '' $ac_executable_extensions; do
31089 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31090 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31091 ac_cv_prog_LEX="$ac_prog"
31092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31093 break 2
31094 fi
31095 done
31096 done
31097 +IFS=$as_save_IFS
31098
31099 fi
31100 fi
31101 LEX=$ac_cv_prog_LEX
31102 if test -n "$LEX"; then
31103 - echo "$as_me:$LINENO: result: $LEX" >&5
31104 -echo "${ECHO_T}$LEX" >&6
31105 + { echo "$as_me:$LINENO: result: $LEX" >&5
31106 +echo "${ECHO_T}$LEX" >&6; }
31107 else
31108 - echo "$as_me:$LINENO: result: no" >&5
31109 -echo "${ECHO_T}no" >&6
31110 + { echo "$as_me:$LINENO: result: no" >&5
31111 +echo "${ECHO_T}no" >&6; }
31112 fi
31113
31114 +
31115 test -n "$LEX" && break
31116 done
31117 test -n "$LEX" || LEX=":"
31118
31119 -if test -z "$LEXLIB"
31120 -then
31121 - echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
31122 -echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
31123 -if test "${ac_cv_lib_fl_yywrap+set}" = set; then
31124 - echo $ECHO_N "(cached) $ECHO_C" >&6
31125 -else
31126 - ac_check_lib_save_LIBS=$LIBS
31127 -LIBS="-lfl $LIBS"
31128 -cat >conftest.$ac_ext <<_ACEOF
31129 -/* confdefs.h. */
31130 -_ACEOF
31131 -cat confdefs.h >>conftest.$ac_ext
31132 -cat >>conftest.$ac_ext <<_ACEOF
31133 -/* end confdefs.h. */
31134 -
31135 -/* Override any gcc2 internal prototype to avoid an error. */
31136 -#ifdef __cplusplus
31137 -extern "C"
31138 +if test "x$LEX" != "x:"; then
31139 + cat >conftest.l <<_ACEOF
31140 +%%
31141 +a { ECHO; }
31142 +b { REJECT; }
31143 +c { yymore (); }
31144 +d { yyless (1); }
31145 +e { yyless (input () != 0); }
31146 +f { unput (yytext[0]); }
31147 +. { BEGIN INITIAL; }
31148 +%%
31149 +#ifdef YYTEXT_POINTER
31150 +extern char *yytext;
31151 #endif
31152 -/* We use char because int might match the return type of a gcc2
31153 - builtin and then its argument prototype would still apply. */
31154 -char yywrap ();
31155 int
31156 -main ()
31157 +main (void)
31158 {
31159 -yywrap ();
31160 - ;
31161 - return 0;
31162 + return ! yylex () + ! yywrap ();
31163 }
31164 _ACEOF
31165 -rm -f conftest.$ac_objext conftest$ac_exeext
31166 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31167 - (eval $ac_link) 2>conftest.er1
31168 - ac_status=$?
31169 - grep -v '^ *+' conftest.er1 >conftest.err
31170 - rm -f conftest.er1
31171 - cat conftest.err >&5
31172 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 - (exit $ac_status); } &&
31174 - { ac_try='test -z "$ac_c_werror_flag"
31175 - || test ! -s conftest.err'
31176 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31177 - (eval $ac_try) 2>&5
31178 - ac_status=$?
31179 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 - (exit $ac_status); }; } &&
31181 - { ac_try='test -s conftest$ac_exeext'
31182 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31183 - (eval $ac_try) 2>&5
31184 +{ (ac_try="$LEX conftest.l"
31185 +case "(($ac_try" in
31186 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 + *) ac_try_echo=$ac_try;;
31188 +esac
31189 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190 + (eval "$LEX conftest.l") 2>&5
31191 ac_status=$?
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 - (exit $ac_status); }; }; then
31194 - ac_cv_lib_fl_yywrap=yes
31195 + (exit $ac_status); }
31196 +{ echo "$as_me:$LINENO: checking lex output file root" >&5
31197 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
31198 +if test "${ac_cv_prog_lex_root+set}" = set; then
31199 + echo $ECHO_N "(cached) $ECHO_C" >&6
31200 else
31201 - echo "$as_me: failed program was:" >&5
31202 -sed 's/^/| /' conftest.$ac_ext >&5
31203
31204 -ac_cv_lib_fl_yywrap=no
31205 +if test -f lex.yy.c; then
31206 + ac_cv_prog_lex_root=lex.yy
31207 +elif test -f lexyy.c; then
31208 + ac_cv_prog_lex_root=lexyy
31209 +else
31210 + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
31211 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
31212 + { (exit 1); exit 1; }; }
31213 fi
31214 -rm -f conftest.err conftest.$ac_objext \
31215 - conftest$ac_exeext conftest.$ac_ext
31216 -LIBS=$ac_check_lib_save_LIBS
31217 fi
31218 -echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
31219 -echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
31220 -if test $ac_cv_lib_fl_yywrap = yes; then
31221 - LEXLIB="-lfl"
31222 -else
31223 - echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
31224 -echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
31225 -if test "${ac_cv_lib_l_yywrap+set}" = set; then
31226 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
31227 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
31228 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
31229 +
31230 +if test -z "${LEXLIB+set}"; then
31231 + { echo "$as_me:$LINENO: checking lex library" >&5
31232 +echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
31233 +if test "${ac_cv_lib_lex+set}" = set; then
31234 echo $ECHO_N "(cached) $ECHO_C" >&6
31235 else
31236 - ac_check_lib_save_LIBS=$LIBS
31237 -LIBS="-ll $LIBS"
31238 -cat >conftest.$ac_ext <<_ACEOF
31239 -/* confdefs.h. */
31240 -_ACEOF
31241 -cat confdefs.h >>conftest.$ac_ext
31242 -cat >>conftest.$ac_ext <<_ACEOF
31243 -/* end confdefs.h. */
31244
31245 -/* Override any gcc2 internal prototype to avoid an error. */
31246 -#ifdef __cplusplus
31247 -extern "C"
31248 -#endif
31249 -/* We use char because int might match the return type of a gcc2
31250 - builtin and then its argument prototype would still apply. */
31251 -char yywrap ();
31252 -int
31253 -main ()
31254 -{
31255 -yywrap ();
31256 - ;
31257 - return 0;
31258 -}
31259 + ac_save_LIBS=$LIBS
31260 + ac_cv_lib_lex='none needed'
31261 + for ac_lib in '' -lfl -ll; do
31262 + LIBS="$ac_lib $ac_save_LIBS"
31263 + cat >conftest.$ac_ext <<_ACEOF
31264 +`cat $LEX_OUTPUT_ROOT.c`
31265 _ACEOF
31266 rm -f conftest.$ac_objext conftest$ac_exeext
31267 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31268 - (eval $ac_link) 2>conftest.er1
31269 +if { (ac_try="$ac_link"
31270 +case "(($ac_try" in
31271 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31272 + *) ac_try_echo=$ac_try;;
31273 +esac
31274 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31275 + (eval "$ac_link") 2>conftest.er1
31276 ac_status=$?
31277 grep -v '^ *+' conftest.er1 >conftest.err
31278 rm -f conftest.er1
31279 cat conftest.err >&5
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 - (exit $ac_status); } &&
31282 - { ac_try='test -z "$ac_c_werror_flag"
31283 - || test ! -s conftest.err'
31284 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31285 - (eval $ac_try) 2>&5
31286 - ac_status=$?
31287 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288 - (exit $ac_status); }; } &&
31289 - { ac_try='test -s conftest$ac_exeext'
31290 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31291 - (eval $ac_try) 2>&5
31292 - ac_status=$?
31293 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294 - (exit $ac_status); }; }; then
31295 - ac_cv_lib_l_yywrap=yes
31296 + (exit $ac_status); } && {
31297 + test -z "$ac_c_werror_flag" ||
31298 + test ! -s conftest.err
31299 + } && test -s conftest$ac_exeext &&
31300 + $as_test_x conftest$ac_exeext; then
31301 + ac_cv_lib_lex=$ac_lib
31302 else
31303 echo "$as_me: failed program was:" >&5
31304 sed 's/^/| /' conftest.$ac_ext >&5
31305
31306 -ac_cv_lib_l_yywrap=no
31307 -fi
31308 -rm -f conftest.err conftest.$ac_objext \
31309 - conftest$ac_exeext conftest.$ac_ext
31310 -LIBS=$ac_check_lib_save_LIBS
31311 -fi
31312 -echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
31313 -echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
31314 -if test $ac_cv_lib_l_yywrap = yes; then
31315 - LEXLIB="-ll"
31316 -fi
31317 -
31318 -fi
31319 -
31320 -fi
31321
31322 -if test "x$LEX" != "x:"; then
31323 - echo "$as_me:$LINENO: checking lex output file root" >&5
31324 -echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
31325 -if test "${ac_cv_prog_lex_root+set}" = set; then
31326 - echo $ECHO_N "(cached) $ECHO_C" >&6
31327 -else
31328 - # The minimal lex program is just a single line: %%. But some broken lexes
31329 -# (Solaris, I think it was) want two %% lines, so accommodate them.
31330 -cat >conftest.l <<_ACEOF
31331 -%%
31332 -%%
31333 -_ACEOF
31334 -{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
31335 - (eval $LEX conftest.l) 2>&5
31336 - ac_status=$?
31337 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 - (exit $ac_status); }
31339 -if test -f lex.yy.c; then
31340 - ac_cv_prog_lex_root=lex.yy
31341 -elif test -f lexyy.c; then
31342 - ac_cv_prog_lex_root=lexyy
31343 -else
31344 - { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
31345 -echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
31346 - { (exit 1); exit 1; }; }
31347 fi
31348 +
31349 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31350 + conftest$ac_exeext conftest.$ac_ext
31351 + test "$ac_cv_lib_lex" != 'none needed' && break
31352 + done
31353 + LIBS=$ac_save_LIBS
31354 +
31355 +fi
31356 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
31357 +echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
31358 + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
31359 fi
31360 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
31361 -echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
31362 -rm -f conftest.l
31363 -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
31364
31365 -echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
31366 -echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
31367 +
31368 +{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
31369 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
31370 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
31371 echo $ECHO_N "(cached) $ECHO_C" >&6
31372 else
31373 # POSIX says lex can declare yytext either as a pointer or an array; the
31374 -# default is implementation-dependent. Figure out which it is, since
31375 +# default is implementation-dependent. Figure out which it is, since
31376 # not all implementations provide the %pointer and %array declarations.
31377 ac_cv_prog_lex_yytext_pointer=no
31378 -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
31379 ac_save_LIBS=$LIBS
31380 -LIBS="$LIBS $LEXLIB"
31381 +LIBS="$LEXLIB $ac_save_LIBS"
31382 cat >conftest.$ac_ext <<_ACEOF
31383 +#define YYTEXT_POINTER 1
31384 `cat $LEX_OUTPUT_ROOT.c`
31385 _ACEOF
31386 rm -f conftest.$ac_objext conftest$ac_exeext
31387 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31388 - (eval $ac_link) 2>conftest.er1
31389 +if { (ac_try="$ac_link"
31390 +case "(($ac_try" in
31391 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 + *) ac_try_echo=$ac_try;;
31393 +esac
31394 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395 + (eval "$ac_link") 2>conftest.er1
31396 ac_status=$?
31397 grep -v '^ *+' conftest.er1 >conftest.err
31398 rm -f conftest.er1
31399 cat conftest.err >&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 - (exit $ac_status); } &&
31402 - { ac_try='test -z "$ac_c_werror_flag"
31403 - || test ! -s conftest.err'
31404 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31405 - (eval $ac_try) 2>&5
31406 - ac_status=$?
31407 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 - (exit $ac_status); }; } &&
31409 - { ac_try='test -s conftest$ac_exeext'
31410 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31411 - (eval $ac_try) 2>&5
31412 - ac_status=$?
31413 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 - (exit $ac_status); }; }; then
31415 + (exit $ac_status); } && {
31416 + test -z "$ac_c_werror_flag" ||
31417 + test ! -s conftest.err
31418 + } && test -s conftest$ac_exeext &&
31419 + $as_test_x conftest$ac_exeext; then
31420 ac_cv_prog_lex_yytext_pointer=yes
31421 else
31422 echo "$as_me: failed program was:" >&5
31423 sed 's/^/| /' conftest.$ac_ext >&5
31424
31425 +
31426 fi
31427 -rm -f conftest.err conftest.$ac_objext \
31428 +
31429 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31430 conftest$ac_exeext conftest.$ac_ext
31431 LIBS=$ac_save_LIBS
31432 -rm -f "${LEX_OUTPUT_ROOT}.c"
31433
31434 fi
31435 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
31436 -echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
31437 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
31438 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
31439 if test $ac_cv_prog_lex_yytext_pointer = yes; then
31440
31441 cat >>confdefs.h <<\_ACEOF
31442 @@ -5293,6 +5718,7 @@ cat >>confdefs.h <<\_ACEOF
31443 _ACEOF
31444
31445 fi
31446 +rm -f conftest.l $LEX_OUTPUT_ROOT.c
31447
31448 fi
31449 if test "$LEX" = :; then
31450 @@ -5303,8 +5729,8 @@ ALL_LINGUAS="fr tr ja es sv da zh_CN ru
31451 if test -n "$ac_tool_prefix"; then
31452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
31453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
31454 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31455 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31456 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31457 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31458 if test "${ac_cv_prog_RANLIB+set}" = set; then
31459 echo $ECHO_N "(cached) $ECHO_C" >&6
31460 else
31461 @@ -5317,32 +5743,34 @@ do
31462 IFS=$as_save_IFS
31463 test -z "$as_dir" && as_dir=.
31464 for ac_exec_ext in '' $ac_executable_extensions; do
31465 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31466 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31469 break 2
31470 fi
31471 done
31472 done
31473 +IFS=$as_save_IFS
31474
31475 fi
31476 fi
31477 RANLIB=$ac_cv_prog_RANLIB
31478 if test -n "$RANLIB"; then
31479 - echo "$as_me:$LINENO: result: $RANLIB" >&5
31480 -echo "${ECHO_T}$RANLIB" >&6
31481 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
31482 +echo "${ECHO_T}$RANLIB" >&6; }
31483 else
31484 - echo "$as_me:$LINENO: result: no" >&5
31485 -echo "${ECHO_T}no" >&6
31486 + { echo "$as_me:$LINENO: result: no" >&5
31487 +echo "${ECHO_T}no" >&6; }
31488 fi
31489
31490 +
31491 fi
31492 if test -z "$ac_cv_prog_RANLIB"; then
31493 ac_ct_RANLIB=$RANLIB
31494 # Extract the first word of "ranlib", so it can be a program name with args.
31495 set dummy ranlib; ac_word=$2
31496 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31497 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31498 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31499 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
31501 echo $ECHO_N "(cached) $ECHO_C" >&6
31502 else
31503 @@ -5355,27 +5783,41 @@ do
31504 IFS=$as_save_IFS
31505 test -z "$as_dir" && as_dir=.
31506 for ac_exec_ext in '' $ac_executable_extensions; do
31507 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31508 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31509 ac_cv_prog_ac_ct_RANLIB="ranlib"
31510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31511 break 2
31512 fi
31513 done
31514 done
31515 +IFS=$as_save_IFS
31516
31517 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
31518 fi
31519 fi
31520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31521 if test -n "$ac_ct_RANLIB"; then
31522 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
31523 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
31524 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
31525 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
31526 else
31527 - echo "$as_me:$LINENO: result: no" >&5
31528 -echo "${ECHO_T}no" >&6
31529 + { echo "$as_me:$LINENO: result: no" >&5
31530 +echo "${ECHO_T}no" >&6; }
31531 fi
31532
31533 - RANLIB=$ac_ct_RANLIB
31534 + if test "x$ac_ct_RANLIB" = x; then
31535 + RANLIB=":"
31536 + else
31537 + case $cross_compiling:$ac_tool_warned in
31538 +yes:)
31539 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31540 +whose name does not start with the host triplet. If you think this
31541 +configuration is useful to you, please write to autoconf@gnu.org." >&5
31542 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31543 +whose name does not start with the host triplet. If you think this
31544 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31545 +ac_tool_warned=yes ;;
31546 +esac
31547 + RANLIB=$ac_ct_RANLIB
31548 + fi
31549 else
31550 RANLIB="$ac_cv_prog_RANLIB"
31551 fi
31552 @@ -5385,8 +5827,8 @@ ac_cpp='$CPP $CPPFLAGS'
31553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31556 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
31557 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
31558 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
31559 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
31560 # On Suns, sometimes $CPP names a directory.
31561 if test -n "$CPP" && test -d "$CPP"; then
31562 CPP=
31563 @@ -5420,24 +5862,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31564 #endif
31565 Syntax error
31566 _ACEOF
31567 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31568 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31569 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31570 +case "(($ac_try" in
31571 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572 + *) ac_try_echo=$ac_try;;
31573 +esac
31574 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31576 ac_status=$?
31577 grep -v '^ *+' conftest.er1 >conftest.err
31578 rm -f conftest.er1
31579 cat conftest.err >&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 - (exit $ac_status); } >/dev/null; then
31582 - if test -s conftest.err; then
31583 - ac_cpp_err=$ac_c_preproc_warn_flag
31584 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31585 - else
31586 - ac_cpp_err=
31587 - fi
31588 -else
31589 - ac_cpp_err=yes
31590 -fi
31591 -if test -z "$ac_cpp_err"; then
31592 + (exit $ac_status); } >/dev/null && {
31593 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31594 + test ! -s conftest.err
31595 + }; then
31596 :
31597 else
31598 echo "$as_me: failed program was:" >&5
31599 @@ -5446,9 +5886,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
31600 # Broken: fails on valid input.
31601 continue
31602 fi
31603 +
31604 rm -f conftest.err conftest.$ac_ext
31605
31606 - # OK, works on sane cases. Now check whether non-existent headers
31607 + # OK, works on sane cases. Now check whether nonexistent headers
31608 # can be detected and how.
31609 cat >conftest.$ac_ext <<_ACEOF
31610 /* confdefs.h. */
31611 @@ -5458,24 +5899,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31612 /* end confdefs.h. */
31613 #include <ac_nonexistent.h>
31614 _ACEOF
31615 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31616 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31617 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31618 +case "(($ac_try" in
31619 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620 + *) ac_try_echo=$ac_try;;
31621 +esac
31622 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31624 ac_status=$?
31625 grep -v '^ *+' conftest.er1 >conftest.err
31626 rm -f conftest.er1
31627 cat conftest.err >&5
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 - (exit $ac_status); } >/dev/null; then
31630 - if test -s conftest.err; then
31631 - ac_cpp_err=$ac_c_preproc_warn_flag
31632 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31633 - else
31634 - ac_cpp_err=
31635 - fi
31636 -else
31637 - ac_cpp_err=yes
31638 -fi
31639 -if test -z "$ac_cpp_err"; then
31640 + (exit $ac_status); } >/dev/null && {
31641 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31642 + test ! -s conftest.err
31643 + }; then
31644 # Broken: success on invalid input.
31645 continue
31646 else
31647 @@ -5486,6 +5925,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
31648 ac_preproc_ok=:
31649 break
31650 fi
31651 +
31652 rm -f conftest.err conftest.$ac_ext
31653
31654 done
31655 @@ -5503,8 +5943,8 @@ fi
31656 else
31657 ac_cv_prog_CPP=$CPP
31658 fi
31659 -echo "$as_me:$LINENO: result: $CPP" >&5
31660 -echo "${ECHO_T}$CPP" >&6
31661 +{ echo "$as_me:$LINENO: result: $CPP" >&5
31662 +echo "${ECHO_T}$CPP" >&6; }
31663 ac_preproc_ok=false
31664 for ac_c_preproc_warn_flag in '' yes
31665 do
31666 @@ -5527,24 +5967,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31667 #endif
31668 Syntax error
31669 _ACEOF
31670 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31671 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31672 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31673 +case "(($ac_try" in
31674 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31675 + *) ac_try_echo=$ac_try;;
31676 +esac
31677 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31678 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31679 ac_status=$?
31680 grep -v '^ *+' conftest.er1 >conftest.err
31681 rm -f conftest.er1
31682 cat conftest.err >&5
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 - (exit $ac_status); } >/dev/null; then
31685 - if test -s conftest.err; then
31686 - ac_cpp_err=$ac_c_preproc_warn_flag
31687 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31688 - else
31689 - ac_cpp_err=
31690 - fi
31691 -else
31692 - ac_cpp_err=yes
31693 -fi
31694 -if test -z "$ac_cpp_err"; then
31695 + (exit $ac_status); } >/dev/null && {
31696 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31697 + test ! -s conftest.err
31698 + }; then
31699 :
31700 else
31701 echo "$as_me: failed program was:" >&5
31702 @@ -5553,9 +5991,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
31703 # Broken: fails on valid input.
31704 continue
31705 fi
31706 +
31707 rm -f conftest.err conftest.$ac_ext
31708
31709 - # OK, works on sane cases. Now check whether non-existent headers
31710 + # OK, works on sane cases. Now check whether nonexistent headers
31711 # can be detected and how.
31712 cat >conftest.$ac_ext <<_ACEOF
31713 /* confdefs.h. */
31714 @@ -5565,24 +6004,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31715 /* end confdefs.h. */
31716 #include <ac_nonexistent.h>
31717 _ACEOF
31718 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31719 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31720 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31721 +case "(($ac_try" in
31722 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 + *) ac_try_echo=$ac_try;;
31724 +esac
31725 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31727 ac_status=$?
31728 grep -v '^ *+' conftest.er1 >conftest.err
31729 rm -f conftest.er1
31730 cat conftest.err >&5
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 - (exit $ac_status); } >/dev/null; then
31733 - if test -s conftest.err; then
31734 - ac_cpp_err=$ac_c_preproc_warn_flag
31735 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31736 - else
31737 - ac_cpp_err=
31738 - fi
31739 -else
31740 - ac_cpp_err=yes
31741 -fi
31742 -if test -z "$ac_cpp_err"; then
31743 + (exit $ac_status); } >/dev/null && {
31744 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31745 + test ! -s conftest.err
31746 + }; then
31747 # Broken: success on invalid input.
31748 continue
31749 else
31750 @@ -5593,6 +6030,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
31751 ac_preproc_ok=:
31752 break
31753 fi
31754 +
31755 rm -f conftest.err conftest.$ac_ext
31756
31757 done
31758 @@ -5615,23 +6053,170 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
31759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31760
31761
31762 -echo "$as_me:$LINENO: checking for egrep" >&5
31763 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
31764 -if test "${ac_cv_prog_egrep+set}" = set; then
31765 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
31766 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
31767 +if test "${ac_cv_path_GREP+set}" = set; then
31768 + echo $ECHO_N "(cached) $ECHO_C" >&6
31769 +else
31770 + # Extract the first word of "grep ggrep" to use in msg output
31771 +if test -z "$GREP"; then
31772 +set dummy grep ggrep; ac_prog_name=$2
31773 +if test "${ac_cv_path_GREP+set}" = set; then
31774 + echo $ECHO_N "(cached) $ECHO_C" >&6
31775 +else
31776 + ac_path_GREP_found=false
31777 +# Loop through the user's path and test for each of PROGNAME-LIST
31778 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31779 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
31780 +do
31781 + IFS=$as_save_IFS
31782 + test -z "$as_dir" && as_dir=.
31783 + for ac_prog in grep ggrep; do
31784 + for ac_exec_ext in '' $ac_executable_extensions; do
31785 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
31786 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
31787 + # Check for GNU ac_path_GREP and select it if it is found.
31788 + # Check for GNU $ac_path_GREP
31789 +case `"$ac_path_GREP" --version 2>&1` in
31790 +*GNU*)
31791 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
31792 +*)
31793 + ac_count=0
31794 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
31795 + while :
31796 + do
31797 + cat "conftest.in" "conftest.in" >"conftest.tmp"
31798 + mv "conftest.tmp" "conftest.in"
31799 + cp "conftest.in" "conftest.nl"
31800 + echo 'GREP' >> "conftest.nl"
31801 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
31802 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
31803 + ac_count=`expr $ac_count + 1`
31804 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
31805 + # Best one so far, save it but keep looking for a better one
31806 + ac_cv_path_GREP="$ac_path_GREP"
31807 + ac_path_GREP_max=$ac_count
31808 + fi
31809 + # 10*(2^10) chars as input seems more than enough
31810 + test $ac_count -gt 10 && break
31811 + done
31812 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
31813 +esac
31814 +
31815 +
31816 + $ac_path_GREP_found && break 3
31817 + done
31818 +done
31819 +
31820 +done
31821 +IFS=$as_save_IFS
31822 +
31823 +
31824 +fi
31825 +
31826 +GREP="$ac_cv_path_GREP"
31827 +if test -z "$GREP"; then
31828 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
31829 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
31830 + { (exit 1); exit 1; }; }
31831 +fi
31832 +
31833 +else
31834 + ac_cv_path_GREP=$GREP
31835 +fi
31836 +
31837 +
31838 +fi
31839 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
31840 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
31841 + GREP="$ac_cv_path_GREP"
31842 +
31843 +
31844 +{ echo "$as_me:$LINENO: checking for egrep" >&5
31845 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
31846 +if test "${ac_cv_path_EGREP+set}" = set; then
31847 + echo $ECHO_N "(cached) $ECHO_C" >&6
31848 +else
31849 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
31850 + then ac_cv_path_EGREP="$GREP -E"
31851 + else
31852 + # Extract the first word of "egrep" to use in msg output
31853 +if test -z "$EGREP"; then
31854 +set dummy egrep; ac_prog_name=$2
31855 +if test "${ac_cv_path_EGREP+set}" = set; then
31856 echo $ECHO_N "(cached) $ECHO_C" >&6
31857 else
31858 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
31859 - then ac_cv_prog_egrep='grep -E'
31860 - else ac_cv_prog_egrep='egrep'
31861 + ac_path_EGREP_found=false
31862 +# Loop through the user's path and test for each of PROGNAME-LIST
31863 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31864 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
31865 +do
31866 + IFS=$as_save_IFS
31867 + test -z "$as_dir" && as_dir=.
31868 + for ac_prog in egrep; do
31869 + for ac_exec_ext in '' $ac_executable_extensions; do
31870 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
31871 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
31872 + # Check for GNU ac_path_EGREP and select it if it is found.
31873 + # Check for GNU $ac_path_EGREP
31874 +case `"$ac_path_EGREP" --version 2>&1` in
31875 +*GNU*)
31876 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
31877 +*)
31878 + ac_count=0
31879 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
31880 + while :
31881 + do
31882 + cat "conftest.in" "conftest.in" >"conftest.tmp"
31883 + mv "conftest.tmp" "conftest.in"
31884 + cp "conftest.in" "conftest.nl"
31885 + echo 'EGREP' >> "conftest.nl"
31886 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
31887 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
31888 + ac_count=`expr $ac_count + 1`
31889 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
31890 + # Best one so far, save it but keep looking for a better one
31891 + ac_cv_path_EGREP="$ac_path_EGREP"
31892 + ac_path_EGREP_max=$ac_count
31893 fi
31894 + # 10*(2^10) chars as input seems more than enough
31895 + test $ac_count -gt 10 && break
31896 + done
31897 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
31898 +esac
31899 +
31900 +
31901 + $ac_path_EGREP_found && break 3
31902 + done
31903 +done
31904 +
31905 +done
31906 +IFS=$as_save_IFS
31907 +
31908 +
31909 +fi
31910 +
31911 +EGREP="$ac_cv_path_EGREP"
31912 +if test -z "$EGREP"; then
31913 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
31914 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
31915 + { (exit 1); exit 1; }; }
31916 +fi
31917 +
31918 +else
31919 + ac_cv_path_EGREP=$EGREP
31920 +fi
31921 +
31922 +
31923 + fi
31924 fi
31925 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
31926 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
31927 - EGREP=$ac_cv_prog_egrep
31928 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
31929 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
31930 + EGREP="$ac_cv_path_EGREP"
31931
31932
31933 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31934 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31935 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31936 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31937 if test "${ac_cv_header_stdc+set}" = set; then
31938 echo $ECHO_N "(cached) $ECHO_C" >&6
31939 else
31940 @@ -5655,35 +6240,31 @@ main ()
31941 }
31942 _ACEOF
31943 rm -f conftest.$ac_objext
31944 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31945 - (eval $ac_compile) 2>conftest.er1
31946 +if { (ac_try="$ac_compile"
31947 +case "(($ac_try" in
31948 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949 + *) ac_try_echo=$ac_try;;
31950 +esac
31951 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952 + (eval "$ac_compile") 2>conftest.er1
31953 ac_status=$?
31954 grep -v '^ *+' conftest.er1 >conftest.err
31955 rm -f conftest.er1
31956 cat conftest.err >&5
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 - (exit $ac_status); } &&
31959 - { ac_try='test -z "$ac_c_werror_flag"
31960 - || test ! -s conftest.err'
31961 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31962 - (eval $ac_try) 2>&5
31963 - ac_status=$?
31964 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 - (exit $ac_status); }; } &&
31966 - { ac_try='test -s conftest.$ac_objext'
31967 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31968 - (eval $ac_try) 2>&5
31969 - ac_status=$?
31970 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 - (exit $ac_status); }; }; then
31972 + (exit $ac_status); } && {
31973 + test -z "$ac_c_werror_flag" ||
31974 + test ! -s conftest.err
31975 + } && test -s conftest.$ac_objext; then
31976 ac_cv_header_stdc=yes
31977 else
31978 echo "$as_me: failed program was:" >&5
31979 sed 's/^/| /' conftest.$ac_ext >&5
31980
31981 -ac_cv_header_stdc=no
31982 + ac_cv_header_stdc=no
31983 fi
31984 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31985 +
31986 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31987
31988 if test $ac_cv_header_stdc = yes; then
31989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31990 @@ -5739,6 +6320,7 @@ cat confdefs.h >>conftest.$ac_ext
31991 cat >>conftest.$ac_ext <<_ACEOF
31992 /* end confdefs.h. */
31993 #include <ctype.h>
31994 +#include <stdlib.h>
31995 #if ((' ' & 0x0FF) == 0x020)
31996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31998 @@ -5758,18 +6340,27 @@ main ()
31999 for (i = 0; i < 256; i++)
32000 if (XOR (islower (i), ISLOWER (i))
32001 || toupper (i) != TOUPPER (i))
32002 - exit(2);
32003 - exit (0);
32004 + return 2;
32005 + return 0;
32006 }
32007 _ACEOF
32008 rm -f conftest$ac_exeext
32009 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32010 - (eval $ac_link) 2>&5
32011 +if { (ac_try="$ac_link"
32012 +case "(($ac_try" in
32013 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 + *) ac_try_echo=$ac_try;;
32015 +esac
32016 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 + (eval "$ac_link") 2>&5
32018 ac_status=$?
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32021 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32022 - (eval $ac_try) 2>&5
32023 + { (case "(($ac_try" in
32024 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32025 + *) ac_try_echo=$ac_try;;
32026 +esac
32027 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32028 + (eval "$ac_try") 2>&5
32029 ac_status=$?
32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031 (exit $ac_status); }; }; then
32032 @@ -5782,12 +6373,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
32033 ( exit $ac_status )
32034 ac_cv_header_stdc=no
32035 fi
32036 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32037 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32038 fi
32039 +
32040 +
32041 fi
32042 fi
32043 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32044 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
32045 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32046 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
32047 if test $ac_cv_header_stdc = yes; then
32048
32049 cat >>confdefs.h <<\_ACEOF
32050 @@ -5796,8 +6389,8 @@ _ACEOF
32051
32052 fi
32053
32054 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32055 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
32056 +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32057 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32058 if test "${ac_cv_c_const+set}" = set; then
32059 echo $ECHO_N "(cached) $ECHO_C" >&6
32060 else
32061 @@ -5815,10 +6408,10 @@ main ()
32062 #ifndef __cplusplus
32063 /* Ultrix mips cc rejects this. */
32064 typedef int charset[2];
32065 - const charset x;
32066 + const charset cs;
32067 /* SunOS 4.1.1 cc rejects this. */
32068 - char const *const *ccp;
32069 - char **p;
32070 + char const *const *pcpcc;
32071 + char **ppc;
32072 /* NEC SVR4.0.2 mips cc rejects this. */
32073 struct point {int x, y;};
32074 static struct point const zero = {0,0};
32075 @@ -5827,16 +6420,17 @@ main ()
32076 an arm of an if-expression whose if-part is not a constant
32077 expression */
32078 const char *g = "string";
32079 - ccp = &g + (g ? g-g : 0);
32080 + pcpcc = &g + (g ? g-g : 0);
32081 /* HPUX 7.0 cc rejects these. */
32082 - ++ccp;
32083 - p = (char**) ccp;
32084 - ccp = (char const *const *) p;
32085 + ++pcpcc;
32086 + ppc = (char**) pcpcc;
32087 + pcpcc = (char const *const *) ppc;
32088 { /* SCO 3.2v4 cc rejects this. */
32089 char *t;
32090 char const *s = 0 ? (char *) 0 : (char const *) 0;
32091
32092 *t++ = 0;
32093 + if (s) return 0;
32094 }
32095 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32096 int x[] = {25, 17};
32097 @@ -5855,7 +6449,9 @@ main ()
32098 }
32099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32100 const int foo = 10;
32101 + if (!foo) return 0;
32102 }
32103 + return !cs[0] && !zero.x;
32104 #endif
32105
32106 ;
32107 @@ -5863,38 +6459,34 @@ main ()
32108 }
32109 _ACEOF
32110 rm -f conftest.$ac_objext
32111 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32112 - (eval $ac_compile) 2>conftest.er1
32113 +if { (ac_try="$ac_compile"
32114 +case "(($ac_try" in
32115 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116 + *) ac_try_echo=$ac_try;;
32117 +esac
32118 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32119 + (eval "$ac_compile") 2>conftest.er1
32120 ac_status=$?
32121 grep -v '^ *+' conftest.er1 >conftest.err
32122 rm -f conftest.er1
32123 cat conftest.err >&5
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 - (exit $ac_status); } &&
32126 - { ac_try='test -z "$ac_c_werror_flag"
32127 - || test ! -s conftest.err'
32128 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32129 - (eval $ac_try) 2>&5
32130 - ac_status=$?
32131 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 - (exit $ac_status); }; } &&
32133 - { ac_try='test -s conftest.$ac_objext'
32134 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32135 - (eval $ac_try) 2>&5
32136 - ac_status=$?
32137 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138 - (exit $ac_status); }; }; then
32139 + (exit $ac_status); } && {
32140 + test -z "$ac_c_werror_flag" ||
32141 + test ! -s conftest.err
32142 + } && test -s conftest.$ac_objext; then
32143 ac_cv_c_const=yes
32144 else
32145 echo "$as_me: failed program was:" >&5
32146 sed 's/^/| /' conftest.$ac_ext >&5
32147
32148 -ac_cv_c_const=no
32149 + ac_cv_c_const=no
32150 fi
32151 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32152 +
32153 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32154 fi
32155 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32156 -echo "${ECHO_T}$ac_cv_c_const" >&6
32157 +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32158 +echo "${ECHO_T}$ac_cv_c_const" >&6; }
32159 if test $ac_cv_c_const = no; then
32160
32161 cat >>confdefs.h <<\_ACEOF
32162 @@ -5903,8 +6495,8 @@ _ACEOF
32163
32164 fi
32165
32166 -echo "$as_me:$LINENO: checking for inline" >&5
32167 -echo $ECHO_N "checking for inline... $ECHO_C" >&6
32168 +{ echo "$as_me:$LINENO: checking for inline" >&5
32169 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
32170 if test "${ac_cv_c_inline+set}" = set; then
32171 echo $ECHO_N "(cached) $ECHO_C" >&6
32172 else
32173 @@ -5924,39 +6516,37 @@ $ac_kw foo_t foo () {return 0; }
32174
32175 _ACEOF
32176 rm -f conftest.$ac_objext
32177 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32178 - (eval $ac_compile) 2>conftest.er1
32179 +if { (ac_try="$ac_compile"
32180 +case "(($ac_try" in
32181 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32182 + *) ac_try_echo=$ac_try;;
32183 +esac
32184 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32185 + (eval "$ac_compile") 2>conftest.er1
32186 ac_status=$?
32187 grep -v '^ *+' conftest.er1 >conftest.err
32188 rm -f conftest.er1
32189 cat conftest.err >&5
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 - (exit $ac_status); } &&
32192 - { ac_try='test -z "$ac_c_werror_flag"
32193 - || test ! -s conftest.err'
32194 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32195 - (eval $ac_try) 2>&5
32196 - ac_status=$?
32197 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198 - (exit $ac_status); }; } &&
32199 - { ac_try='test -s conftest.$ac_objext'
32200 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32201 - (eval $ac_try) 2>&5
32202 - ac_status=$?
32203 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 - (exit $ac_status); }; }; then
32205 - ac_cv_c_inline=$ac_kw; break
32206 + (exit $ac_status); } && {
32207 + test -z "$ac_c_werror_flag" ||
32208 + test ! -s conftest.err
32209 + } && test -s conftest.$ac_objext; then
32210 + ac_cv_c_inline=$ac_kw
32211 else
32212 echo "$as_me: failed program was:" >&5
32213 sed 's/^/| /' conftest.$ac_ext >&5
32214
32215 +
32216 fi
32217 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32218 +
32219 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32220 + test "$ac_cv_c_inline" != no && break
32221 done
32222
32223 fi
32224 -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
32225 -echo "${ECHO_T}$ac_cv_c_inline" >&6
32226 +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
32227 +echo "${ECHO_T}$ac_cv_c_inline" >&6; }
32228
32229
32230 case $ac_cv_c_inline in
32231 @@ -5988,9 +6578,9 @@ for ac_header in sys/types.h sys/stat.h
32232 inttypes.h stdint.h unistd.h
32233 do
32234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32235 -echo "$as_me:$LINENO: checking for $ac_header" >&5
32236 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32237 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
32238 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32239 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32240 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32241 echo $ECHO_N "(cached) $ECHO_C" >&6
32242 else
32243 cat >conftest.$ac_ext <<_ACEOF
32244 @@ -6004,38 +6594,35 @@ $ac_includes_default
32245 #include <$ac_header>
32246 _ACEOF
32247 rm -f conftest.$ac_objext
32248 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32249 - (eval $ac_compile) 2>conftest.er1
32250 +if { (ac_try="$ac_compile"
32251 +case "(($ac_try" in
32252 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32253 + *) ac_try_echo=$ac_try;;
32254 +esac
32255 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32256 + (eval "$ac_compile") 2>conftest.er1
32257 ac_status=$?
32258 grep -v '^ *+' conftest.er1 >conftest.err
32259 rm -f conftest.er1
32260 cat conftest.err >&5
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 - (exit $ac_status); } &&
32263 - { ac_try='test -z "$ac_c_werror_flag"
32264 - || test ! -s conftest.err'
32265 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266 - (eval $ac_try) 2>&5
32267 - ac_status=$?
32268 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 - (exit $ac_status); }; } &&
32270 - { ac_try='test -s conftest.$ac_objext'
32271 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32272 - (eval $ac_try) 2>&5
32273 - ac_status=$?
32274 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 - (exit $ac_status); }; }; then
32276 + (exit $ac_status); } && {
32277 + test -z "$ac_c_werror_flag" ||
32278 + test ! -s conftest.err
32279 + } && test -s conftest.$ac_objext; then
32280 eval "$as_ac_Header=yes"
32281 else
32282 echo "$as_me: failed program was:" >&5
32283 sed 's/^/| /' conftest.$ac_ext >&5
32284
32285 -eval "$as_ac_Header=no"
32286 + eval "$as_ac_Header=no"
32287 fi
32288 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32289 +
32290 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32291 fi
32292 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32293 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32294 +ac_res=`eval echo '${'$as_ac_Header'}'`
32295 + { echo "$as_me:$LINENO: result: $ac_res" >&5
32296 +echo "${ECHO_T}$ac_res" >&6; }
32297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32298 cat >>confdefs.h <<_ACEOF
32299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32300 @@ -6046,8 +6633,8 @@ fi
32301 done
32302
32303
32304 -echo "$as_me:$LINENO: checking for off_t" >&5
32305 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32306 +{ echo "$as_me:$LINENO: checking for off_t" >&5
32307 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
32308 if test "${ac_cv_type_off_t+set}" = set; then
32309 echo $ECHO_N "(cached) $ECHO_C" >&6
32310 else
32311 @@ -6058,62 +6645,59 @@ cat confdefs.h >>conftest.$ac_ext
32312 cat >>conftest.$ac_ext <<_ACEOF
32313 /* end confdefs.h. */
32314 $ac_includes_default
32315 +typedef off_t ac__type_new_;
32316 int
32317 main ()
32318 {
32319 -if ((off_t *) 0)
32320 +if ((ac__type_new_ *) 0)
32321 return 0;
32322 -if (sizeof (off_t))
32323 +if (sizeof (ac__type_new_))
32324 return 0;
32325 ;
32326 return 0;
32327 }
32328 _ACEOF
32329 rm -f conftest.$ac_objext
32330 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32331 - (eval $ac_compile) 2>conftest.er1
32332 +if { (ac_try="$ac_compile"
32333 +case "(($ac_try" in
32334 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335 + *) ac_try_echo=$ac_try;;
32336 +esac
32337 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338 + (eval "$ac_compile") 2>conftest.er1
32339 ac_status=$?
32340 grep -v '^ *+' conftest.er1 >conftest.err
32341 rm -f conftest.er1
32342 cat conftest.err >&5
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 - (exit $ac_status); } &&
32345 - { ac_try='test -z "$ac_c_werror_flag"
32346 - || test ! -s conftest.err'
32347 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32348 - (eval $ac_try) 2>&5
32349 - ac_status=$?
32350 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 - (exit $ac_status); }; } &&
32352 - { ac_try='test -s conftest.$ac_objext'
32353 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32354 - (eval $ac_try) 2>&5
32355 - ac_status=$?
32356 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 - (exit $ac_status); }; }; then
32358 + (exit $ac_status); } && {
32359 + test -z "$ac_c_werror_flag" ||
32360 + test ! -s conftest.err
32361 + } && test -s conftest.$ac_objext; then
32362 ac_cv_type_off_t=yes
32363 else
32364 echo "$as_me: failed program was:" >&5
32365 sed 's/^/| /' conftest.$ac_ext >&5
32366
32367 -ac_cv_type_off_t=no
32368 + ac_cv_type_off_t=no
32369 fi
32370 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32371 +
32372 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32373 fi
32374 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32375 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
32376 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32377 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
32378 if test $ac_cv_type_off_t = yes; then
32379 :
32380 else
32381
32382 cat >>confdefs.h <<_ACEOF
32383 -#define off_t long
32384 +#define off_t long int
32385 _ACEOF
32386
32387 fi
32388
32389 -echo "$as_me:$LINENO: checking for size_t" >&5
32390 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32391 +{ echo "$as_me:$LINENO: checking for size_t" >&5
32392 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32393 if test "${ac_cv_type_size_t+set}" = set; then
32394 echo $ECHO_N "(cached) $ECHO_C" >&6
32395 else
32396 @@ -6124,64 +6708,61 @@ cat confdefs.h >>conftest.$ac_ext
32397 cat >>conftest.$ac_ext <<_ACEOF
32398 /* end confdefs.h. */
32399 $ac_includes_default
32400 +typedef size_t ac__type_new_;
32401 int
32402 main ()
32403 {
32404 -if ((size_t *) 0)
32405 +if ((ac__type_new_ *) 0)
32406 return 0;
32407 -if (sizeof (size_t))
32408 +if (sizeof (ac__type_new_))
32409 return 0;
32410 ;
32411 return 0;
32412 }
32413 _ACEOF
32414 rm -f conftest.$ac_objext
32415 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32416 - (eval $ac_compile) 2>conftest.er1
32417 +if { (ac_try="$ac_compile"
32418 +case "(($ac_try" in
32419 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32420 + *) ac_try_echo=$ac_try;;
32421 +esac
32422 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32423 + (eval "$ac_compile") 2>conftest.er1
32424 ac_status=$?
32425 grep -v '^ *+' conftest.er1 >conftest.err
32426 rm -f conftest.er1
32427 cat conftest.err >&5
32428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429 - (exit $ac_status); } &&
32430 - { ac_try='test -z "$ac_c_werror_flag"
32431 - || test ! -s conftest.err'
32432 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32433 - (eval $ac_try) 2>&5
32434 - ac_status=$?
32435 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 - (exit $ac_status); }; } &&
32437 - { ac_try='test -s conftest.$ac_objext'
32438 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439 - (eval $ac_try) 2>&5
32440 - ac_status=$?
32441 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 - (exit $ac_status); }; }; then
32443 + (exit $ac_status); } && {
32444 + test -z "$ac_c_werror_flag" ||
32445 + test ! -s conftest.err
32446 + } && test -s conftest.$ac_objext; then
32447 ac_cv_type_size_t=yes
32448 else
32449 echo "$as_me: failed program was:" >&5
32450 sed 's/^/| /' conftest.$ac_ext >&5
32451
32452 -ac_cv_type_size_t=no
32453 + ac_cv_type_size_t=no
32454 fi
32455 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32456 +
32457 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32458 fi
32459 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32460 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
32461 +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32462 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32463 if test $ac_cv_type_size_t = yes; then
32464 :
32465 else
32466
32467 cat >>confdefs.h <<_ACEOF
32468 -#define size_t unsigned
32469 +#define size_t unsigned int
32470 _ACEOF
32471
32472 fi
32473
32474 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32475 # for constant arguments. Useless!
32476 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
32477 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
32478 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32479 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32480 if test "${ac_cv_working_alloca_h+set}" = set; then
32481 echo $ECHO_N "(cached) $ECHO_C" >&6
32482 else
32483 @@ -6196,44 +6777,42 @@ int
32484 main ()
32485 {
32486 char *p = (char *) alloca (2 * sizeof (int));
32487 + if (p) return 0;
32488 ;
32489 return 0;
32490 }
32491 _ACEOF
32492 rm -f conftest.$ac_objext conftest$ac_exeext
32493 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32494 - (eval $ac_link) 2>conftest.er1
32495 +if { (ac_try="$ac_link"
32496 +case "(($ac_try" in
32497 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498 + *) ac_try_echo=$ac_try;;
32499 +esac
32500 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501 + (eval "$ac_link") 2>conftest.er1
32502 ac_status=$?
32503 grep -v '^ *+' conftest.er1 >conftest.err
32504 rm -f conftest.er1
32505 cat conftest.err >&5
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 - (exit $ac_status); } &&
32508 - { ac_try='test -z "$ac_c_werror_flag"
32509 - || test ! -s conftest.err'
32510 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511 - (eval $ac_try) 2>&5
32512 - ac_status=$?
32513 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 - (exit $ac_status); }; } &&
32515 - { ac_try='test -s conftest$ac_exeext'
32516 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32517 - (eval $ac_try) 2>&5
32518 - ac_status=$?
32519 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 - (exit $ac_status); }; }; then
32521 + (exit $ac_status); } && {
32522 + test -z "$ac_c_werror_flag" ||
32523 + test ! -s conftest.err
32524 + } && test -s conftest$ac_exeext &&
32525 + $as_test_x conftest$ac_exeext; then
32526 ac_cv_working_alloca_h=yes
32527 else
32528 echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32530
32531 -ac_cv_working_alloca_h=no
32532 + ac_cv_working_alloca_h=no
32533 fi
32534 -rm -f conftest.err conftest.$ac_objext \
32535 +
32536 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32537 conftest$ac_exeext conftest.$ac_ext
32538 fi
32539 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32540 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
32541 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32542 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32543 if test $ac_cv_working_alloca_h = yes; then
32544
32545 cat >>confdefs.h <<\_ACEOF
32546 @@ -6242,8 +6821,8 @@ _ACEOF
32547
32548 fi
32549
32550 -echo "$as_me:$LINENO: checking for alloca" >&5
32551 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
32552 +{ echo "$as_me:$LINENO: checking for alloca" >&5
32553 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32554 if test "${ac_cv_func_alloca_works+set}" = set; then
32555 echo $ECHO_N "(cached) $ECHO_C" >&6
32556 else
32557 @@ -6260,7 +6839,7 @@ cat >>conftest.$ac_ext <<_ACEOF
32558 # include <malloc.h>
32559 # define alloca _alloca
32560 # else
32561 -# if HAVE_ALLOCA_H
32562 +# ifdef HAVE_ALLOCA_H
32563 # include <alloca.h>
32564 # else
32565 # ifdef _AIX
32566 @@ -6278,44 +6857,42 @@ int
32567 main ()
32568 {
32569 char *p = (char *) alloca (1);
32570 + if (p) return 0;
32571 ;
32572 return 0;
32573 }
32574 _ACEOF
32575 rm -f conftest.$ac_objext conftest$ac_exeext
32576 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32577 - (eval $ac_link) 2>conftest.er1
32578 +if { (ac_try="$ac_link"
32579 +case "(($ac_try" in
32580 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32581 + *) ac_try_echo=$ac_try;;
32582 +esac
32583 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32584 + (eval "$ac_link") 2>conftest.er1
32585 ac_status=$?
32586 grep -v '^ *+' conftest.er1 >conftest.err
32587 rm -f conftest.er1
32588 cat conftest.err >&5
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 - (exit $ac_status); } &&
32591 - { ac_try='test -z "$ac_c_werror_flag"
32592 - || test ! -s conftest.err'
32593 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32594 - (eval $ac_try) 2>&5
32595 - ac_status=$?
32596 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 - (exit $ac_status); }; } &&
32598 - { ac_try='test -s conftest$ac_exeext'
32599 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32600 - (eval $ac_try) 2>&5
32601 - ac_status=$?
32602 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 - (exit $ac_status); }; }; then
32604 + (exit $ac_status); } && {
32605 + test -z "$ac_c_werror_flag" ||
32606 + test ! -s conftest.err
32607 + } && test -s conftest$ac_exeext &&
32608 + $as_test_x conftest$ac_exeext; then
32609 ac_cv_func_alloca_works=yes
32610 else
32611 echo "$as_me: failed program was:" >&5
32612 sed 's/^/| /' conftest.$ac_ext >&5
32613
32614 -ac_cv_func_alloca_works=no
32615 + ac_cv_func_alloca_works=no
32616 fi
32617 -rm -f conftest.err conftest.$ac_objext \
32618 +
32619 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32620 conftest$ac_exeext conftest.$ac_ext
32621 fi
32622 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32623 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
32624 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32625 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32626
32627 if test $ac_cv_func_alloca_works = yes; then
32628
32629 @@ -6329,15 +6906,15 @@ else
32630 # contain a buggy version. If you still want to use their alloca,
32631 # use ar to extract alloca.o from them instead of compiling alloca.c.
32632
32633 -ALLOCA=alloca.$ac_objext
32634 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32635
32636 cat >>confdefs.h <<\_ACEOF
32637 #define C_ALLOCA 1
32638 _ACEOF
32639
32640
32641 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32642 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
32643 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32644 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32645 if test "${ac_cv_os_cray+set}" = set; then
32646 echo $ECHO_N "(cached) $ECHO_C" >&6
32647 else
32648 @@ -6347,7 +6924,7 @@ _ACEOF
32649 cat confdefs.h >>conftest.$ac_ext
32650 cat >>conftest.$ac_ext <<_ACEOF
32651 /* end confdefs.h. */
32652 -#if defined(CRAY) && ! defined(CRAY2)
32653 +#if defined CRAY && ! defined CRAY2
32654 webecray
32655 #else
32656 wenotbecray
32657 @@ -6363,14 +6940,14 @@ fi
32658 rm -f conftest*
32659
32660 fi
32661 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32662 -echo "${ECHO_T}$ac_cv_os_cray" >&6
32663 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32664 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32665 if test $ac_cv_os_cray = yes; then
32666 for ac_func in _getb67 GETB67 getb67; do
32667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32668 -echo "$as_me:$LINENO: checking for $ac_func" >&5
32669 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32670 -if eval "test \"\${$as_ac_var+set}\" = set"; then
32671 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32672 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32673 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32674 echo $ECHO_N "(cached) $ECHO_C" >&6
32675 else
32676 cat >conftest.$ac_ext <<_ACEOF
32677 @@ -6396,68 +6973,60 @@ cat >>conftest.$ac_ext <<_ACEOF
32678
32679 #undef $ac_func
32680
32681 -/* Override any gcc2 internal prototype to avoid an error. */
32682 +/* Override any GCC internal prototype to avoid an error.
32683 + Use char because int might match the return type of a GCC
32684 + builtin and then its argument prototype would still apply. */
32685 #ifdef __cplusplus
32686 extern "C"
32687 -{
32688 #endif
32689 -/* We use char because int might match the return type of a gcc2
32690 - builtin and then its argument prototype would still apply. */
32691 char $ac_func ();
32692 /* The GNU C library defines this for functions which it implements
32693 to always fail with ENOSYS. Some functions are actually named
32694 something starting with __ and the normal name is an alias. */
32695 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32696 +#if defined __stub_$ac_func || defined __stub___$ac_func
32697 choke me
32698 -#else
32699 -char (*f) () = $ac_func;
32700 -#endif
32701 -#ifdef __cplusplus
32702 -}
32703 #endif
32704
32705 int
32706 main ()
32707 {
32708 -return f != $ac_func;
32709 +return $ac_func ();
32710 ;
32711 return 0;
32712 }
32713 _ACEOF
32714 rm -f conftest.$ac_objext conftest$ac_exeext
32715 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32716 - (eval $ac_link) 2>conftest.er1
32717 +if { (ac_try="$ac_link"
32718 +case "(($ac_try" in
32719 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720 + *) ac_try_echo=$ac_try;;
32721 +esac
32722 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32723 + (eval "$ac_link") 2>conftest.er1
32724 ac_status=$?
32725 grep -v '^ *+' conftest.er1 >conftest.err
32726 rm -f conftest.er1
32727 cat conftest.err >&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 - (exit $ac_status); } &&
32730 - { ac_try='test -z "$ac_c_werror_flag"
32731 - || test ! -s conftest.err'
32732 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32733 - (eval $ac_try) 2>&5
32734 - ac_status=$?
32735 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 - (exit $ac_status); }; } &&
32737 - { ac_try='test -s conftest$ac_exeext'
32738 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32739 - (eval $ac_try) 2>&5
32740 - ac_status=$?
32741 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 - (exit $ac_status); }; }; then
32743 + (exit $ac_status); } && {
32744 + test -z "$ac_c_werror_flag" ||
32745 + test ! -s conftest.err
32746 + } && test -s conftest$ac_exeext &&
32747 + $as_test_x conftest$ac_exeext; then
32748 eval "$as_ac_var=yes"
32749 else
32750 echo "$as_me: failed program was:" >&5
32751 sed 's/^/| /' conftest.$ac_ext >&5
32752
32753 -eval "$as_ac_var=no"
32754 + eval "$as_ac_var=no"
32755 fi
32756 -rm -f conftest.err conftest.$ac_objext \
32757 +
32758 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32759 conftest$ac_exeext conftest.$ac_ext
32760 fi
32761 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32762 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32763 +ac_res=`eval echo '${'$as_ac_var'}'`
32764 + { echo "$as_me:$LINENO: result: $ac_res" >&5
32765 +echo "${ECHO_T}$ac_res" >&6; }
32766 if test `eval echo '${'$as_ac_var'}'` = yes; then
32767
32768 cat >>confdefs.h <<_ACEOF
32769 @@ -6470,8 +7039,8 @@ fi
32770 done
32771 fi
32772
32773 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32774 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
32775 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32776 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32777 if test "${ac_cv_c_stack_direction+set}" = set; then
32778 echo $ECHO_N "(cached) $ECHO_C" >&6
32779 else
32780 @@ -6484,6 +7053,7 @@ _ACEOF
32781 cat confdefs.h >>conftest.$ac_ext
32782 cat >>conftest.$ac_ext <<_ACEOF
32783 /* end confdefs.h. */
32784 +$ac_includes_default
32785 int
32786 find_stack_direction ()
32787 {
32788 @@ -6501,17 +7071,26 @@ find_stack_direction ()
32789 int
32790 main ()
32791 {
32792 - exit (find_stack_direction () < 0);
32793 + return find_stack_direction () < 0;
32794 }
32795 _ACEOF
32796 rm -f conftest$ac_exeext
32797 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32798 - (eval $ac_link) 2>&5
32799 +if { (ac_try="$ac_link"
32800 +case "(($ac_try" in
32801 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 + *) ac_try_echo=$ac_try;;
32803 +esac
32804 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 + (eval "$ac_link") 2>&5
32806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32809 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32810 - (eval $ac_try) 2>&5
32811 + { (case "(($ac_try" in
32812 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32813 + *) ac_try_echo=$ac_try;;
32814 +esac
32815 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816 + (eval "$ac_try") 2>&5
32817 ac_status=$?
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); }; }; then
32820 @@ -6524,11 +7103,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
32821 ( exit $ac_status )
32822 ac_cv_c_stack_direction=-1
32823 fi
32824 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32825 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32826 fi
32827 +
32828 +
32829 fi
32830 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32831 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
32832 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32833 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32834
32835 cat >>confdefs.h <<_ACEOF
32836 #define STACK_DIRECTION $ac_cv_c_stack_direction
32837 @@ -6542,18 +7123,19 @@ fi
32838 for ac_header in stdlib.h unistd.h
32839 do
32840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32841 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
32842 - echo "$as_me:$LINENO: checking for $ac_header" >&5
32843 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32844 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
32845 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32846 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
32847 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32848 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32849 echo $ECHO_N "(cached) $ECHO_C" >&6
32850 fi
32851 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32852 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32853 +ac_res=`eval echo '${'$as_ac_Header'}'`
32854 + { echo "$as_me:$LINENO: result: $ac_res" >&5
32855 +echo "${ECHO_T}$ac_res" >&6; }
32856 else
32857 # Is the header compilable?
32858 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
32859 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32860 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32861 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32862 cat >conftest.$ac_ext <<_ACEOF
32863 /* confdefs.h. */
32864 _ACEOF
32865 @@ -6564,41 +7146,37 @@ $ac_includes_default
32866 #include <$ac_header>
32867 _ACEOF
32868 rm -f conftest.$ac_objext
32869 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32870 - (eval $ac_compile) 2>conftest.er1
32871 +if { (ac_try="$ac_compile"
32872 +case "(($ac_try" in
32873 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 + *) ac_try_echo=$ac_try;;
32875 +esac
32876 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 + (eval "$ac_compile") 2>conftest.er1
32878 ac_status=$?
32879 grep -v '^ *+' conftest.er1 >conftest.err
32880 rm -f conftest.er1
32881 cat conftest.err >&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 - (exit $ac_status); } &&
32884 - { ac_try='test -z "$ac_c_werror_flag"
32885 - || test ! -s conftest.err'
32886 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32887 - (eval $ac_try) 2>&5
32888 - ac_status=$?
32889 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 - (exit $ac_status); }; } &&
32891 - { ac_try='test -s conftest.$ac_objext'
32892 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32893 - (eval $ac_try) 2>&5
32894 - ac_status=$?
32895 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 - (exit $ac_status); }; }; then
32897 + (exit $ac_status); } && {
32898 + test -z "$ac_c_werror_flag" ||
32899 + test ! -s conftest.err
32900 + } && test -s conftest.$ac_objext; then
32901 ac_header_compiler=yes
32902 else
32903 echo "$as_me: failed program was:" >&5
32904 sed 's/^/| /' conftest.$ac_ext >&5
32905
32906 -ac_header_compiler=no
32907 + ac_header_compiler=no
32908 fi
32909 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32910 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32911 -echo "${ECHO_T}$ac_header_compiler" >&6
32912 +
32913 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32914 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32915 +echo "${ECHO_T}$ac_header_compiler" >&6; }
32916
32917 # Is the header present?
32918 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
32919 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32920 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32921 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32922 cat >conftest.$ac_ext <<_ACEOF
32923 /* confdefs.h. */
32924 _ACEOF
32925 @@ -6607,24 +7185,22 @@ cat >>conftest.$ac_ext <<_ACEOF
32926 /* end confdefs.h. */
32927 #include <$ac_header>
32928 _ACEOF
32929 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32930 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32931 +if { (ac_try="$ac_cpp conftest.$ac_ext"
32932 +case "(($ac_try" in
32933 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32934 + *) ac_try_echo=$ac_try;;
32935 +esac
32936 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32937 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32938 ac_status=$?
32939 grep -v '^ *+' conftest.er1 >conftest.err
32940 rm -f conftest.er1
32941 cat conftest.err >&5
32942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 - (exit $ac_status); } >/dev/null; then
32944 - if test -s conftest.err; then
32945 - ac_cpp_err=$ac_c_preproc_warn_flag
32946 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32947 - else
32948 - ac_cpp_err=
32949 - fi
32950 -else
32951 - ac_cpp_err=yes
32952 -fi
32953 -if test -z "$ac_cpp_err"; then
32954 + (exit $ac_status); } >/dev/null && {
32955 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32956 + test ! -s conftest.err
32957 + }; then
32958 ac_header_preproc=yes
32959 else
32960 echo "$as_me: failed program was:" >&5
32961 @@ -6632,9 +7208,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
32962
32963 ac_header_preproc=no
32964 fi
32965 +
32966 rm -f conftest.err conftest.$ac_ext
32967 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32968 -echo "${ECHO_T}$ac_header_preproc" >&6
32969 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32970 +echo "${ECHO_T}$ac_header_preproc" >&6; }
32971
32972 # So? What about this header?
32973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32974 @@ -6658,25 +7235,19 @@ echo "$as_me: WARNING: $ac_header: s
32975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32978 - (
32979 - cat <<\_ASBOX
32980 -## ------------------------------------------ ##
32981 -## Report this to the AC_PACKAGE_NAME lists. ##
32982 -## ------------------------------------------ ##
32983 -_ASBOX
32984 - ) |
32985 - sed "s/^/$as_me: WARNING: /" >&2
32986 +
32987 ;;
32988 esac
32989 -echo "$as_me:$LINENO: checking for $ac_header" >&5
32990 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32991 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
32992 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32993 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32994 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32995 echo $ECHO_N "(cached) $ECHO_C" >&6
32996 else
32997 eval "$as_ac_Header=\$ac_header_preproc"
32998 fi
32999 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33000 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33001 +ac_res=`eval echo '${'$as_ac_Header'}'`
33002 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33003 +echo "${ECHO_T}$ac_res" >&6; }
33004
33005 fi
33006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33007 @@ -6692,9 +7263,9 @@ done
33008 for ac_func in getpagesize
33009 do
33010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33011 -echo "$as_me:$LINENO: checking for $ac_func" >&5
33012 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33013 -if eval "test \"\${$as_ac_var+set}\" = set"; then
33014 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33015 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33016 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33017 echo $ECHO_N "(cached) $ECHO_C" >&6
33018 else
33019 cat >conftest.$ac_ext <<_ACEOF
33020 @@ -6720,68 +7291,60 @@ cat >>conftest.$ac_ext <<_ACEOF
33021
33022 #undef $ac_func
33023
33024 -/* Override any gcc2 internal prototype to avoid an error. */
33025 +/* Override any GCC internal prototype to avoid an error.
33026 + Use char because int might match the return type of a GCC
33027 + builtin and then its argument prototype would still apply. */
33028 #ifdef __cplusplus
33029 extern "C"
33030 -{
33031 #endif
33032 -/* We use char because int might match the return type of a gcc2
33033 - builtin and then its argument prototype would still apply. */
33034 char $ac_func ();
33035 /* The GNU C library defines this for functions which it implements
33036 to always fail with ENOSYS. Some functions are actually named
33037 something starting with __ and the normal name is an alias. */
33038 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33039 +#if defined __stub_$ac_func || defined __stub___$ac_func
33040 choke me
33041 -#else
33042 -char (*f) () = $ac_func;
33043 -#endif
33044 -#ifdef __cplusplus
33045 -}
33046 #endif
33047
33048 int
33049 main ()
33050 {
33051 -return f != $ac_func;
33052 +return $ac_func ();
33053 ;
33054 return 0;
33055 }
33056 _ACEOF
33057 rm -f conftest.$ac_objext conftest$ac_exeext
33058 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33059 - (eval $ac_link) 2>conftest.er1
33060 +if { (ac_try="$ac_link"
33061 +case "(($ac_try" in
33062 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063 + *) ac_try_echo=$ac_try;;
33064 +esac
33065 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066 + (eval "$ac_link") 2>conftest.er1
33067 ac_status=$?
33068 grep -v '^ *+' conftest.er1 >conftest.err
33069 rm -f conftest.er1
33070 cat conftest.err >&5
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 - (exit $ac_status); } &&
33073 - { ac_try='test -z "$ac_c_werror_flag"
33074 - || test ! -s conftest.err'
33075 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33076 - (eval $ac_try) 2>&5
33077 - ac_status=$?
33078 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 - (exit $ac_status); }; } &&
33080 - { ac_try='test -s conftest$ac_exeext'
33081 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082 - (eval $ac_try) 2>&5
33083 - ac_status=$?
33084 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 - (exit $ac_status); }; }; then
33086 + (exit $ac_status); } && {
33087 + test -z "$ac_c_werror_flag" ||
33088 + test ! -s conftest.err
33089 + } && test -s conftest$ac_exeext &&
33090 + $as_test_x conftest$ac_exeext; then
33091 eval "$as_ac_var=yes"
33092 else
33093 echo "$as_me: failed program was:" >&5
33094 sed 's/^/| /' conftest.$ac_ext >&5
33095
33096 -eval "$as_ac_var=no"
33097 + eval "$as_ac_var=no"
33098 fi
33099 -rm -f conftest.err conftest.$ac_objext \
33100 +
33101 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33102 conftest$ac_exeext conftest.$ac_ext
33103 fi
33104 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33105 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33106 +ac_res=`eval echo '${'$as_ac_var'}'`
33107 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33108 +echo "${ECHO_T}$ac_res" >&6; }
33109 if test `eval echo '${'$as_ac_var'}'` = yes; then
33110 cat >>confdefs.h <<_ACEOF
33111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33112 @@ -6790,8 +7353,8 @@ _ACEOF
33113 fi
33114 done
33115
33116 -echo "$as_me:$LINENO: checking for working mmap" >&5
33117 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
33118 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
33119 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33120 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33121 echo $ECHO_N "(cached) $ECHO_C" >&6
33122 else
33123 @@ -6833,21 +7396,21 @@ $ac_includes_default
33124 #include <fcntl.h>
33125 #include <sys/mman.h>
33126
33127 -#if !STDC_HEADERS && !HAVE_STDLIB_H
33128 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
33129 char *malloc ();
33130 #endif
33131
33132 /* This mess was copied from the GNU getpagesize.h. */
33133 -#if !HAVE_GETPAGESIZE
33134 +#ifndef HAVE_GETPAGESIZE
33135 /* Assume that all systems that can run configure have sys/param.h. */
33136 -# if !HAVE_SYS_PARAM_H
33137 +# ifndef HAVE_SYS_PARAM_H
33138 # define HAVE_SYS_PARAM_H 1
33139 # endif
33140
33141 # ifdef _SC_PAGESIZE
33142 # define getpagesize() sysconf(_SC_PAGESIZE)
33143 # else /* no _SC_PAGESIZE */
33144 -# if HAVE_SYS_PARAM_H
33145 +# ifdef HAVE_SYS_PARAM_H
33146 # include <sys/param.h>
33147 # ifdef EXEC_PAGESIZE
33148 # define getpagesize() EXEC_PAGESIZE
33149 @@ -6886,15 +7449,15 @@ main ()
33150 /* First, make a file with some known garbage in it. */
33151 data = (char *) malloc (pagesize);
33152 if (!data)
33153 - exit (1);
33154 + return 1;
33155 for (i = 0; i < pagesize; ++i)
33156 *(data + i) = rand ();
33157 umask (0);
33158 fd = creat ("conftest.mmap", 0600);
33159 if (fd < 0)
33160 - exit (1);
33161 + return 1;
33162 if (write (fd, data, pagesize) != pagesize)
33163 - exit (1);
33164 + return 1;
33165 close (fd);
33166
33167 /* Next, try to mmap the file at a fixed address which already has
33168 @@ -6902,17 +7465,17 @@ main ()
33169 we see the same garbage. */
33170 fd = open ("conftest.mmap", O_RDWR);
33171 if (fd < 0)
33172 - exit (1);
33173 + return 1;
33174 data2 = (char *) malloc (2 * pagesize);
33175 if (!data2)
33176 - exit (1);
33177 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
33178 + return 1;
33179 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33180 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33181 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33182 - exit (1);
33183 + return 1;
33184 for (i = 0; i < pagesize; ++i)
33185 if (*(data + i) != *(data2 + i))
33186 - exit (1);
33187 + return 1;
33188
33189 /* Finally, make sure that changes to the mapped area do not
33190 percolate back to the file as seen by read(). (This is a bug on
33191 @@ -6921,24 +7484,33 @@ main ()
33192 *(data2 + i) = *(data2 + i) + 1;
33193 data3 = (char *) malloc (pagesize);
33194 if (!data3)
33195 - exit (1);
33196 + return 1;
33197 if (read (fd, data3, pagesize) != pagesize)
33198 - exit (1);
33199 + return 1;
33200 for (i = 0; i < pagesize; ++i)
33201 if (*(data + i) != *(data3 + i))
33202 - exit (1);
33203 + return 1;
33204 close (fd);
33205 - exit (0);
33206 + return 0;
33207 }
33208 _ACEOF
33209 rm -f conftest$ac_exeext
33210 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33211 - (eval $ac_link) 2>&5
33212 +if { (ac_try="$ac_link"
33213 +case "(($ac_try" in
33214 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215 + *) ac_try_echo=$ac_try;;
33216 +esac
33217 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218 + (eval "$ac_link") 2>&5
33219 ac_status=$?
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33222 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223 - (eval $ac_try) 2>&5
33224 + { (case "(($ac_try" in
33225 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226 + *) ac_try_echo=$ac_try;;
33227 +esac
33228 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229 + (eval "$ac_try") 2>&5
33230 ac_status=$?
33231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232 (exit $ac_status); }; }; then
33233 @@ -6951,11 +7523,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
33234 ( exit $ac_status )
33235 ac_cv_func_mmap_fixed_mapped=no
33236 fi
33237 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33238 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33239 fi
33240 +
33241 +
33242 fi
33243 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33244 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
33245 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33246 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33247 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33248
33249 cat >>confdefs.h <<\_ACEOF
33250 @@ -6979,18 +7553,19 @@ for ac_header in argz.h limits.h locale.
33251 unistd.h values.h sys/param.h
33252 do
33253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33254 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33255 - echo "$as_me:$LINENO: checking for $ac_header" >&5
33256 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33257 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33258 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33259 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
33260 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33261 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33263 fi
33264 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33265 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33266 +ac_res=`eval echo '${'$as_ac_Header'}'`
33267 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33268 +echo "${ECHO_T}$ac_res" >&6; }
33269 else
33270 # Is the header compilable?
33271 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
33272 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33273 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33274 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33275 cat >conftest.$ac_ext <<_ACEOF
33276 /* confdefs.h. */
33277 _ACEOF
33278 @@ -7001,41 +7576,37 @@ $ac_includes_default
33279 #include <$ac_header>
33280 _ACEOF
33281 rm -f conftest.$ac_objext
33282 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33283 - (eval $ac_compile) 2>conftest.er1
33284 +if { (ac_try="$ac_compile"
33285 +case "(($ac_try" in
33286 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287 + *) ac_try_echo=$ac_try;;
33288 +esac
33289 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290 + (eval "$ac_compile") 2>conftest.er1
33291 ac_status=$?
33292 grep -v '^ *+' conftest.er1 >conftest.err
33293 rm -f conftest.er1
33294 cat conftest.err >&5
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 - (exit $ac_status); } &&
33297 - { ac_try='test -z "$ac_c_werror_flag"
33298 - || test ! -s conftest.err'
33299 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33300 - (eval $ac_try) 2>&5
33301 - ac_status=$?
33302 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303 - (exit $ac_status); }; } &&
33304 - { ac_try='test -s conftest.$ac_objext'
33305 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33306 - (eval $ac_try) 2>&5
33307 - ac_status=$?
33308 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 - (exit $ac_status); }; }; then
33310 + (exit $ac_status); } && {
33311 + test -z "$ac_c_werror_flag" ||
33312 + test ! -s conftest.err
33313 + } && test -s conftest.$ac_objext; then
33314 ac_header_compiler=yes
33315 else
33316 echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33318
33319 -ac_header_compiler=no
33320 + ac_header_compiler=no
33321 fi
33322 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33323 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33324 -echo "${ECHO_T}$ac_header_compiler" >&6
33325 +
33326 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33327 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33328 +echo "${ECHO_T}$ac_header_compiler" >&6; }
33329
33330 # Is the header present?
33331 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
33332 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33333 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33334 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33335 cat >conftest.$ac_ext <<_ACEOF
33336 /* confdefs.h. */
33337 _ACEOF
33338 @@ -7044,24 +7615,22 @@ cat >>conftest.$ac_ext <<_ACEOF
33339 /* end confdefs.h. */
33340 #include <$ac_header>
33341 _ACEOF
33342 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33343 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33344 +if { (ac_try="$ac_cpp conftest.$ac_ext"
33345 +case "(($ac_try" in
33346 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33347 + *) ac_try_echo=$ac_try;;
33348 +esac
33349 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33350 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33351 ac_status=$?
33352 grep -v '^ *+' conftest.er1 >conftest.err
33353 rm -f conftest.er1
33354 cat conftest.err >&5
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 - (exit $ac_status); } >/dev/null; then
33357 - if test -s conftest.err; then
33358 - ac_cpp_err=$ac_c_preproc_warn_flag
33359 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33360 - else
33361 - ac_cpp_err=
33362 - fi
33363 -else
33364 - ac_cpp_err=yes
33365 -fi
33366 -if test -z "$ac_cpp_err"; then
33367 + (exit $ac_status); } >/dev/null && {
33368 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33369 + test ! -s conftest.err
33370 + }; then
33371 ac_header_preproc=yes
33372 else
33373 echo "$as_me: failed program was:" >&5
33374 @@ -7069,9 +7638,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
33375
33376 ac_header_preproc=no
33377 fi
33378 +
33379 rm -f conftest.err conftest.$ac_ext
33380 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33381 -echo "${ECHO_T}$ac_header_preproc" >&6
33382 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33383 +echo "${ECHO_T}$ac_header_preproc" >&6; }
33384
33385 # So? What about this header?
33386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33387 @@ -7095,25 +7665,19 @@ echo "$as_me: WARNING: $ac_header: s
33388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33391 - (
33392 - cat <<\_ASBOX
33393 -## ------------------------------------------ ##
33394 -## Report this to the AC_PACKAGE_NAME lists. ##
33395 -## ------------------------------------------ ##
33396 -_ASBOX
33397 - ) |
33398 - sed "s/^/$as_me: WARNING: /" >&2
33399 +
33400 ;;
33401 esac
33402 -echo "$as_me:$LINENO: checking for $ac_header" >&5
33403 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33404 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33405 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33406 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33407 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33408 echo $ECHO_N "(cached) $ECHO_C" >&6
33409 else
33410 eval "$as_ac_Header=\$ac_header_preproc"
33411 fi
33412 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33413 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33414 +ac_res=`eval echo '${'$as_ac_Header'}'`
33415 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33416 +echo "${ECHO_T}$ac_res" >&6; }
33417
33418 fi
33419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33420 @@ -7139,9 +7703,9 @@ for ac_func in getcwd munmap putenv sete
33421 __argz_count __argz_stringify __argz_next
33422 do
33423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33424 -echo "$as_me:$LINENO: checking for $ac_func" >&5
33425 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33426 -if eval "test \"\${$as_ac_var+set}\" = set"; then
33427 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33428 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33429 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33430 echo $ECHO_N "(cached) $ECHO_C" >&6
33431 else
33432 cat >conftest.$ac_ext <<_ACEOF
33433 @@ -7167,68 +7731,60 @@ cat >>conftest.$ac_ext <<_ACEOF
33434
33435 #undef $ac_func
33436
33437 -/* Override any gcc2 internal prototype to avoid an error. */
33438 +/* Override any GCC internal prototype to avoid an error.
33439 + Use char because int might match the return type of a GCC
33440 + builtin and then its argument prototype would still apply. */
33441 #ifdef __cplusplus
33442 extern "C"
33443 -{
33444 #endif
33445 -/* We use char because int might match the return type of a gcc2
33446 - builtin and then its argument prototype would still apply. */
33447 char $ac_func ();
33448 /* The GNU C library defines this for functions which it implements
33449 to always fail with ENOSYS. Some functions are actually named
33450 something starting with __ and the normal name is an alias. */
33451 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33452 +#if defined __stub_$ac_func || defined __stub___$ac_func
33453 choke me
33454 -#else
33455 -char (*f) () = $ac_func;
33456 -#endif
33457 -#ifdef __cplusplus
33458 -}
33459 #endif
33460
33461 int
33462 main ()
33463 {
33464 -return f != $ac_func;
33465 +return $ac_func ();
33466 ;
33467 return 0;
33468 }
33469 _ACEOF
33470 rm -f conftest.$ac_objext conftest$ac_exeext
33471 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33472 - (eval $ac_link) 2>conftest.er1
33473 +if { (ac_try="$ac_link"
33474 +case "(($ac_try" in
33475 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33476 + *) ac_try_echo=$ac_try;;
33477 +esac
33478 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33479 + (eval "$ac_link") 2>conftest.er1
33480 ac_status=$?
33481 grep -v '^ *+' conftest.er1 >conftest.err
33482 rm -f conftest.er1
33483 cat conftest.err >&5
33484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33485 - (exit $ac_status); } &&
33486 - { ac_try='test -z "$ac_c_werror_flag"
33487 - || test ! -s conftest.err'
33488 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33489 - (eval $ac_try) 2>&5
33490 - ac_status=$?
33491 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 - (exit $ac_status); }; } &&
33493 - { ac_try='test -s conftest$ac_exeext'
33494 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33495 - (eval $ac_try) 2>&5
33496 - ac_status=$?
33497 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498 - (exit $ac_status); }; }; then
33499 + (exit $ac_status); } && {
33500 + test -z "$ac_c_werror_flag" ||
33501 + test ! -s conftest.err
33502 + } && test -s conftest$ac_exeext &&
33503 + $as_test_x conftest$ac_exeext; then
33504 eval "$as_ac_var=yes"
33505 else
33506 echo "$as_me: failed program was:" >&5
33507 sed 's/^/| /' conftest.$ac_ext >&5
33508
33509 -eval "$as_ac_var=no"
33510 + eval "$as_ac_var=no"
33511 fi
33512 -rm -f conftest.err conftest.$ac_objext \
33513 +
33514 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33515 conftest$ac_exeext conftest.$ac_ext
33516 fi
33517 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33518 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33519 +ac_res=`eval echo '${'$as_ac_var'}'`
33520 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33521 +echo "${ECHO_T}$ac_res" >&6; }
33522 if test `eval echo '${'$as_ac_var'}'` = yes; then
33523 cat >>confdefs.h <<_ACEOF
33524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33525 @@ -7243,9 +7799,9 @@ done
33526 for ac_func in stpcpy
33527 do
33528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33529 -echo "$as_me:$LINENO: checking for $ac_func" >&5
33530 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33531 -if eval "test \"\${$as_ac_var+set}\" = set"; then
33532 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33533 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33534 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33535 echo $ECHO_N "(cached) $ECHO_C" >&6
33536 else
33537 cat >conftest.$ac_ext <<_ACEOF
33538 @@ -7271,68 +7827,60 @@ cat >>conftest.$ac_ext <<_ACEOF
33539
33540 #undef $ac_func
33541
33542 -/* Override any gcc2 internal prototype to avoid an error. */
33543 +/* Override any GCC internal prototype to avoid an error.
33544 + Use char because int might match the return type of a GCC
33545 + builtin and then its argument prototype would still apply. */
33546 #ifdef __cplusplus
33547 extern "C"
33548 -{
33549 #endif
33550 -/* We use char because int might match the return type of a gcc2
33551 - builtin and then its argument prototype would still apply. */
33552 char $ac_func ();
33553 /* The GNU C library defines this for functions which it implements
33554 to always fail with ENOSYS. Some functions are actually named
33555 something starting with __ and the normal name is an alias. */
33556 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33557 +#if defined __stub_$ac_func || defined __stub___$ac_func
33558 choke me
33559 -#else
33560 -char (*f) () = $ac_func;
33561 -#endif
33562 -#ifdef __cplusplus
33563 -}
33564 #endif
33565
33566 int
33567 main ()
33568 {
33569 -return f != $ac_func;
33570 +return $ac_func ();
33571 ;
33572 return 0;
33573 }
33574 _ACEOF
33575 rm -f conftest.$ac_objext conftest$ac_exeext
33576 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33577 - (eval $ac_link) 2>conftest.er1
33578 +if { (ac_try="$ac_link"
33579 +case "(($ac_try" in
33580 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33581 + *) ac_try_echo=$ac_try;;
33582 +esac
33583 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33584 + (eval "$ac_link") 2>conftest.er1
33585 ac_status=$?
33586 grep -v '^ *+' conftest.er1 >conftest.err
33587 rm -f conftest.er1
33588 cat conftest.err >&5
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 - (exit $ac_status); } &&
33591 - { ac_try='test -z "$ac_c_werror_flag"
33592 - || test ! -s conftest.err'
33593 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33594 - (eval $ac_try) 2>&5
33595 - ac_status=$?
33596 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 - (exit $ac_status); }; } &&
33598 - { ac_try='test -s conftest$ac_exeext'
33599 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33600 - (eval $ac_try) 2>&5
33601 - ac_status=$?
33602 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 - (exit $ac_status); }; }; then
33604 + (exit $ac_status); } && {
33605 + test -z "$ac_c_werror_flag" ||
33606 + test ! -s conftest.err
33607 + } && test -s conftest$ac_exeext &&
33608 + $as_test_x conftest$ac_exeext; then
33609 eval "$as_ac_var=yes"
33610 else
33611 echo "$as_me: failed program was:" >&5
33612 sed 's/^/| /' conftest.$ac_ext >&5
33613
33614 -eval "$as_ac_var=no"
33615 + eval "$as_ac_var=no"
33616 fi
33617 -rm -f conftest.err conftest.$ac_objext \
33618 +
33619 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33620 conftest$ac_exeext conftest.$ac_ext
33621 fi
33622 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33623 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33624 +ac_res=`eval echo '${'$as_ac_var'}'`
33625 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33626 +echo "${ECHO_T}$ac_res" >&6; }
33627 if test `eval echo '${'$as_ac_var'}'` = yes; then
33628 cat >>confdefs.h <<_ACEOF
33629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33630 @@ -7351,8 +7899,8 @@ _ACEOF
33631 fi
33632
33633 if test $ac_cv_header_locale_h = yes; then
33634 - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
33635 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
33636 + { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
33637 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
33638 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
33639 echo $ECHO_N "(cached) $ECHO_C" >&6
33640 else
33641 @@ -7372,39 +7920,36 @@ return LC_MESSAGES
33642 }
33643 _ACEOF
33644 rm -f conftest.$ac_objext conftest$ac_exeext
33645 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33646 - (eval $ac_link) 2>conftest.er1
33647 +if { (ac_try="$ac_link"
33648 +case "(($ac_try" in
33649 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650 + *) ac_try_echo=$ac_try;;
33651 +esac
33652 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653 + (eval "$ac_link") 2>conftest.er1
33654 ac_status=$?
33655 grep -v '^ *+' conftest.er1 >conftest.err
33656 rm -f conftest.er1
33657 cat conftest.err >&5
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 - (exit $ac_status); } &&
33660 - { ac_try='test -z "$ac_c_werror_flag"
33661 - || test ! -s conftest.err'
33662 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33663 - (eval $ac_try) 2>&5
33664 - ac_status=$?
33665 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 - (exit $ac_status); }; } &&
33667 - { ac_try='test -s conftest$ac_exeext'
33668 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33669 - (eval $ac_try) 2>&5
33670 - ac_status=$?
33671 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 - (exit $ac_status); }; }; then
33673 + (exit $ac_status); } && {
33674 + test -z "$ac_c_werror_flag" ||
33675 + test ! -s conftest.err
33676 + } && test -s conftest$ac_exeext &&
33677 + $as_test_x conftest$ac_exeext; then
33678 am_cv_val_LC_MESSAGES=yes
33679 else
33680 echo "$as_me: failed program was:" >&5
33681 sed 's/^/| /' conftest.$ac_ext >&5
33682
33683 -am_cv_val_LC_MESSAGES=no
33684 + am_cv_val_LC_MESSAGES=no
33685 fi
33686 -rm -f conftest.err conftest.$ac_objext \
33687 +
33688 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33689 conftest$ac_exeext conftest.$ac_ext
33690 fi
33691 -echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
33692 -echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
33693 +{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
33694 +echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
33695 if test $am_cv_val_LC_MESSAGES = yes; then
33696
33697 cat >>confdefs.h <<\_ACEOF
33698 @@ -7413,34 +7958,34 @@ _ACEOF
33699
33700 fi
33701 fi
33702 - echo "$as_me:$LINENO: checking whether NLS is requested" >&5
33703 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
33704 - # Check whether --enable-nls or --disable-nls was given.
33705 + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
33706 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
33707 + # Check whether --enable-nls was given.
33708 if test "${enable_nls+set}" = set; then
33709 - enableval="$enable_nls"
33710 - USE_NLS=$enableval
33711 + enableval=$enable_nls; USE_NLS=$enableval
33712 else
33713 USE_NLS=yes
33714 -fi;
33715 - echo "$as_me:$LINENO: result: $USE_NLS" >&5
33716 -echo "${ECHO_T}$USE_NLS" >&6
33717 +fi
33718 +
33719 + { echo "$as_me:$LINENO: result: $USE_NLS" >&5
33720 +echo "${ECHO_T}$USE_NLS" >&6; }
33721
33722
33723 USE_INCLUDED_LIBINTL=no
33724
33725 if test "$USE_NLS" = "yes"; then
33726 - echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
33727 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
33728 + { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
33729 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
33730
33731 -# Check whether --with-included-gettext or --without-included-gettext was given.
33732 +# Check whether --with-included-gettext was given.
33733 if test "${with_included_gettext+set}" = set; then
33734 - withval="$with_included_gettext"
33735 - nls_cv_force_use_gnu_gettext=$withval
33736 + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
33737 else
33738 nls_cv_force_use_gnu_gettext=no
33739 -fi;
33740 - echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
33741 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
33742 +fi
33743 +
33744 + { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
33745 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
33746
33747 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
33748 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
33749 @@ -7449,17 +7994,17 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_get
33750 CATOBJEXT=
33751
33752 if test "${ac_cv_header_libintl_h+set}" = set; then
33753 - echo "$as_me:$LINENO: checking for libintl.h" >&5
33754 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
33755 + { echo "$as_me:$LINENO: checking for libintl.h" >&5
33756 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
33757 if test "${ac_cv_header_libintl_h+set}" = set; then
33758 echo $ECHO_N "(cached) $ECHO_C" >&6
33759 fi
33760 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33761 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
33762 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33763 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
33764 else
33765 # Is the header compilable?
33766 -echo "$as_me:$LINENO: checking libintl.h usability" >&5
33767 -echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
33768 +{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
33769 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
33770 cat >conftest.$ac_ext <<_ACEOF
33771 /* confdefs.h. */
33772 _ACEOF
33773 @@ -7470,41 +8015,37 @@ $ac_includes_default
33774 #include <libintl.h>
33775 _ACEOF
33776 rm -f conftest.$ac_objext
33777 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33778 - (eval $ac_compile) 2>conftest.er1
33779 +if { (ac_try="$ac_compile"
33780 +case "(($ac_try" in
33781 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33782 + *) ac_try_echo=$ac_try;;
33783 +esac
33784 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33785 + (eval "$ac_compile") 2>conftest.er1
33786 ac_status=$?
33787 grep -v '^ *+' conftest.er1 >conftest.err
33788 rm -f conftest.er1
33789 cat conftest.err >&5
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 - (exit $ac_status); } &&
33792 - { ac_try='test -z "$ac_c_werror_flag"
33793 - || test ! -s conftest.err'
33794 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33795 - (eval $ac_try) 2>&5
33796 - ac_status=$?
33797 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 - (exit $ac_status); }; } &&
33799 - { ac_try='test -s conftest.$ac_objext'
33800 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33801 - (eval $ac_try) 2>&5
33802 - ac_status=$?
33803 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 - (exit $ac_status); }; }; then
33805 + (exit $ac_status); } && {
33806 + test -z "$ac_c_werror_flag" ||
33807 + test ! -s conftest.err
33808 + } && test -s conftest.$ac_objext; then
33809 ac_header_compiler=yes
33810 else
33811 echo "$as_me: failed program was:" >&5
33812 sed 's/^/| /' conftest.$ac_ext >&5
33813
33814 -ac_header_compiler=no
33815 + ac_header_compiler=no
33816 fi
33817 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33818 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33819 -echo "${ECHO_T}$ac_header_compiler" >&6
33820 +
33821 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33822 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33823 +echo "${ECHO_T}$ac_header_compiler" >&6; }
33824
33825 # Is the header present?
33826 -echo "$as_me:$LINENO: checking libintl.h presence" >&5
33827 -echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
33828 +{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
33829 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
33830 cat >conftest.$ac_ext <<_ACEOF
33831 /* confdefs.h. */
33832 _ACEOF
33833 @@ -7513,24 +8054,22 @@ cat >>conftest.$ac_ext <<_ACEOF
33834 /* end confdefs.h. */
33835 #include <libintl.h>
33836 _ACEOF
33837 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33838 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33839 +if { (ac_try="$ac_cpp conftest.$ac_ext"
33840 +case "(($ac_try" in
33841 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33842 + *) ac_try_echo=$ac_try;;
33843 +esac
33844 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33845 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33846 ac_status=$?
33847 grep -v '^ *+' conftest.er1 >conftest.err
33848 rm -f conftest.er1
33849 cat conftest.err >&5
33850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851 - (exit $ac_status); } >/dev/null; then
33852 - if test -s conftest.err; then
33853 - ac_cpp_err=$ac_c_preproc_warn_flag
33854 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33855 - else
33856 - ac_cpp_err=
33857 - fi
33858 -else
33859 - ac_cpp_err=yes
33860 -fi
33861 -if test -z "$ac_cpp_err"; then
33862 + (exit $ac_status); } >/dev/null && {
33863 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33864 + test ! -s conftest.err
33865 + }; then
33866 ac_header_preproc=yes
33867 else
33868 echo "$as_me: failed program was:" >&5
33869 @@ -7538,9 +8077,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
33870
33871 ac_header_preproc=no
33872 fi
33873 +
33874 rm -f conftest.err conftest.$ac_ext
33875 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33876 -echo "${ECHO_T}$ac_header_preproc" >&6
33877 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33878 +echo "${ECHO_T}$ac_header_preproc" >&6; }
33879
33880 # So? What about this header?
33881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33882 @@ -7564,30 +8104,23 @@ echo "$as_me: WARNING: libintl.h: se
33883 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
33884 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
33885 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
33886 - (
33887 - cat <<\_ASBOX
33888 -## ------------------------------------------ ##
33889 -## Report this to the AC_PACKAGE_NAME lists. ##
33890 -## ------------------------------------------ ##
33891 -_ASBOX
33892 - ) |
33893 - sed "s/^/$as_me: WARNING: /" >&2
33894 +
33895 ;;
33896 esac
33897 -echo "$as_me:$LINENO: checking for libintl.h" >&5
33898 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
33899 +{ echo "$as_me:$LINENO: checking for libintl.h" >&5
33900 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
33901 if test "${ac_cv_header_libintl_h+set}" = set; then
33902 echo $ECHO_N "(cached) $ECHO_C" >&6
33903 else
33904 ac_cv_header_libintl_h=$ac_header_preproc
33905 fi
33906 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33907 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
33908 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33909 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
33910
33911 fi
33912 if test $ac_cv_header_libintl_h = yes; then
33913 - echo "$as_me:$LINENO: checking for gettext in libc" >&5
33914 -echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
33915 + { echo "$as_me:$LINENO: checking for gettext in libc" >&5
33916 +echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
33917 if test "${gt_cv_func_gettext_libc+set}" = set; then
33918 echo $ECHO_N "(cached) $ECHO_C" >&6
33919 else
33920 @@ -7607,43 +8140,40 @@ return (int) gettext ("")
33921 }
33922 _ACEOF
33923 rm -f conftest.$ac_objext conftest$ac_exeext
33924 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33925 - (eval $ac_link) 2>conftest.er1
33926 +if { (ac_try="$ac_link"
33927 +case "(($ac_try" in
33928 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33929 + *) ac_try_echo=$ac_try;;
33930 +esac
33931 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33932 + (eval "$ac_link") 2>conftest.er1
33933 ac_status=$?
33934 grep -v '^ *+' conftest.er1 >conftest.err
33935 rm -f conftest.er1
33936 cat conftest.err >&5
33937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938 - (exit $ac_status); } &&
33939 - { ac_try='test -z "$ac_c_werror_flag"
33940 - || test ! -s conftest.err'
33941 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33942 - (eval $ac_try) 2>&5
33943 - ac_status=$?
33944 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 - (exit $ac_status); }; } &&
33946 - { ac_try='test -s conftest$ac_exeext'
33947 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33948 - (eval $ac_try) 2>&5
33949 - ac_status=$?
33950 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 - (exit $ac_status); }; }; then
33952 + (exit $ac_status); } && {
33953 + test -z "$ac_c_werror_flag" ||
33954 + test ! -s conftest.err
33955 + } && test -s conftest$ac_exeext &&
33956 + $as_test_x conftest$ac_exeext; then
33957 gt_cv_func_gettext_libc=yes
33958 else
33959 echo "$as_me: failed program was:" >&5
33960 sed 's/^/| /' conftest.$ac_ext >&5
33961
33962 -gt_cv_func_gettext_libc=no
33963 + gt_cv_func_gettext_libc=no
33964 fi
33965 -rm -f conftest.err conftest.$ac_objext \
33966 +
33967 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33968 conftest$ac_exeext conftest.$ac_ext
33969 fi
33970 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
33971 -echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
33972 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
33973 +echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
33974
33975 if test "$gt_cv_func_gettext_libc" != "yes"; then
33976 - echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
33977 -echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
33978 + { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
33979 +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
33980 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
33981 echo $ECHO_N "(cached) $ECHO_C" >&6
33982 else
33983 @@ -7656,59 +8186,56 @@ cat confdefs.h >>conftest.$ac_ext
33984 cat >>conftest.$ac_ext <<_ACEOF
33985 /* end confdefs.h. */
33986
33987 -/* Override any gcc2 internal prototype to avoid an error. */
33988 +/* Override any GCC internal prototype to avoid an error.
33989 + Use char because int might match the return type of a GCC
33990 + builtin and then its argument prototype would still apply. */
33991 #ifdef __cplusplus
33992 extern "C"
33993 #endif
33994 -/* We use char because int might match the return type of a gcc2
33995 - builtin and then its argument prototype would still apply. */
33996 char bindtextdomain ();
33997 int
33998 main ()
33999 {
34000 -bindtextdomain ();
34001 +return bindtextdomain ();
34002 ;
34003 return 0;
34004 }
34005 _ACEOF
34006 rm -f conftest.$ac_objext conftest$ac_exeext
34007 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34008 - (eval $ac_link) 2>conftest.er1
34009 +if { (ac_try="$ac_link"
34010 +case "(($ac_try" in
34011 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34012 + *) ac_try_echo=$ac_try;;
34013 +esac
34014 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34015 + (eval "$ac_link") 2>conftest.er1
34016 ac_status=$?
34017 grep -v '^ *+' conftest.er1 >conftest.err
34018 rm -f conftest.er1
34019 cat conftest.err >&5
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 - (exit $ac_status); } &&
34022 - { ac_try='test -z "$ac_c_werror_flag"
34023 - || test ! -s conftest.err'
34024 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34025 - (eval $ac_try) 2>&5
34026 - ac_status=$?
34027 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 - (exit $ac_status); }; } &&
34029 - { ac_try='test -s conftest$ac_exeext'
34030 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34031 - (eval $ac_try) 2>&5
34032 - ac_status=$?
34033 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 - (exit $ac_status); }; }; then
34035 + (exit $ac_status); } && {
34036 + test -z "$ac_c_werror_flag" ||
34037 + test ! -s conftest.err
34038 + } && test -s conftest$ac_exeext &&
34039 + $as_test_x conftest$ac_exeext; then
34040 ac_cv_lib_intl_bindtextdomain=yes
34041 else
34042 echo "$as_me: failed program was:" >&5
34043 sed 's/^/| /' conftest.$ac_ext >&5
34044
34045 -ac_cv_lib_intl_bindtextdomain=no
34046 + ac_cv_lib_intl_bindtextdomain=no
34047 fi
34048 -rm -f conftest.err conftest.$ac_objext \
34049 +
34050 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34051 conftest$ac_exeext conftest.$ac_ext
34052 LIBS=$ac_check_lib_save_LIBS
34053 fi
34054 -echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
34055 -echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
34056 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
34057 +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
34058 if test $ac_cv_lib_intl_bindtextdomain = yes; then
34059 - echo "$as_me:$LINENO: checking for gettext in libintl" >&5
34060 -echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
34061 + { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
34062 +echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
34063 if test "${gt_cv_func_gettext_libintl+set}" = set; then
34064 echo $ECHO_N "(cached) $ECHO_C" >&6
34065 else
34066 @@ -7728,39 +8255,36 @@ return (int) gettext ("")
34067 }
34068 _ACEOF
34069 rm -f conftest.$ac_objext conftest$ac_exeext
34070 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34071 - (eval $ac_link) 2>conftest.er1
34072 +if { (ac_try="$ac_link"
34073 +case "(($ac_try" in
34074 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34075 + *) ac_try_echo=$ac_try;;
34076 +esac
34077 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34078 + (eval "$ac_link") 2>conftest.er1
34079 ac_status=$?
34080 grep -v '^ *+' conftest.er1 >conftest.err
34081 rm -f conftest.er1
34082 cat conftest.err >&5
34083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084 - (exit $ac_status); } &&
34085 - { ac_try='test -z "$ac_c_werror_flag"
34086 - || test ! -s conftest.err'
34087 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34088 - (eval $ac_try) 2>&5
34089 - ac_status=$?
34090 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091 - (exit $ac_status); }; } &&
34092 - { ac_try='test -s conftest$ac_exeext'
34093 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34094 - (eval $ac_try) 2>&5
34095 - ac_status=$?
34096 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 - (exit $ac_status); }; }; then
34098 + (exit $ac_status); } && {
34099 + test -z "$ac_c_werror_flag" ||
34100 + test ! -s conftest.err
34101 + } && test -s conftest$ac_exeext &&
34102 + $as_test_x conftest$ac_exeext; then
34103 gt_cv_func_gettext_libintl=yes
34104 else
34105 echo "$as_me: failed program was:" >&5
34106 sed 's/^/| /' conftest.$ac_ext >&5
34107
34108 -gt_cv_func_gettext_libintl=no
34109 + gt_cv_func_gettext_libintl=no
34110 fi
34111 -rm -f conftest.err conftest.$ac_objext \
34112 +
34113 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34114 conftest$ac_exeext conftest.$ac_ext
34115 fi
34116 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
34117 -echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
34118 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
34119 +echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
34120 fi
34121
34122 fi
34123 @@ -7774,8 +8298,8 @@ _ACEOF
34124
34125 # Extract the first word of "msgfmt", so it can be a program name with args.
34126 set dummy msgfmt; ac_word=$2
34127 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34128 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34129 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34130 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34131 if test "${ac_cv_path_MSGFMT+set}" = set; then
34132 echo $ECHO_N "(cached) $ECHO_C" >&6
34133 else
34134 @@ -7801,20 +8325,20 @@ esac
34135 fi
34136 MSGFMT="$ac_cv_path_MSGFMT"
34137 if test -n "$MSGFMT"; then
34138 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
34139 -echo "${ECHO_T}$MSGFMT" >&6
34140 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
34141 +echo "${ECHO_T}$MSGFMT" >&6; }
34142 else
34143 - echo "$as_me:$LINENO: result: no" >&5
34144 -echo "${ECHO_T}no" >&6
34145 + { echo "$as_me:$LINENO: result: no" >&5
34146 +echo "${ECHO_T}no" >&6; }
34147 fi
34148 if test "$MSGFMT" != "no"; then
34149
34150 for ac_func in dcgettext
34151 do
34152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34153 -echo "$as_me:$LINENO: checking for $ac_func" >&5
34154 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34155 -if eval "test \"\${$as_ac_var+set}\" = set"; then
34156 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34157 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34158 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34159 echo $ECHO_N "(cached) $ECHO_C" >&6
34160 else
34161 cat >conftest.$ac_ext <<_ACEOF
34162 @@ -7840,68 +8364,60 @@ cat >>conftest.$ac_ext <<_ACEOF
34163
34164 #undef $ac_func
34165
34166 -/* Override any gcc2 internal prototype to avoid an error. */
34167 +/* Override any GCC internal prototype to avoid an error.
34168 + Use char because int might match the return type of a GCC
34169 + builtin and then its argument prototype would still apply. */
34170 #ifdef __cplusplus
34171 extern "C"
34172 -{
34173 #endif
34174 -/* We use char because int might match the return type of a gcc2
34175 - builtin and then its argument prototype would still apply. */
34176 char $ac_func ();
34177 /* The GNU C library defines this for functions which it implements
34178 to always fail with ENOSYS. Some functions are actually named
34179 something starting with __ and the normal name is an alias. */
34180 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34181 +#if defined __stub_$ac_func || defined __stub___$ac_func
34182 choke me
34183 -#else
34184 -char (*f) () = $ac_func;
34185 -#endif
34186 -#ifdef __cplusplus
34187 -}
34188 #endif
34189
34190 int
34191 main ()
34192 {
34193 -return f != $ac_func;
34194 +return $ac_func ();
34195 ;
34196 return 0;
34197 }
34198 _ACEOF
34199 rm -f conftest.$ac_objext conftest$ac_exeext
34200 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34201 - (eval $ac_link) 2>conftest.er1
34202 +if { (ac_try="$ac_link"
34203 +case "(($ac_try" in
34204 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34205 + *) ac_try_echo=$ac_try;;
34206 +esac
34207 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34208 + (eval "$ac_link") 2>conftest.er1
34209 ac_status=$?
34210 grep -v '^ *+' conftest.er1 >conftest.err
34211 rm -f conftest.er1
34212 cat conftest.err >&5
34213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214 - (exit $ac_status); } &&
34215 - { ac_try='test -z "$ac_c_werror_flag"
34216 - || test ! -s conftest.err'
34217 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34218 - (eval $ac_try) 2>&5
34219 - ac_status=$?
34220 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221 - (exit $ac_status); }; } &&
34222 - { ac_try='test -s conftest$ac_exeext'
34223 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34224 - (eval $ac_try) 2>&5
34225 - ac_status=$?
34226 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227 - (exit $ac_status); }; }; then
34228 + (exit $ac_status); } && {
34229 + test -z "$ac_c_werror_flag" ||
34230 + test ! -s conftest.err
34231 + } && test -s conftest$ac_exeext &&
34232 + $as_test_x conftest$ac_exeext; then
34233 eval "$as_ac_var=yes"
34234 else
34235 echo "$as_me: failed program was:" >&5
34236 sed 's/^/| /' conftest.$ac_ext >&5
34237
34238 -eval "$as_ac_var=no"
34239 + eval "$as_ac_var=no"
34240 fi
34241 -rm -f conftest.err conftest.$ac_objext \
34242 +
34243 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34244 conftest$ac_exeext conftest.$ac_ext
34245 fi
34246 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34247 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34248 +ac_res=`eval echo '${'$as_ac_var'}'`
34249 + { echo "$as_me:$LINENO: result: $ac_res" >&5
34250 +echo "${ECHO_T}$ac_res" >&6; }
34251 if test `eval echo '${'$as_ac_var'}'` = yes; then
34252 cat >>confdefs.h <<_ACEOF
34253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34254 @@ -7912,8 +8428,8 @@ done
34255
34256 # Extract the first word of "gmsgfmt", so it can be a program name with args.
34257 set dummy gmsgfmt; ac_word=$2
34258 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34259 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34260 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34261 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34262 if test "${ac_cv_path_GMSGFMT+set}" = set; then
34263 echo $ECHO_N "(cached) $ECHO_C" >&6
34264 else
34265 @@ -7928,32 +8444,33 @@ do
34266 IFS=$as_save_IFS
34267 test -z "$as_dir" && as_dir=.
34268 for ac_exec_ext in '' $ac_executable_extensions; do
34269 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34270 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34271 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
34272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34273 break 2
34274 fi
34275 done
34276 done
34277 +IFS=$as_save_IFS
34278
34279 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
34280 ;;
34281 esac
34282 fi
34283 GMSGFMT=$ac_cv_path_GMSGFMT
34284 -
34285 if test -n "$GMSGFMT"; then
34286 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34287 -echo "${ECHO_T}$GMSGFMT" >&6
34288 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34289 +echo "${ECHO_T}$GMSGFMT" >&6; }
34290 else
34291 - echo "$as_me:$LINENO: result: no" >&5
34292 -echo "${ECHO_T}no" >&6
34293 + { echo "$as_me:$LINENO: result: no" >&5
34294 +echo "${ECHO_T}no" >&6; }
34295 fi
34296
34297 +
34298 # Extract the first word of "xgettext", so it can be a program name with args.
34299 set dummy xgettext; ac_word=$2
34300 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34301 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34302 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34303 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34304 if test "${ac_cv_path_XGETTEXT+set}" = set; then
34305 echo $ECHO_N "(cached) $ECHO_C" >&6
34306 else
34307 @@ -7979,11 +8496,11 @@ esac
34308 fi
34309 XGETTEXT="$ac_cv_path_XGETTEXT"
34310 if test -n "$XGETTEXT"; then
34311 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34312 -echo "${ECHO_T}$XGETTEXT" >&6
34313 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34314 +echo "${ECHO_T}$XGETTEXT" >&6; }
34315 else
34316 - echo "$as_me:$LINENO: result: no" >&5
34317 -echo "${ECHO_T}no" >&6
34318 + { echo "$as_me:$LINENO: result: no" >&5
34319 +echo "${ECHO_T}no" >&6; }
34320 fi
34321
34322 cat >conftest.$ac_ext <<_ACEOF
34323 @@ -8003,37 +8520,34 @@ extern int _nl_msg_cat_cntr;
34324 }
34325 _ACEOF
34326 rm -f conftest.$ac_objext conftest$ac_exeext
34327 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34328 - (eval $ac_link) 2>conftest.er1
34329 +if { (ac_try="$ac_link"
34330 +case "(($ac_try" in
34331 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34332 + *) ac_try_echo=$ac_try;;
34333 +esac
34334 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34335 + (eval "$ac_link") 2>conftest.er1
34336 ac_status=$?
34337 grep -v '^ *+' conftest.er1 >conftest.err
34338 rm -f conftest.er1
34339 cat conftest.err >&5
34340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 - (exit $ac_status); } &&
34342 - { ac_try='test -z "$ac_c_werror_flag"
34343 - || test ! -s conftest.err'
34344 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345 - (eval $ac_try) 2>&5
34346 - ac_status=$?
34347 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 - (exit $ac_status); }; } &&
34349 - { ac_try='test -s conftest$ac_exeext'
34350 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34351 - (eval $ac_try) 2>&5
34352 - ac_status=$?
34353 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 - (exit $ac_status); }; }; then
34355 + (exit $ac_status); } && {
34356 + test -z "$ac_c_werror_flag" ||
34357 + test ! -s conftest.err
34358 + } && test -s conftest$ac_exeext &&
34359 + $as_test_x conftest$ac_exeext; then
34360 CATOBJEXT=.gmo
34361 DATADIRNAME=share
34362 else
34363 echo "$as_me: failed program was:" >&5
34364 sed 's/^/| /' conftest.$ac_ext >&5
34365
34366 -CATOBJEXT=.mo
34367 + CATOBJEXT=.mo
34368 DATADIRNAME=lib
34369 fi
34370 -rm -f conftest.err conftest.$ac_objext \
34371 +
34372 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34373 conftest$ac_exeext conftest.$ac_ext
34374 INSTOBJEXT=.mo
34375 fi
34376 @@ -8055,8 +8569,8 @@ fi
34377 INTLOBJS="\$(GETTOBJS)"
34378 # Extract the first word of "msgfmt", so it can be a program name with args.
34379 set dummy msgfmt; ac_word=$2
34380 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34381 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34382 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34383 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34384 if test "${ac_cv_path_MSGFMT+set}" = set; then
34385 echo $ECHO_N "(cached) $ECHO_C" >&6
34386 else
34387 @@ -8082,17 +8596,17 @@ esac
34388 fi
34389 MSGFMT="$ac_cv_path_MSGFMT"
34390 if test -n "$MSGFMT"; then
34391 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
34392 -echo "${ECHO_T}$MSGFMT" >&6
34393 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
34394 +echo "${ECHO_T}$MSGFMT" >&6; }
34395 else
34396 - echo "$as_me:$LINENO: result: no" >&5
34397 -echo "${ECHO_T}no" >&6
34398 + { echo "$as_me:$LINENO: result: no" >&5
34399 +echo "${ECHO_T}no" >&6; }
34400 fi
34401
34402 # Extract the first word of "gmsgfmt", so it can be a program name with args.
34403 set dummy gmsgfmt; ac_word=$2
34404 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34405 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34406 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34407 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34408 if test "${ac_cv_path_GMSGFMT+set}" = set; then
34409 echo $ECHO_N "(cached) $ECHO_C" >&6
34410 else
34411 @@ -8107,32 +8621,33 @@ do
34412 IFS=$as_save_IFS
34413 test -z "$as_dir" && as_dir=.
34414 for ac_exec_ext in '' $ac_executable_extensions; do
34415 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34416 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34417 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
34418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34419 break 2
34420 fi
34421 done
34422 done
34423 +IFS=$as_save_IFS
34424
34425 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
34426 ;;
34427 esac
34428 fi
34429 GMSGFMT=$ac_cv_path_GMSGFMT
34430 -
34431 if test -n "$GMSGFMT"; then
34432 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34433 -echo "${ECHO_T}$GMSGFMT" >&6
34434 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34435 +echo "${ECHO_T}$GMSGFMT" >&6; }
34436 else
34437 - echo "$as_me:$LINENO: result: no" >&5
34438 -echo "${ECHO_T}no" >&6
34439 + { echo "$as_me:$LINENO: result: no" >&5
34440 +echo "${ECHO_T}no" >&6; }
34441 fi
34442
34443 +
34444 # Extract the first word of "xgettext", so it can be a program name with args.
34445 set dummy xgettext; ac_word=$2
34446 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34447 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34448 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34449 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34450 if test "${ac_cv_path_XGETTEXT+set}" = set; then
34451 echo $ECHO_N "(cached) $ECHO_C" >&6
34452 else
34453 @@ -8158,11 +8673,11 @@ esac
34454 fi
34455 XGETTEXT="$ac_cv_path_XGETTEXT"
34456 if test -n "$XGETTEXT"; then
34457 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34458 -echo "${ECHO_T}$XGETTEXT" >&6
34459 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34460 +echo "${ECHO_T}$XGETTEXT" >&6; }
34461 else
34462 - echo "$as_me:$LINENO: result: no" >&5
34463 -echo "${ECHO_T}no" >&6
34464 + { echo "$as_me:$LINENO: result: no" >&5
34465 +echo "${ECHO_T}no" >&6; }
34466 fi
34467
34468
34469 @@ -8181,8 +8696,8 @@ fi
34470 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
34471 : ;
34472 else
34473 - echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
34474 -echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
34475 + { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
34476 +echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
34477 XGETTEXT=":"
34478 fi
34479 fi
34480 @@ -8231,8 +8746,8 @@ _ACEOF
34481 if test "x$ALL_LINGUAS" = "x"; then
34482 LINGUAS=
34483 else
34484 - echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
34485 -echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
34486 + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
34487 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
34488 NEW_LINGUAS=
34489 for lang in ${LINGUAS=$ALL_LINGUAS}; do
34490 case "$ALL_LINGUAS" in
34491 @@ -8240,8 +8755,8 @@ echo $ECHO_N "checking for catalogs to b
34492 esac
34493 done
34494 LINGUAS=$NEW_LINGUAS
34495 - echo "$as_me:$LINENO: result: $LINGUAS" >&5
34496 -echo "${ECHO_T}$LINGUAS" >&6
34497 + { echo "$as_me:$LINENO: result: $LINGUAS" >&5
34498 +echo "${ECHO_T}$LINGUAS" >&6; }
34499 fi
34500
34501 if test -n "$LINGUAS"; then
34502 @@ -8260,17 +8775,17 @@ echo "${ECHO_T}$LINGUAS" >&6
34503 if test -f $srcdir/po2tbl.sed.in; then
34504 if test "$CATOBJEXT" = ".cat"; then
34505 if test "${ac_cv_header_linux_version_h+set}" = set; then
34506 - echo "$as_me:$LINENO: checking for linux/version.h" >&5
34507 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
34508 + { echo "$as_me:$LINENO: checking for linux/version.h" >&5
34509 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
34510 if test "${ac_cv_header_linux_version_h+set}" = set; then
34511 echo $ECHO_N "(cached) $ECHO_C" >&6
34512 fi
34513 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34514 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
34515 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34516 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
34517 else
34518 # Is the header compilable?
34519 -echo "$as_me:$LINENO: checking linux/version.h usability" >&5
34520 -echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
34521 +{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
34522 +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
34523 cat >conftest.$ac_ext <<_ACEOF
34524 /* confdefs.h. */
34525 _ACEOF
34526 @@ -8281,41 +8796,37 @@ $ac_includes_default
34527 #include <linux/version.h>
34528 _ACEOF
34529 rm -f conftest.$ac_objext
34530 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34531 - (eval $ac_compile) 2>conftest.er1
34532 +if { (ac_try="$ac_compile"
34533 +case "(($ac_try" in
34534 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34535 + *) ac_try_echo=$ac_try;;
34536 +esac
34537 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34538 + (eval "$ac_compile") 2>conftest.er1
34539 ac_status=$?
34540 grep -v '^ *+' conftest.er1 >conftest.err
34541 rm -f conftest.er1
34542 cat conftest.err >&5
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 - (exit $ac_status); } &&
34545 - { ac_try='test -z "$ac_c_werror_flag"
34546 - || test ! -s conftest.err'
34547 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34548 - (eval $ac_try) 2>&5
34549 - ac_status=$?
34550 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 - (exit $ac_status); }; } &&
34552 - { ac_try='test -s conftest.$ac_objext'
34553 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34554 - (eval $ac_try) 2>&5
34555 - ac_status=$?
34556 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34557 - (exit $ac_status); }; }; then
34558 + (exit $ac_status); } && {
34559 + test -z "$ac_c_werror_flag" ||
34560 + test ! -s conftest.err
34561 + } && test -s conftest.$ac_objext; then
34562 ac_header_compiler=yes
34563 else
34564 echo "$as_me: failed program was:" >&5
34565 sed 's/^/| /' conftest.$ac_ext >&5
34566
34567 -ac_header_compiler=no
34568 + ac_header_compiler=no
34569 fi
34570 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34571 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34572 -echo "${ECHO_T}$ac_header_compiler" >&6
34573 +
34574 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34575 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34576 +echo "${ECHO_T}$ac_header_compiler" >&6; }
34577
34578 # Is the header present?
34579 -echo "$as_me:$LINENO: checking linux/version.h presence" >&5
34580 -echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
34581 +{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
34582 +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
34583 cat >conftest.$ac_ext <<_ACEOF
34584 /* confdefs.h. */
34585 _ACEOF
34586 @@ -8324,24 +8835,22 @@ cat >>conftest.$ac_ext <<_ACEOF
34587 /* end confdefs.h. */
34588 #include <linux/version.h>
34589 _ACEOF
34590 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34591 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34592 +if { (ac_try="$ac_cpp conftest.$ac_ext"
34593 +case "(($ac_try" in
34594 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34595 + *) ac_try_echo=$ac_try;;
34596 +esac
34597 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34598 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34599 ac_status=$?
34600 grep -v '^ *+' conftest.er1 >conftest.err
34601 rm -f conftest.er1
34602 cat conftest.err >&5
34603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34604 - (exit $ac_status); } >/dev/null; then
34605 - if test -s conftest.err; then
34606 - ac_cpp_err=$ac_c_preproc_warn_flag
34607 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34608 - else
34609 - ac_cpp_err=
34610 - fi
34611 -else
34612 - ac_cpp_err=yes
34613 -fi
34614 -if test -z "$ac_cpp_err"; then
34615 + (exit $ac_status); } >/dev/null && {
34616 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34617 + test ! -s conftest.err
34618 + }; then
34619 ac_header_preproc=yes
34620 else
34621 echo "$as_me: failed program was:" >&5
34622 @@ -8349,9 +8858,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
34623
34624 ac_header_preproc=no
34625 fi
34626 +
34627 rm -f conftest.err conftest.$ac_ext
34628 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34629 -echo "${ECHO_T}$ac_header_preproc" >&6
34630 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34631 +echo "${ECHO_T}$ac_header_preproc" >&6; }
34632
34633 # So? What about this header?
34634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34635 @@ -8375,25 +8885,18 @@ echo "$as_me: WARNING: linux/version.h:
34636 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
34637 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
34638 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
34639 - (
34640 - cat <<\_ASBOX
34641 -## ------------------------------------------ ##
34642 -## Report this to the AC_PACKAGE_NAME lists. ##
34643 -## ------------------------------------------ ##
34644 -_ASBOX
34645 - ) |
34646 - sed "s/^/$as_me: WARNING: /" >&2
34647 +
34648 ;;
34649 esac
34650 -echo "$as_me:$LINENO: checking for linux/version.h" >&5
34651 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
34652 +{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
34653 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
34654 if test "${ac_cv_header_linux_version_h+set}" = set; then
34655 echo $ECHO_N "(cached) $ECHO_C" >&6
34656 else
34657 ac_cv_header_linux_version_h=$ac_header_preproc
34658 fi
34659 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34660 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
34661 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34662 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
34663
34664 fi
34665 if test $ac_cv_header_linux_version_h = yes; then
34666 @@ -8443,17 +8946,17 @@ fi
34667 fi
34668
34669
34670 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
34671 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
34672 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
34673 +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
34674 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
34675 + # Check whether --enable-maintainer-mode was given.
34676 if test "${enable_maintainer_mode+set}" = set; then
34677 - enableval="$enable_maintainer_mode"
34678 - USE_MAINTAINER_MODE=$enableval
34679 + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
34680 else
34681 USE_MAINTAINER_MODE=no
34682 -fi;
34683 - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
34684 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
34685 +fi
34686 +
34687 + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
34688 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
34689
34690
34691 if test $USE_MAINTAINER_MODE = yes; then
34692 @@ -8493,8 +8996,8 @@ AR=${AR-ar}
34693 if test -n "$ac_tool_prefix"; then
34694 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34695 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34696 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34697 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34698 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34699 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34700 if test "${ac_cv_prog_RANLIB+set}" = set; then
34701 echo $ECHO_N "(cached) $ECHO_C" >&6
34702 else
34703 @@ -8507,32 +9010,34 @@ do
34704 IFS=$as_save_IFS
34705 test -z "$as_dir" && as_dir=.
34706 for ac_exec_ext in '' $ac_executable_extensions; do
34707 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34708 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34709 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34711 break 2
34712 fi
34713 done
34714 done
34715 +IFS=$as_save_IFS
34716
34717 fi
34718 fi
34719 RANLIB=$ac_cv_prog_RANLIB
34720 if test -n "$RANLIB"; then
34721 - echo "$as_me:$LINENO: result: $RANLIB" >&5
34722 -echo "${ECHO_T}$RANLIB" >&6
34723 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
34724 +echo "${ECHO_T}$RANLIB" >&6; }
34725 else
34726 - echo "$as_me:$LINENO: result: no" >&5
34727 -echo "${ECHO_T}no" >&6
34728 + { echo "$as_me:$LINENO: result: no" >&5
34729 +echo "${ECHO_T}no" >&6; }
34730 fi
34731
34732 +
34733 fi
34734 if test -z "$ac_cv_prog_RANLIB"; then
34735 ac_ct_RANLIB=$RANLIB
34736 # Extract the first word of "ranlib", so it can be a program name with args.
34737 set dummy ranlib; ac_word=$2
34738 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34739 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34740 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34741 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34742 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34743 echo $ECHO_N "(cached) $ECHO_C" >&6
34744 else
34745 @@ -8545,27 +9050,41 @@ do
34746 IFS=$as_save_IFS
34747 test -z "$as_dir" && as_dir=.
34748 for ac_exec_ext in '' $ac_executable_extensions; do
34749 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34750 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34751 ac_cv_prog_ac_ct_RANLIB="ranlib"
34752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34753 break 2
34754 fi
34755 done
34756 done
34757 +IFS=$as_save_IFS
34758
34759 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34760 fi
34761 fi
34762 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34763 if test -n "$ac_ct_RANLIB"; then
34764 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34765 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
34766 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34767 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
34768 else
34769 - echo "$as_me:$LINENO: result: no" >&5
34770 -echo "${ECHO_T}no" >&6
34771 + { echo "$as_me:$LINENO: result: no" >&5
34772 +echo "${ECHO_T}no" >&6; }
34773 fi
34774
34775 - RANLIB=$ac_ct_RANLIB
34776 + if test "x$ac_ct_RANLIB" = x; then
34777 + RANLIB=":"
34778 + else
34779 + case $cross_compiling:$ac_tool_warned in
34780 +yes:)
34781 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34782 +whose name does not start with the host triplet. If you think this
34783 +configuration is useful to you, please write to autoconf@gnu.org." >&5
34784 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34785 +whose name does not start with the host triplet. If you think this
34786 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34787 +ac_tool_warned=yes ;;
34788 +esac
34789 + RANLIB=$ac_ct_RANLIB
34790 + fi
34791 else
34792 RANLIB="$ac_cv_prog_RANLIB"
34793 fi
34794 @@ -8583,8 +9102,8 @@ fi
34795 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34796 # OS/2's system install, which has a completely different semantic
34797 # ./install, which can be erroneously created by make from ./install.sh.
34798 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34799 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
34800 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34801 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
34802 if test -z "$INSTALL"; then
34803 if test "${ac_cv_path_install+set}" = set; then
34804 echo $ECHO_N "(cached) $ECHO_C" >&6
34805 @@ -8606,7 +9125,7 @@ case $as_dir/ in
34806 # by default.
34807 for ac_prog in ginstall scoinst install; do
34808 for ac_exec_ext in '' $ac_executable_extensions; do
34809 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34810 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
34811 if test $ac_prog = install &&
34812 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34813 # AIX install. It has an incompatible calling convention.
34814 @@ -8625,21 +9144,22 @@ case $as_dir/ in
34815 ;;
34816 esac
34817 done
34818 +IFS=$as_save_IFS
34819
34820
34821 fi
34822 if test "${ac_cv_path_install+set}" = set; then
34823 INSTALL=$ac_cv_path_install
34824 else
34825 - # As a last resort, use the slow shell script. We don't cache a
34826 - # path for INSTALL within a source directory, because that will
34827 + # As a last resort, use the slow shell script. Don't cache a
34828 + # value for INSTALL within a source directory, because that will
34829 # break other packages using the cache if that directory is
34830 - # removed, or if the path is relative.
34831 + # removed, or if the value is a relative name.
34832 INSTALL=$ac_install_sh
34833 fi
34834 fi
34835 -echo "$as_me:$LINENO: result: $INSTALL" >&5
34836 -echo "${ECHO_T}$INSTALL" >&6
34837 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
34838 +echo "${ECHO_T}$INSTALL" >&6; }
34839
34840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34841 # It thinks the first close brace ends the variable substitution.
34842 @@ -8663,8 +9183,8 @@ fi
34843 if test "x$cross_compiling" = "xno"; then
34844 EXEEXT_FOR_BUILD='$(EXEEXT)'
34845 else
34846 - echo "$as_me:$LINENO: checking for build system executable suffix" >&5
34847 -echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
34848 + { echo "$as_me:$LINENO: checking for build system executable suffix" >&5
34849 +echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6; }
34850 if test "${bfd_cv_build_exeext+set}" = set; then
34851 echo $ECHO_N "(cached) $ECHO_C" >&6
34852 else
34853 @@ -8681,8 +9201,8 @@ else
34854 rm -f conftest*
34855 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
34856 fi
34857 -echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
34858 -echo "${ECHO_T}$bfd_cv_build_exeext" >&6
34859 +{ echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
34860 +echo "${ECHO_T}$bfd_cv_build_exeext" >&6; }
34861 EXEEXT_FOR_BUILD=""
34862 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
34863 fi
34864 @@ -8704,18 +9224,19 @@ esac
34865 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
34866 do
34867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34868 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
34869 - echo "$as_me:$LINENO: checking for $ac_header" >&5
34870 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34871 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
34872 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34873 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
34874 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34875 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34876 echo $ECHO_N "(cached) $ECHO_C" >&6
34877 fi
34878 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34879 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34880 +ac_res=`eval echo '${'$as_ac_Header'}'`
34881 + { echo "$as_me:$LINENO: result: $ac_res" >&5
34882 +echo "${ECHO_T}$ac_res" >&6; }
34883 else
34884 # Is the header compilable?
34885 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
34886 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34887 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34888 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34889 cat >conftest.$ac_ext <<_ACEOF
34890 /* confdefs.h. */
34891 _ACEOF
34892 @@ -8726,41 +9247,37 @@ $ac_includes_default
34893 #include <$ac_header>
34894 _ACEOF
34895 rm -f conftest.$ac_objext
34896 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34897 - (eval $ac_compile) 2>conftest.er1
34898 +if { (ac_try="$ac_compile"
34899 +case "(($ac_try" in
34900 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34901 + *) ac_try_echo=$ac_try;;
34902 +esac
34903 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34904 + (eval "$ac_compile") 2>conftest.er1
34905 ac_status=$?
34906 grep -v '^ *+' conftest.er1 >conftest.err
34907 rm -f conftest.er1
34908 cat conftest.err >&5
34909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34910 - (exit $ac_status); } &&
34911 - { ac_try='test -z "$ac_c_werror_flag"
34912 - || test ! -s conftest.err'
34913 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34914 - (eval $ac_try) 2>&5
34915 - ac_status=$?
34916 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 - (exit $ac_status); }; } &&
34918 - { ac_try='test -s conftest.$ac_objext'
34919 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34920 - (eval $ac_try) 2>&5
34921 - ac_status=$?
34922 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 - (exit $ac_status); }; }; then
34924 + (exit $ac_status); } && {
34925 + test -z "$ac_c_werror_flag" ||
34926 + test ! -s conftest.err
34927 + } && test -s conftest.$ac_objext; then
34928 ac_header_compiler=yes
34929 else
34930 echo "$as_me: failed program was:" >&5
34931 sed 's/^/| /' conftest.$ac_ext >&5
34932
34933 -ac_header_compiler=no
34934 + ac_header_compiler=no
34935 fi
34936 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34937 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34938 -echo "${ECHO_T}$ac_header_compiler" >&6
34939 +
34940 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34941 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34942 +echo "${ECHO_T}$ac_header_compiler" >&6; }
34943
34944 # Is the header present?
34945 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
34946 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34947 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34948 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34949 cat >conftest.$ac_ext <<_ACEOF
34950 /* confdefs.h. */
34951 _ACEOF
34952 @@ -8769,24 +9286,22 @@ cat >>conftest.$ac_ext <<_ACEOF
34953 /* end confdefs.h. */
34954 #include <$ac_header>
34955 _ACEOF
34956 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34957 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34958 +if { (ac_try="$ac_cpp conftest.$ac_ext"
34959 +case "(($ac_try" in
34960 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34961 + *) ac_try_echo=$ac_try;;
34962 +esac
34963 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34964 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34965 ac_status=$?
34966 grep -v '^ *+' conftest.er1 >conftest.err
34967 rm -f conftest.er1
34968 cat conftest.err >&5
34969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970 - (exit $ac_status); } >/dev/null; then
34971 - if test -s conftest.err; then
34972 - ac_cpp_err=$ac_c_preproc_warn_flag
34973 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34974 - else
34975 - ac_cpp_err=
34976 - fi
34977 -else
34978 - ac_cpp_err=yes
34979 -fi
34980 -if test -z "$ac_cpp_err"; then
34981 + (exit $ac_status); } >/dev/null && {
34982 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34983 + test ! -s conftest.err
34984 + }; then
34985 ac_header_preproc=yes
34986 else
34987 echo "$as_me: failed program was:" >&5
34988 @@ -8794,9 +9309,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
34989
34990 ac_header_preproc=no
34991 fi
34992 +
34993 rm -f conftest.err conftest.$ac_ext
34994 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34995 -echo "${ECHO_T}$ac_header_preproc" >&6
34996 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34997 +echo "${ECHO_T}$ac_header_preproc" >&6; }
34998
34999 # So? What about this header?
35000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35001 @@ -8820,25 +9336,19 @@ echo "$as_me: WARNING: $ac_header: s
35002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35005 - (
35006 - cat <<\_ASBOX
35007 -## ------------------------------------------ ##
35008 -## Report this to the AC_PACKAGE_NAME lists. ##
35009 -## ------------------------------------------ ##
35010 -_ASBOX
35011 - ) |
35012 - sed "s/^/$as_me: WARNING: /" >&2
35013 +
35014 ;;
35015 esac
35016 -echo "$as_me:$LINENO: checking for $ac_header" >&5
35017 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35018 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
35019 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35020 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35021 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35022 echo $ECHO_N "(cached) $ECHO_C" >&6
35023 else
35024 eval "$as_ac_Header=\$ac_header_preproc"
35025 fi
35026 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35027 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35028 +ac_res=`eval echo '${'$as_ac_Header'}'`
35029 + { echo "$as_me:$LINENO: result: $ac_res" >&5
35030 +echo "${ECHO_T}$ac_res" >&6; }
35031
35032 fi
35033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35034 @@ -8850,8 +9360,8 @@ fi
35035
35036 done
35037
35038 -echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
35039 -echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
35040 +{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
35041 +echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
35042 if test "${ac_cv_header_sys_wait_h+set}" = set; then
35043 echo $ECHO_N "(cached) $ECHO_C" >&6
35044 else
35045 @@ -8864,7 +9374,7 @@ cat >>conftest.$ac_ext <<_ACEOF
35046 #include <sys/types.h>
35047 #include <sys/wait.h>
35048 #ifndef WEXITSTATUS
35049 -# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
35050 +# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
35051 #endif
35052 #ifndef WIFEXITED
35053 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
35054 @@ -8881,38 +9391,34 @@ main ()
35055 }
35056 _ACEOF
35057 rm -f conftest.$ac_objext
35058 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35059 - (eval $ac_compile) 2>conftest.er1
35060 +if { (ac_try="$ac_compile"
35061 +case "(($ac_try" in
35062 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35063 + *) ac_try_echo=$ac_try;;
35064 +esac
35065 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35066 + (eval "$ac_compile") 2>conftest.er1
35067 ac_status=$?
35068 grep -v '^ *+' conftest.er1 >conftest.err
35069 rm -f conftest.er1
35070 cat conftest.err >&5
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 - (exit $ac_status); } &&
35073 - { ac_try='test -z "$ac_c_werror_flag"
35074 - || test ! -s conftest.err'
35075 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35076 - (eval $ac_try) 2>&5
35077 - ac_status=$?
35078 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079 - (exit $ac_status); }; } &&
35080 - { ac_try='test -s conftest.$ac_objext'
35081 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35082 - (eval $ac_try) 2>&5
35083 - ac_status=$?
35084 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085 - (exit $ac_status); }; }; then
35086 + (exit $ac_status); } && {
35087 + test -z "$ac_c_werror_flag" ||
35088 + test ! -s conftest.err
35089 + } && test -s conftest.$ac_objext; then
35090 ac_cv_header_sys_wait_h=yes
35091 else
35092 echo "$as_me: failed program was:" >&5
35093 sed 's/^/| /' conftest.$ac_ext >&5
35094
35095 -ac_cv_header_sys_wait_h=no
35096 + ac_cv_header_sys_wait_h=no
35097 fi
35098 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35099 +
35100 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35101 fi
35102 -echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
35103 -echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
35104 +{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
35105 +echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
35106 if test $ac_cv_header_sys_wait_h = yes; then
35107
35108 cat >>confdefs.h <<\_ACEOF
35109 @@ -8923,8 +9429,8 @@ fi
35110
35111 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
35112 # for constant arguments. Useless!
35113 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
35114 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
35115 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
35116 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
35117 if test "${ac_cv_working_alloca_h+set}" = set; then
35118 echo $ECHO_N "(cached) $ECHO_C" >&6
35119 else
35120 @@ -8939,44 +9445,42 @@ int
35121 main ()
35122 {
35123 char *p = (char *) alloca (2 * sizeof (int));
35124 + if (p) return 0;
35125 ;
35126 return 0;
35127 }
35128 _ACEOF
35129 rm -f conftest.$ac_objext conftest$ac_exeext
35130 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35131 - (eval $ac_link) 2>conftest.er1
35132 +if { (ac_try="$ac_link"
35133 +case "(($ac_try" in
35134 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35135 + *) ac_try_echo=$ac_try;;
35136 +esac
35137 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35138 + (eval "$ac_link") 2>conftest.er1
35139 ac_status=$?
35140 grep -v '^ *+' conftest.er1 >conftest.err
35141 rm -f conftest.er1
35142 cat conftest.err >&5
35143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144 - (exit $ac_status); } &&
35145 - { ac_try='test -z "$ac_c_werror_flag"
35146 - || test ! -s conftest.err'
35147 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35148 - (eval $ac_try) 2>&5
35149 - ac_status=$?
35150 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151 - (exit $ac_status); }; } &&
35152 - { ac_try='test -s conftest$ac_exeext'
35153 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154 - (eval $ac_try) 2>&5
35155 - ac_status=$?
35156 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 - (exit $ac_status); }; }; then
35158 + (exit $ac_status); } && {
35159 + test -z "$ac_c_werror_flag" ||
35160 + test ! -s conftest.err
35161 + } && test -s conftest$ac_exeext &&
35162 + $as_test_x conftest$ac_exeext; then
35163 ac_cv_working_alloca_h=yes
35164 else
35165 echo "$as_me: failed program was:" >&5
35166 sed 's/^/| /' conftest.$ac_ext >&5
35167
35168 -ac_cv_working_alloca_h=no
35169 + ac_cv_working_alloca_h=no
35170 fi
35171 -rm -f conftest.err conftest.$ac_objext \
35172 +
35173 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35174 conftest$ac_exeext conftest.$ac_ext
35175 fi
35176 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
35177 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
35178 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
35179 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
35180 if test $ac_cv_working_alloca_h = yes; then
35181
35182 cat >>confdefs.h <<\_ACEOF
35183 @@ -8985,8 +9489,8 @@ _ACEOF
35184
35185 fi
35186
35187 -echo "$as_me:$LINENO: checking for alloca" >&5
35188 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
35189 +{ echo "$as_me:$LINENO: checking for alloca" >&5
35190 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
35191 if test "${ac_cv_func_alloca_works+set}" = set; then
35192 echo $ECHO_N "(cached) $ECHO_C" >&6
35193 else
35194 @@ -9003,7 +9507,7 @@ cat >>conftest.$ac_ext <<_ACEOF
35195 # include <malloc.h>
35196 # define alloca _alloca
35197 # else
35198 -# if HAVE_ALLOCA_H
35199 +# ifdef HAVE_ALLOCA_H
35200 # include <alloca.h>
35201 # else
35202 # ifdef _AIX
35203 @@ -9021,44 +9525,42 @@ int
35204 main ()
35205 {
35206 char *p = (char *) alloca (1);
35207 + if (p) return 0;
35208 ;
35209 return 0;
35210 }
35211 _ACEOF
35212 rm -f conftest.$ac_objext conftest$ac_exeext
35213 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35214 - (eval $ac_link) 2>conftest.er1
35215 +if { (ac_try="$ac_link"
35216 +case "(($ac_try" in
35217 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35218 + *) ac_try_echo=$ac_try;;
35219 +esac
35220 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35221 + (eval "$ac_link") 2>conftest.er1
35222 ac_status=$?
35223 grep -v '^ *+' conftest.er1 >conftest.err
35224 rm -f conftest.er1
35225 cat conftest.err >&5
35226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227 - (exit $ac_status); } &&
35228 - { ac_try='test -z "$ac_c_werror_flag"
35229 - || test ! -s conftest.err'
35230 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35231 - (eval $ac_try) 2>&5
35232 - ac_status=$?
35233 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234 - (exit $ac_status); }; } &&
35235 - { ac_try='test -s conftest$ac_exeext'
35236 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35237 - (eval $ac_try) 2>&5
35238 - ac_status=$?
35239 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 - (exit $ac_status); }; }; then
35241 + (exit $ac_status); } && {
35242 + test -z "$ac_c_werror_flag" ||
35243 + test ! -s conftest.err
35244 + } && test -s conftest$ac_exeext &&
35245 + $as_test_x conftest$ac_exeext; then
35246 ac_cv_func_alloca_works=yes
35247 else
35248 echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.$ac_ext >&5
35250
35251 -ac_cv_func_alloca_works=no
35252 + ac_cv_func_alloca_works=no
35253 fi
35254 -rm -f conftest.err conftest.$ac_objext \
35255 +
35256 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35257 conftest$ac_exeext conftest.$ac_ext
35258 fi
35259 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
35260 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
35261 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
35262 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
35263
35264 if test $ac_cv_func_alloca_works = yes; then
35265
35266 @@ -9072,15 +9574,15 @@ else
35267 # contain a buggy version. If you still want to use their alloca,
35268 # use ar to extract alloca.o from them instead of compiling alloca.c.
35269
35270 -ALLOCA=alloca.$ac_objext
35271 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
35272
35273 cat >>confdefs.h <<\_ACEOF
35274 #define C_ALLOCA 1
35275 _ACEOF
35276
35277
35278 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
35279 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
35280 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
35281 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
35282 if test "${ac_cv_os_cray+set}" = set; then
35283 echo $ECHO_N "(cached) $ECHO_C" >&6
35284 else
35285 @@ -9090,7 +9592,7 @@ _ACEOF
35286 cat confdefs.h >>conftest.$ac_ext
35287 cat >>conftest.$ac_ext <<_ACEOF
35288 /* end confdefs.h. */
35289 -#if defined(CRAY) && ! defined(CRAY2)
35290 +#if defined CRAY && ! defined CRAY2
35291 webecray
35292 #else
35293 wenotbecray
35294 @@ -9106,14 +9608,14 @@ fi
35295 rm -f conftest*
35296
35297 fi
35298 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
35299 -echo "${ECHO_T}$ac_cv_os_cray" >&6
35300 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
35301 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
35302 if test $ac_cv_os_cray = yes; then
35303 for ac_func in _getb67 GETB67 getb67; do
35304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35305 -echo "$as_me:$LINENO: checking for $ac_func" >&5
35306 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35307 -if eval "test \"\${$as_ac_var+set}\" = set"; then
35308 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35309 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35310 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35311 echo $ECHO_N "(cached) $ECHO_C" >&6
35312 else
35313 cat >conftest.$ac_ext <<_ACEOF
35314 @@ -9139,68 +9641,60 @@ cat >>conftest.$ac_ext <<_ACEOF
35315
35316 #undef $ac_func
35317
35318 -/* Override any gcc2 internal prototype to avoid an error. */
35319 +/* Override any GCC internal prototype to avoid an error.
35320 + Use char because int might match the return type of a GCC
35321 + builtin and then its argument prototype would still apply. */
35322 #ifdef __cplusplus
35323 extern "C"
35324 -{
35325 #endif
35326 -/* We use char because int might match the return type of a gcc2
35327 - builtin and then its argument prototype would still apply. */
35328 char $ac_func ();
35329 /* The GNU C library defines this for functions which it implements
35330 to always fail with ENOSYS. Some functions are actually named
35331 something starting with __ and the normal name is an alias. */
35332 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35333 +#if defined __stub_$ac_func || defined __stub___$ac_func
35334 choke me
35335 -#else
35336 -char (*f) () = $ac_func;
35337 -#endif
35338 -#ifdef __cplusplus
35339 -}
35340 #endif
35341
35342 int
35343 main ()
35344 {
35345 -return f != $ac_func;
35346 +return $ac_func ();
35347 ;
35348 return 0;
35349 }
35350 _ACEOF
35351 rm -f conftest.$ac_objext conftest$ac_exeext
35352 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35353 - (eval $ac_link) 2>conftest.er1
35354 +if { (ac_try="$ac_link"
35355 +case "(($ac_try" in
35356 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35357 + *) ac_try_echo=$ac_try;;
35358 +esac
35359 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35360 + (eval "$ac_link") 2>conftest.er1
35361 ac_status=$?
35362 grep -v '^ *+' conftest.er1 >conftest.err
35363 rm -f conftest.er1
35364 cat conftest.err >&5
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 - (exit $ac_status); } &&
35367 - { ac_try='test -z "$ac_c_werror_flag"
35368 - || test ! -s conftest.err'
35369 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35370 - (eval $ac_try) 2>&5
35371 - ac_status=$?
35372 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373 - (exit $ac_status); }; } &&
35374 - { ac_try='test -s conftest$ac_exeext'
35375 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35376 - (eval $ac_try) 2>&5
35377 - ac_status=$?
35378 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35379 - (exit $ac_status); }; }; then
35380 + (exit $ac_status); } && {
35381 + test -z "$ac_c_werror_flag" ||
35382 + test ! -s conftest.err
35383 + } && test -s conftest$ac_exeext &&
35384 + $as_test_x conftest$ac_exeext; then
35385 eval "$as_ac_var=yes"
35386 else
35387 echo "$as_me: failed program was:" >&5
35388 sed 's/^/| /' conftest.$ac_ext >&5
35389
35390 -eval "$as_ac_var=no"
35391 + eval "$as_ac_var=no"
35392 fi
35393 -rm -f conftest.err conftest.$ac_objext \
35394 +
35395 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35396 conftest$ac_exeext conftest.$ac_ext
35397 fi
35398 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35399 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35400 +ac_res=`eval echo '${'$as_ac_var'}'`
35401 + { echo "$as_me:$LINENO: result: $ac_res" >&5
35402 +echo "${ECHO_T}$ac_res" >&6; }
35403 if test `eval echo '${'$as_ac_var'}'` = yes; then
35404
35405 cat >>confdefs.h <<_ACEOF
35406 @@ -9213,8 +9707,8 @@ fi
35407 done
35408 fi
35409
35410 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
35411 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
35412 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
35413 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
35414 if test "${ac_cv_c_stack_direction+set}" = set; then
35415 echo $ECHO_N "(cached) $ECHO_C" >&6
35416 else
35417 @@ -9227,6 +9721,7 @@ _ACEOF
35418 cat confdefs.h >>conftest.$ac_ext
35419 cat >>conftest.$ac_ext <<_ACEOF
35420 /* end confdefs.h. */
35421 +$ac_includes_default
35422 int
35423 find_stack_direction ()
35424 {
35425 @@ -9244,17 +9739,26 @@ find_stack_direction ()
35426 int
35427 main ()
35428 {
35429 - exit (find_stack_direction () < 0);
35430 + return find_stack_direction () < 0;
35431 }
35432 _ACEOF
35433 rm -f conftest$ac_exeext
35434 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35435 - (eval $ac_link) 2>&5
35436 +if { (ac_try="$ac_link"
35437 +case "(($ac_try" in
35438 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35439 + *) ac_try_echo=$ac_try;;
35440 +esac
35441 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35442 + (eval "$ac_link") 2>&5
35443 ac_status=$?
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35446 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35447 - (eval $ac_try) 2>&5
35448 + { (case "(($ac_try" in
35449 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35450 + *) ac_try_echo=$ac_try;;
35451 +esac
35452 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35453 + (eval "$ac_try") 2>&5
35454 ac_status=$?
35455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456 (exit $ac_status); }; }; then
35457 @@ -9267,11 +9771,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
35458 ( exit $ac_status )
35459 ac_cv_c_stack_direction=-1
35460 fi
35461 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35462 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35463 fi
35464 +
35465 +
35466 fi
35467 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
35468 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
35469 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
35470 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
35471
35472 cat >>confdefs.h <<_ACEOF
35473 #define STACK_DIRECTION $ac_cv_c_stack_direction
35474 @@ -9288,9 +9794,9 @@ fi
35475 for ac_func in sbrk utimes setmode getc_unlocked strcoll
35476 do
35477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35478 -echo "$as_me:$LINENO: checking for $ac_func" >&5
35479 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35480 -if eval "test \"\${$as_ac_var+set}\" = set"; then
35481 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35482 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35483 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35484 echo $ECHO_N "(cached) $ECHO_C" >&6
35485 else
35486 cat >conftest.$ac_ext <<_ACEOF
35487 @@ -9316,68 +9822,60 @@ cat >>conftest.$ac_ext <<_ACEOF
35488
35489 #undef $ac_func
35490
35491 -/* Override any gcc2 internal prototype to avoid an error. */
35492 +/* Override any GCC internal prototype to avoid an error.
35493 + Use char because int might match the return type of a GCC
35494 + builtin and then its argument prototype would still apply. */
35495 #ifdef __cplusplus
35496 extern "C"
35497 -{
35498 #endif
35499 -/* We use char because int might match the return type of a gcc2
35500 - builtin and then its argument prototype would still apply. */
35501 char $ac_func ();
35502 /* The GNU C library defines this for functions which it implements
35503 to always fail with ENOSYS. Some functions are actually named
35504 something starting with __ and the normal name is an alias. */
35505 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35506 +#if defined __stub_$ac_func || defined __stub___$ac_func
35507 choke me
35508 -#else
35509 -char (*f) () = $ac_func;
35510 -#endif
35511 -#ifdef __cplusplus
35512 -}
35513 #endif
35514
35515 int
35516 main ()
35517 {
35518 -return f != $ac_func;
35519 +return $ac_func ();
35520 ;
35521 return 0;
35522 }
35523 _ACEOF
35524 rm -f conftest.$ac_objext conftest$ac_exeext
35525 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35526 - (eval $ac_link) 2>conftest.er1
35527 +if { (ac_try="$ac_link"
35528 +case "(($ac_try" in
35529 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35530 + *) ac_try_echo=$ac_try;;
35531 +esac
35532 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35533 + (eval "$ac_link") 2>conftest.er1
35534 ac_status=$?
35535 grep -v '^ *+' conftest.er1 >conftest.err
35536 rm -f conftest.er1
35537 cat conftest.err >&5
35538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539 - (exit $ac_status); } &&
35540 - { ac_try='test -z "$ac_c_werror_flag"
35541 - || test ! -s conftest.err'
35542 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35543 - (eval $ac_try) 2>&5
35544 - ac_status=$?
35545 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546 - (exit $ac_status); }; } &&
35547 - { ac_try='test -s conftest$ac_exeext'
35548 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35549 - (eval $ac_try) 2>&5
35550 - ac_status=$?
35551 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552 - (exit $ac_status); }; }; then
35553 + (exit $ac_status); } && {
35554 + test -z "$ac_c_werror_flag" ||
35555 + test ! -s conftest.err
35556 + } && test -s conftest$ac_exeext &&
35557 + $as_test_x conftest$ac_exeext; then
35558 eval "$as_ac_var=yes"
35559 else
35560 echo "$as_me: failed program was:" >&5
35561 sed 's/^/| /' conftest.$ac_ext >&5
35562
35563 -eval "$as_ac_var=no"
35564 + eval "$as_ac_var=no"
35565 fi
35566 -rm -f conftest.err conftest.$ac_objext \
35567 +
35568 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35569 conftest$ac_exeext conftest.$ac_ext
35570 fi
35571 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35572 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35573 +ac_res=`eval echo '${'$as_ac_var'}'`
35574 + { echo "$as_me:$LINENO: result: $ac_res" >&5
35575 +echo "${ECHO_T}$ac_res" >&6; }
35576 if test `eval echo '${'$as_ac_var'}'` = yes; then
35577 cat >>confdefs.h <<_ACEOF
35578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35579 @@ -9389,8 +9887,8 @@ done
35580
35581 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
35582 # needs to be defined for it
35583 -echo "$as_me:$LINENO: checking for fopen64" >&5
35584 -echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
35585 +{ echo "$as_me:$LINENO: checking for fopen64" >&5
35586 +echo $ECHO_N "checking for fopen64... $ECHO_C" >&6; }
35587 if test "${bu_cv_have_fopen64+set}" = set; then
35588 echo $ECHO_N "(cached) $ECHO_C" >&6
35589 else
35590 @@ -9410,33 +9908,29 @@ FILE *f = fopen64 ("/tmp/foo","r");
35591 }
35592 _ACEOF
35593 rm -f conftest.$ac_objext conftest$ac_exeext
35594 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35595 - (eval $ac_link) 2>conftest.er1
35596 +if { (ac_try="$ac_link"
35597 +case "(($ac_try" in
35598 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35599 + *) ac_try_echo=$ac_try;;
35600 +esac
35601 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35602 + (eval "$ac_link") 2>conftest.er1
35603 ac_status=$?
35604 grep -v '^ *+' conftest.er1 >conftest.err
35605 rm -f conftest.er1
35606 cat conftest.err >&5
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 - (exit $ac_status); } &&
35609 - { ac_try='test -z "$ac_c_werror_flag"
35610 - || test ! -s conftest.err'
35611 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35612 - (eval $ac_try) 2>&5
35613 - ac_status=$?
35614 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615 - (exit $ac_status); }; } &&
35616 - { ac_try='test -s conftest$ac_exeext'
35617 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35618 - (eval $ac_try) 2>&5
35619 - ac_status=$?
35620 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621 - (exit $ac_status); }; }; then
35622 + (exit $ac_status); } && {
35623 + test -z "$ac_c_werror_flag" ||
35624 + test ! -s conftest.err
35625 + } && test -s conftest$ac_exeext &&
35626 + $as_test_x conftest$ac_exeext; then
35627 bu_cv_have_fopen64=yes
35628 else
35629 echo "$as_me: failed program was:" >&5
35630 sed 's/^/| /' conftest.$ac_ext >&5
35631
35632 -saved_CPPFLAGS=$CPPFLAGS
35633 + saved_CPPFLAGS=$CPPFLAGS
35634 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35635 cat >conftest.$ac_ext <<_ACEOF
35636 /* confdefs.h. */
35637 @@ -9454,44 +9948,42 @@ FILE *f = fopen64 ("/tmp/foo","r");
35638 }
35639 _ACEOF
35640 rm -f conftest.$ac_objext conftest$ac_exeext
35641 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35642 - (eval $ac_link) 2>conftest.er1
35643 +if { (ac_try="$ac_link"
35644 +case "(($ac_try" in
35645 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35646 + *) ac_try_echo=$ac_try;;
35647 +esac
35648 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35649 + (eval "$ac_link") 2>conftest.er1
35650 ac_status=$?
35651 grep -v '^ *+' conftest.er1 >conftest.err
35652 rm -f conftest.er1
35653 cat conftest.err >&5
35654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655 - (exit $ac_status); } &&
35656 - { ac_try='test -z "$ac_c_werror_flag"
35657 - || test ! -s conftest.err'
35658 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35659 - (eval $ac_try) 2>&5
35660 - ac_status=$?
35661 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662 - (exit $ac_status); }; } &&
35663 - { ac_try='test -s conftest$ac_exeext'
35664 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35665 - (eval $ac_try) 2>&5
35666 - ac_status=$?
35667 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35668 - (exit $ac_status); }; }; then
35669 + (exit $ac_status); } && {
35670 + test -z "$ac_c_werror_flag" ||
35671 + test ! -s conftest.err
35672 + } && test -s conftest$ac_exeext &&
35673 + $as_test_x conftest$ac_exeext; then
35674 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
35675 else
35676 echo "$as_me: failed program was:" >&5
35677 sed 's/^/| /' conftest.$ac_ext >&5
35678
35679 -bu_cv_have_fopen64=no
35680 + bu_cv_have_fopen64=no
35681 fi
35682 -rm -f conftest.err conftest.$ac_objext \
35683 +
35684 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35685 conftest$ac_exeext conftest.$ac_ext
35686 CPPFLAGS=$saved_CPPFLAGS
35687 fi
35688 -rm -f conftest.err conftest.$ac_objext \
35689 +
35690 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35691 conftest$ac_exeext conftest.$ac_ext
35692 fi
35693
35694 -echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
35695 -echo "${ECHO_T}$bu_cv_have_fopen64" >&6
35696 +{ echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
35697 +echo "${ECHO_T}$bu_cv_have_fopen64" >&6; }
35698 if test "$bu_cv_have_fopen64" != no; then
35699
35700 cat >>confdefs.h <<\_ACEOF
35701 @@ -9499,8 +9991,8 @@ cat >>confdefs.h <<\_ACEOF
35702 _ACEOF
35703
35704 fi
35705 -echo "$as_me:$LINENO: checking for stat64" >&5
35706 -echo $ECHO_N "checking for stat64... $ECHO_C" >&6
35707 +{ echo "$as_me:$LINENO: checking for stat64" >&5
35708 +echo $ECHO_N "checking for stat64... $ECHO_C" >&6; }
35709 if test "${bu_cv_have_stat64+set}" = set; then
35710 echo $ECHO_N "(cached) $ECHO_C" >&6
35711 else
35712 @@ -9520,33 +10012,29 @@ struct stat64 st; stat64 ("/tmp/foo", &s
35713 }
35714 _ACEOF
35715 rm -f conftest.$ac_objext conftest$ac_exeext
35716 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35717 - (eval $ac_link) 2>conftest.er1
35718 +if { (ac_try="$ac_link"
35719 +case "(($ac_try" in
35720 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35721 + *) ac_try_echo=$ac_try;;
35722 +esac
35723 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35724 + (eval "$ac_link") 2>conftest.er1
35725 ac_status=$?
35726 grep -v '^ *+' conftest.er1 >conftest.err
35727 rm -f conftest.er1
35728 cat conftest.err >&5
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 - (exit $ac_status); } &&
35731 - { ac_try='test -z "$ac_c_werror_flag"
35732 - || test ! -s conftest.err'
35733 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35734 - (eval $ac_try) 2>&5
35735 - ac_status=$?
35736 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 - (exit $ac_status); }; } &&
35738 - { ac_try='test -s conftest$ac_exeext'
35739 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35740 - (eval $ac_try) 2>&5
35741 - ac_status=$?
35742 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 - (exit $ac_status); }; }; then
35744 + (exit $ac_status); } && {
35745 + test -z "$ac_c_werror_flag" ||
35746 + test ! -s conftest.err
35747 + } && test -s conftest$ac_exeext &&
35748 + $as_test_x conftest$ac_exeext; then
35749 bu_cv_have_stat64=yes
35750 else
35751 echo "$as_me: failed program was:" >&5
35752 sed 's/^/| /' conftest.$ac_ext >&5
35753
35754 -saved_CPPFLAGS=$CPPFLAGS
35755 + saved_CPPFLAGS=$CPPFLAGS
35756 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35757 cat >conftest.$ac_ext <<_ACEOF
35758 /* confdefs.h. */
35759 @@ -9564,191 +10052,146 @@ struct stat64 st; stat64 ("/tmp/foo", &s
35760 }
35761 _ACEOF
35762 rm -f conftest.$ac_objext conftest$ac_exeext
35763 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35764 - (eval $ac_link) 2>conftest.er1
35765 +if { (ac_try="$ac_link"
35766 +case "(($ac_try" in
35767 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35768 + *) ac_try_echo=$ac_try;;
35769 +esac
35770 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35771 + (eval "$ac_link") 2>conftest.er1
35772 ac_status=$?
35773 grep -v '^ *+' conftest.er1 >conftest.err
35774 rm -f conftest.er1
35775 cat conftest.err >&5
35776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777 - (exit $ac_status); } &&
35778 - { ac_try='test -z "$ac_c_werror_flag"
35779 - || test ! -s conftest.err'
35780 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35781 - (eval $ac_try) 2>&5
35782 - ac_status=$?
35783 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35784 - (exit $ac_status); }; } &&
35785 - { ac_try='test -s conftest$ac_exeext'
35786 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35787 - (eval $ac_try) 2>&5
35788 - ac_status=$?
35789 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35790 - (exit $ac_status); }; }; then
35791 + (exit $ac_status); } && {
35792 + test -z "$ac_c_werror_flag" ||
35793 + test ! -s conftest.err
35794 + } && test -s conftest$ac_exeext &&
35795 + $as_test_x conftest$ac_exeext; then
35796 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
35797 else
35798 echo "$as_me: failed program was:" >&5
35799 sed 's/^/| /' conftest.$ac_ext >&5
35800
35801 -bu_cv_have_stat64=no
35802 + bu_cv_have_stat64=no
35803 fi
35804 -rm -f conftest.err conftest.$ac_objext \
35805 +
35806 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35807 conftest$ac_exeext conftest.$ac_ext
35808 CPPFLAGS=$saved_CPPFLAGS
35809 fi
35810 -rm -f conftest.err conftest.$ac_objext \
35811 +
35812 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35813 conftest$ac_exeext conftest.$ac_ext
35814 fi
35815
35816 -echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
35817 -echo "${ECHO_T}$bu_cv_have_stat64" >&6
35818 +{ echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
35819 +echo "${ECHO_T}$bu_cv_have_stat64" >&6; }
35820 if test "$bu_cv_have_stat64" != no; then
35821
35822 cat >>confdefs.h <<\_ACEOF
35823 #define HAVE_STAT64 1
35824 _ACEOF
35825
35826 -fi
35827 -if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
35828 - || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
35829 -
35830 -cat >>confdefs.h <<\_ACEOF
35831 -#define _LARGEFILE64_SOURCE 1
35832 -_ACEOF
35833 -
35834 - CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35835 -fi
35836 -
35837 -# Some systems have frexp only in -lm, not in -lc.
35838 -echo "$as_me:$LINENO: checking for library containing frexp" >&5
35839 -echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
35840 -if test "${ac_cv_search_frexp+set}" = set; then
35841 - echo $ECHO_N "(cached) $ECHO_C" >&6
35842 -else
35843 - ac_func_search_save_LIBS=$LIBS
35844 -ac_cv_search_frexp=no
35845 -cat >conftest.$ac_ext <<_ACEOF
35846 -/* confdefs.h. */
35847 -_ACEOF
35848 -cat confdefs.h >>conftest.$ac_ext
35849 -cat >>conftest.$ac_ext <<_ACEOF
35850 -/* end confdefs.h. */
35851 -
35852 -/* Override any gcc2 internal prototype to avoid an error. */
35853 -#ifdef __cplusplus
35854 -extern "C"
35855 -#endif
35856 -/* We use char because int might match the return type of a gcc2
35857 - builtin and then its argument prototype would still apply. */
35858 -char frexp ();
35859 -int
35860 -main ()
35861 -{
35862 -frexp ();
35863 - ;
35864 - return 0;
35865 -}
35866 -_ACEOF
35867 -rm -f conftest.$ac_objext conftest$ac_exeext
35868 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35869 - (eval $ac_link) 2>conftest.er1
35870 - ac_status=$?
35871 - grep -v '^ *+' conftest.er1 >conftest.err
35872 - rm -f conftest.er1
35873 - cat conftest.err >&5
35874 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875 - (exit $ac_status); } &&
35876 - { ac_try='test -z "$ac_c_werror_flag"
35877 - || test ! -s conftest.err'
35878 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35879 - (eval $ac_try) 2>&5
35880 - ac_status=$?
35881 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882 - (exit $ac_status); }; } &&
35883 - { ac_try='test -s conftest$ac_exeext'
35884 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35885 - (eval $ac_try) 2>&5
35886 - ac_status=$?
35887 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888 - (exit $ac_status); }; }; then
35889 - ac_cv_search_frexp="none required"
35890 -else
35891 - echo "$as_me: failed program was:" >&5
35892 -sed 's/^/| /' conftest.$ac_ext >&5
35893 +fi
35894 +if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
35895 + || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
35896 +
35897 +cat >>confdefs.h <<\_ACEOF
35898 +#define _LARGEFILE64_SOURCE 1
35899 +_ACEOF
35900
35901 + CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35902 fi
35903 -rm -f conftest.err conftest.$ac_objext \
35904 - conftest$ac_exeext conftest.$ac_ext
35905 -if test "$ac_cv_search_frexp" = no; then
35906 - for ac_lib in m; do
35907 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35908 - cat >conftest.$ac_ext <<_ACEOF
35909 +
35910 +# Some systems have frexp only in -lm, not in -lc.
35911 +{ echo "$as_me:$LINENO: checking for library containing frexp" >&5
35912 +echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6; }
35913 +if test "${ac_cv_search_frexp+set}" = set; then
35914 + echo $ECHO_N "(cached) $ECHO_C" >&6
35915 +else
35916 + ac_func_search_save_LIBS=$LIBS
35917 +cat >conftest.$ac_ext <<_ACEOF
35918 /* confdefs.h. */
35919 _ACEOF
35920 cat confdefs.h >>conftest.$ac_ext
35921 cat >>conftest.$ac_ext <<_ACEOF
35922 /* end confdefs.h. */
35923
35924 -/* Override any gcc2 internal prototype to avoid an error. */
35925 +/* Override any GCC internal prototype to avoid an error.
35926 + Use char because int might match the return type of a GCC
35927 + builtin and then its argument prototype would still apply. */
35928 #ifdef __cplusplus
35929 extern "C"
35930 #endif
35931 -/* We use char because int might match the return type of a gcc2
35932 - builtin and then its argument prototype would still apply. */
35933 char frexp ();
35934 int
35935 main ()
35936 {
35937 -frexp ();
35938 +return frexp ();
35939 ;
35940 return 0;
35941 }
35942 _ACEOF
35943 -rm -f conftest.$ac_objext conftest$ac_exeext
35944 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35945 - (eval $ac_link) 2>conftest.er1
35946 +for ac_lib in '' m; do
35947 + if test -z "$ac_lib"; then
35948 + ac_res="none required"
35949 + else
35950 + ac_res=-l$ac_lib
35951 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35952 + fi
35953 + rm -f conftest.$ac_objext conftest$ac_exeext
35954 +if { (ac_try="$ac_link"
35955 +case "(($ac_try" in
35956 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35957 + *) ac_try_echo=$ac_try;;
35958 +esac
35959 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35960 + (eval "$ac_link") 2>conftest.er1
35961 ac_status=$?
35962 grep -v '^ *+' conftest.er1 >conftest.err
35963 rm -f conftest.er1
35964 cat conftest.err >&5
35965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35966 - (exit $ac_status); } &&
35967 - { ac_try='test -z "$ac_c_werror_flag"
35968 - || test ! -s conftest.err'
35969 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35970 - (eval $ac_try) 2>&5
35971 - ac_status=$?
35972 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973 - (exit $ac_status); }; } &&
35974 - { ac_try='test -s conftest$ac_exeext'
35975 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35976 - (eval $ac_try) 2>&5
35977 - ac_status=$?
35978 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 - (exit $ac_status); }; }; then
35980 - ac_cv_search_frexp="-l$ac_lib"
35981 -break
35982 + (exit $ac_status); } && {
35983 + test -z "$ac_c_werror_flag" ||
35984 + test ! -s conftest.err
35985 + } && test -s conftest$ac_exeext &&
35986 + $as_test_x conftest$ac_exeext; then
35987 + ac_cv_search_frexp=$ac_res
35988 else
35989 echo "$as_me: failed program was:" >&5
35990 sed 's/^/| /' conftest.$ac_ext >&5
35991
35992 +
35993 fi
35994 -rm -f conftest.err conftest.$ac_objext \
35995 - conftest$ac_exeext conftest.$ac_ext
35996 - done
35997 +
35998 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35999 + conftest$ac_exeext
36000 + if test "${ac_cv_search_frexp+set}" = set; then
36001 + break
36002 +fi
36003 +done
36004 +if test "${ac_cv_search_frexp+set}" = set; then
36005 + :
36006 +else
36007 + ac_cv_search_frexp=no
36008 fi
36009 +rm conftest.$ac_ext
36010 LIBS=$ac_func_search_save_LIBS
36011 fi
36012 -echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
36013 -echo "${ECHO_T}$ac_cv_search_frexp" >&6
36014 -if test "$ac_cv_search_frexp" != no; then
36015 - test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
36016 +{ echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
36017 +echo "${ECHO_T}$ac_cv_search_frexp" >&6; }
36018 +ac_res=$ac_cv_search_frexp
36019 +if test "$ac_res" != no; then
36020 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36021
36022 fi
36023
36024
36025 -echo "$as_me:$LINENO: checking for time_t in time.h" >&5
36026 -echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
36027 +{ echo "$as_me:$LINENO: checking for time_t in time.h" >&5
36028 +echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6; }
36029 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
36030 echo $ECHO_N "(cached) $ECHO_C" >&6
36031 else
36032 @@ -9768,39 +10211,35 @@ time_t i;
36033 }
36034 _ACEOF
36035 rm -f conftest.$ac_objext
36036 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36037 - (eval $ac_compile) 2>conftest.er1
36038 +if { (ac_try="$ac_compile"
36039 +case "(($ac_try" in
36040 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36041 + *) ac_try_echo=$ac_try;;
36042 +esac
36043 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36044 + (eval "$ac_compile") 2>conftest.er1
36045 ac_status=$?
36046 grep -v '^ *+' conftest.er1 >conftest.err
36047 rm -f conftest.er1
36048 cat conftest.err >&5
36049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 - (exit $ac_status); } &&
36051 - { ac_try='test -z "$ac_c_werror_flag"
36052 - || test ! -s conftest.err'
36053 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36054 - (eval $ac_try) 2>&5
36055 - ac_status=$?
36056 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057 - (exit $ac_status); }; } &&
36058 - { ac_try='test -s conftest.$ac_objext'
36059 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36060 - (eval $ac_try) 2>&5
36061 - ac_status=$?
36062 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063 - (exit $ac_status); }; }; then
36064 + (exit $ac_status); } && {
36065 + test -z "$ac_c_werror_flag" ||
36066 + test ! -s conftest.err
36067 + } && test -s conftest.$ac_objext; then
36068 bu_cv_decl_time_t_time_h=yes
36069 else
36070 echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36072
36073 -bu_cv_decl_time_t_time_h=no
36074 + bu_cv_decl_time_t_time_h=no
36075 fi
36076 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36077 +
36078 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36079 fi
36080
36081 -echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
36082 -echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
36083 +{ echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
36084 +echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6; }
36085 if test $bu_cv_decl_time_t_time_h = yes; then
36086
36087 cat >>confdefs.h <<\_ACEOF
36088 @@ -9809,8 +10248,8 @@ _ACEOF
36089
36090 fi
36091
36092 -echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
36093 -echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
36094 +{ echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
36095 +echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6; }
36096 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
36097 echo $ECHO_N "(cached) $ECHO_C" >&6
36098 else
36099 @@ -9830,39 +10269,35 @@ time_t i;
36100 }
36101 _ACEOF
36102 rm -f conftest.$ac_objext
36103 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36104 - (eval $ac_compile) 2>conftest.er1
36105 +if { (ac_try="$ac_compile"
36106 +case "(($ac_try" in
36107 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36108 + *) ac_try_echo=$ac_try;;
36109 +esac
36110 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36111 + (eval "$ac_compile") 2>conftest.er1
36112 ac_status=$?
36113 grep -v '^ *+' conftest.er1 >conftest.err
36114 rm -f conftest.er1
36115 cat conftest.err >&5
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 - (exit $ac_status); } &&
36118 - { ac_try='test -z "$ac_c_werror_flag"
36119 - || test ! -s conftest.err'
36120 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36121 - (eval $ac_try) 2>&5
36122 - ac_status=$?
36123 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124 - (exit $ac_status); }; } &&
36125 - { ac_try='test -s conftest.$ac_objext'
36126 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36127 - (eval $ac_try) 2>&5
36128 - ac_status=$?
36129 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36130 - (exit $ac_status); }; }; then
36131 + (exit $ac_status); } && {
36132 + test -z "$ac_c_werror_flag" ||
36133 + test ! -s conftest.err
36134 + } && test -s conftest.$ac_objext; then
36135 bu_cv_decl_time_t_types_h=yes
36136 else
36137 echo "$as_me: failed program was:" >&5
36138 sed 's/^/| /' conftest.$ac_ext >&5
36139
36140 -bu_cv_decl_time_t_types_h=no
36141 + bu_cv_decl_time_t_types_h=no
36142 fi
36143 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36144 +
36145 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36146 fi
36147
36148 -echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
36149 -echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
36150 +{ echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
36151 +echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6; }
36152 if test $bu_cv_decl_time_t_types_h = yes; then
36153
36154 cat >>confdefs.h <<\_ACEOF
36155 @@ -9871,8 +10306,8 @@ _ACEOF
36156
36157 fi
36158
36159 -echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
36160 -echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
36161 +{ echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
36162 +echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6; }
36163 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
36164 echo $ECHO_N "(cached) $ECHO_C" >&6
36165 else
36166 @@ -9892,39 +10327,35 @@ extern int getopt (int, char *const*, co
36167 }
36168 _ACEOF
36169 rm -f conftest.$ac_objext
36170 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36171 - (eval $ac_compile) 2>conftest.er1
36172 +if { (ac_try="$ac_compile"
36173 +case "(($ac_try" in
36174 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36175 + *) ac_try_echo=$ac_try;;
36176 +esac
36177 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36178 + (eval "$ac_compile") 2>conftest.er1
36179 ac_status=$?
36180 grep -v '^ *+' conftest.er1 >conftest.err
36181 rm -f conftest.er1
36182 cat conftest.err >&5
36183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36184 - (exit $ac_status); } &&
36185 - { ac_try='test -z "$ac_c_werror_flag"
36186 - || test ! -s conftest.err'
36187 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36188 - (eval $ac_try) 2>&5
36189 - ac_status=$?
36190 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191 - (exit $ac_status); }; } &&
36192 - { ac_try='test -s conftest.$ac_objext'
36193 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36194 - (eval $ac_try) 2>&5
36195 - ac_status=$?
36196 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197 - (exit $ac_status); }; }; then
36198 + (exit $ac_status); } && {
36199 + test -z "$ac_c_werror_flag" ||
36200 + test ! -s conftest.err
36201 + } && test -s conftest.$ac_objext; then
36202 bu_cv_decl_getopt_unistd_h=yes
36203 else
36204 echo "$as_me: failed program was:" >&5
36205 sed 's/^/| /' conftest.$ac_ext >&5
36206
36207 -bu_cv_decl_getopt_unistd_h=no
36208 + bu_cv_decl_getopt_unistd_h=no
36209 fi
36210 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36211 +
36212 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36213 fi
36214
36215 -echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
36216 -echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
36217 +{ echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
36218 +echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6; }
36219 if test $bu_cv_decl_getopt_unistd_h = yes; then
36220
36221 cat >>confdefs.h <<\_ACEOF
36222 @@ -9935,8 +10366,8 @@ fi
36223
36224 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
36225 # by default.
36226 -echo "$as_me:$LINENO: checking for utime.h" >&5
36227 -echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
36228 +{ echo "$as_me:$LINENO: checking for utime.h" >&5
36229 +echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
36230 if test "${bu_cv_header_utime_h+set}" = set; then
36231 echo $ECHO_N "(cached) $ECHO_C" >&6
36232 else
36233 @@ -9960,39 +10391,35 @@ struct utimbuf s;
36234 }
36235 _ACEOF
36236 rm -f conftest.$ac_objext
36237 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36238 - (eval $ac_compile) 2>conftest.er1
36239 +if { (ac_try="$ac_compile"
36240 +case "(($ac_try" in
36241 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36242 + *) ac_try_echo=$ac_try;;
36243 +esac
36244 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36245 + (eval "$ac_compile") 2>conftest.er1
36246 ac_status=$?
36247 grep -v '^ *+' conftest.er1 >conftest.err
36248 rm -f conftest.er1
36249 cat conftest.err >&5
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 - (exit $ac_status); } &&
36252 - { ac_try='test -z "$ac_c_werror_flag"
36253 - || test ! -s conftest.err'
36254 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36255 - (eval $ac_try) 2>&5
36256 - ac_status=$?
36257 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258 - (exit $ac_status); }; } &&
36259 - { ac_try='test -s conftest.$ac_objext'
36260 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36261 - (eval $ac_try) 2>&5
36262 - ac_status=$?
36263 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36264 - (exit $ac_status); }; }; then
36265 + (exit $ac_status); } && {
36266 + test -z "$ac_c_werror_flag" ||
36267 + test ! -s conftest.err
36268 + } && test -s conftest.$ac_objext; then
36269 bu_cv_header_utime_h=yes
36270 else
36271 echo "$as_me: failed program was:" >&5
36272 sed 's/^/| /' conftest.$ac_ext >&5
36273
36274 -bu_cv_header_utime_h=no
36275 + bu_cv_header_utime_h=no
36276 fi
36277 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36278 +
36279 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36280 fi
36281
36282 -echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
36283 -echo "${ECHO_T}$bu_cv_header_utime_h" >&6
36284 +{ echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
36285 +echo "${ECHO_T}$bu_cv_header_utime_h" >&6; }
36286 if test $bu_cv_header_utime_h = yes; then
36287
36288 cat >>confdefs.h <<\_ACEOF
36289 @@ -10001,8 +10428,8 @@ _ACEOF
36290
36291 fi
36292
36293 -echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
36294 -echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
36295 +{ echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
36296 +echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6; }
36297 if test "${ac_cv_have_decl_fprintf+set}" = set; then
36298 echo $ECHO_N "(cached) $ECHO_C" >&6
36299 else
36300 @@ -10017,7 +10444,7 @@ int
36301 main ()
36302 {
36303 #ifndef fprintf
36304 - char *p = (char *) fprintf;
36305 + (void) fprintf;
36306 #endif
36307
36308 ;
36309 @@ -10025,38 +10452,34 @@ main ()
36310 }
36311 _ACEOF
36312 rm -f conftest.$ac_objext
36313 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36314 - (eval $ac_compile) 2>conftest.er1
36315 +if { (ac_try="$ac_compile"
36316 +case "(($ac_try" in
36317 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36318 + *) ac_try_echo=$ac_try;;
36319 +esac
36320 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36321 + (eval "$ac_compile") 2>conftest.er1
36322 ac_status=$?
36323 grep -v '^ *+' conftest.er1 >conftest.err
36324 rm -f conftest.er1
36325 cat conftest.err >&5
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 - (exit $ac_status); } &&
36328 - { ac_try='test -z "$ac_c_werror_flag"
36329 - || test ! -s conftest.err'
36330 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36331 - (eval $ac_try) 2>&5
36332 - ac_status=$?
36333 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36334 - (exit $ac_status); }; } &&
36335 - { ac_try='test -s conftest.$ac_objext'
36336 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36337 - (eval $ac_try) 2>&5
36338 - ac_status=$?
36339 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36340 - (exit $ac_status); }; }; then
36341 + (exit $ac_status); } && {
36342 + test -z "$ac_c_werror_flag" ||
36343 + test ! -s conftest.err
36344 + } && test -s conftest.$ac_objext; then
36345 ac_cv_have_decl_fprintf=yes
36346 else
36347 echo "$as_me: failed program was:" >&5
36348 sed 's/^/| /' conftest.$ac_ext >&5
36349
36350 -ac_cv_have_decl_fprintf=no
36351 + ac_cv_have_decl_fprintf=no
36352 fi
36353 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36354 +
36355 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36356 fi
36357 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
36358 -echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
36359 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
36360 +echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6; }
36361 if test $ac_cv_have_decl_fprintf = yes; then
36362
36363 cat >>confdefs.h <<_ACEOF
36364 @@ -10071,8 +10494,8 @@ _ACEOF
36365
36366
36367 fi
36368 -echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
36369 -echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
36370 +{ echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
36371 +echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
36372 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
36373 echo $ECHO_N "(cached) $ECHO_C" >&6
36374 else
36375 @@ -10087,7 +10510,7 @@ int
36376 main ()
36377 {
36378 #ifndef stpcpy
36379 - char *p = (char *) stpcpy;
36380 + (void) stpcpy;
36381 #endif
36382
36383 ;
36384 @@ -10095,38 +10518,34 @@ main ()
36385 }
36386 _ACEOF
36387 rm -f conftest.$ac_objext
36388 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36389 - (eval $ac_compile) 2>conftest.er1
36390 +if { (ac_try="$ac_compile"
36391 +case "(($ac_try" in
36392 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36393 + *) ac_try_echo=$ac_try;;
36394 +esac
36395 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36396 + (eval "$ac_compile") 2>conftest.er1
36397 ac_status=$?
36398 grep -v '^ *+' conftest.er1 >conftest.err
36399 rm -f conftest.er1
36400 cat conftest.err >&5
36401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36402 - (exit $ac_status); } &&
36403 - { ac_try='test -z "$ac_c_werror_flag"
36404 - || test ! -s conftest.err'
36405 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36406 - (eval $ac_try) 2>&5
36407 - ac_status=$?
36408 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409 - (exit $ac_status); }; } &&
36410 - { ac_try='test -s conftest.$ac_objext'
36411 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36412 - (eval $ac_try) 2>&5
36413 - ac_status=$?
36414 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 - (exit $ac_status); }; }; then
36416 + (exit $ac_status); } && {
36417 + test -z "$ac_c_werror_flag" ||
36418 + test ! -s conftest.err
36419 + } && test -s conftest.$ac_objext; then
36420 ac_cv_have_decl_stpcpy=yes
36421 else
36422 echo "$as_me: failed program was:" >&5
36423 sed 's/^/| /' conftest.$ac_ext >&5
36424
36425 -ac_cv_have_decl_stpcpy=no
36426 + ac_cv_have_decl_stpcpy=no
36427 fi
36428 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36429 +
36430 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36431 fi
36432 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
36433 -echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
36434 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
36435 +echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
36436 if test $ac_cv_have_decl_stpcpy = yes; then
36437
36438 cat >>confdefs.h <<_ACEOF
36439 @@ -10141,8 +10560,8 @@ _ACEOF
36440
36441
36442 fi
36443 -echo "$as_me:$LINENO: checking whether strstr is declared" >&5
36444 -echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
36445 +{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
36446 +echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
36447 if test "${ac_cv_have_decl_strstr+set}" = set; then
36448 echo $ECHO_N "(cached) $ECHO_C" >&6
36449 else
36450 @@ -10157,7 +10576,7 @@ int
36451 main ()
36452 {
36453 #ifndef strstr
36454 - char *p = (char *) strstr;
36455 + (void) strstr;
36456 #endif
36457
36458 ;
36459 @@ -10165,38 +10584,34 @@ main ()
36460 }
36461 _ACEOF
36462 rm -f conftest.$ac_objext
36463 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36464 - (eval $ac_compile) 2>conftest.er1
36465 +if { (ac_try="$ac_compile"
36466 +case "(($ac_try" in
36467 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36468 + *) ac_try_echo=$ac_try;;
36469 +esac
36470 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36471 + (eval "$ac_compile") 2>conftest.er1
36472 ac_status=$?
36473 grep -v '^ *+' conftest.er1 >conftest.err
36474 rm -f conftest.er1
36475 cat conftest.err >&5
36476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477 - (exit $ac_status); } &&
36478 - { ac_try='test -z "$ac_c_werror_flag"
36479 - || test ! -s conftest.err'
36480 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36481 - (eval $ac_try) 2>&5
36482 - ac_status=$?
36483 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36484 - (exit $ac_status); }; } &&
36485 - { ac_try='test -s conftest.$ac_objext'
36486 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36487 - (eval $ac_try) 2>&5
36488 - ac_status=$?
36489 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490 - (exit $ac_status); }; }; then
36491 + (exit $ac_status); } && {
36492 + test -z "$ac_c_werror_flag" ||
36493 + test ! -s conftest.err
36494 + } && test -s conftest.$ac_objext; then
36495 ac_cv_have_decl_strstr=yes
36496 else
36497 echo "$as_me: failed program was:" >&5
36498 sed 's/^/| /' conftest.$ac_ext >&5
36499
36500 -ac_cv_have_decl_strstr=no
36501 + ac_cv_have_decl_strstr=no
36502 fi
36503 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36504 +
36505 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36506 fi
36507 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
36508 -echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
36509 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
36510 +echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
36511 if test $ac_cv_have_decl_strstr = yes; then
36512
36513 cat >>confdefs.h <<_ACEOF
36514 @@ -10211,8 +10626,8 @@ _ACEOF
36515
36516
36517 fi
36518 -echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
36519 -echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
36520 +{ echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
36521 +echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; }
36522 if test "${ac_cv_have_decl_sbrk+set}" = set; then
36523 echo $ECHO_N "(cached) $ECHO_C" >&6
36524 else
36525 @@ -10227,7 +10642,7 @@ int
36526 main ()
36527 {
36528 #ifndef sbrk
36529 - char *p = (char *) sbrk;
36530 + (void) sbrk;
36531 #endif
36532
36533 ;
36534 @@ -10235,38 +10650,34 @@ main ()
36535 }
36536 _ACEOF
36537 rm -f conftest.$ac_objext
36538 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36539 - (eval $ac_compile) 2>conftest.er1
36540 +if { (ac_try="$ac_compile"
36541 +case "(($ac_try" in
36542 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36543 + *) ac_try_echo=$ac_try;;
36544 +esac
36545 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36546 + (eval "$ac_compile") 2>conftest.er1
36547 ac_status=$?
36548 grep -v '^ *+' conftest.er1 >conftest.err
36549 rm -f conftest.er1
36550 cat conftest.err >&5
36551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36552 - (exit $ac_status); } &&
36553 - { ac_try='test -z "$ac_c_werror_flag"
36554 - || test ! -s conftest.err'
36555 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36556 - (eval $ac_try) 2>&5
36557 - ac_status=$?
36558 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 - (exit $ac_status); }; } &&
36560 - { ac_try='test -s conftest.$ac_objext'
36561 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36562 - (eval $ac_try) 2>&5
36563 - ac_status=$?
36564 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565 - (exit $ac_status); }; }; then
36566 + (exit $ac_status); } && {
36567 + test -z "$ac_c_werror_flag" ||
36568 + test ! -s conftest.err
36569 + } && test -s conftest.$ac_objext; then
36570 ac_cv_have_decl_sbrk=yes
36571 else
36572 echo "$as_me: failed program was:" >&5
36573 sed 's/^/| /' conftest.$ac_ext >&5
36574
36575 -ac_cv_have_decl_sbrk=no
36576 + ac_cv_have_decl_sbrk=no
36577 fi
36578 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36579 +
36580 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36581 fi
36582 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
36583 -echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
36584 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
36585 +echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; }
36586 if test $ac_cv_have_decl_sbrk = yes; then
36587
36588 cat >>confdefs.h <<_ACEOF
36589 @@ -10281,8 +10692,8 @@ _ACEOF
36590
36591
36592 fi
36593 -echo "$as_me:$LINENO: checking whether getenv is declared" >&5
36594 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
36595 +{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
36596 +echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
36597 if test "${ac_cv_have_decl_getenv+set}" = set; then
36598 echo $ECHO_N "(cached) $ECHO_C" >&6
36599 else
36600 @@ -10297,7 +10708,7 @@ int
36601 main ()
36602 {
36603 #ifndef getenv
36604 - char *p = (char *) getenv;
36605 + (void) getenv;
36606 #endif
36607
36608 ;
36609 @@ -10305,38 +10716,34 @@ main ()
36610 }
36611 _ACEOF
36612 rm -f conftest.$ac_objext
36613 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36614 - (eval $ac_compile) 2>conftest.er1
36615 +if { (ac_try="$ac_compile"
36616 +case "(($ac_try" in
36617 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36618 + *) ac_try_echo=$ac_try;;
36619 +esac
36620 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36621 + (eval "$ac_compile") 2>conftest.er1
36622 ac_status=$?
36623 grep -v '^ *+' conftest.er1 >conftest.err
36624 rm -f conftest.er1
36625 cat conftest.err >&5
36626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36627 - (exit $ac_status); } &&
36628 - { ac_try='test -z "$ac_c_werror_flag"
36629 - || test ! -s conftest.err'
36630 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36631 - (eval $ac_try) 2>&5
36632 - ac_status=$?
36633 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634 - (exit $ac_status); }; } &&
36635 - { ac_try='test -s conftest.$ac_objext'
36636 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637 - (eval $ac_try) 2>&5
36638 - ac_status=$?
36639 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 - (exit $ac_status); }; }; then
36641 + (exit $ac_status); } && {
36642 + test -z "$ac_c_werror_flag" ||
36643 + test ! -s conftest.err
36644 + } && test -s conftest.$ac_objext; then
36645 ac_cv_have_decl_getenv=yes
36646 else
36647 echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36649
36650 -ac_cv_have_decl_getenv=no
36651 + ac_cv_have_decl_getenv=no
36652 fi
36653 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36654 +
36655 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36656 fi
36657 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
36658 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
36659 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
36660 +echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
36661 if test $ac_cv_have_decl_getenv = yes; then
36662
36663 cat >>confdefs.h <<_ACEOF
36664 @@ -10351,8 +10758,8 @@ _ACEOF
36665
36666
36667 fi
36668 -echo "$as_me:$LINENO: checking whether environ is declared" >&5
36669 -echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
36670 +{ echo "$as_me:$LINENO: checking whether environ is declared" >&5
36671 +echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
36672 if test "${ac_cv_have_decl_environ+set}" = set; then
36673 echo $ECHO_N "(cached) $ECHO_C" >&6
36674 else
36675 @@ -10367,7 +10774,7 @@ int
36676 main ()
36677 {
36678 #ifndef environ
36679 - char *p = (char *) environ;
36680 + (void) environ;
36681 #endif
36682
36683 ;
36684 @@ -10375,38 +10782,34 @@ main ()
36685 }
36686 _ACEOF
36687 rm -f conftest.$ac_objext
36688 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36689 - (eval $ac_compile) 2>conftest.er1
36690 +if { (ac_try="$ac_compile"
36691 +case "(($ac_try" in
36692 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36693 + *) ac_try_echo=$ac_try;;
36694 +esac
36695 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36696 + (eval "$ac_compile") 2>conftest.er1
36697 ac_status=$?
36698 grep -v '^ *+' conftest.er1 >conftest.err
36699 rm -f conftest.er1
36700 cat conftest.err >&5
36701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36702 - (exit $ac_status); } &&
36703 - { ac_try='test -z "$ac_c_werror_flag"
36704 - || test ! -s conftest.err'
36705 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36706 - (eval $ac_try) 2>&5
36707 - ac_status=$?
36708 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709 - (exit $ac_status); }; } &&
36710 - { ac_try='test -s conftest.$ac_objext'
36711 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36712 - (eval $ac_try) 2>&5
36713 - ac_status=$?
36714 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715 - (exit $ac_status); }; }; then
36716 + (exit $ac_status); } && {
36717 + test -z "$ac_c_werror_flag" ||
36718 + test ! -s conftest.err
36719 + } && test -s conftest.$ac_objext; then
36720 ac_cv_have_decl_environ=yes
36721 else
36722 echo "$as_me: failed program was:" >&5
36723 sed 's/^/| /' conftest.$ac_ext >&5
36724
36725 -ac_cv_have_decl_environ=no
36726 + ac_cv_have_decl_environ=no
36727 fi
36728 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36729 +
36730 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36731 fi
36732 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
36733 -echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
36734 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
36735 +echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
36736 if test $ac_cv_have_decl_environ = yes; then
36737
36738 cat >>confdefs.h <<_ACEOF
36739 @@ -10421,8 +10824,8 @@ _ACEOF
36740
36741
36742 fi
36743 -echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
36744 -echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
36745 +{ echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
36746 +echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
36747 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
36748 echo $ECHO_N "(cached) $ECHO_C" >&6
36749 else
36750 @@ -10437,7 +10840,7 @@ int
36751 main ()
36752 {
36753 #ifndef getc_unlocked
36754 - char *p = (char *) getc_unlocked;
36755 + (void) getc_unlocked;
36756 #endif
36757
36758 ;
36759 @@ -10445,38 +10848,34 @@ main ()
36760 }
36761 _ACEOF
36762 rm -f conftest.$ac_objext
36763 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36764 - (eval $ac_compile) 2>conftest.er1
36765 +if { (ac_try="$ac_compile"
36766 +case "(($ac_try" in
36767 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36768 + *) ac_try_echo=$ac_try;;
36769 +esac
36770 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36771 + (eval "$ac_compile") 2>conftest.er1
36772 ac_status=$?
36773 grep -v '^ *+' conftest.er1 >conftest.err
36774 rm -f conftest.er1
36775 cat conftest.err >&5
36776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777 - (exit $ac_status); } &&
36778 - { ac_try='test -z "$ac_c_werror_flag"
36779 - || test ! -s conftest.err'
36780 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36781 - (eval $ac_try) 2>&5
36782 - ac_status=$?
36783 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36784 - (exit $ac_status); }; } &&
36785 - { ac_try='test -s conftest.$ac_objext'
36786 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36787 - (eval $ac_try) 2>&5
36788 - ac_status=$?
36789 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36790 - (exit $ac_status); }; }; then
36791 + (exit $ac_status); } && {
36792 + test -z "$ac_c_werror_flag" ||
36793 + test ! -s conftest.err
36794 + } && test -s conftest.$ac_objext; then
36795 ac_cv_have_decl_getc_unlocked=yes
36796 else
36797 echo "$as_me: failed program was:" >&5
36798 sed 's/^/| /' conftest.$ac_ext >&5
36799
36800 -ac_cv_have_decl_getc_unlocked=no
36801 + ac_cv_have_decl_getc_unlocked=no
36802 fi
36803 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36804 +
36805 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36806 fi
36807 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
36808 -echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
36809 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
36810 +echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
36811 if test $ac_cv_have_decl_getc_unlocked = yes; then
36812
36813 cat >>confdefs.h <<_ACEOF
36814 @@ -10491,8 +10890,8 @@ _ACEOF
36815
36816
36817 fi
36818 -echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
36819 -echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
36820 +{ echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
36821 +echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
36822 if test "${ac_cv_have_decl_snprintf+set}" = set; then
36823 echo $ECHO_N "(cached) $ECHO_C" >&6
36824 else
36825 @@ -10507,7 +10906,7 @@ int
36826 main ()
36827 {
36828 #ifndef snprintf
36829 - char *p = (char *) snprintf;
36830 + (void) snprintf;
36831 #endif
36832
36833 ;
36834 @@ -10515,38 +10914,34 @@ main ()
36835 }
36836 _ACEOF
36837 rm -f conftest.$ac_objext
36838 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36839 - (eval $ac_compile) 2>conftest.er1
36840 +if { (ac_try="$ac_compile"
36841 +case "(($ac_try" in
36842 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36843 + *) ac_try_echo=$ac_try;;
36844 +esac
36845 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36846 + (eval "$ac_compile") 2>conftest.er1
36847 ac_status=$?
36848 grep -v '^ *+' conftest.er1 >conftest.err
36849 rm -f conftest.er1
36850 cat conftest.err >&5
36851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36852 - (exit $ac_status); } &&
36853 - { ac_try='test -z "$ac_c_werror_flag"
36854 - || test ! -s conftest.err'
36855 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36856 - (eval $ac_try) 2>&5
36857 - ac_status=$?
36858 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859 - (exit $ac_status); }; } &&
36860 - { ac_try='test -s conftest.$ac_objext'
36861 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36862 - (eval $ac_try) 2>&5
36863 - ac_status=$?
36864 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865 - (exit $ac_status); }; }; then
36866 + (exit $ac_status); } && {
36867 + test -z "$ac_c_werror_flag" ||
36868 + test ! -s conftest.err
36869 + } && test -s conftest.$ac_objext; then
36870 ac_cv_have_decl_snprintf=yes
36871 else
36872 echo "$as_me: failed program was:" >&5
36873 sed 's/^/| /' conftest.$ac_ext >&5
36874
36875 -ac_cv_have_decl_snprintf=no
36876 + ac_cv_have_decl_snprintf=no
36877 fi
36878 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36879 +
36880 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36881 fi
36882 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
36883 -echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
36884 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
36885 +echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
36886 if test $ac_cv_have_decl_snprintf = yes; then
36887
36888 cat >>confdefs.h <<_ACEOF
36889 @@ -10561,8 +10956,8 @@ _ACEOF
36890
36891
36892 fi
36893 -echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
36894 -echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
36895 +{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
36896 +echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
36897 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
36898 echo $ECHO_N "(cached) $ECHO_C" >&6
36899 else
36900 @@ -10577,7 +10972,7 @@ int
36901 main ()
36902 {
36903 #ifndef vsnprintf
36904 - char *p = (char *) vsnprintf;
36905 + (void) vsnprintf;
36906 #endif
36907
36908 ;
36909 @@ -10585,38 +10980,34 @@ main ()
36910 }
36911 _ACEOF
36912 rm -f conftest.$ac_objext
36913 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36914 - (eval $ac_compile) 2>conftest.er1
36915 +if { (ac_try="$ac_compile"
36916 +case "(($ac_try" in
36917 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36918 + *) ac_try_echo=$ac_try;;
36919 +esac
36920 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36921 + (eval "$ac_compile") 2>conftest.er1
36922 ac_status=$?
36923 grep -v '^ *+' conftest.er1 >conftest.err
36924 rm -f conftest.er1
36925 cat conftest.err >&5
36926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927 - (exit $ac_status); } &&
36928 - { ac_try='test -z "$ac_c_werror_flag"
36929 - || test ! -s conftest.err'
36930 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36931 - (eval $ac_try) 2>&5
36932 - ac_status=$?
36933 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934 - (exit $ac_status); }; } &&
36935 - { ac_try='test -s conftest.$ac_objext'
36936 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36937 - (eval $ac_try) 2>&5
36938 - ac_status=$?
36939 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36940 - (exit $ac_status); }; }; then
36941 + (exit $ac_status); } && {
36942 + test -z "$ac_c_werror_flag" ||
36943 + test ! -s conftest.err
36944 + } && test -s conftest.$ac_objext; then
36945 ac_cv_have_decl_vsnprintf=yes
36946 else
36947 echo "$as_me: failed program was:" >&5
36948 sed 's/^/| /' conftest.$ac_ext >&5
36949
36950 -ac_cv_have_decl_vsnprintf=no
36951 + ac_cv_have_decl_vsnprintf=no
36952 fi
36953 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36954 +
36955 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36956 fi
36957 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
36958 -echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
36959 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
36960 +echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
36961 if test $ac_cv_have_decl_vsnprintf = yes; then
36962
36963 cat >>confdefs.h <<_ACEOF
36964 @@ -10817,8 +11208,10 @@ done
36965
36966
36967
36968 - ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
36969 - ac_config_commands="$ac_config_commands default"
36970 +ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
36971 +
36972 +ac_config_commands="$ac_config_commands default"
36973 +
36974 cat >confcache <<\_ACEOF
36975 # This file is a shell script that caches the results of configure
36976 # tests run on this system so they can be shared between configure
36977 @@ -10837,39 +11230,58 @@ _ACEOF
36978
36979 # The following way of writing the cache mishandles newlines in values,
36980 # but we know of no workaround that is simple, portable, and efficient.
36981 -# So, don't put newlines in cache variables' values.
36982 +# So, we kill variables containing newlines.
36983 # Ultrix sh set writes to stderr and can't be redirected directly,
36984 # and sets the high bit in the cache file unless we assign to the vars.
36985 -{
36986 +(
36987 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36988 + eval ac_val=\$$ac_var
36989 + case $ac_val in #(
36990 + *${as_nl}*)
36991 + case $ac_var in #(
36992 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
36993 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
36994 + esac
36995 + case $ac_var in #(
36996 + _ | IFS | as_nl) ;; #(
36997 + *) $as_unset $ac_var ;;
36998 + esac ;;
36999 + esac
37000 + done
37001 +
37002 (set) 2>&1 |
37003 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
37004 - *ac_space=\ *)
37005 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
37006 + *${as_nl}ac_space=\ *)
37007 # `set' does not quote correctly, so add quotes (double-quote
37008 # substitution turns \\\\ into \\, and sed turns \\ into \).
37009 sed -n \
37010 "s/'/'\\\\''/g;
37011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37012 - ;;
37013 + ;; #(
37014 *)
37015 # `set' quotes correctly as required by POSIX, so do not add quotes.
37016 - sed -n \
37017 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37018 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37019 ;;
37020 - esac;
37021 -} |
37022 + esac |
37023 + sort
37024 +) |
37025 sed '
37026 + /^ac_cv_env_/b end
37027 t clear
37028 - : clear
37029 + :clear
37030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37031 t end
37032 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37033 - : end' >>confcache
37034 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
37035 - if test -w $cache_file; then
37036 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37037 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37038 + :end' >>confcache
37039 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37040 + if test -w "$cache_file"; then
37041 + test "x$cache_file" != "x/dev/null" &&
37042 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
37043 +echo "$as_me: updating cache $cache_file" >&6;}
37044 cat confcache >$cache_file
37045 else
37046 - echo "not updating unwritable cache $cache_file"
37047 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
37048 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37049 fi
37050 fi
37051 rm -f confcache
37052 @@ -10878,32 +11290,18 @@ test "x$prefix" = xNONE && prefix=$ac_de
37053 # Let make expand exec_prefix.
37054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37055
37056 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
37057 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37058 -# trailing colons and then remove the whole line if VPATH becomes empty
37059 -# (actually we leave an empty line to preserve line numbers).
37060 -if test "x$srcdir" = x.; then
37061 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
37062 -s/:*\$(srcdir):*/:/;
37063 -s/:*\${srcdir}:*/:/;
37064 -s/:*@srcdir@:*/:/;
37065 -s/^\([^=]*=[ ]*\):*/\1/;
37066 -s/:*$//;
37067 -s/^[^=]*=[ ]*$//;
37068 -}'
37069 -fi
37070 -
37071 DEFS=-DHAVE_CONFIG_H
37072
37073 ac_libobjs=
37074 ac_ltlibobjs=
37075 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37076 # 1. Remove the extension, and $U if already installed.
37077 - ac_i=`echo "$ac_i" |
37078 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
37079 - # 2. Add them.
37080 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
37081 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
37082 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37083 + ac_i=`echo "$ac_i" | sed "$ac_script"`
37084 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37085 + # will be set to the directory where LIBOBJS objects are built.
37086 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37087 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
37088 done
37089 LIBOBJS=$ac_libobjs
37090
37091 @@ -10955,17 +11353,45 @@ cat >>$CONFIG_STATUS <<\_ACEOF
37092 ## M4sh Initialization. ##
37093 ## --------------------- ##
37094
37095 -# Be Bourne compatible
37096 +# Be more Bourne compatible
37097 +DUALCASE=1; export DUALCASE # for MKS sh
37098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37099 emulate sh
37100 NULLCMD=:
37101 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37102 # is contrary to our usage. Disable this feature.
37103 alias -g '${1+"$@"}'='"$@"'
37104 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
37105 - set -o posix
37106 + setopt NO_GLOB_SUBST
37107 +else
37108 + case `(set -o) 2>/dev/null` in
37109 + *posix*) set -o posix ;;
37110 +esac
37111 +
37112 +fi
37113 +
37114 +
37115 +
37116 +
37117 +# PATH needs CR
37118 +# Avoid depending upon Character Ranges.
37119 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37120 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37121 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37122 +as_cr_digits='0123456789'
37123 +as_cr_alnum=$as_cr_Letters$as_cr_digits
37124 +
37125 +# The user is always right.
37126 +if test "${PATH_SEPARATOR+set}" != set; then
37127 + echo "#! /bin/sh" >conf$$.sh
37128 + echo "exit 0" >>conf$$.sh
37129 + chmod +x conf$$.sh
37130 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37131 + PATH_SEPARATOR=';'
37132 + else
37133 + PATH_SEPARATOR=:
37134 + fi
37135 + rm -f conf$$.sh
37136 fi
37137 -DUALCASE=1; export DUALCASE # for MKS sh
37138
37139 # Support unset when possible.
37140 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
37141 @@ -10975,8 +11401,43 @@ else
37142 fi
37143
37144
37145 +# IFS
37146 +# We need space, tab and new line, in precisely that order. Quoting is
37147 +# there to prevent editors from complaining about space-tab.
37148 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37149 +# splitting by setting IFS to empty value.)
37150 +as_nl='
37151 +'
37152 +IFS=" "" $as_nl"
37153 +
37154 +# Find who we are. Look in the path if we contain no directory separator.
37155 +case $0 in
37156 + *[\\/]* ) as_myself=$0 ;;
37157 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37158 +for as_dir in $PATH
37159 +do
37160 + IFS=$as_save_IFS
37161 + test -z "$as_dir" && as_dir=.
37162 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37163 +done
37164 +IFS=$as_save_IFS
37165 +
37166 + ;;
37167 +esac
37168 +# We did not find ourselves, most probably we were run as `sh COMMAND'
37169 +# in which case we are not to be found in the path.
37170 +if test "x$as_myself" = x; then
37171 + as_myself=$0
37172 +fi
37173 +if test ! -f "$as_myself"; then
37174 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37175 + { (exit 1); exit 1; }
37176 +fi
37177 +
37178 # Work around bugs in pre-3.0 UWIN ksh.
37179 -$as_unset ENV MAIL MAILPATH
37180 +for as_var in ENV MAIL MAILPATH
37181 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37182 +done
37183 PS1='$ '
37184 PS2='> '
37185 PS4='+ '
37186 @@ -10990,18 +11451,19 @@ do
37187 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
37188 eval $as_var=C; export $as_var
37189 else
37190 - $as_unset $as_var
37191 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37192 fi
37193 done
37194
37195 # Required to use basename.
37196 -if expr a : '\(a\)' >/dev/null 2>&1; then
37197 +if expr a : '\(a\)' >/dev/null 2>&1 &&
37198 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
37199 as_expr=expr
37200 else
37201 as_expr=false
37202 fi
37203
37204 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
37205 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37206 as_basename=basename
37207 else
37208 as_basename=false
37209 @@ -11009,159 +11471,120 @@ fi
37210
37211
37212 # Name of the executable.
37213 -as_me=`$as_basename "$0" ||
37214 +as_me=`$as_basename -- "$0" ||
37215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37216 X"$0" : 'X\(//\)$' \| \
37217 - X"$0" : 'X\(/\)$' \| \
37218 - . : '\(.\)' 2>/dev/null ||
37219 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37220 echo X/"$0" |
37221 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
37222 - /^X\/\(\/\/\)$/{ s//\1/; q; }
37223 - /^X\/\(\/\).*/{ s//\1/; q; }
37224 - s/.*/./; q'`
37225 + sed '/^.*\/\([^/][^/]*\)\/*$/{
37226 + s//\1/
37227 + q
37228 + }
37229 + /^X\/\(\/\/\)$/{
37230 + s//\1/
37231 + q
37232 + }
37233 + /^X\/\(\/\).*/{
37234 + s//\1/
37235 + q
37236 + }
37237 + s/.*/./; q'`
37238
37239 -
37240 -# PATH needs CR, and LINENO needs CR and PATH.
37241 -# Avoid depending upon Character Ranges.
37242 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37243 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37244 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37245 -as_cr_digits='0123456789'
37246 -as_cr_alnum=$as_cr_Letters$as_cr_digits
37247 -
37248 -# The user is always right.
37249 -if test "${PATH_SEPARATOR+set}" != set; then
37250 - echo "#! /bin/sh" >conf$$.sh
37251 - echo "exit 0" >>conf$$.sh
37252 - chmod +x conf$$.sh
37253 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37254 - PATH_SEPARATOR=';'
37255 - else
37256 - PATH_SEPARATOR=:
37257 - fi
37258 - rm -f conf$$.sh
37259 -fi
37260 +# CDPATH.
37261 +$as_unset CDPATH
37262
37263
37264 - as_lineno_1=$LINENO
37265 - as_lineno_2=$LINENO
37266 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37267 - test "x$as_lineno_1" != "x$as_lineno_2" &&
37268 - test "x$as_lineno_3" = "x$as_lineno_2" || {
37269 - # Find who we are. Look in the path if we contain no path at all
37270 - # relative or not.
37271 - case $0 in
37272 - *[\\/]* ) as_myself=$0 ;;
37273 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37274 -for as_dir in $PATH
37275 -do
37276 - IFS=$as_save_IFS
37277 - test -z "$as_dir" && as_dir=.
37278 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37279 -done
37280
37281 - ;;
37282 - esac
37283 - # We did not find ourselves, most probably we were run as `sh COMMAND'
37284 - # in which case we are not to be found in the path.
37285 - if test "x$as_myself" = x; then
37286 - as_myself=$0
37287 - fi
37288 - if test ! -f "$as_myself"; then
37289 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
37290 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
37291 - { (exit 1); exit 1; }; }
37292 - fi
37293 - case $CONFIG_SHELL in
37294 - '')
37295 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37296 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
37297 -do
37298 - IFS=$as_save_IFS
37299 - test -z "$as_dir" && as_dir=.
37300 - for as_base in sh bash ksh sh5; do
37301 - case $as_dir in
37302 - /*)
37303 - if ("$as_dir/$as_base" -c '
37304 as_lineno_1=$LINENO
37305 as_lineno_2=$LINENO
37306 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37307 test "x$as_lineno_1" != "x$as_lineno_2" &&
37308 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
37309 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
37310 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
37311 - CONFIG_SHELL=$as_dir/$as_base
37312 - export CONFIG_SHELL
37313 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
37314 - fi;;
37315 - esac
37316 - done
37317 -done
37318 -;;
37319 - esac
37320 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
37321
37322 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37323 # uniformly replaced by the line number. The first 'sed' inserts a
37324 - # line-number line before each line; the second 'sed' does the real
37325 - # work. The second script uses 'N' to pair each line-number line
37326 - # with the numbered line, and appends trailing '-' during
37327 - # substitution so that $LINENO is not a special case at line end.
37328 + # line-number line after each line using $LINENO; the second 'sed'
37329 + # does the real work. The second script uses 'N' to pair each
37330 + # line-number line with the line containing $LINENO, and appends
37331 + # trailing '-' during substitution so that $LINENO is not a special
37332 + # case at line end.
37333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37334 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
37335 - sed '=' <$as_myself |
37336 + # scripts with optimization help from Paolo Bonzini. Blame Lee
37337 + # E. McMahon (1931-1989) for sed's syntax. :-)
37338 + sed -n '
37339 + p
37340 + /[$]LINENO/=
37341 + ' <$as_myself |
37342 sed '
37343 + s/[$]LINENO.*/&-/
37344 + t lineno
37345 + b
37346 + :lineno
37347 N
37348 - s,$,-,
37349 - : loop
37350 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37351 + :loop
37352 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
37353 t loop
37354 - s,-$,,
37355 - s,^['$as_cr_digits']*\n,,
37356 + s/-\n.*//
37357 ' >$as_me.lineno &&
37358 - chmod +x $as_me.lineno ||
37359 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37360 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37361 + chmod +x "$as_me.lineno" ||
37362 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
37363 { (exit 1); exit 1; }; }
37364
37365 # Don't try to exec as it changes $[0], causing all sort of problems
37366 # (the dirname of $[0] is not the place where we might find the
37367 - # original and so on. Autoconf is especially sensible to this).
37368 - . ./$as_me.lineno
37369 + # original and so on. Autoconf is especially sensitive to this).
37370 + . "./$as_me.lineno"
37371 # Exit status is that of the last command.
37372 exit
37373 }
37374
37375
37376 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37377 - *c*,-n*) ECHO_N= ECHO_C='
37378 -' ECHO_T=' ' ;;
37379 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
37380 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
37381 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37382 + as_dirname=dirname
37383 +else
37384 + as_dirname=false
37385 +fi
37386 +
37387 +ECHO_C= ECHO_N= ECHO_T=
37388 +case `echo -n x` in
37389 +-n*)
37390 + case `echo 'x\c'` in
37391 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37392 + *) ECHO_C='\c';;
37393 + esac;;
37394 +*)
37395 + ECHO_N='-n';;
37396 esac
37397
37398 -if expr a : '\(a\)' >/dev/null 2>&1; then
37399 +if expr a : '\(a\)' >/dev/null 2>&1 &&
37400 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
37401 as_expr=expr
37402 else
37403 as_expr=false
37404 fi
37405
37406 rm -f conf$$ conf$$.exe conf$$.file
37407 +if test -d conf$$.dir; then
37408 + rm -f conf$$.dir/conf$$.file
37409 +else
37410 + rm -f conf$$.dir
37411 + mkdir conf$$.dir
37412 +fi
37413 echo >conf$$.file
37414 if ln -s conf$$.file conf$$ 2>/dev/null; then
37415 - # We could just check for DJGPP; but this test a) works b) is more generic
37416 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37417 - if test -f conf$$.exe; then
37418 - # Don't use ln at all; we don't have any links
37419 + as_ln_s='ln -s'
37420 + # ... but there are two gotchas:
37421 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37422 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37423 + # In both cases, we have to default to `cp -p'.
37424 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37425 as_ln_s='cp -p'
37426 - else
37427 - as_ln_s='ln -s'
37428 - fi
37429 elif ln conf$$.file conf$$ 2>/dev/null; then
37430 as_ln_s=ln
37431 else
37432 as_ln_s='cp -p'
37433 fi
37434 -rm -f conf$$ conf$$.exe conf$$.file
37435 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37436 +rmdir conf$$.dir 2>/dev/null
37437
37438 if mkdir -p . 2>/dev/null; then
37439 as_mkdir_p=:
37440 @@ -11170,7 +11593,28 @@ else
37441 as_mkdir_p=false
37442 fi
37443
37444 -as_executable_p="test -f"
37445 +if test -x / >/dev/null 2>&1; then
37446 + as_test_x='test -x'
37447 +else
37448 + if ls -dL / >/dev/null 2>&1; then
37449 + as_ls_L_option=L
37450 + else
37451 + as_ls_L_option=
37452 + fi
37453 + as_test_x='
37454 + eval sh -c '\''
37455 + if test -d "$1"; then
37456 + test -d "$1/.";
37457 + else
37458 + case $1 in
37459 + -*)set "./$1";;
37460 + esac;
37461 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
37462 + ???[sx]*):;;*)false;;esac;fi
37463 + '\'' sh
37464 + '
37465 +fi
37466 +as_executable_p=$as_test_x
37467
37468 # Sed expression to map a string onto a valid CPP name.
37469 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37470 @@ -11179,31 +11623,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
37471 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37472
37473
37474 -# IFS
37475 -# We need space, tab and new line, in precisely that order.
37476 -as_nl='
37477 -'
37478 -IFS=" $as_nl"
37479 -
37480 -# CDPATH.
37481 -$as_unset CDPATH
37482 -
37483 exec 6>&1
37484
37485 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
37486 +# Save the log message, to keep $[0] and so on meaningful, and to
37487 # report actual input values of CONFIG_FILES etc. instead of their
37488 -# values after options handling. Logging --version etc. is OK.
37489 -exec 5>>config.log
37490 -{
37491 - echo
37492 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37493 -## Running $as_me. ##
37494 -_ASBOX
37495 -} >&5
37496 -cat >&5 <<_CSEOF
37497 -
37498 +# values after options handling.
37499 +ac_log="
37500 This file was extended by $as_me, which was
37501 -generated by GNU Autoconf 2.59. Invocation command line was
37502 +generated by GNU Autoconf 2.61. Invocation command line was
37503
37504 CONFIG_FILES = $CONFIG_FILES
37505 CONFIG_HEADERS = $CONFIG_HEADERS
37506 @@ -11211,30 +11638,20 @@ generated by GNU Autoconf 2.59. Invocat
37507 CONFIG_COMMANDS = $CONFIG_COMMANDS
37508 $ $0 $@
37509
37510 -_CSEOF
37511 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37512 -echo >&5
37513 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
37514 +"
37515 +
37516 _ACEOF
37517
37518 +cat >>$CONFIG_STATUS <<_ACEOF
37519 # Files that config.status was made for.
37520 -if test -n "$ac_config_files"; then
37521 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37522 -fi
37523 -
37524 -if test -n "$ac_config_headers"; then
37525 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37526 -fi
37527 -
37528 -if test -n "$ac_config_links"; then
37529 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37530 -fi
37531 +config_files="$ac_config_files"
37532 +config_headers="$ac_config_headers"
37533 +config_commands="$ac_config_commands"
37534
37535 -if test -n "$ac_config_commands"; then
37536 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37537 -fi
37538 +_ACEOF
37539
37540 cat >>$CONFIG_STATUS <<\_ACEOF
37541 -
37542 ac_cs_usage="\
37543 \`$as_me' instantiates files from templates according to the
37544 current configuration.
37545 @@ -11242,7 +11659,7 @@ current configuration.
37546 Usage: $0 [OPTIONS] [FILE]...
37547
37548 -h, --help print this help, then exit
37549 - -V, --version print version number, then exit
37550 + -V, --version print version number and configuration settings, then exit
37551 -q, --quiet do not print progress messages
37552 -d, --debug don't remove temporary files
37553 --recheck update $as_me by reconfiguring in the same conditions
37554 @@ -11261,19 +11678,21 @@ Configuration commands:
37555 $config_commands
37556
37557 Report bugs to <bug-autoconf@gnu.org>."
37558 -_ACEOF
37559
37560 +_ACEOF
37561 cat >>$CONFIG_STATUS <<_ACEOF
37562 ac_cs_version="\\
37563 config.status
37564 -configured by $0, generated by GNU Autoconf 2.59,
37565 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37566 +configured by $0, generated by GNU Autoconf 2.61,
37567 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
37568
37569 -Copyright (C) 2003 Free Software Foundation, Inc.
37570 +Copyright (C) 2006 Free Software Foundation, Inc.
37571 This config.status script is free software; the Free Software Foundation
37572 gives unlimited permission to copy, distribute and modify it."
37573 -srcdir=$srcdir
37574 -INSTALL="$INSTALL"
37575 +
37576 +ac_pwd='$ac_pwd'
37577 +srcdir='$srcdir'
37578 +INSTALL='$INSTALL'
37579 _ACEOF
37580
37581 cat >>$CONFIG_STATUS <<\_ACEOF
37582 @@ -11284,39 +11703,24 @@ while test $# != 0
37583 do
37584 case $1 in
37585 --*=*)
37586 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
37587 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
37588 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
37589 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37590 ac_shift=:
37591 ;;
37592 - -*)
37593 + *)
37594 ac_option=$1
37595 ac_optarg=$2
37596 ac_shift=shift
37597 ;;
37598 - *) # This is not an option, so the user has probably given explicit
37599 - # arguments.
37600 - ac_option=$1
37601 - ac_need_defaults=false;;
37602 esac
37603
37604 case $ac_option in
37605 # Handling of the options.
37606 -_ACEOF
37607 -cat >>$CONFIG_STATUS <<\_ACEOF
37608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37609 ac_cs_recheck=: ;;
37610 - --version | --vers* | -V )
37611 - echo "$ac_cs_version"; exit 0 ;;
37612 - --he | --h)
37613 - # Conflict between --help and --header
37614 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
37615 -Try \`$0 --help' for more information." >&5
37616 -echo "$as_me: error: ambiguous option: $1
37617 -Try \`$0 --help' for more information." >&2;}
37618 - { (exit 1); exit 1; }; };;
37619 - --help | --hel | -h )
37620 - echo "$ac_cs_usage"; exit 0 ;;
37621 - --debug | --d* | -d )
37622 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37623 + echo "$ac_cs_version"; exit ;;
37624 + --debug | --debu | --deb | --de | --d | -d )
37625 debug=: ;;
37626 --file | --fil | --fi | --f )
37627 $ac_shift
37628 @@ -11326,18 +11730,24 @@ Try \`$0 --help' for more information."
37629 $ac_shift
37630 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37631 ac_need_defaults=false;;
37632 + --he | --h)
37633 + # Conflict between --help and --header
37634 + { echo "$as_me: error: ambiguous option: $1
37635 +Try \`$0 --help' for more information." >&2
37636 + { (exit 1); exit 1; }; };;
37637 + --help | --hel | -h )
37638 + echo "$ac_cs_usage"; exit ;;
37639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37640 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37641 ac_cs_silent=: ;;
37642
37643 # This is an error.
37644 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37645 -Try \`$0 --help' for more information." >&5
37646 -echo "$as_me: error: unrecognized option: $1
37647 -Try \`$0 --help' for more information." >&2;}
37648 + -*) { echo "$as_me: error: unrecognized option: $1
37649 +Try \`$0 --help' for more information." >&2
37650 { (exit 1); exit 1; }; } ;;
37651
37652 - *) ac_config_targets="$ac_config_targets $1" ;;
37653 + *) ac_config_targets="$ac_config_targets $1"
37654 + ac_need_defaults=false ;;
37655
37656 esac
37657 shift
37658 @@ -11353,40 +11763,52 @@ fi
37659 _ACEOF
37660 cat >>$CONFIG_STATUS <<_ACEOF
37661 if \$ac_cs_recheck; then
37662 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37663 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37664 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37665 + CONFIG_SHELL=$SHELL
37666 + export CONFIG_SHELL
37667 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37668 fi
37669
37670 _ACEOF
37671 +cat >>$CONFIG_STATUS <<\_ACEOF
37672 +exec 5>>config.log
37673 +{
37674 + echo
37675 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37676 +## Running $as_me. ##
37677 +_ASBOX
37678 + echo "$ac_log"
37679 +} >&5
37680
37681 +_ACEOF
37682 cat >>$CONFIG_STATUS <<_ACEOF
37683 #
37684 -# INIT-COMMANDS section.
37685 +# INIT-COMMANDS
37686 #
37687 -
37688 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37689
37690 _ACEOF
37691
37692 -
37693 -
37694 cat >>$CONFIG_STATUS <<\_ACEOF
37695 +
37696 +# Handling of arguments.
37697 for ac_config_target in $ac_config_targets
37698 do
37699 - case "$ac_config_target" in
37700 - # Handling of arguments.
37701 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37702 - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
37703 - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
37704 - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37705 - "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37706 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
37707 + case $ac_config_target in
37708 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37709 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
37710 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37711 + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
37712 + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
37713 + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37714 +
37715 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37716 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37717 { (exit 1); exit 1; }; };;
37718 esac
37719 done
37720
37721 +
37722 # If the user did not use the arguments to specify the items to instantiate,
37723 # then the envvar interface is used. Set only those that are not.
37724 # We use the long form for the default assignment because of an extremely
37725 @@ -11398,391 +11820,496 @@ if $ac_need_defaults; then
37726 fi
37727
37728 # Have a temporary directory for convenience. Make it in the build tree
37729 -# simply because there is no reason to put it here, and in addition,
37730 +# simply because there is no reason against having it here, and in addition,
37731 # creating and moving files from /tmp can sometimes cause problems.
37732 -# Create a temporary directory, and hook for its removal unless debugging.
37733 +# Hook for its removal unless debugging.
37734 +# Note that there is a small window in which the directory will not be cleaned:
37735 +# after its creation but before its name has been assigned to `$tmp'.
37736 $debug ||
37737 {
37738 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37739 + tmp=
37740 + trap 'exit_status=$?
37741 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
37742 +' 0
37743 trap '{ (exit 1); exit 1; }' 1 2 13 15
37744 }
37745 -
37746 # Create a (secure) tmp directory for tmp files.
37747
37748 {
37749 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
37750 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37751 test -n "$tmp" && test -d "$tmp"
37752 } ||
37753 {
37754 - tmp=./confstat$$-$RANDOM
37755 - (umask 077 && mkdir $tmp)
37756 + tmp=./conf$$-$RANDOM
37757 + (umask 077 && mkdir "$tmp")
37758 } ||
37759 {
37760 echo "$me: cannot create a temporary directory in ." >&2
37761 { (exit 1); exit 1; }
37762 }
37763
37764 -_ACEOF
37765 -
37766 -cat >>$CONFIG_STATUS <<_ACEOF
37767 -
37768 #
37769 -# CONFIG_FILES section.
37770 +# Set up the sed scripts for CONFIG_FILES section.
37771 #
37772
37773 # No need to generate the scripts if there are no CONFIG_FILES.
37774 # This happens for instance when ./config.status config.h
37775 -if test -n "\$CONFIG_FILES"; then
37776 - # Protect against being on the right side of a sed subst in config.status.
37777 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37778 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37779 -s,@SHELL@,$SHELL,;t t
37780 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37781 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37782 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37783 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37784 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37785 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37786 -s,@exec_prefix@,$exec_prefix,;t t
37787 -s,@prefix@,$prefix,;t t
37788 -s,@program_transform_name@,$program_transform_name,;t t
37789 -s,@bindir@,$bindir,;t t
37790 -s,@sbindir@,$sbindir,;t t
37791 -s,@libexecdir@,$libexecdir,;t t
37792 -s,@datadir@,$datadir,;t t
37793 -s,@sysconfdir@,$sysconfdir,;t t
37794 -s,@sharedstatedir@,$sharedstatedir,;t t
37795 -s,@localstatedir@,$localstatedir,;t t
37796 -s,@libdir@,$libdir,;t t
37797 -s,@includedir@,$includedir,;t t
37798 -s,@oldincludedir@,$oldincludedir,;t t
37799 -s,@infodir@,$infodir,;t t
37800 -s,@mandir@,$mandir,;t t
37801 -s,@build_alias@,$build_alias,;t t
37802 -s,@host_alias@,$host_alias,;t t
37803 -s,@target_alias@,$target_alias,;t t
37804 -s,@DEFS@,$DEFS,;t t
37805 -s,@ECHO_C@,$ECHO_C,;t t
37806 -s,@ECHO_N@,$ECHO_N,;t t
37807 -s,@ECHO_T@,$ECHO_T,;t t
37808 -s,@LIBS@,$LIBS,;t t
37809 -s,@build@,$build,;t t
37810 -s,@build_cpu@,$build_cpu,;t t
37811 -s,@build_vendor@,$build_vendor,;t t
37812 -s,@build_os@,$build_os,;t t
37813 -s,@host@,$host,;t t
37814 -s,@host_cpu@,$host_cpu,;t t
37815 -s,@host_vendor@,$host_vendor,;t t
37816 -s,@host_os@,$host_os,;t t
37817 -s,@target@,$target,;t t
37818 -s,@target_cpu@,$target_cpu,;t t
37819 -s,@target_vendor@,$target_vendor,;t t
37820 -s,@target_os@,$target_os,;t t
37821 -s,@CC@,$CC,;t t
37822 -s,@CFLAGS@,$CFLAGS,;t t
37823 -s,@LDFLAGS@,$LDFLAGS,;t t
37824 -s,@CPPFLAGS@,$CPPFLAGS,;t t
37825 -s,@ac_ct_CC@,$ac_ct_CC,;t t
37826 -s,@EXEEXT@,$EXEEXT,;t t
37827 -s,@OBJEXT@,$OBJEXT,;t t
37828 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37829 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37830 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37831 -s,@CYGPATH_W@,$CYGPATH_W,;t t
37832 -s,@PACKAGE@,$PACKAGE,;t t
37833 -s,@VERSION@,$VERSION,;t t
37834 -s,@ACLOCAL@,$ACLOCAL,;t t
37835 -s,@AUTOCONF@,$AUTOCONF,;t t
37836 -s,@AUTOMAKE@,$AUTOMAKE,;t t
37837 -s,@AUTOHEADER@,$AUTOHEADER,;t t
37838 -s,@MAKEINFO@,$MAKEINFO,;t t
37839 -s,@install_sh@,$install_sh,;t t
37840 -s,@STRIP@,$STRIP,;t t
37841 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
37842 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
37843 -s,@mkdir_p@,$mkdir_p,;t t
37844 -s,@AWK@,$AWK,;t t
37845 -s,@SET_MAKE@,$SET_MAKE,;t t
37846 -s,@am__leading_dot@,$am__leading_dot,;t t
37847 -s,@AMTAR@,$AMTAR,;t t
37848 -s,@am__tar@,$am__tar,;t t
37849 -s,@am__untar@,$am__untar,;t t
37850 -s,@DEPDIR@,$DEPDIR,;t t
37851 -s,@am__include@,$am__include,;t t
37852 -s,@am__quote@,$am__quote,;t t
37853 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
37854 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
37855 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
37856 -s,@CCDEPMODE@,$CCDEPMODE,;t t
37857 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
37858 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
37859 -s,@LN_S@,$LN_S,;t t
37860 -s,@RANLIB@,$RANLIB,;t t
37861 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
37862 -s,@LIBTOOL@,$LIBTOOL,;t t
37863 -s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
37864 -s,@NO_WERROR@,$NO_WERROR,;t t
37865 -s,@YACC@,$YACC,;t t
37866 -s,@LEX@,$LEX,;t t
37867 -s,@LEXLIB@,$LEXLIB,;t t
37868 -s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
37869 -s,@CPP@,$CPP,;t t
37870 -s,@EGREP@,$EGREP,;t t
37871 -s,@ALLOCA@,$ALLOCA,;t t
37872 -s,@USE_NLS@,$USE_NLS,;t t
37873 -s,@MSGFMT@,$MSGFMT,;t t
37874 -s,@GMSGFMT@,$GMSGFMT,;t t
37875 -s,@XGETTEXT@,$XGETTEXT,;t t
37876 -s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
37877 -s,@CATALOGS@,$CATALOGS,;t t
37878 -s,@CATOBJEXT@,$CATOBJEXT,;t t
37879 -s,@DATADIRNAME@,$DATADIRNAME,;t t
37880 -s,@GMOFILES@,$GMOFILES,;t t
37881 -s,@INSTOBJEXT@,$INSTOBJEXT,;t t
37882 -s,@INTLDEPS@,$INTLDEPS,;t t
37883 -s,@INTLLIBS@,$INTLLIBS,;t t
37884 -s,@INTLOBJS@,$INTLOBJS,;t t
37885 -s,@POFILES@,$POFILES,;t t
37886 -s,@POSUB@,$POSUB,;t t
37887 -s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
37888 -s,@GT_NO@,$GT_NO,;t t
37889 -s,@GT_YES@,$GT_YES,;t t
37890 -s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
37891 -s,@l@,$l,;t t
37892 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
37893 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
37894 -s,@MAINT@,$MAINT,;t t
37895 -s,@HDEFINES@,$HDEFINES,;t t
37896 -s,@AR@,$AR,;t t
37897 -s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
37898 -s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
37899 -s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
37900 -s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
37901 -s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
37902 -s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
37903 -s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
37904 -s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
37905 -s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
37906 -s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
37907 -s,@BUILD_MISC@,$BUILD_MISC,;t t
37908 -s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
37909 -s,@EMULATION@,$EMULATION,;t t
37910 -s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
37911 -s,@datarootdir@,$datarootdir,;t t
37912 -s,@docdir@,$docdir,;t t
37913 -s,@htmldir@,$htmldir,;t t
37914 -s,@LIBOBJS@,$LIBOBJS,;t t
37915 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
37916 -CEOF
37917 -
37918 -_ACEOF
37919 -
37920 - cat >>$CONFIG_STATUS <<\_ACEOF
37921 - # Split the substitutions into bite-sized pieces for seds with
37922 - # small command number limits, like on Digital OSF/1 and HP-UX.
37923 - ac_max_sed_lines=48
37924 - ac_sed_frag=1 # Number of current file.
37925 - ac_beg=1 # First line for current file.
37926 - ac_end=$ac_max_sed_lines # Line after last line for current file.
37927 - ac_more_lines=:
37928 - ac_sed_cmds=
37929 - while $ac_more_lines; do
37930 - if test $ac_beg -gt 1; then
37931 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37932 - else
37933 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37934 - fi
37935 - if test ! -s $tmp/subs.frag; then
37936 - ac_more_lines=false
37937 - else
37938 - # The purpose of the label and of the branching condition is to
37939 - # speed up the sed processing (if there are no `@' at all, there
37940 - # is no need to browse any of the substitutions).
37941 - # These are the two extra sed commands mentioned above.
37942 - (echo ':t
37943 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
37944 - if test -z "$ac_sed_cmds"; then
37945 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
37946 - else
37947 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
37948 - fi
37949 - ac_sed_frag=`expr $ac_sed_frag + 1`
37950 - ac_beg=$ac_end
37951 - ac_end=`expr $ac_end + $ac_max_sed_lines`
37952 - fi
37953 - done
37954 - if test -z "$ac_sed_cmds"; then
37955 - ac_sed_cmds=cat
37956 +if test -n "$CONFIG_FILES"; then
37957 +
37958 +_ACEOF
37959 +
37960 +
37961 +
37962 +ac_delim='%!_!# '
37963 +for ac_last_try in false false false false false :; do
37964 + cat >conf$$subs.sed <<_ACEOF
37965 +SHELL!$SHELL$ac_delim
37966 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
37967 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
37968 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
37969 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
37970 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
37971 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
37972 +exec_prefix!$exec_prefix$ac_delim
37973 +prefix!$prefix$ac_delim
37974 +program_transform_name!$program_transform_name$ac_delim
37975 +bindir!$bindir$ac_delim
37976 +sbindir!$sbindir$ac_delim
37977 +libexecdir!$libexecdir$ac_delim
37978 +datarootdir!$datarootdir$ac_delim
37979 +datadir!$datadir$ac_delim
37980 +sysconfdir!$sysconfdir$ac_delim
37981 +sharedstatedir!$sharedstatedir$ac_delim
37982 +localstatedir!$localstatedir$ac_delim
37983 +includedir!$includedir$ac_delim
37984 +oldincludedir!$oldincludedir$ac_delim
37985 +docdir!$docdir$ac_delim
37986 +infodir!$infodir$ac_delim
37987 +htmldir!$htmldir$ac_delim
37988 +dvidir!$dvidir$ac_delim
37989 +pdfdir!$pdfdir$ac_delim
37990 +psdir!$psdir$ac_delim
37991 +libdir!$libdir$ac_delim
37992 +localedir!$localedir$ac_delim
37993 +mandir!$mandir$ac_delim
37994 +DEFS!$DEFS$ac_delim
37995 +ECHO_C!$ECHO_C$ac_delim
37996 +ECHO_N!$ECHO_N$ac_delim
37997 +ECHO_T!$ECHO_T$ac_delim
37998 +LIBS!$LIBS$ac_delim
37999 +build_alias!$build_alias$ac_delim
38000 +host_alias!$host_alias$ac_delim
38001 +target_alias!$target_alias$ac_delim
38002 +build!$build$ac_delim
38003 +build_cpu!$build_cpu$ac_delim
38004 +build_vendor!$build_vendor$ac_delim
38005 +build_os!$build_os$ac_delim
38006 +host!$host$ac_delim
38007 +host_cpu!$host_cpu$ac_delim
38008 +host_vendor!$host_vendor$ac_delim
38009 +host_os!$host_os$ac_delim
38010 +target!$target$ac_delim
38011 +target_cpu!$target_cpu$ac_delim
38012 +target_vendor!$target_vendor$ac_delim
38013 +target_os!$target_os$ac_delim
38014 +CC!$CC$ac_delim
38015 +CFLAGS!$CFLAGS$ac_delim
38016 +LDFLAGS!$LDFLAGS$ac_delim
38017 +CPPFLAGS!$CPPFLAGS$ac_delim
38018 +ac_ct_CC!$ac_ct_CC$ac_delim
38019 +EXEEXT!$EXEEXT$ac_delim
38020 +OBJEXT!$OBJEXT$ac_delim
38021 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
38022 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
38023 +INSTALL_DATA!$INSTALL_DATA$ac_delim
38024 +CYGPATH_W!$CYGPATH_W$ac_delim
38025 +PACKAGE!$PACKAGE$ac_delim
38026 +VERSION!$VERSION$ac_delim
38027 +ACLOCAL!$ACLOCAL$ac_delim
38028 +AUTOCONF!$AUTOCONF$ac_delim
38029 +AUTOMAKE!$AUTOMAKE$ac_delim
38030 +AUTOHEADER!$AUTOHEADER$ac_delim
38031 +MAKEINFO!$MAKEINFO$ac_delim
38032 +install_sh!$install_sh$ac_delim
38033 +STRIP!$STRIP$ac_delim
38034 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
38035 +mkdir_p!$mkdir_p$ac_delim
38036 +AWK!$AWK$ac_delim
38037 +SET_MAKE!$SET_MAKE$ac_delim
38038 +am__leading_dot!$am__leading_dot$ac_delim
38039 +AMTAR!$AMTAR$ac_delim
38040 +am__tar!$am__tar$ac_delim
38041 +am__untar!$am__untar$ac_delim
38042 +DEPDIR!$DEPDIR$ac_delim
38043 +am__include!$am__include$ac_delim
38044 +am__quote!$am__quote$ac_delim
38045 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
38046 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
38047 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
38048 +CCDEPMODE!$CCDEPMODE$ac_delim
38049 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
38050 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
38051 +LN_S!$LN_S$ac_delim
38052 +RANLIB!$RANLIB$ac_delim
38053 +LIBTOOL!$LIBTOOL$ac_delim
38054 +WARN_CFLAGS!$WARN_CFLAGS$ac_delim
38055 +NO_WERROR!$NO_WERROR$ac_delim
38056 +YACC!$YACC$ac_delim
38057 +YFLAGS!$YFLAGS$ac_delim
38058 +LEX!$LEX$ac_delim
38059 +LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
38060 +LEXLIB!$LEXLIB$ac_delim
38061 +CPP!$CPP$ac_delim
38062 +_ACEOF
38063 +
38064 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38065 + break
38066 + elif $ac_last_try; then
38067 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38068 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38069 + { (exit 1); exit 1; }; }
38070 + else
38071 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38072 fi
38073 -fi # test -n "$CONFIG_FILES"
38074 +done
38075 +
38076 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38077 +if test -n "$ac_eof"; then
38078 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38079 + ac_eof=`expr $ac_eof + 1`
38080 +fi
38081 +
38082 +cat >>$CONFIG_STATUS <<_ACEOF
38083 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
38084 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38085 +_ACEOF
38086 +sed '
38087 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38088 +s/^/s,@/; s/!/@,|#_!!_#|/
38089 +:n
38090 +t n
38091 +s/'"$ac_delim"'$/,g/; t
38092 +s/$/\\/; p
38093 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38094 +' >>$CONFIG_STATUS <conf$$subs.sed
38095 +rm -f conf$$subs.sed
38096 +cat >>$CONFIG_STATUS <<_ACEOF
38097 +CEOF$ac_eof
38098 +_ACEOF
38099 +
38100 +
38101 +ac_delim='%!_!# '
38102 +for ac_last_try in false false false false false :; do
38103 + cat >conf$$subs.sed <<_ACEOF
38104 +GREP!$GREP$ac_delim
38105 +EGREP!$EGREP$ac_delim
38106 +ALLOCA!$ALLOCA$ac_delim
38107 +USE_NLS!$USE_NLS$ac_delim
38108 +MSGFMT!$MSGFMT$ac_delim
38109 +GMSGFMT!$GMSGFMT$ac_delim
38110 +XGETTEXT!$XGETTEXT$ac_delim
38111 +USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
38112 +CATALOGS!$CATALOGS$ac_delim
38113 +CATOBJEXT!$CATOBJEXT$ac_delim
38114 +DATADIRNAME!$DATADIRNAME$ac_delim
38115 +GMOFILES!$GMOFILES$ac_delim
38116 +INSTOBJEXT!$INSTOBJEXT$ac_delim
38117 +INTLDEPS!$INTLDEPS$ac_delim
38118 +INTLLIBS!$INTLLIBS$ac_delim
38119 +INTLOBJS!$INTLOBJS$ac_delim
38120 +POFILES!$POFILES$ac_delim
38121 +POSUB!$POSUB$ac_delim
38122 +INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
38123 +GT_NO!$GT_NO$ac_delim
38124 +GT_YES!$GT_YES$ac_delim
38125 +MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
38126 +l!$l$ac_delim
38127 +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
38128 +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
38129 +MAINT!$MAINT$ac_delim
38130 +HDEFINES!$HDEFINES$ac_delim
38131 +AR!$AR$ac_delim
38132 +CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
38133 +EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
38134 +DEMANGLER_NAME!$DEMANGLER_NAME$ac_delim
38135 +NLMCONV_DEFS!$NLMCONV_DEFS$ac_delim
38136 +BUILD_NLMCONV!$BUILD_NLMCONV$ac_delim
38137 +BUILD_SRCONV!$BUILD_SRCONV$ac_delim
38138 +BUILD_DLLTOOL!$BUILD_DLLTOOL$ac_delim
38139 +DLLTOOL_DEFS!$DLLTOOL_DEFS$ac_delim
38140 +BUILD_WINDRES!$BUILD_WINDRES$ac_delim
38141 +BUILD_DLLWRAP!$BUILD_DLLWRAP$ac_delim
38142 +BUILD_MISC!$BUILD_MISC$ac_delim
38143 +OBJDUMP_DEFS!$OBJDUMP_DEFS$ac_delim
38144 +EMULATION!$EMULATION$ac_delim
38145 +EMULATION_VECTOR!$EMULATION_VECTOR$ac_delim
38146 +LIBOBJS!$LIBOBJS$ac_delim
38147 +LTLIBOBJS!$LTLIBOBJS$ac_delim
38148 +_ACEOF
38149 +
38150 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
38151 + break
38152 + elif $ac_last_try; then
38153 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38154 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38155 + { (exit 1); exit 1; }; }
38156 + else
38157 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38158 + fi
38159 +done
38160
38161 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38162 +if test -n "$ac_eof"; then
38163 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38164 + ac_eof=`expr $ac_eof + 1`
38165 +fi
38166 +
38167 +cat >>$CONFIG_STATUS <<_ACEOF
38168 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
38169 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
38170 +_ACEOF
38171 +sed '
38172 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38173 +s/^/s,@/; s/!/@,|#_!!_#|/
38174 +:n
38175 +t n
38176 +s/'"$ac_delim"'$/,g/; t
38177 +s/$/\\/; p
38178 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38179 +' >>$CONFIG_STATUS <conf$$subs.sed
38180 +rm -f conf$$subs.sed
38181 +cat >>$CONFIG_STATUS <<_ACEOF
38182 +:end
38183 +s/|#_!!_#|//g
38184 +CEOF$ac_eof
38185 _ACEOF
38186 +
38187 +
38188 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
38189 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38190 +# trailing colons and then remove the whole line if VPATH becomes empty
38191 +# (actually we leave an empty line to preserve line numbers).
38192 +if test "x$srcdir" = x.; then
38193 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
38194 +s/:*\$(srcdir):*/:/
38195 +s/:*\${srcdir}:*/:/
38196 +s/:*@srcdir@:*/:/
38197 +s/^\([^=]*=[ ]*\):*/\1/
38198 +s/:*$//
38199 +s/^[^=]*=[ ]*$//
38200 +}'
38201 +fi
38202 +
38203 cat >>$CONFIG_STATUS <<\_ACEOF
38204 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
38205 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38206 - case $ac_file in
38207 - - | *:- | *:-:* ) # input from stdin
38208 - cat >$tmp/stdin
38209 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38210 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38211 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38212 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38213 - * ) ac_file_in=$ac_file.in ;;
38214 +fi # test -n "$CONFIG_FILES"
38215 +
38216 +
38217 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
38218 +do
38219 + case $ac_tag in
38220 + :[FHLC]) ac_mode=$ac_tag; continue;;
38221 + esac
38222 + case $ac_mode$ac_tag in
38223 + :[FHL]*:*);;
38224 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
38225 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
38226 + { (exit 1); exit 1; }; };;
38227 + :[FH]-) ac_tag=-:-;;
38228 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38229 + esac
38230 + ac_save_IFS=$IFS
38231 + IFS=:
38232 + set x $ac_tag
38233 + IFS=$ac_save_IFS
38234 + shift
38235 + ac_file=$1
38236 + shift
38237 +
38238 + case $ac_mode in
38239 + :L) ac_source=$1;;
38240 + :[FH])
38241 + ac_file_inputs=
38242 + for ac_f
38243 + do
38244 + case $ac_f in
38245 + -) ac_f="$tmp/stdin";;
38246 + *) # Look for the file first in the build tree, then in the source tree
38247 + # (if the path is not absolute). The absolute path cannot be DOS-style,
38248 + # because $ac_f cannot contain `:'.
38249 + test -f "$ac_f" ||
38250 + case $ac_f in
38251 + [\\/$]*) false;;
38252 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38253 + esac ||
38254 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
38255 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
38256 + { (exit 1); exit 1; }; };;
38257 + esac
38258 + ac_file_inputs="$ac_file_inputs $ac_f"
38259 + done
38260 +
38261 + # Let's still pretend it is `configure' which instantiates (i.e., don't
38262 + # use $as_me), people would be surprised to read:
38263 + # /* config.h. Generated by config.status. */
38264 + configure_input="Generated from "`IFS=:
38265 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
38266 + if test x"$ac_file" != x-; then
38267 + configure_input="$ac_file. $configure_input"
38268 + { echo "$as_me:$LINENO: creating $ac_file" >&5
38269 +echo "$as_me: creating $ac_file" >&6;}
38270 + fi
38271 +
38272 + case $ac_tag in
38273 + *:-:* | *:-) cat >"$tmp/stdin";;
38274 + esac
38275 + ;;
38276 esac
38277
38278 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
38279 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38280 + ac_dir=`$as_dirname -- "$ac_file" ||
38281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38282 X"$ac_file" : 'X\(//\)[^/]' \| \
38283 X"$ac_file" : 'X\(//\)$' \| \
38284 - X"$ac_file" : 'X\(/\)' \| \
38285 - . : '\(.\)' 2>/dev/null ||
38286 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38287 echo X"$ac_file" |
38288 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38289 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38290 - /^X\(\/\/\)$/{ s//\1/; q; }
38291 - /^X\(\/\).*/{ s//\1/; q; }
38292 - s/.*/./; q'`
38293 - { if $as_mkdir_p; then
38294 - mkdir -p "$ac_dir"
38295 - else
38296 - as_dir="$ac_dir"
38297 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38298 + s//\1/
38299 + q
38300 + }
38301 + /^X\(\/\/\)[^/].*/{
38302 + s//\1/
38303 + q
38304 + }
38305 + /^X\(\/\/\)$/{
38306 + s//\1/
38307 + q
38308 + }
38309 + /^X\(\/\).*/{
38310 + s//\1/
38311 + q
38312 + }
38313 + s/.*/./; q'`
38314 + { as_dir="$ac_dir"
38315 + case $as_dir in #(
38316 + -*) as_dir=./$as_dir;;
38317 + esac
38318 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
38319 as_dirs=
38320 - while test ! -d "$as_dir"; do
38321 - as_dirs="$as_dir $as_dirs"
38322 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
38323 + while :; do
38324 + case $as_dir in #(
38325 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
38326 + *) as_qdir=$as_dir;;
38327 + esac
38328 + as_dirs="'$as_qdir' $as_dirs"
38329 + as_dir=`$as_dirname -- "$as_dir" ||
38330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38331 X"$as_dir" : 'X\(//\)[^/]' \| \
38332 X"$as_dir" : 'X\(//\)$' \| \
38333 - X"$as_dir" : 'X\(/\)' \| \
38334 - . : '\(.\)' 2>/dev/null ||
38335 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38336 echo X"$as_dir" |
38337 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38338 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38339 - /^X\(\/\/\)$/{ s//\1/; q; }
38340 - /^X\(\/\).*/{ s//\1/; q; }
38341 - s/.*/./; q'`
38342 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38343 + s//\1/
38344 + q
38345 + }
38346 + /^X\(\/\/\)[^/].*/{
38347 + s//\1/
38348 + q
38349 + }
38350 + /^X\(\/\/\)$/{
38351 + s//\1/
38352 + q
38353 + }
38354 + /^X\(\/\).*/{
38355 + s//\1/
38356 + q
38357 + }
38358 + s/.*/./; q'`
38359 + test -d "$as_dir" && break
38360 done
38361 - test ! -n "$as_dirs" || mkdir $as_dirs
38362 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38363 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38364 + test -z "$as_dirs" || eval "mkdir $as_dirs"
38365 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
38366 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
38367 { (exit 1); exit 1; }; }; }
38368 -
38369 ac_builddir=.
38370
38371 -if test "$ac_dir" != .; then
38372 +case "$ac_dir" in
38373 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38374 +*)
38375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38376 - # A "../" for each directory in $ac_dir_suffix.
38377 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38378 -else
38379 - ac_dir_suffix= ac_top_builddir=
38380 -fi
38381 + # A ".." for each directory in $ac_dir_suffix.
38382 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
38383 + case $ac_top_builddir_sub in
38384 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38385 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38386 + esac ;;
38387 +esac
38388 +ac_abs_top_builddir=$ac_pwd
38389 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
38390 +# for backward compatibility:
38391 +ac_top_builddir=$ac_top_build_prefix
38392
38393 case $srcdir in
38394 - .) # No --srcdir option. We are building in place.
38395 + .) # We are building in place.
38396 ac_srcdir=.
38397 - if test -z "$ac_top_builddir"; then
38398 - ac_top_srcdir=.
38399 - else
38400 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38401 - fi ;;
38402 - [\\/]* | ?:[\\/]* ) # Absolute path.
38403 + ac_top_srcdir=$ac_top_builddir_sub
38404 + ac_abs_top_srcdir=$ac_pwd ;;
38405 + [\\/]* | ?:[\\/]* ) # Absolute name.
38406 ac_srcdir=$srcdir$ac_dir_suffix;
38407 - ac_top_srcdir=$srcdir ;;
38408 - *) # Relative path.
38409 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38410 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
38411 -esac
38412 + ac_top_srcdir=$srcdir
38413 + ac_abs_top_srcdir=$srcdir ;;
38414 + *) # Relative name.
38415 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38416 + ac_top_srcdir=$ac_top_build_prefix$srcdir
38417 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38418 +esac
38419 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38420
38421 -# Do not use `cd foo && pwd` to compute absolute paths, because
38422 -# the directories may not exist.
38423 -case `pwd` in
38424 -.) ac_abs_builddir="$ac_dir";;
38425 -*)
38426 - case "$ac_dir" in
38427 - .) ac_abs_builddir=`pwd`;;
38428 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
38429 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
38430 - esac;;
38431 -esac
38432 -case $ac_abs_builddir in
38433 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
38434 -*)
38435 - case ${ac_top_builddir}. in
38436 - .) ac_abs_top_builddir=$ac_abs_builddir;;
38437 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
38438 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
38439 - esac;;
38440 -esac
38441 -case $ac_abs_builddir in
38442 -.) ac_abs_srcdir=$ac_srcdir;;
38443 -*)
38444 - case $ac_srcdir in
38445 - .) ac_abs_srcdir=$ac_abs_builddir;;
38446 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
38447 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
38448 - esac;;
38449 -esac
38450 -case $ac_abs_builddir in
38451 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
38452 -*)
38453 - case $ac_top_srcdir in
38454 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
38455 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
38456 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
38457 - esac;;
38458 -esac
38459
38460 + case $ac_mode in
38461 + :F)
38462 + #
38463 + # CONFIG_FILE
38464 + #
38465
38466 case $INSTALL in
38467 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38468 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
38469 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38470 esac
38471 +_ACEOF
38472
38473 - if test x"$ac_file" != x-; then
38474 - { echo "$as_me:$LINENO: creating $ac_file" >&5
38475 -echo "$as_me: creating $ac_file" >&6;}
38476 - rm -f "$ac_file"
38477 - fi
38478 - # Let's still pretend it is `configure' which instantiates (i.e., don't
38479 - # use $as_me), people would be surprised to read:
38480 - # /* config.h. Generated by config.status. */
38481 - if test x"$ac_file" = x-; then
38482 - configure_input=
38483 - else
38484 - configure_input="$ac_file. "
38485 - fi
38486 - configure_input=$configure_input"Generated from `echo $ac_file_in |
38487 - sed 's,.*/,,'` by configure."
38488 -
38489 - # First look for the input files in the build tree, otherwise in the
38490 - # src tree.
38491 - ac_file_inputs=`IFS=:
38492 - for f in $ac_file_in; do
38493 - case $f in
38494 - -) echo $tmp/stdin ;;
38495 - [\\/$]*)
38496 - # Absolute (can't be DOS-style, as IFS=:)
38497 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38498 -echo "$as_me: error: cannot find input file: $f" >&2;}
38499 - { (exit 1); exit 1; }; }
38500 - echo "$f";;
38501 - *) # Relative
38502 - if test -f "$f"; then
38503 - # Build tree
38504 - echo "$f"
38505 - elif test -f "$srcdir/$f"; then
38506 - # Source tree
38507 - echo "$srcdir/$f"
38508 - else
38509 - # /dev/null tree
38510 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38511 -echo "$as_me: error: cannot find input file: $f" >&2;}
38512 - { (exit 1); exit 1; }; }
38513 - fi;;
38514 - esac
38515 - done` || { (exit 1); exit 1; }
38516 +cat >>$CONFIG_STATUS <<\_ACEOF
38517 +# If the template does not know about datarootdir, expand it.
38518 +# FIXME: This hack should be removed a few years after 2.60.
38519 +ac_datarootdir_hack=; ac_datarootdir_seen=
38520 +
38521 +case `sed -n '/datarootdir/ {
38522 + p
38523 + q
38524 +}
38525 +/@datadir@/p
38526 +/@docdir@/p
38527 +/@infodir@/p
38528 +/@localedir@/p
38529 +/@mandir@/p
38530 +' $ac_file_inputs` in
38531 +*datarootdir*) ac_datarootdir_seen=yes;;
38532 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38533 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38534 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38535 +_ACEOF
38536 +cat >>$CONFIG_STATUS <<_ACEOF
38537 + ac_datarootdir_hack='
38538 + s&@datadir@&$datadir&g
38539 + s&@docdir@&$docdir&g
38540 + s&@infodir@&$infodir&g
38541 + s&@localedir@&$localedir&g
38542 + s&@mandir@&$mandir&g
38543 + s&\\\${datarootdir}&$datarootdir&g' ;;
38544 +esac
38545 _ACEOF
38546 +
38547 +# Neutralize VPATH when `$srcdir' = `.'.
38548 +# Shell code in configure.ac might set extrasub.
38549 +# FIXME: do we really want to maintain this feature?
38550 cat >>$CONFIG_STATUS <<_ACEOF
38551 sed "$ac_vpsub
38552 $extrasub
38553 @@ -11790,248 +12317,130 @@ _ACEOF
38554 cat >>$CONFIG_STATUS <<\_ACEOF
38555 :t
38556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38557 -s,@configure_input@,$configure_input,;t t
38558 -s,@srcdir@,$ac_srcdir,;t t
38559 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
38560 -s,@top_srcdir@,$ac_top_srcdir,;t t
38561 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
38562 -s,@builddir@,$ac_builddir,;t t
38563 -s,@abs_builddir@,$ac_abs_builddir,;t t
38564 -s,@top_builddir@,$ac_top_builddir,;t t
38565 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
38566 -s,@INSTALL@,$ac_INSTALL,;t t
38567 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
38568 - rm -f $tmp/stdin
38569 - if test x"$ac_file" != x-; then
38570 - mv $tmp/out $ac_file
38571 - else
38572 - cat $tmp/out
38573 - rm -f $tmp/out
38574 - fi
38575 -
38576 -done
38577 -_ACEOF
38578 -cat >>$CONFIG_STATUS <<\_ACEOF
38579 -
38580 -#
38581 -# CONFIG_HEADER section.
38582 -#
38583 -
38584 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
38585 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
38586 -#
38587 -# ac_d sets the value in "#define NAME VALUE" lines.
38588 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
38589 -ac_dB='[ ].*$,\1#\2'
38590 -ac_dC=' '
38591 -ac_dD=',;t'
38592 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
38593 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
38594 -ac_uB='$,\1#\2define\3'
38595 -ac_uC=' '
38596 -ac_uD=',;t'
38597 +s&@configure_input@&$configure_input&;t t
38598 +s&@top_builddir@&$ac_top_builddir_sub&;t t
38599 +s&@srcdir@&$ac_srcdir&;t t
38600 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
38601 +s&@top_srcdir@&$ac_top_srcdir&;t t
38602 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38603 +s&@builddir@&$ac_builddir&;t t
38604 +s&@abs_builddir@&$ac_abs_builddir&;t t
38605 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38606 +s&@INSTALL@&$ac_INSTALL&;t t
38607 +$ac_datarootdir_hack
38608 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
38609 +
38610 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38611 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
38612 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
38613 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38614 +which seems to be undefined. Please make sure it is defined." >&5
38615 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38616 +which seems to be undefined. Please make sure it is defined." >&2;}
38617
38618 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
38619 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38620 + rm -f "$tmp/stdin"
38621 case $ac_file in
38622 - - | *:- | *:-:* ) # input from stdin
38623 - cat >$tmp/stdin
38624 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38625 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38626 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38627 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38628 - * ) ac_file_in=$ac_file.in ;;
38629 + -) cat "$tmp/out"; rm -f "$tmp/out";;
38630 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
38631 esac
38632 + ;;
38633 + :H)
38634 + #
38635 + # CONFIG_HEADER
38636 + #
38637 +_ACEOF
38638 +
38639 +# Transform confdefs.h into a sed script `conftest.defines', that
38640 +# substitutes the proper values into config.h.in to produce config.h.
38641 +rm -f conftest.defines conftest.tail
38642 +# First, append a space to every undef/define line, to ease matching.
38643 +echo 's/$/ /' >conftest.defines
38644 +# Then, protect against being on the right side of a sed subst, or in
38645 +# an unquoted here document, in config.status. If some macros were
38646 +# called several times there might be several #defines for the same
38647 +# symbol, which is useless. But do not sort them, since the last
38648 +# AC_DEFINE must be honored.
38649 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38650 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
38651 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
38652 +# PARAMS is the parameter list in the macro definition--in most cases, it's
38653 +# just an empty string.
38654 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
38655 +ac_dB='\\)[ (].*,\\1define\\2'
38656 +ac_dC=' '
38657 +ac_dD=' ,'
38658
38659 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
38660 -echo "$as_me: creating $ac_file" >&6;}
38661 -
38662 - # First look for the input files in the build tree, otherwise in the
38663 - # src tree.
38664 - ac_file_inputs=`IFS=:
38665 - for f in $ac_file_in; do
38666 - case $f in
38667 - -) echo $tmp/stdin ;;
38668 - [\\/$]*)
38669 - # Absolute (can't be DOS-style, as IFS=:)
38670 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38671 -echo "$as_me: error: cannot find input file: $f" >&2;}
38672 - { (exit 1); exit 1; }; }
38673 - # Do quote $f, to prevent DOS paths from being IFS'd.
38674 - echo "$f";;
38675 - *) # Relative
38676 - if test -f "$f"; then
38677 - # Build tree
38678 - echo "$f"
38679 - elif test -f "$srcdir/$f"; then
38680 - # Source tree
38681 - echo "$srcdir/$f"
38682 - else
38683 - # /dev/null tree
38684 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38685 -echo "$as_me: error: cannot find input file: $f" >&2;}
38686 - { (exit 1); exit 1; }; }
38687 - fi;;
38688 - esac
38689 - done` || { (exit 1); exit 1; }
38690 - # Remove the trailing spaces.
38691 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
38692 -
38693 -_ACEOF
38694 -
38695 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
38696 -# `conftest.undefs', that substitutes the proper values into
38697 -# config.h.in to produce config.h. The first handles `#define'
38698 -# templates, and the second `#undef' templates.
38699 -# And first: Protect against being on the right side of a sed subst in
38700 -# config.status. Protect against being in an unquoted here document
38701 -# in config.status.
38702 -rm -f conftest.defines conftest.undefs
38703 -# Using a here document instead of a string reduces the quoting nightmare.
38704 -# Putting comments in sed scripts is not portable.
38705 -#
38706 -# `end' is used to avoid that the second main sed command (meant for
38707 -# 0-ary CPP macros) applies to n-ary macro definitions.
38708 -# See the Autoconf documentation for `clear'.
38709 -cat >confdef2sed.sed <<\_ACEOF
38710 -s/[\\&,]/\\&/g
38711 -s,[\\$`],\\&,g
38712 -t clear
38713 -: clear
38714 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
38715 -t end
38716 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
38717 -: end
38718 -_ACEOF
38719 -# If some macros were called several times there might be several times
38720 -# the same #defines, which is useless. Nevertheless, we may not want to
38721 -# sort them, since we want the *last* AC-DEFINE to be honored.
38722 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
38723 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
38724 -rm -f confdef2sed.sed
38725 +uniq confdefs.h |
38726 + sed -n '
38727 + t rset
38728 + :rset
38729 + s/^[ ]*#[ ]*define[ ][ ]*//
38730 + t ok
38731 + d
38732 + :ok
38733 + s/[\\&,]/\\&/g
38734 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
38735 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
38736 + ' >>conftest.defines
38737
38738 -# This sed command replaces #undef with comments. This is necessary, for
38739 +# Remove the space that was appended to ease matching.
38740 +# Then replace #undef with comments. This is necessary, for
38741 # example, in the case of _POSIX_SOURCE, which is predefined and required
38742 # on some systems where configure will not decide to define it.
38743 -cat >>conftest.undefs <<\_ACEOF
38744 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
38745 +# (The regexp can be short, since the line contains either #define or #undef.)
38746 +echo 's/ $//
38747 +s,^[ #]*u.*,/* & */,' >>conftest.defines
38748 +
38749 +# Break up conftest.defines:
38750 +ac_max_sed_lines=50
38751 +
38752 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
38753 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
38754 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
38755 +# et cetera.
38756 +ac_in='$ac_file_inputs'
38757 +ac_out='"$tmp/out1"'
38758 +ac_nxt='"$tmp/out2"'
38759 +
38760 +while :
38761 +do
38762 + # Write a here document:
38763 + cat >>$CONFIG_STATUS <<_ACEOF
38764 + # First, check the format of the line:
38765 + cat >"\$tmp/defines.sed" <<\\CEOF
38766 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
38767 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
38768 +b
38769 +:def
38770 _ACEOF
38771 -
38772 -# Break up conftest.defines because some shells have a limit on the size
38773 -# of here documents, and old seds have small limits too (100 cmds).
38774 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
38775 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
38776 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
38777 -echo ' :' >>$CONFIG_STATUS
38778 -rm -f conftest.tail
38779 -while grep . conftest.defines >/dev/null
38780 -do
38781 - # Write a limited-size here document to $tmp/defines.sed.
38782 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
38783 - # Speed up: don't consider the non `#define' lines.
38784 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
38785 - # Work around the forget-to-reset-the-flag bug.
38786 - echo 't clr' >>$CONFIG_STATUS
38787 - echo ': clr' >>$CONFIG_STATUS
38788 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
38789 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
38790 echo 'CEOF
38791 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
38792 - rm -f $tmp/in
38793 - mv $tmp/out $tmp/in
38794 -' >>$CONFIG_STATUS
38795 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
38796 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
38797 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
38798 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
38799 + grep . conftest.tail >/dev/null || break
38800 rm -f conftest.defines
38801 mv conftest.tail conftest.defines
38802 done
38803 -rm -f conftest.defines
38804 -echo ' fi # grep' >>$CONFIG_STATUS
38805 -echo >>$CONFIG_STATUS
38806 -
38807 -# Break up conftest.undefs because some shells have a limit on the size
38808 -# of here documents, and old seds have small limits too (100 cmds).
38809 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
38810 -rm -f conftest.tail
38811 -while grep . conftest.undefs >/dev/null
38812 -do
38813 - # Write a limited-size here document to $tmp/undefs.sed.
38814 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38815 - # Speed up: don't consider the non `#undef'
38816 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
38817 - # Work around the forget-to-reset-the-flag bug.
38818 - echo 't clr' >>$CONFIG_STATUS
38819 - echo ': clr' >>$CONFIG_STATUS
38820 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
38821 - echo 'CEOF
38822 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38823 - rm -f $tmp/in
38824 - mv $tmp/out $tmp/in
38825 -' >>$CONFIG_STATUS
38826 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38827 - rm -f conftest.undefs
38828 - mv conftest.tail conftest.undefs
38829 -done
38830 -rm -f conftest.undefs
38831 +rm -f conftest.defines conftest.tail
38832
38833 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
38834 cat >>$CONFIG_STATUS <<\_ACEOF
38835 - # Let's still pretend it is `configure' which instantiates (i.e., don't
38836 - # use $as_me), people would be surprised to read:
38837 - # /* config.h. Generated by config.status. */
38838 - if test x"$ac_file" = x-; then
38839 - echo "/* Generated by configure. */" >$tmp/config.h
38840 - else
38841 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
38842 - fi
38843 - cat $tmp/in >>$tmp/config.h
38844 - rm -f $tmp/in
38845 if test x"$ac_file" != x-; then
38846 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
38847 + echo "/* $configure_input */" >"$tmp/config.h"
38848 + cat "$ac_result" >>"$tmp/config.h"
38849 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
38850 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38851 echo "$as_me: $ac_file is unchanged" >&6;}
38852 else
38853 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38854 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38855 - X"$ac_file" : 'X\(//\)[^/]' \| \
38856 - X"$ac_file" : 'X\(//\)$' \| \
38857 - X"$ac_file" : 'X\(/\)' \| \
38858 - . : '\(.\)' 2>/dev/null ||
38859 -echo X"$ac_file" |
38860 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38861 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38862 - /^X\(\/\/\)$/{ s//\1/; q; }
38863 - /^X\(\/\).*/{ s//\1/; q; }
38864 - s/.*/./; q'`
38865 - { if $as_mkdir_p; then
38866 - mkdir -p "$ac_dir"
38867 - else
38868 - as_dir="$ac_dir"
38869 - as_dirs=
38870 - while test ! -d "$as_dir"; do
38871 - as_dirs="$as_dir $as_dirs"
38872 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
38873 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38874 - X"$as_dir" : 'X\(//\)[^/]' \| \
38875 - X"$as_dir" : 'X\(//\)$' \| \
38876 - X"$as_dir" : 'X\(/\)' \| \
38877 - . : '\(.\)' 2>/dev/null ||
38878 -echo X"$as_dir" |
38879 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38880 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38881 - /^X\(\/\/\)$/{ s//\1/; q; }
38882 - /^X\(\/\).*/{ s//\1/; q; }
38883 - s/.*/./; q'`
38884 - done
38885 - test ! -n "$as_dirs" || mkdir $as_dirs
38886 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38887 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38888 - { (exit 1); exit 1; }; }; }
38889 -
38890 rm -f $ac_file
38891 - mv $tmp/config.h $ac_file
38892 + mv "$tmp/config.h" $ac_file
38893 fi
38894 else
38895 - cat $tmp/config.h
38896 - rm -f $tmp/config.h
38897 + echo "/* $configure_input */"
38898 + cat "$ac_result"
38899 fi
38900 + rm -f "$tmp/out12"
38901 # Compute $ac_file's index in $config_headers.
38902 _am_stamp_count=1
38903 for _am_header in $config_headers :; do
38904 @@ -12042,135 +12451,39 @@ for _am_header in $config_headers :; do
38905 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38906 esac
38907 done
38908 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
38909 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
38910 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38911 X$ac_file : 'X\(//\)[^/]' \| \
38912 X$ac_file : 'X\(//\)$' \| \
38913 - X$ac_file : 'X\(/\)' \| \
38914 - . : '\(.\)' 2>/dev/null ||
38915 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
38916 echo X$ac_file |
38917 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38918 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38919 - /^X\(\/\/\)$/{ s//\1/; q; }
38920 - /^X\(\/\).*/{ s//\1/; q; }
38921 - s/.*/./; q'`/stamp-h$_am_stamp_count
38922 -done
38923 -_ACEOF
38924 -cat >>$CONFIG_STATUS <<\_ACEOF
38925 -
38926 -#
38927 -# CONFIG_COMMANDS section.
38928 -#
38929 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
38930 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38931 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38932 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
38933 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38934 - X"$ac_dest" : 'X\(//\)[^/]' \| \
38935 - X"$ac_dest" : 'X\(//\)$' \| \
38936 - X"$ac_dest" : 'X\(/\)' \| \
38937 - . : '\(.\)' 2>/dev/null ||
38938 -echo X"$ac_dest" |
38939 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38940 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38941 - /^X\(\/\/\)$/{ s//\1/; q; }
38942 - /^X\(\/\).*/{ s//\1/; q; }
38943 - s/.*/./; q'`
38944 - { if $as_mkdir_p; then
38945 - mkdir -p "$ac_dir"
38946 - else
38947 - as_dir="$ac_dir"
38948 - as_dirs=
38949 - while test ! -d "$as_dir"; do
38950 - as_dirs="$as_dir $as_dirs"
38951 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
38952 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38953 - X"$as_dir" : 'X\(//\)[^/]' \| \
38954 - X"$as_dir" : 'X\(//\)$' \| \
38955 - X"$as_dir" : 'X\(/\)' \| \
38956 - . : '\(.\)' 2>/dev/null ||
38957 -echo X"$as_dir" |
38958 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38959 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38960 - /^X\(\/\/\)$/{ s//\1/; q; }
38961 - /^X\(\/\).*/{ s//\1/; q; }
38962 - s/.*/./; q'`
38963 - done
38964 - test ! -n "$as_dirs" || mkdir $as_dirs
38965 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38966 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38967 - { (exit 1); exit 1; }; }; }
38968 -
38969 - ac_builddir=.
38970 -
38971 -if test "$ac_dir" != .; then
38972 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38973 - # A "../" for each directory in $ac_dir_suffix.
38974 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38975 -else
38976 - ac_dir_suffix= ac_top_builddir=
38977 -fi
38978 -
38979 -case $srcdir in
38980 - .) # No --srcdir option. We are building in place.
38981 - ac_srcdir=.
38982 - if test -z "$ac_top_builddir"; then
38983 - ac_top_srcdir=.
38984 - else
38985 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38986 - fi ;;
38987 - [\\/]* | ?:[\\/]* ) # Absolute path.
38988 - ac_srcdir=$srcdir$ac_dir_suffix;
38989 - ac_top_srcdir=$srcdir ;;
38990 - *) # Relative path.
38991 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38992 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
38993 -esac
38994 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38995 + s//\1/
38996 + q
38997 + }
38998 + /^X\(\/\/\)[^/].*/{
38999 + s//\1/
39000 + q
39001 + }
39002 + /^X\(\/\/\)$/{
39003 + s//\1/
39004 + q
39005 + }
39006 + /^X\(\/\).*/{
39007 + s//\1/
39008 + q
39009 + }
39010 + s/.*/./; q'`/stamp-h$_am_stamp_count
39011 + ;;
39012
39013 -# Do not use `cd foo && pwd` to compute absolute paths, because
39014 -# the directories may not exist.
39015 -case `pwd` in
39016 -.) ac_abs_builddir="$ac_dir";;
39017 -*)
39018 - case "$ac_dir" in
39019 - .) ac_abs_builddir=`pwd`;;
39020 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39021 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
39022 - esac;;
39023 -esac
39024 -case $ac_abs_builddir in
39025 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
39026 -*)
39027 - case ${ac_top_builddir}. in
39028 - .) ac_abs_top_builddir=$ac_abs_builddir;;
39029 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39030 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39031 - esac;;
39032 -esac
39033 -case $ac_abs_builddir in
39034 -.) ac_abs_srcdir=$ac_srcdir;;
39035 -*)
39036 - case $ac_srcdir in
39037 - .) ac_abs_srcdir=$ac_abs_builddir;;
39038 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39039 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39040 - esac;;
39041 -esac
39042 -case $ac_abs_builddir in
39043 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
39044 -*)
39045 - case $ac_top_srcdir in
39046 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
39047 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39048 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39049 - esac;;
39050 -esac
39051 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39052 +echo "$as_me: executing $ac_file commands" >&6;}
39053 + ;;
39054 + esac
39055
39056
39057 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
39058 -echo "$as_me: executing $ac_dest commands" >&6;}
39059 - case $ac_dest in
39060 - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39061 + case $ac_file$ac_mode in
39062 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39063 # Strip MF so we end up with the name of the file.
39064 mf=`echo "$mf" | sed -e 's/:.*$//'`
39065 # Check whether this is an Automake generated Makefile or not.
39066 @@ -12180,18 +12493,29 @@ echo "$as_me: executing $ac_dest command
39067 # each Makefile.in and add a new line on top of each file to say so.
39068 # So let's grep whole file.
39069 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39070 - dirpart=`(dirname "$mf") 2>/dev/null ||
39071 + dirpart=`$as_dirname -- "$mf" ||
39072 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39073 X"$mf" : 'X\(//\)[^/]' \| \
39074 X"$mf" : 'X\(//\)$' \| \
39075 - X"$mf" : 'X\(/\)' \| \
39076 - . : '\(.\)' 2>/dev/null ||
39077 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39078 echo X"$mf" |
39079 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39080 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39081 - /^X\(\/\/\)$/{ s//\1/; q; }
39082 - /^X\(\/\).*/{ s//\1/; q; }
39083 - s/.*/./; q'`
39084 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39085 + s//\1/
39086 + q
39087 + }
39088 + /^X\(\/\/\)[^/].*/{
39089 + s//\1/
39090 + q
39091 + }
39092 + /^X\(\/\/\)$/{
39093 + s//\1/
39094 + q
39095 + }
39096 + /^X\(\/\).*/{
39097 + s//\1/
39098 + q
39099 + }
39100 + s/.*/./; q'`
39101 else
39102 continue
39103 fi
39104 @@ -12213,58 +12537,84 @@ echo X"$mf" |
39105 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39106 # Make sure the directory exists.
39107 test -f "$dirpart/$file" && continue
39108 - fdir=`(dirname "$file") 2>/dev/null ||
39109 + fdir=`$as_dirname -- "$file" ||
39110 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39111 X"$file" : 'X\(//\)[^/]' \| \
39112 X"$file" : 'X\(//\)$' \| \
39113 - X"$file" : 'X\(/\)' \| \
39114 - . : '\(.\)' 2>/dev/null ||
39115 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39116 echo X"$file" |
39117 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39118 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39119 - /^X\(\/\/\)$/{ s//\1/; q; }
39120 - /^X\(\/\).*/{ s//\1/; q; }
39121 - s/.*/./; q'`
39122 - { if $as_mkdir_p; then
39123 - mkdir -p $dirpart/$fdir
39124 - else
39125 - as_dir=$dirpart/$fdir
39126 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39127 + s//\1/
39128 + q
39129 + }
39130 + /^X\(\/\/\)[^/].*/{
39131 + s//\1/
39132 + q
39133 + }
39134 + /^X\(\/\/\)$/{
39135 + s//\1/
39136 + q
39137 + }
39138 + /^X\(\/\).*/{
39139 + s//\1/
39140 + q
39141 + }
39142 + s/.*/./; q'`
39143 + { as_dir=$dirpart/$fdir
39144 + case $as_dir in #(
39145 + -*) as_dir=./$as_dir;;
39146 + esac
39147 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39148 as_dirs=
39149 - while test ! -d "$as_dir"; do
39150 - as_dirs="$as_dir $as_dirs"
39151 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
39152 + while :; do
39153 + case $as_dir in #(
39154 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39155 + *) as_qdir=$as_dir;;
39156 + esac
39157 + as_dirs="'$as_qdir' $as_dirs"
39158 + as_dir=`$as_dirname -- "$as_dir" ||
39159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39160 X"$as_dir" : 'X\(//\)[^/]' \| \
39161 X"$as_dir" : 'X\(//\)$' \| \
39162 - X"$as_dir" : 'X\(/\)' \| \
39163 - . : '\(.\)' 2>/dev/null ||
39164 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39165 echo X"$as_dir" |
39166 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39167 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39168 - /^X\(\/\/\)$/{ s//\1/; q; }
39169 - /^X\(\/\).*/{ s//\1/; q; }
39170 - s/.*/./; q'`
39171 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39172 + s//\1/
39173 + q
39174 + }
39175 + /^X\(\/\/\)[^/].*/{
39176 + s//\1/
39177 + q
39178 + }
39179 + /^X\(\/\/\)$/{
39180 + s//\1/
39181 + q
39182 + }
39183 + /^X\(\/\).*/{
39184 + s//\1/
39185 + q
39186 + }
39187 + s/.*/./; q'`
39188 + test -d "$as_dir" && break
39189 done
39190 - test ! -n "$as_dirs" || mkdir $as_dirs
39191 - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
39192 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
39193 + test -z "$as_dirs" || eval "mkdir $as_dirs"
39194 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39195 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
39196 { (exit 1); exit 1; }; }; }
39197 -
39198 # echo "creating $dirpart/$file"
39199 echo '# dummy' > "$dirpart/$file"
39200 done
39201 done
39202 ;;
39203 - default )
39204 + "default":C)
39205 case "x$CONFIG_FILES" in
39206 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
39207 esac
39208 ;;
39209 +
39210 esac
39211 -done
39212 -_ACEOF
39213 +done # for ac_tag
39214
39215 -cat >>$CONFIG_STATUS <<\_ACEOF
39216
39217 { (exit 0); exit 0; }
39218 _ACEOF
39219 --- a/binutils/doc/binutils.info
39220 +++ b/binutils/doc/binutils.info
39221 @@ -1,5 +1,7 @@
39222 -This is ../.././binutils/doc/binutils.info, produced by makeinfo
39223 -version 4.8 from ../.././binutils/doc/binutils.texi.
39224 +This is
39225 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/binutils/doc/binutils.info,
39226 +produced by makeinfo version 4.8 from
39227 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/binutils/doc/binutils.texi.
39228
39229 START-INFO-DIR-ENTRY
39230 * Binutils: (binutils). The GNU binary utilities.
39231 @@ -3803,33 +3805,33 @@ Index
39232
39233 \1f
39234 Tag Table:
39235 -Node: Top\7f1751
39236 -Node: ar\7f3304
39237 -Node: ar cmdline\7f5482
39238 -Node: ar scripts\7f13625
39239 -Node: nm\7f19313
39240 -Node: objcopy\7f27509
39241 -Node: objdump\7f50561
39242 -Node: ranlib\7f65474
39243 -Node: size\7f66229
39244 -Node: strings\7f69076
39245 -Node: strip\7f71426
39246 -Node: c++filt\7f76905
39247 -Ref: c++filt-Footnote-1\7f81833
39248 -Node: addr2line\7f81939
39249 -Node: nlmconv\7f85210
39250 -Node: windres\7f87816
39251 -Node: dlltool\7f93549
39252 -Node: def file format\7f104387
39253 -Node: readelf\7f106125
39254 -Node: Common Options\7f110833
39255 -Node: Selecting The Target System\7f111873
39256 -Node: Target Selection\7f112805
39257 -Node: Architecture Selection\7f114787
39258 -Node: Reporting Bugs\7f115615
39259 -Node: Bug Criteria\7f116394
39260 -Node: Bug Reporting\7f116947
39261 -Node: GNU Free Documentation License\7f124041
39262 -Node: Index\7f143773
39263 +Node: Top\7f1885
39264 +Node: ar\7f3438
39265 +Node: ar cmdline\7f5616
39266 +Node: ar scripts\7f13759
39267 +Node: nm\7f19447
39268 +Node: objcopy\7f27643
39269 +Node: objdump\7f50695
39270 +Node: ranlib\7f65608
39271 +Node: size\7f66363
39272 +Node: strings\7f69210
39273 +Node: strip\7f71560
39274 +Node: c++filt\7f77039
39275 +Ref: c++filt-Footnote-1\7f81967
39276 +Node: addr2line\7f82073
39277 +Node: nlmconv\7f85344
39278 +Node: windres\7f87950
39279 +Node: dlltool\7f93683
39280 +Node: def file format\7f104521
39281 +Node: readelf\7f106259
39282 +Node: Common Options\7f110967
39283 +Node: Selecting The Target System\7f112007
39284 +Node: Target Selection\7f112939
39285 +Node: Architecture Selection\7f114921
39286 +Node: Reporting Bugs\7f115749
39287 +Node: Bug Criteria\7f116528
39288 +Node: Bug Reporting\7f117081
39289 +Node: GNU Free Documentation License\7f124175
39290 +Node: Index\7f143907
39291 \1f
39292 End Tag Table
39293 --- a/binutils/doc/Makefile.in
39294 +++ b/binutils/doc/Makefile.in
39295 @@ -109,6 +109,7 @@ EXEEXT = @EXEEXT@
39296 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
39297 GMOFILES = @GMOFILES@
39298 GMSGFMT = @GMSGFMT@
39299 +GREP = @GREP@
39300 GT_NO = @GT_NO@
39301 GT_YES = @GT_YES@
39302 HDEFINES = @HDEFINES@
39303 @@ -159,9 +160,8 @@ VERSION = @VERSION@
39304 WARN_CFLAGS = @WARN_CFLAGS@
39305 XGETTEXT = @XGETTEXT@
39306 YACC = @YACC@
39307 +YFLAGS = @YFLAGS@
39308 ac_ct_CC = @ac_ct_CC@
39309 -ac_ct_RANLIB = @ac_ct_RANLIB@
39310 -ac_ct_STRIP = @ac_ct_STRIP@
39311 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
39312 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
39313 am__include = @am__include@
39314 @@ -178,6 +178,7 @@ build_vendor = @build_vendor@
39315 datadir = @datadir@
39316 datarootdir = @datarootdir@
39317 docdir = @docdir@
39318 +dvidir = @dvidir@
39319 exec_prefix = @exec_prefix@
39320 host = @host@
39321 host_alias = @host_alias@
39322 @@ -191,12 +192,15 @@ install_sh = @install_sh@
39323 l = @l@
39324 libdir = @libdir@
39325 libexecdir = @libexecdir@
39326 +localedir = @localedir@
39327 localstatedir = @localstatedir@
39328 mandir = @mandir@
39329 mkdir_p = @mkdir_p@
39330 oldincludedir = @oldincludedir@
39331 +pdfdir = @pdfdir@
39332 prefix = @prefix@
39333 program_transform_name = @program_transform_name@
39334 +psdir = @psdir@
39335 sbindir = @sbindir@
39336 sharedstatedir = @sharedstatedir@
39337 sysconfdir = @sysconfdir@
39338 @@ -368,10 +372,13 @@ dist-info: $(INFO_DEPS)
39339 $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
39340 esac; \
39341 if test -f $$base; then d=.; else d=$(srcdir); fi; \
39342 - for file in $$d/$$base*; do \
39343 - relfile=`expr "$$file" : "$$d/\(.*\)"`; \
39344 - test -f $(distdir)/$$relfile || \
39345 - cp -p $$file $(distdir)/$$relfile; \
39346 + base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
39347 + for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
39348 + if test -f $$file; then \
39349 + relfile=`expr "$$file" : "$$d/\(.*\)"`; \
39350 + test -f $(distdir)/$$relfile || \
39351 + cp -p $$file $(distdir)/$$relfile; \
39352 + else :; fi; \
39353 done; \
39354 done
39355
39356 --- a/binutils/Makefile.am
39357 +++ b/binutils/Makefile.am
39358 @@ -511,7 +511,7 @@ readelf.o: readelf.c dwarf.h ../bfd/bfd.
39359 $(INCDIR)/symcat.h $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/common.h \
39360 $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/alpha.h \
39361 $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h \
39362 - $(INCDIR)/elf/avr.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39363 + $(INCDIR)/elf/avr.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39364 $(INCDIR)/elf/d10v.h $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h \
39365 $(INCDIR)/elf/fr30.h $(INCDIR)/elf/frv.h $(INCDIR)/elf/h8.h \
39366 $(INCDIR)/elf/hppa.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/i370.h \
39367 --- a/binutils/Makefile.in
39368 +++ b/binutils/Makefile.in
39369 @@ -266,6 +266,7 @@ EXEEXT = @EXEEXT@
39370 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
39371 GMOFILES = @GMOFILES@
39372 GMSGFMT = @GMSGFMT@
39373 +GREP = @GREP@
39374 GT_NO = @GT_NO@
39375 GT_YES = @GT_YES@
39376 HDEFINES = @HDEFINES@
39377 @@ -316,9 +317,8 @@ VERSION = @VERSION@
39378 WARN_CFLAGS = @WARN_CFLAGS@
39379 XGETTEXT = @XGETTEXT@
39380 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
39381 +YFLAGS = -d
39382 ac_ct_CC = @ac_ct_CC@
39383 -ac_ct_RANLIB = @ac_ct_RANLIB@
39384 -ac_ct_STRIP = @ac_ct_STRIP@
39385 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
39386 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
39387 am__include = @am__include@
39388 @@ -335,6 +335,7 @@ build_vendor = @build_vendor@
39389 datadir = @datadir@
39390 datarootdir = @datarootdir@
39391 docdir = @docdir@
39392 +dvidir = @dvidir@
39393 exec_prefix = @exec_prefix@
39394 host = @host@
39395 host_alias = @host_alias@
39396 @@ -348,12 +349,15 @@ install_sh = @install_sh@
39397 l = @l@
39398 libdir = @libdir@
39399 libexecdir = @libexecdir@
39400 +localedir = @localedir@
39401 localstatedir = @localstatedir@
39402 mandir = @mandir@
39403 mkdir_p = @mkdir_p@
39404 oldincludedir = @oldincludedir@
39405 +pdfdir = @pdfdir@
39406 prefix = @prefix@
39407 program_transform_name = @program_transform_name@
39408 +psdir = @psdir@
39409 sbindir = @sbindir@
39410 sharedstatedir = @sharedstatedir@
39411 sysconfdir = @sysconfdir@
39412 @@ -365,7 +369,6 @@ target_vendor = @target_vendor@
39413 AUTOMAKE_OPTIONS = cygnus dejagnu
39414 SUBDIRS = doc po
39415 tooldir = $(exec_prefix)/$(target_alias)
39416 -YFLAGS = -d
39417 AM_CFLAGS = $(WARN_CFLAGS)
39418
39419 # these two are almost the same program
39420 @@ -1264,7 +1267,7 @@ readelf.o: readelf.c dwarf.h ../bfd/bfd.
39421 $(INCDIR)/symcat.h $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/common.h \
39422 $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/alpha.h \
39423 $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h \
39424 - $(INCDIR)/elf/avr.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39425 + $(INCDIR)/elf/avr.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39426 $(INCDIR)/elf/d10v.h $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h \
39427 $(INCDIR)/elf/fr30.h $(INCDIR)/elf/frv.h $(INCDIR)/elf/h8.h \
39428 $(INCDIR)/elf/hppa.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/i370.h \
39429 --- a/binutils/readelf.c
39430 +++ b/binutils/readelf.c
39431 @@ -71,6 +71,7 @@
39432 #include "elf/arc.h"
39433 #include "elf/arm.h"
39434 #include "elf/avr.h"
39435 +#include "elf/avr32.h"
39436 #include "elf/bfin.h"
39437 #include "elf/cris.h"
39438 #include "elf/d10v.h"
39439 @@ -590,6 +591,7 @@ guess_is_rela (unsigned long e_machine)
39440 case EM_MCORE:
39441 case EM_IA_64:
39442 case EM_AVR:
39443 + case EM_AVR32:
39444 case EM_AVR_OLD:
39445 case EM_CRIS:
39446 case EM_860:
39447 @@ -959,6 +961,10 @@ dump_relocations (FILE *file,
39448 rtype = elf_avr_reloc_type (type);
39449 break;
39450
39451 + case EM_AVR32:
39452 + rtype = elf_avr32_reloc_type (type);
39453 + break;
39454 +
39455 case EM_OLD_SPARCV9:
39456 case EM_SPARC32PLUS:
39457 case EM_SPARCV9:
39458 @@ -1670,6 +1676,7 @@ get_machine_name (unsigned e_machine)
39459 case EM_VAX: return "Digital VAX";
39460 case EM_AVR_OLD:
39461 case EM_AVR: return "Atmel AVR 8-bit microcontroller";
39462 + case EM_AVR32: return "Atmel AVR32";
39463 case EM_CRIS: return "Axis Communications 32-bit embedded processor";
39464 case EM_JAVELIN: return "Infineon Technologies 32-bit embedded cpu";
39465 case EM_FIREPATH: return "Element 14 64-bit DSP processor";
39466 --- a/configure
39467 +++ b/configure
39468 @@ -899,7 +899,7 @@ host_libs="intl mmalloc libiberty opcode
39469 # know that we are building the simulator.
39470 # binutils, gas and ld appear in that order because it makes sense to run
39471 # "make check" in that particular order.
39472 -host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
39473 +host_tools="byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
39474
39475 # libgcj represents the runtime libraries only used by gcj.
39476 libgcj="target-libffi \
39477 @@ -1064,6 +1064,9 @@ unsupported_languages=
39478 # exist yet.
39479
39480 case "${host}" in
39481 + avr32*-*-*)
39482 + noconfigdirs="$noconfigdirs readline gdb"
39483 + ;;
39484 hppa*64*-*-*)
39485 noconfigdirs="$noconfigdirs byacc"
39486 ;;
39487 @@ -1863,7 +1866,7 @@ else
39488 # Extract the first word of "gcc", so it can be a program name with args.
39489 set dummy gcc; ac_word=$2
39490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39491 -echo "configure:1867: checking for $ac_word" >&5
39492 +echo "configure:1870: checking for $ac_word" >&5
39493 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
39494 echo $ac_n "(cached) $ac_c" 1>&6
39495 else
39496 @@ -1893,7 +1896,7 @@ if test -z "$CC"; then
39497 # Extract the first word of "cc", so it can be a program name with args.
39498 set dummy cc; ac_word=$2
39499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39500 -echo "configure:1897: checking for $ac_word" >&5
39501 +echo "configure:1900: checking for $ac_word" >&5
39502 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
39503 echo $ac_n "(cached) $ac_c" 1>&6
39504 else
39505 @@ -1944,7 +1947,7 @@ fi
39506 # Extract the first word of "cl", so it can be a program name with args.
39507 set dummy cl; ac_word=$2
39508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39509 -echo "configure:1948: checking for $ac_word" >&5
39510 +echo "configure:1951: checking for $ac_word" >&5
39511 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
39512 echo $ac_n "(cached) $ac_c" 1>&6
39513 else
39514 @@ -1976,7 +1979,7 @@ fi
39515 fi
39516
39517 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
39518 -echo "configure:1980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
39519 +echo "configure:1983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
39520
39521 ac_ext=c
39522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
39523 @@ -1987,12 +1990,12 @@ cross_compiling=$ac_cv_prog_cc_cross
39524
39525 cat > conftest.$ac_ext << EOF
39526
39527 -#line 1991 "configure"
39528 +#line 1994 "configure"
39529 #include "confdefs.h"
39530
39531 main(){return(0);}
39532 EOF
39533 -if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39534 +if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39535 ac_cv_prog_cc_works=yes
39536 # If we can't run a trivial program, we are probably using a cross compiler.
39537 if (./conftest; exit) 2>/dev/null; then
39538 @@ -2018,12 +2021,12 @@ if test $ac_cv_prog_cc_works = no; then
39539 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
39540 fi
39541 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
39542 -echo "configure:2022: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
39543 +echo "configure:2025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
39544 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
39545 cross_compiling=$ac_cv_prog_cc_cross
39546
39547 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
39548 -echo "configure:2027: checking whether we are using GNU C" >&5
39549 +echo "configure:2030: checking whether we are using GNU C" >&5
39550 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
39551 echo $ac_n "(cached) $ac_c" 1>&6
39552 else
39553 @@ -2032,7 +2035,7 @@ else
39554 yes;
39555 #endif
39556 EOF
39557 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
39558 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
39559 ac_cv_prog_gcc=yes
39560 else
39561 ac_cv_prog_gcc=no
39562 @@ -2051,7 +2054,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
39563 ac_save_CFLAGS="$CFLAGS"
39564 CFLAGS=
39565 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
39566 -echo "configure:2055: checking whether ${CC-cc} accepts -g" >&5
39567 +echo "configure:2058: checking whether ${CC-cc} accepts -g" >&5
39568 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
39569 echo $ac_n "(cached) $ac_c" 1>&6
39570 else
39571 @@ -2118,7 +2121,7 @@ fi
39572 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
39573 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
39574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39575 -echo "configure:2122: checking for $ac_word" >&5
39576 +echo "configure:2125: checking for $ac_word" >&5
39577 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
39578 echo $ac_n "(cached) $ac_c" 1>&6
39579 else
39580 @@ -2150,7 +2153,7 @@ if test -n "$ac_tool_prefix"; then
39581 # Extract the first word of "gnatbind", so it can be a program name with args.
39582 set dummy gnatbind; ac_word=$2
39583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39584 -echo "configure:2154: checking for $ac_word" >&5
39585 +echo "configure:2157: checking for $ac_word" >&5
39586 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
39587 echo $ac_n "(cached) $ac_c" 1>&6
39588 else
39589 @@ -2183,7 +2186,7 @@ fi
39590 fi
39591
39592 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
39593 -echo "configure:2187: checking whether compiler driver understands Ada" >&5
39594 +echo "configure:2190: checking whether compiler driver understands Ada" >&5
39595 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
39596 echo $ac_n "(cached) $ac_c" 1>&6
39597 else
39598 @@ -2215,7 +2218,7 @@ else
39599 fi
39600
39601 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
39602 -echo "configure:2219: checking how to compare bootstrapped objects" >&5
39603 +echo "configure:2222: checking how to compare bootstrapped objects" >&5
39604 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
39605 echo $ac_n "(cached) $ac_c" 1>&6
39606 else
39607 @@ -2313,9 +2316,9 @@ saved_CFLAGS="$CFLAGS"
39608 CFLAGS="$CFLAGS $gmpinc"
39609 # Check GMP actually works
39610 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
39611 -echo "configure:2317: checking for correct version of gmp.h" >&5
39612 +echo "configure:2320: checking for correct version of gmp.h" >&5
39613 cat > conftest.$ac_ext <<EOF
39614 -#line 2319 "configure"
39615 +#line 2322 "configure"
39616 #include "confdefs.h"
39617 #include "gmp.h"
39618 int main() {
39619 @@ -2326,7 +2329,7 @@ choke me
39620
39621 ; return 0; }
39622 EOF
39623 -if { (eval echo configure:2330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39624 +if { (eval echo configure:2333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39625 rm -rf conftest*
39626 echo "$ac_t""yes" 1>&6
39627 else
39628 @@ -2339,12 +2342,12 @@ rm -f conftest*
39629
39630 if test x"$have_gmp" = xyes; then
39631 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
39632 -echo "configure:2343: checking for MPFR" >&5
39633 +echo "configure:2346: checking for MPFR" >&5
39634
39635 saved_LIBS="$LIBS"
39636 LIBS="$LIBS $gmplibs"
39637 cat > conftest.$ac_ext <<EOF
39638 -#line 2348 "configure"
39639 +#line 2351 "configure"
39640 #include "confdefs.h"
39641 #include <gmp.h>
39642 #include <mpfr.h>
39643 @@ -2352,7 +2355,7 @@ int main() {
39644 mpfr_t n; mpfr_init(n);
39645 ; return 0; }
39646 EOF
39647 -if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39648 +if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39649 rm -rf conftest*
39650 echo "$ac_t""yes" 1>&6
39651 else
39652 @@ -3403,7 +3406,7 @@ do
39653 # Extract the first word of "$ac_prog", so it can be a program name with args.
39654 set dummy $ac_prog; ac_word=$2
39655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39656 -echo "configure:3407: checking for $ac_word" >&5
39657 +echo "configure:3410: checking for $ac_word" >&5
39658 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
39659 echo $ac_n "(cached) $ac_c" 1>&6
39660 else
39661 @@ -3443,7 +3446,7 @@ do
39662 # Extract the first word of "$ac_prog", so it can be a program name with args.
39663 set dummy $ac_prog; ac_word=$2
39664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39665 -echo "configure:3447: checking for $ac_word" >&5
39666 +echo "configure:3450: checking for $ac_word" >&5
39667 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
39668 echo $ac_n "(cached) $ac_c" 1>&6
39669 else
39670 @@ -3482,7 +3485,7 @@ do
39671 # Extract the first word of "$ac_prog", so it can be a program name with args.
39672 set dummy $ac_prog; ac_word=$2
39673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39674 -echo "configure:3486: checking for $ac_word" >&5
39675 +echo "configure:3489: checking for $ac_word" >&5
39676 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
39677 echo $ac_n "(cached) $ac_c" 1>&6
39678 else
39679 @@ -3521,7 +3524,7 @@ do
39680 # Extract the first word of "$ac_prog", so it can be a program name with args.
39681 set dummy $ac_prog; ac_word=$2
39682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39683 -echo "configure:3525: checking for $ac_word" >&5
39684 +echo "configure:3528: checking for $ac_word" >&5
39685 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
39686 echo $ac_n "(cached) $ac_c" 1>&6
39687 else
39688 @@ -3561,7 +3564,7 @@ do
39689 # Extract the first word of "$ac_prog", so it can be a program name with args.
39690 set dummy $ac_prog; ac_word=$2
39691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39692 -echo "configure:3565: checking for $ac_word" >&5
39693 +echo "configure:3568: checking for $ac_word" >&5
39694 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
39695 echo $ac_n "(cached) $ac_c" 1>&6
39696 else
39697 @@ -3600,7 +3603,7 @@ do
39698 # Extract the first word of "$ac_prog", so it can be a program name with args.
39699 set dummy $ac_prog; ac_word=$2
39700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39701 -echo "configure:3604: checking for $ac_word" >&5
39702 +echo "configure:3607: checking for $ac_word" >&5
39703 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
39704 echo $ac_n "(cached) $ac_c" 1>&6
39705 else
39706 @@ -3653,7 +3656,7 @@ do
39707 # Extract the first word of "$ac_prog", so it can be a program name with args.
39708 set dummy $ac_prog; ac_word=$2
39709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39710 -echo "configure:3657: checking for $ac_word" >&5
39711 +echo "configure:3660: checking for $ac_word" >&5
39712 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
39713 echo $ac_n "(cached) $ac_c" 1>&6
39714 else
39715 @@ -3694,7 +3697,7 @@ do
39716 # Extract the first word of "$ac_prog", so it can be a program name with args.
39717 set dummy $ac_prog; ac_word=$2
39718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39719 -echo "configure:3698: checking for $ac_word" >&5
39720 +echo "configure:3701: checking for $ac_word" >&5
39721 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
39722 echo $ac_n "(cached) $ac_c" 1>&6
39723 else
39724 @@ -3742,7 +3745,7 @@ test -n "$target_alias" && ncn_target_to
39725 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39726 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39728 -echo "configure:3746: checking for $ac_word" >&5
39729 +echo "configure:3749: checking for $ac_word" >&5
39730 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
39731 echo $ac_n "(cached) $ac_c" 1>&6
39732 else
39733 @@ -3773,7 +3776,7 @@ fi
39734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39735 set dummy ${ncn_progname}; ac_word=$2
39736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39737 -echo "configure:3777: checking for $ac_word" >&5
39738 +echo "configure:3780: checking for $ac_word" >&5
39739 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
39740 echo $ac_n "(cached) $ac_c" 1>&6
39741 else
39742 @@ -3817,7 +3820,7 @@ fi
39743 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39744 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39746 -echo "configure:3821: checking for $ac_word" >&5
39747 +echo "configure:3824: checking for $ac_word" >&5
39748 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
39749 echo $ac_n "(cached) $ac_c" 1>&6
39750 else
39751 @@ -3848,7 +3851,7 @@ fi
39752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39753 set dummy ${ncn_progname}; ac_word=$2
39754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39755 -echo "configure:3852: checking for $ac_word" >&5
39756 +echo "configure:3855: checking for $ac_word" >&5
39757 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
39758 echo $ac_n "(cached) $ac_c" 1>&6
39759 else
39760 @@ -3892,7 +3895,7 @@ fi
39761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39762 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39764 -echo "configure:3896: checking for $ac_word" >&5
39765 +echo "configure:3899: checking for $ac_word" >&5
39766 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
39767 echo $ac_n "(cached) $ac_c" 1>&6
39768 else
39769 @@ -3923,7 +3926,7 @@ fi
39770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39771 set dummy ${ncn_progname}; ac_word=$2
39772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39773 -echo "configure:3927: checking for $ac_word" >&5
39774 +echo "configure:3930: checking for $ac_word" >&5
39775 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
39776 echo $ac_n "(cached) $ac_c" 1>&6
39777 else
39778 @@ -3967,7 +3970,7 @@ fi
39779 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39780 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39782 -echo "configure:3971: checking for $ac_word" >&5
39783 +echo "configure:3974: checking for $ac_word" >&5
39784 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
39785 echo $ac_n "(cached) $ac_c" 1>&6
39786 else
39787 @@ -3998,7 +4001,7 @@ fi
39788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39789 set dummy ${ncn_progname}; ac_word=$2
39790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39791 -echo "configure:4002: checking for $ac_word" >&5
39792 +echo "configure:4005: checking for $ac_word" >&5
39793 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
39794 echo $ac_n "(cached) $ac_c" 1>&6
39795 else
39796 @@ -4042,7 +4045,7 @@ fi
39797 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39798 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39800 -echo "configure:4046: checking for $ac_word" >&5
39801 +echo "configure:4049: checking for $ac_word" >&5
39802 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
39803 echo $ac_n "(cached) $ac_c" 1>&6
39804 else
39805 @@ -4073,7 +4076,7 @@ fi
39806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39807 set dummy ${ncn_progname}; ac_word=$2
39808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39809 -echo "configure:4077: checking for $ac_word" >&5
39810 +echo "configure:4080: checking for $ac_word" >&5
39811 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
39812 echo $ac_n "(cached) $ac_c" 1>&6
39813 else
39814 @@ -4117,7 +4120,7 @@ fi
39815 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39816 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39818 -echo "configure:4121: checking for $ac_word" >&5
39819 +echo "configure:4124: checking for $ac_word" >&5
39820 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
39821 echo $ac_n "(cached) $ac_c" 1>&6
39822 else
39823 @@ -4148,7 +4151,7 @@ fi
39824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39825 set dummy ${ncn_progname}; ac_word=$2
39826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39827 -echo "configure:4152: checking for $ac_word" >&5
39828 +echo "configure:4155: checking for $ac_word" >&5
39829 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
39830 echo $ac_n "(cached) $ac_c" 1>&6
39831 else
39832 @@ -4192,7 +4195,7 @@ fi
39833 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39834 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39836 -echo "configure:4196: checking for $ac_word" >&5
39837 +echo "configure:4199: checking for $ac_word" >&5
39838 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
39839 echo $ac_n "(cached) $ac_c" 1>&6
39840 else
39841 @@ -4223,7 +4226,7 @@ fi
39842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39843 set dummy ${ncn_progname}; ac_word=$2
39844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39845 -echo "configure:4227: checking for $ac_word" >&5
39846 +echo "configure:4230: checking for $ac_word" >&5
39847 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
39848 echo $ac_n "(cached) $ac_c" 1>&6
39849 else
39850 @@ -4262,7 +4265,7 @@ fi
39851 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39852 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39854 -echo "configure:4266: checking for $ac_word" >&5
39855 +echo "configure:4269: checking for $ac_word" >&5
39856 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
39857 echo $ac_n "(cached) $ac_c" 1>&6
39858 else
39859 @@ -4293,7 +4296,7 @@ fi
39860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39861 set dummy ${ncn_progname}; ac_word=$2
39862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39863 -echo "configure:4297: checking for $ac_word" >&5
39864 +echo "configure:4300: checking for $ac_word" >&5
39865 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
39866 echo $ac_n "(cached) $ac_c" 1>&6
39867 else
39868 @@ -4332,7 +4335,7 @@ fi
39869 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39870 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39872 -echo "configure:4336: checking for $ac_word" >&5
39873 +echo "configure:4339: checking for $ac_word" >&5
39874 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
39875 echo $ac_n "(cached) $ac_c" 1>&6
39876 else
39877 @@ -4363,7 +4366,7 @@ fi
39878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39879 set dummy ${ncn_progname}; ac_word=$2
39880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39881 -echo "configure:4367: checking for $ac_word" >&5
39882 +echo "configure:4370: checking for $ac_word" >&5
39883 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
39884 echo $ac_n "(cached) $ac_c" 1>&6
39885 else
39886 @@ -4407,7 +4410,7 @@ fi
39887 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39888 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39890 -echo "configure:4411: checking for $ac_word" >&5
39891 +echo "configure:4414: checking for $ac_word" >&5
39892 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
39893 echo $ac_n "(cached) $ac_c" 1>&6
39894 else
39895 @@ -4438,7 +4441,7 @@ fi
39896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39897 set dummy ${ncn_progname}; ac_word=$2
39898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39899 -echo "configure:4442: checking for $ac_word" >&5
39900 +echo "configure:4445: checking for $ac_word" >&5
39901 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
39902 echo $ac_n "(cached) $ac_c" 1>&6
39903 else
39904 @@ -4482,7 +4485,7 @@ fi
39905 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39906 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39908 -echo "configure:4486: checking for $ac_word" >&5
39909 +echo "configure:4489: checking for $ac_word" >&5
39910 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
39911 echo $ac_n "(cached) $ac_c" 1>&6
39912 else
39913 @@ -4513,7 +4516,7 @@ fi
39914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39915 set dummy ${ncn_progname}; ac_word=$2
39916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39917 -echo "configure:4517: checking for $ac_word" >&5
39918 +echo "configure:4520: checking for $ac_word" >&5
39919 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
39920 echo $ac_n "(cached) $ac_c" 1>&6
39921 else
39922 @@ -4577,7 +4580,7 @@ fi
39923 if test -n "$with_build_time_tools"; then
39924 for ncn_progname in cc gcc; do
39925 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
39926 -echo "configure:4581: checking for ${ncn_progname} in $with_build_time_tools" >&5
39927 +echo "configure:4584: checking for ${ncn_progname} in $with_build_time_tools" >&5
39928 if test -x $with_build_time_tools/${ncn_progname}; then
39929 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
39930 echo "$ac_t""yes" 1>&6
39931 @@ -4594,7 +4597,7 @@ if test -z "$ac_cv_prog_CC_FOR_TARGET";
39932 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
39933 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
39934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39935 -echo "configure:4598: checking for $ac_word" >&5
39936 +echo "configure:4601: checking for $ac_word" >&5
39937 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
39938 echo $ac_n "(cached) $ac_c" 1>&6
39939 else
39940 @@ -4625,7 +4628,7 @@ fi
39941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39942 set dummy ${ncn_progname}; ac_word=$2
39943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39944 -echo "configure:4629: checking for $ac_word" >&5
39945 +echo "configure:4632: checking for $ac_word" >&5
39946 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
39947 echo $ac_n "(cached) $ac_c" 1>&6
39948 else
39949 @@ -4668,7 +4671,7 @@ fi
39950 if test -n "$with_build_time_tools"; then
39951 for ncn_progname in c++ g++ cxx gxx; do
39952 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
39953 -echo "configure:4672: checking for ${ncn_progname} in $with_build_time_tools" >&5
39954 +echo "configure:4675: checking for ${ncn_progname} in $with_build_time_tools" >&5
39955 if test -x $with_build_time_tools/${ncn_progname}; then
39956 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
39957 echo "$ac_t""yes" 1>&6
39958 @@ -4685,7 +4688,7 @@ if test -z "$ac_cv_prog_CXX_FOR_TARGET";
39959 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
39960 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
39961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39962 -echo "configure:4689: checking for $ac_word" >&5
39963 +echo "configure:4692: checking for $ac_word" >&5
39964 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
39965 echo $ac_n "(cached) $ac_c" 1>&6
39966 else
39967 @@ -4716,7 +4719,7 @@ fi
39968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39969 set dummy ${ncn_progname}; ac_word=$2
39970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39971 -echo "configure:4720: checking for $ac_word" >&5
39972 +echo "configure:4723: checking for $ac_word" >&5
39973 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
39974 echo $ac_n "(cached) $ac_c" 1>&6
39975 else
39976 @@ -4759,7 +4762,7 @@ fi
39977 if test -n "$with_build_time_tools"; then
39978 for ncn_progname in gcc; do
39979 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
39980 -echo "configure:4763: checking for ${ncn_progname} in $with_build_time_tools" >&5
39981 +echo "configure:4766: checking for ${ncn_progname} in $with_build_time_tools" >&5
39982 if test -x $with_build_time_tools/${ncn_progname}; then
39983 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
39984 echo "$ac_t""yes" 1>&6
39985 @@ -4776,7 +4779,7 @@ if test -z "$ac_cv_prog_GCC_FOR_TARGET";
39986 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
39987 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
39988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39989 -echo "configure:4780: checking for $ac_word" >&5
39990 +echo "configure:4783: checking for $ac_word" >&5
39991 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
39992 echo $ac_n "(cached) $ac_c" 1>&6
39993 else
39994 @@ -4807,7 +4810,7 @@ fi
39995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39996 set dummy ${ncn_progname}; ac_word=$2
39997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39998 -echo "configure:4811: checking for $ac_word" >&5
39999 +echo "configure:4814: checking for $ac_word" >&5
40000 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
40001 echo $ac_n "(cached) $ac_c" 1>&6
40002 else
40003 @@ -4845,7 +4848,7 @@ fi
40004 if test -n "$with_build_time_tools"; then
40005 for ncn_progname in gcj; do
40006 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40007 -echo "configure:4849: checking for ${ncn_progname} in $with_build_time_tools" >&5
40008 +echo "configure:4852: checking for ${ncn_progname} in $with_build_time_tools" >&5
40009 if test -x $with_build_time_tools/${ncn_progname}; then
40010 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40011 echo "$ac_t""yes" 1>&6
40012 @@ -4862,7 +4865,7 @@ if test -z "$ac_cv_prog_GCJ_FOR_TARGET";
40013 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40014 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40016 -echo "configure:4866: checking for $ac_word" >&5
40017 +echo "configure:4869: checking for $ac_word" >&5
40018 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
40019 echo $ac_n "(cached) $ac_c" 1>&6
40020 else
40021 @@ -4893,7 +4896,7 @@ fi
40022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40023 set dummy ${ncn_progname}; ac_word=$2
40024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40025 -echo "configure:4897: checking for $ac_word" >&5
40026 +echo "configure:4900: checking for $ac_word" >&5
40027 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
40028 echo $ac_n "(cached) $ac_c" 1>&6
40029 else
40030 @@ -4936,7 +4939,7 @@ fi
40031 if test -n "$with_build_time_tools"; then
40032 for ncn_progname in gfortran; do
40033 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40034 -echo "configure:4940: checking for ${ncn_progname} in $with_build_time_tools" >&5
40035 +echo "configure:4943: checking for ${ncn_progname} in $with_build_time_tools" >&5
40036 if test -x $with_build_time_tools/${ncn_progname}; then
40037 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40038 echo "$ac_t""yes" 1>&6
40039 @@ -4953,7 +4956,7 @@ if test -z "$ac_cv_prog_GFORTRAN_FOR_TAR
40040 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40041 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40043 -echo "configure:4957: checking for $ac_word" >&5
40044 +echo "configure:4960: checking for $ac_word" >&5
40045 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
40046 echo $ac_n "(cached) $ac_c" 1>&6
40047 else
40048 @@ -4984,7 +4987,7 @@ fi
40049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40050 set dummy ${ncn_progname}; ac_word=$2
40051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40052 -echo "configure:4988: checking for $ac_word" >&5
40053 +echo "configure:4991: checking for $ac_word" >&5
40054 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
40055 echo $ac_n "(cached) $ac_c" 1>&6
40056 else
40057 @@ -5091,7 +5094,7 @@ rm conftest.c
40058 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
40059 if test -n "$with_build_time_tools"; then
40060 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
40061 -echo "configure:5095: checking for ar in $with_build_time_tools" >&5
40062 +echo "configure:5098: checking for ar in $with_build_time_tools" >&5
40063 if test -x $with_build_time_tools/ar; then
40064 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
40065 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
40066 @@ -5109,7 +5112,7 @@ if test -z "$ac_cv_path_AR_FOR_TARGET" ;
40067 # Extract the first word of "ar", so it can be a program name with args.
40068 set dummy ar; ac_word=$2
40069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40070 -echo "configure:5113: checking for $ac_word" >&5
40071 +echo "configure:5116: checking for $ac_word" >&5
40072 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
40073 echo $ac_n "(cached) $ac_c" 1>&6
40074 else
40075 @@ -5146,7 +5149,7 @@ if test -z "$ac_cv_path_AR_FOR_TARGET" ;
40076 if test -n "$with_build_time_tools"; then
40077 for ncn_progname in ar; do
40078 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40079 -echo "configure:5150: checking for ${ncn_progname} in $with_build_time_tools" >&5
40080 +echo "configure:5153: checking for ${ncn_progname} in $with_build_time_tools" >&5
40081 if test -x $with_build_time_tools/${ncn_progname}; then
40082 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40083 echo "$ac_t""yes" 1>&6
40084 @@ -5163,7 +5166,7 @@ if test -z "$ac_cv_prog_AR_FOR_TARGET";
40085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40086 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40088 -echo "configure:5167: checking for $ac_word" >&5
40089 +echo "configure:5170: checking for $ac_word" >&5
40090 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
40091 echo $ac_n "(cached) $ac_c" 1>&6
40092 else
40093 @@ -5194,7 +5197,7 @@ fi
40094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40095 set dummy ${ncn_progname}; ac_word=$2
40096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40097 -echo "configure:5198: checking for $ac_word" >&5
40098 +echo "configure:5201: checking for $ac_word" >&5
40099 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
40100 echo $ac_n "(cached) $ac_c" 1>&6
40101 else
40102 @@ -5244,7 +5247,7 @@ fi
40103 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
40104 if test -n "$with_build_time_tools"; then
40105 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
40106 -echo "configure:5248: checking for as in $with_build_time_tools" >&5
40107 +echo "configure:5251: checking for as in $with_build_time_tools" >&5
40108 if test -x $with_build_time_tools/as; then
40109 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
40110 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
40111 @@ -5262,7 +5265,7 @@ if test -z "$ac_cv_path_AS_FOR_TARGET" ;
40112 # Extract the first word of "as", so it can be a program name with args.
40113 set dummy as; ac_word=$2
40114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40115 -echo "configure:5266: checking for $ac_word" >&5
40116 +echo "configure:5269: checking for $ac_word" >&5
40117 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
40118 echo $ac_n "(cached) $ac_c" 1>&6
40119 else
40120 @@ -5299,7 +5302,7 @@ if test -z "$ac_cv_path_AS_FOR_TARGET" ;
40121 if test -n "$with_build_time_tools"; then
40122 for ncn_progname in as; do
40123 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40124 -echo "configure:5303: checking for ${ncn_progname} in $with_build_time_tools" >&5
40125 +echo "configure:5306: checking for ${ncn_progname} in $with_build_time_tools" >&5
40126 if test -x $with_build_time_tools/${ncn_progname}; then
40127 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40128 echo "$ac_t""yes" 1>&6
40129 @@ -5316,7 +5319,7 @@ if test -z "$ac_cv_prog_AS_FOR_TARGET";
40130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40131 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40133 -echo "configure:5320: checking for $ac_word" >&5
40134 +echo "configure:5323: checking for $ac_word" >&5
40135 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
40136 echo $ac_n "(cached) $ac_c" 1>&6
40137 else
40138 @@ -5347,7 +5350,7 @@ fi
40139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40140 set dummy ${ncn_progname}; ac_word=$2
40141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40142 -echo "configure:5351: checking for $ac_word" >&5
40143 +echo "configure:5354: checking for $ac_word" >&5
40144 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
40145 echo $ac_n "(cached) $ac_c" 1>&6
40146 else
40147 @@ -5397,7 +5400,7 @@ fi
40148 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
40149 if test -n "$with_build_time_tools"; then
40150 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
40151 -echo "configure:5401: checking for dlltool in $with_build_time_tools" >&5
40152 +echo "configure:5404: checking for dlltool in $with_build_time_tools" >&5
40153 if test -x $with_build_time_tools/dlltool; then
40154 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
40155 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
40156 @@ -5415,7 +5418,7 @@ if test -z "$ac_cv_path_DLLTOOL_FOR_TARG
40157 # Extract the first word of "dlltool", so it can be a program name with args.
40158 set dummy dlltool; ac_word=$2
40159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40160 -echo "configure:5419: checking for $ac_word" >&5
40161 +echo "configure:5422: checking for $ac_word" >&5
40162 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
40163 echo $ac_n "(cached) $ac_c" 1>&6
40164 else
40165 @@ -5452,7 +5455,7 @@ if test -z "$ac_cv_path_DLLTOOL_FOR_TARG
40166 if test -n "$with_build_time_tools"; then
40167 for ncn_progname in dlltool; do
40168 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40169 -echo "configure:5456: checking for ${ncn_progname} in $with_build_time_tools" >&5
40170 +echo "configure:5459: checking for ${ncn_progname} in $with_build_time_tools" >&5
40171 if test -x $with_build_time_tools/${ncn_progname}; then
40172 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40173 echo "$ac_t""yes" 1>&6
40174 @@ -5469,7 +5472,7 @@ if test -z "$ac_cv_prog_DLLTOOL_FOR_TARG
40175 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40176 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40178 -echo "configure:5473: checking for $ac_word" >&5
40179 +echo "configure:5476: checking for $ac_word" >&5
40180 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
40181 echo $ac_n "(cached) $ac_c" 1>&6
40182 else
40183 @@ -5500,7 +5503,7 @@ fi
40184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40185 set dummy ${ncn_progname}; ac_word=$2
40186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40187 -echo "configure:5504: checking for $ac_word" >&5
40188 +echo "configure:5507: checking for $ac_word" >&5
40189 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
40190 echo $ac_n "(cached) $ac_c" 1>&6
40191 else
40192 @@ -5550,7 +5553,7 @@ fi
40193 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
40194 if test -n "$with_build_time_tools"; then
40195 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
40196 -echo "configure:5554: checking for ld in $with_build_time_tools" >&5
40197 +echo "configure:5557: checking for ld in $with_build_time_tools" >&5
40198 if test -x $with_build_time_tools/ld; then
40199 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
40200 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
40201 @@ -5568,7 +5571,7 @@ if test -z "$ac_cv_path_LD_FOR_TARGET" ;
40202 # Extract the first word of "ld", so it can be a program name with args.
40203 set dummy ld; ac_word=$2
40204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40205 -echo "configure:5572: checking for $ac_word" >&5
40206 +echo "configure:5575: checking for $ac_word" >&5
40207 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
40208 echo $ac_n "(cached) $ac_c" 1>&6
40209 else
40210 @@ -5605,7 +5608,7 @@ if test -z "$ac_cv_path_LD_FOR_TARGET" ;
40211 if test -n "$with_build_time_tools"; then
40212 for ncn_progname in ld; do
40213 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40214 -echo "configure:5609: checking for ${ncn_progname} in $with_build_time_tools" >&5
40215 +echo "configure:5612: checking for ${ncn_progname} in $with_build_time_tools" >&5
40216 if test -x $with_build_time_tools/${ncn_progname}; then
40217 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40218 echo "$ac_t""yes" 1>&6
40219 @@ -5622,7 +5625,7 @@ if test -z "$ac_cv_prog_LD_FOR_TARGET";
40220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40221 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40223 -echo "configure:5626: checking for $ac_word" >&5
40224 +echo "configure:5629: checking for $ac_word" >&5
40225 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
40226 echo $ac_n "(cached) $ac_c" 1>&6
40227 else
40228 @@ -5653,7 +5656,7 @@ fi
40229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40230 set dummy ${ncn_progname}; ac_word=$2
40231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40232 -echo "configure:5657: checking for $ac_word" >&5
40233 +echo "configure:5660: checking for $ac_word" >&5
40234 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
40235 echo $ac_n "(cached) $ac_c" 1>&6
40236 else
40237 @@ -5703,7 +5706,7 @@ fi
40238 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
40239 if test -n "$with_build_time_tools"; then
40240 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
40241 -echo "configure:5707: checking for lipo in $with_build_time_tools" >&5
40242 +echo "configure:5710: checking for lipo in $with_build_time_tools" >&5
40243 if test -x $with_build_time_tools/lipo; then
40244 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
40245 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
40246 @@ -5721,7 +5724,7 @@ if test -z "$ac_cv_path_LIPO_FOR_TARGET"
40247 # Extract the first word of "lipo", so it can be a program name with args.
40248 set dummy lipo; ac_word=$2
40249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40250 -echo "configure:5725: checking for $ac_word" >&5
40251 +echo "configure:5728: checking for $ac_word" >&5
40252 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
40253 echo $ac_n "(cached) $ac_c" 1>&6
40254 else
40255 @@ -5758,7 +5761,7 @@ if test -z "$ac_cv_path_LIPO_FOR_TARGET"
40256 if test -n "$with_build_time_tools"; then
40257 for ncn_progname in lipo; do
40258 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40259 -echo "configure:5762: checking for ${ncn_progname} in $with_build_time_tools" >&5
40260 +echo "configure:5765: checking for ${ncn_progname} in $with_build_time_tools" >&5
40261 if test -x $with_build_time_tools/${ncn_progname}; then
40262 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40263 echo "$ac_t""yes" 1>&6
40264 @@ -5775,7 +5778,7 @@ if test -z "$ac_cv_prog_LIPO_FOR_TARGET"
40265 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40266 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40268 -echo "configure:5779: checking for $ac_word" >&5
40269 +echo "configure:5782: checking for $ac_word" >&5
40270 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
40271 echo $ac_n "(cached) $ac_c" 1>&6
40272 else
40273 @@ -5806,7 +5809,7 @@ fi
40274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40275 set dummy ${ncn_progname}; ac_word=$2
40276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40277 -echo "configure:5810: checking for $ac_word" >&5
40278 +echo "configure:5813: checking for $ac_word" >&5
40279 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
40280 echo $ac_n "(cached) $ac_c" 1>&6
40281 else
40282 @@ -5856,7 +5859,7 @@ fi
40283 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
40284 if test -n "$with_build_time_tools"; then
40285 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
40286 -echo "configure:5860: checking for nm in $with_build_time_tools" >&5
40287 +echo "configure:5863: checking for nm in $with_build_time_tools" >&5
40288 if test -x $with_build_time_tools/nm; then
40289 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
40290 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
40291 @@ -5874,7 +5877,7 @@ if test -z "$ac_cv_path_NM_FOR_TARGET" ;
40292 # Extract the first word of "nm", so it can be a program name with args.
40293 set dummy nm; ac_word=$2
40294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40295 -echo "configure:5878: checking for $ac_word" >&5
40296 +echo "configure:5881: checking for $ac_word" >&5
40297 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
40298 echo $ac_n "(cached) $ac_c" 1>&6
40299 else
40300 @@ -5911,7 +5914,7 @@ if test -z "$ac_cv_path_NM_FOR_TARGET" ;
40301 if test -n "$with_build_time_tools"; then
40302 for ncn_progname in nm; do
40303 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40304 -echo "configure:5915: checking for ${ncn_progname} in $with_build_time_tools" >&5
40305 +echo "configure:5918: checking for ${ncn_progname} in $with_build_time_tools" >&5
40306 if test -x $with_build_time_tools/${ncn_progname}; then
40307 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40308 echo "$ac_t""yes" 1>&6
40309 @@ -5928,7 +5931,7 @@ if test -z "$ac_cv_prog_NM_FOR_TARGET";
40310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40313 -echo "configure:5932: checking for $ac_word" >&5
40314 +echo "configure:5935: checking for $ac_word" >&5
40315 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
40316 echo $ac_n "(cached) $ac_c" 1>&6
40317 else
40318 @@ -5959,7 +5962,7 @@ fi
40319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40320 set dummy ${ncn_progname}; ac_word=$2
40321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40322 -echo "configure:5963: checking for $ac_word" >&5
40323 +echo "configure:5966: checking for $ac_word" >&5
40324 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
40325 echo $ac_n "(cached) $ac_c" 1>&6
40326 else
40327 @@ -6009,7 +6012,7 @@ fi
40328 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
40329 if test -n "$with_build_time_tools"; then
40330 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
40331 -echo "configure:6013: checking for objdump in $with_build_time_tools" >&5
40332 +echo "configure:6016: checking for objdump in $with_build_time_tools" >&5
40333 if test -x $with_build_time_tools/objdump; then
40334 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
40335 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
40336 @@ -6027,7 +6030,7 @@ if test -z "$ac_cv_path_OBJDUMP_FOR_TARG
40337 # Extract the first word of "objdump", so it can be a program name with args.
40338 set dummy objdump; ac_word=$2
40339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40340 -echo "configure:6031: checking for $ac_word" >&5
40341 +echo "configure:6034: checking for $ac_word" >&5
40342 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
40343 echo $ac_n "(cached) $ac_c" 1>&6
40344 else
40345 @@ -6064,7 +6067,7 @@ if test -z "$ac_cv_path_OBJDUMP_FOR_TARG
40346 if test -n "$with_build_time_tools"; then
40347 for ncn_progname in objdump; do
40348 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40349 -echo "configure:6068: checking for ${ncn_progname} in $with_build_time_tools" >&5
40350 +echo "configure:6071: checking for ${ncn_progname} in $with_build_time_tools" >&5
40351 if test -x $with_build_time_tools/${ncn_progname}; then
40352 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40353 echo "$ac_t""yes" 1>&6
40354 @@ -6081,7 +6084,7 @@ if test -z "$ac_cv_prog_OBJDUMP_FOR_TARG
40355 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40356 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40358 -echo "configure:6085: checking for $ac_word" >&5
40359 +echo "configure:6088: checking for $ac_word" >&5
40360 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
40361 echo $ac_n "(cached) $ac_c" 1>&6
40362 else
40363 @@ -6112,7 +6115,7 @@ fi
40364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40365 set dummy ${ncn_progname}; ac_word=$2
40366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40367 -echo "configure:6116: checking for $ac_word" >&5
40368 +echo "configure:6119: checking for $ac_word" >&5
40369 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
40370 echo $ac_n "(cached) $ac_c" 1>&6
40371 else
40372 @@ -6162,7 +6165,7 @@ fi
40373 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
40374 if test -n "$with_build_time_tools"; then
40375 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
40376 -echo "configure:6166: checking for ranlib in $with_build_time_tools" >&5
40377 +echo "configure:6169: checking for ranlib in $with_build_time_tools" >&5
40378 if test -x $with_build_time_tools/ranlib; then
40379 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
40380 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
40381 @@ -6180,7 +6183,7 @@ if test -z "$ac_cv_path_RANLIB_FOR_TARGE
40382 # Extract the first word of "ranlib", so it can be a program name with args.
40383 set dummy ranlib; ac_word=$2
40384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40385 -echo "configure:6184: checking for $ac_word" >&5
40386 +echo "configure:6187: checking for $ac_word" >&5
40387 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
40388 echo $ac_n "(cached) $ac_c" 1>&6
40389 else
40390 @@ -6217,7 +6220,7 @@ if test -z "$ac_cv_path_RANLIB_FOR_TARGE
40391 if test -n "$with_build_time_tools"; then
40392 for ncn_progname in ranlib; do
40393 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40394 -echo "configure:6221: checking for ${ncn_progname} in $with_build_time_tools" >&5
40395 +echo "configure:6224: checking for ${ncn_progname} in $with_build_time_tools" >&5
40396 if test -x $with_build_time_tools/${ncn_progname}; then
40397 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40398 echo "$ac_t""yes" 1>&6
40399 @@ -6234,7 +6237,7 @@ if test -z "$ac_cv_prog_RANLIB_FOR_TARGE
40400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40401 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40403 -echo "configure:6238: checking for $ac_word" >&5
40404 +echo "configure:6241: checking for $ac_word" >&5
40405 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
40406 echo $ac_n "(cached) $ac_c" 1>&6
40407 else
40408 @@ -6265,7 +6268,7 @@ fi
40409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40410 set dummy ${ncn_progname}; ac_word=$2
40411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40412 -echo "configure:6269: checking for $ac_word" >&5
40413 +echo "configure:6272: checking for $ac_word" >&5
40414 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
40415 echo $ac_n "(cached) $ac_c" 1>&6
40416 else
40417 @@ -6315,7 +6318,7 @@ fi
40418 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
40419 if test -n "$with_build_time_tools"; then
40420 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
40421 -echo "configure:6319: checking for strip in $with_build_time_tools" >&5
40422 +echo "configure:6322: checking for strip in $with_build_time_tools" >&5
40423 if test -x $with_build_time_tools/strip; then
40424 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
40425 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
40426 @@ -6333,7 +6336,7 @@ if test -z "$ac_cv_path_STRIP_FOR_TARGET
40427 # Extract the first word of "strip", so it can be a program name with args.
40428 set dummy strip; ac_word=$2
40429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40430 -echo "configure:6337: checking for $ac_word" >&5
40431 +echo "configure:6340: checking for $ac_word" >&5
40432 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
40433 echo $ac_n "(cached) $ac_c" 1>&6
40434 else
40435 @@ -6370,7 +6373,7 @@ if test -z "$ac_cv_path_STRIP_FOR_TARGET
40436 if test -n "$with_build_time_tools"; then
40437 for ncn_progname in strip; do
40438 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40439 -echo "configure:6374: checking for ${ncn_progname} in $with_build_time_tools" >&5
40440 +echo "configure:6377: checking for ${ncn_progname} in $with_build_time_tools" >&5
40441 if test -x $with_build_time_tools/${ncn_progname}; then
40442 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40443 echo "$ac_t""yes" 1>&6
40444 @@ -6387,7 +6390,7 @@ if test -z "$ac_cv_prog_STRIP_FOR_TARGET
40445 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40446 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40448 -echo "configure:6391: checking for $ac_word" >&5
40449 +echo "configure:6394: checking for $ac_word" >&5
40450 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
40451 echo $ac_n "(cached) $ac_c" 1>&6
40452 else
40453 @@ -6418,7 +6421,7 @@ fi
40454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40455 set dummy ${ncn_progname}; ac_word=$2
40456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40457 -echo "configure:6422: checking for $ac_word" >&5
40458 +echo "configure:6425: checking for $ac_word" >&5
40459 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
40460 echo $ac_n "(cached) $ac_c" 1>&6
40461 else
40462 @@ -6468,7 +6471,7 @@ fi
40463 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
40464 if test -n "$with_build_time_tools"; then
40465 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
40466 -echo "configure:6472: checking for windres in $with_build_time_tools" >&5
40467 +echo "configure:6475: checking for windres in $with_build_time_tools" >&5
40468 if test -x $with_build_time_tools/windres; then
40469 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
40470 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
40471 @@ -6486,7 +6489,7 @@ if test -z "$ac_cv_path_WINDRES_FOR_TARG
40472 # Extract the first word of "windres", so it can be a program name with args.
40473 set dummy windres; ac_word=$2
40474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40475 -echo "configure:6490: checking for $ac_word" >&5
40476 +echo "configure:6493: checking for $ac_word" >&5
40477 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
40478 echo $ac_n "(cached) $ac_c" 1>&6
40479 else
40480 @@ -6523,7 +6526,7 @@ if test -z "$ac_cv_path_WINDRES_FOR_TARG
40481 if test -n "$with_build_time_tools"; then
40482 for ncn_progname in windres; do
40483 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40484 -echo "configure:6527: checking for ${ncn_progname} in $with_build_time_tools" >&5
40485 +echo "configure:6530: checking for ${ncn_progname} in $with_build_time_tools" >&5
40486 if test -x $with_build_time_tools/${ncn_progname}; then
40487 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40488 echo "$ac_t""yes" 1>&6
40489 @@ -6540,7 +6543,7 @@ if test -z "$ac_cv_prog_WINDRES_FOR_TARG
40490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40491 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40493 -echo "configure:6544: checking for $ac_word" >&5
40494 +echo "configure:6547: checking for $ac_word" >&5
40495 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
40496 echo $ac_n "(cached) $ac_c" 1>&6
40497 else
40498 @@ -6571,7 +6574,7 @@ fi
40499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40500 set dummy ${ncn_progname}; ac_word=$2
40501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40502 -echo "configure:6575: checking for $ac_word" >&5
40503 +echo "configure:6578: checking for $ac_word" >&5
40504 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
40505 echo $ac_n "(cached) $ac_c" 1>&6
40506 else
40507 @@ -6619,7 +6622,7 @@ fi
40508 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
40509
40510 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
40511 -echo "configure:6623: checking where to find the target ar" >&5
40512 +echo "configure:6626: checking where to find the target ar" >&5
40513 if test "x${build}" != "x${host}" ; then
40514 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
40515 # We already found the complete path
40516 @@ -6652,7 +6655,7 @@ else
40517 fi
40518 fi
40519 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
40520 -echo "configure:6656: checking where to find the target as" >&5
40521 +echo "configure:6659: checking where to find the target as" >&5
40522 if test "x${build}" != "x${host}" ; then
40523 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
40524 # We already found the complete path
40525 @@ -6685,7 +6688,7 @@ else
40526 fi
40527 fi
40528 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
40529 -echo "configure:6689: checking where to find the target cc" >&5
40530 +echo "configure:6692: checking where to find the target cc" >&5
40531 if test "x${build}" != "x${host}" ; then
40532 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
40533 # We already found the complete path
40534 @@ -6718,7 +6721,7 @@ else
40535 fi
40536 fi
40537 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
40538 -echo "configure:6722: checking where to find the target c++" >&5
40539 +echo "configure:6725: checking where to find the target c++" >&5
40540 if test "x${build}" != "x${host}" ; then
40541 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
40542 # We already found the complete path
40543 @@ -6754,7 +6757,7 @@ else
40544 fi
40545 fi
40546 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
40547 -echo "configure:6758: checking where to find the target c++ for libstdc++" >&5
40548 +echo "configure:6761: checking where to find the target c++ for libstdc++" >&5
40549 if test "x${build}" != "x${host}" ; then
40550 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
40551 # We already found the complete path
40552 @@ -6790,7 +6793,7 @@ else
40553 fi
40554 fi
40555 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
40556 -echo "configure:6794: checking where to find the target dlltool" >&5
40557 +echo "configure:6797: checking where to find the target dlltool" >&5
40558 if test "x${build}" != "x${host}" ; then
40559 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
40560 # We already found the complete path
40561 @@ -6823,7 +6826,7 @@ else
40562 fi
40563 fi
40564 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
40565 -echo "configure:6827: checking where to find the target gcc" >&5
40566 +echo "configure:6830: checking where to find the target gcc" >&5
40567 if test "x${build}" != "x${host}" ; then
40568 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
40569 # We already found the complete path
40570 @@ -6856,7 +6859,7 @@ else
40571 fi
40572 fi
40573 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
40574 -echo "configure:6860: checking where to find the target gcj" >&5
40575 +echo "configure:6863: checking where to find the target gcj" >&5
40576 if test "x${build}" != "x${host}" ; then
40577 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
40578 # We already found the complete path
40579 @@ -6892,7 +6895,7 @@ else
40580 fi
40581 fi
40582 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
40583 -echo "configure:6896: checking where to find the target gfortran" >&5
40584 +echo "configure:6899: checking where to find the target gfortran" >&5
40585 if test "x${build}" != "x${host}" ; then
40586 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
40587 # We already found the complete path
40588 @@ -6928,7 +6931,7 @@ else
40589 fi
40590 fi
40591 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
40592 -echo "configure:6932: checking where to find the target ld" >&5
40593 +echo "configure:6935: checking where to find the target ld" >&5
40594 if test "x${build}" != "x${host}" ; then
40595 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
40596 # We already found the complete path
40597 @@ -6961,7 +6964,7 @@ else
40598 fi
40599 fi
40600 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
40601 -echo "configure:6965: checking where to find the target lipo" >&5
40602 +echo "configure:6968: checking where to find the target lipo" >&5
40603 if test "x${build}" != "x${host}" ; then
40604 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
40605 # We already found the complete path
40606 @@ -6984,7 +6987,7 @@ else
40607 fi
40608 fi
40609 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
40610 -echo "configure:6988: checking where to find the target nm" >&5
40611 +echo "configure:6991: checking where to find the target nm" >&5
40612 if test "x${build}" != "x${host}" ; then
40613 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
40614 # We already found the complete path
40615 @@ -7017,7 +7020,7 @@ else
40616 fi
40617 fi
40618 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
40619 -echo "configure:7021: checking where to find the target objdump" >&5
40620 +echo "configure:7024: checking where to find the target objdump" >&5
40621 if test "x${build}" != "x${host}" ; then
40622 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
40623 # We already found the complete path
40624 @@ -7050,7 +7053,7 @@ else
40625 fi
40626 fi
40627 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
40628 -echo "configure:7054: checking where to find the target ranlib" >&5
40629 +echo "configure:7057: checking where to find the target ranlib" >&5
40630 if test "x${build}" != "x${host}" ; then
40631 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
40632 # We already found the complete path
40633 @@ -7083,7 +7086,7 @@ else
40634 fi
40635 fi
40636 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
40637 -echo "configure:7087: checking where to find the target strip" >&5
40638 +echo "configure:7090: checking where to find the target strip" >&5
40639 if test "x${build}" != "x${host}" ; then
40640 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
40641 # We already found the complete path
40642 @@ -7116,7 +7119,7 @@ else
40643 fi
40644 fi
40645 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
40646 -echo "configure:7120: checking where to find the target windres" >&5
40647 +echo "configure:7123: checking where to find the target windres" >&5
40648 if test "x${build}" != "x${host}" ; then
40649 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
40650 # We already found the complete path
40651 @@ -7177,7 +7180,7 @@ fi
40652
40653
40654 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
40655 -echo "configure:7181: checking whether to enable maintainer-specific portions of Makefiles" >&5
40656 +echo "configure:7184: checking whether to enable maintainer-specific portions of Makefiles" >&5
40657 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
40658 if test "${enable_maintainer_mode+set}" = set; then
40659 enableval="$enable_maintainer_mode"
40660 @@ -7334,34 +7337,15 @@ trap 'rm -f $CONFIG_STATUS conftest*; ex
40661 # Transform confdefs.h into DEFS.
40662 # Protect against shell expansion while executing Makefile rules.
40663 # Protect against Makefile macro expansion.
40664 -#
40665 -# If the first sed substitution is executed (which looks for macros that
40666 -# take arguments), then we branch to the quote section. Otherwise,
40667 -# look for a macro that doesn't take arguments.
40668 -cat >confdef2opt.sed <<\_ACEOF
40669 -t clear
40670 -: clear
40671 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
40672 -t quote
40673 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
40674 -t quote
40675 -d
40676 -: quote
40677 -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
40678 -s,\[,\\&,g
40679 -s,\],\\&,g
40680 -s,\$,$$,g
40681 -p
40682 -_ACEOF
40683 -# We use echo to avoid assuming a particular line-breaking character.
40684 -# The extra dot is to prevent the shell from consuming trailing
40685 -# line-breaks from the sub-command output. A line-break within
40686 -# single-quotes doesn't work because, if this script is created in a
40687 -# platform that uses two characters for line-breaks (e.g., DOS), tr
40688 -# would break.
40689 -ac_LF_and_DOT=`echo; echo .`
40690 -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
40691 -rm -f confdef2opt.sed
40692 +cat > conftest.defs <<\EOF
40693 +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
40694 +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
40695 +s%\[%\\&%g
40696 +s%\]%\\&%g
40697 +s%\$%$$%g
40698 +EOF
40699 +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
40700 +rm -f conftest.defs
40701
40702
40703 # Without the "./", some shells look in PATH for config.status.
40704 --- a/configure.in
40705 +++ b/configure.in
40706 @@ -269,6 +269,9 @@ unsupported_languages=
40707 # exist yet.
40708
40709 case "${host}" in
40710 + avr32*-*-*)
40711 + noconfigdirs="$noconfigdirs readline gdb"
40712 + ;;
40713 hppa*64*-*-*)
40714 noconfigdirs="$noconfigdirs byacc"
40715 ;;
40716 --- a/gas/as.c
40717 +++ b/gas/as.c
40718 @@ -439,10 +439,10 @@ parse_args (int * pargc, char *** pargv)
40719 the end of the preceeding line so that it is simpler to
40720 selectively add and remove lines from this list. */
40721 {"alternate", no_argument, NULL, OPTION_ALTERNATE}
40722 - /* The entry for "a" is here to prevent getopt_long_only() from
40723 - considering that -a is an abbreviation for --alternate. This is
40724 - necessary because -a=<FILE> is a valid switch but getopt would
40725 - normally reject it since --alternate does not take an argument. */
40726 + /* The next two entries are here to prevent getopt_long_only() from
40727 + considering that -a or -al is an abbreviation for --alternate.
40728 + This is necessary because -a=<FILE> is a valid switch but getopt
40729 + would normally reject it since --alternate does not take an argument. */
40730 ,{"a", optional_argument, NULL, 'a'}
40731 /* Handle -al=<FILE>. */
40732 ,{"al", optional_argument, NULL, OPTION_AL}
40733 @@ -795,8 +795,15 @@ the GNU General Public License. This pr
40734 case 'a':
40735 if (optarg)
40736 {
40737 - if (optarg != old_argv[optind] && optarg[-1] == '=')
40738 - --optarg;
40739 + /* If optarg is part of the -a switch and not a separate argument
40740 + in its own right, then scan backwards to the just after the -a.
40741 + This means skipping over both '=' and 'l' which might have been
40742 + taken to be part of the -a switch itself. */
40743 + if (optarg != old_argv[optind])
40744 + {
40745 + while (optarg[-1] == '=' || optarg[-1] == 'l')
40746 + --optarg;
40747 + }
40748
40749 if (md_parse_option (optc, optarg) != 0)
40750 break;
40751 @@ -1189,7 +1196,7 @@ main (int argc, char ** argv)
40752 keep_it = 0;
40753
40754 if (!keep_it)
40755 - unlink_if_ordinary (out_file_name);
40756 + unlink (out_file_name);
40757
40758 input_scrub_end ();
40759
40760 --- a/gas/config/bfin-aux.h
40761 +++ b/gas/config/bfin-aux.h
40762 @@ -1,151 +1,151 @@
40763 -/* bfin-aux.h ADI Blackfin Header file for gas
40764 - Copyright 2005
40765 - Free Software Foundation, Inc.
40766 -
40767 - This file is part of GAS, the GNU Assembler.
40768 -
40769 - GAS is free software; you can redistribute it and/or modify
40770 - it under the terms of the GNU General Public License as published by
40771 - the Free Software Foundation; either version 2, or (at your option)
40772 - any later version.
40773 -
40774 - GAS is distributed in the hope that it will be useful,
40775 - but WITHOUT ANY WARRANTY; without even the implied warranty of
40776 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40777 - GNU General Public License for more details.
40778 -
40779 - You should have received a copy of the GNU General Public License
40780 - along with GAS; see the file COPYING. If not, write to the Free
40781 - Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
40782 - 02110-1301, USA. */
40783 -
40784 -#include "bfin-defs.h"
40785 -
40786 -#define REG_T Register *
40787 -
40788 -INSTR_T
40789 -bfin_gen_dsp32mac (int op1, int mm, int mmod, int w1, int p,
40790 - int h01, int h11, int h00, int h10,
40791 - int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40792 -
40793 -INSTR_T
40794 -bfin_gen_dsp32mult (int op1, int mm, int mmod, int w1, int p,
40795 - int h01, int h11, int h00, int h10,
40796 - int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40797 -
40798 -INSTR_T
40799 -bfin_gen_dsp32alu (int HL, int aopcde, int aop, int s, int x,
40800 - REG_T dst0, REG_T dst1, REG_T src0, REG_T src1);
40801 -
40802 -INSTR_T
40803 -bfin_gen_dsp32shift (int sopcde, REG_T dst0, REG_T src0, REG_T src1,
40804 - int sop, int hls);
40805 -
40806 -INSTR_T
40807 -bfin_gen_dsp32shiftimm (int sopcde, REG_T dst0, int immag, REG_T src1,
40808 - int sop, int hls);
40809 -
40810 -INSTR_T
40811 -bfin_gen_ldimmhalf (REG_T reg, int h, int s, int z, Expr_Node *hword,
40812 - int reloc);
40813 -
40814 -INSTR_T
40815 -bfin_gen_ldstidxi (REG_T ptr, REG_T reg, int w, int sz, int z,
40816 - Expr_Node *offset);
40817 -
40818 -INSTR_T
40819 -bfin_gen_ldst (REG_T ptr, REG_T reg, int aop, int sz, int z, int w);
40820 -
40821 -INSTR_T
40822 -bfin_gen_ldstii (REG_T ptr, REG_T reg, Expr_Node *offset, int w, int op);
40823 -
40824 -INSTR_T
40825 -bfin_gen_ldstiifp (REG_T reg, Expr_Node *offset, int w);
40826 -
40827 -INSTR_T
40828 -bfin_gen_ldstpmod (REG_T ptr, REG_T reg, int aop, int w, REG_T idx);
40829 -
40830 -INSTR_T
40831 -bfin_gen_dspldst (REG_T i, REG_T reg, int aop, int w, int m);
40832 -
40833 -INSTR_T
40834 -bfin_gen_alu2op (REG_T dst, REG_T src, int opc);
40835 -
40836 -INSTR_T
40837 -bfin_gen_compi2opd (REG_T dst, int src, int op);
40838 -
40839 -INSTR_T
40840 -bfin_gen_compi2opp (REG_T dst, int src, int op);
40841 -
40842 -INSTR_T
40843 -bfin_gen_dagmodik (REG_T i, int op);
40844 -
40845 -INSTR_T
40846 -bfin_gen_dagmodim (REG_T i, REG_T m, int op, int br);
40847 -
40848 -INSTR_T
40849 -bfin_gen_ptr2op (REG_T dst, REG_T src, int opc);
40850 -
40851 -INSTR_T
40852 -bfin_gen_logi2op (int dst, int src, int opc);
40853 -
40854 -INSTR_T
40855 -bfin_gen_comp3op (REG_T src0, REG_T src1, REG_T dst, int opc);
40856 -
40857 -INSTR_T
40858 -bfin_gen_ccmv (REG_T src, REG_T dst, int t);
40859 -
40860 -INSTR_T
40861 -bfin_gen_ccflag (REG_T x, int y, int opc, int i, int g);
40862 -
40863 -INSTR_T
40864 -bfin_gen_cc2stat (int cbit, int op, int d);
40865 -
40866 -INSTR_T
40867 -bfin_gen_regmv (REG_T src, REG_T dst);
40868 -
40869 -INSTR_T
40870 -bfin_gen_cc2dreg (int op, REG_T reg);
40871 -
40872 -INSTR_T
40873 -bfin_gen_brcc (int t, int b, Expr_Node *offset);
40874 -
40875 -INSTR_T
40876 -bfin_gen_ujump (Expr_Node *offset);
40877 -
40878 -INSTR_T
40879 -bfin_gen_cactrl (REG_T reg, int a, int op);
40880 -
40881 -INSTR_T
40882 -bfin_gen_progctrl (int prgfunc, int poprnd);
40883 -
40884 -INSTR_T
40885 -bfin_gen_loopsetup (Expr_Node *soffset, REG_T c, int rop,
40886 - Expr_Node *eoffset, REG_T reg);
40887 -
40888 -INSTR_T
40889 -bfin_gen_loop (Expr_Node *expr, REG_T reg, int rop, REG_T preg);
40890 -
40891 -INSTR_T
40892 -bfin_gen_pushpopmultiple (int dr, int pr, int d, int p, int w);
40893 -
40894 -INSTR_T
40895 -bfin_gen_pushpopreg (REG_T reg, int w);
40896 -
40897 -INSTR_T
40898 -bfin_gen_calla (Expr_Node *addr, int s);
40899 -
40900 -INSTR_T
40901 -bfin_gen_linkage (int r, int framesize);
40902 -
40903 -INSTR_T
40904 -bfin_gen_pseudodbg (int fn, int reg, int grp);
40905 -
40906 -INSTR_T
40907 -bfin_gen_pseudodbg_assert (int dbgop, REG_T regtest, int expected);
40908 -
40909 -bfd_boolean
40910 -bfin_resource_conflict (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
40911 -
40912 -INSTR_T
40913 -bfin_gen_multi_instr (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
40914 +/* bfin-aux.h ADI Blackfin Header file for gas
40915 + Copyright 2005
40916 + Free Software Foundation, Inc.
40917 +
40918 + This file is part of GAS, the GNU Assembler.
40919 +
40920 + GAS is free software; you can redistribute it and/or modify
40921 + it under the terms of the GNU General Public License as published by
40922 + the Free Software Foundation; either version 2, or (at your option)
40923 + any later version.
40924 +
40925 + GAS is distributed in the hope that it will be useful,
40926 + but WITHOUT ANY WARRANTY; without even the implied warranty of
40927 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40928 + GNU General Public License for more details.
40929 +
40930 + You should have received a copy of the GNU General Public License
40931 + along with GAS; see the file COPYING. If not, write to the Free
40932 + Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
40933 + 02110-1301, USA. */
40934 +
40935 +#include "bfin-defs.h"
40936 +
40937 +#define REG_T Register *
40938 +
40939 +INSTR_T
40940 +bfin_gen_dsp32mac (int op1, int mm, int mmod, int w1, int p,
40941 + int h01, int h11, int h00, int h10,
40942 + int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40943 +
40944 +INSTR_T
40945 +bfin_gen_dsp32mult (int op1, int mm, int mmod, int w1, int p,
40946 + int h01, int h11, int h00, int h10,
40947 + int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40948 +
40949 +INSTR_T
40950 +bfin_gen_dsp32alu (int HL, int aopcde, int aop, int s, int x,
40951 + REG_T dst0, REG_T dst1, REG_T src0, REG_T src1);
40952 +
40953 +INSTR_T
40954 +bfin_gen_dsp32shift (int sopcde, REG_T dst0, REG_T src0, REG_T src1,
40955 + int sop, int hls);
40956 +
40957 +INSTR_T
40958 +bfin_gen_dsp32shiftimm (int sopcde, REG_T dst0, int immag, REG_T src1,
40959 + int sop, int hls);
40960 +
40961 +INSTR_T
40962 +bfin_gen_ldimmhalf (REG_T reg, int h, int s, int z, Expr_Node *hword,
40963 + int reloc);
40964 +
40965 +INSTR_T
40966 +bfin_gen_ldstidxi (REG_T ptr, REG_T reg, int w, int sz, int z,
40967 + Expr_Node *offset);
40968 +
40969 +INSTR_T
40970 +bfin_gen_ldst (REG_T ptr, REG_T reg, int aop, int sz, int z, int w);
40971 +
40972 +INSTR_T
40973 +bfin_gen_ldstii (REG_T ptr, REG_T reg, Expr_Node *offset, int w, int op);
40974 +
40975 +INSTR_T
40976 +bfin_gen_ldstiifp (REG_T reg, Expr_Node *offset, int w);
40977 +
40978 +INSTR_T
40979 +bfin_gen_ldstpmod (REG_T ptr, REG_T reg, int aop, int w, REG_T idx);
40980 +
40981 +INSTR_T
40982 +bfin_gen_dspldst (REG_T i, REG_T reg, int aop, int w, int m);
40983 +
40984 +INSTR_T
40985 +bfin_gen_alu2op (REG_T dst, REG_T src, int opc);
40986 +
40987 +INSTR_T
40988 +bfin_gen_compi2opd (REG_T dst, int src, int op);
40989 +
40990 +INSTR_T
40991 +bfin_gen_compi2opp (REG_T dst, int src, int op);
40992 +
40993 +INSTR_T
40994 +bfin_gen_dagmodik (REG_T i, int op);
40995 +
40996 +INSTR_T
40997 +bfin_gen_dagmodim (REG_T i, REG_T m, int op, int br);
40998 +
40999 +INSTR_T
41000 +bfin_gen_ptr2op (REG_T dst, REG_T src, int opc);
41001 +
41002 +INSTR_T
41003 +bfin_gen_logi2op (int dst, int src, int opc);
41004 +
41005 +INSTR_T
41006 +bfin_gen_comp3op (REG_T src0, REG_T src1, REG_T dst, int opc);
41007 +
41008 +INSTR_T
41009 +bfin_gen_ccmv (REG_T src, REG_T dst, int t);
41010 +
41011 +INSTR_T
41012 +bfin_gen_ccflag (REG_T x, int y, int opc, int i, int g);
41013 +
41014 +INSTR_T
41015 +bfin_gen_cc2stat (int cbit, int op, int d);
41016 +
41017 +INSTR_T
41018 +bfin_gen_regmv (REG_T src, REG_T dst);
41019 +
41020 +INSTR_T
41021 +bfin_gen_cc2dreg (int op, REG_T reg);
41022 +
41023 +INSTR_T
41024 +bfin_gen_brcc (int t, int b, Expr_Node *offset);
41025 +
41026 +INSTR_T
41027 +bfin_gen_ujump (Expr_Node *offset);
41028 +
41029 +INSTR_T
41030 +bfin_gen_cactrl (REG_T reg, int a, int op);
41031 +
41032 +INSTR_T
41033 +bfin_gen_progctrl (int prgfunc, int poprnd);
41034 +
41035 +INSTR_T
41036 +bfin_gen_loopsetup (Expr_Node *soffset, REG_T c, int rop,
41037 + Expr_Node *eoffset, REG_T reg);
41038 +
41039 +INSTR_T
41040 +bfin_gen_loop (Expr_Node *expr, REG_T reg, int rop, REG_T preg);
41041 +
41042 +INSTR_T
41043 +bfin_gen_pushpopmultiple (int dr, int pr, int d, int p, int w);
41044 +
41045 +INSTR_T
41046 +bfin_gen_pushpopreg (REG_T reg, int w);
41047 +
41048 +INSTR_T
41049 +bfin_gen_calla (Expr_Node *addr, int s);
41050 +
41051 +INSTR_T
41052 +bfin_gen_linkage (int r, int framesize);
41053 +
41054 +INSTR_T
41055 +bfin_gen_pseudodbg (int fn, int reg, int grp);
41056 +
41057 +INSTR_T
41058 +bfin_gen_pseudodbg_assert (int dbgop, REG_T regtest, int expected);
41059 +
41060 +bfd_boolean
41061 +bfin_resource_conflict (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
41062 +
41063 +INSTR_T
41064 +bfin_gen_multi_instr (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
41065 --- /dev/null
41066 +++ b/gas/config/tc-avr32.c
41067 @@ -0,0 +1,4726 @@
41068 +/* Assembler implementation for AVR32.
41069 + Copyright 2003-2006 Atmel Corporation.
41070 +
41071 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
41072 +
41073 + This file is part of GAS, the GNU Assembler.
41074 +
41075 + GAS is free software; you can redistribute it and/or modify it
41076 + under the terms of the GNU General Public License as published by
41077 + the Free Software Foundation; either version 2, or (at your option)
41078 + any later version.
41079 +
41080 + GAS is distributed in the hope that it will be useful, but WITHOUT
41081 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
41082 + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
41083 + License for more details.
41084 +
41085 + You should have received a copy of the GNU General Public License
41086 + along with GAS; see the file COPYING. If not, write to the Free
41087 + Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41088 + 02111-1307, USA. */
41089 +
41090 +#include <stdio.h>
41091 +#include "as.h"
41092 +#include "safe-ctype.h"
41093 +#include "subsegs.h"
41094 +#include "symcat.h"
41095 +#include "opcodes/avr32-opc.h"
41096 +#include "opcodes/avr32-asm.h"
41097 +#include "elf/avr32.h"
41098 +#include "dwarf2dbg.h"
41099 +
41100 +#define xDEBUG
41101 +#define xOPC_CONSISTENCY_CHECK
41102 +
41103 +#ifdef DEBUG
41104 +# define pr_debug(fmt, args...) fprintf(stderr, fmt, ##args)
41105 +#else
41106 +# define pr_debug(fmt, args...)
41107 +#endif
41108 +
41109 +/* 3 MSB of instruction word indicate group. Group 7 -> extended */
41110 +#define AVR32_COMPACT_P(opcode) ((opcode[0] & 0xe0) != 0xe0)
41111 +
41112 +#define streq(a, b) (strcmp(a, b) == 0)
41113 +#define skip_whitespace(str) do { while(*(str) == ' ') ++(str); } while(0)
41114 +
41115 +/* Flags given on the command line */
41116 +static int avr32_pic = FALSE;
41117 +int linkrelax = FALSE;
41118 +int avr32_iarcompat = FALSE;
41119 +int allow_direct_data_refs = FALSE;
41120 +
41121 +/* This array holds the chars that always start a comment. */
41122 +const char comment_chars[] = "#";
41123 +
41124 +/* This array holds the chars that only start a comment at the
41125 + beginning of a line. We must include '#' here because the compiler
41126 + may produce #APP and #NO_APP in its output. */
41127 +const char line_comment_chars[] = "#";
41128 +
41129 +/* These may be used instead of newline (same as ';' in C). */
41130 +const char line_separator_chars[] = ";";
41131 +
41132 +/* Chars that can be used to separate mantissa from exponent in
41133 + floating point numbers. */
41134 +const char EXP_CHARS[] = "eE";
41135 +
41136 +/* Chars that mean this number is a floating point constant. */
41137 +const char FLT_CHARS[] = "dD";
41138 +
41139 +/* Pre-defined "_GLOBAL_OFFSET_TABLE_" */
41140 +symbolS *GOT_symbol;
41141 +
41142 +static struct hash_control *avr32_mnemonic_htab;
41143 +
41144 +struct avr32_ifield_data
41145 +{
41146 + bfd_vma value;
41147 + /* FIXME: Get rid of align_order and complain. complain is never
41148 + used, align_order is used in one place. Try to use the relax
41149 + table instead. */
41150 + unsigned int align_order;
41151 +};
41152 +
41153 +struct avr32_insn
41154 +{
41155 + const struct avr32_syntax *syntax;
41156 + expressionS immediate;
41157 + int pcrel;
41158 + int force_extended;
41159 + unsigned int next_slot;
41160 + bfd_reloc_code_real_type r_type;
41161 + struct avr32_ifield_data field_value[AVR32_MAX_FIELDS];
41162 +};
41163 +
41164 +static struct avr32_insn current_insn;
41165 +
41166 +/* The target specific pseudo-ops we support. */
41167 +static void s_rseg (int);
41168 +static void s_cpool(int);
41169 +
41170 +const pseudo_typeS md_pseudo_table[] =
41171 +{
41172 + /* Make sure that .word is 32 bits */
41173 + { "word", cons, 4 },
41174 + { "file", (void (*) PARAMS ((int))) dwarf2_directive_file, 0 },
41175 + { "loc", dwarf2_directive_loc, 0 },
41176 +
41177 + /* .lcomm requires an explicit alignment parameter */
41178 + { "lcomm", s_lcomm, 1 },
41179 +
41180 + /* AVR32-specific pseudo-ops */
41181 + { "cpool", s_cpool, 0},
41182 +
41183 + /* IAR compatible pseudo-ops */
41184 + { "program", s_ignore, 0 },
41185 + { "public", s_globl, 0 },
41186 + { "extern", s_ignore, 0 },
41187 + { "module", s_ignore, 0 },
41188 + { "rseg", s_rseg, 0 },
41189 + { "dc8", cons, 1 },
41190 + { "dc16", cons, 2 },
41191 + { "dc32", cons, 4 },
41192 +
41193 + { NULL, NULL, 0 }
41194 +};
41195 +
41196 +/* Questionable stuff starts here */
41197 +
41198 +enum avr32_opinfo {
41199 + AVR32_OPINFO_NONE = BFD_RELOC_NONE,
41200 + AVR32_OPINFO_GOT,
41201 + AVR32_OPINFO_TLSGD,
41202 + AVR32_OPINFO_HI,
41203 + AVR32_OPINFO_LO,
41204 +};
41205 +
41206 +enum avr32_arch {
41207 + ARCH_TYPE_AP,
41208 + ARCH_TYPE_UC
41209 +};
41210 +
41211 +struct arch_type_s
41212 +{
41213 + /* Architecture name */
41214 + char *name;
41215 + /* Instruction Set Architecture Flags */
41216 + unsigned long isa_flags;
41217 +};
41218 +
41219 +struct part_type_s
41220 +{
41221 + /* Part name */
41222 + char *name;
41223 + /* Architecture type */
41224 + unsigned int arch;
41225 +};
41226 +
41227 +static struct arch_type_s arch_types[] =
41228 +{
41229 + {"ap", AVR32_V1 | AVR32_SIMD | AVR32_DSP | AVR32_PICO},
41230 + {"uc", AVR32_V1 | AVR32_DSP | AVR32_RMW},
41231 + {"all-insn", AVR32_V1 | AVR32_SIMD | AVR32_DSP | AVR32_RMW | AVR32_FP | AVR32_PICO},
41232 + {NULL, 0}
41233 +};
41234 +
41235 +static struct part_type_s part_types[] = {
41236 + {"ap7000", ARCH_TYPE_AP},
41237 + {"ap7010", ARCH_TYPE_AP},
41238 + {"ap7020", ARCH_TYPE_AP},
41239 + {"uc3a0256", ARCH_TYPE_UC},
41240 + {"uc3a0512", ARCH_TYPE_UC},
41241 + {"uc3a1128", ARCH_TYPE_UC},
41242 + {"uc3a1256", ARCH_TYPE_UC},
41243 + {"uc3a1512", ARCH_TYPE_UC},
41244 + {"uc3b064", ARCH_TYPE_UC},
41245 + {"uc3b0128", ARCH_TYPE_UC},
41246 + {"uc3b0256", ARCH_TYPE_UC},
41247 + {"uc3b164", ARCH_TYPE_UC},
41248 + {"uc3b1128", ARCH_TYPE_UC},
41249 + {"uc3b1256", ARCH_TYPE_UC},
41250 + {NULL, 0}
41251 +};
41252 +
41253 +/* Current architecture type. */
41254 +static struct arch_type_s default_arch = {"all-insn", AVR32_V1 | AVR32_SIMD | AVR32_DSP | AVR32_RMW | AVR32_FP | AVR32_PICO };
41255 +static struct arch_type_s *avr32_arch = &default_arch;
41256 +
41257 +/* Display nicely formatted list of known part- and architecture names. */
41258 +
41259 +static void
41260 +show_arch_list (FILE *stream)
41261 +{
41262 + int i, x;
41263 +
41264 + fprintf (stream, _("Known architecture names:"));
41265 + x = 1000;
41266 +
41267 + for (i = 0; arch_types[i].name; i++)
41268 + {
41269 + int len = strlen (arch_types[i].name);
41270 +
41271 + x += len + 1;
41272 +
41273 + if (x < 75)
41274 + fprintf (stream, " %s", arch_types[i].name);
41275 + else
41276 + {
41277 + fprintf (stream, "\n %s", arch_types[i].name);
41278 + x = len + 2;
41279 + }
41280 + }
41281 +
41282 + fprintf (stream, "\n");
41283 +}
41284 +
41285 +static void
41286 +show_part_list (FILE *stream)
41287 +{
41288 + int i, x;
41289 +
41290 + fprintf (stream, _("Known part names:"));
41291 + x = 1000;
41292 +
41293 + for (i = 0; part_types[i].name; i++)
41294 + {
41295 + int len = strlen(part_types[i].name);
41296 +
41297 + x += len + 1;
41298 +
41299 + if (x < 75)
41300 + fprintf (stream, " %s", part_types[i].name);
41301 + else
41302 + {
41303 + fprintf(stream, "\n %s", part_types[i].name);
41304 + x = len + 2;
41305 + }
41306 + }
41307 +
41308 + fprintf (stream, "\n");
41309 +}
41310 +
41311 +const char *md_shortopts = "";
41312 +struct option md_longopts[] =
41313 +{
41314 +#define OPTION_ARCH (OPTION_MD_BASE)
41315 +#define OPTION_PART (OPTION_ARCH + 1)
41316 +#define OPTION_IAR (OPTION_PART + 1)
41317 +#define OPTION_PIC (OPTION_IAR + 1)
41318 +#define OPTION_NOPIC (OPTION_PIC + 1)
41319 +#define OPTION_LINKRELAX (OPTION_NOPIC + 1)
41320 +#define OPTION_NOLINKRELAX (OPTION_LINKRELAX + 1)
41321 +#define OPTION_DIRECT_DATA_REFS (OPTION_NOLINKRELAX + 1)
41322 + {"march", required_argument, NULL, OPTION_ARCH},
41323 + {"mpart", required_argument, NULL, OPTION_PART},
41324 + {"iar", no_argument, NULL, OPTION_IAR},
41325 + {"pic", no_argument, NULL, OPTION_PIC},
41326 + {"no-pic", no_argument, NULL, OPTION_NOPIC},
41327 + {"linkrelax", no_argument, NULL, OPTION_LINKRELAX},
41328 + {"no-linkrelax", no_argument, NULL, OPTION_NOLINKRELAX},
41329 + {"direct-data-refs", no_argument, NULL, OPTION_DIRECT_DATA_REFS},
41330 + /* deprecated alias for -mpart=xxx */
41331 + {"mcpu", required_argument, NULL, OPTION_PART},
41332 + {NULL, no_argument, NULL, 0}
41333 +};
41334 +
41335 +size_t md_longopts_size = sizeof (md_longopts);
41336 +
41337 +void
41338 +md_show_usage (FILE *stream)
41339 +{
41340 + fprintf (stream, _("\
41341 +AVR32 options:\n\
41342 + -march=[arch-name] Select cpu architecture. [Default `all-insn']\n\
41343 + -mpart=[part-name] Select specific part. [Default `none']\n\
41344 + --pic Produce Position-Independent Code\n\
41345 + --no-pic Don't produce Position-Independent Code\n\
41346 + --linkrelax Produce output suitable for linker relaxing\n\
41347 + --no-linkrelax Don't produce output suitable for linker relaxing\n\
41348 + --direct-data-refs Allows direct references (i.e. mov or sub) to the data section\n"));
41349 + show_arch_list(stream);
41350 +}
41351 +
41352 +int
41353 +md_parse_option (int c, char *arg ATTRIBUTE_UNUSED)
41354 +{
41355 + switch (c)
41356 + {
41357 + case OPTION_ARCH:
41358 + {
41359 + int i;
41360 + char *s = alloca (strlen (arg) + 1);
41361 +
41362 + {
41363 + char *t = s;
41364 + char *arg1 = arg;
41365 +
41366 + do
41367 + *t = TOLOWER (*arg1++);
41368 + while (*t++);
41369 + }
41370 +
41371 + for (i = 0; arch_types[i].name; ++i)
41372 + if (strcmp (arch_types[i].name, s) == 0)
41373 + break;
41374 +
41375 + if (!arch_types[i].name)
41376 + {
41377 + show_arch_list (stderr);
41378 + as_fatal (_("unknown architecture: %s\n"), arg);
41379 + }
41380 +
41381 + avr32_arch = &arch_types[i];
41382 + break;
41383 + }
41384 + case OPTION_PART:
41385 + {
41386 + int i;
41387 + char *s = alloca (strlen (arg) + 1);
41388 + char *t = s;
41389 + char *p = arg;
41390 +
41391 + /* If arch type has already been set, don't bother.
41392 + -march= always overrides -mpart= */
41393 + if (avr32_arch != &default_arch)
41394 + break;
41395 +
41396 + do
41397 + *t = TOLOWER (*p++);
41398 + while (*t++);
41399 +
41400 + for (i = 0; part_types[i].name; ++i)
41401 + if (strcmp (part_types[i].name, s) == 0)
41402 + break;
41403 +
41404 + if (!part_types[i].name)
41405 + {
41406 + show_part_list (stderr);
41407 + as_fatal (_("unknown part: %s\n"), arg);
41408 + }
41409 +
41410 + avr32_arch = &arch_types[part_types[i].arch];
41411 + break;
41412 + }
41413 + case OPTION_IAR:
41414 + avr32_iarcompat = 1;
41415 + break;
41416 + case OPTION_PIC:
41417 + avr32_pic = 1;
41418 + break;
41419 + case OPTION_NOPIC:
41420 + avr32_pic = 0;
41421 + break;
41422 + case OPTION_LINKRELAX:
41423 + linkrelax = 1;
41424 + break;
41425 + case OPTION_NOLINKRELAX:
41426 + linkrelax = 0;
41427 + break;
41428 + case OPTION_DIRECT_DATA_REFS:
41429 + allow_direct_data_refs = 1;
41430 + break;
41431 + default:
41432 + return 0;
41433 + }
41434 + return 1;
41435 +}
41436 +
41437 +/* Can't use symbol_new here, so have to create a symbol and then at
41438 + a later date assign it a value. Thats what these functions do.
41439 +
41440 + Shamelessly stolen from ARM. */
41441 +
41442 +static void
41443 +symbol_locate (symbolS * symbolP,
41444 + const char * name, /* It is copied, the caller can modify. */
41445 + segT segment, /* Segment identifier (SEG_<something>). */
41446 + valueT valu, /* Symbol value. */
41447 + fragS * frag) /* Associated fragment. */
41448 +{
41449 + unsigned int name_length;
41450 + char * preserved_copy_of_name;
41451 +
41452 + name_length = strlen (name) + 1; /* +1 for \0. */
41453 + obstack_grow (&notes, name, name_length);
41454 + preserved_copy_of_name = obstack_finish (&notes);
41455 +#ifdef STRIP_UNDERSCORE
41456 + if (preserved_copy_of_name[0] == '_')
41457 + preserved_copy_of_name++;
41458 +#endif
41459 +
41460 +#ifdef tc_canonicalize_symbol_name
41461 + preserved_copy_of_name =
41462 + tc_canonicalize_symbol_name (preserved_copy_of_name);
41463 +#endif
41464 +
41465 + S_SET_NAME (symbolP, preserved_copy_of_name);
41466 +
41467 + S_SET_SEGMENT (symbolP, segment);
41468 + S_SET_VALUE (symbolP, valu);
41469 + symbol_clear_list_pointers (symbolP);
41470 +
41471 + symbol_set_frag (symbolP, frag);
41472 +
41473 + /* Link to end of symbol chain. */
41474 + {
41475 + extern int symbol_table_frozen;
41476 +
41477 + if (symbol_table_frozen)
41478 + abort ();
41479 + }
41480 +
41481 + symbol_append (symbolP, symbol_lastP, & symbol_rootP, & symbol_lastP);
41482 +
41483 + obj_symbol_new_hook (symbolP);
41484 +
41485 +#ifdef tc_symbol_new_hook
41486 + tc_symbol_new_hook (symbolP);
41487 +#endif
41488 +
41489 +#ifdef DEBUG_SYMS
41490 + verify_symbol_chain (symbol_rootP, symbol_lastP);
41491 +#endif /* DEBUG_SYMS */
41492 +}
41493 +
41494 +struct cpool_entry
41495 +{
41496 + int refcount;
41497 + offsetT offset;
41498 + expressionS exp;
41499 +};
41500 +
41501 +struct cpool
41502 +{
41503 + struct cpool *next;
41504 + int used;
41505 + struct cpool_entry *literals;
41506 + unsigned int padding;
41507 + unsigned int next_free_entry;
41508 + unsigned int id;
41509 + symbolS *symbol;
41510 + segT section;
41511 + subsegT sub_section;
41512 +};
41513 +
41514 +struct cpool *cpool_list = NULL;
41515 +
41516 +static struct cpool *
41517 +find_cpool(segT section, subsegT sub_section)
41518 +{
41519 + struct cpool *pool;
41520 +
41521 + for (pool = cpool_list; pool != NULL; pool = pool->next)
41522 + {
41523 + if (!pool->used
41524 + && pool->section == section
41525 + && pool->sub_section == sub_section)
41526 + break;
41527 + }
41528 +
41529 + return pool;
41530 +}
41531 +
41532 +static struct cpool *
41533 +find_or_make_cpool(segT section, subsegT sub_section)
41534 +{
41535 + static unsigned int next_cpool_id = 0;
41536 + struct cpool *pool;
41537 +
41538 + pool = find_cpool(section, sub_section);
41539 +
41540 + if (!pool)
41541 + {
41542 + pool = xmalloc(sizeof(*pool));
41543 + if (!pool)
41544 + return NULL;
41545 +
41546 + pool->used = 0;
41547 + pool->literals = NULL;
41548 + pool->padding = 0;
41549 + pool->next_free_entry = 0;
41550 + pool->section = section;
41551 + pool->sub_section = sub_section;
41552 + pool->next = cpool_list;
41553 + pool->symbol = NULL;
41554 +
41555 + cpool_list = pool;
41556 + }
41557 +
41558 + /* NULL symbol means that the pool is new or has just been emptied. */
41559 + if (!pool->symbol)
41560 + {
41561 + pool->symbol = symbol_create(FAKE_LABEL_NAME, undefined_section,
41562 + 0, &zero_address_frag);
41563 + pool->id = next_cpool_id++;
41564 + }
41565 +
41566 + return pool;
41567 +}
41568 +
41569 +static struct cpool *
41570 +add_to_cpool(expressionS *exp, unsigned int *index, int ref)
41571 +{
41572 + struct cpool *pool;
41573 + unsigned int entry;
41574 +
41575 + pool = find_or_make_cpool(now_seg, now_subseg);
41576 +
41577 + /* Check if this constant is already in the pool. */
41578 + for (entry = 0; entry < pool->next_free_entry; entry++)
41579 + {
41580 + if ((pool->literals[entry].exp.X_op == exp->X_op)
41581 + && (exp->X_op == O_constant)
41582 + && (pool->literals[entry].exp.X_add_number
41583 + == exp->X_add_number)
41584 + && (pool->literals[entry].exp.X_unsigned
41585 + == exp->X_unsigned))
41586 + break;
41587 +
41588 + if ((pool->literals[entry].exp.X_op == exp->X_op)
41589 + && (exp->X_op == O_symbol)
41590 + && (pool->literals[entry].exp.X_add_number
41591 + == exp->X_add_number)
41592 + && (pool->literals[entry].exp.X_add_symbol
41593 + == exp->X_add_symbol)
41594 + && (pool->literals[entry].exp.X_op_symbol
41595 + == exp->X_op_symbol))
41596 + break;
41597 + }
41598 +
41599 + /* Create an entry if we didn't find a match */
41600 + if (entry == pool->next_free_entry)
41601 + {
41602 + pool->literals = xrealloc(pool->literals,
41603 + sizeof(struct cpool_entry) * (entry + 1));
41604 + pool->literals[entry].exp = *exp;
41605 + pool->literals[entry].refcount = 0;
41606 + pool->next_free_entry++;
41607 + }
41608 +
41609 + if (index)
41610 + *index = entry;
41611 + if (ref)
41612 + pool->literals[entry].refcount++;
41613 +
41614 + return pool;
41615 +}
41616 +
41617 +struct avr32_operand
41618 +{
41619 + int id;
41620 + int is_signed;
41621 + int is_pcrel;
41622 + int align_order;
41623 + int (*match)(char *str);
41624 + void (*parse)(const struct avr32_operand *op, char *str, int opindex);
41625 +};
41626 +
41627 +static int
41628 +match_anything(char *str ATTRIBUTE_UNUSED)
41629 +{
41630 + return 1;
41631 +}
41632 +
41633 +static int
41634 +match_intreg(char *str)
41635 +{
41636 + int regid, ret = 1;
41637 +
41638 + regid = avr32_parse_intreg(str);
41639 + if (regid < 0)
41640 + ret = 0;
41641 +
41642 + pr_debug("match_intreg: `%s': %d\n", str, ret);
41643 +
41644 + return ret;
41645 +}
41646 +
41647 +static int
41648 +match_intreg_predec(char *str)
41649 +{
41650 + int regid;
41651 +
41652 + if (str[0] != '-' || str[1] != '-')
41653 + return 0;
41654 +
41655 + regid = avr32_parse_intreg(str + 2);
41656 + if (regid < 0)
41657 + return 0;
41658 +
41659 + return 1;
41660 +}
41661 +
41662 +static int
41663 +match_intreg_postinc(char *str)
41664 +{
41665 + int regid, ret = 1;
41666 + char *p, c;
41667 +
41668 + for (p = str; *p; p++)
41669 + if (*p == '+')
41670 + break;
41671 +
41672 + if (p[0] != '+' || p[1] != '+')
41673 + return 0;
41674 +
41675 + c = *p, *p = 0;
41676 + regid = avr32_parse_intreg(str);
41677 + if (regid < 0)
41678 + ret = 0;
41679 +
41680 + *p = c;
41681 + return ret;
41682 +}
41683 +
41684 +static int
41685 +match_intreg_lsl(char *str)
41686 +{
41687 + int regid, ret = 1;
41688 + char *p, c;
41689 +
41690 + for (p = str; *p; p++)
41691 + if (*p == '<')
41692 + break;
41693 +
41694 + if (p[0] && p[1] != '<')
41695 + return 0;
41696 +
41697 + c = *p, *p = 0;
41698 + regid = avr32_parse_intreg(str);
41699 + if (regid < 0)
41700 + ret = 0;
41701 +
41702 + *p = c;
41703 + return ret;
41704 +}
41705 +
41706 +static int
41707 +match_intreg_lsr(char *str)
41708 +{
41709 + int regid, ret = 1;
41710 + char *p, c;
41711 +
41712 + for (p = str; *p; p++)
41713 + if (*p == '>')
41714 + break;
41715 +
41716 + if (p[0] && p[1] != '>')
41717 + return 0;
41718 +
41719 + c = *p, *p = 0;
41720 +
41721 + regid = avr32_parse_intreg(str);
41722 + if (regid < 0)
41723 + ret = 0;
41724 +
41725 + *p = c;
41726 + return ret;
41727 +}
41728 +
41729 +static int
41730 +match_intreg_part(char *str)
41731 +{
41732 + int regid, ret = 1;
41733 + char *p, c;
41734 +
41735 + for (p = str; *p; p++)
41736 + if (*p == ':')
41737 + break;
41738 +
41739 + if (p[0] != ':' || !ISPRINT(p[1]) || p[2] != '\0')
41740 + return 0;
41741 +
41742 + c = *p, *p = 0;
41743 + regid = avr32_parse_intreg(str);
41744 + if (regid < 0)
41745 + ret = 0;
41746 +
41747 + *p = c;
41748 +
41749 + return ret;
41750 +}
41751 +
41752 +#define match_intreg_disp match_anything
41753 +
41754 +static int
41755 +match_intreg_index(char *str)
41756 +{
41757 + int regid, ret = 1;
41758 + char *p, *end, c;
41759 +
41760 + for (p = str; *p; p++)
41761 + if (*p == '[')
41762 + break;
41763 +
41764 + /* don't allow empty displacement here (it makes no sense) */
41765 + if (p[0] != '[')
41766 + return 0;
41767 +
41768 + for (end = p + 1; *end; end++) ;
41769 + if (*(--end) != ']')
41770 + return 0;
41771 +
41772 + c = *end, *end = 0;
41773 + if (!match_intreg_lsl(p + 1))
41774 + ret = 0;
41775 + *end = c;
41776 +
41777 + if (ret)
41778 + {
41779 + c = *p, *p = 0;
41780 + regid = avr32_parse_intreg(str);
41781 + if (regid < 0)
41782 + ret = 0;
41783 + *p = c;
41784 + }
41785 +
41786 + return ret;
41787 +}
41788 +
41789 +static int
41790 +match_intreg_xindex(char *str)
41791 +{
41792 + int regid, ret = 1;
41793 + char *p, *end, c;
41794 +
41795 + for (p = str; *p; p++)
41796 + if (*p == '[')
41797 + break;
41798 +
41799 + /* empty displacement makes no sense here either */
41800 + if (p[0] != '[')
41801 + return 0;
41802 +
41803 + for (end = p + 1; *end; end++)
41804 + if (*end == '<')
41805 + break;
41806 +
41807 + if (!streq(end, "<<2]"))
41808 + return 0;
41809 +
41810 + c = *end, *end = 0;
41811 + if (!match_intreg_part(p + 1))
41812 + ret = 0;
41813 + *end = c;
41814 +
41815 + if (ret)
41816 + {
41817 + c = *p, *p = 0;
41818 + regid = avr32_parse_intreg(str);
41819 + if (regid < 0)
41820 + ret = 0;
41821 + *p = c;
41822 + }
41823 +
41824 + return ret;
41825 +}
41826 +
41827 +/* The PC_UDISP_W operator may show up as a label or as a pc[disp]
41828 + expression. So there's no point in attempting to match this... */
41829 +#define match_pc_disp match_anything
41830 +
41831 +static int
41832 +match_sp(char *str)
41833 +{
41834 + /* SP in any form will do */
41835 + return avr32_parse_intreg(str) == AVR32_REG_SP;
41836 +}
41837 +
41838 +static int
41839 +match_sp_disp(char *str)
41840 +{
41841 + int regid, ret = 1;
41842 + char *p, c;
41843 +
41844 + for (p = str; *p; p++)
41845 + if (*p == '[')
41846 + break;
41847 +
41848 + /* allow empty displacement, meaning zero */
41849 + if (p[0] == '[')
41850 + {
41851 + char *end;
41852 + for (end = p + 1; *end; end++) ;
41853 + if (end[-1] != ']')
41854 + return 0;
41855 + }
41856 +
41857 + c = *p, *p = 0;
41858 + regid = avr32_parse_intreg(str);
41859 + if (regid != AVR32_REG_SP)
41860 + ret = 0;
41861 +
41862 + *p = c;
41863 + return ret;
41864 +}
41865 +
41866 +static int
41867 +match_cpno(char *str)
41868 +{
41869 + if (strncasecmp(str, "cp", 2) != 0)
41870 + return 0;
41871 + return 1;
41872 +}
41873 +
41874 +static int
41875 +match_cpreg(char *str)
41876 +{
41877 + if (strncasecmp(str, "cr", 2) != 0)
41878 + return 0;
41879 + return 1;
41880 +}
41881 +
41882 +/* We allow complex expressions, and register names may show up as
41883 + symbols. Just make sure immediate expressions are always matched
41884 + last. */
41885 +#define match_const match_anything
41886 +#define match_jmplabel match_anything
41887 +#define match_number match_anything
41888 +
41889 +/* Mnemonics that take reglists never accept anything else */
41890 +#define match_reglist8 match_anything
41891 +#define match_reglist9 match_anything
41892 +#define match_reglist16 match_anything
41893 +#define match_reglist_ldm match_anything
41894 +#define match_reglist_cp8 match_anything
41895 +#define match_reglist_cpd8 match_anything
41896 +
41897 +/* Ditto for retval, jospinc and mcall */
41898 +#define match_retval match_anything
41899 +#define match_jospinc match_anything
41900 +#define match_mcall match_anything
41901 +
41902 +/* COH is used to select between two different syntaxes */
41903 +static int
41904 +match_coh(char *str)
41905 +{
41906 + return strcasecmp(str, "coh") == 0;
41907 +}
41908 +
41909 +static int
41910 +match_fpreg(char *str)
41911 +{
41912 + unsigned long regid;
41913 + char *endptr;
41914 +
41915 + if ((str[0] != 'f' && str[0] != 'F')
41916 + || (str[1] != 'r' && str[1] != 'R'))
41917 + return 0;
41918 +
41919 + str += 2;
41920 + regid = strtoul(str, &endptr, 10);
41921 + if (!*str || *endptr)
41922 + return 0;
41923 +
41924 + return 1;
41925 +}
41926 +
41927 +static int
41928 +match_picoreg(char *str)
41929 +{
41930 + int regid;
41931 +
41932 + regid = avr32_parse_picoreg(str);
41933 + if (regid < 0)
41934 + return 0;
41935 + return 1;
41936 +}
41937 +
41938 +#define match_pico_reglist_w match_anything
41939 +#define match_pico_reglist_d match_anything
41940 +
41941 +static int
41942 +match_pico_in(char *str)
41943 +{
41944 + unsigned long regid;
41945 + char *end;
41946 +
41947 + if (strncasecmp(str, "in", 2) != 0)
41948 + return 0;
41949 +
41950 + str += 2;
41951 + regid = strtoul(str, &end, 10);
41952 + if (!*str || *end)
41953 + return 0;
41954 +
41955 + return 1;
41956 +}
41957 +
41958 +static int
41959 +match_pico_out0(char *str)
41960 +{
41961 + if (strcasecmp(str, "out0") != 0)
41962 + return 0;
41963 + return 1;
41964 +}
41965 +
41966 +static int
41967 +match_pico_out1(char *str)
41968 +{
41969 + if (strcasecmp(str, "out1") != 0)
41970 + return 0;
41971 + return 1;
41972 +}
41973 +
41974 +static int
41975 +match_pico_out2(char *str)
41976 +{
41977 + if (strcasecmp(str, "out2") != 0)
41978 + return 0;
41979 + return 1;
41980 +}
41981 +
41982 +static int
41983 +match_pico_out3(char *str)
41984 +{
41985 + if (strcasecmp(str, "out3") != 0)
41986 + return 0;
41987 + return 1;
41988 +}
41989 +
41990 +static void parse_nothing(const struct avr32_operand *op ATTRIBUTE_UNUSED,
41991 + char *str ATTRIBUTE_UNUSED,
41992 + int opindex ATTRIBUTE_UNUSED)
41993 +{
41994 + /* Do nothing (this is used for "match-only" operands like COH) */
41995 +}
41996 +
41997 +static void
41998 +parse_const(const struct avr32_operand *op, char *str,
41999 + int opindex ATTRIBUTE_UNUSED)
42000 +{
42001 + expressionS *exp = &current_insn.immediate;
42002 + expressionS *sym_exp;
42003 + int slot;
42004 + char *save;
42005 +
42006 + pr_debug("parse_const: `%s' (signed: %d, pcrel: %d, align: %d)\n",
42007 + str, op->is_signed, op->is_pcrel, op->align_order);
42008 +
42009 + save = input_line_pointer;
42010 + input_line_pointer = str;
42011 +
42012 + expression(exp);
42013 +
42014 + slot = current_insn.next_slot++;
42015 + current_insn.field_value[slot].align_order = op->align_order;
42016 + current_insn.pcrel = op->is_pcrel;
42017 +
42018 + switch (exp->X_op)
42019 + {
42020 + case O_illegal:
42021 + as_bad(_("illegal operand"));
42022 + break;
42023 + case O_absent:
42024 + as_bad(_("missing operand"));
42025 + break;
42026 + case O_constant:
42027 + pr_debug(" -> constant: %ld\n", (long)exp->X_add_number);
42028 + current_insn.field_value[slot].value = exp->X_add_number;
42029 + break;
42030 + case O_uminus:
42031 + pr_debug(" -> uminus\n");
42032 + sym_exp = symbol_get_value_expression(exp->X_add_symbol);
42033 + switch (sym_exp->X_op) {
42034 + case O_subtract:
42035 + pr_debug(" -> subtract: switching operands\n");
42036 + exp->X_op_symbol = sym_exp->X_add_symbol;
42037 + exp->X_add_symbol = sym_exp->X_op_symbol;
42038 + exp->X_op = O_subtract;
42039 + /* TODO: Remove the old X_add_symbol */
42040 + break;
42041 + default:
42042 + as_bad(_("Expression too complex\n"));
42043 + break;
42044 + }
42045 + break;
42046 +#if 0
42047 + case O_subtract:
42048 + /* Any expression subtracting a symbol from the current section
42049 + can be made PC-relative by adding the right offset. */
42050 + if (S_GET_SEGMENT(exp->X_op_symbol) == now_seg)
42051 + current_insn.pcrel = TRUE;
42052 + pr_debug(" -> subtract: pcrel? %s\n",
42053 + current_insn.pcrel ? "yes" : "no");
42054 + /* fall through */
42055 +#endif
42056 + default:
42057 + pr_debug(" -> (%p <%d> %p + %d)\n",
42058 + exp->X_add_symbol, exp->X_op, exp->X_op_symbol,
42059 + exp->X_add_number);
42060 + current_insn.field_value[slot].value = 0;
42061 + break;
42062 + }
42063 +
42064 + input_line_pointer = save;
42065 +}
42066 +
42067 +static void
42068 +parse_jmplabel(const struct avr32_operand *op, char *str,
42069 + int opindex ATTRIBUTE_UNUSED)
42070 +{
42071 + expressionS *exp = &current_insn.immediate;
42072 + int slot;
42073 + char *save;
42074 +
42075 + pr_debug("parse_jmplabel: `%s' (signed: %d, pcrel: %d, align: %d)\n",
42076 + str, op->is_signed, op->is_pcrel, op->align_order);
42077 +
42078 + save = input_line_pointer;
42079 + input_line_pointer = str;
42080 +
42081 + expression(exp);
42082 +
42083 + slot = current_insn.next_slot++;
42084 + current_insn.field_value[slot].align_order = op->align_order;
42085 + current_insn.pcrel = TRUE;
42086 +
42087 + switch (exp->X_op)
42088 + {
42089 + case O_illegal:
42090 + as_bad(_("illegal operand"));
42091 + break;
42092 + case O_absent:
42093 + as_bad(_("missing operand"));
42094 + break;
42095 + case O_constant:
42096 + pr_debug(" -> constant: %ld\n", (long)exp->X_add_number);
42097 + current_insn.field_value[slot].value = exp->X_add_number;
42098 + current_insn.pcrel = 0;
42099 + break;
42100 + default:
42101 + pr_debug(" -> (%p <%d> %p + %d)\n",
42102 + exp->X_add_symbol, exp->X_op, exp->X_op_symbol,
42103 + exp->X_add_number);
42104 + current_insn.field_value[slot].value = 0;
42105 + break;
42106 + }
42107 +
42108 + input_line_pointer = save;
42109 +}
42110 +
42111 +static void
42112 +parse_intreg(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42113 + char *str, int opindex ATTRIBUTE_UNUSED)
42114 +{
42115 + int regid, slot;
42116 +
42117 + pr_debug("parse_intreg: `%s'\n", str);
42118 +
42119 + regid = avr32_parse_intreg(str);
42120 + assert(regid >= 0);
42121 +
42122 + slot = current_insn.next_slot++;
42123 + current_insn.field_value[slot].value = regid;
42124 + current_insn.field_value[slot].align_order = op->align_order;
42125 +}
42126 +
42127 +static void
42128 +parse_intreg_predec(const struct avr32_operand *op, char *str, int opindex)
42129 +{
42130 + parse_intreg(op, str + 2, opindex);
42131 +}
42132 +
42133 +static void
42134 +parse_intreg_postinc(const struct avr32_operand *op, char *str, int opindex)
42135 +{
42136 + char *p, c;
42137 +
42138 + pr_debug("parse_intreg_postinc: `%s'\n", str);
42139 +
42140 + for (p = str; *p != '+'; p++) ;
42141 +
42142 + c = *p, *p = 0;
42143 + parse_intreg(op, str, opindex);
42144 + *p = c;
42145 +}
42146 +
42147 +static void
42148 +parse_intreg_shift(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42149 + char *str, int opindex ATTRIBUTE_UNUSED)
42150 +{
42151 + int regid, slot, shift = 0;
42152 + char *p, c;
42153 + char shiftop;
42154 +
42155 + pr_debug("parse Ry<<sa: `%s'\n", str);
42156 +
42157 + for (p = str; *p; p++)
42158 + if (*p == '<' || *p == '>')
42159 + break;
42160 +
42161 + shiftop = *p;
42162 +
42163 + c = *p, *p = 0;
42164 + regid = avr32_parse_intreg(str);
42165 + assert(regid >= 0);
42166 + *p = c;
42167 +
42168 + if (c)
42169 + {
42170 + if (p[0] != shiftop || p[1] != shiftop)
42171 + as_bad(_("expected shift operator in `%s'"), p);
42172 + else
42173 + {
42174 + expressionS exp;
42175 + char *saved;
42176 +
42177 + saved = input_line_pointer;
42178 + input_line_pointer = p + 2;
42179 + expression(&exp);
42180 + input_line_pointer = saved;
42181 +
42182 + if (exp.X_op != O_constant)
42183 + as_bad(_("shift amount must be a numeric constant"));
42184 + else
42185 + shift = exp.X_add_number;
42186 + }
42187 + }
42188 +
42189 + slot = current_insn.next_slot++;
42190 + current_insn.field_value[slot].value = regid;
42191 + slot = current_insn.next_slot++;
42192 + current_insn.field_value[slot].value = shift;
42193 +}
42194 +
42195 +/* The match() function selected the right opcode, so it doesn't
42196 + matter which way we shift any more. */
42197 +#define parse_intreg_lsl parse_intreg_shift
42198 +#define parse_intreg_lsr parse_intreg_shift
42199 +
42200 +static void
42201 +parse_intreg_part(const struct avr32_operand *op, char *str,
42202 + int opindex ATTRIBUTE_UNUSED)
42203 +{
42204 + static const char bparts[] = { 'b', 'l', 'u', 't' };
42205 + static const char hparts[] = { 'b', 't' };
42206 + unsigned int slot, sel;
42207 + int regid;
42208 + char *p, c;
42209 +
42210 + pr_debug("parse reg:part `%s'\n", str);
42211 +
42212 + for (p = str; *p; p++)
42213 + if (*p == ':')
42214 + break;
42215 +
42216 + c = *p, *p = 0;
42217 + regid = avr32_parse_intreg(str);
42218 + assert(regid >= 0);
42219 + *p = c;
42220 +
42221 + assert(c == ':');
42222 +
42223 + if (op->align_order)
42224 + {
42225 + for (sel = 0; sel < sizeof(hparts); sel++)
42226 + if (TOLOWER(p[1]) == hparts[sel])
42227 + break;
42228 +
42229 + if (sel >= sizeof(hparts))
42230 + {
42231 + as_bad(_("invalid halfword selector `%c' (must be either b or t)"),
42232 + p[1]);
42233 + sel = 0;
42234 + }
42235 + }
42236 + else
42237 + {
42238 + for (sel = 0; sel < sizeof(bparts); sel++)
42239 + if (TOLOWER(p[1]) == bparts[sel])
42240 + break;
42241 +
42242 + if (sel >= sizeof(bparts))
42243 + {
42244 + as_bad(_("invalid byte selector `%c' (must be one of b,l,u,t)"),
42245 + p[1]);
42246 + sel = 0;
42247 + }
42248 + }
42249 +
42250 + slot = current_insn.next_slot++;
42251 + current_insn.field_value[slot].value = regid;
42252 + slot = current_insn.next_slot++;
42253 + current_insn.field_value[slot].value = sel;
42254 +}
42255 +
42256 +/* This is the parser for "Rp[displacement]" expressions. In addition
42257 + to the "official" syntax, we accept a label as a replacement for
42258 + the register expression. This syntax implies Rp=PC and the
42259 + displacement is the pc-relative distance to the label. */
42260 +static void
42261 +parse_intreg_disp(const struct avr32_operand *op, char *str, int opindex)
42262 +{
42263 + expressionS *exp = &current_insn.immediate;
42264 + int slot, regid;
42265 + char *save, *p, c;
42266 +
42267 + pr_debug("parse_intreg_disp: `%s' (signed: %d, pcrel: %d, align: %d)\n",
42268 + str, op->is_signed, op->is_pcrel, op->align_order);
42269 +
42270 + for (p = str; *p; p++)
42271 + if (*p == '[')
42272 + break;
42273 +
42274 + slot = current_insn.next_slot++;
42275 +
42276 + /* First, check if we have a valid register either before '[' or as
42277 + the sole expression. If so, we use the Rp[disp] syntax. */
42278 + c = *p, *p = 0;
42279 + regid = avr32_parse_intreg(str);
42280 + *p = c;
42281 +
42282 + if (regid >= 0)
42283 + {
42284 + current_insn.field_value[slot].value = regid;
42285 +
42286 + slot = current_insn.next_slot++;
42287 + current_insn.field_value[slot].align_order = op->align_order;
42288 +
42289 + if (c == '[')
42290 + {
42291 + save = input_line_pointer;
42292 + input_line_pointer = p + 1;
42293 +
42294 + expression(exp);
42295 +
42296 + if (*input_line_pointer != ']')
42297 + as_bad(_("junk after displacement expression"));
42298 +
42299 + input_line_pointer = save;
42300 +
42301 + switch (exp->X_op)
42302 + {
42303 + case O_illegal:
42304 + as_bad(_("illegal displacement expression"));
42305 + break;
42306 + case O_absent:
42307 + as_bad(_("missing displacement expression"));
42308 + break;
42309 + case O_constant:
42310 + pr_debug(" -> constant: %ld\n", exp->X_add_number);
42311 + current_insn.field_value[slot].value = exp->X_add_number;
42312 + break;
42313 +#if 0
42314 + case O_subtract:
42315 + if (S_GET_SEGMENT(exp->X_op_symbol) == now_seg)
42316 + current_insn.pcrel = TRUE;
42317 + pr_debug(" -> subtract: pcrel? %s\n",
42318 + current_insn.pcrel ? "yes" : "no");
42319 + /* fall through */
42320 +#endif
42321 + default:
42322 + pr_debug(" -> (%p <%d> %p + %d)\n",
42323 + exp->X_add_symbol, exp->X_op, exp->X_op_symbol,
42324 + exp->X_add_number);
42325 + current_insn.field_value[slot].value = 0;
42326 + }
42327 + }
42328 + else
42329 + {
42330 + exp->X_op = O_constant;
42331 + exp->X_add_number = 0;
42332 + current_insn.field_value[slot].value = 0;
42333 + }
42334 + }
42335 + else
42336 + {
42337 + /* Didn't find a valid register. Try parsing it as a label. */
42338 + current_insn.field_value[slot].value = AVR32_REG_PC;
42339 + parse_jmplabel(op, str, opindex);
42340 + }
42341 +}
42342 +
42343 +static void
42344 +parse_intreg_index(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42345 + char *str, int opindex ATTRIBUTE_UNUSED)
42346 +{
42347 + int slot, regid;
42348 + char *p, *end, c;
42349 +
42350 + for (p = str; *p; p++)
42351 + if (*p == '[')
42352 + break;
42353 +
42354 + assert(*p);
42355 +
42356 + c = *p, *p = 0;
42357 + regid = avr32_parse_intreg(str);
42358 + assert(regid >= 0);
42359 + *p = c;
42360 +
42361 + slot = current_insn.next_slot++;
42362 + current_insn.field_value[slot].value = regid;
42363 +
42364 + p++;
42365 + for (end = p; *end; end++)
42366 + if (*end == ']' || *end == '<')
42367 + break;
42368 +
42369 + assert(*end);
42370 +
42371 + c = *end, *end = 0;
42372 + regid = avr32_parse_intreg(p);
42373 + assert(regid >= 0);
42374 + *end = c;
42375 +
42376 + slot = current_insn.next_slot++;
42377 + current_insn.field_value[slot].value = regid;
42378 +
42379 + slot = current_insn.next_slot++;
42380 + current_insn.field_value[slot].value = 0;
42381 +
42382 + if (*end == '<')
42383 + {
42384 + expressionS exp;
42385 + char *save;
42386 +
42387 + p = end + 2;
42388 + for (end = p; *end; end++)
42389 + if (*end == ']')
42390 + break;
42391 +
42392 + assert(*end == ']');
42393 +
42394 + c = *end, *end = 0;
42395 + save = input_line_pointer;
42396 + input_line_pointer = p;
42397 + expression(&exp);
42398 +
42399 + if (*input_line_pointer)
42400 + as_bad(_("junk after shift expression"));
42401 +
42402 + *end = c;
42403 + input_line_pointer = save;
42404 +
42405 + if (exp.X_op == O_constant)
42406 + current_insn.field_value[slot].value = exp.X_add_number;
42407 + else
42408 + as_bad(_("shift expression too complex"));
42409 + }
42410 +}
42411 +
42412 +static void
42413 +parse_intreg_xindex(const struct avr32_operand *op, char *str, int opindex)
42414 +{
42415 + int slot, regid;
42416 + char *p, *end, c;
42417 +
42418 + for (p = str; *p; p++)
42419 + if (*p == '[')
42420 + break;
42421 +
42422 + assert(*p);
42423 +
42424 + c = *p, *p = 0;
42425 + regid = avr32_parse_intreg(str);
42426 + assert(regid >= 0);
42427 + *p = c;
42428 +
42429 + slot = current_insn.next_slot++;
42430 + current_insn.field_value[slot].value = regid;
42431 +
42432 + p++;
42433 + for (end = p; *end; end++)
42434 + if (*end == '<')
42435 + break;
42436 +
42437 + assert(*end);
42438 +
42439 + c = *end, *end = 0;
42440 + parse_intreg_part(op, p, opindex);
42441 + *end = c;
42442 +}
42443 +
42444 +static void
42445 +parse_pc_disp(const struct avr32_operand *op, char *str, int opindex)
42446 +{
42447 + char *p, c;
42448 +
42449 + for (p = str; *p; p++)
42450 + if (*p == '[')
42451 + break;
42452 +
42453 + /* The lddpc instruction comes in two different syntax variants:
42454 + lddpc reg, expression
42455 + lddpc reg, pc[disp]
42456 + If the operand contains a '[', we use the second form. */
42457 + if (*p)
42458 + {
42459 + int regid;
42460 +
42461 + c = *p, *p = 0;
42462 + regid = avr32_parse_intreg(str);
42463 + *p = c;
42464 + if (regid == AVR32_REG_PC)
42465 + {
42466 + char *end;
42467 +
42468 + for (end = ++p; *end; end++) ;
42469 + if (*(--end) != ']')
42470 + as_bad(_("unrecognized form of instruction: `%s'"), str);
42471 + else
42472 + {
42473 + c = *end, *end = 0;
42474 + parse_const(op, p, opindex);
42475 + *end = c;
42476 + current_insn.pcrel = 0;
42477 + }
42478 + }
42479 + else
42480 + as_bad(_("unrecognized form of instruction: `%s'"), str);
42481 + }
42482 + else
42483 + {
42484 + parse_jmplabel(op, str, opindex);
42485 + }
42486 +}
42487 +
42488 +static void parse_sp(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42489 + char *str ATTRIBUTE_UNUSED,
42490 + int opindex ATTRIBUTE_UNUSED)
42491 +{
42492 + int slot;
42493 +
42494 + slot = current_insn.next_slot++;
42495 + current_insn.field_value[slot].value = AVR32_REG_SP;
42496 +}
42497 +
42498 +static void
42499 +parse_sp_disp(const struct avr32_operand *op, char *str, int opindex)
42500 +{
42501 + char *p, c;
42502 +
42503 + for (; *str; str++)
42504 + if (*str == '[')
42505 + break;
42506 +
42507 + assert(*str);
42508 +
42509 + for (p = ++str; *p; p++)
42510 + if (*p == ']')
42511 + break;
42512 +
42513 + c = *p, *p = 0;
42514 + parse_const(op, str, opindex);
42515 + *p = c;
42516 +}
42517 +
42518 +static void
42519 +parse_cpno(const struct avr32_operand *op ATTRIBUTE_UNUSED, char *str,
42520 + int opindex ATTRIBUTE_UNUSED)
42521 +{
42522 + int slot;
42523 +
42524 + str += 2;
42525 + if (*str == '#')
42526 + str++;
42527 + if (*str < '0' || *str > '7' || str[1])
42528 + as_bad(_("invalid coprocessor `%s'"), str);
42529 +
42530 + slot = current_insn.next_slot++;
42531 + current_insn.field_value[slot].value = *str - '0';
42532 +}
42533 +
42534 +static void
42535 +parse_cpreg(const struct avr32_operand *op, char *str,
42536 + int opindex ATTRIBUTE_UNUSED)
42537 +{
42538 + unsigned int crid;
42539 + int slot;
42540 + char *endptr;
42541 +
42542 + str += 2;
42543 + crid = strtoul(str, &endptr, 10);
42544 + if (*endptr || crid > 15 || crid & ((1 << op->align_order) - 1))
42545 + as_bad(_("invalid coprocessor register `%s'"), str);
42546 +
42547 + crid >>= op->align_order;
42548 +
42549 + slot = current_insn.next_slot++;
42550 + current_insn.field_value[slot].value = crid;
42551 +}
42552 +
42553 +static void
42554 +parse_number(const struct avr32_operand *op, char *str,
42555 + int opindex ATTRIBUTE_UNUSED)
42556 +{
42557 + expressionS exp;
42558 + int slot;
42559 + char *save;
42560 +
42561 + save = input_line_pointer;
42562 + input_line_pointer = str;
42563 + expression(&exp);
42564 + input_line_pointer = save;
42565 +
42566 + slot = current_insn.next_slot++;
42567 + current_insn.field_value[slot].align_order = op->align_order;
42568 +
42569 + if (exp.X_op == O_constant)
42570 + current_insn.field_value[slot].value = exp.X_add_number;
42571 + else
42572 + as_bad(_("invalid numeric expression `%s'"), str);
42573 +}
42574 +
42575 +static void
42576 +parse_reglist8(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42577 + char *str, int opindex ATTRIBUTE_UNUSED)
42578 +{
42579 + unsigned long regmask;
42580 + unsigned long value = 0;
42581 + int slot;
42582 + char *tail;
42583 +
42584 + regmask = avr32_parse_reglist(str, &tail);
42585 + if (*tail)
42586 + as_bad(_("invalid register list `%s'"), str);
42587 + else
42588 + {
42589 + if (avr32_make_regmask8(regmask, &value))
42590 + as_bad(_("register list `%s' doesn't fit"), str);
42591 + }
42592 +
42593 + slot = current_insn.next_slot++;
42594 + current_insn.field_value[slot].value = value;
42595 +}
42596 +
42597 +static int
42598 +parse_reglist_tail(char *str, unsigned long regmask)
42599 +{
42600 + expressionS exp;
42601 + char *save, *p, c;
42602 + int regid;
42603 +
42604 + for (p = str + 1; *p; p++)
42605 + if (*p == '=')
42606 + break;
42607 +
42608 + if (!*p)
42609 + {
42610 + as_bad(_("invalid register list `%s'"), str);
42611 + return -2;
42612 + }
42613 +
42614 + c = *p, *p = 0;
42615 + regid = avr32_parse_intreg(str);
42616 + *p = c;
42617 +
42618 + if (regid != 12)
42619 + {
42620 + as_bad(_("invalid register list `%s'"), str);
42621 + return -2;
42622 + }
42623 +
42624 + /* If we have an assignment, we must pop PC and we must _not_
42625 + pop LR or R12 */
42626 + if (!(regmask & (1 << AVR32_REG_PC)))
42627 + {
42628 + as_bad(_("return value specified for non-return instruction"));
42629 + return -2;
42630 + }
42631 + else if (regmask & ((1 << AVR32_REG_R12) | (1 << AVR32_REG_LR)))
42632 + {
42633 + as_bad(_("can't pop LR or R12 when specifying return value"));
42634 + return -2;
42635 + }
42636 +
42637 + save = input_line_pointer;
42638 + input_line_pointer = p + 1;
42639 + expression(&exp);
42640 + input_line_pointer = save;
42641 +
42642 + if (exp.X_op != O_constant
42643 + || exp.X_add_number < -1
42644 + || exp.X_add_number > 1)
42645 + {
42646 + as_bad(_("invalid return value `%s'"), str);
42647 + return -2;
42648 + }
42649 +
42650 + return exp.X_add_number;
42651 +}
42652 +
42653 +static void
42654 +parse_reglist9(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42655 + char *str, int opindex ATTRIBUTE_UNUSED)
42656 +{
42657 + unsigned long regmask;
42658 + unsigned long value = 0, kbit = 0;
42659 + int slot;
42660 + char *tail;
42661 +
42662 + regmask = avr32_parse_reglist(str, &tail);
42663 + /* printf("parsed reglist16: %04lx, tail: `%s'\n", regmask, tail); */
42664 + if (*tail)
42665 + {
42666 + int retval;
42667 +
42668 + retval = parse_reglist_tail(tail, regmask);
42669 +
42670 + switch (retval)
42671 + {
42672 + case -1:
42673 + regmask |= 1 << AVR32_REG_LR;
42674 + break;
42675 + case 0:
42676 + break;
42677 + case 1:
42678 + regmask |= 1 << AVR32_REG_R12;
42679 + break;
42680 + default:
42681 + break;
42682 + }
42683 +
42684 + kbit = 1;
42685 + }
42686 +
42687 + if (avr32_make_regmask8(regmask, &value))
42688 + as_bad(_("register list `%s' doesn't fit"), str);
42689 +
42690 +
42691 + slot = current_insn.next_slot++;
42692 + current_insn.field_value[slot].value = (value << 1) | kbit;
42693 +}
42694 +
42695 +static void
42696 +parse_reglist16(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42697 + char *str, int opindex ATTRIBUTE_UNUSED)
42698 +{
42699 + unsigned long regmask;
42700 + int slot;
42701 + char *tail;
42702 +
42703 + regmask = avr32_parse_reglist(str, &tail);
42704 + if (*tail)
42705 + as_bad(_("invalid register list `%s'"), str);
42706 +
42707 + slot = current_insn.next_slot++;
42708 + current_insn.field_value[slot].value = regmask;
42709 +}
42710 +
42711 +static void
42712 +parse_reglist_ldm(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42713 + char *str, int opindex ATTRIBUTE_UNUSED)
42714 +{
42715 + unsigned long regmask;
42716 + int slot, rp, w_bit = 0;
42717 + char *tail, *p, c;
42718 +
42719 + for (p = str; *p && *p != ','; p++)
42720 + if (*p == '+')
42721 + break;
42722 +
42723 + c = *p, *p = 0;
42724 + rp = avr32_parse_intreg(str);
42725 + *p = c;
42726 + if (rp < 0)
42727 + {
42728 + as_bad(_("invalid destination register in `%s'"), str);
42729 + return;
42730 + }
42731 +
42732 + if (p[0] == '+' && p[1] == '+')
42733 + {
42734 + w_bit = 1;
42735 + p += 2;
42736 + }
42737 +
42738 + if (*p != ',')
42739 + {
42740 + as_bad(_("expected `,' after destination register in `%s'"), str);
42741 + return;
42742 + }
42743 +
42744 + str = p + 1;
42745 + regmask = avr32_parse_reglist(str, &tail);
42746 + if (*tail)
42747 + {
42748 + int retval;
42749 +
42750 + if (rp != AVR32_REG_SP)
42751 + {
42752 + as_bad(_("junk at end of line: `%s'"), tail);
42753 + return;
42754 + }
42755 +
42756 + rp = AVR32_REG_PC;
42757 +
42758 + retval = parse_reglist_tail(tail, regmask);
42759 +
42760 + switch (retval)
42761 + {
42762 + case -1:
42763 + regmask |= 1 << AVR32_REG_LR;
42764 + break;
42765 + case 0:
42766 + break;
42767 + case 1:
42768 + regmask |= 1 << AVR32_REG_R12;
42769 + break;
42770 + default:
42771 + return;
42772 + }
42773 + }
42774 +
42775 + slot = current_insn.next_slot++;
42776 + current_insn.field_value[slot].value = rp;
42777 + slot = current_insn.next_slot++;
42778 + current_insn.field_value[slot].value = w_bit;
42779 + slot = current_insn.next_slot++;
42780 + current_insn.field_value[slot].value = regmask;
42781 +}
42782 +
42783 +static void
42784 +parse_reglist_cp8(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42785 + char *str, int opindex ATTRIBUTE_UNUSED)
42786 +{
42787 + unsigned long regmask;
42788 + int slot, h_bit = 0;
42789 + char *tail;
42790 +
42791 + regmask = avr32_parse_cpreglist(str, &tail);
42792 + if (*tail)
42793 + as_bad(_("junk at end of line: `%s'"), tail);
42794 + else if (regmask & 0xffUL)
42795 + {
42796 + if (regmask & 0xff00UL)
42797 + as_bad(_("register list `%s' doesn't fit"), str);
42798 + regmask &= 0xff;
42799 + }
42800 + else if (regmask & 0xff00UL)
42801 + {
42802 + regmask >>= 8;
42803 + h_bit = 1;
42804 + }
42805 + else
42806 + as_warn(_("register list is empty"));
42807 +
42808 + slot = current_insn.next_slot++;
42809 + current_insn.field_value[slot].value = regmask;
42810 + slot = current_insn.next_slot++;
42811 + current_insn.field_value[slot].value = h_bit;
42812 +}
42813 +
42814 +static void
42815 +parse_reglist_cpd8(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42816 + char *str, int opindex ATTRIBUTE_UNUSED)
42817 +{
42818 + unsigned long regmask, regmask_d = 0;
42819 + int slot, i;
42820 + char *tail;
42821 +
42822 + regmask = avr32_parse_cpreglist(str, &tail);
42823 + if (*tail)
42824 + as_bad(_("junk at end of line: `%s'"), tail);
42825 +
42826 + for (i = 0; i < 8; i++)
42827 + {
42828 + if (regmask & 1)
42829 + {
42830 + if (!(regmask & 2))
42831 + {
42832 + as_bad(_("register list `%s' doesn't fit"), str);
42833 + break;
42834 + }
42835 + regmask_d |= 1 << i;
42836 + }
42837 + else if (regmask & 2)
42838 + {
42839 + as_bad(_("register list `%s' doesn't fit"), str);
42840 + break;
42841 + }
42842 +
42843 + regmask >>= 2;
42844 + }
42845 +
42846 + slot = current_insn.next_slot++;
42847 + current_insn.field_value[slot].value = regmask_d;
42848 +}
42849 +
42850 +static void
42851 +parse_retval(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42852 + char *str, int opindex ATTRIBUTE_UNUSED)
42853 +{
42854 + int regid, slot;
42855 +
42856 + regid = avr32_parse_intreg(str);
42857 + if (regid < 0)
42858 + {
42859 + expressionS exp;
42860 + char *save;
42861 +
42862 + regid = 0;
42863 +
42864 + save = input_line_pointer;
42865 + input_line_pointer = str;
42866 + expression(&exp);
42867 + input_line_pointer = save;
42868 +
42869 + if (exp.X_op != O_constant)
42870 + as_bad(_("invalid return value `%s'"), str);
42871 + else
42872 + switch (exp.X_add_number)
42873 + {
42874 + case -1:
42875 + regid = AVR32_REG_LR;
42876 + break;
42877 + case 0:
42878 + regid = AVR32_REG_SP;
42879 + break;
42880 + case 1:
42881 + regid = AVR32_REG_PC;
42882 + break;
42883 + default:
42884 + as_bad(_("invalid return value `%s'"), str);
42885 + break;
42886 + }
42887 + }
42888 +
42889 + slot = current_insn.next_slot++;
42890 + current_insn.field_value[slot].value = regid;
42891 +}
42892 +
42893 +#define parse_mcall parse_intreg_disp
42894 +
42895 +static void
42896 +parse_jospinc(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42897 + char *str, int opindex ATTRIBUTE_UNUSED)
42898 +{
42899 + expressionS exp;
42900 + int slot;
42901 + char *save;
42902 +
42903 + save = input_line_pointer;
42904 + input_line_pointer = str;
42905 + expression(&exp);
42906 + input_line_pointer = save;
42907 +
42908 + slot = current_insn.next_slot++;
42909 +
42910 + if (exp.X_op == O_constant)
42911 + {
42912 + if (exp.X_add_number > 0)
42913 + exp.X_add_number--;
42914 + current_insn.field_value[slot].value = exp.X_add_number;
42915 + }
42916 + else
42917 + as_bad(_("invalid numeric expression `%s'"), str);
42918 +}
42919 +
42920 +#define parse_coh parse_nothing
42921 +
42922 +static void
42923 +parse_fpreg(const struct avr32_operand *op,
42924 + char *str, int opindex ATTRIBUTE_UNUSED)
42925 +{
42926 + unsigned long regid;
42927 + int slot;
42928 +
42929 + regid = strtoul(str + 2, NULL, 10);
42930 +
42931 + if ((regid >= 16) || (regid & ((1 << op->align_order) - 1)))
42932 + as_bad(_("invalid floating-point register `%s'"), str);
42933 +
42934 + slot = current_insn.next_slot++;
42935 + current_insn.field_value[slot].value = regid;
42936 + current_insn.field_value[slot].align_order = op->align_order;
42937 +}
42938 +
42939 +static void
42940 +parse_picoreg(const struct avr32_operand *op,
42941 + char *str, int opindex ATTRIBUTE_UNUSED)
42942 +{
42943 + unsigned long regid;
42944 + int slot;
42945 +
42946 + regid = avr32_parse_picoreg(str);
42947 + if (regid & ((1 << op->align_order) - 1))
42948 + as_bad(_("invalid double-word PiCo register `%s'"), str);
42949 +
42950 + slot = current_insn.next_slot++;
42951 + current_insn.field_value[slot].value = regid;
42952 + current_insn.field_value[slot].align_order = op->align_order;
42953 +}
42954 +
42955 +static void
42956 +parse_pico_reglist_w(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42957 + char *str, int opindex ATTRIBUTE_UNUSED)
42958 +{
42959 + unsigned long regmask;
42960 + int slot, h_bit = 0;
42961 + char *tail;
42962 +
42963 + regmask = avr32_parse_pico_reglist(str, &tail);
42964 + if (*tail)
42965 + as_bad(_("junk at end of line: `%s'"), tail);
42966 +
42967 + if (regmask & 0x00ffUL)
42968 + {
42969 + if (regmask & 0xff00UL)
42970 + as_bad(_("register list `%s' doesn't fit"), str);
42971 + regmask &= 0x00ffUL;
42972 + }
42973 + else if (regmask & 0xff00UL)
42974 + {
42975 + regmask >>= 8;
42976 + h_bit = 1;
42977 + }
42978 + else
42979 + as_warn(_("register list is empty"));
42980 +
42981 + slot = current_insn.next_slot++;
42982 + current_insn.field_value[slot].value = regmask;
42983 + slot = current_insn.next_slot++;
42984 + current_insn.field_value[slot].value = h_bit;
42985 +}
42986 +
42987 +static void
42988 +parse_pico_reglist_d(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42989 + char *str, int opindex ATTRIBUTE_UNUSED)
42990 +{
42991 + unsigned long regmask, regmask_d = 0;
42992 + int slot, i;
42993 + char *tail;
42994 +
42995 + regmask = avr32_parse_pico_reglist(str, &tail);
42996 + if (*tail)
42997 + as_bad(_("junk at end of line: `%s'"), tail);
42998 +
42999 + for (i = 0; i < 8; i++)
43000 + {
43001 + if (regmask & 1)
43002 + {
43003 + if (!(regmask & 2))
43004 + {
43005 + as_bad(_("register list `%s' doesn't fit"), str);
43006 + break;
43007 + }
43008 + regmask_d |= 1 << i;
43009 + }
43010 + else if (regmask & 2)
43011 + {
43012 + as_bad(_("register list `%s' doesn't fit"), str);
43013 + break;
43014 + }
43015 +
43016 + regmask >>= 2;
43017 + }
43018 +
43019 + slot = current_insn.next_slot++;
43020 + current_insn.field_value[slot].value = regmask_d;
43021 +}
43022 +
43023 +static void
43024 +parse_pico_in(const struct avr32_operand *op ATTRIBUTE_UNUSED,
43025 + char *str, int opindex ATTRIBUTE_UNUSED)
43026 +{
43027 + unsigned long regid;
43028 + int slot;
43029 +
43030 + regid = strtoul(str + 2, NULL, 10);
43031 +
43032 + if (regid >= 12)
43033 + as_bad(_("invalid PiCo IN register `%s'"), str);
43034 +
43035 + slot = current_insn.next_slot++;
43036 + current_insn.field_value[slot].value = regid;
43037 + current_insn.field_value[slot].align_order = 0;
43038 +}
43039 +
43040 +#define parse_pico_out0 parse_nothing
43041 +#define parse_pico_out1 parse_nothing
43042 +#define parse_pico_out2 parse_nothing
43043 +#define parse_pico_out3 parse_nothing
43044 +
43045 +#define OP(name, sgn, pcrel, align, func) \
43046 + { AVR32_OPERAND_##name, sgn, pcrel, align, match_##func, parse_##func }
43047 +
43048 +struct avr32_operand avr32_operand_table[] = {
43049 + OP(INTREG, 0, 0, 0, intreg),
43050 + OP(INTREG_PREDEC, 0, 0, 0, intreg_predec),
43051 + OP(INTREG_POSTINC, 0, 0, 0, intreg_postinc),
43052 + OP(INTREG_LSL, 0, 0, 0, intreg_lsl),
43053 + OP(INTREG_LSR, 0, 0, 0, intreg_lsr),
43054 + OP(INTREG_BSEL, 0, 0, 0, intreg_part),
43055 + OP(INTREG_HSEL, 0, 0, 1, intreg_part),
43056 + OP(INTREG_SDISP, 1, 0, 0, intreg_disp),
43057 + OP(INTREG_SDISP_H, 1, 0, 1, intreg_disp),
43058 + OP(INTREG_SDISP_W, 1, 0, 2, intreg_disp),
43059 + OP(INTREG_UDISP, 0, 0, 0, intreg_disp),
43060 + OP(INTREG_UDISP_H, 0, 0, 1, intreg_disp),
43061 + OP(INTREG_UDISP_W, 0, 0, 2, intreg_disp),
43062 + OP(INTREG_INDEX, 0, 0, 0, intreg_index),
43063 + OP(INTREG_XINDEX, 0, 0, 0, intreg_xindex),
43064 + OP(DWREG, 0, 0, 1, intreg),
43065 + OP(PC_UDISP_W, 0, 1, 2, pc_disp),
43066 + OP(SP, 0, 0, 0, sp),
43067 + OP(SP_UDISP_W, 0, 0, 2, sp_disp),
43068 + OP(CPNO, 0, 0, 0, cpno),
43069 + OP(CPREG, 0, 0, 0, cpreg),
43070 + OP(CPREG_D, 0, 0, 1, cpreg),
43071 + OP(UNSIGNED_CONST, 0, 0, 0, const),
43072 + OP(UNSIGNED_CONST_W, 0, 0, 2, const),
43073 + OP(SIGNED_CONST, 1, 0, 0, const),
43074 + OP(SIGNED_CONST_W, 1, 0, 2, const),
43075 + OP(JMPLABEL, 1, 1, 1, jmplabel),
43076 + OP(UNSIGNED_NUMBER, 0, 0, 0, number),
43077 + OP(UNSIGNED_NUMBER_W, 0, 0, 2, number),
43078 + OP(REGLIST8, 0, 0, 0, reglist8),
43079 + OP(REGLIST9, 0, 0, 0, reglist9),
43080 + OP(REGLIST16, 0, 0, 0, reglist16),
43081 + OP(REGLIST_LDM, 0, 0, 0, reglist_ldm),
43082 + OP(REGLIST_CP8, 0, 0, 0, reglist_cp8),
43083 + OP(REGLIST_CPD8, 0, 0, 0, reglist_cpd8),
43084 + OP(RETVAL, 0, 0, 0, retval),
43085 + OP(MCALL, 1, 0, 2, mcall),
43086 + OP(JOSPINC, 0, 0, 0, jospinc),
43087 + OP(COH, 0, 0, 0, coh),
43088 + OP(FPREG_S, 0, 0, 0, fpreg),
43089 + OP(FPREG_D, 0, 0, 1, fpreg),
43090 + OP(PICO_REG_W, 0, 0, 0, picoreg),
43091 + OP(PICO_REG_D, 0, 0, 1, picoreg),
43092 + OP(PICO_REGLIST_W, 0, 0, 0, pico_reglist_w),
43093 + OP(PICO_REGLIST_D, 0, 0, 0, pico_reglist_d),
43094 + OP(PICO_IN, 0, 0, 0, pico_in),
43095 + OP(PICO_OUT0, 0, 0, 0, pico_out0),
43096 + OP(PICO_OUT1, 0, 0, 0, pico_out1),
43097 + OP(PICO_OUT2, 0, 0, 0, pico_out2),
43098 + OP(PICO_OUT3, 0, 0, 0, pico_out3),
43099 +};
43100 +
43101 +symbolS *
43102 +md_undefined_symbol (char *name ATTRIBUTE_UNUSED)
43103 +{
43104 + pr_debug("md_undefined_symbol: %s\n", name);
43105 + return 0;
43106 +}
43107 +
43108 +struct avr32_relax_type
43109 +{
43110 + long lower_bound;
43111 + long upper_bound;
43112 + unsigned char align;
43113 + unsigned char length;
43114 + signed short next;
43115 +};
43116 +
43117 +#define EMPTY { 0, 0, 0, 0, -1 }
43118 +#define C(lower, upper, align, next) \
43119 + { (lower), (upper), (align), 2, AVR32_OPC_##next }
43120 +#define E(lower, upper, align) \
43121 + { (lower), (upper), (align), 4, -1 }
43122 +
43123 +static const struct avr32_relax_type avr32_relax_table[] =
43124 + {
43125 + /* 0 */
43126 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43127 + EMPTY, EMPTY, EMPTY,
43128 + E(0, 65535, 0), E(0, 65535, 0), E(0, 65535, 0), E(0, 65535, 0),
43129 + EMPTY,
43130 + /* 16 */
43131 + EMPTY, EMPTY, EMPTY, EMPTY,
43132 +
43133 + C(-256, 254, 1, BREQ2), C(-256, 254, 1, BRNE2),
43134 + C(-256, 254, 1, BRCC2), C(-256, 254, 1, BRCS2),
43135 + C(-256, 254, 1, BRGE2), C(-256, 254, 1, BRLT2),
43136 + C(-256, 254, 1, BRMI2), C(-256, 254, 1, BRPL2),
43137 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43138 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43139 + /* 32 */
43140 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43141 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43142 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43143 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43144 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43145 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43146 +
43147 + EMPTY, EMPTY, EMPTY, EMPTY,
43148 + /* 48 */
43149 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43150 + EMPTY, EMPTY, EMPTY,
43151 +
43152 + C(-32, 31, 0, CP_W3), E(-1048576, 1048575, 0),
43153 +
43154 + EMPTY, EMPTY, EMPTY,
43155 + /* 64: csrfcz */
43156 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43157 + E(0, 65535, 0), E(0, 65535, 0),
43158 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43159 + E(-32768, 32767, 0),
43160 + /* 80: LD_SB2 */
43161 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43162 +
43163 + C(0, 7, 0, LD_UB4), E(-32768, 32767, 0),
43164 +
43165 + EMPTY,
43166 + EMPTY, EMPTY,
43167 +
43168 + C(0, 14, 1, LD_SH4), E(-32768, 32767, 0),
43169 +
43170 + EMPTY, EMPTY, EMPTY,
43171 +
43172 + C(0, 14, 1, LD_UH4), E(-32768, 32767, 0),
43173 +
43174 + EMPTY, EMPTY, EMPTY, EMPTY,
43175 +
43176 + C(0, 124, 2, LD_W4), E(-32768, 32767, 0),
43177 +
43178 + E(0, 1020, 2), /* LDC_D1 */
43179 + EMPTY, EMPTY,
43180 + E(0, 1020, 2), /* LDC_W1 */
43181 + EMPTY, EMPTY,
43182 + E(0, 16380, 2), /* LDC0_D */
43183 + E(0, 16380, 2), /* LDC0_W */
43184 + EMPTY, EMPTY, EMPTY, EMPTY,
43185 +
43186 + C(0, 508, 2, LDDPC_EXT), E(-32768, 32767, 0),
43187 +
43188 + EMPTY,
43189 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43190 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43191 + /* 128: MACHH_W */
43192 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43193 + E(-131072, 131068, 2), /* MCALL */
43194 + E(0, 1020, 2), /* MFDR */
43195 + E(0, 1020, 2), /* MFSR */
43196 + EMPTY, EMPTY,
43197 +
43198 + C(-128, 127, 0, MOV2), E(-1048576, 1048575, 0),
43199 +
43200 + EMPTY, EMPTY, EMPTY,
43201 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43202 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43203 +
43204 + E(-128, 127, 0), /* MOVEQ2 */
43205 + E(-128, 127, 0), /* MOVNE2 */
43206 + E(-128, 127, 0), /* MOVCC2 */
43207 + E(-128, 127, 0), /* 160: MOVCS2 */
43208 + E(-128, 127, 0), /* MOVGE2 */
43209 + E(-128, 127, 0), /* MOVLT2 */
43210 + E(-128, 127, 0), /* MOVMI2 */
43211 + E(-128, 127, 0), /* MOVPL2 */
43212 + E(-128, 127, 0), /* MOVLS2 */
43213 + E(-128, 127, 0), /* MOVGT2 */
43214 + E(-128, 127, 0), /* MOVLE2 */
43215 + E(-128, 127, 0), /* MOVHI2 */
43216 + E(-128, 127, 0), /* MOVVS2 */
43217 + E(-128, 127, 0), /* MOVVC2 */
43218 + E(-128, 127, 0), /* MOVQS2 */
43219 + E(-128, 127, 0), /* MOVAL2 */
43220 +
43221 + E(0, 1020, 2), /* MTDR */
43222 + E(0, 1020, 2), /* MTSR */
43223 + EMPTY,
43224 + EMPTY,
43225 + E(-128, 127, 0), /* MUL3 */
43226 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43227 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43228 + /* 192: MVCR_W */
43229 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43230 + E(0, 65535, 0), E(0, 65535, 0),
43231 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43232 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43233 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43234 + /* 224: PASR_H */
43235 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43236 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43237 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43238 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43239 + /* 256: PUNPCKSB_H */
43240 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43241 +
43242 + C(-1024, 1022, 1, RCALL2), E(-2097152, 2097150, 1),
43243 +
43244 + EMPTY,
43245 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43246 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43247 + EMPTY, EMPTY, EMPTY,
43248 +
43249 + C(-1024, 1022, 1, BRAL),
43250 +
43251 + EMPTY, EMPTY, EMPTY,
43252 + E(-128, 127, 0), /* RSUB2 */
43253 + /* 288: SATADD_H */
43254 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43255 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43256 + E(0, 255, 0), /* SLEEP */
43257 + EMPTY, EMPTY,
43258 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43259 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43260 + /* 320: ST_B2 */
43261 + EMPTY, EMPTY,
43262 + C(0, 7, 0, ST_B4), E(-32768, 32767, 0),
43263 + EMPTY, EMPTY, EMPTY, EMPTY,
43264 + E(-32768, 32767, 0),
43265 + EMPTY, EMPTY, EMPTY,
43266 + C(0, 14, 1, ST_H4), E(-32768, 32767, 0),
43267 + EMPTY, EMPTY,
43268 + EMPTY,
43269 + C(0, 60, 2, ST_W4), E(-32768, 32767, 0),
43270 + E(0, 1020, 2), /* STC_D1 */
43271 + EMPTY, EMPTY,
43272 + E(0, 1020, 2), /* STC_W1 */
43273 + EMPTY, EMPTY,
43274 + E(0, 16380, 2), /* STC0_D */
43275 + E(0, 16380, 2), /* STC0_W */
43276 +
43277 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43278 + /* 352: STDSP */
43279 + EMPTY, EMPTY,
43280 + E(0, 1020, 2), /* STHH_W1 */
43281 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43282 + EMPTY, EMPTY, EMPTY,
43283 + E(-32768, 32767, 0),
43284 + C(-512, 508, 2, SUB4),
43285 + C(-128, 127, 0, SUB4), E(-1048576, 1048576, 0),
43286 + /* SUB{cond} */
43287 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43288 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43289 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43290 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43291 + /* SUBF{cond} */
43292 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43293 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43294 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43295 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43296 + EMPTY,
43297 +
43298 + /* 400: SWAP_B */
43299 + EMPTY, EMPTY, EMPTY,
43300 + E(0, 255, 0), /* SYNC */
43301 + EMPTY, EMPTY, EMPTY, EMPTY,
43302 + /* 408: TST */
43303 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43304 + /* 416: EXTRACT_B */
43305 + EMPTY, EMPTY, EMPTY, EMPTY,
43306 + };
43307 +
43308 +#undef E
43309 +#undef C
43310 +#undef EMPTY
43311 +
43312 +#define AVR32_RS_NONE (-1)
43313 +
43314 +#define avr32_rs_size(state) (avr32_relax_table[(state)].length)
43315 +#define avr32_rs_align(state) (avr32_relax_table[(state)].align)
43316 +#define relax_more(state) (avr32_relax_table[(state)].next)
43317 +
43318 +#define opc_initial_substate(opc) ((opc)->id)
43319 +
43320 +static int need_relax(int subtype, offsetT distance)
43321 +{
43322 + offsetT upper_bound, lower_bound;
43323 +
43324 + upper_bound = avr32_relax_table[subtype].upper_bound;
43325 + lower_bound = avr32_relax_table[subtype].lower_bound;
43326 +
43327 + if (distance & ((1 << avr32_rs_align(subtype)) - 1))
43328 + return 1;
43329 + if ((distance > upper_bound) || (distance < lower_bound))
43330 + return 1;
43331 +
43332 + return 0;
43333 +}
43334 +
43335 +enum {
43336 + LDA_SUBTYPE_MOV1,
43337 + LDA_SUBTYPE_MOV2,
43338 + LDA_SUBTYPE_SUB,
43339 + LDA_SUBTYPE_LDDPC,
43340 + LDA_SUBTYPE_LDW,
43341 + LDA_SUBTYPE_GOTLOAD,
43342 + LDA_SUBTYPE_GOTLOAD_LARGE,
43343 +};
43344 +
43345 +enum {
43346 + CALL_SUBTYPE_RCALL1,
43347 + CALL_SUBTYPE_RCALL2,
43348 + CALL_SUBTYPE_MCALL_CP,
43349 + CALL_SUBTYPE_MCALL_GOT,
43350 + CALL_SUBTYPE_MCALL_LARGE,
43351 +};
43352 +
43353 +#define LDA_INITIAL_SIZE (avr32_pic ? 4 : 2)
43354 +#define CALL_INITIAL_SIZE 2
43355 +
43356 +#define need_reloc(sym, seg, pcrel) \
43357 + (!(S_IS_DEFINED(sym) \
43358 + && ((pcrel && S_GET_SEGMENT(sym) == seg) \
43359 + || (!pcrel && S_GET_SEGMENT(sym) == absolute_section))) \
43360 + || S_FORCE_RELOC(sym, 1))
43361 +
43362 +/* Return an initial guess of the length by which a fragment must grow to
43363 + hold a branch to reach its destination.
43364 + Also updates fr_type/fr_subtype as necessary.
43365 +
43366 + Called just before doing relaxation.
43367 + Any symbol that is now undefined will not become defined.
43368 + The guess for fr_var is ACTUALLY the growth beyond fr_fix.
43369 + Whatever we do to grow fr_fix or fr_var contributes to our returned value.
43370 + Although it may not be explicit in the frag, pretend fr_var starts with a
43371 + 0 value. */
43372 +
43373 +static int
43374 +avr32_default_estimate_size_before_relax (fragS *fragP, segT segment)
43375 +{
43376 + int growth = 0;
43377 +
43378 + assert(fragP);
43379 + assert(fragP->fr_symbol);
43380 +
43381 + if (fragP->tc_frag_data.force_extended
43382 + || need_reloc(fragP->fr_symbol, segment, fragP->tc_frag_data.pcrel))
43383 + {
43384 + int largest_state = fragP->fr_subtype;
43385 + while (relax_more(largest_state) != AVR32_RS_NONE)
43386 + largest_state = relax_more(largest_state);
43387 + growth = avr32_rs_size(largest_state) - fragP->fr_var;
43388 + }
43389 + else
43390 + {
43391 + growth = avr32_rs_size(fragP->fr_subtype) - fragP->fr_var;
43392 + }
43393 +
43394 + pr_debug("%s:%d: md_estimate_size_before_relax: %d\n",
43395 + fragP->fr_file, fragP->fr_line, growth);
43396 +
43397 + return growth;
43398 +}
43399 +
43400 +static int
43401 +avr32_lda_estimate_size_before_relax(fragS *fragP, segT segment ATTRIBUTE_UNUSED)
43402 +{
43403 + return fragP->fr_var - LDA_INITIAL_SIZE;
43404 +}
43405 +
43406 +static int
43407 +avr32_call_estimate_size_before_relax(fragS *fragP, segT segment ATTRIBUTE_UNUSED)
43408 +{
43409 + return fragP->fr_var - CALL_INITIAL_SIZE;
43410 +}
43411 +
43412 +static int
43413 +avr32_cpool_estimate_size_before_relax(fragS *fragP,
43414 + segT segment ATTRIBUTE_UNUSED)
43415 +{
43416 + return fragP->fr_var;
43417 +}
43418 +
43419 +/* This macro may be defined to relax a frag. GAS will call this with the
43420 + * segment, the frag, and the change in size of all previous frags;
43421 + * md_relax_frag should return the change in size of the frag. */
43422 +static long
43423 +avr32_default_relax_frag (segT segment, fragS *fragP, long stretch)
43424 +{
43425 + int state, next_state;
43426 + symbolS *symbolP; /* The target symbol */
43427 + long growth = 0;
43428 +
43429 + state = next_state = fragP->fr_subtype;
43430 +
43431 + symbolP = fragP->fr_symbol;
43432 +
43433 + if (fragP->tc_frag_data.force_extended
43434 + || need_reloc(symbolP, segment, fragP->tc_frag_data.pcrel))
43435 + {
43436 + /* Symbol must be resolved by the linker. Emit the largest
43437 + possible opcode. */
43438 + while (relax_more(next_state) != AVR32_RS_NONE)
43439 + next_state = relax_more(next_state);
43440 + }
43441 + else
43442 + {
43443 + addressT address; /* The address of fragP */
43444 + addressT target; /* The address of the target symbol */
43445 + offsetT distance; /* The distance between the insn and the symbol */
43446 + fragS *sym_frag;
43447 +
43448 + address = fragP->fr_address;
43449 + target = fragP->fr_offset;
43450 + symbolP = fragP->fr_symbol;
43451 + sym_frag = symbol_get_frag(symbolP);
43452 +
43453 + address += fragP->fr_fix - fragP->fr_var;
43454 + target += S_GET_VALUE(symbolP);
43455 +
43456 + if (stretch != 0
43457 + && sym_frag->relax_marker != fragP->relax_marker
43458 + && S_GET_SEGMENT(symbolP) == segment)
43459 + /* if it was correctly aligned before, make sure it stays aligned */
43460 + target += stretch & (~0UL << avr32_rs_align(state));
43461 +
43462 + if (fragP->tc_frag_data.pcrel)
43463 + distance = target - (address & (~0UL << avr32_rs_align(state)));
43464 + else
43465 + distance = target;
43466 +
43467 + pr_debug("%s:%d: relax more? 0x%x - 0x%x = 0x%x (%d), align %d\n",
43468 + fragP->fr_file, fragP->fr_line, target, address,
43469 + distance, distance, avr32_rs_align(state));
43470 +
43471 + if (need_relax(state, distance))
43472 + {
43473 + if (relax_more(state) != AVR32_RS_NONE)
43474 + next_state = relax_more(state);
43475 + pr_debug("%s:%d: relax more %d -> %d (%d - %d, align %d)\n",
43476 + fragP->fr_file, fragP->fr_line, state, next_state,
43477 + target, address, avr32_rs_align(state));
43478 + }
43479 + }
43480 +
43481 + growth = avr32_rs_size(next_state) - avr32_rs_size(state);
43482 + fragP->fr_subtype = next_state;
43483 +
43484 + pr_debug("%s:%d: md_relax_frag: growth=%d, subtype=%d, opc=0x%08lx\n",
43485 + fragP->fr_file, fragP->fr_line, growth, fragP->fr_subtype,
43486 + avr32_opc_table[next_state].value);
43487 +
43488 + return growth;
43489 +}
43490 +
43491 +static long
43492 +avr32_lda_relax_frag(segT segment, fragS *fragP, long stretch)
43493 +{
43494 + struct cpool *pool= NULL;
43495 + unsigned int entry = 0;
43496 + addressT address, target;
43497 + offsetT distance;
43498 + symbolS *symbolP;
43499 + fragS *sym_frag;
43500 + long old_size, new_size;
43501 +
43502 + symbolP = fragP->fr_symbol;
43503 + old_size = fragP->fr_var;
43504 + if (!avr32_pic)
43505 + {
43506 + pool = fragP->tc_frag_data.pool;
43507 + entry = fragP->tc_frag_data.pool_entry;
43508 + }
43509 +
43510 + address = fragP->fr_address;
43511 + address += fragP->fr_fix - LDA_INITIAL_SIZE;
43512 +
43513 + if (!S_IS_DEFINED(symbolP) || S_FORCE_RELOC(symbolP, 1))
43514 + goto relax_max;
43515 +
43516 + target = fragP->fr_offset;
43517 + sym_frag = symbol_get_frag(symbolP);
43518 + target += S_GET_VALUE(symbolP);
43519 +
43520 + if (sym_frag->relax_marker != fragP->relax_marker
43521 + && S_GET_SEGMENT(symbolP) == segment)
43522 + target += stretch;
43523 +
43524 + distance = target - address;
43525 +
43526 + pr_debug("lda_relax_frag: target: %d, address: %d, var: %d\n",
43527 + target, address, fragP->fr_var);
43528 +
43529 + if (!avr32_pic && S_GET_SEGMENT(symbolP) == absolute_section
43530 + && target <= 127 && (offsetT)target >= -128)
43531 + {
43532 + if (fragP->fr_subtype == LDA_SUBTYPE_LDDPC
43533 + || fragP->fr_subtype == LDA_SUBTYPE_LDW)
43534 + pool->literals[entry].refcount--;
43535 + new_size = 2;
43536 + fragP->fr_subtype = LDA_SUBTYPE_MOV1;
43537 + }
43538 + else if (!avr32_pic && S_GET_SEGMENT(symbolP) == absolute_section
43539 + && target <= 1048575 && (offsetT)target >= -1048576)
43540 + {
43541 + if (fragP->fr_subtype == LDA_SUBTYPE_LDDPC
43542 + || fragP->fr_subtype == LDA_SUBTYPE_LDW)
43543 + pool->literals[entry].refcount--;
43544 + new_size = 4;
43545 + fragP->fr_subtype = LDA_SUBTYPE_MOV2;
43546 + }
43547 + else if (!linkrelax && S_GET_SEGMENT(symbolP) == segment
43548 + /* the field will be negated, so this is really -(-32768)
43549 + and -(32767) */
43550 + && distance <= 32768 && distance >= -32767)
43551 + {
43552 + if (!avr32_pic
43553 + && (fragP->fr_subtype == LDA_SUBTYPE_LDDPC
43554 + || fragP->fr_subtype == LDA_SUBTYPE_LDW))
43555 + pool->literals[entry].refcount--;
43556 + new_size = 4;
43557 + fragP->fr_subtype = LDA_SUBTYPE_SUB;
43558 + }
43559 + else
43560 + {
43561 + relax_max:
43562 + if (avr32_pic)
43563 + {
43564 + if (linkrelax)
43565 + {
43566 + new_size = 8;
43567 + fragP->fr_subtype = LDA_SUBTYPE_GOTLOAD_LARGE;
43568 + }
43569 + else
43570 + {
43571 + new_size = 4;
43572 + fragP->fr_subtype = LDA_SUBTYPE_GOTLOAD;
43573 + }
43574 + }
43575 + else
43576 + {
43577 + if (fragP->fr_subtype != LDA_SUBTYPE_LDDPC
43578 + && fragP->fr_subtype != LDA_SUBTYPE_LDW)
43579 + pool->literals[entry].refcount++;
43580 +
43581 + sym_frag = symbol_get_frag(pool->symbol);
43582 + target = (sym_frag->fr_address + sym_frag->fr_fix
43583 + + pool->padding + pool->literals[entry].offset);
43584 +
43585 + pr_debug("cpool sym address: 0x%lx\n",
43586 + sym_frag->fr_address + sym_frag->fr_fix);
43587 +
43588 + know(pool->section == segment);
43589 +
43590 + if (sym_frag->relax_marker != fragP->relax_marker)
43591 + target += stretch;
43592 +
43593 + distance = target - address;
43594 + if (distance <= 508 && distance >= 0)
43595 + {
43596 + new_size = 2;
43597 + fragP->fr_subtype = LDA_SUBTYPE_LDDPC;
43598 + }
43599 + else
43600 + {
43601 + new_size = 4;
43602 + fragP->fr_subtype = LDA_SUBTYPE_LDW;
43603 + }
43604 +
43605 + pr_debug("lda_relax_frag (cpool): target=0x%lx, address=0x%lx, refcount=%d\n",
43606 + target, address, pool->literals[entry].refcount);
43607 + }
43608 + }
43609 +
43610 + fragP->fr_var = new_size;
43611 +
43612 + pr_debug("%s:%d: lda: relax pass done. subtype: %d, growth: %ld\n",
43613 + fragP->fr_file, fragP->fr_line,
43614 + fragP->fr_subtype, new_size - old_size);
43615 +
43616 + return new_size - old_size;
43617 +}
43618 +
43619 +static long
43620 +avr32_call_relax_frag(segT segment, fragS *fragP, long stretch)
43621 +{
43622 + struct cpool *pool = NULL;
43623 + unsigned int entry = 0;
43624 + addressT address, target;
43625 + offsetT distance;
43626 + symbolS *symbolP;
43627 + fragS *sym_frag;
43628 + long old_size, new_size;
43629 +
43630 + symbolP = fragP->fr_symbol;
43631 + old_size = fragP->fr_var;
43632 + if (!avr32_pic)
43633 + {
43634 + pool = fragP->tc_frag_data.pool;
43635 + entry = fragP->tc_frag_data.pool_entry;
43636 + }
43637 +
43638 + address = fragP->fr_address;
43639 + address += fragP->fr_fix - CALL_INITIAL_SIZE;
43640 +
43641 + if (need_reloc(symbolP, segment, 1))
43642 + {
43643 + pr_debug("call: must emit reloc\n");
43644 + goto relax_max;
43645 + }
43646 +
43647 + target = fragP->fr_offset;
43648 + sym_frag = symbol_get_frag(symbolP);
43649 + target += S_GET_VALUE(symbolP);
43650 +
43651 + if (sym_frag->relax_marker != fragP->relax_marker
43652 + && S_GET_SEGMENT(symbolP) == segment)
43653 + target += stretch;
43654 +
43655 + distance = target - address;
43656 +
43657 + if (distance <= 1022 && distance >= -1024)
43658 + {
43659 + pr_debug("call: distance is %d, emitting short rcall\n", distance);
43660 + if (!avr32_pic && fragP->fr_subtype == CALL_SUBTYPE_MCALL_CP)
43661 + pool->literals[entry].refcount--;
43662 + new_size = 2;
43663 + fragP->fr_subtype = CALL_SUBTYPE_RCALL1;
43664 + }
43665 + else if (distance <= 2097150 && distance >= -2097152)
43666 + {
43667 + pr_debug("call: distance is %d, emitting long rcall\n", distance);
43668 + if (!avr32_pic && fragP->fr_subtype == CALL_SUBTYPE_MCALL_CP)
43669 + pool->literals[entry].refcount--;
43670 + new_size = 4;
43671 + fragP->fr_subtype = CALL_SUBTYPE_RCALL2;
43672 + }
43673 + else
43674 + {
43675 + pr_debug("call: distance %d too far, emitting something big\n", distance);
43676 +
43677 + relax_max:
43678 + if (avr32_pic)
43679 + {
43680 + if (linkrelax)
43681 + {
43682 + new_size = 10;
43683 + fragP->fr_subtype = CALL_SUBTYPE_MCALL_LARGE;
43684 + }
43685 + else
43686 + {
43687 + new_size = 4;
43688 + fragP->fr_subtype = CALL_SUBTYPE_MCALL_GOT;
43689 + }
43690 + }
43691 + else
43692 + {
43693 + if (fragP->fr_subtype != CALL_SUBTYPE_MCALL_CP)
43694 + pool->literals[entry].refcount++;
43695 +
43696 + new_size = 4;
43697 + fragP->fr_subtype = CALL_SUBTYPE_MCALL_CP;
43698 + }
43699 + }
43700 +
43701 + fragP->fr_var = new_size;
43702 +
43703 + pr_debug("%s:%d: call: relax pass done, growth: %d, fr_var: %d\n",
43704 + fragP->fr_file, fragP->fr_line,
43705 + new_size - old_size, fragP->fr_var);
43706 +
43707 + return new_size - old_size;
43708 +}
43709 +
43710 +static long
43711 +avr32_cpool_relax_frag(segT segment ATTRIBUTE_UNUSED,
43712 + fragS *fragP,
43713 + long stretch ATTRIBUTE_UNUSED)
43714 +{
43715 + struct cpool *pool;
43716 + addressT address;
43717 + long old_size, new_size;
43718 + unsigned int entry;
43719 +
43720 + pool = fragP->tc_frag_data.pool;
43721 + address = fragP->fr_address + fragP->fr_fix;
43722 + old_size = fragP->fr_var;
43723 + new_size = 0;
43724 +
43725 + for (entry = 0; entry < pool->next_free_entry; entry++)
43726 + {
43727 + if (pool->literals[entry].refcount > 0)
43728 + {
43729 + pool->literals[entry].offset = new_size;
43730 + new_size += 4;
43731 + }
43732 + }
43733 +
43734 + fragP->fr_var = new_size;
43735 +
43736 + return new_size - old_size;
43737 +}
43738 +
43739 +/* *fragP has been relaxed to its final size, and now needs to have
43740 + the bytes inside it modified to conform to the new size.
43741 +
43742 + Called after relaxation is finished.
43743 + fragP->fr_type == rs_machine_dependent.
43744 + fragP->fr_subtype is the subtype of what the address relaxed to. */
43745 +
43746 +static void
43747 +avr32_default_convert_frag (bfd *abfd ATTRIBUTE_UNUSED,
43748 + segT segment ATTRIBUTE_UNUSED,
43749 + fragS *fragP)
43750 +{
43751 + const struct avr32_opcode *opc;
43752 + const struct avr32_ifield *ifield;
43753 + bfd_reloc_code_real_type r_type;
43754 + symbolS *symbolP;
43755 + fixS *fixP;
43756 + bfd_vma value;
43757 + int subtype;
43758 +
43759 + opc = &avr32_opc_table[fragP->fr_subtype];
43760 + ifield = opc->fields[opc->var_field];
43761 + symbolP = fragP->fr_symbol;
43762 + subtype = fragP->fr_subtype;
43763 + r_type = opc->reloc_type;
43764 +
43765 + /* Clear the opcode bits and the bits belonging to the relaxed
43766 + field. We assume all other fields stay the same. */
43767 + value = bfd_getb32(fragP->fr_opcode);
43768 + value &= ~(opc->mask | ifield->mask);
43769 +
43770 + /* Insert the new opcode */
43771 + value |= opc->value;
43772 + bfd_putb32(value, fragP->fr_opcode);
43773 +
43774 + fragP->fr_fix += opc->size - fragP->fr_var;
43775 +
43776 + if (fragP->tc_frag_data.reloc_info != AVR32_OPINFO_NONE)
43777 + {
43778 + switch (fragP->tc_frag_data.reloc_info)
43779 + {
43780 + case AVR32_OPINFO_HI:
43781 + r_type = BFD_RELOC_HI16;
43782 + break;
43783 + case AVR32_OPINFO_LO:
43784 + r_type = BFD_RELOC_LO16;
43785 + break;
43786 + case AVR32_OPINFO_GOT:
43787 + switch (r_type)
43788 + {
43789 + case BFD_RELOC_AVR32_18W_PCREL:
43790 + r_type = BFD_RELOC_AVR32_GOT18SW;
43791 + break;
43792 + case BFD_RELOC_AVR32_16S:
43793 + r_type = BFD_RELOC_AVR32_GOT16S;
43794 + break;
43795 + default:
43796 + BAD_CASE(r_type);
43797 + break;
43798 + }
43799 + break;
43800 + default:
43801 + BAD_CASE(fragP->tc_frag_data.reloc_info);
43802 + break;
43803 + }
43804 + }
43805 +
43806 + pr_debug("%s:%d: convert_frag: new %s fixup\n",
43807 + fragP->fr_file, fragP->fr_line,
43808 + bfd_get_reloc_code_name(r_type));
43809 +
43810 +#if 1
43811 + fixP = fix_new_exp(fragP, fragP->fr_fix - opc->size, opc->size,
43812 + &fragP->tc_frag_data.exp,
43813 + fragP->tc_frag_data.pcrel, r_type);
43814 +#else
43815 + fixP = fix_new(fragP, fragP->fr_fix - opc->size, opc->size, symbolP,
43816 + fragP->fr_offset, fragP->tc_frag_data.pcrel, r_type);
43817 +#endif
43818 +
43819 + /* Revert fix_new brain damage. "dot_value" is the value of PC at
43820 + the point of the fixup, relative to the frag address. fix_new()
43821 + and friends think they are only being called during the assembly
43822 + pass, not during relaxation or similar, so fx_dot_value, fx_file
43823 + and fx_line are all initialized to the wrong value. But we don't
43824 + know the size of the fixup until now, so we really can't live up
43825 + to the assumptions these functions make about the target. What
43826 + do these functions think the "where" and "frag" argument mean
43827 + anyway? */
43828 + fixP->fx_dot_value = fragP->fr_fix - opc->size;
43829 + fixP->fx_file = fragP->fr_file;
43830 + fixP->fx_line = fragP->fr_line;
43831 +
43832 + fixP->tc_fix_data.ifield = ifield;
43833 + fixP->tc_fix_data.align = avr32_rs_align(subtype);
43834 + fixP->tc_fix_data.min = avr32_relax_table[subtype].lower_bound;
43835 + fixP->tc_fix_data.max = avr32_relax_table[subtype].upper_bound;
43836 +}
43837 +
43838 +static void
43839 +avr32_lda_convert_frag(bfd *abfd ATTRIBUTE_UNUSED,
43840 + segT segment ATTRIBUTE_UNUSED,
43841 + fragS *fragP)
43842 +{
43843 + const struct avr32_opcode *opc;
43844 + const struct avr32_ifield *ifield;
43845 + bfd_reloc_code_real_type r_type;
43846 + expressionS exp;
43847 + struct cpool *pool;
43848 + fixS *fixP;
43849 + bfd_vma value;
43850 + int regid, pcrel = 0, align = 0;
43851 + char *p;
43852 +
43853 + r_type = BFD_RELOC_NONE;
43854 + regid = fragP->tc_frag_data.reloc_info;
43855 + p = fragP->fr_opcode;
43856 + exp.X_add_symbol = fragP->fr_symbol;
43857 + exp.X_add_number = fragP->fr_offset;
43858 + exp.X_op = O_symbol;
43859 +
43860 + pr_debug("%s:%d: lda_convert_frag, subtype: %d, fix: %d, var: %d, regid: %d\n",
43861 + fragP->fr_file, fragP->fr_line,
43862 + fragP->fr_subtype, fragP->fr_fix, fragP->fr_var, regid);
43863 +
43864 + switch (fragP->fr_subtype)
43865 + {
43866 + case LDA_SUBTYPE_MOV1:
43867 + opc = &avr32_opc_table[AVR32_OPC_MOV1];
43868 + opc->fields[0]->insert(opc->fields[0], p, regid);
43869 + ifield = opc->fields[1];
43870 + r_type = opc->reloc_type;
43871 + break;
43872 + case LDA_SUBTYPE_MOV2:
43873 + opc = &avr32_opc_table[AVR32_OPC_MOV2];
43874 + opc->fields[0]->insert(opc->fields[0], p, regid);
43875 + ifield = opc->fields[1];
43876 + r_type = opc->reloc_type;
43877 + break;
43878 + case LDA_SUBTYPE_SUB:
43879 + opc = &avr32_opc_table[AVR32_OPC_SUB5];
43880 + opc->fields[0]->insert(opc->fields[0], p, regid);
43881 + opc->fields[1]->insert(opc->fields[1], p, AVR32_REG_PC);
43882 + ifield = opc->fields[2];
43883 + r_type = BFD_RELOC_AVR32_16N_PCREL;
43884 +
43885 + /* Pretend that SUB5 isn't a "negated" pcrel expression for now.
43886 + We'll have to fix it up later when we know whether to
43887 + generate a reloc for it (in which case the linker will negate
43888 + it, so we shouldn't). */
43889 + pcrel = 1;
43890 + break;
43891 + case LDA_SUBTYPE_LDDPC:
43892 + opc = &avr32_opc_table[AVR32_OPC_LDDPC];
43893 + align = 2;
43894 + r_type = BFD_RELOC_AVR32_9W_CP;
43895 + goto cpool_common;
43896 + case LDA_SUBTYPE_LDW:
43897 + opc = &avr32_opc_table[AVR32_OPC_LDDPC_EXT];
43898 + r_type = BFD_RELOC_AVR32_16_CP;
43899 + cpool_common:
43900 + opc->fields[0]->insert(opc->fields[0], p, regid);
43901 + ifield = opc->fields[1];
43902 + pool = fragP->tc_frag_data.pool;
43903 + exp.X_add_symbol = pool->symbol;
43904 + exp.X_add_number = pool->literals[fragP->tc_frag_data.pool_entry].offset;
43905 + pcrel = 1;
43906 + break;
43907 + case LDA_SUBTYPE_GOTLOAD_LARGE:
43908 + /* ld.w Rd, r6[Rd << 2] (last) */
43909 + opc = &avr32_opc_table[AVR32_OPC_LD_W5];
43910 + bfd_putb32(opc->value, p + 4);
43911 + opc->fields[0]->insert(opc->fields[0], p + 4, regid);
43912 + opc->fields[1]->insert(opc->fields[1], p + 4, 6);
43913 + opc->fields[2]->insert(opc->fields[2], p + 4, regid);
43914 + opc->fields[3]->insert(opc->fields[3], p + 4, 2);
43915 +
43916 + /* mov Rd, (got_offset / 4) */
43917 + opc = &avr32_opc_table[AVR32_OPC_MOV2];
43918 + opc->fields[0]->insert(opc->fields[0], p, regid);
43919 + ifield = opc->fields[1];
43920 + r_type = BFD_RELOC_AVR32_LDA_GOT;
43921 + break;
43922 + case LDA_SUBTYPE_GOTLOAD:
43923 + opc = &avr32_opc_table[AVR32_OPC_LD_W4];
43924 + opc->fields[0]->insert(opc->fields[0], p, regid);
43925 + opc->fields[1]->insert(opc->fields[1], p, 6);
43926 + ifield = opc->fields[2];
43927 + if (r_type == BFD_RELOC_NONE)
43928 + r_type = BFD_RELOC_AVR32_GOT16S;
43929 + break;
43930 + default:
43931 + BAD_CASE(fragP->fr_subtype);
43932 + }
43933 +
43934 + value = bfd_getb32(p);
43935 + value &= ~(opc->mask | ifield->mask);
43936 + value |= opc->value;
43937 + bfd_putb32(value, p);
43938 +
43939 + fragP->fr_fix += fragP->fr_var - LDA_INITIAL_SIZE;
43940 +
43941 + if (fragP->fr_next
43942 + && ((offsetT)(fragP->fr_next->fr_address - fragP->fr_address)
43943 + != fragP->fr_fix))
43944 + {
43945 + fprintf(stderr, "LDA frag: fr_fix is wrong! fragP->fr_var = %ld, r_type = %s\n",
43946 + fragP->fr_var, bfd_get_reloc_code_name(r_type));
43947 + abort();
43948 + }
43949 +
43950 + fixP = fix_new_exp(fragP, fragP->fr_fix - fragP->fr_var, fragP->fr_var,
43951 + &exp, pcrel, r_type);
43952 +
43953 + /* Revert fix_new brain damage. "dot_value" is the value of PC at
43954 + the point of the fixup, relative to the frag address. fix_new()
43955 + and friends think they are only being called during the assembly
43956 + pass, not during relaxation or similar, so fx_dot_value, fx_file
43957 + and fx_line are all initialized to the wrong value. But we don't
43958 + know the size of the fixup until now, so we really can't live up
43959 + to the assumptions these functions make about the target. What
43960 + do these functions think the "where" and "frag" argument mean
43961 + anyway? */
43962 + fixP->fx_dot_value = fragP->fr_fix - opc->size;
43963 + fixP->fx_file = fragP->fr_file;
43964 + fixP->fx_line = fragP->fr_line;
43965 +
43966 + fixP->tc_fix_data.ifield = ifield;
43967 + fixP->tc_fix_data.align = align;
43968 + /* these are only used if the fixup can actually be resolved */
43969 + fixP->tc_fix_data.min = -32768;
43970 + fixP->tc_fix_data.max = 32767;
43971 +}
43972 +
43973 +static void
43974 +avr32_call_convert_frag(bfd *abfd ATTRIBUTE_UNUSED,
43975 + segT segment ATTRIBUTE_UNUSED,
43976 + fragS *fragP)
43977 +{
43978 + const struct avr32_opcode *opc = NULL;
43979 + const struct avr32_ifield *ifield;
43980 + bfd_reloc_code_real_type r_type;
43981 + symbolS *symbol;
43982 + offsetT offset;
43983 + fixS *fixP;
43984 + bfd_vma value;
43985 + int pcrel = 0, align = 0;
43986 + char *p;
43987 +
43988 + symbol = fragP->fr_symbol;
43989 + offset = fragP->fr_offset;
43990 + r_type = BFD_RELOC_NONE;
43991 + p = fragP->fr_opcode;
43992 +
43993 + pr_debug("%s:%d: call_convert_frag, subtype: %d, fix: %d, var: %d\n",
43994 + fragP->fr_file, fragP->fr_line,
43995 + fragP->fr_subtype, fragP->fr_fix, fragP->fr_var);
43996 +
43997 + switch (fragP->fr_subtype)
43998 + {
43999 + case CALL_SUBTYPE_RCALL1:
44000 + opc = &avr32_opc_table[AVR32_OPC_RCALL1];
44001 + /* fall through */
44002 + case CALL_SUBTYPE_RCALL2:
44003 + if (!opc)
44004 + opc = &avr32_opc_table[AVR32_OPC_RCALL2];
44005 + ifield = opc->fields[0];
44006 + r_type = opc->reloc_type;
44007 + pcrel = 1;
44008 + align = 1;
44009 + break;
44010 + case CALL_SUBTYPE_MCALL_CP:
44011 + opc = &avr32_opc_table[AVR32_OPC_MCALL];
44012 + opc->fields[0]->insert(opc->fields[0], p, AVR32_REG_PC);
44013 + ifield = opc->fields[1];
44014 + r_type = BFD_RELOC_AVR32_CPCALL;
44015 + symbol = fragP->tc_frag_data.pool->symbol;
44016 + offset = fragP->tc_frag_data.pool->literals[fragP->tc_frag_data.pool_entry].offset;
44017 + assert(fragP->tc_frag_data.pool->literals[fragP->tc_frag_data.pool_entry].refcount > 0);
44018 + pcrel = 1;
44019 + align = 2;
44020 + break;
44021 + case CALL_SUBTYPE_MCALL_GOT:
44022 + opc = &avr32_opc_table[AVR32_OPC_MCALL];
44023 + opc->fields[0]->insert(opc->fields[0], p, 6);
44024 + ifield = opc->fields[1];
44025 + r_type = BFD_RELOC_AVR32_GOT18SW;
44026 + break;
44027 + case CALL_SUBTYPE_MCALL_LARGE:
44028 + assert(fragP->fr_var == 10);
44029 + /* ld.w lr, r6[lr << 2] */
44030 + opc = &avr32_opc_table[AVR32_OPC_LD_W5];
44031 + bfd_putb32(opc->value, p + 4);
44032 + opc->fields[0]->insert(opc->fields[0], p + 4, AVR32_REG_LR);
44033 + opc->fields[1]->insert(opc->fields[1], p + 4, 6);
44034 + opc->fields[2]->insert(opc->fields[2], p + 4, AVR32_REG_LR);
44035 + opc->fields[3]->insert(opc->fields[3], p + 4, 2);
44036 +
44037 + /* icall lr */
44038 + opc = &avr32_opc_table[AVR32_OPC_ICALL];
44039 + bfd_putb16(opc->value >> 16, p + 8);
44040 + opc->fields[0]->insert(opc->fields[0], p + 8, AVR32_REG_LR);
44041 +
44042 + /* mov lr, (got_offset / 4) */
44043 + opc = &avr32_opc_table[AVR32_OPC_MOV2];
44044 + opc->fields[0]->insert(opc->fields[0], p, AVR32_REG_LR);
44045 + ifield = opc->fields[1];
44046 + r_type = BFD_RELOC_AVR32_GOTCALL;
44047 + break;
44048 + default:
44049 + BAD_CASE(fragP->fr_subtype);
44050 + }
44051 +
44052 + /* Insert the opcode and clear the variable ifield */
44053 + value = bfd_getb32(p);
44054 + value &= ~(opc->mask | ifield->mask);
44055 + value |= opc->value;
44056 + bfd_putb32(value, p);
44057 +
44058 + fragP->fr_fix += fragP->fr_var - CALL_INITIAL_SIZE;
44059 +
44060 + if (fragP->fr_next
44061 + && ((offsetT)(fragP->fr_next->fr_address - fragP->fr_address)
44062 + != fragP->fr_fix))
44063 + {
44064 + fprintf(stderr, "%s:%d: fr_fix %lu is wrong! fr_var=%lu, r_type=%s\n",
44065 + fragP->fr_file, fragP->fr_line,
44066 + fragP->fr_fix, fragP->fr_var, bfd_get_reloc_code_name(r_type));
44067 + fprintf(stderr, "fr_fix should be %ld. next frag is %s:%d\n",
44068 + (offsetT)(fragP->fr_next->fr_address - fragP->fr_address),
44069 + fragP->fr_next->fr_file, fragP->fr_next->fr_line);
44070 + }
44071 +
44072 + fixP = fix_new(fragP, fragP->fr_fix - fragP->fr_var, fragP->fr_var,
44073 + symbol, offset, pcrel, r_type);
44074 +
44075 + /* Revert fix_new brain damage. "dot_value" is the value of PC at
44076 + the point of the fixup, relative to the frag address. fix_new()
44077 + and friends think they are only being called during the assembly
44078 + pass, not during relaxation or similar, so fx_dot_value, fx_file
44079 + and fx_line are all initialized to the wrong value. But we don't
44080 + know the size of the fixup until now, so we really can't live up
44081 + to the assumptions these functions make about the target. What
44082 + do these functions think the "where" and "frag" argument mean
44083 + anyway? */
44084 + fixP->fx_dot_value = fragP->fr_fix - opc->size;
44085 + fixP->fx_file = fragP->fr_file;
44086 + fixP->fx_line = fragP->fr_line;
44087 +
44088 + fixP->tc_fix_data.ifield = ifield;
44089 + fixP->tc_fix_data.align = align;
44090 + /* these are only used if the fixup can actually be resolved */
44091 + fixP->tc_fix_data.min = -2097152;
44092 + fixP->tc_fix_data.max = 2097150;
44093 +}
44094 +
44095 +static void
44096 +avr32_cpool_convert_frag(bfd *abfd ATTRIBUTE_UNUSED,
44097 + segT segment ATTRIBUTE_UNUSED,
44098 + fragS *fragP)
44099 +{
44100 + struct cpool *pool;
44101 + addressT address;
44102 + unsigned int entry;
44103 + char *p;
44104 + char sym_name[20];
44105 +
44106 + /* Did we get rid of the frag altogether? */
44107 + if (!fragP->fr_var)
44108 + return;
44109 +
44110 + pool = fragP->tc_frag_data.pool;
44111 + address = fragP->fr_address + fragP->fr_fix;
44112 + p = fragP->fr_literal + fragP->fr_fix;
44113 +
44114 + sprintf(sym_name, "$$cp_\002%x", pool->id);
44115 + symbol_locate(pool->symbol, sym_name, pool->section, fragP->fr_fix, fragP);
44116 + symbol_table_insert(pool->symbol);
44117 +
44118 + for (entry = 0; entry < pool->next_free_entry; entry++)
44119 + {
44120 + if (pool->literals[entry].refcount > 0)
44121 + {
44122 + fix_new_exp(fragP, fragP->fr_fix, 4, &pool->literals[entry].exp,
44123 + FALSE, BFD_RELOC_AVR32_32_CPENT);
44124 + fragP->fr_fix += 4;
44125 + }
44126 + }
44127 +}
44128 +
44129 +static struct avr32_relaxer avr32_default_relaxer = {
44130 + .estimate_size = avr32_default_estimate_size_before_relax,
44131 + .relax_frag = avr32_default_relax_frag,
44132 + .convert_frag = avr32_default_convert_frag,
44133 +};
44134 +static struct avr32_relaxer avr32_lda_relaxer = {
44135 + .estimate_size = avr32_lda_estimate_size_before_relax,
44136 + .relax_frag = avr32_lda_relax_frag,
44137 + .convert_frag = avr32_lda_convert_frag,
44138 +};
44139 +static struct avr32_relaxer avr32_call_relaxer = {
44140 + .estimate_size = avr32_call_estimate_size_before_relax,
44141 + .relax_frag = avr32_call_relax_frag,
44142 + .convert_frag = avr32_call_convert_frag,
44143 +};
44144 +static struct avr32_relaxer avr32_cpool_relaxer = {
44145 + .estimate_size = avr32_cpool_estimate_size_before_relax,
44146 + .relax_frag = avr32_cpool_relax_frag,
44147 + .convert_frag = avr32_cpool_convert_frag,
44148 +};
44149 +
44150 +static void s_cpool(int arg ATTRIBUTE_UNUSED)
44151 +{
44152 + struct cpool *pool;
44153 + unsigned int max_size;
44154 + char *buf;
44155 +
44156 + pool = find_cpool(now_seg, now_subseg);
44157 + if (!pool || !pool->symbol || pool->next_free_entry == 0)
44158 + return;
44159 +
44160 + /* Make sure the constant pool is properly aligned */
44161 + frag_align_code(2, 0);
44162 +
44163 + /* Assume none of the entries are discarded, and that we need the
44164 + maximum amount of alignment. But we're not going to allocate
44165 + anything up front. */
44166 + max_size = pool->next_free_entry * 4 + 2;
44167 + frag_grow(max_size);
44168 + buf = frag_more(0);
44169 +
44170 + frag_now->tc_frag_data.relaxer = &avr32_cpool_relaxer;
44171 + frag_now->tc_frag_data.pool = pool;
44172 +
44173 + symbol_set_frag(pool->symbol, frag_now);
44174 +
44175 + /* Assume zero initial size, allowing other relaxers to be
44176 + optimistic about things. */
44177 + frag_var(rs_machine_dependent, max_size, 0,
44178 + 0, pool->symbol, 0, NULL);
44179 +
44180 + /* Mark the pool as empty. */
44181 + pool->used = 1;
44182 +}
44183 +
44184 +/* The location from which a PC relative jump should be calculated,
44185 + given a PC relative reloc. */
44186 +
44187 +long
44188 +md_pcrel_from_section (fixS *fixP, segT sec)
44189 +{
44190 + pr_debug("pcrel_from_section, fx_offset = %d\n", fixP->fx_offset);
44191 +
44192 + if (fixP->fx_addsy != NULL
44193 + && (! S_IS_DEFINED (fixP->fx_addsy)
44194 + || S_GET_SEGMENT (fixP->fx_addsy) != sec
44195 + || S_FORCE_RELOC(fixP->fx_addsy, 1)))
44196 + {
44197 + pr_debug("Unknown pcrel symbol: %s\n", S_GET_NAME(fixP->fx_addsy));
44198 +
44199 + /* The symbol is undefined (or is defined but not in this section).
44200 + Let the linker figure it out. */
44201 + return 0;
44202 + }
44203 +
44204 + pr_debug("pcrel from %x + %x, symbol: %s (%x)\n",
44205 + fixP->fx_frag->fr_address, fixP->fx_where,
44206 + fixP->fx_addsy?S_GET_NAME(fixP->fx_addsy):"(null)",
44207 + fixP->fx_addsy?S_GET_VALUE(fixP->fx_addsy):0);
44208 +
44209 + return ((fixP->fx_frag->fr_address + fixP->fx_where)
44210 + & (~0UL << fixP->tc_fix_data.align));
44211 +}
44212 +
44213 +valueT
44214 +md_section_align (segT segment, valueT size)
44215 +{
44216 + int align = bfd_get_section_alignment (stdoutput, segment);
44217 + return ((size + (1 << align) - 1) & (-1 << align));
44218 +}
44219 +
44220 +static int syntax_matches(const struct avr32_syntax *syntax,
44221 + char *str)
44222 +{
44223 + int i;
44224 +
44225 + pr_debug("syntax %d matches `%s'?\n", syntax->id, str);
44226 +
44227 + if (syntax->nr_operands < 0)
44228 + {
44229 + struct avr32_operand *op;
44230 + int optype;
44231 +
44232 + for (i = 0; i < (-syntax->nr_operands - 1); i++)
44233 + {
44234 + char *p;
44235 + char c;
44236 +
44237 + optype = syntax->operand[i];
44238 + assert(optype < AVR32_NR_OPERANDS);
44239 + op = &avr32_operand_table[optype];
44240 +
44241 + for (p = str; *p; p++)
44242 + if (*p == ',')
44243 + break;
44244 +
44245 + if (p == str)
44246 + return 0;
44247 +
44248 + c = *p;
44249 + *p = 0;
44250 +
44251 + if (!op->match(str))
44252 + {
44253 + *p = c;
44254 + return 0;
44255 + }
44256 +
44257 + str = p;
44258 + *p = c;
44259 + if (c)
44260 + str++;
44261 + }
44262 +
44263 + optype = syntax->operand[i];
44264 + assert(optype < AVR32_NR_OPERANDS);
44265 + op = &avr32_operand_table[optype];
44266 +
44267 + if (!op->match(str))
44268 + return 0;
44269 + return 1;
44270 + }
44271 +
44272 + for (i = 0; i < syntax->nr_operands; i++)
44273 + {
44274 + struct avr32_operand *op;
44275 + int optype = syntax->operand[i];
44276 + char *p;
44277 + char c;
44278 +
44279 + assert(optype < AVR32_NR_OPERANDS);
44280 + op = &avr32_operand_table[optype];
44281 +
44282 + for (p = str; *p; p++)
44283 + if (*p == ',')
44284 + break;
44285 +
44286 + if (p == str)
44287 + return 0;
44288 +
44289 + c = *p;
44290 + *p = 0;
44291 +
44292 + if (!op->match(str))
44293 + {
44294 + *p = c;
44295 + return 0;
44296 + }
44297 +
44298 + str = p;
44299 + *p = c;
44300 + if (c)
44301 + str++;
44302 + }
44303 +
44304 + if (*str == '\0')
44305 + return 1;
44306 +
44307 + if ((*str == 'e' || *str == 'E') && !str[1])
44308 + return 1;
44309 +
44310 + return 0;
44311 +}
44312 +
44313 +static int parse_operands(char *str)
44314 +{
44315 + int i;
44316 +
44317 + if (current_insn.syntax->nr_operands < 0)
44318 + {
44319 + int optype;
44320 + struct avr32_operand *op;
44321 +
44322 + for (i = 0; i < (-current_insn.syntax->nr_operands - 1); i++)
44323 + {
44324 + char *p;
44325 + char c;
44326 +
44327 + optype = current_insn.syntax->operand[i];
44328 + op = &avr32_operand_table[optype];
44329 +
44330 + for (p = str; *p; p++)
44331 + if (*p == ',')
44332 + break;
44333 +
44334 + assert(p != str);
44335 +
44336 + c = *p, *p = 0;
44337 + op->parse(op, str, i);
44338 + *p = c;
44339 +
44340 + str = p;
44341 + if (c) str++;
44342 + }
44343 +
44344 + /* give the rest of the line to the last operand */
44345 + optype = current_insn.syntax->operand[i];
44346 + op = &avr32_operand_table[optype];
44347 + op->parse(op, str, i);
44348 + }
44349 + else
44350 + {
44351 + for (i = 0; i < current_insn.syntax->nr_operands; i++)
44352 + {
44353 + int optype = current_insn.syntax->operand[i];
44354 + struct avr32_operand *op = &avr32_operand_table[optype];
44355 + char *p;
44356 + char c;
44357 +
44358 + skip_whitespace(str);
44359 +
44360 + for (p = str; *p; p++)
44361 + if (*p == ',')
44362 + break;
44363 +
44364 + assert(p != str);
44365 +
44366 + c = *p, *p = 0;
44367 + op->parse(op, str, i);
44368 + *p = c;
44369 +
44370 + str = p;
44371 + if (c) str++;
44372 + }
44373 +
44374 + if (*str == 'E' || *str == 'e')
44375 + current_insn.force_extended = 1;
44376 + }
44377 +
44378 + return 0;
44379 +}
44380 +
44381 +static const char *
44382 +finish_insn(const struct avr32_opcode *opc)
44383 +{
44384 + expressionS *exp = &current_insn.immediate;
44385 + unsigned int i;
44386 + int will_relax = 0;
44387 + char *buf;
44388 +
44389 + assert(current_insn.next_slot == opc->nr_fields);
44390 +
44391 + pr_debug("%s:%d: finish_insn: trying opcode %d\n",
44392 + frag_now->fr_file, frag_now->fr_line, opc->id);
44393 +
44394 + /* Go through the relaxation stage for all instructions that can
44395 + possibly take a symbolic immediate. The relax code will take
44396 + care of range checking and alignment. */
44397 + if (opc->var_field != -1)
44398 + {
44399 + int substate, largest_substate;
44400 + symbolS *sym;
44401 + offsetT off;
44402 +
44403 + will_relax = 1;
44404 + substate = largest_substate = opc_initial_substate(opc);
44405 +
44406 + while (relax_more(largest_substate) != AVR32_RS_NONE)
44407 + largest_substate = relax_more(largest_substate);
44408 +
44409 + pr_debug("will relax. initial substate: %d (size %d), largest substate: %d (size %d)\n",
44410 + substate, avr32_rs_size(substate),
44411 + largest_substate, avr32_rs_size(largest_substate));
44412 +
44413 + /* make sure we have enough room for the largest possible opcode */
44414 + frag_grow(avr32_rs_size(largest_substate));
44415 + buf = frag_more(opc->size);
44416 +
44417 + dwarf2_emit_insn(opc->size);
44418 +
44419 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_NONE;
44420 + frag_now->tc_frag_data.pcrel = current_insn.pcrel;
44421 + frag_now->tc_frag_data.force_extended = current_insn.force_extended;
44422 + frag_now->tc_frag_data.relaxer = &avr32_default_relaxer;
44423 +
44424 + if (exp->X_op == O_hi)
44425 + {
44426 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_HI;
44427 + exp->X_op = exp->X_md;
44428 + }
44429 + else if (exp->X_op == O_lo)
44430 + {
44431 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_LO;
44432 + exp->X_op = exp->X_md;
44433 + }
44434 + else if (exp->X_op == O_got)
44435 + {
44436 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_GOT;
44437 + exp->X_op = O_symbol;
44438 + }
44439 +
44440 +#if 0
44441 + if ((opc->reloc_type == BFD_RELOC_AVR32_SUB5)
44442 + && exp->X_op == O_subtract)
44443 + {
44444 + symbolS *tmp;
44445 + tmp = exp->X_add_symbol;
44446 + exp->X_add_symbol = exp->X_op_symbol;
44447 + exp->X_op_symbol = tmp;
44448 + }
44449 +#endif
44450 +
44451 + frag_now->tc_frag_data.exp = current_insn.immediate;
44452 +
44453 + sym = exp->X_add_symbol;
44454 + off = exp->X_add_number;
44455 + if (exp->X_op != O_symbol)
44456 + {
44457 + sym = make_expr_symbol(exp);
44458 + off = 0;
44459 + }
44460 +
44461 + frag_var(rs_machine_dependent,
44462 + avr32_rs_size(largest_substate) - opc->size,
44463 + opc->size,
44464 + substate, sym, off, buf);
44465 + }
44466 + else
44467 + {
44468 + assert(avr32_rs_size(opc_initial_substate(opc)) == 0);
44469 +
44470 + /* Make sure we always have room for another whole word, as the ifield
44471 + inserters can only write words. */
44472 + frag_grow(4);
44473 + buf = frag_more(opc->size);
44474 + dwarf2_emit_insn(opc->size);
44475 + }
44476 +
44477 + assert(!(opc->value & ~opc->mask));
44478 +
44479 + pr_debug("inserting opcode: 0x%lx\n", opc->value);
44480 + bfd_putb32(opc->value, buf);
44481 +
44482 + for (i = 0; i < opc->nr_fields; i++)
44483 + {
44484 + const struct avr32_ifield *f = opc->fields[i];
44485 + const struct avr32_ifield_data *fd = &current_insn.field_value[i];
44486 +
44487 + pr_debug("inserting field: 0x%lx & 0x%lx\n",
44488 + fd->value >> fd->align_order, f->mask);
44489 +
44490 + f->insert(f, buf, fd->value >> fd->align_order);
44491 + }
44492 +
44493 + assert(will_relax || !current_insn.immediate.X_add_symbol);
44494 + return NULL;
44495 +}
44496 +
44497 +static const char *
44498 +finish_alias(const struct avr32_alias *alias)
44499 +{
44500 + const struct avr32_opcode *opc;
44501 + struct {
44502 + unsigned long value;
44503 + unsigned long align;
44504 + } mapped_operand[AVR32_MAX_OPERANDS];
44505 + unsigned int i;
44506 +
44507 + opc = alias->opc;
44508 +
44509 + /* Remap the operands from the alias to the real opcode */
44510 + for (i = 0; i < opc->nr_fields; i++)
44511 + {
44512 + if (alias->operand_map[i].is_opindex)
44513 + {
44514 + struct avr32_ifield_data *fd;
44515 + fd = &current_insn.field_value[alias->operand_map[i].value];
44516 + mapped_operand[i].value = fd->value;
44517 + mapped_operand[i].align = fd->align_order;
44518 + }
44519 + else
44520 + {
44521 + mapped_operand[i].value = alias->operand_map[i].value;
44522 + mapped_operand[i].align = 0;
44523 + }
44524 + }
44525 +
44526 + for (i = 0; i < opc->nr_fields; i++)
44527 + {
44528 + current_insn.field_value[i].value = mapped_operand[i].value;
44529 + if (opc->id == AVR32_OPC_COP)
44530 + current_insn.field_value[i].align_order = 0;
44531 + else
44532 + current_insn.field_value[i].align_order
44533 + = mapped_operand[i].align;
44534 + }
44535 +
44536 + current_insn.next_slot = opc->nr_fields;
44537 +
44538 + return finish_insn(opc);
44539 +}
44540 +
44541 +static const char *
44542 +finish_lda(const struct avr32_syntax *syntax ATTRIBUTE_UNUSED)
44543 +{
44544 + expressionS *exp = &current_insn.immediate;
44545 + relax_substateT initial_subtype;
44546 + symbolS *sym;
44547 + offsetT off;
44548 + int initial_size, max_size;
44549 + char *buf;
44550 +
44551 + initial_size = LDA_INITIAL_SIZE;
44552 +
44553 + if (avr32_pic)
44554 + {
44555 + initial_subtype = LDA_SUBTYPE_SUB;
44556 + if (linkrelax)
44557 + max_size = 8;
44558 + else
44559 + max_size = 4;
44560 + }
44561 + else
44562 + {
44563 + initial_subtype = LDA_SUBTYPE_MOV1;
44564 + max_size = 4;
44565 + }
44566 +
44567 + frag_grow(max_size);
44568 + buf = frag_more(initial_size);
44569 + dwarf2_emit_insn(initial_size);
44570 +
44571 + if (exp->X_op == O_symbol)
44572 + {
44573 + sym = exp->X_add_symbol;
44574 + off = exp->X_add_number;
44575 + }
44576 + else
44577 + {
44578 + sym = make_expr_symbol(exp);
44579 + off = 0;
44580 + }
44581 +
44582 + frag_now->tc_frag_data.reloc_info = current_insn.field_value[0].value;
44583 + frag_now->tc_frag_data.relaxer = &avr32_lda_relaxer;
44584 +
44585 + if (!avr32_pic)
44586 + {
44587 + /* The relaxer will bump the refcount if necessary */
44588 + frag_now->tc_frag_data.pool
44589 + = add_to_cpool(exp, &frag_now->tc_frag_data.pool_entry, 0);
44590 + }
44591 +
44592 + frag_var(rs_machine_dependent, max_size - initial_size,
44593 + initial_size, initial_subtype, sym, off, buf);
44594 +
44595 + return NULL;
44596 +}
44597 +
44598 +static const char *
44599 +finish_call(const struct avr32_syntax *syntax ATTRIBUTE_UNUSED)
44600 +{
44601 + expressionS *exp = &current_insn.immediate;
44602 + symbolS *sym;
44603 + offsetT off;
44604 + int initial_size, max_size;
44605 + char *buf;
44606 +
44607 + initial_size = CALL_INITIAL_SIZE;
44608 +
44609 + if (avr32_pic)
44610 + {
44611 + if (linkrelax)
44612 + max_size = 10;
44613 + else
44614 + max_size = 4;
44615 + }
44616 + else
44617 + max_size = 4;
44618 +
44619 + frag_grow(max_size);
44620 + buf = frag_more(initial_size);
44621 + dwarf2_emit_insn(initial_size);
44622 +
44623 + frag_now->tc_frag_data.relaxer = &avr32_call_relaxer;
44624 +
44625 + if (exp->X_op == O_symbol)
44626 + {
44627 + sym = exp->X_add_symbol;
44628 + off = exp->X_add_number;
44629 + }
44630 + else
44631 + {
44632 + sym = make_expr_symbol(exp);
44633 + off = 0;
44634 + }
44635 +
44636 + if (!avr32_pic)
44637 + {
44638 + /* The relaxer will bump the refcount if necessary */
44639 + frag_now->tc_frag_data.pool
44640 + = add_to_cpool(exp, &frag_now->tc_frag_data.pool_entry, 0);
44641 + }
44642 +
44643 + frag_var(rs_machine_dependent, max_size - initial_size,
44644 + initial_size, CALL_SUBTYPE_RCALL1, sym, off, buf);
44645 +
44646 + return NULL;
44647 +}
44648 +
44649 +void
44650 +md_begin (void)
44651 +{
44652 + unsigned long flags = 0;
44653 + int i;
44654 +
44655 + avr32_mnemonic_htab = hash_new();
44656 +
44657 + if (!avr32_mnemonic_htab)
44658 + as_fatal(_("virtual memory exhausted"));
44659 +
44660 + for (i = 0; i < AVR32_NR_MNEMONICS; i++)
44661 + {
44662 + hash_insert(avr32_mnemonic_htab, avr32_mnemonic_table[i].name,
44663 + (void *)&avr32_mnemonic_table[i]);
44664 + }
44665 +
44666 + if (linkrelax)
44667 + flags |= EF_AVR32_LINKRELAX;
44668 + if (avr32_pic)
44669 + flags |= EF_AVR32_PIC;
44670 +
44671 + bfd_set_private_flags(stdoutput, flags);
44672 +
44673 +#ifdef OPC_CONSISTENCY_CHECK
44674 + if (sizeof(avr32_operand_table)/sizeof(avr32_operand_table[0])
44675 + < AVR32_NR_OPERANDS)
44676 + as_fatal(_("operand table is incomplete"));
44677 +
44678 + for (i = 0; i < AVR32_NR_OPERANDS; i++)
44679 + if (avr32_operand_table[i].id != i)
44680 + as_fatal(_("operand table inconsistency found at index %d\n"), i);
44681 + pr_debug("%d operands verified\n", AVR32_NR_OPERANDS);
44682 +
44683 + for (i = 0; i < AVR32_NR_IFIELDS; i++)
44684 + if (avr32_ifield_table[i].id != i)
44685 + as_fatal(_("ifield table inconsistency found at index %d\n"), i);
44686 + pr_debug("%d instruction fields verified\n", AVR32_NR_IFIELDS);
44687 +
44688 + for (i = 0; i < AVR32_NR_OPCODES; i++)
44689 + {
44690 + if (avr32_opc_table[i].id != i)
44691 + as_fatal(_("opcode table inconsistency found at index %d\n"), i);
44692 + if ((avr32_opc_table[i].var_field == -1
44693 + && avr32_relax_table[i].length != 0)
44694 + || (avr32_opc_table[i].var_field != -1
44695 + && avr32_relax_table[i].length == 0))
44696 + as_fatal(_("relax table inconsistency found at index %d\n"), i);
44697 + }
44698 + pr_debug("%d opcodes verified\n", AVR32_NR_OPCODES);
44699 +
44700 + for (i = 0; i < AVR32_NR_SYNTAX; i++)
44701 + if (avr32_syntax_table[i].id != i)
44702 + as_fatal(_("syntax table inconsistency found at index %d\n"), i);
44703 + pr_debug("%d syntax variants verified\n", AVR32_NR_SYNTAX);
44704 +
44705 + for (i = 0; i < AVR32_NR_ALIAS; i++)
44706 + if (avr32_alias_table[i].id != i)
44707 + as_fatal(_("alias table inconsistency found at index %d\n"), i);
44708 + pr_debug("%d aliases verified\n", AVR32_NR_ALIAS);
44709 +
44710 + for (i = 0; i < AVR32_NR_MNEMONICS; i++)
44711 + if (avr32_mnemonic_table[i].id != i)
44712 + as_fatal(_("mnemonic table inconsistency found at index %d\n"), i);
44713 + pr_debug("%d mnemonics verified\n", AVR32_NR_MNEMONICS);
44714 +#endif
44715 +}
44716 +
44717 +void
44718 +md_assemble (char *str)
44719 +{
44720 + struct avr32_mnemonic *mnemonic;
44721 + char *p, c;
44722 +
44723 + memset(&current_insn, 0, sizeof(current_insn));
44724 + current_insn.immediate.X_op = O_constant;
44725 +
44726 + skip_whitespace(str);
44727 + for (p = str; *p; p++)
44728 + if (*p == ' ')
44729 + break;
44730 + c = *p;
44731 + *p = 0;
44732 +
44733 + mnemonic = hash_find(avr32_mnemonic_htab, str);
44734 + *p = c;
44735 + if (c) p++;
44736 +
44737 + if (mnemonic)
44738 + {
44739 + const struct avr32_syntax *syntax;
44740 +
44741 + for (syntax = mnemonic->syntax; syntax; syntax = syntax->next)
44742 + {
44743 + const char *errmsg = NULL;
44744 +
44745 + if (syntax_matches(syntax, p))
44746 + {
44747 + if (!(syntax->isa_flags & avr32_arch->isa_flags))
44748 + {
44749 + as_bad(_("Selected architecture `%s' does not support `%s'"),
44750 + avr32_arch->name, str);
44751 + return;
44752 + }
44753 +
44754 + current_insn.syntax = syntax;
44755 + parse_operands(p);
44756 +
44757 + switch (syntax->type)
44758 + {
44759 + case AVR32_PARSER_NORMAL:
44760 + errmsg = finish_insn(syntax->u.opc);
44761 + break;
44762 + case AVR32_PARSER_ALIAS:
44763 + errmsg = finish_alias(syntax->u.alias);
44764 + break;
44765 + case AVR32_PARSER_LDA:
44766 + errmsg = finish_lda(syntax);
44767 + break;
44768 + case AVR32_PARSER_CALL:
44769 + errmsg = finish_call(syntax);
44770 + break;
44771 + default:
44772 + BAD_CASE(syntax->type);
44773 + break;
44774 + }
44775 +
44776 + if (errmsg)
44777 + as_bad("%s in `%s'", errmsg, str);
44778 +
44779 + return;
44780 + }
44781 + }
44782 +
44783 + as_bad(_("unrecognized form of instruction: `%s'"), str);
44784 + }
44785 + else
44786 + as_bad(_("unrecognized instruction `%s'"), str);
44787 +}
44788 +
44789 +void avr32_cleanup(void)
44790 +{
44791 + struct cpool *pool;
44792 +
44793 + /* Emit any constant pools that haven't been explicitly flushed with
44794 + a .cpool directive. */
44795 + for (pool = cpool_list; pool; pool = pool->next)
44796 + {
44797 + subseg_set(pool->section, pool->sub_section);
44798 + s_cpool(0);
44799 + }
44800 +}
44801 +
44802 +/* Handle any PIC-related operands in data allocation pseudo-ops */
44803 +void
44804 +avr32_cons_fix_new (fragS *frag, int off, int size, expressionS *exp)
44805 +{
44806 + bfd_reloc_code_real_type r_type = BFD_RELOC_UNUSED;
44807 + int pcrel = 0;
44808 +
44809 + pr_debug("%s:%u: cons_fix_new, add_sym: %s, op_sym: %s, op: %d, add_num: %d\n",
44810 + frag->fr_file, frag->fr_line,
44811 + exp->X_add_symbol?S_GET_NAME(exp->X_add_symbol):"(none)",
44812 + exp->X_op_symbol?S_GET_NAME(exp->X_op_symbol):"(none)",
44813 + exp->X_op, exp->X_add_number);
44814 +
44815 + if (exp->X_op == O_subtract && exp->X_op_symbol)
44816 + {
44817 + if (exp->X_op_symbol == GOT_symbol)
44818 + {
44819 + if (size != 4)
44820 + goto bad_size;
44821 + r_type = BFD_RELOC_AVR32_GOTPC;
44822 + exp->X_op = O_symbol;
44823 + exp->X_op_symbol = NULL;
44824 + }
44825 + }
44826 + else if (exp->X_op == O_got)
44827 + {
44828 + switch (size)
44829 + {
44830 + case 1:
44831 + r_type = BFD_RELOC_AVR32_GOT8;
44832 + break;
44833 + case 2:
44834 + r_type = BFD_RELOC_AVR32_GOT16;
44835 + break;
44836 + case 4:
44837 + r_type = BFD_RELOC_AVR32_GOT32;
44838 + break;
44839 + default:
44840 + goto bad_size;
44841 + }
44842 +
44843 + exp->X_op = O_symbol;
44844 + }
44845 +
44846 + if (r_type == BFD_RELOC_UNUSED)
44847 + switch (size)
44848 + {
44849 + case 1:
44850 + r_type = BFD_RELOC_8;
44851 + break;
44852 + case 2:
44853 + r_type = BFD_RELOC_16;
44854 + break;
44855 + case 4:
44856 + r_type = BFD_RELOC_32;
44857 + break;
44858 + default:
44859 + goto bad_size;
44860 + }
44861 + else if (size != 4)
44862 + {
44863 + bad_size:
44864 + as_bad(_("unsupported BFD relocation size %u"), size);
44865 + r_type = BFD_RELOC_UNUSED;
44866 + }
44867 +
44868 + fix_new_exp (frag, off, size, exp, pcrel, r_type);
44869 +}
44870 +
44871 +static void
44872 +avr32_frob_section(bfd *abfd ATTRIBUTE_UNUSED, segT sec,
44873 + void *ignore ATTRIBUTE_UNUSED)
44874 +{
44875 + segment_info_type *seginfo;
44876 + fixS *fix;
44877 +
44878 + seginfo = seg_info(sec);
44879 + if (!seginfo)
44880 + return;
44881 +
44882 + for (fix = seginfo->fix_root; fix; fix = fix->fx_next)
44883 + {
44884 + if (fix->fx_done)
44885 + continue;
44886 +
44887 + if (fix->fx_r_type == BFD_RELOC_AVR32_SUB5
44888 + && fix->fx_addsy && fix->fx_subsy)
44889 + {
44890 + if (S_GET_SEGMENT(fix->fx_addsy) != S_GET_SEGMENT(fix->fx_subsy)
44891 + || linkrelax)
44892 + {
44893 + symbolS *tmp;
44894 +#ifdef DEBUG
44895 + fprintf(stderr, "Swapping symbols in fixup:\n");
44896 + print_fixup(fix);
44897 +#endif
44898 + tmp = fix->fx_addsy;
44899 + fix->fx_addsy = fix->fx_subsy;
44900 + fix->fx_subsy = tmp;
44901 + fix->fx_offset = -fix->fx_offset;
44902 + }
44903 + }
44904 + }
44905 +}
44906 +
44907 +/* We need to look for SUB5 instructions with expressions that will be
44908 + made PC-relative and switch fx_addsy with fx_subsy. This has to be
44909 + done before adjustment or the wrong symbol might be adjusted.
44910 +
44911 + This applies to fixups that are a result of expressions like -(sym
44912 + - .) and that will make it all the way to md_apply_fix3(). LDA
44913 + does the right thing in convert_frag, so we must not convert
44914 + those. */
44915 +void
44916 +avr32_frob_file(void)
44917 +{
44918 + /* if (1 || !linkrelax)
44919 + return; */
44920 +
44921 + bfd_map_over_sections(stdoutput, avr32_frob_section, NULL);
44922 +}
44923 +
44924 +static bfd_boolean
44925 +convert_to_diff_reloc(fixS *fixP)
44926 +{
44927 + switch (fixP->fx_r_type)
44928 + {
44929 + case BFD_RELOC_32:
44930 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF32;
44931 + break;
44932 + case BFD_RELOC_16:
44933 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF16;
44934 + break;
44935 + case BFD_RELOC_8:
44936 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF8;
44937 + break;
44938 + default:
44939 + return FALSE;
44940 + }
44941 +
44942 + return TRUE;
44943 +}
44944 +
44945 +/* Simplify a fixup. If possible, the fixup is reduced to a single
44946 + constant which is written to the output file. Otherwise, a
44947 + relocation is generated so that the linker can take care of the
44948 + rest.
44949 +
44950 + ELF relocations have certain constraints: They can only take a
44951 + single symbol and a single addend. This means that for difference
44952 + expressions, we _must_ get rid of the fx_subsy symbol somehow.
44953 +
44954 + The difference between two labels in the same section can be
44955 + calculated directly unless 'linkrelax' is set, or a relocation is
44956 + forced. If so, we must emit a R_AVR32_DIFFxx relocation. If there
44957 + are addends involved at this point, we must be especially careful
44958 + as the relocation must point exactly to the symbol being
44959 + subtracted.
44960 +
44961 + When subtracting a symbol defined in the same section as the fixup,
44962 + we might be able to convert it to a PC-relative expression, unless
44963 + linkrelax is set. If this is the case, there's no way we can make
44964 + sure that the difference between the fixup and fx_subsy stays
44965 + constant. So for now, we're just going to disallow that.
44966 + */
44967 +void
44968 +avr32_process_fixup(fixS *fixP, segT this_segment)
44969 +{
44970 + segT add_symbol_segment = absolute_section;
44971 + segT sub_symbol_segment = absolute_section;
44972 + symbolS *fx_addsy, *fx_subsy;
44973 + offsetT value = 0, fx_offset;
44974 + bfd_boolean apply = FALSE;
44975 +
44976 + assert(this_segment != absolute_section);
44977 +
44978 + if (fixP->fx_r_type >= BFD_RELOC_UNUSED)
44979 + {
44980 + as_bad_where(fixP->fx_file, fixP->fx_line,
44981 + _("Bad relocation type %d\n"), fixP->fx_r_type);
44982 + return;
44983 + }
44984 +
44985 + /* BFD_RELOC_AVR32_SUB5 fixups have been swapped by avr32_frob_section() */
44986 + fx_addsy = fixP->fx_addsy;
44987 + fx_subsy = fixP->fx_subsy;
44988 + fx_offset = fixP->fx_offset;
44989 +
44990 + if (fx_addsy)
44991 + add_symbol_segment = S_GET_SEGMENT(fx_addsy);
44992 +
44993 + if (fx_subsy)
44994 + {
44995 + resolve_symbol_value(fx_subsy);
44996 + sub_symbol_segment = S_GET_SEGMENT(fx_subsy);
44997 +
44998 + if (sub_symbol_segment == this_segment
44999 + && (!linkrelax
45000 + || S_GET_VALUE(fx_subsy) == (fixP->fx_frag->fr_address
45001 + + fixP->fx_where)))
45002 + {
45003 + fixP->fx_pcrel = TRUE;
45004 + fx_offset += (fixP->fx_frag->fr_address + fixP->fx_where
45005 + - S_GET_VALUE(fx_subsy));
45006 + fx_subsy = NULL;
45007 + }
45008 + else if (sub_symbol_segment == absolute_section)
45009 + {
45010 + /* The symbol is really a constant. */
45011 + fx_offset -= S_GET_VALUE(fx_subsy);
45012 + fx_subsy = NULL;
45013 + }
45014 + else if (SEG_NORMAL(add_symbol_segment)
45015 + && sub_symbol_segment == add_symbol_segment
45016 + && (!linkrelax || convert_to_diff_reloc(fixP)))
45017 + {
45018 + /* Difference between two labels in the same section. */
45019 + if (linkrelax)
45020 + {
45021 + /* convert_to_diff() has ensured that the reloc type is
45022 + either DIFF32, DIFF16 or DIFF8. */
45023 + value = (S_GET_VALUE(fx_addsy) + fixP->fx_offset
45024 + - S_GET_VALUE(fx_subsy));
45025 +
45026 + /* Try to convert it to a section symbol if possible */
45027 + if (!S_FORCE_RELOC(fx_addsy, 1)
45028 + && !(sub_symbol_segment->flags & SEC_THREAD_LOCAL))
45029 + {
45030 + fx_offset = S_GET_VALUE(fx_subsy);
45031 + fx_addsy = section_symbol(sub_symbol_segment);
45032 + }
45033 + else
45034 + {
45035 + fx_addsy = fx_subsy;
45036 + fx_offset = 0;
45037 + }
45038 +
45039 + fx_subsy = NULL;
45040 + apply = TRUE;
45041 + }
45042 + else
45043 + {
45044 + fx_offset += S_GET_VALUE(fx_addsy);
45045 + fx_offset -= S_GET_VALUE(fx_subsy);
45046 + fx_addsy = NULL;
45047 + fx_subsy = NULL;
45048 + }
45049 + }
45050 + else
45051 + {
45052 + as_bad_where(fixP->fx_file, fixP->fx_line,
45053 + _("can't resolve `%s' {%s section} - `%s' {%s section}"),
45054 + fx_addsy ? S_GET_NAME (fx_addsy) : "0",
45055 + segment_name (add_symbol_segment),
45056 + S_GET_NAME (fx_subsy),
45057 + segment_name (sub_symbol_segment));
45058 + return;
45059 + }
45060 + }
45061 +
45062 + if (fx_addsy && !TC_FORCE_RELOCATION(fixP))
45063 + {
45064 + if (add_symbol_segment == this_segment
45065 + && fixP->fx_pcrel)
45066 + {
45067 + value += S_GET_VALUE(fx_addsy);
45068 + value -= md_pcrel_from_section(fixP, this_segment);
45069 + fx_addsy = NULL;
45070 + fixP->fx_pcrel = FALSE;
45071 + }
45072 + else if (add_symbol_segment == absolute_section)
45073 + {
45074 + fx_offset += S_GET_VALUE(fixP->fx_addsy);
45075 + fx_addsy = NULL;
45076 + }
45077 + }
45078 +
45079 + if (!fx_addsy)
45080 + fixP->fx_done = TRUE;
45081 +
45082 + if (fixP->fx_pcrel)
45083 + {
45084 + if (fx_addsy != NULL
45085 + && S_IS_DEFINED(fx_addsy)
45086 + && S_GET_SEGMENT(fx_addsy) != this_segment)
45087 + value += md_pcrel_from_section(fixP, this_segment);
45088 +
45089 + switch (fixP->fx_r_type)
45090 + {
45091 + case BFD_RELOC_32:
45092 + fixP->fx_r_type = BFD_RELOC_32_PCREL;
45093 + break;
45094 + case BFD_RELOC_16:
45095 + fixP->fx_r_type = BFD_RELOC_16_PCREL;
45096 + break;
45097 + case BFD_RELOC_8:
45098 + fixP->fx_r_type = BFD_RELOC_8_PCREL;
45099 + break;
45100 + case BFD_RELOC_AVR32_SUB5:
45101 + fixP->fx_r_type = BFD_RELOC_AVR32_16N_PCREL;
45102 + break;
45103 + case BFD_RELOC_AVR32_16S:
45104 + fixP->fx_r_type = BFD_RELOC_AVR32_16B_PCREL;
45105 + break;
45106 + case BFD_RELOC_AVR32_14UW:
45107 + fixP->fx_r_type = BFD_RELOC_AVR32_14UW_PCREL;
45108 + break;
45109 + case BFD_RELOC_AVR32_10UW:
45110 + fixP->fx_r_type = BFD_RELOC_AVR32_10UW_PCREL;
45111 + break;
45112 + default:
45113 + /* Should have been taken care of already */
45114 + break;
45115 + }
45116 + }
45117 +
45118 + if (fixP->fx_done || apply)
45119 + {
45120 + const struct avr32_ifield *ifield;
45121 + char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
45122 +
45123 + if (fixP->fx_done)
45124 + value += fx_offset;
45125 +
45126 + switch (fixP->fx_r_type)
45127 + {
45128 + case BFD_RELOC_32:
45129 + case BFD_RELOC_16:
45130 + case BFD_RELOC_8:
45131 + case BFD_RELOC_AVR32_DIFF32:
45132 + case BFD_RELOC_AVR32_DIFF16:
45133 + case BFD_RELOC_AVR32_DIFF8:
45134 + md_number_to_chars(buf, value, fixP->fx_size);
45135 + break;
45136 + case BFD_RELOC_HI16:
45137 + value >>= 16;
45138 + case BFD_RELOC_LO16:
45139 + value &= 0xffff;
45140 + md_number_to_chars(buf + 2, value, 2);
45141 + break;
45142 + case BFD_RELOC_AVR32_16N_PCREL:
45143 + value = -value;
45144 + /* fall through */
45145 + case BFD_RELOC_AVR32_22H_PCREL:
45146 + case BFD_RELOC_AVR32_18W_PCREL:
45147 + case BFD_RELOC_AVR32_16B_PCREL:
45148 + case BFD_RELOC_AVR32_11H_PCREL:
45149 + case BFD_RELOC_AVR32_9H_PCREL:
45150 + case BFD_RELOC_AVR32_9UW_PCREL:
45151 + case BFD_RELOC_AVR32_3U:
45152 + case BFD_RELOC_AVR32_4UH:
45153 + case BFD_RELOC_AVR32_6UW:
45154 + case BFD_RELOC_AVR32_6S:
45155 + case BFD_RELOC_AVR32_7UW:
45156 + case BFD_RELOC_AVR32_8S_EXT:
45157 + case BFD_RELOC_AVR32_8S:
45158 + case BFD_RELOC_AVR32_10UW:
45159 + case BFD_RELOC_AVR32_10SW:
45160 + case BFD_RELOC_AVR32_STHH_W:
45161 + case BFD_RELOC_AVR32_14UW:
45162 + case BFD_RELOC_AVR32_16S:
45163 + case BFD_RELOC_AVR32_16U:
45164 + case BFD_RELOC_AVR32_21S:
45165 + case BFD_RELOC_AVR32_SUB5:
45166 + case BFD_RELOC_AVR32_CPCALL:
45167 + case BFD_RELOC_AVR32_16_CP:
45168 + case BFD_RELOC_AVR32_9W_CP:
45169 + ifield = fixP->tc_fix_data.ifield;
45170 + pr_debug("insert field: %ld <= %ld <= %ld (align %u)\n",
45171 + fixP->tc_fix_data.min, value, fixP->tc_fix_data.max,
45172 + fixP->tc_fix_data.align);
45173 + if (value < fixP->tc_fix_data.min || value > fixP->tc_fix_data.max)
45174 + as_bad_where(fixP->fx_file, fixP->fx_line,
45175 + _("operand out of range (%ld not between %ld and %ld)"),
45176 + value, fixP->tc_fix_data.min, fixP->tc_fix_data.max);
45177 + if (value & ((1 << fixP->tc_fix_data.align) - 1))
45178 + as_bad_where(fixP->fx_file, fixP->fx_line,
45179 + _("misaligned operand (required alignment: %d)"),
45180 + 1 << fixP->tc_fix_data.align);
45181 + ifield->insert(ifield, buf, value >> fixP->tc_fix_data.align);
45182 + break;
45183 + case BFD_RELOC_AVR32_ALIGN:
45184 + /* Nothing to do */
45185 + fixP->fx_done = FALSE;
45186 + break;
45187 + default:
45188 + as_fatal("reloc type %s not handled\n",
45189 + bfd_get_reloc_code_name(fixP->fx_r_type));
45190 + }
45191 + }
45192 +
45193 + fixP->fx_addsy = fx_addsy;
45194 + fixP->fx_subsy = fx_subsy;
45195 + fixP->fx_offset = fx_offset;
45196 +
45197 + if (!fixP->fx_done)
45198 + {
45199 + if (!fixP->fx_addsy)
45200 + fixP->fx_addsy = abs_section_sym;
45201 +
45202 + symbol_mark_used_in_reloc(fixP->fx_addsy);
45203 + if (fixP->fx_subsy)
45204 + abort();
45205 + }
45206 +}
45207 +
45208 +#if 0
45209 +void
45210 +md_apply_fix3 (fixS *fixP, valueT *valP, segT seg)
45211 +{
45212 + const struct avr32_ifield *ifield;
45213 + offsetT value = *valP;
45214 + char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
45215 + bfd_boolean apply;
45216 +
45217 + pr_debug("%s:%u: apply_fix3: r_type=%d value=%lx offset=%lx\n",
45218 + fixP->fx_file, fixP->fx_line, fixP->fx_r_type, *valP,
45219 + fixP->fx_offset);
45220 +
45221 + if (fixP->fx_r_type >= BFD_RELOC_UNUSED)
45222 + {
45223 + as_bad_where(fixP->fx_file, fixP->fx_line,
45224 + _("Bad relocation type %d\n"), fixP->fx_r_type);
45225 + return;
45226 + }
45227 +
45228 + if (!fixP->fx_addsy && !fixP->fx_subsy)
45229 + fixP->fx_done = 1;
45230 +
45231 + if (fixP->fx_pcrel)
45232 + {
45233 + if (fixP->fx_addsy != NULL
45234 + && S_IS_DEFINED(fixP->fx_addsy)
45235 + && S_GET_SEGMENT(fixP->fx_addsy) != seg)
45236 + value += md_pcrel_from_section(fixP, seg);
45237 +
45238 + switch (fixP->fx_r_type)
45239 + {
45240 + case BFD_RELOC_32:
45241 + fixP->fx_r_type = BFD_RELOC_32_PCREL;
45242 + break;
45243 + case BFD_RELOC_16:
45244 + case BFD_RELOC_8:
45245 + as_bad_where (fixP->fx_file, fixP->fx_line,
45246 + _("8- and 16-bit PC-relative relocations not supported"));
45247 + break;
45248 + case BFD_RELOC_AVR32_SUB5:
45249 + fixP->fx_r_type = BFD_RELOC_AVR32_PCREL_SUB5;
45250 + break;
45251 + case BFD_RELOC_AVR32_16S:
45252 + fixP->fx_r_type = BFD_RELOC_AVR32_16_PCREL;
45253 + break;
45254 + default:
45255 + /* Should have been taken care of already */
45256 + break;
45257 + }
45258 + }
45259 +
45260 + if (fixP->fx_r_type == BFD_RELOC_32
45261 + && fixP->fx_subsy)
45262 + {
45263 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF32;
45264 +
45265 + /* Offsets are only allowed if it's a result of adjusting a
45266 + local symbol into a section-relative offset.
45267 + tc_fix_adjustable() should prevent any adjustment if there
45268 + was an offset involved before. */
45269 + if (fixP->fx_offset && !symbol_section_p(fixP->fx_addsy))
45270 + as_bad_where(fixP->fx_file, fixP->fx_line,
45271 + _("cannot represent symbol difference with an offset"));
45272 +
45273 + value = (S_GET_VALUE(fixP->fx_addsy) + fixP->fx_offset
45274 + - S_GET_VALUE(fixP->fx_subsy));
45275 +
45276 + /* The difference before any relaxing takes place is written
45277 + out, and the DIFF32 reloc identifies the address of the first
45278 + symbol (i.e. the on that's subtracted.) */
45279 + *valP = value;
45280 + fixP->fx_offset -= value;
45281 + fixP->fx_subsy = NULL;
45282 +
45283 + md_number_to_chars(buf, value, fixP->fx_size);
45284 + }
45285 +
45286 + if (fixP->fx_done)
45287 + {
45288 + switch (fixP->fx_r_type)
45289 + {
45290 + case BFD_RELOC_8:
45291 + case BFD_RELOC_16:
45292 + case BFD_RELOC_32:
45293 + md_number_to_chars(buf, value, fixP->fx_size);
45294 + break;
45295 + case BFD_RELOC_HI16:
45296 + value >>= 16;
45297 + case BFD_RELOC_LO16:
45298 + value &= 0xffff;
45299 + *valP = value;
45300 + md_number_to_chars(buf + 2, value, 2);
45301 + break;
45302 + case BFD_RELOC_AVR32_PCREL_SUB5:
45303 + value = -value;
45304 + /* fall through */
45305 + case BFD_RELOC_AVR32_9_PCREL:
45306 + case BFD_RELOC_AVR32_11_PCREL:
45307 + case BFD_RELOC_AVR32_16_PCREL:
45308 + case BFD_RELOC_AVR32_18_PCREL:
45309 + case BFD_RELOC_AVR32_22_PCREL:
45310 + case BFD_RELOC_AVR32_3U:
45311 + case BFD_RELOC_AVR32_4UH:
45312 + case BFD_RELOC_AVR32_6UW:
45313 + case BFD_RELOC_AVR32_6S:
45314 + case BFD_RELOC_AVR32_7UW:
45315 + case BFD_RELOC_AVR32_8S:
45316 + case BFD_RELOC_AVR32_10UW:
45317 + case BFD_RELOC_AVR32_10SW:
45318 + case BFD_RELOC_AVR32_14UW:
45319 + case BFD_RELOC_AVR32_16S:
45320 + case BFD_RELOC_AVR32_16U:
45321 + case BFD_RELOC_AVR32_21S:
45322 + case BFD_RELOC_AVR32_BRC1:
45323 + case BFD_RELOC_AVR32_SUB5:
45324 + case BFD_RELOC_AVR32_CPCALL:
45325 + case BFD_RELOC_AVR32_16_CP:
45326 + case BFD_RELOC_AVR32_9_CP:
45327 + ifield = fixP->tc_fix_data.ifield;
45328 + pr_debug("insert field: %ld <= %ld <= %ld (align %u)\n",
45329 + fixP->tc_fix_data.min, value, fixP->tc_fix_data.max,
45330 + fixP->tc_fix_data.align);
45331 + if (value < fixP->tc_fix_data.min || value > fixP->tc_fix_data.max)
45332 + as_bad_where(fixP->fx_file, fixP->fx_line,
45333 + _("operand out of range (%ld not between %ld and %ld)"),
45334 + value, fixP->tc_fix_data.min, fixP->tc_fix_data.max);
45335 + if (value & ((1 << fixP->tc_fix_data.align) - 1))
45336 + as_bad_where(fixP->fx_file, fixP->fx_line,
45337 + _("misaligned operand (required alignment: %d)"),
45338 + 1 << fixP->tc_fix_data.align);
45339 + ifield->insert(ifield, buf, value >> fixP->tc_fix_data.align);
45340 + break;
45341 + case BFD_RELOC_AVR32_ALIGN:
45342 + /* Nothing to do */
45343 + fixP->fx_done = FALSE;
45344 + break;
45345 + default:
45346 + as_fatal("reloc type %s not handled\n",
45347 + bfd_get_reloc_code_name(fixP->fx_r_type));
45348 + }
45349 + }
45350 +}
45351 +#endif
45352 +
45353 +arelent *
45354 +tc_gen_reloc (asection *section ATTRIBUTE_UNUSED,
45355 + fixS *fixp)
45356 +{
45357 + arelent *reloc;
45358 + bfd_reloc_code_real_type code;
45359 +
45360 + reloc = xmalloc (sizeof (arelent));
45361 +
45362 + reloc->sym_ptr_ptr = xmalloc (sizeof (asymbol *));
45363 + *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
45364 + reloc->address = fixp->fx_frag->fr_address + fixp->fx_where;
45365 + reloc->addend = fixp->fx_offset;
45366 + code = fixp->fx_r_type;
45367 +
45368 + reloc->howto = bfd_reloc_type_lookup (stdoutput, code);
45369 +
45370 + if (reloc->howto == NULL)
45371 + {
45372 + as_bad_where (fixp->fx_file, fixp->fx_line,
45373 + _("cannot represent relocation %s in this object file format"),
45374 + bfd_get_reloc_code_name (code));
45375 + return NULL;
45376 + }
45377 +
45378 + return reloc;
45379 +}
45380 +
45381 +bfd_boolean
45382 +avr32_force_reloc(fixS *fixP)
45383 +{
45384 + if (linkrelax && fixP->fx_addsy
45385 + && !(S_GET_SEGMENT(fixP->fx_addsy)->flags & SEC_DEBUGGING)
45386 + && S_GET_SEGMENT(fixP->fx_addsy) != absolute_section)
45387 + {
45388 + pr_debug(stderr, "force reloc: addsy=%p, r_type=%d, sec=%s\n",
45389 + fixP->fx_addsy, fixP->fx_r_type, S_GET_SEGMENT(fixP->fx_addsy)->name);
45390 + return 1;
45391 + }
45392 +
45393 + return generic_force_reloc(fixP);
45394 +}
45395 +
45396 +bfd_boolean
45397 +avr32_fix_adjustable(fixS *fixP)
45398 +{
45399 + switch (fixP->fx_r_type)
45400 + {
45401 + /* GOT relocations can't have addends since BFD treats all
45402 + references to a given symbol the same. This means that we
45403 + must avoid section-relative references to local symbols when
45404 + dealing with these kinds of relocs */
45405 + case BFD_RELOC_AVR32_GOT32:
45406 + case BFD_RELOC_AVR32_GOT16:
45407 + case BFD_RELOC_AVR32_GOT8:
45408 + case BFD_RELOC_AVR32_GOT21S:
45409 + case BFD_RELOC_AVR32_GOT18SW:
45410 + case BFD_RELOC_AVR32_GOT16S:
45411 + case BFD_RELOC_AVR32_LDA_GOT:
45412 + case BFD_RELOC_AVR32_GOTCALL:
45413 + pr_debug("fix not adjustable\n");
45414 + return 0;
45415 +
45416 + default:
45417 + break;
45418 + }
45419 +
45420 + return 1;
45421 +}
45422 +
45423 +/* When we want the linker to be able to relax the code, we need to
45424 + output a reloc for every .align directive requesting an alignment
45425 + to a four byte boundary or larger. If we don't do this, the linker
45426 + can't guarantee that the alignment is actually maintained in the
45427 + linker output.
45428 +
45429 + TODO: Might as well insert proper NOPs while we're at it... */
45430 +void
45431 +avr32_handle_align(fragS *frag)
45432 +{
45433 + if (linkrelax
45434 + && frag->fr_type == rs_align_code
45435 + && frag->fr_address + frag->fr_fix > 0
45436 + && frag->fr_offset > 0)
45437 + {
45438 + /* The alignment order (fr_offset) is stored in the addend. */
45439 + fix_new(frag, frag->fr_fix, 2, &abs_symbol, frag->fr_offset,
45440 + FALSE, BFD_RELOC_AVR32_ALIGN);
45441 + }
45442 +}
45443 +
45444 +/* Relax_align. Advance location counter to next address that has 'alignment'
45445 + lowest order bits all 0s, return size of adjustment made. */
45446 +relax_addressT
45447 +avr32_relax_align(segT segment ATTRIBUTE_UNUSED,
45448 + fragS *fragP,
45449 + relax_addressT address)
45450 +{
45451 + relax_addressT mask;
45452 + relax_addressT new_address;
45453 + int alignment;
45454 +
45455 + alignment = fragP->fr_offset;
45456 + mask = ~((~0) << alignment);
45457 + new_address = (address + mask) & (~mask);
45458 +
45459 + return new_address - address;
45460 +}
45461 +
45462 +/* Turn a string in input_line_pointer into a floating point constant
45463 + of type type, and store the appropriate bytes in *litP. The number
45464 + of LITTLENUMS emitted is stored in *sizeP . An error message is
45465 + returned, or NULL on OK. */
45466 +
45467 +/* Equal to MAX_PRECISION in atof-ieee.c */
45468 +#define MAX_LITTLENUMS 6
45469 +
45470 +char *
45471 +md_atof (type, litP, sizeP)
45472 +char type;
45473 +char * litP;
45474 +int * sizeP;
45475 +{
45476 + int i;
45477 + int prec;
45478 + LITTLENUM_TYPE words [MAX_LITTLENUMS];
45479 + char * t;
45480 +
45481 + switch (type)
45482 + {
45483 + case 'f':
45484 + case 'F':
45485 + case 's':
45486 + case 'S':
45487 + prec = 2;
45488 + break;
45489 +
45490 + case 'd':
45491 + case 'D':
45492 + case 'r':
45493 + case 'R':
45494 + prec = 4;
45495 + break;
45496 +
45497 + /* FIXME: Some targets allow other format chars for bigger sizes here. */
45498 +
45499 + default:
45500 + * sizeP = 0;
45501 + return _("Bad call to md_atof()");
45502 + }
45503 +
45504 + t = atof_ieee (input_line_pointer, type, words);
45505 + if (t)
45506 + input_line_pointer = t;
45507 + * sizeP = prec * sizeof (LITTLENUM_TYPE);
45508 +
45509 + for (i = 0; i < prec; i++)
45510 + {
45511 + md_number_to_chars (litP, (valueT) words[i],
45512 + sizeof (LITTLENUM_TYPE));
45513 + litP += sizeof (LITTLENUM_TYPE);
45514 + }
45515 +
45516 + return 0;
45517 +}
45518 +
45519 +static char *avr32_end_of_match(char *cont, char *what)
45520 +{
45521 + int len = strlen (what);
45522 +
45523 + if (! is_part_of_name (cont[len])
45524 + && strncasecmp (cont, what, len) == 0)
45525 + return cont + len;
45526 +
45527 + return NULL;
45528 +}
45529 +
45530 +int
45531 +avr32_parse_name (char const *name, expressionS *exp, char *nextchar)
45532 +{
45533 + char *next = input_line_pointer;
45534 + char *next_end;
45535 +
45536 + pr_debug("parse_name: %s, nextchar=%c (%02x)\n", name, *nextchar, *nextchar);
45537 +
45538 + if (*nextchar == '(')
45539 + {
45540 + if (strcasecmp(name, "hi") == 0)
45541 + {
45542 + *next = *nextchar;
45543 +
45544 + expression(exp);
45545 +
45546 + if (exp->X_op == O_constant)
45547 + {
45548 + pr_debug(" -> constant hi(0x%08lx) -> 0x%04lx\n",
45549 + exp->X_add_number, exp->X_add_number >> 16);
45550 + exp->X_add_number = (exp->X_add_number >> 16) & 0xffff;
45551 + }
45552 + else
45553 + {
45554 + exp->X_md = exp->X_op;
45555 + exp->X_op = O_hi;
45556 + }
45557 +
45558 + return 1;
45559 + }
45560 + else if (strcasecmp(name, "lo") == 0)
45561 + {
45562 + *next = *nextchar;
45563 +
45564 + expression(exp);
45565 +
45566 + if (exp->X_op == O_constant)
45567 + exp->X_add_number &= 0xffff;
45568 + else
45569 + {
45570 + exp->X_md = exp->X_op;
45571 + exp->X_op = O_lo;
45572 + }
45573 +
45574 + return 1;
45575 + }
45576 + }
45577 + else if (*nextchar == '@')
45578 + {
45579 + exp->X_md = exp->X_op;
45580 +
45581 + if ((next_end = avr32_end_of_match (next + 1, "got")))
45582 + exp->X_op = O_got;
45583 + else if ((next_end = avr32_end_of_match (next + 1, "tlsgd")))
45584 + exp->X_op = O_tlsgd;
45585 + /* Add more as needed */
45586 + else
45587 + {
45588 + char c;
45589 + input_line_pointer++;
45590 + c = get_symbol_end();
45591 + as_bad (_("unknown relocation override `%s'"), next + 1);
45592 + *input_line_pointer = c;
45593 + input_line_pointer = next;
45594 + return 0;
45595 + }
45596 +
45597 + exp->X_op_symbol = NULL;
45598 + exp->X_add_symbol = symbol_find_or_make (name);
45599 + exp->X_add_number = 0;
45600 +
45601 + *input_line_pointer = *nextchar;
45602 + input_line_pointer = next_end;
45603 + *nextchar = *input_line_pointer;
45604 + *input_line_pointer = '\0';
45605 + return 1;
45606 + }
45607 + else if (strcmp (name, "_GLOBAL_OFFSET_TABLE_") == 0)
45608 + {
45609 + if (!GOT_symbol)
45610 + GOT_symbol = symbol_find_or_make(name);
45611 +
45612 + exp->X_add_symbol = GOT_symbol;
45613 + exp->X_op = O_symbol;
45614 + exp->X_add_number = 0;
45615 + return 1;
45616 + }
45617 +
45618 + return 0;
45619 +}
45620 +
45621 +static void
45622 +s_rseg (int value ATTRIBUTE_UNUSED)
45623 +{
45624 + /* Syntax: RSEG segment_name [:type] [NOROOT|ROOT] [(align)]
45625 + * Defaults:
45626 + * - type: undocumented ("typically CODE or DATA")
45627 + * - ROOT
45628 + * - align: 1 for code, 0 for others
45629 + *
45630 + * TODO: NOROOT is ignored. If gas supports discardable segments, it should
45631 + * be implemented.
45632 + */
45633 + char *name, *end;
45634 + int length, type, attr;
45635 + int align = 0;
45636 +
45637 + SKIP_WHITESPACE();
45638 +
45639 + end = input_line_pointer;
45640 + while (0 == strchr ("\n\t;:( ", *end))
45641 + end++;
45642 + if (end == input_line_pointer)
45643 + {
45644 + as_warn (_("missing name"));
45645 + ignore_rest_of_line();
45646 + return;
45647 + }
45648 +
45649 + name = xmalloc (end - input_line_pointer + 1);
45650 + memcpy (name, input_line_pointer, end - input_line_pointer);
45651 + name[end - input_line_pointer] = '\0';
45652 + input_line_pointer = end;
45653 +
45654 + SKIP_WHITESPACE();
45655 +
45656 + type = SHT_NULL;
45657 + attr = 0;
45658 +
45659 + if (*input_line_pointer == ':')
45660 + {
45661 + /* Skip the colon */
45662 + ++input_line_pointer;
45663 + SKIP_WHITESPACE();
45664 +
45665 + /* Possible options at this point:
45666 + * - flag (ROOT or NOROOT)
45667 + * - a segment type
45668 + */
45669 + end = input_line_pointer;
45670 + while (0 == strchr ("\n\t;:( ", *end))
45671 + end++;
45672 + length = end - input_line_pointer;
45673 + if (((length == 4) && (0 == strncasecmp( input_line_pointer, "ROOT", 4))) ||
45674 + ((length == 6) && (0 == strncasecmp( input_line_pointer, "NOROOT", 6))))
45675 + {
45676 + /* Ignore ROOT/NOROOT */
45677 + input_line_pointer = end;
45678 + }
45679 + else
45680 + {
45681 + /* Must be a segment type */
45682 + switch (*input_line_pointer)
45683 + {
45684 + case 'C':
45685 + case 'c':
45686 + if ((length == 4) &&
45687 + (0 == strncasecmp (input_line_pointer, "CODE", 4)))
45688 + {
45689 + attr |= SHF_ALLOC | SHF_EXECINSTR;
45690 + type = SHT_PROGBITS;
45691 + align = 1;
45692 + break;
45693 + }
45694 + if ((length == 5) &&
45695 + (0 == strncasecmp (input_line_pointer, "CONST", 5)))
45696 + {
45697 + attr |= SHF_ALLOC;
45698 + type = SHT_PROGBITS;
45699 + break;
45700 + }
45701 + goto de_fault;
45702 +
45703 + case 'D':
45704 + case 'd':
45705 + if ((length == 4) &&
45706 + (0 == strncasecmp (input_line_pointer, "DATA", 4)))
45707 + {
45708 + attr |= SHF_ALLOC | SHF_WRITE;
45709 + type = SHT_PROGBITS;
45710 + break;
45711 + }
45712 + goto de_fault;
45713 +
45714 + /* TODO: Add FAR*, HUGE*, IDATA and NEAR* if necessary */
45715 +
45716 + case 'U':
45717 + case 'u':
45718 + if ((length == 7) &&
45719 + (0 == strncasecmp (input_line_pointer, "UNTYPED", 7)))
45720 + break;
45721 + goto de_fault;
45722 +
45723 + /* TODO: Add XDATA and ZPAGE if necessary */
45724 +
45725 + de_fault:
45726 + default:
45727 + as_warn (_("unrecognized segment type"));
45728 + }
45729 +
45730 + input_line_pointer = end;
45731 + SKIP_WHITESPACE();
45732 +
45733 + if (*input_line_pointer == ':')
45734 + {
45735 + /* ROOT/NOROOT */
45736 + ++input_line_pointer;
45737 + SKIP_WHITESPACE();
45738 +
45739 + end = input_line_pointer;
45740 + while (0 == strchr ("\n\t;:( ", *end))
45741 + end++;
45742 + length = end - input_line_pointer;
45743 + if (! ((length == 4) &&
45744 + (0 == strncasecmp( input_line_pointer, "ROOT", 4))) &&
45745 + ! ((length == 6) &&
45746 + (0 == strncasecmp( input_line_pointer, "NOROOT", 6))))
45747 + {
45748 + as_warn (_("unrecognized segment flag"));
45749 + }
45750 +
45751 + input_line_pointer = end;
45752 + SKIP_WHITESPACE();
45753 + }
45754 + }
45755 + }
45756 +
45757 + if (*input_line_pointer == '(')
45758 + {
45759 + align = get_absolute_expression ();
45760 + }
45761 +
45762 + demand_empty_rest_of_line();
45763 +
45764 + obj_elf_change_section (name, type, attr, 0, NULL, 0, 0);
45765 +#ifdef AVR32_DEBUG
45766 + fprintf( stderr, "RSEG: Changed section to %s, type: 0x%x, attr: 0x%x\n",
45767 + name, type, attr );
45768 + fprintf( stderr, "RSEG: Aligning to 2**%d\n", align );
45769 +#endif
45770 +
45771 + if (align > 15)
45772 + {
45773 + align = 15;
45774 + as_warn (_("alignment too large: %u assumed"), align);
45775 + }
45776 +
45777 + /* Hope not, that is */
45778 + assert (now_seg != absolute_section);
45779 +
45780 + /* Only make a frag if we HAVE to... */
45781 + if (align != 0 && !need_pass_2)
45782 + {
45783 + if (subseg_text_p (now_seg))
45784 + frag_align_code (align, 0);
45785 + else
45786 + frag_align (align, 0, 0);
45787 + }
45788 +
45789 + record_alignment (now_seg, align - OCTETS_PER_BYTE_POWER);
45790 +}
45791 +
45792 +/* vim: syntax=c sw=2
45793 + */
45794 --- /dev/null
45795 +++ b/gas/config/tc-avr32.h
45796 @@ -0,0 +1,313 @@
45797 +/* Assembler definitions for AVR32.
45798 + Copyright 2003-2006 Atmel Corporation.
45799 +
45800 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
45801 +
45802 + This file is part of GAS, the GNU Assembler.
45803 +
45804 + GAS is free software; you can redistribute it and/or modify it
45805 + under the terms of the GNU General Public License as published by
45806 + the Free Software Foundation; either version 2, or (at your option)
45807 + any later version.
45808 +
45809 + GAS is distributed in the hope that it will be useful, but WITHOUT
45810 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
45811 + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
45812 + License for more details.
45813 +
45814 + You should have received a copy of the GNU General Public License
45815 + along with GAS; see the file COPYING. If not, write to the Free
45816 + Software Foundation, 59 Temple Place - Suite 330, Boston, MA
45817 + 02111-1307, USA. */
45818 +
45819 +#if 0
45820 +#define DEBUG
45821 +#define DEBUG1
45822 +#define DEBUG2
45823 +#define DEBUG3
45824 +#define DEBUG4
45825 +#define DEBUG5
45826 +#endif
45827 +
45828 +/* Are we trying to be compatible with the IAR assembler? (--iar) */
45829 +extern int avr32_iarcompat;
45830 +
45831 +/* By convention, you should define this macro in the `.h' file. For
45832 + example, `tc-m68k.h' defines `TC_M68K'. You might have to use this
45833 + if it is necessary to add CPU specific code to the object format
45834 + file. */
45835 +#define TC_AVR32
45836 +
45837 +/* This macro is the BFD target name to use when creating the output
45838 + file. This will normally depend upon the `OBJ_FMT' macro. */
45839 +#define TARGET_FORMAT "elf32-avr32"
45840 +
45841 +/* This macro is the BFD architecture to pass to `bfd_set_arch_mach'. */
45842 +#define TARGET_ARCH bfd_arch_avr32
45843 +
45844 +/* This macro is the BFD machine number to pass to
45845 + `bfd_set_arch_mach'. If it is not defined, GAS will use 0. */
45846 +#define TARGET_MACH 0
45847 +
45848 +/* UNDOCUMENTED: Allow //-style comments */
45849 +#define DOUBLESLASH_LINE_COMMENTS
45850 +
45851 +/* You should define this macro to be non-zero if the target is big
45852 + endian, and zero if the target is little endian. */
45853 +#define TARGET_BYTES_BIG_ENDIAN 1
45854 +
45855 +/* FIXME: It seems that GAS only expects a one-byte opcode...
45856 + #define NOP_OPCODE 0xd703 */
45857 +
45858 +/* If you define this macro, GAS will warn about the use of
45859 + nonstandard escape sequences in a string. */
45860 +#undef ONLY_STANDARD_ESCAPES
45861 +
45862 +#define DWARF2_FORMAT() dwarf2_format_32bit
45863 +
45864 +/* Instructions are either 2 or 4 bytes long */
45865 +/* #define DWARF2_LINE_MIN_INSN_LENGTH 2 */
45866 +
45867 +/* GAS will call this function for any expression that can not be
45868 + recognized. When the function is called, `input_line_pointer'
45869 + will point to the start of the expression. */
45870 +#define md_operand(x)
45871 +
45872 +#define md_parse_name(name, expr, mode, c) avr32_parse_name(name, expr, c)
45873 +extern int avr32_parse_name(const char *, struct expressionS *, char *);
45874 +
45875 +/* You may define this macro to generate a fixup for a data
45876 + allocation pseudo-op. */
45877 +#define TC_CONS_FIX_NEW(FRAG, OFF, LEN, EXP) \
45878 + avr32_cons_fix_new(FRAG, OFF, LEN, EXP)
45879 +void avr32_cons_fix_new (fragS *, int, int, expressionS *);
45880 +
45881 +/* `extsym - .' expressions can be emitted using PC-relative relocs */
45882 +#define DIFF_EXPR_OK
45883 +
45884 +/* This is used to construct expressions out of @gotoff, etc. The
45885 + relocation type is stored in X_md */
45886 +#define O_got O_md1
45887 +#define O_hi O_md2
45888 +#define O_lo O_md3
45889 +#define O_tlsgd O_md4
45890 +
45891 +/* You may define this macro to parse an expression used in a data
45892 + allocation pseudo-op such as `.word'. You can use this to
45893 + recognize relocation directives that may appear in such directives. */
45894 +/* #define TC_PARSE_CONS_EXPRESSION(EXPR,N) avr_parse_cons_expression (EXPR,N)
45895 + void avr_parse_cons_expression (expressionS *exp, int nbytes); */
45896 +
45897 +/* This should just call either `number_to_chars_bigendian' or
45898 + `number_to_chars_littleendian', whichever is appropriate. On
45899 + targets like the MIPS which support options to change the
45900 + endianness, which function to call is a runtime decision. On
45901 + other targets, `md_number_to_chars' can be a simple macro. */
45902 +#define md_number_to_chars number_to_chars_bigendian
45903 +
45904 +/* `md_short_jump_size'
45905 + `md_long_jump_size'
45906 + `md_create_short_jump'
45907 + `md_create_long_jump'
45908 + If `WORKING_DOT_WORD' is defined, GAS will not do broken word
45909 + processing (*note Broken words::.). Otherwise, you should set
45910 + `md_short_jump_size' to the size of a short jump (a jump that is
45911 + just long enough to jump around a long jmp) and
45912 + `md_long_jump_size' to the size of a long jump (a jump that can go
45913 + anywhere in the function), You should define
45914 + `md_create_short_jump' to create a short jump around a long jump,
45915 + and define `md_create_long_jump' to create a long jump. */
45916 +#define WORKING_DOT_WORD
45917 +
45918 +/* If you define this macro, it means that `tc_gen_reloc' may return
45919 + multiple relocation entries for a single fixup. In this case, the
45920 + return value of `tc_gen_reloc' is a pointer to a null terminated
45921 + array. */
45922 +#undef RELOC_EXPANSION_POSSIBLE
45923 +
45924 +/* If you define this macro, GAS will not require pseudo-ops to start with a .
45925 + character. */
45926 +#define NO_PSEUDO_DOT (avr32_iarcompat)
45927 +
45928 +/* The IAR assembler uses $ as the location counter. Unfortunately, we
45929 + can't make this dependent on avr32_iarcompat... */
45930 +#define DOLLAR_DOT
45931 +
45932 +/* Values passed to md_apply_fix3 don't include the symbol value. */
45933 +#define MD_APPLY_SYM_VALUE(FIX) 0
45934 +
45935 +/* The number of bytes to put into a word in a listing. This affects
45936 + the way the bytes are clumped together in the listing. For
45937 + example, a value of 2 might print `1234 5678' where a value of 1
45938 + would print `12 34 56 78'. The default value is 4. */
45939 +#define LISTING_WORD_SIZE 4
45940 +
45941 +/* extern const struct relax_type md_relax_table[];
45942 +#define TC_GENERIC_RELAX_TABLE md_relax_table */
45943 +
45944 +/*
45945 + An `.lcomm' directive with no explicit alignment parameter will use
45946 + this macro to set P2VAR to the alignment that a request for SIZE
45947 + bytes will have. The alignment is expressed as a power of two. If
45948 + no alignment should take place, the macro definition should do
45949 + nothing. Some targets define a `.bss' directive that is also
45950 + affected by this macro. The default definition will set P2VAR to
45951 + the truncated power of two of sizes up to eight bytes.
45952 +
45953 + We want doublewords to be word-aligned, so we're going to modify the
45954 + default definition a tiny bit.
45955 +*/
45956 +#define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) \
45957 + do \
45958 + { \
45959 + if ((SIZE) >= 4) \
45960 + (P2VAR) = 2; \
45961 + else if ((SIZE) >= 2) \
45962 + (P2VAR) = 1; \
45963 + else \
45964 + (P2VAR) = 0; \
45965 + } \
45966 + while (0)
45967 +
45968 +/* When relaxing, we need to generate relocations for alignment
45969 + directives. */
45970 +#define HANDLE_ALIGN(frag) avr32_handle_align(frag)
45971 +extern void avr32_handle_align(fragS *);
45972 +
45973 +/* See internals doc for explanation. Oh wait...
45974 + Now, can you guess where "alignment" comes from? ;-) */
45975 +#define MAX_MEM_FOR_RS_ALIGN_CODE ((1 << alignment) - 1)
45976 +
45977 +/* We need to stop gas from reducing certain expressions (e.g. GOT
45978 + references) */
45979 +#define tc_fix_adjustable(fix) avr32_fix_adjustable(fix)
45980 +extern bfd_boolean avr32_fix_adjustable(struct fix *);
45981 +
45982 +/* The linker needs to be passed a little more information when relaxing. */
45983 +#define TC_FORCE_RELOCATION(fix) avr32_force_reloc(fix)
45984 +extern bfd_boolean avr32_force_reloc(struct fix *);
45985 +
45986 +/* I'm tired of working around all the madness in fixup_segment().
45987 + This hook will do basically the same things as the generic code,
45988 + and then it will "goto" right past it. */
45989 +#define TC_VALIDATE_FIX(FIX, SEG, SKIP) \
45990 + do \
45991 + { \
45992 + avr32_process_fixup(FIX, SEG); \
45993 + if (!(FIX)->fx_done) \
45994 + ++seg_reloc_count; \
45995 + goto SKIP; \
45996 + } \
45997 + while (0)
45998 +extern void avr32_process_fixup(struct fix *fixP, segT this_segment);
45999 +
46000 +/* We don't want the gas core to make any assumptions about our way of
46001 + doing linkrelaxing. */
46002 +#define TC_LINKRELAX_FIXUP(SEG) 0
46003 +
46004 +/* ... but we do want it to insert lots of padding. */
46005 +#define LINKER_RELAXING_SHRINKS_ONLY
46006 +
46007 +/* Better do it ourselves, really... */
46008 +#define TC_RELAX_ALIGN(SEG, FRAG, ADDR) avr32_relax_align(SEG, FRAG, ADDR)
46009 +extern relax_addressT
46010 +avr32_relax_align(segT segment, fragS *fragP, relax_addressT address);
46011 +
46012 +/* This is called by write_object_file() just before symbols are
46013 + attempted converted into section symbols. */
46014 +#define tc_frob_file_before_adjust() avr32_frob_file()
46015 +extern void avr32_frob_file(void);
46016 +
46017 +/* If you define this macro, GAS will call it at the end of each input
46018 + file. */
46019 +#define md_cleanup() avr32_cleanup()
46020 +extern void avr32_cleanup(void);
46021 +
46022 +/* There's an AVR32-specific hack in operand() which creates O_md
46023 + expressions when encountering HWRD or LWRD. We need to generate
46024 + proper relocs for them */
46025 +/* #define md_cgen_record_fixup_exp avr32_cgen_record_fixup_exp */
46026 +
46027 +/* I needed to add an extra hook in gas_cgen_finish_insn() for
46028 + conversion of O_md* operands because md_cgen_record_fixup_exp()
46029 + isn't called for relaxable insns */
46030 +/* #define md_cgen_convert_expr(exp, opinfo) avr32_cgen_convert_expr(exp, opinfo)
46031 + int avr32_cgen_convert_expr(expressionS *, int); */
46032 +
46033 +/* #define tc_gen_reloc gas_cgen_tc_gen_reloc */
46034 +
46035 +/* If you define this macro, it should return the position from which
46036 + the PC relative adjustment for a PC relative fixup should be
46037 + made. On many processors, the base of a PC relative instruction is
46038 + the next instruction, so this macro would return the length of an
46039 + instruction, plus the address of the PC relative fixup. The latter
46040 + can be calculated as fixp->fx_where + fixp->fx_frag->fr_address. */
46041 +extern long md_pcrel_from_section (struct fix *, segT);
46042 +#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
46043 +
46044 +#define LOCAL_LABEL(name) (name[0] == '.' && (name[1] == 'L'))
46045 +#define LOCAL_LABELS_FB 1
46046 +
46047 +struct avr32_relaxer
46048 +{
46049 + int (*estimate_size)(fragS *, segT);
46050 + long (*relax_frag)(segT, fragS *, long);
46051 + void (*convert_frag)(bfd *, segT, fragS *);
46052 +};
46053 +
46054 +/* AVR32 has quite complex instruction coding, which means we need
46055 + * lots of information in order to do the right thing during relaxing
46056 + * (basically, we need to be able to reconstruct a whole new opcode if
46057 + * necessary) */
46058 +#define TC_FRAG_TYPE struct avr32_frag_data
46059 +
46060 +struct cpool;
46061 +
46062 +struct avr32_frag_data
46063 +{
46064 + /* TODO: Maybe add an expression object here so that we can use
46065 + fix_new_exp() in md_convert_frag? We may have to decide
46066 + pcrel-ness in md_estimate_size_before_relax() as well...or we
46067 + might do it when parsing. Doing it while parsing may fail
46068 + because the sub_symbol is undefined then... */
46069 + int pcrel;
46070 + int force_extended;
46071 + int reloc_info;
46072 + struct avr32_relaxer *relaxer;
46073 + expressionS exp;
46074 +
46075 + /* Points to associated constant pool, for use by LDA and CALL in
46076 + non-pic mode, and when relaxing the .cpool directive */
46077 + struct cpool *pool;
46078 + unsigned int pool_entry;
46079 +};
46080 +
46081 +/* We will have to initialize the fields explicitly when needed */
46082 +#define TC_FRAG_INIT(fragP)
46083 +
46084 +#define md_estimate_size_before_relax(fragP, segT) \
46085 + ((fragP)->tc_frag_data.relaxer->estimate_size(fragP, segT))
46086 +#define md_relax_frag(segment, fragP, stretch) \
46087 + ((fragP)->tc_frag_data.relaxer->relax_frag(segment, fragP, stretch))
46088 +#define md_convert_frag(abfd, segment, fragP) \
46089 + ((fragP)->tc_frag_data.relaxer->convert_frag(abfd, segment, fragP))
46090 +
46091 +#define TC_FIX_TYPE struct avr32_fix_data
46092 +
46093 +struct avr32_fix_data
46094 +{
46095 + const struct avr32_ifield *ifield;
46096 + unsigned int align;
46097 + long min;
46098 + long max;
46099 +};
46100 +
46101 +#define TC_INIT_FIX_DATA(fixP) \
46102 + do \
46103 + { \
46104 + (fixP)->tc_fix_data.ifield = NULL; \
46105 + (fixP)->tc_fix_data.align = 0; \
46106 + (fixP)->tc_fix_data.min = 0; \
46107 + (fixP)->tc_fix_data.max = 0; \
46108 + } \
46109 + while (0)
46110 --- a/gas/configure.tgt
46111 +++ b/gas/configure.tgt
46112 @@ -33,6 +33,7 @@ case ${cpu} in
46113 am33_2.0) cpu_type=mn10300 endian=little ;;
46114 arm*be|arm*b) cpu_type=arm endian=big ;;
46115 arm*) cpu_type=arm endian=little ;;
46116 + avr32*) cpu_type=avr32 endian=big ;;
46117 bfin*) cpu_type=bfin endian=little ;;
46118 c4x*) cpu_type=tic4x ;;
46119 crisv32) cpu_type=cris arch=crisv32 ;;
46120 @@ -122,6 +123,9 @@ case ${generic_target} in
46121 bfin-*-*) fmt=elf bfd_gas=yes ;;
46122 bfin-*elf) fmt=elf ;;
46123
46124 + avr32-*-linux*) fmt=elf em=linux bfd_gas=yes ;;
46125 + avr32*) fmt=elf bfd_gas=yes ;;
46126 +
46127 cris-*-linux-* | crisv32-*-linux-*)
46128 fmt=multi em=linux ;;
46129 cris-*-* | crisv32-*-*) fmt=multi ;;
46130 --- a/gas/doc/all.texi
46131 +++ b/gas/doc/all.texi
46132 @@ -29,6 +29,7 @@
46133 @set ALPHA
46134 @set ARC
46135 @set ARM
46136 +@set AVR32
46137 @set BFIN
46138 @set CRIS
46139 @set D10V
46140 --- a/gas/doc/as.info
46141 +++ b/gas/doc/as.info
46142 @@ -1,5 +1,7 @@
46143 -This is ../.././gas/doc/as.info, produced by makeinfo version 4.8 from
46144 -../.././gas/doc/as.texinfo.
46145 +This is
46146 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/gas/doc/as.info,
46147 +produced by makeinfo version 4.8 from
46148 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/gas/doc/as.texinfo.
46149
46150 START-INFO-DIR-ENTRY
46151 * As: (as). The GNU assembler.
46152 @@ -17890,463 +17892,463 @@ Index
46153
46154 \1f
46155 Tag Table:
46156 -Node: Top\7f778
46157 -Node: Overview\7f1695
46158 -Node: Manual\7f28187
46159 -Node: GNU Assembler\7f29131
46160 -Node: Object Formats\7f30302
46161 -Node: Command Line\7f30754
46162 -Node: Input Files\7f31841
46163 -Node: Object\7f33822
46164 -Node: Errors\7f34718
46165 -Node: Invoking\7f35913
46166 -Node: a\7f37862
46167 -Node: alternate\7f39634
46168 -Node: D\7f39806
46169 -Node: f\7f40039
46170 -Node: I\7f40547
46171 -Node: K\7f41091
46172 -Node: L\7f41394
46173 -Node: listing\7f42231
46174 -Node: M\7f43823
46175 -Node: MD\7f48224
46176 -Node: o\7f48650
46177 -Node: R\7f49105
46178 -Node: statistics\7f50135
46179 -Node: traditional-format\7f50542
46180 -Node: v\7f51015
46181 -Node: W\7f51290
46182 -Node: Z\7f52197
46183 -Node: Syntax\7f52719
46184 -Node: Preprocessing\7f53310
46185 -Node: Whitespace\7f54873
46186 -Node: Comments\7f55269
46187 -Node: Symbol Intro\7f57422
46188 -Node: Statements\7f58112
46189 -Node: Constants\7f60028
46190 -Node: Characters\7f60659
46191 -Node: Strings\7f61161
46192 -Node: Chars\7f63327
46193 -Node: Numbers\7f64081
46194 -Node: Integers\7f64621
46195 -Node: Bignums\7f65277
46196 -Node: Flonums\7f65633
46197 -Node: Sections\7f67380
46198 -Node: Secs Background\7f67758
46199 -Node: Ld Sections\7f72797
46200 -Node: As Sections\7f75181
46201 -Node: Sub-Sections\7f76091
46202 -Node: bss\7f79238
46203 -Node: Symbols\7f80188
46204 -Node: Labels\7f80836
46205 -Node: Setting Symbols\7f81567
46206 -Node: Symbol Names\7f82063
46207 -Node: Dot\7f86428
46208 -Node: Symbol Attributes\7f86875
46209 -Node: Symbol Value\7f87612
46210 -Node: Symbol Type\7f88657
46211 -Node: a.out Symbols\7f89045
46212 -Node: Symbol Desc\7f89307
46213 -Node: Symbol Other\7f89602
46214 -Node: COFF Symbols\7f89771
46215 -Node: SOM Symbols\7f90444
46216 -Node: Expressions\7f90886
46217 -Node: Empty Exprs\7f91635
46218 -Node: Integer Exprs\7f91982
46219 -Node: Arguments\7f92377
46220 -Node: Operators\7f93483
46221 -Node: Prefix Ops\7f93818
46222 -Node: Infix Ops\7f94146
46223 -Node: Pseudo Ops\7f96536
46224 -Node: Abort\7f101731
46225 -Node: ABORT\7f102136
46226 -Node: Align\7f102323
46227 -Node: Ascii\7f104605
46228 -Node: Asciz\7f104914
46229 -Node: Balign\7f105159
46230 -Node: Byte\7f107022
46231 -Node: Comm\7f107260
46232 -Node: CFI directives\7f108634
46233 -Node: LNS directives\7f110986
46234 -Node: Data\7f113063
46235 -Node: Def\7f113390
46236 -Node: Desc\7f113622
46237 -Node: Dim\7f114122
46238 -Node: Double\7f114379
46239 -Node: Eject\7f114717
46240 -Node: Else\7f114892
46241 -Node: Elseif\7f115188
46242 -Node: End\7f115478
46243 -Node: Endef\7f115693
46244 -Node: Endfunc\7f115870
46245 -Node: Endif\7f116045
46246 -Node: Equ\7f116306
46247 -Node: Equiv\7f116815
46248 -Node: Eqv\7f117371
46249 -Node: Err\7f117735
46250 -Node: Error\7f118046
46251 -Node: Exitm\7f118491
46252 -Node: Extern\7f118660
46253 -Node: Fail\7f118921
46254 -Node: File\7f119366
46255 -Node: Fill\7f119843
46256 -Node: Float\7f120807
46257 -Node: Func\7f121149
46258 -Node: Global\7f121739
46259 -Node: Hidden\7f122489
46260 -Node: hword\7f123068
46261 -Node: Ident\7f123396
46262 -Node: If\7f123970
46263 -Node: Incbin\7f127029
46264 -Node: Include\7f127724
46265 -Node: Int\7f128275
46266 -Node: Internal\7f128656
46267 -Node: Irp\7f129304
46268 -Node: Irpc\7f130201
46269 -Node: Lcomm\7f131118
46270 -Node: Lflags\7f131866
46271 -Node: Line\7f132060
46272 -Node: Linkonce\7f132979
46273 -Node: Ln\7f134208
46274 -Node: MRI\7f134369
46275 -Node: List\7f134707
46276 -Node: Long\7f135315
46277 -Node: Macro\7f135501
46278 -Node: Altmacro\7f140064
46279 -Node: Noaltmacro\7f141394
46280 -Node: Nolist\7f141562
46281 -Node: Octa\7f141992
46282 -Node: Org\7f142326
46283 -Node: P2align\7f143609
46284 -Node: Previous\7f145537
46285 -Node: PopSection\7f146231
46286 -Node: Print\7f146739
46287 -Node: Protected\7f146968
46288 -Node: Psize\7f147615
46289 -Node: Purgem\7f148299
46290 -Node: PushSection\7f148520
46291 -Node: Quad\7f149077
46292 -Node: Rept\7f149532
46293 -Node: Sbttl\7f149945
46294 -Node: Scl\7f150310
46295 -Node: Section\7f150651
46296 -Node: Set\7f155791
46297 -Node: Short\7f156428
46298 -Node: Single\7f156748
46299 -Node: Size\7f157093
46300 -Node: Sleb128\7f157765
46301 -Node: Skip\7f158087
46302 -Node: Space\7f158409
46303 -Node: Stab\7f159048
46304 -Node: String\7f161050
46305 -Node: Struct\7f161476
46306 -Node: SubSection\7f162199
46307 -Node: Symver\7f162760
46308 -Node: Tag\7f165151
46309 -Node: Text\7f165531
46310 -Node: Title\7f165850
46311 -Node: Type\7f166229
46312 -Node: Uleb128\7f167306
46313 -Node: Val\7f167630
46314 -Node: Version\7f167880
46315 -Node: VTableEntry\7f168155
46316 -Node: VTableInherit\7f168445
46317 -Node: Warning\7f168891
46318 -Node: Weak\7f169125
46319 -Node: Weakref\7f169794
46320 -Node: Word\7f170759
46321 -Node: Deprecated\7f172605
46322 -Node: Machine Dependencies\7f172840
46323 -Node: Alpha-Dependent\7f175604
46324 -Node: Alpha Notes\7f176018
46325 -Node: Alpha Options\7f176299
46326 -Node: Alpha Syntax\7f178497
46327 -Node: Alpha-Chars\7f178966
46328 -Node: Alpha-Regs\7f179197
46329 -Node: Alpha-Relocs\7f179584
46330 -Node: Alpha Floating Point\7f185842
46331 -Node: Alpha Directives\7f186064
46332 -Node: Alpha Opcodes\7f191587
46333 -Node: ARC-Dependent\7f191882
46334 -Node: ARC Options\7f192265
46335 -Node: ARC Syntax\7f193334
46336 -Node: ARC-Chars\7f193566
46337 -Node: ARC-Regs\7f193698
46338 -Node: ARC Floating Point\7f193822
46339 -Node: ARC Directives\7f194133
46340 -Node: ARC Opcodes\7f200104
46341 -Node: ARM-Dependent\7f200330
46342 -Node: ARM Options\7f200757
46343 -Node: ARM Syntax\7f206551
46344 -Node: ARM-Chars\7f206783
46345 -Node: ARM-Regs\7f207307
46346 -Node: ARM Floating Point\7f207492
46347 -Node: ARM Directives\7f207691
46348 -Node: ARM Opcodes\7f214055
46349 -Node: ARM Mapping Symbols\7f216143
46350 -Node: BFIN-Dependent\7f216922
46351 -Node: BFIN Syntax\7f217176
46352 -Node: BFIN Directives\7f222873
46353 -Node: CRIS-Dependent\7f223280
46354 -Node: CRIS-Opts\7f223626
46355 -Ref: march-option\7f225244
46356 -Node: CRIS-Expand\7f227061
46357 -Node: CRIS-Symbols\7f228244
46358 -Node: CRIS-Syntax\7f229413
46359 -Node: CRIS-Chars\7f229749
46360 -Node: CRIS-Pic\7f230300
46361 -Ref: crispic\7f230496
46362 -Node: CRIS-Regs\7f234036
46363 -Node: CRIS-Pseudos\7f234453
46364 -Ref: crisnous\7f235229
46365 -Node: D10V-Dependent\7f236511
46366 -Node: D10V-Opts\7f236862
46367 -Node: D10V-Syntax\7f237825
46368 -Node: D10V-Size\7f238354
46369 -Node: D10V-Subs\7f239327
46370 -Node: D10V-Chars\7f240362
46371 -Node: D10V-Regs\7f241966
46372 -Node: D10V-Addressing\7f243011
46373 -Node: D10V-Word\7f243697
46374 -Node: D10V-Float\7f244212
46375 -Node: D10V-Opcodes\7f244523
46376 -Node: D30V-Dependent\7f244916
46377 -Node: D30V-Opts\7f245269
46378 -Node: D30V-Syntax\7f245944
46379 -Node: D30V-Size\7f246476
46380 -Node: D30V-Subs\7f247447
46381 -Node: D30V-Chars\7f248482
46382 -Node: D30V-Guarded\7f250780
46383 -Node: D30V-Regs\7f251460
46384 -Node: D30V-Addressing\7f252599
46385 -Node: D30V-Float\7f253267
46386 -Node: D30V-Opcodes\7f253578
46387 -Node: H8/300-Dependent\7f253971
46388 -Node: H8/300 Options\7f254381
46389 -Node: H8/300 Syntax\7f254590
46390 -Node: H8/300-Chars\7f254889
46391 -Node: H8/300-Regs\7f255186
46392 -Node: H8/300-Addressing\7f256103
46393 -Node: H8/300 Floating Point\7f257142
46394 -Node: H8/300 Directives\7f257467
46395 -Node: H8/300 Opcodes\7f258593
46396 -Node: HPPA-Dependent\7f266913
46397 -Node: HPPA Notes\7f267346
46398 -Node: HPPA Options\7f268102
46399 -Node: HPPA Syntax\7f268295
46400 -Node: HPPA Floating Point\7f269563
46401 -Node: HPPA Directives\7f269767
46402 -Node: HPPA Opcodes\7f278451
46403 -Node: ESA/390-Dependent\7f278708
46404 -Node: ESA/390 Notes\7f279168
46405 -Node: ESA/390 Options\7f279959
46406 -Node: ESA/390 Syntax\7f280169
46407 -Node: ESA/390 Floating Point\7f282342
46408 -Node: ESA/390 Directives\7f282621
46409 -Node: ESA/390 Opcodes\7f285910
46410 -Node: i386-Dependent\7f286172
46411 -Node: i386-Options\7f287240
46412 -Node: i386-Syntax\7f288430
46413 -Node: i386-Mnemonics\7f290844
46414 -Node: i386-Regs\7f293309
46415 -Node: i386-Prefixes\7f295354
46416 -Node: i386-Memory\7f298114
46417 -Node: i386-Jumps\7f301051
46418 -Node: i386-Float\7f302172
46419 -Node: i386-SIMD\7f304001
46420 -Node: i386-16bit\7f305110
46421 -Node: i386-Bugs\7f307148
46422 -Node: i386-Arch\7f307902
46423 -Node: i386-Notes\7f310083
46424 -Node: i860-Dependent\7f310941
46425 -Node: Notes-i860\7f311337
46426 -Node: Options-i860\7f312242
46427 -Node: Directives-i860\7f313605
46428 -Node: Opcodes for i860\7f314674
46429 -Node: i960-Dependent\7f316841
46430 -Node: Options-i960\7f317244
46431 -Node: Floating Point-i960\7f321128
46432 -Node: Directives-i960\7f321396
46433 -Node: Opcodes for i960\7f323430
46434 -Node: callj-i960\7f324047
46435 -Node: Compare-and-branch-i960\7f324536
46436 -Node: IA-64-Dependent\7f326440
46437 -Node: IA-64 Options\7f326741
46438 -Node: IA-64 Syntax\7f329901
46439 -Node: IA-64-Chars\7f330264
46440 -Node: IA-64-Regs\7f330494
46441 -Node: IA-64-Bits\7f331420
46442 -Node: IA-64 Opcodes\7f331929
46443 -Node: IP2K-Dependent\7f332201
46444 -Node: IP2K-Opts\7f332429
46445 -Node: M32C-Dependent\7f332909
46446 -Node: M32C-Opts\7f333433
46447 -Node: M32C-Modifiers\7f333717
46448 -Node: M32R-Dependent\7f335504
46449 -Node: M32R-Opts\7f335825
46450 -Node: M32R-Directives\7f339991
46451 -Node: M32R-Warnings\7f343966
46452 -Node: M68K-Dependent\7f346972
46453 -Node: M68K-Opts\7f347439
46454 -Node: M68K-Syntax\7f354818
46455 -Node: M68K-Moto-Syntax\7f356657
46456 -Node: M68K-Float\7f359246
46457 -Node: M68K-Directives\7f359766
46458 -Node: M68K-opcodes\7f361092
46459 -Node: M68K-Branch\7f361318
46460 -Node: M68K-Chars\7f365516
46461 -Node: M68HC11-Dependent\7f365929
46462 -Node: M68HC11-Opts\7f366460
46463 -Node: M68HC11-Syntax\7f370276
46464 -Node: M68HC11-Modifiers\7f372490
46465 -Node: M68HC11-Directives\7f374318
46466 -Node: M68HC11-Float\7f375694
46467 -Node: M68HC11-opcodes\7f376222
46468 -Node: M68HC11-Branch\7f376404
46469 -Node: MIPS-Dependent\7f378851
46470 -Node: MIPS Opts\7f379941
46471 -Node: MIPS Object\7f387268
46472 -Node: MIPS Stabs\7f388834
46473 -Node: MIPS symbol sizes\7f389556
46474 -Node: MIPS ISA\7f391225
46475 -Node: MIPS autoextend\7f392374
46476 -Node: MIPS insn\7f393104
46477 -Node: MIPS option stack\7f393601
46478 -Node: MIPS ASE instruction generation overrides\7f394375
46479 -Node: MMIX-Dependent\7f395592
46480 -Node: MMIX-Opts\7f395972
46481 -Node: MMIX-Expand\7f399576
46482 -Node: MMIX-Syntax\7f400891
46483 -Ref: mmixsite\7f401248
46484 -Node: MMIX-Chars\7f402089
46485 -Node: MMIX-Symbols\7f402743
46486 -Node: MMIX-Regs\7f404811
46487 -Node: MMIX-Pseudos\7f405836
46488 -Ref: MMIX-loc\7f405977
46489 -Ref: MMIX-local\7f407057
46490 -Ref: MMIX-is\7f407589
46491 -Ref: MMIX-greg\7f407860
46492 -Ref: GREG-base\7f408779
46493 -Ref: MMIX-byte\7f410096
46494 -Ref: MMIX-constants\7f410567
46495 -Ref: MMIX-prefix\7f411213
46496 -Ref: MMIX-spec\7f411587
46497 -Node: MMIX-mmixal\7f411921
46498 -Node: MSP430-Dependent\7f415418
46499 -Node: MSP430 Options\7f415884
46500 -Node: MSP430 Syntax\7f416170
46501 -Node: MSP430-Macros\7f416486
46502 -Node: MSP430-Chars\7f417217
46503 -Node: MSP430-Regs\7f417530
46504 -Node: MSP430-Ext\7f418090
46505 -Node: MSP430 Floating Point\7f419911
46506 -Node: MSP430 Directives\7f420135
46507 -Node: MSP430 Opcodes\7f420926
46508 -Node: MSP430 Profiling Capability\7f421321
46509 -Node: PDP-11-Dependent\7f423650
46510 -Node: PDP-11-Options\7f424039
46511 -Node: PDP-11-Pseudos\7f429110
46512 -Node: PDP-11-Syntax\7f429455
46513 -Node: PDP-11-Mnemonics\7f430206
46514 -Node: PDP-11-Synthetic\7f430508
46515 -Node: PJ-Dependent\7f430726
46516 -Node: PJ Options\7f430951
46517 -Node: PPC-Dependent\7f431228
46518 -Node: PowerPC-Opts\7f431515
46519 -Node: PowerPC-Pseudo\7f433590
46520 -Node: SH-Dependent\7f434189
46521 -Node: SH Options\7f434601
46522 -Node: SH Syntax\7f435529
46523 -Node: SH-Chars\7f435802
46524 -Node: SH-Regs\7f436096
46525 -Node: SH-Addressing\7f436710
46526 -Node: SH Floating Point\7f437619
46527 -Node: SH Directives\7f438713
46528 -Node: SH Opcodes\7f439083
46529 -Node: SH64-Dependent\7f443405
46530 -Node: SH64 Options\7f443768
46531 -Node: SH64 Syntax\7f445485
46532 -Node: SH64-Chars\7f445768
46533 -Node: SH64-Regs\7f446068
46534 -Node: SH64-Addressing\7f447164
46535 -Node: SH64 Directives\7f448347
46536 -Node: SH64 Opcodes\7f449457
46537 -Node: Sparc-Dependent\7f450173
46538 -Node: Sparc-Opts\7f450558
46539 -Node: Sparc-Aligned-Data\7f452815
46540 -Node: Sparc-Float\7f453670
46541 -Node: Sparc-Directives\7f453871
46542 -Node: TIC54X-Dependent\7f455831
46543 -Node: TIC54X-Opts\7f456557
46544 -Node: TIC54X-Block\7f457600
46545 -Node: TIC54X-Env\7f457960
46546 -Node: TIC54X-Constants\7f458308
46547 -Node: TIC54X-Subsyms\7f458710
46548 -Node: TIC54X-Locals\7f460619
46549 -Node: TIC54X-Builtins\7f461363
46550 -Node: TIC54X-Ext\7f463834
46551 -Node: TIC54X-Directives\7f464405
46552 -Node: TIC54X-Macros\7f475307
46553 -Node: TIC54X-MMRegs\7f477417
46554 -Node: Z80-Dependent\7f477633
46555 -Node: Z80 Options\7f478021
46556 -Node: Z80 Syntax\7f479444
46557 -Node: Z80-Chars\7f480116
46558 -Node: Z80-Regs\7f480649
46559 -Node: Z80-Case\7f481001
46560 -Node: Z80 Floating Point\7f481446
46561 -Node: Z80 Directives\7f481640
46562 -Node: Z80 Opcodes\7f483265
46563 -Node: Z8000-Dependent\7f484607
46564 -Node: Z8000 Options\7f485568
46565 -Node: Z8000 Syntax\7f485785
46566 -Node: Z8000-Chars\7f486075
46567 -Node: Z8000-Regs\7f486308
46568 -Node: Z8000-Addressing\7f487098
46569 -Node: Z8000 Directives\7f488215
46570 -Node: Z8000 Opcodes\7f489824
46571 -Node: Vax-Dependent\7f499766
46572 -Node: VAX-Opts\7f500283
46573 -Node: VAX-float\7f504018
46574 -Node: VAX-directives\7f504650
46575 -Node: VAX-opcodes\7f505511
46576 -Node: VAX-branch\7f505900
46577 -Node: VAX-operands\7f508407
46578 -Node: VAX-no\7f509170
46579 -Node: V850-Dependent\7f509407
46580 -Node: V850 Options\7f509805
46581 -Node: V850 Syntax\7f512194
46582 -Node: V850-Chars\7f512434
46583 -Node: V850-Regs\7f512599
46584 -Node: V850 Floating Point\7f514167
46585 -Node: V850 Directives\7f514373
46586 -Node: V850 Opcodes\7f515516
46587 -Node: Xtensa-Dependent\7f521408
46588 -Node: Xtensa Options\7f522137
46589 -Node: Xtensa Syntax\7f524908
46590 -Node: Xtensa Opcodes\7f526797
46591 -Node: Xtensa Registers\7f528591
46592 -Node: Xtensa Optimizations\7f529224
46593 -Node: Density Instructions\7f529676
46594 -Node: Xtensa Automatic Alignment\7f530778
46595 -Node: Xtensa Relaxation\7f533524
46596 -Node: Xtensa Branch Relaxation\7f534432
46597 -Node: Xtensa Call Relaxation\7f535804
46598 -Node: Xtensa Immediate Relaxation\7f537590
46599 -Node: Xtensa Directives\7f540164
46600 -Node: Schedule Directive\7f541872
46601 -Node: Longcalls Directive\7f542212
46602 -Node: Transform Directive\7f542756
46603 -Node: Literal Directive\7f543498
46604 -Node: Literal Position Directive\7f545283
46605 -Node: Literal Prefix Directive\7f546982
46606 -Node: Absolute Literals Directive\7f549145
46607 -Node: Reporting Bugs\7f550452
46608 -Node: Bug Criteria\7f551176
46609 -Node: Bug Reporting\7f551941
46610 -Node: Acknowledgements\7f558574
46611 -Ref: Acknowledgements-Footnote-1\7f563472
46612 -Node: GNU Free Documentation License\7f563498
46613 -Node: Index\7f583225
46614 +Node: Top\7f912
46615 +Node: Overview\7f1829
46616 +Node: Manual\7f28321
46617 +Node: GNU Assembler\7f29265
46618 +Node: Object Formats\7f30436
46619 +Node: Command Line\7f30888
46620 +Node: Input Files\7f31975
46621 +Node: Object\7f33956
46622 +Node: Errors\7f34852
46623 +Node: Invoking\7f36047
46624 +Node: a\7f37996
46625 +Node: alternate\7f39768
46626 +Node: D\7f39940
46627 +Node: f\7f40173
46628 +Node: I\7f40681
46629 +Node: K\7f41225
46630 +Node: L\7f41528
46631 +Node: listing\7f42365
46632 +Node: M\7f43957
46633 +Node: MD\7f48358
46634 +Node: o\7f48784
46635 +Node: R\7f49239
46636 +Node: statistics\7f50269
46637 +Node: traditional-format\7f50676
46638 +Node: v\7f51149
46639 +Node: W\7f51424
46640 +Node: Z\7f52331
46641 +Node: Syntax\7f52853
46642 +Node: Preprocessing\7f53444
46643 +Node: Whitespace\7f55007
46644 +Node: Comments\7f55403
46645 +Node: Symbol Intro\7f57556
46646 +Node: Statements\7f58246
46647 +Node: Constants\7f60162
46648 +Node: Characters\7f60793
46649 +Node: Strings\7f61295
46650 +Node: Chars\7f63461
46651 +Node: Numbers\7f64215
46652 +Node: Integers\7f64755
46653 +Node: Bignums\7f65411
46654 +Node: Flonums\7f65767
46655 +Node: Sections\7f67514
46656 +Node: Secs Background\7f67892
46657 +Node: Ld Sections\7f72931
46658 +Node: As Sections\7f75315
46659 +Node: Sub-Sections\7f76225
46660 +Node: bss\7f79372
46661 +Node: Symbols\7f80322
46662 +Node: Labels\7f80970
46663 +Node: Setting Symbols\7f81701
46664 +Node: Symbol Names\7f82197
46665 +Node: Dot\7f86562
46666 +Node: Symbol Attributes\7f87009
46667 +Node: Symbol Value\7f87746
46668 +Node: Symbol Type\7f88791
46669 +Node: a.out Symbols\7f89179
46670 +Node: Symbol Desc\7f89441
46671 +Node: Symbol Other\7f89736
46672 +Node: COFF Symbols\7f89905
46673 +Node: SOM Symbols\7f90578
46674 +Node: Expressions\7f91020
46675 +Node: Empty Exprs\7f91769
46676 +Node: Integer Exprs\7f92116
46677 +Node: Arguments\7f92511
46678 +Node: Operators\7f93617
46679 +Node: Prefix Ops\7f93952
46680 +Node: Infix Ops\7f94280
46681 +Node: Pseudo Ops\7f96670
46682 +Node: Abort\7f101865
46683 +Node: ABORT\7f102270
46684 +Node: Align\7f102457
46685 +Node: Ascii\7f104739
46686 +Node: Asciz\7f105048
46687 +Node: Balign\7f105293
46688 +Node: Byte\7f107156
46689 +Node: Comm\7f107394
46690 +Node: CFI directives\7f108768
46691 +Node: LNS directives\7f111120
46692 +Node: Data\7f113197
46693 +Node: Def\7f113524
46694 +Node: Desc\7f113756
46695 +Node: Dim\7f114256
46696 +Node: Double\7f114513
46697 +Node: Eject\7f114851
46698 +Node: Else\7f115026
46699 +Node: Elseif\7f115322
46700 +Node: End\7f115612
46701 +Node: Endef\7f115827
46702 +Node: Endfunc\7f116004
46703 +Node: Endif\7f116179
46704 +Node: Equ\7f116440
46705 +Node: Equiv\7f116949
46706 +Node: Eqv\7f117505
46707 +Node: Err\7f117869
46708 +Node: Error\7f118180
46709 +Node: Exitm\7f118625
46710 +Node: Extern\7f118794
46711 +Node: Fail\7f119055
46712 +Node: File\7f119500
46713 +Node: Fill\7f119977
46714 +Node: Float\7f120941
46715 +Node: Func\7f121283
46716 +Node: Global\7f121873
46717 +Node: Hidden\7f122623
46718 +Node: hword\7f123202
46719 +Node: Ident\7f123530
46720 +Node: If\7f124104
46721 +Node: Incbin\7f127163
46722 +Node: Include\7f127858
46723 +Node: Int\7f128409
46724 +Node: Internal\7f128790
46725 +Node: Irp\7f129438
46726 +Node: Irpc\7f130335
46727 +Node: Lcomm\7f131252
46728 +Node: Lflags\7f132000
46729 +Node: Line\7f132194
46730 +Node: Linkonce\7f133113
46731 +Node: Ln\7f134342
46732 +Node: MRI\7f134503
46733 +Node: List\7f134841
46734 +Node: Long\7f135449
46735 +Node: Macro\7f135635
46736 +Node: Altmacro\7f140198
46737 +Node: Noaltmacro\7f141528
46738 +Node: Nolist\7f141696
46739 +Node: Octa\7f142126
46740 +Node: Org\7f142460
46741 +Node: P2align\7f143743
46742 +Node: Previous\7f145671
46743 +Node: PopSection\7f146365
46744 +Node: Print\7f146873
46745 +Node: Protected\7f147102
46746 +Node: Psize\7f147749
46747 +Node: Purgem\7f148433
46748 +Node: PushSection\7f148654
46749 +Node: Quad\7f149211
46750 +Node: Rept\7f149666
46751 +Node: Sbttl\7f150079
46752 +Node: Scl\7f150444
46753 +Node: Section\7f150785
46754 +Node: Set\7f155925
46755 +Node: Short\7f156562
46756 +Node: Single\7f156882
46757 +Node: Size\7f157227
46758 +Node: Sleb128\7f157899
46759 +Node: Skip\7f158221
46760 +Node: Space\7f158543
46761 +Node: Stab\7f159182
46762 +Node: String\7f161184
46763 +Node: Struct\7f161610
46764 +Node: SubSection\7f162333
46765 +Node: Symver\7f162894
46766 +Node: Tag\7f165285
46767 +Node: Text\7f165665
46768 +Node: Title\7f165984
46769 +Node: Type\7f166363
46770 +Node: Uleb128\7f167440
46771 +Node: Val\7f167764
46772 +Node: Version\7f168014
46773 +Node: VTableEntry\7f168289
46774 +Node: VTableInherit\7f168579
46775 +Node: Warning\7f169025
46776 +Node: Weak\7f169259
46777 +Node: Weakref\7f169928
46778 +Node: Word\7f170893
46779 +Node: Deprecated\7f172739
46780 +Node: Machine Dependencies\7f172974
46781 +Node: Alpha-Dependent\7f175738
46782 +Node: Alpha Notes\7f176152
46783 +Node: Alpha Options\7f176433
46784 +Node: Alpha Syntax\7f178631
46785 +Node: Alpha-Chars\7f179100
46786 +Node: Alpha-Regs\7f179331
46787 +Node: Alpha-Relocs\7f179718
46788 +Node: Alpha Floating Point\7f185976
46789 +Node: Alpha Directives\7f186198
46790 +Node: Alpha Opcodes\7f191721
46791 +Node: ARC-Dependent\7f192016
46792 +Node: ARC Options\7f192399
46793 +Node: ARC Syntax\7f193468
46794 +Node: ARC-Chars\7f193700
46795 +Node: ARC-Regs\7f193832
46796 +Node: ARC Floating Point\7f193956
46797 +Node: ARC Directives\7f194267
46798 +Node: ARC Opcodes\7f200238
46799 +Node: ARM-Dependent\7f200464
46800 +Node: ARM Options\7f200891
46801 +Node: ARM Syntax\7f206685
46802 +Node: ARM-Chars\7f206917
46803 +Node: ARM-Regs\7f207441
46804 +Node: ARM Floating Point\7f207626
46805 +Node: ARM Directives\7f207825
46806 +Node: ARM Opcodes\7f214189
46807 +Node: ARM Mapping Symbols\7f216277
46808 +Node: BFIN-Dependent\7f217056
46809 +Node: BFIN Syntax\7f217310
46810 +Node: BFIN Directives\7f223007
46811 +Node: CRIS-Dependent\7f223414
46812 +Node: CRIS-Opts\7f223760
46813 +Ref: march-option\7f225378
46814 +Node: CRIS-Expand\7f227195
46815 +Node: CRIS-Symbols\7f228378
46816 +Node: CRIS-Syntax\7f229547
46817 +Node: CRIS-Chars\7f229883
46818 +Node: CRIS-Pic\7f230434
46819 +Ref: crispic\7f230630
46820 +Node: CRIS-Regs\7f234170
46821 +Node: CRIS-Pseudos\7f234587
46822 +Ref: crisnous\7f235363
46823 +Node: D10V-Dependent\7f236645
46824 +Node: D10V-Opts\7f236996
46825 +Node: D10V-Syntax\7f237959
46826 +Node: D10V-Size\7f238488
46827 +Node: D10V-Subs\7f239461
46828 +Node: D10V-Chars\7f240496
46829 +Node: D10V-Regs\7f242100
46830 +Node: D10V-Addressing\7f243145
46831 +Node: D10V-Word\7f243831
46832 +Node: D10V-Float\7f244346
46833 +Node: D10V-Opcodes\7f244657
46834 +Node: D30V-Dependent\7f245050
46835 +Node: D30V-Opts\7f245403
46836 +Node: D30V-Syntax\7f246078
46837 +Node: D30V-Size\7f246610
46838 +Node: D30V-Subs\7f247581
46839 +Node: D30V-Chars\7f248616
46840 +Node: D30V-Guarded\7f250914
46841 +Node: D30V-Regs\7f251594
46842 +Node: D30V-Addressing\7f252733
46843 +Node: D30V-Float\7f253401
46844 +Node: D30V-Opcodes\7f253712
46845 +Node: H8/300-Dependent\7f254105
46846 +Node: H8/300 Options\7f254515
46847 +Node: H8/300 Syntax\7f254724
46848 +Node: H8/300-Chars\7f255023
46849 +Node: H8/300-Regs\7f255320
46850 +Node: H8/300-Addressing\7f256237
46851 +Node: H8/300 Floating Point\7f257276
46852 +Node: H8/300 Directives\7f257601
46853 +Node: H8/300 Opcodes\7f258727
46854 +Node: HPPA-Dependent\7f267047
46855 +Node: HPPA Notes\7f267480
46856 +Node: HPPA Options\7f268236
46857 +Node: HPPA Syntax\7f268429
46858 +Node: HPPA Floating Point\7f269697
46859 +Node: HPPA Directives\7f269901
46860 +Node: HPPA Opcodes\7f278585
46861 +Node: ESA/390-Dependent\7f278842
46862 +Node: ESA/390 Notes\7f279302
46863 +Node: ESA/390 Options\7f280093
46864 +Node: ESA/390 Syntax\7f280303
46865 +Node: ESA/390 Floating Point\7f282476
46866 +Node: ESA/390 Directives\7f282755
46867 +Node: ESA/390 Opcodes\7f286044
46868 +Node: i386-Dependent\7f286306
46869 +Node: i386-Options\7f287374
46870 +Node: i386-Syntax\7f288564
46871 +Node: i386-Mnemonics\7f290978
46872 +Node: i386-Regs\7f293443
46873 +Node: i386-Prefixes\7f295488
46874 +Node: i386-Memory\7f298248
46875 +Node: i386-Jumps\7f301185
46876 +Node: i386-Float\7f302306
46877 +Node: i386-SIMD\7f304135
46878 +Node: i386-16bit\7f305244
46879 +Node: i386-Bugs\7f307282
46880 +Node: i386-Arch\7f308036
46881 +Node: i386-Notes\7f310217
46882 +Node: i860-Dependent\7f311075
46883 +Node: Notes-i860\7f311471
46884 +Node: Options-i860\7f312376
46885 +Node: Directives-i860\7f313739
46886 +Node: Opcodes for i860\7f314808
46887 +Node: i960-Dependent\7f316975
46888 +Node: Options-i960\7f317378
46889 +Node: Floating Point-i960\7f321262
46890 +Node: Directives-i960\7f321530
46891 +Node: Opcodes for i960\7f323564
46892 +Node: callj-i960\7f324181
46893 +Node: Compare-and-branch-i960\7f324670
46894 +Node: IA-64-Dependent\7f326574
46895 +Node: IA-64 Options\7f326875
46896 +Node: IA-64 Syntax\7f330035
46897 +Node: IA-64-Chars\7f330398
46898 +Node: IA-64-Regs\7f330628
46899 +Node: IA-64-Bits\7f331554
46900 +Node: IA-64 Opcodes\7f332063
46901 +Node: IP2K-Dependent\7f332335
46902 +Node: IP2K-Opts\7f332563
46903 +Node: M32C-Dependent\7f333043
46904 +Node: M32C-Opts\7f333567
46905 +Node: M32C-Modifiers\7f333851
46906 +Node: M32R-Dependent\7f335638
46907 +Node: M32R-Opts\7f335959
46908 +Node: M32R-Directives\7f340125
46909 +Node: M32R-Warnings\7f344100
46910 +Node: M68K-Dependent\7f347106
46911 +Node: M68K-Opts\7f347573
46912 +Node: M68K-Syntax\7f354952
46913 +Node: M68K-Moto-Syntax\7f356791
46914 +Node: M68K-Float\7f359380
46915 +Node: M68K-Directives\7f359900
46916 +Node: M68K-opcodes\7f361226
46917 +Node: M68K-Branch\7f361452
46918 +Node: M68K-Chars\7f365650
46919 +Node: M68HC11-Dependent\7f366063
46920 +Node: M68HC11-Opts\7f366594
46921 +Node: M68HC11-Syntax\7f370410
46922 +Node: M68HC11-Modifiers\7f372624
46923 +Node: M68HC11-Directives\7f374452
46924 +Node: M68HC11-Float\7f375828
46925 +Node: M68HC11-opcodes\7f376356
46926 +Node: M68HC11-Branch\7f376538
46927 +Node: MIPS-Dependent\7f378985
46928 +Node: MIPS Opts\7f380075
46929 +Node: MIPS Object\7f387402
46930 +Node: MIPS Stabs\7f388968
46931 +Node: MIPS symbol sizes\7f389690
46932 +Node: MIPS ISA\7f391359
46933 +Node: MIPS autoextend\7f392508
46934 +Node: MIPS insn\7f393238
46935 +Node: MIPS option stack\7f393735
46936 +Node: MIPS ASE instruction generation overrides\7f394509
46937 +Node: MMIX-Dependent\7f395726
46938 +Node: MMIX-Opts\7f396106
46939 +Node: MMIX-Expand\7f399710
46940 +Node: MMIX-Syntax\7f401025
46941 +Ref: mmixsite\7f401382
46942 +Node: MMIX-Chars\7f402223
46943 +Node: MMIX-Symbols\7f402877
46944 +Node: MMIX-Regs\7f404945
46945 +Node: MMIX-Pseudos\7f405970
46946 +Ref: MMIX-loc\7f406111
46947 +Ref: MMIX-local\7f407191
46948 +Ref: MMIX-is\7f407723
46949 +Ref: MMIX-greg\7f407994
46950 +Ref: GREG-base\7f408913
46951 +Ref: MMIX-byte\7f410230
46952 +Ref: MMIX-constants\7f410701
46953 +Ref: MMIX-prefix\7f411347
46954 +Ref: MMIX-spec\7f411721
46955 +Node: MMIX-mmixal\7f412055
46956 +Node: MSP430-Dependent\7f415552
46957 +Node: MSP430 Options\7f416018
46958 +Node: MSP430 Syntax\7f416304
46959 +Node: MSP430-Macros\7f416620
46960 +Node: MSP430-Chars\7f417351
46961 +Node: MSP430-Regs\7f417664
46962 +Node: MSP430-Ext\7f418224
46963 +Node: MSP430 Floating Point\7f420045
46964 +Node: MSP430 Directives\7f420269
46965 +Node: MSP430 Opcodes\7f421060
46966 +Node: MSP430 Profiling Capability\7f421455
46967 +Node: PDP-11-Dependent\7f423784
46968 +Node: PDP-11-Options\7f424173
46969 +Node: PDP-11-Pseudos\7f429244
46970 +Node: PDP-11-Syntax\7f429589
46971 +Node: PDP-11-Mnemonics\7f430340
46972 +Node: PDP-11-Synthetic\7f430642
46973 +Node: PJ-Dependent\7f430860
46974 +Node: PJ Options\7f431085
46975 +Node: PPC-Dependent\7f431362
46976 +Node: PowerPC-Opts\7f431649
46977 +Node: PowerPC-Pseudo\7f433724
46978 +Node: SH-Dependent\7f434323
46979 +Node: SH Options\7f434735
46980 +Node: SH Syntax\7f435663
46981 +Node: SH-Chars\7f435936
46982 +Node: SH-Regs\7f436230
46983 +Node: SH-Addressing\7f436844
46984 +Node: SH Floating Point\7f437753
46985 +Node: SH Directives\7f438847
46986 +Node: SH Opcodes\7f439217
46987 +Node: SH64-Dependent\7f443539
46988 +Node: SH64 Options\7f443902
46989 +Node: SH64 Syntax\7f445619
46990 +Node: SH64-Chars\7f445902
46991 +Node: SH64-Regs\7f446202
46992 +Node: SH64-Addressing\7f447298
46993 +Node: SH64 Directives\7f448481
46994 +Node: SH64 Opcodes\7f449591
46995 +Node: Sparc-Dependent\7f450307
46996 +Node: Sparc-Opts\7f450692
46997 +Node: Sparc-Aligned-Data\7f452949
46998 +Node: Sparc-Float\7f453804
46999 +Node: Sparc-Directives\7f454005
47000 +Node: TIC54X-Dependent\7f455965
47001 +Node: TIC54X-Opts\7f456691
47002 +Node: TIC54X-Block\7f457734
47003 +Node: TIC54X-Env\7f458094
47004 +Node: TIC54X-Constants\7f458442
47005 +Node: TIC54X-Subsyms\7f458844
47006 +Node: TIC54X-Locals\7f460753
47007 +Node: TIC54X-Builtins\7f461497
47008 +Node: TIC54X-Ext\7f463968
47009 +Node: TIC54X-Directives\7f464539
47010 +Node: TIC54X-Macros\7f475441
47011 +Node: TIC54X-MMRegs\7f477551
47012 +Node: Z80-Dependent\7f477767
47013 +Node: Z80 Options\7f478155
47014 +Node: Z80 Syntax\7f479578
47015 +Node: Z80-Chars\7f480250
47016 +Node: Z80-Regs\7f480783
47017 +Node: Z80-Case\7f481135
47018 +Node: Z80 Floating Point\7f481580
47019 +Node: Z80 Directives\7f481774
47020 +Node: Z80 Opcodes\7f483399
47021 +Node: Z8000-Dependent\7f484741
47022 +Node: Z8000 Options\7f485702
47023 +Node: Z8000 Syntax\7f485919
47024 +Node: Z8000-Chars\7f486209
47025 +Node: Z8000-Regs\7f486442
47026 +Node: Z8000-Addressing\7f487232
47027 +Node: Z8000 Directives\7f488349
47028 +Node: Z8000 Opcodes\7f489958
47029 +Node: Vax-Dependent\7f499900
47030 +Node: VAX-Opts\7f500417
47031 +Node: VAX-float\7f504152
47032 +Node: VAX-directives\7f504784
47033 +Node: VAX-opcodes\7f505645
47034 +Node: VAX-branch\7f506034
47035 +Node: VAX-operands\7f508541
47036 +Node: VAX-no\7f509304
47037 +Node: V850-Dependent\7f509541
47038 +Node: V850 Options\7f509939
47039 +Node: V850 Syntax\7f512328
47040 +Node: V850-Chars\7f512568
47041 +Node: V850-Regs\7f512733
47042 +Node: V850 Floating Point\7f514301
47043 +Node: V850 Directives\7f514507
47044 +Node: V850 Opcodes\7f515650
47045 +Node: Xtensa-Dependent\7f521542
47046 +Node: Xtensa Options\7f522271
47047 +Node: Xtensa Syntax\7f525042
47048 +Node: Xtensa Opcodes\7f526931
47049 +Node: Xtensa Registers\7f528725
47050 +Node: Xtensa Optimizations\7f529358
47051 +Node: Density Instructions\7f529810
47052 +Node: Xtensa Automatic Alignment\7f530912
47053 +Node: Xtensa Relaxation\7f533658
47054 +Node: Xtensa Branch Relaxation\7f534566
47055 +Node: Xtensa Call Relaxation\7f535938
47056 +Node: Xtensa Immediate Relaxation\7f537724
47057 +Node: Xtensa Directives\7f540298
47058 +Node: Schedule Directive\7f542006
47059 +Node: Longcalls Directive\7f542346
47060 +Node: Transform Directive\7f542890
47061 +Node: Literal Directive\7f543632
47062 +Node: Literal Position Directive\7f545417
47063 +Node: Literal Prefix Directive\7f547116
47064 +Node: Absolute Literals Directive\7f549279
47065 +Node: Reporting Bugs\7f550586
47066 +Node: Bug Criteria\7f551310
47067 +Node: Bug Reporting\7f552075
47068 +Node: Acknowledgements\7f558708
47069 +Ref: Acknowledgements-Footnote-1\7f563606
47070 +Node: GNU Free Documentation License\7f563632
47071 +Node: Index\7f583359
47072 \1f
47073 End Tag Table
47074 --- a/gas/doc/as.texinfo
47075 +++ b/gas/doc/as.texinfo
47076 @@ -6182,6 +6182,9 @@ subject, see the hardware manufacturer's
47077 @ifset ARM
47078 * ARM-Dependent:: ARM Dependent Features
47079 @end ifset
47080 +@ifset AVR32
47081 +* AVR32-Dependent:: AVR32 Dependent Features
47082 +@end ifset
47083 @ifset BFIN
47084 * BFIN-Dependent:: BFIN Dependent Features
47085 @end ifset
47086 @@ -6298,6 +6301,10 @@ subject, see the hardware manufacturer's
47087 @include c-arm.texi
47088 @end ifset
47089
47090 +@ifset AVR32
47091 +@include c-avr32.texi
47092 +@end ifset
47093 +
47094 @ifset BFIN
47095 @include c-bfin.texi
47096 @end ifset
47097 --- /dev/null
47098 +++ b/gas/doc/c-avr32.texi
47099 @@ -0,0 +1,254 @@
47100 +@c Copyright 2005, 2006
47101 +@c Atmel Corporation
47102 +@c This is part of the GAS manual.
47103 +@c For copying conditions, see the file as.texinfo.
47104 +
47105 +@ifset GENERIC
47106 +@page
47107 +@node AVR32-Dependent
47108 +@chapter AVR32 Dependent Features
47109 +@end ifset
47110 +
47111 +@ifclear GENERIC
47112 +@node Machine Dependencies
47113 +@chapter AVR32 Dependent Features
47114 +@end ifclear
47115 +
47116 +@cindex AVR32 support
47117 +@menu
47118 +* AVR32 Options:: Options
47119 +* AVR32 Syntax:: Syntax
47120 +* AVR32 Directives:: Directives
47121 +* AVR32 Opcodes:: Opcodes
47122 +@end menu
47123 +
47124 +@node AVR32 Options
47125 +@section Options
47126 +@cindex AVR32 options
47127 +@cindex options for AVR32
47128 +
47129 +There are currently no AVR32-specific options. However, the following
47130 +options are planned:
47131 +
47132 +@table @code
47133 +
47134 +@cindex @code{--pic} command line option, AVR32
47135 +@cindex PIC code generation for AVR32
47136 +@item --pic
47137 +This option specifies that the output of the assembler should be marked
47138 +as position-independent code (PIC). It will also ensure that
47139 +pseudo-instructions that deal with address calculation are output as
47140 +PIC, and that all absolute address references in the code are marked as
47141 +such.
47142 +
47143 +@cindex @code{--linkrelax} command line option, AVR32
47144 +@item --linkrelax
47145 +This option specifies that the output of the assembler should be marked
47146 +as linker-relaxable. It will also ensure that all PC-relative operands
47147 +that may change during linker relaxation get appropriate relocations.
47148 +
47149 +@cindex @code{--direct-data-refs} command line option, AVR32
47150 +@item --direct-data-refs
47151 +This option allows direct references (i.e. mov or sub) to the
47152 +data section. This is default not allowed because the actual distance may
47153 +change after the optimization passes are complete and the address and
47154 +size of all sections are considered known.
47155 +
47156 +@end table
47157 +
47158 +
47159 +@node AVR32 Syntax
47160 +@section Syntax
47161 +@menu
47162 +* AVR32-Chars:: Special Characters
47163 +* AVR32-Symrefs:: Symbol references
47164 +@end menu
47165 +
47166 +@node AVR32-Chars
47167 +@subsection Special Characters
47168 +
47169 +@cindex line comment character, AVR32
47170 +@cindex AVR32 line comment character
47171 +The presence of a @samp{//} on a line indicates the start of a comment
47172 +that extends to the end of the current line. If a @samp{#} appears as
47173 +the first character of a line, the whole line is treated as a comment.
47174 +
47175 +@cindex line separator, AVR32
47176 +@cindex statement separator, AVR32
47177 +@cindex AVR32 line separator
47178 +The @samp{;} character can be used instead of a newline to separate
47179 +statements.
47180 +
47181 +@node AVR32-Symrefs
47182 +@subsection Symbol references
47183 +
47184 +The absolute value of a symbol can be obtained by simply naming the
47185 +symbol. However, as AVR32 symbols have 32-bit values, most symbols have
47186 +values that are outside the range of any instructions.
47187 +
47188 +Instructions that take a PC-relative offset, e.g. @code{lddpc} or
47189 +@code{rcall}, can also reference a symbol by simply naming the symbol
47190 +(no explicit calculations necessary). In this case, the assembler or
47191 +linker subtracts the address of the instruction from the symbol's value
47192 +and inserts the result into the instruction. Note that even though an
47193 +overflow is less likely to happen for a relative reference than for an
47194 +absolute reference, the assembler or linker will generate an error if
47195 +the referenced symbol is too far away from the current location.
47196 +
47197 +Relative references can be used for data as well. For example:
47198 +
47199 +@smallexample
47200 + lddpc r0, 2f
47201 +1: add r0, pc
47202 + ...
47203 + .align 2
47204 +2: .int @var{some_symbol} - 1b
47205 +@end smallexample
47206 +
47207 +Here, r0 will end up with the run-time address of @var{some_symbol} even
47208 +if the program was loaded at a different address than it was linked
47209 +(position-independent code).
47210 +
47211 +@subsubsection Symbol modifiers
47212 +
47213 +@table @code
47214 +
47215 +@item @code{hi(@var{symbol})}
47216 +Evaluates to the value of the symbol shifted right 16 bits. This will
47217 +work even if @var{symbol} is defined in a different module.
47218 +
47219 +@item @code{lo(@var{symbol})}
47220 +Evaluates to the low 16 bits of the symbol's value. This will work even
47221 +if @var{symbol} is defined in a different module.
47222 +
47223 +@item @code{@var{symbol}@@got}
47224 +Create a GOT entry for @var{symbol} and return the offset of that entry
47225 +relative to the GOT base.
47226 +
47227 +@end table
47228 +
47229 +
47230 +@node AVR32 Directives
47231 +@section Directives
47232 +@cindex machine directives, AVR32
47233 +@cindex AVR32 directives
47234 +
47235 +@table @code
47236 +
47237 +@cindex @code{.cpool} directive, AVR32
47238 +@item .cpool
47239 +This directive causes the current contents of the constant pool to be
47240 +dumped into the current section at the current location (aligned to a
47241 +word boundary). @code{GAS} maintains a separate constant pool for each
47242 +section and each sub-section. The @code{.cpool} directive will only
47243 +affect the constant pool of the current section and sub-section. At the
47244 +end of assembly, all remaining, non-empty constant pools will
47245 +automatically be dumped.
47246 +
47247 +@end table
47248 +
47249 +
47250 +@node AVR32 Opcodes
47251 +@section Opcodes
47252 +@cindex AVR32 opcodes
47253 +@cindex opcodes for AVR32
47254 +
47255 +@code{@value{AS}} implements all the standard AVR32 opcodes. It also
47256 +implements several pseudo-opcodes, which are recommended to use wherever
47257 +possible because they give the tool chain better freedom to generate
47258 +optimal code.
47259 +
47260 +@table @code
47261 +
47262 +@cindex @code{LDA.W reg, symbol} pseudo op, AVR32
47263 +@item LDA.W
47264 +@smallexample
47265 + lda.w @var{reg}, @var{symbol}
47266 +@end smallexample
47267 +
47268 +This instruction will load the address of @var{symbol} into
47269 +@var{reg}. The instruction will evaluate to one of the following,
47270 +depending on the relative distance to the symbol, the relative distance
47271 +to the constant pool and whether the @code{--pic} option has been
47272 +specified. If the @code{--pic} option has not been specified, the
47273 +alternatives are as follows:
47274 +@smallexample
47275 + /* @var{symbol} evaluates to a small enough value */
47276 + mov @var{reg}, @var{symbol}
47277 +
47278 + /* (. - @var{symbol}) evaluates to a small enough value */
47279 + sub @var{reg}, pc, . - @var{symbol}
47280 +
47281 + /* Constant pool is close enough */
47282 + lddpc @var{reg}, @var{cpent}
47283 + ...
47284 +@var{cpent}:
47285 + .long @var{symbol}
47286 +
47287 + /* Otherwise (not implemented yet, probably not necessary) */
47288 + mov @var{reg}, lo(@var{symbol})
47289 + orh @var{reg}, hi(@var{symbol})
47290 +@end smallexample
47291 +
47292 +If the @code{--pic} option has been specified, the alternatives are as
47293 +follows:
47294 +@smallexample
47295 + /* (. - @var{symbol}) evaluates to a small enough value */
47296 + sub @var{reg}, pc, . - @var{symbol}
47297 +
47298 + /* If @code{--linkrelax} not specified */
47299 + ld.w @var{reg}, r6[@var{symbol}@@got]
47300 +
47301 + /* Otherwise */
47302 + mov @var{reg}, @var{symbol}@@got / 4
47303 + ld.w @var{reg}, r6[@var{reg} << 2]
47304 +@end smallexample
47305 +
47306 +If @var{symbol} is not defined in the same file and section as the
47307 +@code{LDA.W} instruction, the most pessimistic alternative of the
47308 +above is selected. The linker may convert it back into the most
47309 +optimal alternative when the final value of all symbols is known.
47310 +
47311 +@cindex @code{CALL symbol} pseudo op, AVR32
47312 +@item CALL
47313 +@smallexample
47314 + call @var{symbol}
47315 +@end smallexample
47316 +
47317 +This instruction will insert code to call the subroutine identified by
47318 +@var{symbol}. It will evaluate to one of the following, depending on
47319 +the relative distance to the symbol as well as the @code{--linkrelax}
47320 +and @code{--pic} command-line options.
47321 +
47322 +If @var{symbol} is defined in the same section and input file, and the
47323 +distance is small enough, an @code{rcall} instruction is inserted:
47324 +@smallexample
47325 + rcall @var{symbol}
47326 +@end smallexample
47327 +
47328 +Otherwise, if the @code{--pic} option has not been specified:
47329 +@smallexample
47330 + mcall @var{cpent}
47331 + ...
47332 +@var{cpent}:
47333 + .long @var{symbol}
47334 +@end smallexample
47335 +
47336 +Finally, if nothing else fits and the @code{--pic} option has been
47337 +specified, the assembler will indirect the call through the Global
47338 +Offset Table:
47339 +@smallexample
47340 + /* If @code{--linkrelax} not specified */
47341 + mcall r6[@var{symbol}@@got]
47342 +
47343 + /* If @code{--linkrelax} specified */
47344 + mov lr, @var{symbol}@@got / 4
47345 + ld.w lr, r6[lr << 2]
47346 + icall lr
47347 +@end smallexample
47348 +
47349 +The linker, after determining the final value of @var{symbol}, may
47350 +convert any of these into more optimal alternatives. This includes
47351 +deleting any superfluous constant pool- and GOT-entries.
47352 +
47353 +@end table
47354 --- a/gas/doc/Makefile.am
47355 +++ b/gas/doc/Makefile.am
47356 @@ -29,6 +29,7 @@ CPU_DOCS = \
47357 c-alpha.texi \
47358 c-arc.texi \
47359 c-arm.texi \
47360 + c-avr32.texi \
47361 c-bfin.texi \
47362 c-d10v.texi \
47363 c-cris.texi \
47364 --- a/gas/Makefile.am
47365 +++ b/gas/Makefile.am
47366 @@ -45,6 +45,7 @@ CPU_TYPES = \
47367 arc \
47368 arm \
47369 avr \
47370 + avr32 \
47371 bfin \
47372 cris \
47373 crx \
47374 @@ -229,6 +230,7 @@ TARGET_CPU_CFILES = \
47375 config/tc-arc.c \
47376 config/tc-arm.c \
47377 config/tc-avr.c \
47378 + config/tc-avr32.c \
47379 config/tc-bfin.c \
47380 config/tc-cris.c \
47381 config/tc-crx.c \
47382 @@ -280,6 +282,7 @@ TARGET_CPU_HFILES = \
47383 config/tc-arc.h \
47384 config/tc-arm.h \
47385 config/tc-avr.h \
47386 + config/tc-avr32.h \
47387 config/tc-bfin.h \
47388 config/tc-cris.h \
47389 config/tc-crx.h \
47390 @@ -1046,6 +1049,11 @@ DEPTC_avr_elf = $(INCDIR)/symcat.h $(src
47391 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr.h \
47392 dwarf2dbg.h $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47393 $(INCDIR)/opcode/avr.h
47394 +DEPTC_avr32_elf = $(INCDIR)/symcat.h $(srcdir)/config/obj-elf.h \
47395 + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47396 + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr32.h \
47397 + $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47398 + $(srcdir)/../opcodes/avr32-opc.h $(srcdir)/../opcodes/avr32-asm.h
47399 DEPTC_bfin_coff = $(INCDIR)/symcat.h $(srcdir)/config/obj-coff.h \
47400 $(srcdir)/config/tc-bfin.h $(INCDIR)/coff/internal.h \
47401 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h struc-symbol.h \
47402 @@ -1628,6 +1636,11 @@ DEPOBJ_bfin_elf = $(INCDIR)/symcat.h $(s
47403 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h \
47404 dwarf2dbg.h $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47405 struc-symbol.h $(INCDIR)/aout/aout64.h
47406 +DEPOBJ_avr32_elf = $(INCDIR)/symcat.h $(srcdir)/config/obj-elf.h \
47407 + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47408 + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr32.h \
47409 + $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47410 + struc-symbol.h dwarf2dbg.h
47411 DEPOBJ_cris_aout = $(INCDIR)/symcat.h $(srcdir)/config/obj-aout.h \
47412 $(srcdir)/config/tc-cris.h $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h \
47413 $(INCDIR)/aout/aout64.h $(INCDIR)/obstack.h
47414 @@ -2095,6 +2108,9 @@ DEP_bfin_elf = $(srcdir)/config/obj-elf.
47415 $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47416 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h \
47417 dwarf2dbg.h
47418 +DEP_avr32_elf = $(srcdir)/config/obj-elf.h $(INCDIR)/symcat.h \
47419 + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47420 + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr32.h
47421 DEP_cris_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-cris.h \
47422 $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h
47423 DEP_cris_elf = $(srcdir)/config/obj-elf.h $(INCDIR)/symcat.h \
47424 --- /dev/null
47425 +++ b/gas/testsuite/gas/avr32/aliases.d
47426 @@ -0,0 +1,19 @@
47427 +#as:
47428 +#objdump: -dr
47429 +#name: aliases
47430 +
47431 +.*: +file format .*
47432 +
47433 +Disassembly of section \.text:
47434 +
47435 +00000000 <ld_nodisp>:
47436 + 0: 19 80 [ \t]+ld\.ub r0,r12\[0x0\]
47437 + 2: f9 20 00 00[ \t]+ld\.sb r0,r12\[0\]
47438 + 6: 98 80 [ \t]+ld\.uh r0,r12\[0x0\]
47439 + 8: 98 00 [ \t]+ld\.sh r0,r12\[0x0\]
47440 + a: 78 00 [ \t]+ld\.w r0,r12\[0x0\]
47441 +
47442 +0000000c <st_nodisp>:
47443 + c: b8 80 [ \t]+st\.b r12\[0x0\],r0
47444 + e: b8 00 [ \t]+st\.h r12\[0x0\],r0
47445 + 10: 99 00 [ \t]+st\.w r12\[0x0\],r0
47446 --- /dev/null
47447 +++ b/gas/testsuite/gas/avr32/aliases.s
47448 @@ -0,0 +1,14 @@
47449 + .text
47450 + .global ld_nodisp
47451 +ld_nodisp:
47452 + ld.ub r0, r12
47453 + ld.sb r0, r12
47454 + ld.uh r0, r12
47455 + ld.sh r0, r12
47456 + ld.w r0, r12
47457 +
47458 + .global st_nodisp
47459 +st_nodisp:
47460 + st.b r12, r0
47461 + st.h r12, r0
47462 + st.w r12, r0
47463 --- /dev/null
47464 +++ b/gas/testsuite/gas/avr32/allinsn.d
47465 @@ -0,0 +1,2900 @@
47466 +#as:
47467 +#objdump: -dr
47468 +#name: allinsn
47469 +
47470 +.*: +file format .*
47471 +
47472 +Disassembly of section \.text:
47473 +
47474 +[0-9a-f]* <ld_d5>:
47475 + *[0-9a-f]*: fe 0f 02 3e ld\.d lr,pc\[pc<<0x3\]
47476 + *[0-9a-f]*: e0 00 02 00 ld\.d r0,r0\[r0\]
47477 + *[0-9a-f]*: ea 05 02 26 ld\.d r6,r5\[r5<<0x2\]
47478 + *[0-9a-f]*: e8 04 02 14 ld\.d r4,r4\[r4<<0x1\]
47479 + *[0-9a-f]*: fc 0e 02 1e ld\.d lr,lr\[lr<<0x1\]
47480 + *[0-9a-f]*: e6 0d 02 2a ld\.d r10,r3\[sp<<0x2\]
47481 + *[0-9a-f]*: f4 06 02 28 ld\.d r8,r10\[r6<<0x2\]
47482 + *[0-9a-f]*: ee 09 02 02 ld\.d r2,r7\[r9\]
47483 +
47484 +[0-9a-f]* <ld_w5>:
47485 + *[0-9a-f]*: fe 0f 03 0f ld\.w pc,pc\[pc\]
47486 + *[0-9a-f]*: f8 0c 03 3c ld\.w r12,r12\[r12<<0x3\]
47487 + *[0-9a-f]*: ea 05 03 25 ld\.w r5,r5\[r5<<0x2\]
47488 + *[0-9a-f]*: e8 04 03 14 ld\.w r4,r4\[r4<<0x1\]
47489 + *[0-9a-f]*: fc 0e 03 1e ld\.w lr,lr\[lr<<0x1\]
47490 + *[0-9a-f]*: f2 09 03 02 ld\.w r2,r9\[r9\]
47491 + *[0-9a-f]*: e4 06 03 0b ld\.w r11,r2\[r6\]
47492 + *[0-9a-f]*: e4 0d 03 30 ld\.w r0,r2\[sp<<0x3\]
47493 +
47494 +[0-9a-f]* <ld_sh5>:
47495 + *[0-9a-f]*: fe 0f 04 0f ld\.sh pc,pc\[pc\]
47496 + *[0-9a-f]*: f8 0c 04 3c ld\.sh r12,r12\[r12<<0x3\]
47497 + *[0-9a-f]*: ea 05 04 25 ld\.sh r5,r5\[r5<<0x2\]
47498 + *[0-9a-f]*: e8 04 04 14 ld\.sh r4,r4\[r4<<0x1\]
47499 + *[0-9a-f]*: fc 0e 04 1e ld\.sh lr,lr\[lr<<0x1\]
47500 + *[0-9a-f]*: e0 0f 04 2b ld\.sh r11,r0\[pc<<0x2\]
47501 + *[0-9a-f]*: fa 06 04 2a ld\.sh r10,sp\[r6<<0x2\]
47502 + *[0-9a-f]*: e4 02 04 0c ld\.sh r12,r2\[r2\]
47503 +
47504 +[0-9a-f]* <ld_uh5>:
47505 + *[0-9a-f]*: fe 0f 05 0f ld\.uh pc,pc\[pc\]
47506 + *[0-9a-f]*: f8 0c 05 3c ld\.uh r12,r12\[r12<<0x3\]
47507 + *[0-9a-f]*: ea 05 05 25 ld\.uh r5,r5\[r5<<0x2\]
47508 + *[0-9a-f]*: e8 04 05 14 ld\.uh r4,r4\[r4<<0x1\]
47509 + *[0-9a-f]*: fc 0e 05 1e ld\.uh lr,lr\[lr<<0x1\]
47510 + *[0-9a-f]*: fe 0e 05 38 ld\.uh r8,pc\[lr<<0x3\]
47511 + *[0-9a-f]*: e2 0f 05 16 ld\.uh r6,r1\[pc<<0x1\]
47512 + *[0-9a-f]*: fc 0d 05 16 ld\.uh r6,lr\[sp<<0x1\]
47513 +
47514 +[0-9a-f]* <ld_sb2>:
47515 + *[0-9a-f]*: fe 0f 06 0f ld\.sb pc,pc\[pc\]
47516 + *[0-9a-f]*: f8 0c 06 3c ld\.sb r12,r12\[r12<<0x3\]
47517 + *[0-9a-f]*: ea 05 06 25 ld\.sb r5,r5\[r5<<0x2\]
47518 + *[0-9a-f]*: e8 04 06 14 ld\.sb r4,r4\[r4<<0x1\]
47519 + *[0-9a-f]*: fc 0e 06 1e ld\.sb lr,lr\[lr<<0x1\]
47520 + *[0-9a-f]*: e2 0f 06 39 ld\.sb r9,r1\[pc<<0x3\]
47521 + *[0-9a-f]*: e6 0b 06 10 ld\.sb r0,r3\[r11<<0x1\]
47522 + *[0-9a-f]*: ea 05 06 1a ld\.sb r10,r5\[r5<<0x1\]
47523 +
47524 +[0-9a-f]* <ld_ub5>:
47525 + *[0-9a-f]*: fe 0f 07 0f ld\.ub pc,pc\[pc\]
47526 + *[0-9a-f]*: f8 0c 07 3c ld\.ub r12,r12\[r12<<0x3\]
47527 + *[0-9a-f]*: ea 05 07 25 ld\.ub r5,r5\[r5<<0x2\]
47528 + *[0-9a-f]*: e8 04 07 14 ld\.ub r4,r4\[r4<<0x1\]
47529 + *[0-9a-f]*: fc 0e 07 1e ld\.ub lr,lr\[lr<<0x1\]
47530 + *[0-9a-f]*: f8 07 07 36 ld\.ub r6,r12\[r7<<0x3\]
47531 + *[0-9a-f]*: ec 0c 07 02 ld\.ub r2,r6\[r12\]
47532 + *[0-9a-f]*: ee 0b 07 10 ld\.ub r0,r7\[r11<<0x1\]
47533 +
47534 +[0-9a-f]* <st_d5>:
47535 + *[0-9a-f]*: fe 0f 08 0e st\.d pc\[pc\],lr
47536 + *[0-9a-f]*: f8 0c 08 3c st\.d r12\[r12<<0x3\],r12
47537 + *[0-9a-f]*: ea 05 08 26 st\.d r5\[r5<<0x2\],r6
47538 + *[0-9a-f]*: e8 04 08 14 st\.d r4\[r4<<0x1\],r4
47539 + *[0-9a-f]*: fc 0e 08 1e st\.d lr\[lr<<0x1\],lr
47540 + *[0-9a-f]*: e2 09 08 14 st\.d r1\[r9<<0x1\],r4
47541 + *[0-9a-f]*: f4 02 08 14 st\.d r10\[r2<<0x1\],r4
47542 + *[0-9a-f]*: f8 06 08 0e st\.d r12\[r6\],lr
47543 +
47544 +[0-9a-f]* <st_w5>:
47545 + *[0-9a-f]*: fe 0f 09 0f st\.w pc\[pc\],pc
47546 + *[0-9a-f]*: f8 0c 09 3c st\.w r12\[r12<<0x3\],r12
47547 + *[0-9a-f]*: ea 05 09 25 st\.w r5\[r5<<0x2\],r5
47548 + *[0-9a-f]*: e8 04 09 14 st\.w r4\[r4<<0x1\],r4
47549 + *[0-9a-f]*: fc 0e 09 1e st\.w lr\[lr<<0x1\],lr
47550 + *[0-9a-f]*: e2 0a 09 03 st\.w r1\[r10\],r3
47551 + *[0-9a-f]*: e0 0a 09 19 st\.w r0\[r10<<0x1\],r9
47552 + *[0-9a-f]*: e8 05 09 3f st\.w r4\[r5<<0x3\],pc
47553 +
47554 +[0-9a-f]* <st_h5>:
47555 + *[0-9a-f]*: fe 0f 0a 0f st\.h pc\[pc\],pc
47556 + *[0-9a-f]*: f8 0c 0a 3c st\.h r12\[r12<<0x3\],r12
47557 + *[0-9a-f]*: ea 05 0a 25 st\.h r5\[r5<<0x2\],r5
47558 + *[0-9a-f]*: e8 04 0a 14 st\.h r4\[r4<<0x1\],r4
47559 + *[0-9a-f]*: fc 0e 0a 1e st\.h lr\[lr<<0x1\],lr
47560 + *[0-9a-f]*: e4 09 0a 0b st\.h r2\[r9\],r11
47561 + *[0-9a-f]*: ea 01 0a 2c st\.h r5\[r1<<0x2\],r12
47562 + *[0-9a-f]*: fe 08 0a 23 st\.h pc\[r8<<0x2\],r3
47563 +
47564 +[0-9a-f]* <st_b5>:
47565 + *[0-9a-f]*: fe 0f 0b 0f st\.b pc\[pc\],pc
47566 + *[0-9a-f]*: f8 0c 0b 3c st\.b r12\[r12<<0x3\],r12
47567 + *[0-9a-f]*: ea 05 0b 25 st\.b r5\[r5<<0x2\],r5
47568 + *[0-9a-f]*: e8 04 0b 14 st\.b r4\[r4<<0x1\],r4
47569 + *[0-9a-f]*: fc 0e 0b 1e st\.b lr\[lr<<0x1\],lr
47570 + *[0-9a-f]*: e2 08 0b 16 st\.b r1\[r8<<0x1\],r6
47571 + *[0-9a-f]*: fc 0e 0b 31 st\.b lr\[lr<<0x3\],r1
47572 + *[0-9a-f]*: ea 00 0b 2f st\.b r5\[r0<<0x2\],pc
47573 +
47574 +[0-9a-f]* <divs>:
47575 + *[0-9a-f]*: fe 0f 0c 0f divs pc,pc,pc
47576 + *[0-9a-f]*: f8 0c 0c 0c divs r12,r12,r12
47577 + *[0-9a-f]*: ea 05 0c 05 divs r5,r5,r5
47578 + *[0-9a-f]*: e8 04 0c 04 divs r4,r4,r4
47579 + *[0-9a-f]*: fc 0e 0c 0e divs lr,lr,lr
47580 + *[0-9a-f]*: fe 0f 0c 03 divs r3,pc,pc
47581 + *[0-9a-f]*: f8 02 0c 09 divs r9,r12,r2
47582 + *[0-9a-f]*: e8 01 0c 07 divs r7,r4,r1
47583 +
47584 +[0-9a-f]* <add1>:
47585 + *[0-9a-f]*: 1e 0f add pc,pc
47586 + *[0-9a-f]*: 18 0c add r12,r12
47587 + *[0-9a-f]*: 0a 05 add r5,r5
47588 + *[0-9a-f]*: 08 04 add r4,r4
47589 + *[0-9a-f]*: 1c 0e add lr,lr
47590 + *[0-9a-f]*: 12 0c add r12,r9
47591 + *[0-9a-f]*: 06 06 add r6,r3
47592 + *[0-9a-f]*: 18 0a add r10,r12
47593 +
47594 +[0-9a-f]* <sub1>:
47595 + *[0-9a-f]*: 1e 1f sub pc,pc
47596 + *[0-9a-f]*: 18 1c sub r12,r12
47597 + *[0-9a-f]*: 0a 15 sub r5,r5
47598 + *[0-9a-f]*: 08 14 sub r4,r4
47599 + *[0-9a-f]*: 1c 1e sub lr,lr
47600 + *[0-9a-f]*: 0c 1e sub lr,r6
47601 + *[0-9a-f]*: 1a 10 sub r0,sp
47602 + *[0-9a-f]*: 18 16 sub r6,r12
47603 +
47604 +[0-9a-f]* <rsub1>:
47605 + *[0-9a-f]*: 1e 2f rsub pc,pc
47606 + *[0-9a-f]*: 18 2c rsub r12,r12
47607 + *[0-9a-f]*: 0a 25 rsub r5,r5
47608 + *[0-9a-f]*: 08 24 rsub r4,r4
47609 + *[0-9a-f]*: 1c 2e rsub lr,lr
47610 + *[0-9a-f]*: 1a 2b rsub r11,sp
47611 + *[0-9a-f]*: 08 27 rsub r7,r4
47612 + *[0-9a-f]*: 02 29 rsub r9,r1
47613 +
47614 +[0-9a-f]* <cp1>:
47615 + *[0-9a-f]*: 1e 3f cp\.w pc,pc
47616 + *[0-9a-f]*: 18 3c cp\.w r12,r12
47617 + *[0-9a-f]*: 0a 35 cp\.w r5,r5
47618 + *[0-9a-f]*: 08 34 cp\.w r4,r4
47619 + *[0-9a-f]*: 1c 3e cp\.w lr,lr
47620 + *[0-9a-f]*: 04 36 cp\.w r6,r2
47621 + *[0-9a-f]*: 12 30 cp\.w r0,r9
47622 + *[0-9a-f]*: 1a 33 cp\.w r3,sp
47623 +
47624 +[0-9a-f]* <or1>:
47625 + *[0-9a-f]*: 1e 4f or pc,pc
47626 + *[0-9a-f]*: 18 4c or r12,r12
47627 + *[0-9a-f]*: 0a 45 or r5,r5
47628 + *[0-9a-f]*: 08 44 or r4,r4
47629 + *[0-9a-f]*: 1c 4e or lr,lr
47630 + *[0-9a-f]*: 12 44 or r4,r9
47631 + *[0-9a-f]*: 08 4b or r11,r4
47632 + *[0-9a-f]*: 00 44 or r4,r0
47633 +
47634 +[0-9a-f]* <eor1>:
47635 + *[0-9a-f]*: 1e 5f eor pc,pc
47636 + *[0-9a-f]*: 18 5c eor r12,r12
47637 + *[0-9a-f]*: 0a 55 eor r5,r5
47638 + *[0-9a-f]*: 08 54 eor r4,r4
47639 + *[0-9a-f]*: 1c 5e eor lr,lr
47640 + *[0-9a-f]*: 16 5c eor r12,r11
47641 + *[0-9a-f]*: 02 50 eor r0,r1
47642 + *[0-9a-f]*: 1e 55 eor r5,pc
47643 +
47644 +[0-9a-f]* <and1>:
47645 + *[0-9a-f]*: 1e 6f and pc,pc
47646 + *[0-9a-f]*: 18 6c and r12,r12
47647 + *[0-9a-f]*: 0a 65 and r5,r5
47648 + *[0-9a-f]*: 08 64 and r4,r4
47649 + *[0-9a-f]*: 1c 6e and lr,lr
47650 + *[0-9a-f]*: 02 68 and r8,r1
47651 + *[0-9a-f]*: 1a 60 and r0,sp
47652 + *[0-9a-f]*: 0a 6a and r10,r5
47653 +
47654 +[0-9a-f]* <tst>:
47655 + *[0-9a-f]*: 1e 7f tst pc,pc
47656 + *[0-9a-f]*: 18 7c tst r12,r12
47657 + *[0-9a-f]*: 0a 75 tst r5,r5
47658 + *[0-9a-f]*: 08 74 tst r4,r4
47659 + *[0-9a-f]*: 1c 7e tst lr,lr
47660 + *[0-9a-f]*: 18 70 tst r0,r12
47661 + *[0-9a-f]*: 0c 7a tst r10,r6
47662 + *[0-9a-f]*: 08 7d tst sp,r4
47663 +
47664 +[0-9a-f]* <andn>:
47665 + *[0-9a-f]*: 1e 8f andn pc,pc
47666 + *[0-9a-f]*: 18 8c andn r12,r12
47667 + *[0-9a-f]*: 0a 85 andn r5,r5
47668 + *[0-9a-f]*: 08 84 andn r4,r4
47669 + *[0-9a-f]*: 1c 8e andn lr,lr
47670 + *[0-9a-f]*: 18 89 andn r9,r12
47671 + *[0-9a-f]*: 1a 8b andn r11,sp
47672 + *[0-9a-f]*: 0a 8c andn r12,r5
47673 +
47674 +[0-9a-f]* <mov3>:
47675 + *[0-9a-f]*: 1e 9f mov pc,pc
47676 + *[0-9a-f]*: 18 9c mov r12,r12
47677 + *[0-9a-f]*: 0a 95 mov r5,r5
47678 + *[0-9a-f]*: 08 94 mov r4,r4
47679 + *[0-9a-f]*: 1c 9e mov lr,lr
47680 + *[0-9a-f]*: 12 95 mov r5,r9
47681 + *[0-9a-f]*: 16 9b mov r11,r11
47682 + *[0-9a-f]*: 1c 92 mov r2,lr
47683 +
47684 +[0-9a-f]* <st_w1>:
47685 + *[0-9a-f]*: 1e af st\.w pc\+\+,pc
47686 + *[0-9a-f]*: 18 ac st\.w r12\+\+,r12
47687 + *[0-9a-f]*: 0a a5 st\.w r5\+\+,r5
47688 + *[0-9a-f]*: 08 a4 st\.w r4\+\+,r4
47689 + *[0-9a-f]*: 1c ae st\.w lr\+\+,lr
47690 + *[0-9a-f]*: 02 ab st\.w r1\+\+,r11
47691 + *[0-9a-f]*: 1a a0 st\.w sp\+\+,r0
47692 + *[0-9a-f]*: 1a a1 st\.w sp\+\+,r1
47693 +
47694 +[0-9a-f]* <st_h1>:
47695 + *[0-9a-f]*: 1e bf st\.h pc\+\+,pc
47696 + *[0-9a-f]*: 18 bc st\.h r12\+\+,r12
47697 + *[0-9a-f]*: 0a b5 st\.h r5\+\+,r5
47698 + *[0-9a-f]*: 08 b4 st\.h r4\+\+,r4
47699 + *[0-9a-f]*: 1c be st\.h lr\+\+,lr
47700 + *[0-9a-f]*: 18 bd st\.h r12\+\+,sp
47701 + *[0-9a-f]*: 0e be st\.h r7\+\+,lr
47702 + *[0-9a-f]*: 0e b4 st\.h r7\+\+,r4
47703 +
47704 +[0-9a-f]* <st_b1>:
47705 + *[0-9a-f]*: 1e cf st\.b pc\+\+,pc
47706 + *[0-9a-f]*: 18 cc st\.b r12\+\+,r12
47707 + *[0-9a-f]*: 0a c5 st\.b r5\+\+,r5
47708 + *[0-9a-f]*: 08 c4 st\.b r4\+\+,r4
47709 + *[0-9a-f]*: 1c ce st\.b lr\+\+,lr
47710 + *[0-9a-f]*: 12 cd st\.b r9\+\+,sp
47711 + *[0-9a-f]*: 02 cd st\.b r1\+\+,sp
47712 + *[0-9a-f]*: 00 c4 st\.b r0\+\+,r4
47713 +
47714 +[0-9a-f]* <st_w2>:
47715 + *[0-9a-f]*: 1e df st\.w --pc,pc
47716 + *[0-9a-f]*: 18 dc st\.w --r12,r12
47717 + *[0-9a-f]*: 0a d5 st\.w --r5,r5
47718 + *[0-9a-f]*: 08 d4 st\.w --r4,r4
47719 + *[0-9a-f]*: 1c de st\.w --lr,lr
47720 + *[0-9a-f]*: 02 d7 st\.w --r1,r7
47721 + *[0-9a-f]*: 06 d9 st\.w --r3,r9
47722 + *[0-9a-f]*: 0a d5 st\.w --r5,r5
47723 +
47724 +[0-9a-f]* <st_h2>:
47725 + *[0-9a-f]*: 1e ef st\.h --pc,pc
47726 + *[0-9a-f]*: 18 ec st\.h --r12,r12
47727 + *[0-9a-f]*: 0a e5 st\.h --r5,r5
47728 + *[0-9a-f]*: 08 e4 st\.h --r4,r4
47729 + *[0-9a-f]*: 1c ee st\.h --lr,lr
47730 + *[0-9a-f]*: 0a e7 st\.h --r5,r7
47731 + *[0-9a-f]*: 10 e8 st\.h --r8,r8
47732 + *[0-9a-f]*: 0e e2 st\.h --r7,r2
47733 +
47734 +[0-9a-f]* <st_b2>:
47735 + *[0-9a-f]*: 1e ff st\.b --pc,pc
47736 + *[0-9a-f]*: 18 fc st\.b --r12,r12
47737 + *[0-9a-f]*: 0a f5 st\.b --r5,r5
47738 + *[0-9a-f]*: 08 f4 st\.b --r4,r4
47739 + *[0-9a-f]*: 1c fe st\.b --lr,lr
47740 + *[0-9a-f]*: 1a fd st\.b --sp,sp
47741 + *[0-9a-f]*: 1a fb st\.b --sp,r11
47742 + *[0-9a-f]*: 08 f5 st\.b --r4,r5
47743 +
47744 +[0-9a-f]* <ld_w1>:
47745 + *[0-9a-f]*: 1f 0f ld\.w pc,pc\+\+
47746 + *[0-9a-f]*: 19 0c ld\.w r12,r12\+\+
47747 + *[0-9a-f]*: 0b 05 ld\.w r5,r5\+\+
47748 + *[0-9a-f]*: 09 04 ld\.w r4,r4\+\+
47749 + *[0-9a-f]*: 1d 0e ld\.w lr,lr\+\+
47750 + *[0-9a-f]*: 0f 03 ld\.w r3,r7\+\+
47751 + *[0-9a-f]*: 1d 03 ld\.w r3,lr\+\+
47752 + *[0-9a-f]*: 0b 0c ld\.w r12,r5\+\+
47753 +
47754 +[0-9a-f]* <ld_sh1>:
47755 + *[0-9a-f]*: 1f 1f ld\.sh pc,pc\+\+
47756 + *[0-9a-f]*: 19 1c ld\.sh r12,r12\+\+
47757 + *[0-9a-f]*: 0b 15 ld\.sh r5,r5\+\+
47758 + *[0-9a-f]*: 09 14 ld\.sh r4,r4\+\+
47759 + *[0-9a-f]*: 1d 1e ld\.sh lr,lr\+\+
47760 + *[0-9a-f]*: 05 1b ld\.sh r11,r2\+\+
47761 + *[0-9a-f]*: 11 12 ld\.sh r2,r8\+\+
47762 + *[0-9a-f]*: 0d 17 ld\.sh r7,r6\+\+
47763 +
47764 +[0-9a-f]* <ld_uh1>:
47765 + *[0-9a-f]*: 1f 2f ld\.uh pc,pc\+\+
47766 + *[0-9a-f]*: 19 2c ld\.uh r12,r12\+\+
47767 + *[0-9a-f]*: 0b 25 ld\.uh r5,r5\+\+
47768 + *[0-9a-f]*: 09 24 ld\.uh r4,r4\+\+
47769 + *[0-9a-f]*: 1d 2e ld\.uh lr,lr\+\+
47770 + *[0-9a-f]*: 0f 26 ld\.uh r6,r7\+\+
47771 + *[0-9a-f]*: 17 2a ld\.uh r10,r11\+\+
47772 + *[0-9a-f]*: 09 2e ld\.uh lr,r4\+\+
47773 +
47774 +[0-9a-f]* <ld_ub1>:
47775 + *[0-9a-f]*: 1f 3f ld\.ub pc,pc\+\+
47776 + *[0-9a-f]*: 19 3c ld\.ub r12,r12\+\+
47777 + *[0-9a-f]*: 0b 35 ld\.ub r5,r5\+\+
47778 + *[0-9a-f]*: 09 34 ld\.ub r4,r4\+\+
47779 + *[0-9a-f]*: 1d 3e ld\.ub lr,lr\+\+
47780 + *[0-9a-f]*: 1d 38 ld\.ub r8,lr\+\+
47781 + *[0-9a-f]*: 19 3c ld\.ub r12,r12\+\+
47782 + *[0-9a-f]*: 15 3b ld\.ub r11,r10\+\+
47783 +
47784 +[0-9a-f]* <ld_w2>:
47785 + *[0-9a-f]*: 1f 4f ld\.w pc,--pc
47786 + *[0-9a-f]*: 19 4c ld\.w r12,--r12
47787 + *[0-9a-f]*: 0b 45 ld\.w r5,--r5
47788 + *[0-9a-f]*: 09 44 ld\.w r4,--r4
47789 + *[0-9a-f]*: 1d 4e ld\.w lr,--lr
47790 + *[0-9a-f]*: 1d 4a ld\.w r10,--lr
47791 + *[0-9a-f]*: 13 4c ld\.w r12,--r9
47792 + *[0-9a-f]*: 0b 46 ld\.w r6,--r5
47793 +
47794 +[0-9a-f]* <ld_sh2>:
47795 + *[0-9a-f]*: 1f 5f ld\.sh pc,--pc
47796 + *[0-9a-f]*: 19 5c ld\.sh r12,--r12
47797 + *[0-9a-f]*: 0b 55 ld\.sh r5,--r5
47798 + *[0-9a-f]*: 09 54 ld\.sh r4,--r4
47799 + *[0-9a-f]*: 1d 5e ld\.sh lr,--lr
47800 + *[0-9a-f]*: 15 5f ld\.sh pc,--r10
47801 + *[0-9a-f]*: 07 56 ld\.sh r6,--r3
47802 + *[0-9a-f]*: 0d 54 ld\.sh r4,--r6
47803 +
47804 +[0-9a-f]* <ld_uh2>:
47805 + *[0-9a-f]*: 1f 6f ld\.uh pc,--pc
47806 + *[0-9a-f]*: 19 6c ld\.uh r12,--r12
47807 + *[0-9a-f]*: 0b 65 ld\.uh r5,--r5
47808 + *[0-9a-f]*: 09 64 ld\.uh r4,--r4
47809 + *[0-9a-f]*: 1d 6e ld\.uh lr,--lr
47810 + *[0-9a-f]*: 05 63 ld\.uh r3,--r2
47811 + *[0-9a-f]*: 01 61 ld\.uh r1,--r0
47812 + *[0-9a-f]*: 13 62 ld\.uh r2,--r9
47813 +
47814 +[0-9a-f]* <ld_ub2>:
47815 + *[0-9a-f]*: 1f 7f ld\.ub pc,--pc
47816 + *[0-9a-f]*: 19 7c ld\.ub r12,--r12
47817 + *[0-9a-f]*: 0b 75 ld\.ub r5,--r5
47818 + *[0-9a-f]*: 09 74 ld\.ub r4,--r4
47819 + *[0-9a-f]*: 1d 7e ld\.ub lr,--lr
47820 + *[0-9a-f]*: 03 71 ld\.ub r1,--r1
47821 + *[0-9a-f]*: 0d 70 ld\.ub r0,--r6
47822 + *[0-9a-f]*: 0f 72 ld\.ub r2,--r7
47823 +
47824 +[0-9a-f]* <ld_ub3>:
47825 + *[0-9a-f]*: 1f 8f ld\.ub pc,pc\[0x0\]
47826 + *[0-9a-f]*: 19 fc ld\.ub r12,r12\[0x7\]
47827 + *[0-9a-f]*: 0b c5 ld\.ub r5,r5\[0x4\]
47828 + *[0-9a-f]*: 09 b4 ld\.ub r4,r4\[0x3\]
47829 + *[0-9a-f]*: 1d 9e ld\.ub lr,lr\[0x1\]
47830 + *[0-9a-f]*: 13 e6 ld\.ub r6,r9\[0x6\]
47831 + *[0-9a-f]*: 1d c2 ld\.ub r2,lr\[0x4\]
47832 + *[0-9a-f]*: 11 81 ld\.ub r1,r8\[0x0\]
47833 +
47834 +[0-9a-f]* <sub3_sp>:
47835 + *[0-9a-f]*: 20 0d sub sp,0
47836 + *[0-9a-f]*: 2f fd sub sp,-4
47837 + *[0-9a-f]*: 28 0d sub sp,-512
47838 + *[0-9a-f]*: 27 fd sub sp,508
47839 + *[0-9a-f]*: 20 1d sub sp,4
47840 + *[0-9a-f]*: 20 bd sub sp,44
47841 + *[0-9a-f]*: 20 2d sub sp,8
47842 + *[0-9a-f]*: 25 7d sub sp,348
47843 +
47844 +[0-9a-f]* <sub3>:
47845 + *[0-9a-f]*: 20 0f sub pc,0
47846 + *[0-9a-f]*: 2f fc sub r12,-1
47847 + *[0-9a-f]*: 28 05 sub r5,-128
47848 + *[0-9a-f]*: 27 f4 sub r4,127
47849 + *[0-9a-f]*: 20 1e sub lr,1
47850 + *[0-9a-f]*: 2d 76 sub r6,-41
47851 + *[0-9a-f]*: 22 54 sub r4,37
47852 + *[0-9a-f]*: 23 8c sub r12,56
47853 +
47854 +[0-9a-f]* <mov1>:
47855 + *[0-9a-f]*: 30 0f mov pc,0
47856 + *[0-9a-f]*: 3f fc mov r12,-1
47857 + *[0-9a-f]*: 38 05 mov r5,-128
47858 + *[0-9a-f]*: 37 f4 mov r4,127
47859 + *[0-9a-f]*: 30 1e mov lr,1
47860 + *[0-9a-f]*: 30 ef mov pc,14
47861 + *[0-9a-f]*: 39 c6 mov r6,-100
47862 + *[0-9a-f]*: 38 6e mov lr,-122
47863 +
47864 +[0-9a-f]* <lddsp>:
47865 + *[0-9a-f]*: 40 0f lddsp pc,sp\[0x0\]
47866 + *[0-9a-f]*: 47 fc lddsp r12,sp\[0x1fc\]
47867 + *[0-9a-f]*: 44 05 lddsp r5,sp\[0x100\]
47868 + *[0-9a-f]*: 43 f4 lddsp r4,sp\[0xfc\]
47869 + *[0-9a-f]*: 40 1e lddsp lr,sp\[0x4\]
47870 + *[0-9a-f]*: 44 0e lddsp lr,sp\[0x100\]
47871 + *[0-9a-f]*: 40 5c lddsp r12,sp\[0x14\]
47872 + *[0-9a-f]*: 47 69 lddsp r9,sp\[0x1d8\]
47873 +
47874 +[0-9a-f]* <lddpc>:
47875 + *[0-9a-f]*: 48 0f lddpc pc,[0-9a-f]* <.*>
47876 + *[0-9a-f]*: 4f f0 lddpc r0,[0-9a-f]* <.*>
47877 + *[0-9a-f]*: 4c 08 lddpc r8,[0-9a-f]* <.*>
47878 + *[0-9a-f]*: 4b f7 lddpc r7,[0-9a-f]* <.*>
47879 + *[0-9a-f]*: 48 1e lddpc lr,[0-9a-f]* <.*>
47880 + *[0-9a-f]*: 4f 6d lddpc sp,[0-9a-f]* <.*>
47881 + *[0-9a-f]*: 49 e6 lddpc r6,[0-9a-f]* <.*>
47882 + *[0-9a-f]*: 48 7b lddpc r11,[0-9a-f]* <.*>
47883 +
47884 +[0-9a-f]* <stdsp>:
47885 + *[0-9a-f]*: 50 0f stdsp sp\[0x0\],pc
47886 + *[0-9a-f]*: 57 fc stdsp sp\[0x1fc\],r12
47887 + *[0-9a-f]*: 54 05 stdsp sp\[0x100\],r5
47888 + *[0-9a-f]*: 53 f4 stdsp sp\[0xfc\],r4
47889 + *[0-9a-f]*: 50 1e stdsp sp\[0x4\],lr
47890 + *[0-9a-f]*: 54 cf stdsp sp\[0x130\],pc
47891 + *[0-9a-f]*: 54 00 stdsp sp\[0x100\],r0
47892 + *[0-9a-f]*: 55 45 stdsp sp\[0x150\],r5
47893 +
47894 +[0-9a-f]* <cp2>:
47895 + *[0-9a-f]*: 58 0f cp.w pc,0
47896 + *[0-9a-f]*: 5b fc cp.w r12,-1
47897 + *[0-9a-f]*: 5a 05 cp.w r5,-32
47898 + *[0-9a-f]*: 59 f4 cp.w r4,31
47899 + *[0-9a-f]*: 58 1e cp.w lr,1
47900 + *[0-9a-f]*: 58 38 cp.w r8,3
47901 + *[0-9a-f]*: 59 0e cp.w lr,16
47902 + *[0-9a-f]*: 5a 67 cp.w r7,-26
47903 +
47904 +[0-9a-f]* <acr>:
47905 + *[0-9a-f]*: 5c 0f acr pc
47906 + *[0-9a-f]*: 5c 0c acr r12
47907 + *[0-9a-f]*: 5c 05 acr r5
47908 + *[0-9a-f]*: 5c 04 acr r4
47909 + *[0-9a-f]*: 5c 0e acr lr
47910 + *[0-9a-f]*: 5c 02 acr r2
47911 + *[0-9a-f]*: 5c 0c acr r12
47912 + *[0-9a-f]*: 5c 0f acr pc
47913 +
47914 +[0-9a-f]* <scr>:
47915 + *[0-9a-f]*: 5c 1f scr pc
47916 + *[0-9a-f]*: 5c 1c scr r12
47917 + *[0-9a-f]*: 5c 15 scr r5
47918 + *[0-9a-f]*: 5c 14 scr r4
47919 + *[0-9a-f]*: 5c 1e scr lr
47920 + *[0-9a-f]*: 5c 1f scr pc
47921 + *[0-9a-f]*: 5c 16 scr r6
47922 + *[0-9a-f]*: 5c 11 scr r1
47923 +
47924 +[0-9a-f]* <cpc0>:
47925 + *[0-9a-f]*: 5c 2f cpc pc
47926 + *[0-9a-f]*: 5c 2c cpc r12
47927 + *[0-9a-f]*: 5c 25 cpc r5
47928 + *[0-9a-f]*: 5c 24 cpc r4
47929 + *[0-9a-f]*: 5c 2e cpc lr
47930 + *[0-9a-f]*: 5c 2f cpc pc
47931 + *[0-9a-f]*: 5c 24 cpc r4
47932 + *[0-9a-f]*: 5c 29 cpc r9
47933 +
47934 +[0-9a-f]* <neg>:
47935 + *[0-9a-f]*: 5c 3f neg pc
47936 + *[0-9a-f]*: 5c 3c neg r12
47937 + *[0-9a-f]*: 5c 35 neg r5
47938 + *[0-9a-f]*: 5c 34 neg r4
47939 + *[0-9a-f]*: 5c 3e neg lr
47940 + *[0-9a-f]*: 5c 37 neg r7
47941 + *[0-9a-f]*: 5c 31 neg r1
47942 + *[0-9a-f]*: 5c 39 neg r9
47943 +
47944 +[0-9a-f]* <abs>:
47945 + *[0-9a-f]*: 5c 4f abs pc
47946 + *[0-9a-f]*: 5c 4c abs r12
47947 + *[0-9a-f]*: 5c 45 abs r5
47948 + *[0-9a-f]*: 5c 44 abs r4
47949 + *[0-9a-f]*: 5c 4e abs lr
47950 + *[0-9a-f]*: 5c 46 abs r6
47951 + *[0-9a-f]*: 5c 46 abs r6
47952 + *[0-9a-f]*: 5c 44 abs r4
47953 +
47954 +[0-9a-f]* <castu_b>:
47955 + *[0-9a-f]*: 5c 5f castu\.b pc
47956 + *[0-9a-f]*: 5c 5c castu\.b r12
47957 + *[0-9a-f]*: 5c 55 castu\.b r5
47958 + *[0-9a-f]*: 5c 54 castu\.b r4
47959 + *[0-9a-f]*: 5c 5e castu\.b lr
47960 + *[0-9a-f]*: 5c 57 castu\.b r7
47961 + *[0-9a-f]*: 5c 5d castu\.b sp
47962 + *[0-9a-f]*: 5c 59 castu\.b r9
47963 +
47964 +[0-9a-f]* <casts_b>:
47965 + *[0-9a-f]*: 5c 6f casts\.b pc
47966 + *[0-9a-f]*: 5c 6c casts\.b r12
47967 + *[0-9a-f]*: 5c 65 casts\.b r5
47968 + *[0-9a-f]*: 5c 64 casts\.b r4
47969 + *[0-9a-f]*: 5c 6e casts\.b lr
47970 + *[0-9a-f]*: 5c 6b casts\.b r11
47971 + *[0-9a-f]*: 5c 61 casts\.b r1
47972 + *[0-9a-f]*: 5c 6a casts\.b r10
47973 +
47974 +[0-9a-f]* <castu_h>:
47975 + *[0-9a-f]*: 5c 7f castu\.h pc
47976 + *[0-9a-f]*: 5c 7c castu\.h r12
47977 + *[0-9a-f]*: 5c 75 castu\.h r5
47978 + *[0-9a-f]*: 5c 74 castu\.h r4
47979 + *[0-9a-f]*: 5c 7e castu\.h lr
47980 + *[0-9a-f]*: 5c 7a castu\.h r10
47981 + *[0-9a-f]*: 5c 7b castu\.h r11
47982 + *[0-9a-f]*: 5c 71 castu\.h r1
47983 +
47984 +[0-9a-f]* <casts_h>:
47985 + *[0-9a-f]*: 5c 8f casts\.h pc
47986 + *[0-9a-f]*: 5c 8c casts\.h r12
47987 + *[0-9a-f]*: 5c 85 casts\.h r5
47988 + *[0-9a-f]*: 5c 84 casts\.h r4
47989 + *[0-9a-f]*: 5c 8e casts\.h lr
47990 + *[0-9a-f]*: 5c 80 casts\.h r0
47991 + *[0-9a-f]*: 5c 85 casts\.h r5
47992 + *[0-9a-f]*: 5c 89 casts\.h r9
47993 +
47994 +[0-9a-f]* <brev>:
47995 + *[0-9a-f]*: 5c 9f brev pc
47996 + *[0-9a-f]*: 5c 9c brev r12
47997 + *[0-9a-f]*: 5c 95 brev r5
47998 + *[0-9a-f]*: 5c 94 brev r4
47999 + *[0-9a-f]*: 5c 9e brev lr
48000 + *[0-9a-f]*: 5c 95 brev r5
48001 + *[0-9a-f]*: 5c 9a brev r10
48002 + *[0-9a-f]*: 5c 98 brev r8
48003 +
48004 +[0-9a-f]* <swap_h>:
48005 + *[0-9a-f]*: 5c af swap\.h pc
48006 + *[0-9a-f]*: 5c ac swap\.h r12
48007 + *[0-9a-f]*: 5c a5 swap\.h r5
48008 + *[0-9a-f]*: 5c a4 swap\.h r4
48009 + *[0-9a-f]*: 5c ae swap\.h lr
48010 + *[0-9a-f]*: 5c a7 swap\.h r7
48011 + *[0-9a-f]*: 5c a0 swap\.h r0
48012 + *[0-9a-f]*: 5c a8 swap\.h r8
48013 +
48014 +[0-9a-f]* <swap_b>:
48015 + *[0-9a-f]*: 5c bf swap\.b pc
48016 + *[0-9a-f]*: 5c bc swap\.b r12
48017 + *[0-9a-f]*: 5c b5 swap\.b r5
48018 + *[0-9a-f]*: 5c b4 swap\.b r4
48019 + *[0-9a-f]*: 5c be swap\.b lr
48020 + *[0-9a-f]*: 5c ba swap\.b r10
48021 + *[0-9a-f]*: 5c bc swap\.b r12
48022 + *[0-9a-f]*: 5c b1 swap\.b r1
48023 +
48024 +[0-9a-f]* <swap_bh>:
48025 + *[0-9a-f]*: 5c cf swap\.bh pc
48026 + *[0-9a-f]*: 5c cc swap\.bh r12
48027 + *[0-9a-f]*: 5c c5 swap\.bh r5
48028 + *[0-9a-f]*: 5c c4 swap\.bh r4
48029 + *[0-9a-f]*: 5c ce swap\.bh lr
48030 + *[0-9a-f]*: 5c c9 swap\.bh r9
48031 + *[0-9a-f]*: 5c c4 swap\.bh r4
48032 + *[0-9a-f]*: 5c c1 swap\.bh r1
48033 +
48034 +[0-9a-f]* <One_s_compliment>:
48035 + *[0-9a-f]*: 5c df com pc
48036 + *[0-9a-f]*: 5c dc com r12
48037 + *[0-9a-f]*: 5c d5 com r5
48038 + *[0-9a-f]*: 5c d4 com r4
48039 + *[0-9a-f]*: 5c de com lr
48040 + *[0-9a-f]*: 5c d2 com r2
48041 + *[0-9a-f]*: 5c d2 com r2
48042 + *[0-9a-f]*: 5c d7 com r7
48043 +
48044 +[0-9a-f]* <tnbz>:
48045 + *[0-9a-f]*: 5c ef tnbz pc
48046 + *[0-9a-f]*: 5c ec tnbz r12
48047 + *[0-9a-f]*: 5c e5 tnbz r5
48048 + *[0-9a-f]*: 5c e4 tnbz r4
48049 + *[0-9a-f]*: 5c ee tnbz lr
48050 + *[0-9a-f]*: 5c e8 tnbz r8
48051 + *[0-9a-f]*: 5c ec tnbz r12
48052 + *[0-9a-f]*: 5c ef tnbz pc
48053 +
48054 +[0-9a-f]* <rol>:
48055 + *[0-9a-f]*: 5c ff rol pc
48056 + *[0-9a-f]*: 5c fc rol r12
48057 + *[0-9a-f]*: 5c f5 rol r5
48058 + *[0-9a-f]*: 5c f4 rol r4
48059 + *[0-9a-f]*: 5c fe rol lr
48060 + *[0-9a-f]*: 5c fa rol r10
48061 + *[0-9a-f]*: 5c f9 rol r9
48062 + *[0-9a-f]*: 5c f5 rol r5
48063 +
48064 +[0-9a-f]* <ror>:
48065 + *[0-9a-f]*: 5d 0f ror pc
48066 + *[0-9a-f]*: 5d 0c ror r12
48067 + *[0-9a-f]*: 5d 05 ror r5
48068 + *[0-9a-f]*: 5d 04 ror r4
48069 + *[0-9a-f]*: 5d 0e ror lr
48070 + *[0-9a-f]*: 5d 08 ror r8
48071 + *[0-9a-f]*: 5d 04 ror r4
48072 + *[0-9a-f]*: 5d 07 ror r7
48073 +
48074 +[0-9a-f]* <icall>:
48075 + *[0-9a-f]*: 5d 1f icall pc
48076 + *[0-9a-f]*: 5d 1c icall r12
48077 + *[0-9a-f]*: 5d 15 icall r5
48078 + *[0-9a-f]*: 5d 14 icall r4
48079 + *[0-9a-f]*: 5d 1e icall lr
48080 + *[0-9a-f]*: 5d 13 icall r3
48081 + *[0-9a-f]*: 5d 11 icall r1
48082 + *[0-9a-f]*: 5d 13 icall r3
48083 +
48084 +[0-9a-f]* <mustr>:
48085 + *[0-9a-f]*: 5d 2f mustr pc
48086 + *[0-9a-f]*: 5d 2c mustr r12
48087 + *[0-9a-f]*: 5d 25 mustr r5
48088 + *[0-9a-f]*: 5d 24 mustr r4
48089 + *[0-9a-f]*: 5d 2e mustr lr
48090 + *[0-9a-f]*: 5d 21 mustr r1
48091 + *[0-9a-f]*: 5d 24 mustr r4
48092 + *[0-9a-f]*: 5d 2c mustr r12
48093 +
48094 +[0-9a-f]* <musfr>:
48095 + *[0-9a-f]*: 5d 3f musfr pc
48096 + *[0-9a-f]*: 5d 3c musfr r12
48097 + *[0-9a-f]*: 5d 35 musfr r5
48098 + *[0-9a-f]*: 5d 34 musfr r4
48099 + *[0-9a-f]*: 5d 3e musfr lr
48100 + *[0-9a-f]*: 5d 3b musfr r11
48101 + *[0-9a-f]*: 5d 3c musfr r12
48102 + *[0-9a-f]*: 5d 32 musfr r2
48103 +
48104 +[0-9a-f]* <ret_cond>:
48105 + *[0-9a-f]*: 5e 0f reteq 1
48106 + *[0-9a-f]*: 5e fc retal r12
48107 + *[0-9a-f]*: 5e 85 retls r5
48108 + *[0-9a-f]*: 5e 74 retpl r4
48109 + *[0-9a-f]*: 5e 1e retne -1
48110 + *[0-9a-f]*: 5e 90 retgt r0
48111 + *[0-9a-f]*: 5e 9c retgt r12
48112 + *[0-9a-f]*: 5e 4a retge r10
48113 +
48114 +[0-9a-f]* <sr_cond>:
48115 + *[0-9a-f]*: 5f 0f sreq pc
48116 + *[0-9a-f]*: 5f fc sral r12
48117 + *[0-9a-f]*: 5f 85 srls r5
48118 + *[0-9a-f]*: 5f 74 srpl r4
48119 + *[0-9a-f]*: 5f 1e srne lr
48120 + *[0-9a-f]*: 5f 50 srlt r0
48121 + *[0-9a-f]*: 5f fd sral sp
48122 + *[0-9a-f]*: 5f 49 srge r9
48123 +
48124 +[0-9a-f]* <ld_w3>:
48125 + *[0-9a-f]*: 7e 0f ld\.w pc,pc\[0x0\]
48126 + *[0-9a-f]*: 79 fc ld\.w r12,r12\[0x7c\]
48127 + *[0-9a-f]*: 6b 05 ld\.w r5,r5\[0x40\]
48128 + *[0-9a-f]*: 68 f4 ld\.w r4,r4\[0x3c\]
48129 + *[0-9a-f]*: 7c 1e ld\.w lr,lr\[0x4\]
48130 + *[0-9a-f]*: 64 dd ld\.w sp,r2\[0x34\]
48131 + *[0-9a-f]*: 62 29 ld\.w r9,r1\[0x8\]
48132 + *[0-9a-f]*: 7a f5 ld\.w r5,sp\[0x3c\]
48133 +
48134 +[0-9a-f]* <ld_sh3>:
48135 + *[0-9a-f]*: 9e 0f ld\.sh pc,pc\[0x0\]
48136 + *[0-9a-f]*: 98 7c ld\.sh r12,r12\[0xe\]
48137 + *[0-9a-f]*: 8a 45 ld\.sh r5,r5\[0x8\]
48138 + *[0-9a-f]*: 88 34 ld\.sh r4,r4\[0x6\]
48139 + *[0-9a-f]*: 9c 1e ld\.sh lr,lr\[0x2\]
48140 + *[0-9a-f]*: 84 44 ld\.sh r4,r2\[0x8\]
48141 + *[0-9a-f]*: 9c 5d ld\.sh sp,lr\[0xa\]
48142 + *[0-9a-f]*: 96 12 ld\.sh r2,r11\[0x2\]
48143 +
48144 +[0-9a-f]* <ld_uh3>:
48145 + *[0-9a-f]*: 9e 8f ld\.uh pc,pc\[0x0\]
48146 + *[0-9a-f]*: 98 fc ld\.uh r12,r12\[0xe\]
48147 + *[0-9a-f]*: 8a c5 ld\.uh r5,r5\[0x8\]
48148 + *[0-9a-f]*: 88 b4 ld\.uh r4,r4\[0x6\]
48149 + *[0-9a-f]*: 9c 9e ld\.uh lr,lr\[0x2\]
48150 + *[0-9a-f]*: 80 da ld\.uh r10,r0\[0xa\]
48151 + *[0-9a-f]*: 96 c8 ld\.uh r8,r11\[0x8\]
48152 + *[0-9a-f]*: 84 ea ld\.uh r10,r2\[0xc\]
48153 +
48154 +[0-9a-f]* <st_w3>:
48155 + *[0-9a-f]*: 9f 0f st\.w pc\[0x0\],pc
48156 + *[0-9a-f]*: 99 fc st\.w r12\[0x3c\],r12
48157 + *[0-9a-f]*: 8b 85 st\.w r5\[0x20\],r5
48158 + *[0-9a-f]*: 89 74 st\.w r4\[0x1c\],r4
48159 + *[0-9a-f]*: 9d 1e st\.w lr\[0x4\],lr
48160 + *[0-9a-f]*: 8f bb st\.w r7\[0x2c\],r11
48161 + *[0-9a-f]*: 85 66 st\.w r2\[0x18\],r6
48162 + *[0-9a-f]*: 89 39 st\.w r4\[0xc\],r9
48163 +
48164 +[0-9a-f]* <st_h3>:
48165 + *[0-9a-f]*: be 0f st\.h pc\[0x0\],pc
48166 + *[0-9a-f]*: b8 7c st\.h r12\[0xe\],r12
48167 + *[0-9a-f]*: aa 45 st\.h r5\[0x8\],r5
48168 + *[0-9a-f]*: a8 34 st\.h r4\[0x6\],r4
48169 + *[0-9a-f]*: bc 1e st\.h lr\[0x2\],lr
48170 + *[0-9a-f]*: bc 5c st\.h lr\[0xa\],r12
48171 + *[0-9a-f]*: ac 20 st\.h r6\[0x4\],r0
48172 + *[0-9a-f]*: aa 6d st\.h r5\[0xc\],sp
48173 +
48174 +[0-9a-f]* <st_b3>:
48175 + *[0-9a-f]*: be 8f st\.b pc\[0x0\],pc
48176 + *[0-9a-f]*: b8 fc st\.b r12\[0x7\],r12
48177 + *[0-9a-f]*: aa c5 st\.b r5\[0x4\],r5
48178 + *[0-9a-f]*: a8 b4 st\.b r4\[0x3\],r4
48179 + *[0-9a-f]*: bc 9e st\.b lr\[0x1\],lr
48180 + *[0-9a-f]*: b8 e9 st\.b r12\[0x6\],r9
48181 + *[0-9a-f]*: a4 be st\.b r2\[0x3\],lr
48182 + *[0-9a-f]*: a2 bb st\.b r1\[0x3\],r11
48183 +
48184 +[0-9a-f]* <ldd>:
48185 + *[0-9a-f]*: bf 00 ld\.d r0,pc
48186 + *[0-9a-f]*: b9 0e ld\.d lr,r12
48187 + *[0-9a-f]*: ab 08 ld\.d r8,r5
48188 + *[0-9a-f]*: a9 06 ld\.d r6,r4
48189 + *[0-9a-f]*: bd 02 ld\.d r2,lr
48190 + *[0-9a-f]*: af 0e ld\.d lr,r7
48191 + *[0-9a-f]*: a9 04 ld\.d r4,r4
48192 + *[0-9a-f]*: bf 0e ld\.d lr,pc
48193 +
48194 +[0-9a-f]* <ldd_postinc>:
48195 + *[0-9a-f]*: bf 01 ld\.d r0,pc\+\+
48196 + *[0-9a-f]*: b9 0f ld\.d lr,r12\+\+
48197 + *[0-9a-f]*: ab 09 ld\.d r8,r5\+\+
48198 + *[0-9a-f]*: a9 07 ld\.d r6,r4\+\+
48199 + *[0-9a-f]*: bd 03 ld\.d r2,lr\+\+
48200 + *[0-9a-f]*: ab 0f ld\.d lr,r5\+\+
48201 + *[0-9a-f]*: b7 0d ld\.d r12,r11\+\+
48202 + *[0-9a-f]*: b9 03 ld\.d r2,r12\+\+
48203 +
48204 +[0-9a-f]* <ldd_predec>:
48205 + *[0-9a-f]*: bf 10 ld\.d r0,--pc
48206 + *[0-9a-f]*: b9 1e ld\.d lr,--r12
48207 + *[0-9a-f]*: ab 18 ld\.d r8,--r5
48208 + *[0-9a-f]*: a9 16 ld\.d r6,--r4
48209 + *[0-9a-f]*: bd 12 ld\.d r2,--lr
48210 + *[0-9a-f]*: a1 18 ld\.d r8,--r0
48211 + *[0-9a-f]*: bf 1a ld\.d r10,--pc
48212 + *[0-9a-f]*: a9 12 ld\.d r2,--r4
48213 +
48214 +[0-9a-f]* <std>:
48215 + *[0-9a-f]*: bf 11 st\.d pc,r0
48216 + *[0-9a-f]*: b9 1f st\.d r12,lr
48217 + *[0-9a-f]*: ab 19 st\.d r5,r8
48218 + *[0-9a-f]*: a9 17 st\.d r4,r6
48219 + *[0-9a-f]*: bd 13 st\.d lr,r2
48220 + *[0-9a-f]*: a1 1d st\.d r0,r12
48221 + *[0-9a-f]*: bb 15 st\.d sp,r4
48222 + *[0-9a-f]*: b9 1d st\.d r12,r12
48223 +
48224 +[0-9a-f]* <std_postinc>:
48225 + *[0-9a-f]*: bf 20 st\.d pc\+\+,r0
48226 + *[0-9a-f]*: b9 2e st\.d r12\+\+,lr
48227 + *[0-9a-f]*: ab 28 st\.d r5\+\+,r8
48228 + *[0-9a-f]*: a9 26 st\.d r4\+\+,r6
48229 + *[0-9a-f]*: bd 22 st\.d lr\+\+,r2
48230 + *[0-9a-f]*: bb 26 st\.d sp\+\+,r6
48231 + *[0-9a-f]*: b5 26 st\.d r10\+\+,r6
48232 + *[0-9a-f]*: af 22 st\.d r7\+\+,r2
48233 +
48234 +[0-9a-f]* <std_predec>:
48235 + *[0-9a-f]*: bf 21 st\.d --pc,r0
48236 + *[0-9a-f]*: b9 2f st\.d --r12,lr
48237 + *[0-9a-f]*: ab 29 st\.d --r5,r8
48238 + *[0-9a-f]*: a9 27 st\.d --r4,r6
48239 + *[0-9a-f]*: bd 23 st\.d --lr,r2
48240 + *[0-9a-f]*: a7 27 st\.d --r3,r6
48241 + *[0-9a-f]*: bd 23 st\.d --lr,r2
48242 + *[0-9a-f]*: a1 25 st\.d --r0,r4
48243 +
48244 +[0-9a-f]* <mul>:
48245 + *[0-9a-f]*: bf 3f mul pc,pc
48246 + *[0-9a-f]*: b9 3c mul r12,r12
48247 + *[0-9a-f]*: ab 35 mul r5,r5
48248 + *[0-9a-f]*: a9 34 mul r4,r4
48249 + *[0-9a-f]*: bd 3e mul lr,lr
48250 + *[0-9a-f]*: bd 3a mul r10,lr
48251 + *[0-9a-f]*: b1 30 mul r0,r8
48252 + *[0-9a-f]*: ab 38 mul r8,r5
48253 +
48254 +[0-9a-f]* <asr_imm5>:
48255 + *[0-9a-f]*: a1 4f asr pc,0x0
48256 + *[0-9a-f]*: bf 5c asr r12,0x1f
48257 + *[0-9a-f]*: b1 45 asr r5,0x10
48258 + *[0-9a-f]*: af 54 asr r4,0xf
48259 + *[0-9a-f]*: a1 5e asr lr,0x1
48260 + *[0-9a-f]*: b7 56 asr r6,0x17
48261 + *[0-9a-f]*: b3 46 asr r6,0x12
48262 + *[0-9a-f]*: a9 45 asr r5,0x8
48263 +
48264 +[0-9a-f]* <lsl_imm5>:
48265 + *[0-9a-f]*: a1 6f lsl pc,0x0
48266 + *[0-9a-f]*: bf 7c lsl r12,0x1f
48267 + *[0-9a-f]*: b1 65 lsl r5,0x10
48268 + *[0-9a-f]*: af 74 lsl r4,0xf
48269 + *[0-9a-f]*: a1 7e lsl lr,0x1
48270 + *[0-9a-f]*: ad 7c lsl r12,0xd
48271 + *[0-9a-f]*: b1 66 lsl r6,0x10
48272 + *[0-9a-f]*: b9 71 lsl r1,0x19
48273 +
48274 +[0-9a-f]* <lsr_imm5>:
48275 + *[0-9a-f]*: a1 8f lsr pc,0x0
48276 + *[0-9a-f]*: bf 9c lsr r12,0x1f
48277 + *[0-9a-f]*: b1 85 lsr r5,0x10
48278 + *[0-9a-f]*: af 94 lsr r4,0xf
48279 + *[0-9a-f]*: a1 9e lsr lr,0x1
48280 + *[0-9a-f]*: a1 90 lsr r0,0x1
48281 + *[0-9a-f]*: ab 88 lsr r8,0xa
48282 + *[0-9a-f]*: bb 87 lsr r7,0x1a
48283 +
48284 +[0-9a-f]* <sbr>:
48285 + *[0-9a-f]*: a1 af sbr pc,0x0
48286 + *[0-9a-f]*: bf bc sbr r12,0x1f
48287 + *[0-9a-f]*: b1 a5 sbr r5,0x10
48288 + *[0-9a-f]*: af b4 sbr r4,0xf
48289 + *[0-9a-f]*: a1 be sbr lr,0x1
48290 + *[0-9a-f]*: bf b8 sbr r8,0x1f
48291 + *[0-9a-f]*: b7 a6 sbr r6,0x16
48292 + *[0-9a-f]*: b7 b1 sbr r1,0x17
48293 +
48294 +[0-9a-f]* <cbr>:
48295 + *[0-9a-f]*: a1 cf cbr pc,0x0
48296 + *[0-9a-f]*: bf dc cbr r12,0x1f
48297 + *[0-9a-f]*: b1 c5 cbr r5,0x10
48298 + *[0-9a-f]*: af d4 cbr r4,0xf
48299 + *[0-9a-f]*: a1 de cbr lr,0x1
48300 + *[0-9a-f]*: ab cc cbr r12,0xa
48301 + *[0-9a-f]*: b7 c7 cbr r7,0x16
48302 + *[0-9a-f]*: a9 d8 cbr r8,0x9
48303 +
48304 +[0-9a-f]* <brc1>:
48305 + *[0-9a-f]*: c0 00 breq [0-9a-f]* <.*>
48306 + *[0-9a-f]*: cf f7 brpl [0-9a-f]* <.*>
48307 + *[0-9a-f]*: c8 04 brge [0-9a-f]* <.*>
48308 + *[0-9a-f]*: c7 f3 brcs [0-9a-f]* <.*>
48309 + *[0-9a-f]*: c0 11 brne [0-9a-f]* <.*>
48310 + *[0-9a-f]*: c7 33 brcs [0-9a-f]* <.*>
48311 + *[0-9a-f]*: cf 70 breq [0-9a-f]* <.*>
48312 + *[0-9a-f]*: c0 60 breq [0-9a-f]* <.*>
48313 +
48314 +[0-9a-f]* <rjmp>:
48315 + *[0-9a-f]*: c0 08 rjmp [0-9a-f]* <.*>
48316 + *[0-9a-f]*: cf fb rjmp [0-9a-f]* <.*>
48317 + *[0-9a-f]*: c0 0a rjmp [0-9a-f]* <.*>
48318 + *[0-9a-f]*: cf f9 rjmp [0-9a-f]* <.*>
48319 + *[0-9a-f]*: c0 18 rjmp [0-9a-f]* <.*>
48320 + *[0-9a-f]*: c1 fa rjmp [0-9a-f]* <.*>
48321 + *[0-9a-f]*: c0 78 rjmp [0-9a-f]* <.*>
48322 + *[0-9a-f]*: cf ea rjmp [0-9a-f]* <.*>
48323 +
48324 +[0-9a-f]* <rcall1>:
48325 + *[0-9a-f]*: c0 0c rcall [0-9a-f]* <.*>
48326 + *[0-9a-f]*: cf ff rcall [0-9a-f]* <.*>
48327 + *[0-9a-f]*: c0 0e rcall [0-9a-f]* <.*>
48328 + *[0-9a-f]*: cf fd rcall [0-9a-f]* <.*>
48329 + *[0-9a-f]*: c0 1c rcall [0-9a-f]* <.*>
48330 + *[0-9a-f]*: c6 cc rcall [0-9a-f]* <.*>
48331 + *[0-9a-f]*: cf 7e rcall [0-9a-f]* <.*>
48332 + *[0-9a-f]*: c1 ae rcall [0-9a-f]* <.*>
48333 +
48334 +[0-9a-f]* <acall>:
48335 + *[0-9a-f]*: d0 00 acall 0x0
48336 + *[0-9a-f]*: df f0 acall 0x3fc
48337 + *[0-9a-f]*: d8 00 acall 0x200
48338 + *[0-9a-f]*: d7 f0 acall 0x1fc
48339 + *[0-9a-f]*: d0 10 acall 0x4
48340 + *[0-9a-f]*: d5 90 acall 0x164
48341 + *[0-9a-f]*: d4 c0 acall 0x130
48342 + *[0-9a-f]*: d2 b0 acall 0xac
48343 +
48344 +[0-9a-f]* <scall>:
48345 + *[0-9a-f]*: d7 33 scall
48346 + *[0-9a-f]*: d7 33 scall
48347 + *[0-9a-f]*: d7 33 scall
48348 + *[0-9a-f]*: d7 33 scall
48349 + *[0-9a-f]*: d7 33 scall
48350 + *[0-9a-f]*: d7 33 scall
48351 + *[0-9a-f]*: d7 33 scall
48352 + *[0-9a-f]*: d7 33 scall
48353 +
48354 +[0-9a-f]* <popm>:
48355 + *[0-9a-f]*: d8 02 popm pc
48356 + *[0-9a-f]*: dd fa popm r0-r11,pc,r12=-1
48357 + *[0-9a-f]*: d4 02 popm lr
48358 + *[0-9a-f]*: db fa popm r0-r11,pc,r12=1
48359 + *[0-9a-f]*: d0 12 popm r0-r3
48360 + *[0-9a-f]*: d8 e2 popm r4-r10,pc
48361 + *[0-9a-f]*: d9 1a popm r0-r3,r11,pc,r12=0
48362 + *[0-9a-f]*: d7 b2 popm r0-r7,r10-r12,lr
48363 +
48364 +[0-9a-f]* <pushm>:
48365 + *[0-9a-f]*: d8 01 pushm pc
48366 + *[0-9a-f]*: df f1 pushm r0-r12,lr-pc
48367 + *[0-9a-f]*: d8 01 pushm pc
48368 + *[0-9a-f]*: d7 f1 pushm r0-r12,lr
48369 + *[0-9a-f]*: d0 11 pushm r0-r3
48370 + *[0-9a-f]*: dc c1 pushm r8-r10,lr-pc
48371 + *[0-9a-f]*: d0 91 pushm r0-r3,r10
48372 + *[0-9a-f]*: d2 41 pushm r8-r9,r12
48373 +
48374 +[0-9a-f]* <popm_n>:
48375 +.*
48376 +.*
48377 +.*
48378 +.*
48379 +.*
48380 +.*
48381 +.*
48382 +.*
48383 +
48384 +[0-9a-f]* <pushm_n>:
48385 +.*
48386 +.*
48387 +.*
48388 +.*
48389 +.*
48390 +.*
48391 +.*
48392 +.*
48393 +
48394 +[0-9a-f]* <csrfcz>:
48395 + *[0-9a-f]*: d0 03 csrfcz 0x0
48396 + *[0-9a-f]*: d1 f3 csrfcz 0x1f
48397 + *[0-9a-f]*: d1 03 csrfcz 0x10
48398 + *[0-9a-f]*: d0 f3 csrfcz 0xf
48399 + *[0-9a-f]*: d0 13 csrfcz 0x1
48400 + *[0-9a-f]*: d0 53 csrfcz 0x5
48401 + *[0-9a-f]*: d0 d3 csrfcz 0xd
48402 + *[0-9a-f]*: d1 73 csrfcz 0x17
48403 +
48404 +[0-9a-f]* <ssrf>:
48405 + *[0-9a-f]*: d2 03 ssrf 0x0
48406 + *[0-9a-f]*: d3 f3 ssrf 0x1f
48407 + *[0-9a-f]*: d3 03 ssrf 0x10
48408 + *[0-9a-f]*: d2 f3 ssrf 0xf
48409 + *[0-9a-f]*: d2 13 ssrf 0x1
48410 + *[0-9a-f]*: d3 d3 ssrf 0x1d
48411 + *[0-9a-f]*: d2 d3 ssrf 0xd
48412 + *[0-9a-f]*: d2 d3 ssrf 0xd
48413 +
48414 +[0-9a-f]* <csrf>:
48415 + *[0-9a-f]*: d4 03 csrf 0x0
48416 + *[0-9a-f]*: d5 f3 csrf 0x1f
48417 + *[0-9a-f]*: d5 03 csrf 0x10
48418 + *[0-9a-f]*: d4 f3 csrf 0xf
48419 + *[0-9a-f]*: d4 13 csrf 0x1
48420 + *[0-9a-f]*: d4 a3 csrf 0xa
48421 + *[0-9a-f]*: d4 f3 csrf 0xf
48422 + *[0-9a-f]*: d4 b3 csrf 0xb
48423 +
48424 +[0-9a-f]* <rete>:
48425 + *[0-9a-f]*: d6 03 rete
48426 +
48427 +[0-9a-f]* <rets>:
48428 + *[0-9a-f]*: d6 13 rets
48429 +
48430 +[0-9a-f]* <retd>:
48431 + *[0-9a-f]*: d6 23 retd
48432 +
48433 +[0-9a-f]* <retj>:
48434 + *[0-9a-f]*: d6 33 retj
48435 +
48436 +[0-9a-f]* <tlbr>:
48437 + *[0-9a-f]*: d6 43 tlbr
48438 +
48439 +[0-9a-f]* <tlbs>:
48440 + *[0-9a-f]*: d6 53 tlbs
48441 +
48442 +[0-9a-f]* <tlbw>:
48443 + *[0-9a-f]*: d6 63 tlbw
48444 +
48445 +[0-9a-f]* <breakpoint>:
48446 + *[0-9a-f]*: d6 73 breakpoint
48447 +
48448 +[0-9a-f]* <incjosp>:
48449 + *[0-9a-f]*: d6 83 incjosp 1
48450 + *[0-9a-f]*: d6 93 incjosp 2
48451 + *[0-9a-f]*: d6 a3 incjosp 3
48452 + *[0-9a-f]*: d6 b3 incjosp 4
48453 + *[0-9a-f]*: d6 c3 incjosp -4
48454 + *[0-9a-f]*: d6 d3 incjosp -3
48455 + *[0-9a-f]*: d6 e3 incjosp -2
48456 + *[0-9a-f]*: d6 f3 incjosp -1
48457 +
48458 +[0-9a-f]* <nop>:
48459 + *[0-9a-f]*: d7 03 nop
48460 +
48461 +[0-9a-f]* <popjc>:
48462 + *[0-9a-f]*: d7 13 popjc
48463 +
48464 +[0-9a-f]* <pushjc>:
48465 + *[0-9a-f]*: d7 23 pushjc
48466 +
48467 +[0-9a-f]* <add2>:
48468 + *[0-9a-f]*: fe 0f 00 0f add pc,pc,pc
48469 + *[0-9a-f]*: f8 0c 00 3c add r12,r12,r12<<0x3
48470 + *[0-9a-f]*: ea 05 00 25 add r5,r5,r5<<0x2
48471 + *[0-9a-f]*: e8 04 00 14 add r4,r4,r4<<0x1
48472 + *[0-9a-f]*: fc 0e 00 1e add lr,lr,lr<<0x1
48473 + *[0-9a-f]*: f8 00 00 10 add r0,r12,r0<<0x1
48474 + *[0-9a-f]*: f8 04 00 09 add r9,r12,r4
48475 + *[0-9a-f]*: f8 07 00 2c add r12,r12,r7<<0x2
48476 +
48477 +[0-9a-f]* <sub2>:
48478 + *[0-9a-f]*: fe 0f 01 0f sub pc,pc,pc
48479 + *[0-9a-f]*: f8 0c 01 3c sub r12,r12,r12<<0x3
48480 + *[0-9a-f]*: ea 05 01 25 sub r5,r5,r5<<0x2
48481 + *[0-9a-f]*: e8 04 01 14 sub r4,r4,r4<<0x1
48482 + *[0-9a-f]*: fc 0e 01 1e sub lr,lr,lr<<0x1
48483 + *[0-9a-f]*: e6 04 01 0d sub sp,r3,r4
48484 + *[0-9a-f]*: ee 03 01 03 sub r3,r7,r3
48485 + *[0-9a-f]*: f4 0d 01 1d sub sp,r10,sp<<0x1
48486 +
48487 +[0-9a-f]* <divu>:
48488 + *[0-9a-f]*: fe 0f 0d 0f divu pc,pc,pc
48489 + *[0-9a-f]*: f8 0c 0d 0c divu r12,r12,r12
48490 + *[0-9a-f]*: ea 05 0d 05 divu r5,r5,r5
48491 + *[0-9a-f]*: e8 04 0d 04 divu r4,r4,r4
48492 + *[0-9a-f]*: fc 0e 0d 0e divu lr,lr,lr
48493 + *[0-9a-f]*: e8 0f 0d 0d divu sp,r4,pc
48494 + *[0-9a-f]*: ea 0d 0d 05 divu r5,r5,sp
48495 + *[0-9a-f]*: fa 00 0d 0a divu r10,sp,r0
48496 +
48497 +[0-9a-f]* <addhh_w>:
48498 + *[0-9a-f]*: fe 0f 0e 0f addhh\.w pc,pc:b,pc:b
48499 + *[0-9a-f]*: f8 0c 0e 3c addhh\.w r12,r12:t,r12:t
48500 + *[0-9a-f]*: ea 05 0e 35 addhh\.w r5,r5:t,r5:t
48501 + *[0-9a-f]*: e8 04 0e 04 addhh\.w r4,r4:b,r4:b
48502 + *[0-9a-f]*: fc 0e 0e 3e addhh\.w lr,lr:t,lr:t
48503 + *[0-9a-f]*: e0 03 0e 00 addhh\.w r0,r0:b,r3:b
48504 + *[0-9a-f]*: f8 07 0e 2e addhh\.w lr,r12:t,r7:b
48505 + *[0-9a-f]*: f4 02 0e 23 addhh\.w r3,r10:t,r2:b
48506 +
48507 +[0-9a-f]* <subhh_w>:
48508 + *[0-9a-f]*: fe 0f 0f 0f subhh\.w pc,pc:b,pc:b
48509 + *[0-9a-f]*: f8 0c 0f 3c subhh\.w r12,r12:t,r12:t
48510 + *[0-9a-f]*: ea 05 0f 35 subhh\.w r5,r5:t,r5:t
48511 + *[0-9a-f]*: e8 04 0f 04 subhh\.w r4,r4:b,r4:b
48512 + *[0-9a-f]*: fc 0e 0f 3e subhh\.w lr,lr:t,lr:t
48513 + *[0-9a-f]*: e2 07 0f 2a subhh\.w r10,r1:t,r7:b
48514 + *[0-9a-f]*: f4 0e 0f 3f subhh\.w pc,r10:t,lr:t
48515 + *[0-9a-f]*: e0 0c 0f 23 subhh\.w r3,r0:t,r12:b
48516 +
48517 +[0-9a-f]* <adc>:
48518 + *[0-9a-f]*: fe 0f 00 4f adc pc,pc,pc
48519 + *[0-9a-f]*: f8 0c 00 4c adc r12,r12,r12
48520 + *[0-9a-f]*: ea 05 00 45 adc r5,r5,r5
48521 + *[0-9a-f]*: e8 04 00 44 adc r4,r4,r4
48522 + *[0-9a-f]*: fc 0e 00 4e adc lr,lr,lr
48523 + *[0-9a-f]*: e0 07 00 44 adc r4,r0,r7
48524 + *[0-9a-f]*: e8 03 00 4d adc sp,r4,r3
48525 + *[0-9a-f]*: f8 00 00 42 adc r2,r12,r0
48526 +
48527 +[0-9a-f]* <sbc>:
48528 + *[0-9a-f]*: fe 0f 01 4f sbc pc,pc,pc
48529 + *[0-9a-f]*: f8 0c 01 4c sbc r12,r12,r12
48530 + *[0-9a-f]*: ea 05 01 45 sbc r5,r5,r5
48531 + *[0-9a-f]*: e8 04 01 44 sbc r4,r4,r4
48532 + *[0-9a-f]*: fc 0e 01 4e sbc lr,lr,lr
48533 + *[0-9a-f]*: ee 09 01 46 sbc r6,r7,r9
48534 + *[0-9a-f]*: f0 05 01 40 sbc r0,r8,r5
48535 + *[0-9a-f]*: e0 04 01 41 sbc r1,r0,r4
48536 +
48537 +[0-9a-f]* <mul_2>:
48538 + *[0-9a-f]*: fe 0f 02 4f mul pc,pc,pc
48539 + *[0-9a-f]*: f8 0c 02 4c mul r12,r12,r12
48540 + *[0-9a-f]*: ea 05 02 45 mul r5,r5,r5
48541 + *[0-9a-f]*: e8 04 02 44 mul r4,r4,r4
48542 + *[0-9a-f]*: fc 0e 02 4e mul lr,lr,lr
48543 + *[0-9a-f]*: e0 00 02 4f mul pc,r0,r0
48544 + *[0-9a-f]*: fe 0e 02 48 mul r8,pc,lr
48545 + *[0-9a-f]*: f8 0f 02 44 mul r4,r12,pc
48546 +
48547 +[0-9a-f]* <mac>:
48548 + *[0-9a-f]*: fe 0f 03 4f mac pc,pc,pc
48549 + *[0-9a-f]*: f8 0c 03 4c mac r12,r12,r12
48550 + *[0-9a-f]*: ea 05 03 45 mac r5,r5,r5
48551 + *[0-9a-f]*: e8 04 03 44 mac r4,r4,r4
48552 + *[0-9a-f]*: fc 0e 03 4e mac lr,lr,lr
48553 + *[0-9a-f]*: e8 00 03 4a mac r10,r4,r0
48554 + *[0-9a-f]*: fc 00 03 47 mac r7,lr,r0
48555 + *[0-9a-f]*: f2 0c 03 42 mac r2,r9,r12
48556 +
48557 +[0-9a-f]* <mulsd>:
48558 + *[0-9a-f]*: fe 0f 04 4f muls\.d pc,pc,pc
48559 + *[0-9a-f]*: f8 0c 04 4c muls\.d r12,r12,r12
48560 + *[0-9a-f]*: ea 05 04 45 muls\.d r5,r5,r5
48561 + *[0-9a-f]*: e8 04 04 44 muls\.d r4,r4,r4
48562 + *[0-9a-f]*: fc 0e 04 4e muls\.d lr,lr,lr
48563 + *[0-9a-f]*: f0 0e 04 42 muls\.d r2,r8,lr
48564 + *[0-9a-f]*: e0 0b 04 44 muls\.d r4,r0,r11
48565 + *[0-9a-f]*: fc 06 04 45 muls\.d r5,lr,r6
48566 +
48567 +[0-9a-f]* <macsd>:
48568 + *[0-9a-f]*: fe 0f 05 40 macs\.d r0,pc,pc
48569 + *[0-9a-f]*: f8 0c 05 4e macs\.d lr,r12,r12
48570 + *[0-9a-f]*: ea 05 05 48 macs\.d r8,r5,r5
48571 + *[0-9a-f]*: e8 04 05 46 macs\.d r6,r4,r4
48572 + *[0-9a-f]*: fc 0e 05 42 macs\.d r2,lr,lr
48573 + *[0-9a-f]*: e2 09 05 48 macs\.d r8,r1,r9
48574 + *[0-9a-f]*: f0 08 05 4e macs\.d lr,r8,r8
48575 + *[0-9a-f]*: e6 0c 05 44 macs\.d r4,r3,r12
48576 +
48577 +[0-9a-f]* <mulud>:
48578 + *[0-9a-f]*: fe 0f 06 40 mulu\.d r0,pc,pc
48579 + *[0-9a-f]*: f8 0c 06 4e mulu\.d lr,r12,r12
48580 + *[0-9a-f]*: ea 05 06 48 mulu\.d r8,r5,r5
48581 + *[0-9a-f]*: e8 04 06 46 mulu\.d r6,r4,r4
48582 + *[0-9a-f]*: fc 0e 06 42 mulu\.d r2,lr,lr
48583 + *[0-9a-f]*: ea 00 06 46 mulu\.d r6,r5,r0
48584 + *[0-9a-f]*: ec 01 06 44 mulu\.d r4,r6,r1
48585 + *[0-9a-f]*: f0 02 06 48 mulu\.d r8,r8,r2
48586 +
48587 +[0-9a-f]* <macud>:
48588 + *[0-9a-f]*: fe 0f 07 40 macu\.d r0,pc,pc
48589 + *[0-9a-f]*: f8 0c 07 4e macu\.d lr,r12,r12
48590 + *[0-9a-f]*: ea 05 07 48 macu\.d r8,r5,r5
48591 + *[0-9a-f]*: e8 04 07 46 macu\.d r6,r4,r4
48592 + *[0-9a-f]*: fc 0e 07 42 macu\.d r2,lr,lr
48593 + *[0-9a-f]*: fa 0b 07 46 macu\.d r6,sp,r11
48594 + *[0-9a-f]*: e8 08 07 42 macu\.d r2,r4,r8
48595 + *[0-9a-f]*: f4 09 07 46 macu\.d r6,r10,r9
48596 +
48597 +[0-9a-f]* <asr_1>:
48598 + *[0-9a-f]*: fe 0f 08 4f asr pc,pc,pc
48599 + *[0-9a-f]*: f8 0c 08 4c asr r12,r12,r12
48600 + *[0-9a-f]*: ea 05 08 45 asr r5,r5,r5
48601 + *[0-9a-f]*: e8 04 08 44 asr r4,r4,r4
48602 + *[0-9a-f]*: fc 0e 08 4e asr lr,lr,lr
48603 + *[0-9a-f]*: ec 0f 08 4f asr pc,r6,pc
48604 + *[0-9a-f]*: ec 0c 08 40 asr r0,r6,r12
48605 + *[0-9a-f]*: fa 00 08 44 asr r4,sp,r0
48606 +
48607 +[0-9a-f]* <lsl_1>:
48608 + *[0-9a-f]*: fe 0f 09 4f lsl pc,pc,pc
48609 + *[0-9a-f]*: f8 0c 09 4c lsl r12,r12,r12
48610 + *[0-9a-f]*: ea 05 09 45 lsl r5,r5,r5
48611 + *[0-9a-f]*: e8 04 09 44 lsl r4,r4,r4
48612 + *[0-9a-f]*: fc 0e 09 4e lsl lr,lr,lr
48613 + *[0-9a-f]*: ea 0e 09 4e lsl lr,r5,lr
48614 + *[0-9a-f]*: fe 03 09 45 lsl r5,pc,r3
48615 + *[0-9a-f]*: fe 09 09 41 lsl r1,pc,r9
48616 +
48617 +[0-9a-f]* <lsr_1>:
48618 + *[0-9a-f]*: fe 0f 0a 4f lsr pc,pc,pc
48619 + *[0-9a-f]*: f8 0c 0a 4c lsr r12,r12,r12
48620 + *[0-9a-f]*: ea 05 0a 45 lsr r5,r5,r5
48621 + *[0-9a-f]*: e8 04 0a 44 lsr r4,r4,r4
48622 + *[0-9a-f]*: fc 0e 0a 4e lsr lr,lr,lr
48623 + *[0-9a-f]*: e8 01 0a 42 lsr r2,r4,r1
48624 + *[0-9a-f]*: e2 06 0a 45 lsr r5,r1,r6
48625 + *[0-9a-f]*: ec 07 0a 4d lsr sp,r6,r7
48626 +
48627 +[0-9a-f]* <xchg>:
48628 + *[0-9a-f]*: fe 0f 0b 4f xchg pc,pc,pc
48629 + *[0-9a-f]*: f8 0c 0b 4c xchg r12,r12,r12
48630 + *[0-9a-f]*: ea 05 0b 45 xchg r5,r5,r5
48631 + *[0-9a-f]*: e8 04 0b 44 xchg r4,r4,r4
48632 + *[0-9a-f]*: fc 0e 0b 4e xchg lr,lr,lr
48633 + *[0-9a-f]*: e8 0d 0b 4e xchg lr,r4,sp
48634 + *[0-9a-f]*: ea 0c 0b 41 xchg r1,r5,r12
48635 + *[0-9a-f]*: f8 00 0b 4e xchg lr,r12,r0
48636 +
48637 +[0-9a-f]* <max>:
48638 + *[0-9a-f]*: fe 0f 0c 4f max pc,pc,pc
48639 + *[0-9a-f]*: f8 0c 0c 4c max r12,r12,r12
48640 + *[0-9a-f]*: ea 05 0c 45 max r5,r5,r5
48641 + *[0-9a-f]*: e8 04 0c 44 max r4,r4,r4
48642 + *[0-9a-f]*: fc 0e 0c 4e max lr,lr,lr
48643 + *[0-9a-f]*: e4 0d 0c 4e max lr,r2,sp
48644 + *[0-9a-f]*: f4 09 0c 44 max r4,r10,r9
48645 + *[0-9a-f]*: f2 0e 0c 4e max lr,r9,lr
48646 +
48647 +[0-9a-f]* <min>:
48648 + *[0-9a-f]*: fe 0f 0d 4f min pc,pc,pc
48649 + *[0-9a-f]*: f8 0c 0d 4c min r12,r12,r12
48650 + *[0-9a-f]*: ea 05 0d 45 min r5,r5,r5
48651 + *[0-9a-f]*: e8 04 0d 44 min r4,r4,r4
48652 + *[0-9a-f]*: fc 0e 0d 4e min lr,lr,lr
48653 + *[0-9a-f]*: ee 08 0d 49 min r9,r7,r8
48654 + *[0-9a-f]*: ea 05 0d 4d min sp,r5,r5
48655 + *[0-9a-f]*: e2 04 0d 44 min r4,r1,r4
48656 +
48657 +[0-9a-f]* <addabs>:
48658 + *[0-9a-f]*: fe 0f 0e 4f addabs pc,pc,pc
48659 + *[0-9a-f]*: f8 0c 0e 4c addabs r12,r12,r12
48660 + *[0-9a-f]*: ea 05 0e 45 addabs r5,r5,r5
48661 + *[0-9a-f]*: e8 04 0e 44 addabs r4,r4,r4
48662 + *[0-9a-f]*: fc 0e 0e 4e addabs lr,lr,lr
48663 + *[0-9a-f]*: f4 00 0e 47 addabs r7,r10,r0
48664 + *[0-9a-f]*: f2 07 0e 49 addabs r9,r9,r7
48665 + *[0-9a-f]*: f0 0c 0e 42 addabs r2,r8,r12
48666 +
48667 +[0-9a-f]* <mulnhh_w>:
48668 + *[0-9a-f]*: fe 0f 01 8f mulnhh\.w pc,pc:b,pc:b
48669 + *[0-9a-f]*: f8 0c 01 bc mulnhh\.w r12,r12:t,r12:t
48670 + *[0-9a-f]*: ea 05 01 b5 mulnhh\.w r5,r5:t,r5:t
48671 + *[0-9a-f]*: e8 04 01 84 mulnhh\.w r4,r4:b,r4:b
48672 + *[0-9a-f]*: fc 0e 01 be mulnhh\.w lr,lr:t,lr:t
48673 + *[0-9a-f]*: fa 09 01 ab mulnhh\.w r11,sp:t,r9:b
48674 + *[0-9a-f]*: e8 0e 01 9d mulnhh\.w sp,r4:b,lr:t
48675 + *[0-9a-f]*: e4 0b 01 ac mulnhh\.w r12,r2:t,r11:b
48676 +
48677 +[0-9a-f]* <mulnwh_d>:
48678 + *[0-9a-f]*: fe 0f 02 80 mulnwh\.d r0,pc,pc:b
48679 + *[0-9a-f]*: f8 0c 02 9e mulnwh\.d lr,r12,r12:t
48680 + *[0-9a-f]*: ea 05 02 98 mulnwh\.d r8,r5,r5:t
48681 + *[0-9a-f]*: e8 04 02 86 mulnwh\.d r6,r4,r4:b
48682 + *[0-9a-f]*: fc 0e 02 92 mulnwh\.d r2,lr,lr:t
48683 + *[0-9a-f]*: e6 02 02 9e mulnwh\.d lr,r3,r2:t
48684 + *[0-9a-f]*: ea 09 02 84 mulnwh\.d r4,r5,r9:b
48685 + *[0-9a-f]*: e8 04 02 9c mulnwh\.d r12,r4,r4:t
48686 +
48687 +[0-9a-f]* <machh_w>:
48688 + *[0-9a-f]*: fe 0f 04 8f machh\.w pc,pc:b,pc:b
48689 + *[0-9a-f]*: f8 0c 04 bc machh\.w r12,r12:t,r12:t
48690 + *[0-9a-f]*: ea 05 04 b5 machh\.w r5,r5:t,r5:t
48691 + *[0-9a-f]*: e8 04 04 84 machh\.w r4,r4:b,r4:b
48692 + *[0-9a-f]*: fc 0e 04 be machh\.w lr,lr:t,lr:t
48693 + *[0-9a-f]*: ea 01 04 9e machh\.w lr,r5:b,r1:t
48694 + *[0-9a-f]*: ec 07 04 89 machh\.w r9,r6:b,r7:b
48695 + *[0-9a-f]*: fc 0c 04 a5 machh\.w r5,lr:t,r12:b
48696 +
48697 +[0-9a-f]* <machh_d>:
48698 + *[0-9a-f]*: fe 0f 05 80 machh\.d r0,pc:b,pc:b
48699 + *[0-9a-f]*: f8 0c 05 be machh\.d lr,r12:t,r12:t
48700 + *[0-9a-f]*: ea 05 05 b8 machh\.d r8,r5:t,r5:t
48701 + *[0-9a-f]*: e8 04 05 86 machh\.d r6,r4:b,r4:b
48702 + *[0-9a-f]*: fc 0e 05 b2 machh\.d r2,lr:t,lr:t
48703 + *[0-9a-f]*: e0 08 05 8a machh\.d r10,r0:b,r8:b
48704 + *[0-9a-f]*: e8 05 05 9e machh\.d lr,r4:b,r5:t
48705 + *[0-9a-f]*: e0 04 05 98 machh\.d r8,r0:b,r4:t
48706 +
48707 +[0-9a-f]* <macsathh_w>:
48708 + *[0-9a-f]*: fe 0f 06 8f macsathh\.w pc,pc:b,pc:b
48709 + *[0-9a-f]*: f8 0c 06 bc macsathh\.w r12,r12:t,r12:t
48710 + *[0-9a-f]*: ea 05 06 b5 macsathh\.w r5,r5:t,r5:t
48711 + *[0-9a-f]*: e8 04 06 84 macsathh\.w r4,r4:b,r4:b
48712 + *[0-9a-f]*: fc 0e 06 be macsathh\.w lr,lr:t,lr:t
48713 + *[0-9a-f]*: ee 0f 06 b7 macsathh\.w r7,r7:t,pc:t
48714 + *[0-9a-f]*: e4 04 06 a4 macsathh\.w r4,r2:t,r4:b
48715 + *[0-9a-f]*: f0 03 06 b4 macsathh\.w r4,r8:t,r3:t
48716 +
48717 +[0-9a-f]* <mulhh_w>:
48718 + *[0-9a-f]*: fe 0f 07 8f mulhh\.w pc,pc:b,pc:b
48719 + *[0-9a-f]*: f8 0c 07 bc mulhh\.w r12,r12:t,r12:t
48720 + *[0-9a-f]*: ea 05 07 b5 mulhh\.w r5,r5:t,r5:t
48721 + *[0-9a-f]*: e8 04 07 84 mulhh\.w r4,r4:b,r4:b
48722 + *[0-9a-f]*: fc 0e 07 be mulhh\.w lr,lr:t,lr:t
48723 + *[0-9a-f]*: e8 09 07 a7 mulhh\.w r7,r4:t,r9:b
48724 + *[0-9a-f]*: e6 07 07 bf mulhh\.w pc,r3:t,r7:t
48725 + *[0-9a-f]*: e8 09 07 9f mulhh\.w pc,r4:b,r9:t
48726 +
48727 +[0-9a-f]* <mulsathh_h>:
48728 + *[0-9a-f]*: fe 0f 08 8f mulsathh\.h pc,pc:b,pc:b
48729 + *[0-9a-f]*: f8 0c 08 bc mulsathh\.h r12,r12:t,r12:t
48730 + *[0-9a-f]*: ea 05 08 b5 mulsathh\.h r5,r5:t,r5:t
48731 + *[0-9a-f]*: e8 04 08 84 mulsathh\.h r4,r4:b,r4:b
48732 + *[0-9a-f]*: fc 0e 08 be mulsathh\.h lr,lr:t,lr:t
48733 + *[0-9a-f]*: e2 0d 08 83 mulsathh\.h r3,r1:b,sp:b
48734 + *[0-9a-f]*: fc 0b 08 ab mulsathh\.h r11,lr:t,r11:b
48735 + *[0-9a-f]*: f0 0b 08 98 mulsathh\.h r8,r8:b,r11:t
48736 +
48737 +[0-9a-f]* <mulsathh_w>:
48738 + *[0-9a-f]*: fe 0f 09 8f mulsathh\.w pc,pc:b,pc:b
48739 + *[0-9a-f]*: f8 0c 09 bc mulsathh\.w r12,r12:t,r12:t
48740 + *[0-9a-f]*: ea 05 09 b5 mulsathh\.w r5,r5:t,r5:t
48741 + *[0-9a-f]*: e8 04 09 84 mulsathh\.w r4,r4:b,r4:b
48742 + *[0-9a-f]*: fc 0e 09 be mulsathh\.w lr,lr:t,lr:t
48743 + *[0-9a-f]*: f6 06 09 ae mulsathh\.w lr,r11:t,r6:b
48744 + *[0-9a-f]*: ec 07 09 96 mulsathh\.w r6,r6:b,r7:t
48745 + *[0-9a-f]*: e4 03 09 8a mulsathh\.w r10,r2:b,r3:b
48746 +
48747 +[0-9a-f]* <mulsatrndhh_h>:
48748 + *[0-9a-f]*: fe 0f 0a 8f mulsatrndhh\.h pc,pc:b,pc:b
48749 + *[0-9a-f]*: f8 0c 0a bc mulsatrndhh\.h r12,r12:t,r12:t
48750 + *[0-9a-f]*: ea 05 0a b5 mulsatrndhh\.h r5,r5:t,r5:t
48751 + *[0-9a-f]*: e8 04 0a 84 mulsatrndhh\.h r4,r4:b,r4:b
48752 + *[0-9a-f]*: fc 0e 0a be mulsatrndhh\.h lr,lr:t,lr:t
48753 + *[0-9a-f]*: ec 09 0a 8b mulsatrndhh\.h r11,r6:b,r9:b
48754 + *[0-9a-f]*: e6 08 0a 9b mulsatrndhh\.h r11,r3:b,r8:t
48755 + *[0-9a-f]*: fa 07 0a b5 mulsatrndhh\.h r5,sp:t,r7:t
48756 +
48757 +[0-9a-f]* <mulsatrndwh_w>:
48758 + *[0-9a-f]*: fe 0f 0b 8f mulsatrndwh\.w pc,pc,pc:b
48759 + *[0-9a-f]*: f8 0c 0b 9c mulsatrndwh\.w r12,r12,r12:t
48760 + *[0-9a-f]*: ea 05 0b 95 mulsatrndwh\.w r5,r5,r5:t
48761 + *[0-9a-f]*: e8 04 0b 84 mulsatrndwh\.w r4,r4,r4:b
48762 + *[0-9a-f]*: fc 0e 0b 9e mulsatrndwh\.w lr,lr,lr:t
48763 + *[0-9a-f]*: f8 00 0b 85 mulsatrndwh\.w r5,r12,r0:b
48764 + *[0-9a-f]*: f4 0f 0b 87 mulsatrndwh\.w r7,r10,pc:b
48765 + *[0-9a-f]*: f0 05 0b 9a mulsatrndwh\.w r10,r8,r5:t
48766 +
48767 +[0-9a-f]* <macwh_d>:
48768 + *[0-9a-f]*: fe 0f 0c 80 macwh\.d r0,pc,pc:b
48769 + *[0-9a-f]*: f8 0c 0c 9e macwh\.d lr,r12,r12:t
48770 + *[0-9a-f]*: ea 05 0c 98 macwh\.d r8,r5,r5:t
48771 + *[0-9a-f]*: e8 04 0c 86 macwh\.d r6,r4,r4:b
48772 + *[0-9a-f]*: fc 0e 0c 92 macwh\.d r2,lr,lr:t
48773 + *[0-9a-f]*: f4 0c 0c 94 macwh\.d r4,r10,r12:t
48774 + *[0-9a-f]*: ee 0d 0c 84 macwh\.d r4,r7,sp:b
48775 + *[0-9a-f]*: f2 0b 0c 8e macwh\.d lr,r9,r11:b
48776 +
48777 +[0-9a-f]* <mulwh_d>:
48778 + *[0-9a-f]*: fe 0f 0d 80 mulwh\.d r0,pc,pc:b
48779 + *[0-9a-f]*: f8 0c 0d 9e mulwh\.d lr,r12,r12:t
48780 + *[0-9a-f]*: ea 05 0d 98 mulwh\.d r8,r5,r5:t
48781 + *[0-9a-f]*: e8 04 0d 86 mulwh\.d r6,r4,r4:b
48782 + *[0-9a-f]*: fc 0e 0d 92 mulwh\.d r2,lr,lr:t
48783 + *[0-9a-f]*: ea 01 0d 8c mulwh\.d r12,r5,r1:b
48784 + *[0-9a-f]*: e2 03 0d 90 mulwh\.d r0,r1,r3:t
48785 + *[0-9a-f]*: f2 02 0d 80 mulwh\.d r0,r9,r2:b
48786 +
48787 +[0-9a-f]* <mulsatwh_w>:
48788 + *[0-9a-f]*: fe 0f 0e 8f mulsatwh\.w pc,pc,pc:b
48789 + *[0-9a-f]*: f8 0c 0e 9c mulsatwh\.w r12,r12,r12:t
48790 + *[0-9a-f]*: ea 05 0e 95 mulsatwh\.w r5,r5,r5:t
48791 + *[0-9a-f]*: e8 04 0e 84 mulsatwh\.w r4,r4,r4:b
48792 + *[0-9a-f]*: fc 0e 0e 9e mulsatwh\.w lr,lr,lr:t
48793 + *[0-9a-f]*: fe 0a 0e 9b mulsatwh\.w r11,pc,r10:t
48794 + *[0-9a-f]*: f8 09 0e 9d mulsatwh\.w sp,r12,r9:t
48795 + *[0-9a-f]*: e6 02 0e 90 mulsatwh\.w r0,r3,r2:t
48796 +
48797 +[0-9a-f]* <ldw7>:
48798 + *[0-9a-f]*: fe 0f 0f 8f ld\.w pc,pc\[pc:b<<2\]
48799 + *[0-9a-f]*: f8 0c 0f bc ld\.w r12,r12\[r12:t<<2\]
48800 + *[0-9a-f]*: ea 05 0f a5 ld\.w r5,r5\[r5:u<<2\]
48801 + *[0-9a-f]*: e8 04 0f 94 ld\.w r4,r4\[r4:l<<2\]
48802 + *[0-9a-f]*: fc 0e 0f 9e ld\.w lr,lr\[lr:l<<2\]
48803 + *[0-9a-f]*: f4 06 0f 99 ld\.w r9,r10\[r6:l<<2\]
48804 + *[0-9a-f]*: f4 0a 0f 82 ld\.w r2,r10\[r10:b<<2\]
48805 + *[0-9a-f]*: ea 0f 0f 8b ld\.w r11,r5\[pc:b<<2\]
48806 +
48807 +[0-9a-f]* <satadd_w>:
48808 + *[0-9a-f]*: fe 0f 00 cf satadd\.w pc,pc,pc
48809 + *[0-9a-f]*: f8 0c 00 cc satadd\.w r12,r12,r12
48810 + *[0-9a-f]*: ea 05 00 c5 satadd\.w r5,r5,r5
48811 + *[0-9a-f]*: e8 04 00 c4 satadd\.w r4,r4,r4
48812 + *[0-9a-f]*: fc 0e 00 ce satadd\.w lr,lr,lr
48813 + *[0-9a-f]*: f0 0b 00 c4 satadd\.w r4,r8,r11
48814 + *[0-9a-f]*: f8 06 00 c3 satadd\.w r3,r12,r6
48815 + *[0-9a-f]*: fc 09 00 c3 satadd\.w r3,lr,r9
48816 +
48817 +[0-9a-f]* <satsub_w1>:
48818 + *[0-9a-f]*: fe 0f 01 cf satsub\.w pc,pc,pc
48819 + *[0-9a-f]*: f8 0c 01 cc satsub\.w r12,r12,r12
48820 + *[0-9a-f]*: ea 05 01 c5 satsub\.w r5,r5,r5
48821 + *[0-9a-f]*: e8 04 01 c4 satsub\.w r4,r4,r4
48822 + *[0-9a-f]*: fc 0e 01 ce satsub\.w lr,lr,lr
48823 + *[0-9a-f]*: fa 00 01 c8 satsub\.w r8,sp,r0
48824 + *[0-9a-f]*: f0 04 01 c9 satsub\.w r9,r8,r4
48825 + *[0-9a-f]*: fc 02 01 cf satsub\.w pc,lr,r2
48826 +
48827 +[0-9a-f]* <satadd_h>:
48828 + *[0-9a-f]*: fe 0f 02 cf satadd\.h pc,pc,pc
48829 + *[0-9a-f]*: f8 0c 02 cc satadd\.h r12,r12,r12
48830 + *[0-9a-f]*: ea 05 02 c5 satadd\.h r5,r5,r5
48831 + *[0-9a-f]*: e8 04 02 c4 satadd\.h r4,r4,r4
48832 + *[0-9a-f]*: fc 0e 02 ce satadd\.h lr,lr,lr
48833 + *[0-9a-f]*: e6 09 02 c7 satadd\.h r7,r3,r9
48834 + *[0-9a-f]*: e0 02 02 c1 satadd\.h r1,r0,r2
48835 + *[0-9a-f]*: e8 0e 02 c1 satadd\.h r1,r4,lr
48836 +
48837 +[0-9a-f]* <satsub_h>:
48838 + *[0-9a-f]*: fe 0f 03 cf satsub\.h pc,pc,pc
48839 + *[0-9a-f]*: f8 0c 03 cc satsub\.h r12,r12,r12
48840 + *[0-9a-f]*: ea 05 03 c5 satsub\.h r5,r5,r5
48841 + *[0-9a-f]*: e8 04 03 c4 satsub\.h r4,r4,r4
48842 + *[0-9a-f]*: fc 0e 03 ce satsub\.h lr,lr,lr
48843 + *[0-9a-f]*: fc 03 03 ce satsub\.h lr,lr,r3
48844 + *[0-9a-f]*: ec 05 03 cb satsub\.h r11,r6,r5
48845 + *[0-9a-f]*: fa 00 03 c3 satsub\.h r3,sp,r0
48846 +
48847 +[0-9a-f]* <mul3>:
48848 + *[0-9a-f]*: fe 0f 10 00 mul pc,pc,0
48849 + *[0-9a-f]*: f8 0c 10 ff mul r12,r12,-1
48850 + *[0-9a-f]*: ea 05 10 80 mul r5,r5,-128
48851 + *[0-9a-f]*: e8 04 10 7f mul r4,r4,127
48852 + *[0-9a-f]*: fc 0e 10 01 mul lr,lr,1
48853 + *[0-9a-f]*: e4 0c 10 f9 mul r12,r2,-7
48854 + *[0-9a-f]*: fe 01 10 5f mul r1,pc,95
48855 + *[0-9a-f]*: ec 04 10 13 mul r4,r6,19
48856 +
48857 +[0-9a-f]* <rsub2>:
48858 + *[0-9a-f]*: fe 0f 11 00 rsub pc,pc,0
48859 + *[0-9a-f]*: f8 0c 11 ff rsub r12,r12,-1
48860 + *[0-9a-f]*: ea 05 11 80 rsub r5,r5,-128
48861 + *[0-9a-f]*: e8 04 11 7f rsub r4,r4,127
48862 + *[0-9a-f]*: fc 0e 11 01 rsub lr,lr,1
48863 + *[0-9a-f]*: fc 09 11 60 rsub r9,lr,96
48864 + *[0-9a-f]*: e2 0b 11 38 rsub r11,r1,56
48865 + *[0-9a-f]*: ee 00 11 a9 rsub r0,r7,-87
48866 +
48867 +[0-9a-f]* <clz>:
48868 + *[0-9a-f]*: fe 0f 12 00 clz pc,pc
48869 + *[0-9a-f]*: f8 0c 12 00 clz r12,r12
48870 + *[0-9a-f]*: ea 05 12 00 clz r5,r5
48871 + *[0-9a-f]*: e8 04 12 00 clz r4,r4
48872 + *[0-9a-f]*: fc 0e 12 00 clz lr,lr
48873 + *[0-9a-f]*: e6 02 12 00 clz r2,r3
48874 + *[0-9a-f]*: f6 05 12 00 clz r5,r11
48875 + *[0-9a-f]*: e6 0f 12 00 clz pc,r3
48876 +
48877 +[0-9a-f]* <cpc1>:
48878 + *[0-9a-f]*: fe 0f 13 00 cpc pc,pc
48879 + *[0-9a-f]*: f8 0c 13 00 cpc r12,r12
48880 + *[0-9a-f]*: ea 05 13 00 cpc r5,r5
48881 + *[0-9a-f]*: e8 04 13 00 cpc r4,r4
48882 + *[0-9a-f]*: fc 0e 13 00 cpc lr,lr
48883 + *[0-9a-f]*: e8 0f 13 00 cpc pc,r4
48884 + *[0-9a-f]*: f2 05 13 00 cpc r5,r9
48885 + *[0-9a-f]*: ee 06 13 00 cpc r6,r7
48886 +
48887 +[0-9a-f]* <asr3>:
48888 + *[0-9a-f]*: fe 0f 14 00 asr pc,pc,0x0
48889 + *[0-9a-f]*: f8 0c 14 1f asr r12,r12,0x1f
48890 + *[0-9a-f]*: ea 05 14 10 asr r5,r5,0x10
48891 + *[0-9a-f]*: e8 04 14 0f asr r4,r4,0xf
48892 + *[0-9a-f]*: fc 0e 14 01 asr lr,lr,0x1
48893 + *[0-9a-f]*: f6 04 14 13 asr r4,r11,0x13
48894 + *[0-9a-f]*: fe 0d 14 1a asr sp,pc,0x1a
48895 + *[0-9a-f]*: fa 0b 14 08 asr r11,sp,0x8
48896 +
48897 +[0-9a-f]* <lsl3>:
48898 + *[0-9a-f]*: fe 0f 15 00 lsl pc,pc,0x0
48899 + *[0-9a-f]*: f8 0c 15 1f lsl r12,r12,0x1f
48900 + *[0-9a-f]*: ea 05 15 10 lsl r5,r5,0x10
48901 + *[0-9a-f]*: e8 04 15 0f lsl r4,r4,0xf
48902 + *[0-9a-f]*: fc 0e 15 01 lsl lr,lr,0x1
48903 + *[0-9a-f]*: f4 08 15 11 lsl r8,r10,0x11
48904 + *[0-9a-f]*: fc 02 15 03 lsl r2,lr,0x3
48905 + *[0-9a-f]*: f6 0e 15 0e lsl lr,r11,0xe
48906 +
48907 +[0-9a-f]* <lsr3>:
48908 + *[0-9a-f]*: fe 0f 16 00 lsr pc,pc,0x0
48909 + *[0-9a-f]*: f8 0c 16 1f lsr r12,r12,0x1f
48910 + *[0-9a-f]*: ea 05 16 10 lsr r5,r5,0x10
48911 + *[0-9a-f]*: e8 04 16 0f lsr r4,r4,0xf
48912 + *[0-9a-f]*: fc 0e 16 01 lsr lr,lr,0x1
48913 + *[0-9a-f]*: e6 04 16 1f lsr r4,r3,0x1f
48914 + *[0-9a-f]*: f2 0f 16 0e lsr pc,r9,0xe
48915 + *[0-9a-f]*: e0 03 16 06 lsr r3,r0,0x6
48916 +
48917 +[0-9a-f]* <movc1>:
48918 + *[0-9a-f]*: fe 0f 17 00 moveq pc,pc
48919 + *[0-9a-f]*: f8 0c 17 f0 moval r12,r12
48920 + *[0-9a-f]*: ea 05 17 80 movls r5,r5
48921 + *[0-9a-f]*: e8 04 17 70 movpl r4,r4
48922 + *[0-9a-f]*: fc 0e 17 10 movne lr,lr
48923 + *[0-9a-f]*: f6 0f 17 10 movne pc,r11
48924 + *[0-9a-f]*: e4 0a 17 60 movmi r10,r2
48925 + *[0-9a-f]*: f8 08 17 80 movls r8,r12
48926 +
48927 +[0-9a-f]* <padd_h>:
48928 + *[0-9a-f]*: fe 0f 20 0f padd\.h pc,pc,pc
48929 + *[0-9a-f]*: f8 0c 20 0c padd\.h r12,r12,r12
48930 + *[0-9a-f]*: ea 05 20 05 padd\.h r5,r5,r5
48931 + *[0-9a-f]*: e8 04 20 04 padd\.h r4,r4,r4
48932 + *[0-9a-f]*: fc 0e 20 0e padd\.h lr,lr,lr
48933 + *[0-9a-f]*: e4 07 20 08 padd\.h r8,r2,r7
48934 + *[0-9a-f]*: e0 03 20 00 padd\.h r0,r0,r3
48935 + *[0-9a-f]*: f6 06 20 0d padd\.h sp,r11,r6
48936 +
48937 +[0-9a-f]* <psub_h>:
48938 + *[0-9a-f]*: fe 0f 20 1f psub\.h pc,pc,pc
48939 + *[0-9a-f]*: f8 0c 20 1c psub\.h r12,r12,r12
48940 + *[0-9a-f]*: ea 05 20 15 psub\.h r5,r5,r5
48941 + *[0-9a-f]*: e8 04 20 14 psub\.h r4,r4,r4
48942 + *[0-9a-f]*: fc 0e 20 1e psub\.h lr,lr,lr
48943 + *[0-9a-f]*: ec 08 20 1e psub\.h lr,r6,r8
48944 + *[0-9a-f]*: e2 0d 20 10 psub\.h r0,r1,sp
48945 + *[0-9a-f]*: fe 0d 20 1f psub\.h pc,pc,sp
48946 +
48947 +[0-9a-f]* <paddx_h>:
48948 + *[0-9a-f]*: fe 0f 20 2f paddx\.h pc,pc,pc
48949 + *[0-9a-f]*: f8 0c 20 2c paddx\.h r12,r12,r12
48950 + *[0-9a-f]*: ea 05 20 25 paddx\.h r5,r5,r5
48951 + *[0-9a-f]*: e8 04 20 24 paddx\.h r4,r4,r4
48952 + *[0-9a-f]*: fc 0e 20 2e paddx\.h lr,lr,lr
48953 + *[0-9a-f]*: fe 01 20 2f paddx\.h pc,pc,r1
48954 + *[0-9a-f]*: e8 05 20 2a paddx\.h r10,r4,r5
48955 + *[0-9a-f]*: fe 02 20 25 paddx\.h r5,pc,r2
48956 +
48957 +[0-9a-f]* <psubx_h>:
48958 + *[0-9a-f]*: fe 0f 20 3f psubx\.h pc,pc,pc
48959 + *[0-9a-f]*: f8 0c 20 3c psubx\.h r12,r12,r12
48960 + *[0-9a-f]*: ea 05 20 35 psubx\.h r5,r5,r5
48961 + *[0-9a-f]*: e8 04 20 34 psubx\.h r4,r4,r4
48962 + *[0-9a-f]*: fc 0e 20 3e psubx\.h lr,lr,lr
48963 + *[0-9a-f]*: f8 05 20 35 psubx\.h r5,r12,r5
48964 + *[0-9a-f]*: f0 03 20 33 psubx\.h r3,r8,r3
48965 + *[0-9a-f]*: e4 03 20 35 psubx\.h r5,r2,r3
48966 +
48967 +[0-9a-f]* <padds_sh>:
48968 + *[0-9a-f]*: fe 0f 20 4f padds\.sh pc,pc,pc
48969 + *[0-9a-f]*: f8 0c 20 4c padds\.sh r12,r12,r12
48970 + *[0-9a-f]*: ea 05 20 45 padds\.sh r5,r5,r5
48971 + *[0-9a-f]*: e8 04 20 44 padds\.sh r4,r4,r4
48972 + *[0-9a-f]*: fc 0e 20 4e padds\.sh lr,lr,lr
48973 + *[0-9a-f]*: fc 02 20 49 padds\.sh r9,lr,r2
48974 + *[0-9a-f]*: f0 01 20 46 padds\.sh r6,r8,r1
48975 + *[0-9a-f]*: e8 0a 20 46 padds\.sh r6,r4,r10
48976 +
48977 +[0-9a-f]* <psubs_sh>:
48978 + *[0-9a-f]*: fe 0f 20 5f psubs\.sh pc,pc,pc
48979 + *[0-9a-f]*: f8 0c 20 5c psubs\.sh r12,r12,r12
48980 + *[0-9a-f]*: ea 05 20 55 psubs\.sh r5,r5,r5
48981 + *[0-9a-f]*: e8 04 20 54 psubs\.sh r4,r4,r4
48982 + *[0-9a-f]*: fc 0e 20 5e psubs\.sh lr,lr,lr
48983 + *[0-9a-f]*: fc 0b 20 56 psubs\.sh r6,lr,r11
48984 + *[0-9a-f]*: f8 04 20 52 psubs\.sh r2,r12,r4
48985 + *[0-9a-f]*: f2 00 20 50 psubs\.sh r0,r9,r0
48986 +
48987 +[0-9a-f]* <paddxs_sh>:
48988 + *[0-9a-f]*: fe 0f 20 6f paddxs\.sh pc,pc,pc
48989 + *[0-9a-f]*: f8 0c 20 6c paddxs\.sh r12,r12,r12
48990 + *[0-9a-f]*: ea 05 20 65 paddxs\.sh r5,r5,r5
48991 + *[0-9a-f]*: e8 04 20 64 paddxs\.sh r4,r4,r4
48992 + *[0-9a-f]*: fc 0e 20 6e paddxs\.sh lr,lr,lr
48993 + *[0-9a-f]*: e6 09 20 60 paddxs\.sh r0,r3,r9
48994 + *[0-9a-f]*: f4 0b 20 6f paddxs\.sh pc,r10,r11
48995 + *[0-9a-f]*: f4 0f 20 6f paddxs\.sh pc,r10,pc
48996 +
48997 +[0-9a-f]* <psubxs_sh>:
48998 + *[0-9a-f]*: fe 0f 20 7f psubxs\.sh pc,pc,pc
48999 + *[0-9a-f]*: f8 0c 20 7c psubxs\.sh r12,r12,r12
49000 + *[0-9a-f]*: ea 05 20 75 psubxs\.sh r5,r5,r5
49001 + *[0-9a-f]*: e8 04 20 74 psubxs\.sh r4,r4,r4
49002 + *[0-9a-f]*: fc 0e 20 7e psubxs\.sh lr,lr,lr
49003 + *[0-9a-f]*: e8 04 20 77 psubxs\.sh r7,r4,r4
49004 + *[0-9a-f]*: f0 03 20 77 psubxs\.sh r7,r8,r3
49005 + *[0-9a-f]*: ec 05 20 7f psubxs\.sh pc,r6,r5
49006 +
49007 +[0-9a-f]* <padds_uh>:
49008 + *[0-9a-f]*: fe 0f 20 8f padds\.uh pc,pc,pc
49009 + *[0-9a-f]*: f8 0c 20 8c padds\.uh r12,r12,r12
49010 + *[0-9a-f]*: ea 05 20 85 padds\.uh r5,r5,r5
49011 + *[0-9a-f]*: e8 04 20 84 padds\.uh r4,r4,r4
49012 + *[0-9a-f]*: fc 0e 20 8e padds\.uh lr,lr,lr
49013 + *[0-9a-f]*: f6 07 20 8c padds\.uh r12,r11,r7
49014 + *[0-9a-f]*: f0 0e 20 87 padds\.uh r7,r8,lr
49015 + *[0-9a-f]*: f2 07 20 86 padds\.uh r6,r9,r7
49016 +
49017 +[0-9a-f]* <psubs_uh>:
49018 + *[0-9a-f]*: fe 0f 20 9f psubs\.uh pc,pc,pc
49019 + *[0-9a-f]*: f8 0c 20 9c psubs\.uh r12,r12,r12
49020 + *[0-9a-f]*: ea 05 20 95 psubs\.uh r5,r5,r5
49021 + *[0-9a-f]*: e8 04 20 94 psubs\.uh r4,r4,r4
49022 + *[0-9a-f]*: fc 0e 20 9e psubs\.uh lr,lr,lr
49023 + *[0-9a-f]*: f4 06 20 9e psubs\.uh lr,r10,r6
49024 + *[0-9a-f]*: e4 0f 20 9d psubs\.uh sp,r2,pc
49025 + *[0-9a-f]*: f2 02 20 92 psubs\.uh r2,r9,r2
49026 +
49027 +[0-9a-f]* <paddxs_uh>:
49028 + *[0-9a-f]*: fe 0f 20 af paddxs\.uh pc,pc,pc
49029 + *[0-9a-f]*: f8 0c 20 ac paddxs\.uh r12,r12,r12
49030 + *[0-9a-f]*: ea 05 20 a5 paddxs\.uh r5,r5,r5
49031 + *[0-9a-f]*: e8 04 20 a4 paddxs\.uh r4,r4,r4
49032 + *[0-9a-f]*: fc 0e 20 ae paddxs\.uh lr,lr,lr
49033 + *[0-9a-f]*: f2 05 20 a7 paddxs\.uh r7,r9,r5
49034 + *[0-9a-f]*: e2 04 20 a9 paddxs\.uh r9,r1,r4
49035 + *[0-9a-f]*: e4 03 20 a5 paddxs\.uh r5,r2,r3
49036 +
49037 +[0-9a-f]* <psubxs_uh>:
49038 + *[0-9a-f]*: fe 0f 20 bf psubxs\.uh pc,pc,pc
49039 + *[0-9a-f]*: f8 0c 20 bc psubxs\.uh r12,r12,r12
49040 + *[0-9a-f]*: ea 05 20 b5 psubxs\.uh r5,r5,r5
49041 + *[0-9a-f]*: e8 04 20 b4 psubxs\.uh r4,r4,r4
49042 + *[0-9a-f]*: fc 0e 20 be psubxs\.uh lr,lr,lr
49043 + *[0-9a-f]*: ea 0d 20 bd psubxs\.uh sp,r5,sp
49044 + *[0-9a-f]*: ec 06 20 bd psubxs\.uh sp,r6,r6
49045 + *[0-9a-f]*: f6 08 20 b3 psubxs\.uh r3,r11,r8
49046 +
49047 +[0-9a-f]* <paddh_sh>:
49048 + *[0-9a-f]*: fe 0f 20 cf paddh\.sh pc,pc,pc
49049 + *[0-9a-f]*: f8 0c 20 cc paddh\.sh r12,r12,r12
49050 + *[0-9a-f]*: ea 05 20 c5 paddh\.sh r5,r5,r5
49051 + *[0-9a-f]*: e8 04 20 c4 paddh\.sh r4,r4,r4
49052 + *[0-9a-f]*: fc 0e 20 ce paddh\.sh lr,lr,lr
49053 + *[0-9a-f]*: fa 03 20 cc paddh\.sh r12,sp,r3
49054 + *[0-9a-f]*: ea 03 20 cf paddh\.sh pc,r5,r3
49055 + *[0-9a-f]*: f0 0d 20 c8 paddh\.sh r8,r8,sp
49056 +
49057 +[0-9a-f]* <psubh_sh>:
49058 + *[0-9a-f]*: fe 0f 20 df psubh\.sh pc,pc,pc
49059 + *[0-9a-f]*: f8 0c 20 dc psubh\.sh r12,r12,r12
49060 + *[0-9a-f]*: ea 05 20 d5 psubh\.sh r5,r5,r5
49061 + *[0-9a-f]*: e8 04 20 d4 psubh\.sh r4,r4,r4
49062 + *[0-9a-f]*: fc 0e 20 de psubh\.sh lr,lr,lr
49063 + *[0-9a-f]*: ea 08 20 d1 psubh\.sh r1,r5,r8
49064 + *[0-9a-f]*: e6 06 20 d7 psubh\.sh r7,r3,r6
49065 + *[0-9a-f]*: e6 03 20 d4 psubh\.sh r4,r3,r3
49066 +
49067 +[0-9a-f]* <paddxh_sh>:
49068 + *[0-9a-f]*: fe 0f 20 ef paddxh\.sh pc,pc,pc
49069 + *[0-9a-f]*: f8 0c 20 ec paddxh\.sh r12,r12,r12
49070 + *[0-9a-f]*: ea 05 20 e5 paddxh\.sh r5,r5,r5
49071 + *[0-9a-f]*: e8 04 20 e4 paddxh\.sh r4,r4,r4
49072 + *[0-9a-f]*: fc 0e 20 ee paddxh\.sh lr,lr,lr
49073 + *[0-9a-f]*: e0 04 20 e6 paddxh\.sh r6,r0,r4
49074 + *[0-9a-f]*: f0 09 20 e9 paddxh\.sh r9,r8,r9
49075 + *[0-9a-f]*: e0 0d 20 e3 paddxh\.sh r3,r0,sp
49076 +
49077 +[0-9a-f]* <psubxh_sh>:
49078 + *[0-9a-f]*: fe 0f 20 ff psubxh\.sh pc,pc,pc
49079 + *[0-9a-f]*: f8 0c 20 fc psubxh\.sh r12,r12,r12
49080 + *[0-9a-f]*: ea 05 20 f5 psubxh\.sh r5,r5,r5
49081 + *[0-9a-f]*: e8 04 20 f4 psubxh\.sh r4,r4,r4
49082 + *[0-9a-f]*: fc 0e 20 fe psubxh\.sh lr,lr,lr
49083 + *[0-9a-f]*: fe 0c 20 f4 psubxh\.sh r4,pc,r12
49084 + *[0-9a-f]*: e8 06 20 f8 psubxh\.sh r8,r4,r6
49085 + *[0-9a-f]*: f2 04 20 fc psubxh\.sh r12,r9,r4
49086 +
49087 +[0-9a-f]* <paddsub_h>:
49088 + *[0-9a-f]*: fe 0f 21 0f paddsub\.h pc,pc:b,pc:b
49089 + *[0-9a-f]*: f8 0c 21 3c paddsub\.h r12,r12:t,r12:t
49090 + *[0-9a-f]*: ea 05 21 35 paddsub\.h r5,r5:t,r5:t
49091 + *[0-9a-f]*: e8 04 21 04 paddsub\.h r4,r4:b,r4:b
49092 + *[0-9a-f]*: fc 0e 21 3e paddsub\.h lr,lr:t,lr:t
49093 + *[0-9a-f]*: e4 0e 21 25 paddsub\.h r5,r2:t,lr:b
49094 + *[0-9a-f]*: e2 08 21 07 paddsub\.h r7,r1:b,r8:b
49095 + *[0-9a-f]*: f4 05 21 36 paddsub\.h r6,r10:t,r5:t
49096 +
49097 +[0-9a-f]* <psubadd_h>:
49098 + *[0-9a-f]*: fe 0f 21 4f psubadd\.h pc,pc:b,pc:b
49099 + *[0-9a-f]*: f8 0c 21 7c psubadd\.h r12,r12:t,r12:t
49100 + *[0-9a-f]*: ea 05 21 75 psubadd\.h r5,r5:t,r5:t
49101 + *[0-9a-f]*: e8 04 21 44 psubadd\.h r4,r4:b,r4:b
49102 + *[0-9a-f]*: fc 0e 21 7e psubadd\.h lr,lr:t,lr:t
49103 + *[0-9a-f]*: f6 08 21 79 psubadd\.h r9,r11:t,r8:t
49104 + *[0-9a-f]*: ee 0e 21 7a psubadd\.h r10,r7:t,lr:t
49105 + *[0-9a-f]*: fe 0f 21 66 psubadd\.h r6,pc:t,pc:b
49106 +
49107 +[0-9a-f]* <paddsubs_sh>:
49108 + *[0-9a-f]*: fe 0f 21 8f paddsubs\.sh pc,pc:b,pc:b
49109 + *[0-9a-f]*: f8 0c 21 bc paddsubs\.sh r12,r12:t,r12:t
49110 + *[0-9a-f]*: ea 05 21 b5 paddsubs\.sh r5,r5:t,r5:t
49111 + *[0-9a-f]*: e8 04 21 84 paddsubs\.sh r4,r4:b,r4:b
49112 + *[0-9a-f]*: fc 0e 21 be paddsubs\.sh lr,lr:t,lr:t
49113 + *[0-9a-f]*: fc 00 21 a0 paddsubs\.sh r0,lr:t,r0:b
49114 + *[0-9a-f]*: e4 04 21 b9 paddsubs\.sh r9,r2:t,r4:t
49115 + *[0-9a-f]*: f2 0d 21 bc paddsubs\.sh r12,r9:t,sp:t
49116 +
49117 +[0-9a-f]* <psubadds_sh>:
49118 + *[0-9a-f]*: fe 0f 21 cf psubadds\.sh pc,pc:b,pc:b
49119 + *[0-9a-f]*: f8 0c 21 fc psubadds\.sh r12,r12:t,r12:t
49120 + *[0-9a-f]*: ea 05 21 f5 psubadds\.sh r5,r5:t,r5:t
49121 + *[0-9a-f]*: e8 04 21 c4 psubadds\.sh r4,r4:b,r4:b
49122 + *[0-9a-f]*: fc 0e 21 fe psubadds\.sh lr,lr:t,lr:t
49123 + *[0-9a-f]*: fc 01 21 df psubadds\.sh pc,lr:b,r1:t
49124 + *[0-9a-f]*: e6 0c 21 cb psubadds\.sh r11,r3:b,r12:b
49125 + *[0-9a-f]*: e4 08 21 fa psubadds\.sh r10,r2:t,r8:t
49126 +
49127 +[0-9a-f]* <paddsubs_uh>:
49128 + *[0-9a-f]*: fe 0f 22 0f paddsubs\.uh pc,pc:b,pc:b
49129 + *[0-9a-f]*: f8 0c 22 3c paddsubs\.uh r12,r12:t,r12:t
49130 + *[0-9a-f]*: ea 05 22 35 paddsubs\.uh r5,r5:t,r5:t
49131 + *[0-9a-f]*: e8 04 22 04 paddsubs\.uh r4,r4:b,r4:b
49132 + *[0-9a-f]*: fc 0e 22 3e paddsubs\.uh lr,lr:t,lr:t
49133 + *[0-9a-f]*: e4 03 22 09 paddsubs\.uh r9,r2:b,r3:b
49134 + *[0-9a-f]*: fa 07 22 1d paddsubs\.uh sp,sp:b,r7:t
49135 + *[0-9a-f]*: e0 0a 22 1e paddsubs\.uh lr,r0:b,r10:t
49136 +
49137 +[0-9a-f]* <psubadds_uh>:
49138 + *[0-9a-f]*: fe 0f 22 4f psubadds\.uh pc,pc:b,pc:b
49139 + *[0-9a-f]*: f8 0c 22 7c psubadds\.uh r12,r12:t,r12:t
49140 + *[0-9a-f]*: ea 05 22 75 psubadds\.uh r5,r5:t,r5:t
49141 + *[0-9a-f]*: e8 04 22 44 psubadds\.uh r4,r4:b,r4:b
49142 + *[0-9a-f]*: fc 0e 22 7e psubadds\.uh lr,lr:t,lr:t
49143 + *[0-9a-f]*: f2 0f 22 7c psubadds\.uh r12,r9:t,pc:t
49144 + *[0-9a-f]*: ec 08 22 48 psubadds\.uh r8,r6:b,r8:b
49145 + *[0-9a-f]*: f0 04 22 48 psubadds\.uh r8,r8:b,r4:b
49146 +
49147 +[0-9a-f]* <paddsubh_sh>:
49148 + *[0-9a-f]*: fe 0f 22 8f paddsubh\.sh pc,pc:b,pc:b
49149 + *[0-9a-f]*: f8 0c 22 bc paddsubh\.sh r12,r12:t,r12:t
49150 + *[0-9a-f]*: ea 05 22 b5 paddsubh\.sh r5,r5:t,r5:t
49151 + *[0-9a-f]*: e8 04 22 84 paddsubh\.sh r4,r4:b,r4:b
49152 + *[0-9a-f]*: fc 0e 22 be paddsubh\.sh lr,lr:t,lr:t
49153 + *[0-9a-f]*: f2 09 22 a8 paddsubh\.sh r8,r9:t,r9:b
49154 + *[0-9a-f]*: fa 01 22 b0 paddsubh\.sh r0,sp:t,r1:t
49155 + *[0-9a-f]*: e2 00 22 93 paddsubh\.sh r3,r1:b,r0:t
49156 +
49157 +[0-9a-f]* <psubaddh_sh>:
49158 + *[0-9a-f]*: fe 0f 22 cf psubaddh\.sh pc,pc:b,pc:b
49159 + *[0-9a-f]*: f8 0c 22 fc psubaddh\.sh r12,r12:t,r12:t
49160 + *[0-9a-f]*: ea 05 22 f5 psubaddh\.sh r5,r5:t,r5:t
49161 + *[0-9a-f]*: e8 04 22 c4 psubaddh\.sh r4,r4:b,r4:b
49162 + *[0-9a-f]*: fc 0e 22 fe psubaddh\.sh lr,lr:t,lr:t
49163 + *[0-9a-f]*: e6 0a 22 e7 psubaddh\.sh r7,r3:t,r10:b
49164 + *[0-9a-f]*: e4 01 22 f7 psubaddh\.sh r7,r2:t,r1:t
49165 + *[0-9a-f]*: e6 06 22 cb psubaddh\.sh r11,r3:b,r6:b
49166 +
49167 +[0-9a-f]* <padd_b>:
49168 + *[0-9a-f]*: fe 0f 23 0f padd\.b pc,pc,pc
49169 + *[0-9a-f]*: f8 0c 23 0c padd\.b r12,r12,r12
49170 + *[0-9a-f]*: ea 05 23 05 padd\.b r5,r5,r5
49171 + *[0-9a-f]*: e8 04 23 04 padd\.b r4,r4,r4
49172 + *[0-9a-f]*: fc 0e 23 0e padd\.b lr,lr,lr
49173 + *[0-9a-f]*: ec 0f 23 02 padd\.b r2,r6,pc
49174 + *[0-9a-f]*: f2 0c 23 08 padd\.b r8,r9,r12
49175 + *[0-9a-f]*: f8 03 23 05 padd\.b r5,r12,r3
49176 +
49177 +[0-9a-f]* <psub_b>:
49178 + *[0-9a-f]*: fe 0f 23 1f psub\.b pc,pc,pc
49179 + *[0-9a-f]*: f8 0c 23 1c psub\.b r12,r12,r12
49180 + *[0-9a-f]*: ea 05 23 15 psub\.b r5,r5,r5
49181 + *[0-9a-f]*: e8 04 23 14 psub\.b r4,r4,r4
49182 + *[0-9a-f]*: fc 0e 23 1e psub\.b lr,lr,lr
49183 + *[0-9a-f]*: f8 0f 23 10 psub\.b r0,r12,pc
49184 + *[0-9a-f]*: fa 0a 23 17 psub\.b r7,sp,r10
49185 + *[0-9a-f]*: fa 0c 23 15 psub\.b r5,sp,r12
49186 +
49187 +[0-9a-f]* <padds_sb>:
49188 + *[0-9a-f]*: fe 0f 23 2f padds\.sb pc,pc,pc
49189 + *[0-9a-f]*: f8 0c 23 2c padds\.sb r12,r12,r12
49190 + *[0-9a-f]*: ea 05 23 25 padds\.sb r5,r5,r5
49191 + *[0-9a-f]*: e8 04 23 24 padds\.sb r4,r4,r4
49192 + *[0-9a-f]*: fc 0e 23 2e padds\.sb lr,lr,lr
49193 + *[0-9a-f]*: f6 04 23 2d padds\.sb sp,r11,r4
49194 + *[0-9a-f]*: f4 0b 23 2b padds\.sb r11,r10,r11
49195 + *[0-9a-f]*: f8 06 23 25 padds\.sb r5,r12,r6
49196 +
49197 +[0-9a-f]* <psubs_sb>:
49198 + *[0-9a-f]*: fe 0f 23 3f psubs\.sb pc,pc,pc
49199 + *[0-9a-f]*: f8 0c 23 3c psubs\.sb r12,r12,r12
49200 + *[0-9a-f]*: ea 05 23 35 psubs\.sb r5,r5,r5
49201 + *[0-9a-f]*: e8 04 23 34 psubs\.sb r4,r4,r4
49202 + *[0-9a-f]*: fc 0e 23 3e psubs\.sb lr,lr,lr
49203 + *[0-9a-f]*: ec 08 23 37 psubs\.sb r7,r6,r8
49204 + *[0-9a-f]*: f4 09 23 3c psubs\.sb r12,r10,r9
49205 + *[0-9a-f]*: f6 00 23 3f psubs\.sb pc,r11,r0
49206 +
49207 +[0-9a-f]* <padds_ub>:
49208 + *[0-9a-f]*: fe 0f 23 4f padds\.ub pc,pc,pc
49209 + *[0-9a-f]*: f8 0c 23 4c padds\.ub r12,r12,r12
49210 + *[0-9a-f]*: ea 05 23 45 padds\.ub r5,r5,r5
49211 + *[0-9a-f]*: e8 04 23 44 padds\.ub r4,r4,r4
49212 + *[0-9a-f]*: fc 0e 23 4e padds\.ub lr,lr,lr
49213 + *[0-9a-f]*: e4 0b 23 43 padds\.ub r3,r2,r11
49214 + *[0-9a-f]*: f0 01 23 4a padds\.ub r10,r8,r1
49215 + *[0-9a-f]*: f0 0a 23 4b padds\.ub r11,r8,r10
49216 +
49217 +[0-9a-f]* <psubs_ub>:
49218 + *[0-9a-f]*: fe 0f 23 5f psubs\.ub pc,pc,pc
49219 + *[0-9a-f]*: f8 0c 23 5c psubs\.ub r12,r12,r12
49220 + *[0-9a-f]*: ea 05 23 55 psubs\.ub r5,r5,r5
49221 + *[0-9a-f]*: e8 04 23 54 psubs\.ub r4,r4,r4
49222 + *[0-9a-f]*: fc 0e 23 5e psubs\.ub lr,lr,lr
49223 + *[0-9a-f]*: e4 07 23 50 psubs\.ub r0,r2,r7
49224 + *[0-9a-f]*: ea 03 23 5e psubs\.ub lr,r5,r3
49225 + *[0-9a-f]*: ee 09 23 56 psubs\.ub r6,r7,r9
49226 +
49227 +[0-9a-f]* <paddh_ub>:
49228 + *[0-9a-f]*: fe 0f 23 6f paddh\.ub pc,pc,pc
49229 + *[0-9a-f]*: f8 0c 23 6c paddh\.ub r12,r12,r12
49230 + *[0-9a-f]*: ea 05 23 65 paddh\.ub r5,r5,r5
49231 + *[0-9a-f]*: e8 04 23 64 paddh\.ub r4,r4,r4
49232 + *[0-9a-f]*: fc 0e 23 6e paddh\.ub lr,lr,lr
49233 + *[0-9a-f]*: e2 00 23 6e paddh\.ub lr,r1,r0
49234 + *[0-9a-f]*: ee 07 23 62 paddh\.ub r2,r7,r7
49235 + *[0-9a-f]*: e2 02 23 62 paddh\.ub r2,r1,r2
49236 +
49237 +[0-9a-f]* <psubh_ub>:
49238 + *[0-9a-f]*: fe 0f 23 7f psubh\.ub pc,pc,pc
49239 + *[0-9a-f]*: f8 0c 23 7c psubh\.ub r12,r12,r12
49240 + *[0-9a-f]*: ea 05 23 75 psubh\.ub r5,r5,r5
49241 + *[0-9a-f]*: e8 04 23 74 psubh\.ub r4,r4,r4
49242 + *[0-9a-f]*: fc 0e 23 7e psubh\.ub lr,lr,lr
49243 + *[0-9a-f]*: e2 06 23 70 psubh\.ub r0,r1,r6
49244 + *[0-9a-f]*: fc 0a 23 74 psubh\.ub r4,lr,r10
49245 + *[0-9a-f]*: f0 01 23 79 psubh\.ub r9,r8,r1
49246 +
49247 +[0-9a-f]* <pmax_ub>:
49248 + *[0-9a-f]*: fe 0f 23 8f pmax\.ub pc,pc,pc
49249 + *[0-9a-f]*: f8 0c 23 8c pmax\.ub r12,r12,r12
49250 + *[0-9a-f]*: ea 05 23 85 pmax\.ub r5,r5,r5
49251 + *[0-9a-f]*: e8 04 23 84 pmax\.ub r4,r4,r4
49252 + *[0-9a-f]*: fc 0e 23 8e pmax\.ub lr,lr,lr
49253 + *[0-9a-f]*: e4 0b 23 8f pmax\.ub pc,r2,r11
49254 + *[0-9a-f]*: e2 01 23 8c pmax\.ub r12,r1,r1
49255 + *[0-9a-f]*: e4 00 23 85 pmax\.ub r5,r2,r0
49256 +
49257 +[0-9a-f]* <pmax_sh>:
49258 + *[0-9a-f]*: fe 0f 23 9f pmax\.sh pc,pc,pc
49259 + *[0-9a-f]*: f8 0c 23 9c pmax\.sh r12,r12,r12
49260 + *[0-9a-f]*: ea 05 23 95 pmax\.sh r5,r5,r5
49261 + *[0-9a-f]*: e8 04 23 94 pmax\.sh r4,r4,r4
49262 + *[0-9a-f]*: fc 0e 23 9e pmax\.sh lr,lr,lr
49263 + *[0-9a-f]*: ec 0c 23 9e pmax\.sh lr,r6,r12
49264 + *[0-9a-f]*: fe 05 23 92 pmax\.sh r2,pc,r5
49265 + *[0-9a-f]*: e4 07 23 9f pmax\.sh pc,r2,r7
49266 +
49267 +[0-9a-f]* <pmin_ub>:
49268 + *[0-9a-f]*: fe 0f 23 af pmin\.ub pc,pc,pc
49269 + *[0-9a-f]*: f8 0c 23 ac pmin\.ub r12,r12,r12
49270 + *[0-9a-f]*: ea 05 23 a5 pmin\.ub r5,r5,r5
49271 + *[0-9a-f]*: e8 04 23 a4 pmin\.ub r4,r4,r4
49272 + *[0-9a-f]*: fc 0e 23 ae pmin\.ub lr,lr,lr
49273 + *[0-9a-f]*: e2 05 23 a8 pmin\.ub r8,r1,r5
49274 + *[0-9a-f]*: f0 03 23 a1 pmin\.ub r1,r8,r3
49275 + *[0-9a-f]*: e4 07 23 a0 pmin\.ub r0,r2,r7
49276 +
49277 +[0-9a-f]* <pmin_sh>:
49278 + *[0-9a-f]*: fe 0f 23 bf pmin\.sh pc,pc,pc
49279 + *[0-9a-f]*: f8 0c 23 bc pmin\.sh r12,r12,r12
49280 + *[0-9a-f]*: ea 05 23 b5 pmin\.sh r5,r5,r5
49281 + *[0-9a-f]*: e8 04 23 b4 pmin\.sh r4,r4,r4
49282 + *[0-9a-f]*: fc 0e 23 be pmin\.sh lr,lr,lr
49283 + *[0-9a-f]*: e8 0a 23 b8 pmin\.sh r8,r4,r10
49284 + *[0-9a-f]*: f4 0c 23 be pmin\.sh lr,r10,r12
49285 + *[0-9a-f]*: ec 02 23 b2 pmin\.sh r2,r6,r2
49286 +
49287 +[0-9a-f]* <pavg_ub>:
49288 + *[0-9a-f]*: fe 0f 23 cf pavg\.ub pc,pc,pc
49289 + *[0-9a-f]*: f8 0c 23 cc pavg\.ub r12,r12,r12
49290 + *[0-9a-f]*: ea 05 23 c5 pavg\.ub r5,r5,r5
49291 + *[0-9a-f]*: e8 04 23 c4 pavg\.ub r4,r4,r4
49292 + *[0-9a-f]*: fc 0e 23 ce pavg\.ub lr,lr,lr
49293 + *[0-9a-f]*: e2 06 23 c0 pavg\.ub r0,r1,r6
49294 + *[0-9a-f]*: e6 06 23 c8 pavg\.ub r8,r3,r6
49295 + *[0-9a-f]*: f8 0a 23 cf pavg\.ub pc,r12,r10
49296 +
49297 +[0-9a-f]* <pavg_sh>:
49298 + *[0-9a-f]*: fe 0f 23 df pavg\.sh pc,pc,pc
49299 + *[0-9a-f]*: f8 0c 23 dc pavg\.sh r12,r12,r12
49300 + *[0-9a-f]*: ea 05 23 d5 pavg\.sh r5,r5,r5
49301 + *[0-9a-f]*: e8 04 23 d4 pavg\.sh r4,r4,r4
49302 + *[0-9a-f]*: fc 0e 23 de pavg\.sh lr,lr,lr
49303 + *[0-9a-f]*: fe 0d 23 d9 pavg\.sh r9,pc,sp
49304 + *[0-9a-f]*: fa 03 23 df pavg\.sh pc,sp,r3
49305 + *[0-9a-f]*: e2 09 23 d6 pavg\.sh r6,r1,r9
49306 +
49307 +[0-9a-f]* <pabs_sb>:
49308 + *[0-9a-f]*: e0 0f 23 ef pabs\.sb pc,pc
49309 + *[0-9a-f]*: e0 0c 23 ec pabs\.sb r12,r12
49310 + *[0-9a-f]*: e0 05 23 e5 pabs\.sb r5,r5
49311 + *[0-9a-f]*: e0 04 23 e4 pabs\.sb r4,r4
49312 + *[0-9a-f]*: e0 0e 23 ee pabs\.sb lr,lr
49313 + *[0-9a-f]*: e0 06 23 eb pabs\.sb r11,r6
49314 + *[0-9a-f]*: e0 09 23 ee pabs\.sb lr,r9
49315 + *[0-9a-f]*: e0 07 23 ed pabs\.sb sp,r7
49316 +
49317 +[0-9a-f]* <pabs_sh>:
49318 + *[0-9a-f]*: e0 0f 23 ff pabs\.sh pc,pc
49319 + *[0-9a-f]*: e0 0c 23 fc pabs\.sh r12,r12
49320 + *[0-9a-f]*: e0 05 23 f5 pabs\.sh r5,r5
49321 + *[0-9a-f]*: e0 04 23 f4 pabs\.sh r4,r4
49322 + *[0-9a-f]*: e0 0e 23 fe pabs\.sh lr,lr
49323 + *[0-9a-f]*: e0 03 23 ff pabs\.sh pc,r3
49324 + *[0-9a-f]*: e0 07 23 f5 pabs\.sh r5,r7
49325 + *[0-9a-f]*: e0 00 23 f4 pabs\.sh r4,r0
49326 +
49327 +[0-9a-f]* <psad>:
49328 + *[0-9a-f]*: fe 0f 24 0f psad pc,pc,pc
49329 + *[0-9a-f]*: f8 0c 24 0c psad r12,r12,r12
49330 + *[0-9a-f]*: ea 05 24 05 psad r5,r5,r5
49331 + *[0-9a-f]*: e8 04 24 04 psad r4,r4,r4
49332 + *[0-9a-f]*: fc 0e 24 0e psad lr,lr,lr
49333 + *[0-9a-f]*: f6 0b 24 09 psad r9,r11,r11
49334 + *[0-9a-f]*: e8 0d 24 0e psad lr,r4,sp
49335 + *[0-9a-f]*: e8 05 24 0e psad lr,r4,r5
49336 +
49337 +[0-9a-f]* <pasr_b>:
49338 + *[0-9a-f]*: fe 00 24 1f pasr\.b pc,pc,0x0
49339 + *[0-9a-f]*: f8 07 24 1c pasr\.b r12,r12,0x7
49340 + *[0-9a-f]*: ea 04 24 15 pasr\.b r5,r5,0x4
49341 + *[0-9a-f]*: e8 03 24 14 pasr\.b r4,r4,0x3
49342 + *[0-9a-f]*: fc 01 24 1e pasr\.b lr,lr,0x1
49343 + *[0-9a-f]*: ee 01 24 1f pasr\.b pc,r7,0x1
49344 + *[0-9a-f]*: fc 06 24 1d pasr\.b sp,lr,0x6
49345 + *[0-9a-f]*: e6 02 24 1d pasr\.b sp,r3,0x2
49346 +
49347 +[0-9a-f]* <plsl_b>:
49348 + *[0-9a-f]*: fe 00 24 2f plsl\.b pc,pc,0x0
49349 + *[0-9a-f]*: f8 07 24 2c plsl\.b r12,r12,0x7
49350 + *[0-9a-f]*: ea 04 24 25 plsl\.b r5,r5,0x4
49351 + *[0-9a-f]*: e8 03 24 24 plsl\.b r4,r4,0x3
49352 + *[0-9a-f]*: fc 01 24 2e plsl\.b lr,lr,0x1
49353 + *[0-9a-f]*: f6 04 24 22 plsl\.b r2,r11,0x4
49354 + *[0-9a-f]*: ea 07 24 28 plsl\.b r8,r5,0x7
49355 + *[0-9a-f]*: e0 02 24 2f plsl\.b pc,r0,0x2
49356 +
49357 +[0-9a-f]* <plsr_b>:
49358 + *[0-9a-f]*: fe 00 24 3f plsr\.b pc,pc,0x0
49359 + *[0-9a-f]*: f8 07 24 3c plsr\.b r12,r12,0x7
49360 + *[0-9a-f]*: ea 04 24 35 plsr\.b r5,r5,0x4
49361 + *[0-9a-f]*: e8 03 24 34 plsr\.b r4,r4,0x3
49362 + *[0-9a-f]*: fc 01 24 3e plsr\.b lr,lr,0x1
49363 + *[0-9a-f]*: e2 02 24 3c plsr\.b r12,r1,0x2
49364 + *[0-9a-f]*: fe 07 24 36 plsr\.b r6,pc,0x7
49365 + *[0-9a-f]*: f6 02 24 3c plsr\.b r12,r11,0x2
49366 +
49367 +[0-9a-f]* <pasr_h>:
49368 + *[0-9a-f]*: fe 00 24 4f pasr\.h pc,pc,0x0
49369 + *[0-9a-f]*: f8 0f 24 4c pasr\.h r12,r12,0xf
49370 + *[0-9a-f]*: ea 08 24 45 pasr\.h r5,r5,0x8
49371 + *[0-9a-f]*: e8 07 24 44 pasr\.h r4,r4,0x7
49372 + *[0-9a-f]*: fc 01 24 4e pasr\.h lr,lr,0x1
49373 + *[0-9a-f]*: f6 0a 24 40 pasr\.h r0,r11,0xa
49374 + *[0-9a-f]*: ec 08 24 44 pasr\.h r4,r6,0x8
49375 + *[0-9a-f]*: e4 04 24 46 pasr\.h r6,r2,0x4
49376 +
49377 +[0-9a-f]* <plsl_h>:
49378 + *[0-9a-f]*: fe 00 24 5f plsl\.h pc,pc,0x0
49379 + *[0-9a-f]*: f8 0f 24 5c plsl\.h r12,r12,0xf
49380 + *[0-9a-f]*: ea 08 24 55 plsl\.h r5,r5,0x8
49381 + *[0-9a-f]*: e8 07 24 54 plsl\.h r4,r4,0x7
49382 + *[0-9a-f]*: fc 01 24 5e plsl\.h lr,lr,0x1
49383 + *[0-9a-f]*: f4 09 24 55 plsl\.h r5,r10,0x9
49384 + *[0-9a-f]*: fc 08 24 5d plsl\.h sp,lr,0x8
49385 + *[0-9a-f]*: fc 07 24 50 plsl\.h r0,lr,0x7
49386 +
49387 +[0-9a-f]* <plsr_h>:
49388 + *[0-9a-f]*: fe 00 24 6f plsr\.h pc,pc,0x0
49389 + *[0-9a-f]*: f8 0f 24 6c plsr\.h r12,r12,0xf
49390 + *[0-9a-f]*: ea 08 24 65 plsr\.h r5,r5,0x8
49391 + *[0-9a-f]*: e8 07 24 64 plsr\.h r4,r4,0x7
49392 + *[0-9a-f]*: fc 01 24 6e plsr\.h lr,lr,0x1
49393 + *[0-9a-f]*: e0 0f 24 6b plsr\.h r11,r0,0xf
49394 + *[0-9a-f]*: e6 03 24 6e plsr\.h lr,r3,0x3
49395 + *[0-9a-f]*: fc 0a 24 68 plsr\.h r8,lr,0xa
49396 +
49397 +[0-9a-f]* <packw_sh>:
49398 + *[0-9a-f]*: fe 0f 24 7f packw\.sh pc,pc,pc
49399 + *[0-9a-f]*: f8 0c 24 7c packw\.sh r12,r12,r12
49400 + *[0-9a-f]*: ea 05 24 75 packw\.sh r5,r5,r5
49401 + *[0-9a-f]*: e8 04 24 74 packw\.sh r4,r4,r4
49402 + *[0-9a-f]*: fc 0e 24 7e packw\.sh lr,lr,lr
49403 + *[0-9a-f]*: f6 0a 24 7d packw\.sh sp,r11,r10
49404 + *[0-9a-f]*: e4 0c 24 78 packw\.sh r8,r2,r12
49405 + *[0-9a-f]*: e2 05 24 78 packw\.sh r8,r1,r5
49406 +
49407 +[0-9a-f]* <punpckub_h>:
49408 + *[0-9a-f]*: fe 00 24 8f punpckub\.h pc,pc:b
49409 + *[0-9a-f]*: f8 00 24 9c punpckub\.h r12,r12:t
49410 + *[0-9a-f]*: ea 00 24 95 punpckub\.h r5,r5:t
49411 + *[0-9a-f]*: e8 00 24 84 punpckub\.h r4,r4:b
49412 + *[0-9a-f]*: fc 00 24 9e punpckub\.h lr,lr:t
49413 + *[0-9a-f]*: e2 00 24 96 punpckub\.h r6,r1:t
49414 + *[0-9a-f]*: ea 00 24 8e punpckub\.h lr,r5:b
49415 + *[0-9a-f]*: e4 00 24 9e punpckub\.h lr,r2:t
49416 +
49417 +[0-9a-f]* <punpcksb_h>:
49418 + *[0-9a-f]*: fe 00 24 af punpcksb\.h pc,pc:b
49419 + *[0-9a-f]*: f8 00 24 bc punpcksb\.h r12,r12:t
49420 + *[0-9a-f]*: ea 00 24 b5 punpcksb\.h r5,r5:t
49421 + *[0-9a-f]*: e8 00 24 a4 punpcksb\.h r4,r4:b
49422 + *[0-9a-f]*: fc 00 24 be punpcksb\.h lr,lr:t
49423 + *[0-9a-f]*: ee 00 24 b4 punpcksb\.h r4,r7:t
49424 + *[0-9a-f]*: fc 00 24 a6 punpcksb\.h r6,lr:b
49425 + *[0-9a-f]*: f8 00 24 bc punpcksb\.h r12,r12:t
49426 +
49427 +[0-9a-f]* <packsh_ub>:
49428 + *[0-9a-f]*: fe 0f 24 cf packsh\.ub pc,pc,pc
49429 + *[0-9a-f]*: f8 0c 24 cc packsh\.ub r12,r12,r12
49430 + *[0-9a-f]*: ea 05 24 c5 packsh\.ub r5,r5,r5
49431 + *[0-9a-f]*: e8 04 24 c4 packsh\.ub r4,r4,r4
49432 + *[0-9a-f]*: fc 0e 24 ce packsh\.ub lr,lr,lr
49433 + *[0-9a-f]*: ec 03 24 c3 packsh\.ub r3,r6,r3
49434 + *[0-9a-f]*: e0 03 24 c8 packsh\.ub r8,r0,r3
49435 + *[0-9a-f]*: e6 0e 24 c9 packsh\.ub r9,r3,lr
49436 +
49437 +[0-9a-f]* <packsh_sb>:
49438 + *[0-9a-f]*: fe 0f 24 df packsh\.sb pc,pc,pc
49439 + *[0-9a-f]*: f8 0c 24 dc packsh\.sb r12,r12,r12
49440 + *[0-9a-f]*: ea 05 24 d5 packsh\.sb r5,r5,r5
49441 + *[0-9a-f]*: e8 04 24 d4 packsh\.sb r4,r4,r4
49442 + *[0-9a-f]*: fc 0e 24 de packsh\.sb lr,lr,lr
49443 + *[0-9a-f]*: f0 01 24 d6 packsh\.sb r6,r8,r1
49444 + *[0-9a-f]*: f2 08 24 de packsh\.sb lr,r9,r8
49445 + *[0-9a-f]*: ec 06 24 dd packsh\.sb sp,r6,r6
49446 +
49447 +[0-9a-f]* <andl>:
49448 + *[0-9a-f]*: e0 1f 00 00 andl pc,0x0
49449 + *[0-9a-f]*: e0 1c ff ff andl r12,0xffff
49450 + *[0-9a-f]*: e0 15 80 00 andl r5,0x8000
49451 + *[0-9a-f]*: e0 14 7f ff andl r4,0x7fff
49452 + *[0-9a-f]*: e0 1e 00 01 andl lr,0x1
49453 + *[0-9a-f]*: e0 1f 5a 58 andl pc,0x5a58
49454 + *[0-9a-f]*: e0 18 b8 9e andl r8,0xb89e
49455 + *[0-9a-f]*: e0 17 35 97 andl r7,0x3597
49456 +
49457 +[0-9a-f]* <andl_coh>:
49458 + *[0-9a-f]*: e2 1f 00 00 andl pc,0x0,COH
49459 + *[0-9a-f]*: e2 1c ff ff andl r12,0xffff,COH
49460 + *[0-9a-f]*: e2 15 80 00 andl r5,0x8000,COH
49461 + *[0-9a-f]*: e2 14 7f ff andl r4,0x7fff,COH
49462 + *[0-9a-f]*: e2 1e 00 01 andl lr,0x1,COH
49463 + *[0-9a-f]*: e2 16 58 e1 andl r6,0x58e1,COH
49464 + *[0-9a-f]*: e2 10 9e cd andl r0,0x9ecd,COH
49465 + *[0-9a-f]*: e2 14 bd c4 andl r4,0xbdc4,COH
49466 +
49467 +[0-9a-f]* <andh>:
49468 + *[0-9a-f]*: e4 1f 00 00 andh pc,0x0
49469 + *[0-9a-f]*: e4 1c ff ff andh r12,0xffff
49470 + *[0-9a-f]*: e4 15 80 00 andh r5,0x8000
49471 + *[0-9a-f]*: e4 14 7f ff andh r4,0x7fff
49472 + *[0-9a-f]*: e4 1e 00 01 andh lr,0x1
49473 + *[0-9a-f]*: e4 1c cc 58 andh r12,0xcc58
49474 + *[0-9a-f]*: e4 13 21 e3 andh r3,0x21e3
49475 + *[0-9a-f]*: e4 12 a7 eb andh r2,0xa7eb
49476 +
49477 +[0-9a-f]* <andh_coh>:
49478 + *[0-9a-f]*: e6 1f 00 00 andh pc,0x0,COH
49479 + *[0-9a-f]*: e6 1c ff ff andh r12,0xffff,COH
49480 + *[0-9a-f]*: e6 15 80 00 andh r5,0x8000,COH
49481 + *[0-9a-f]*: e6 14 7f ff andh r4,0x7fff,COH
49482 + *[0-9a-f]*: e6 1e 00 01 andh lr,0x1,COH
49483 + *[0-9a-f]*: e6 1b 86 0d andh r11,0x860d,COH
49484 + *[0-9a-f]*: e6 18 ce f6 andh r8,0xcef6,COH
49485 + *[0-9a-f]*: e6 1a 5c 83 andh r10,0x5c83,COH
49486 +
49487 +[0-9a-f]* <orl>:
49488 + *[0-9a-f]*: e8 1f 00 00 orl pc,0x0
49489 + *[0-9a-f]*: e8 1c ff ff orl r12,0xffff
49490 + *[0-9a-f]*: e8 15 80 00 orl r5,0x8000
49491 + *[0-9a-f]*: e8 14 7f ff orl r4,0x7fff
49492 + *[0-9a-f]*: e8 1e 00 01 orl lr,0x1
49493 + *[0-9a-f]*: e8 1d 41 7e orl sp,0x417e
49494 + *[0-9a-f]*: e8 10 52 bd orl r0,0x52bd
49495 + *[0-9a-f]*: e8 1f ac 47 orl pc,0xac47
49496 +
49497 +[0-9a-f]* <orh>:
49498 + *[0-9a-f]*: ea 1f 00 00 orh pc,0x0
49499 + *[0-9a-f]*: ea 1c ff ff orh r12,0xffff
49500 + *[0-9a-f]*: ea 15 80 00 orh r5,0x8000
49501 + *[0-9a-f]*: ea 14 7f ff orh r4,0x7fff
49502 + *[0-9a-f]*: ea 1e 00 01 orh lr,0x1
49503 + *[0-9a-f]*: ea 18 6e 7d orh r8,0x6e7d
49504 + *[0-9a-f]*: ea 1c 77 1c orh r12,0x771c
49505 + *[0-9a-f]*: ea 11 ea 1a orh r1,0xea1a
49506 +
49507 +[0-9a-f]* <eorl>:
49508 + *[0-9a-f]*: ec 1f 00 00 eorl pc,0x0
49509 + *[0-9a-f]*: ec 1c ff ff eorl r12,0xffff
49510 + *[0-9a-f]*: ec 15 80 00 eorl r5,0x8000
49511 + *[0-9a-f]*: ec 14 7f ff eorl r4,0x7fff
49512 + *[0-9a-f]*: ec 1e 00 01 eorl lr,0x1
49513 + *[0-9a-f]*: ec 14 c7 b9 eorl r4,0xc7b9
49514 + *[0-9a-f]*: ec 16 fb dd eorl r6,0xfbdd
49515 + *[0-9a-f]*: ec 11 51 b1 eorl r1,0x51b1
49516 +
49517 +[0-9a-f]* <eorh>:
49518 + *[0-9a-f]*: ee 1f 00 00 eorh pc,0x0
49519 + *[0-9a-f]*: ee 1c ff ff eorh r12,0xffff
49520 + *[0-9a-f]*: ee 15 80 00 eorh r5,0x8000
49521 + *[0-9a-f]*: ee 14 7f ff eorh r4,0x7fff
49522 + *[0-9a-f]*: ee 1e 00 01 eorh lr,0x1
49523 + *[0-9a-f]*: ee 10 2d d4 eorh r0,0x2dd4
49524 + *[0-9a-f]*: ee 1a 94 b5 eorh r10,0x94b5
49525 + *[0-9a-f]*: ee 19 df 2a eorh r9,0xdf2a
49526 +
49527 +[0-9a-f]* <mcall>:
49528 + *[0-9a-f]*: f0 1f 00 00 mcall [0-9a-f]* <.*>
49529 + *[0-9a-f]*: f0 1c ff ff mcall r12\[-4\]
49530 + *[0-9a-f]*: f0 15 80 00 mcall r5\[-131072\]
49531 + *[0-9a-f]*: f0 14 7f ff mcall r4\[131068\]
49532 + *[0-9a-f]*: f0 1e 00 01 mcall lr\[4\]
49533 + *[0-9a-f]*: f0 1d 3b bf mcall sp\[61180\]
49534 + *[0-9a-f]*: f0 14 dd d2 mcall r4\[-35000\]
49535 + *[0-9a-f]*: f0 10 09 b1 mcall r0\[9924\]
49536 +
49537 +[0-9a-f]* <pref>:
49538 + *[0-9a-f]*: f2 1f 00 00 pref pc\[0\]
49539 + *[0-9a-f]*: f2 1c ff ff pref r12\[-1\]
49540 + *[0-9a-f]*: f2 15 80 00 pref r5\[-32768\]
49541 + *[0-9a-f]*: f2 14 7f ff pref r4\[32767\]
49542 + *[0-9a-f]*: f2 1e 00 01 pref lr\[1\]
49543 + *[0-9a-f]*: f2 17 1e 44 pref r7\[7748\]
49544 + *[0-9a-f]*: f2 17 e1 ed pref r7\[-7699\]
49545 + *[0-9a-f]*: f2 12 9a dc pref r2\[-25892\]
49546 +
49547 +[0-9a-f]* <cache>:
49548 + *[0-9a-f]*: f4 1f 00 00 cache pc\[0\],0x0
49549 + *[0-9a-f]*: f4 1c ff ff cache r12\[-1\],0x1f
49550 + *[0-9a-f]*: f4 15 84 00 cache r5\[-1024\],0x10
49551 + *[0-9a-f]*: f4 14 7b ff cache r4\[1023\],0xf
49552 + *[0-9a-f]*: f4 1e 08 01 cache lr\[1\],0x1
49553 + *[0-9a-f]*: f4 13 8c 3c cache r3\[-964\],0x11
49554 + *[0-9a-f]*: f4 14 b6 89 cache r4\[-375\],0x16
49555 + *[0-9a-f]*: f4 13 8c 88 cache r3\[-888\],0x11
49556 +
49557 +[0-9a-f]* <sub4>:
49558 + *[0-9a-f]*: 20 0f sub pc,0
49559 + *[0-9a-f]*: 2f fc sub r12,-1
49560 + *[0-9a-f]*: f0 25 00 00 sub r5,-1048576
49561 + *[0-9a-f]*: ee 34 ff ff sub r4,1048575
49562 + *[0-9a-f]*: 20 1e sub lr,1
49563 + *[0-9a-f]*: f6 22 8d 6c sub r2,-619156
49564 + *[0-9a-f]*: e6 3e 0a cd sub lr,461517
49565 + *[0-9a-f]*: fc 38 2d 25 sub r8,-185051
49566 +
49567 +[0-9a-f]* <cp3>:
49568 + *[0-9a-f]*: 58 0f cp.w pc,0
49569 + *[0-9a-f]*: 5b fc cp.w r12,-1
49570 + *[0-9a-f]*: f0 45 00 00 cp.w r5,-1048576
49571 + *[0-9a-f]*: ee 54 ff ff cp.w r4,1048575
49572 + *[0-9a-f]*: 58 1e cp.w lr,1
49573 + *[0-9a-f]*: e0 51 e4 ae cp.w r1,124078
49574 + *[0-9a-f]*: fa 40 37 e3 cp.w r0,-378909
49575 + *[0-9a-f]*: fc 44 4a 14 cp.w r4,-243180
49576 +
49577 +[0-9a-f]* <mov2>:
49578 + *[0-9a-f]*: 30 0f mov pc,0
49579 + *[0-9a-f]*: 3f fc mov r12,-1
49580 + *[0-9a-f]*: f0 65 00 00 mov r5,-1048576
49581 + *[0-9a-f]*: ee 74 ff ff mov r4,1048575
49582 + *[0-9a-f]*: 30 1e mov lr,1
49583 + *[0-9a-f]*: fa 75 29 a3 mov r5,-317021
49584 + *[0-9a-f]*: f4 6d 91 94 mov sp,-749164
49585 + *[0-9a-f]*: ee 65 58 93 mov r5,940179
49586 +
49587 +[0-9a-f]* <brc2>:
49588 + *[0-9a-f]*: c0 00 breq [0-9a-f]* <.*>
49589 + *[0-9a-f]*: fe 9f ff ff bral [0-9a-f]* <.*>
49590 + *[0-9a-f]*: f0 88 00 00 brls [0-9a-f]* <.*>
49591 + *[0-9a-f]*: ee 97 ff ff brpl [0-9a-f]* <.*>
49592 + *[0-9a-f]*: c0 11 brne [0-9a-f]* <.*>
49593 + *[0-9a-f]*: f2 8b 4a 4d brhi [0-9a-f]* <.*>
49594 + *[0-9a-f]*: ea 8e 14 cc brqs [0-9a-f]* <.*>
49595 + *[0-9a-f]*: fa 98 98 33 brls [0-9a-f]* <.*>
49596 +
49597 +[0-9a-f]* <rcall2>:
49598 + *[0-9a-f]*: c0 0c rcall [0-9a-f]* <.*>
49599 + *[0-9a-f]*: cf ff rcall [0-9a-f]* <.*>
49600 + *[0-9a-f]*: f0 a0 00 00 rcall [0-9a-f]* <.*>
49601 + *[0-9a-f]*: ee b0 ff ff rcall [0-9a-f]* <.*>
49602 + *[0-9a-f]*: c0 1c rcall [0-9a-f]* <.*>
49603 + *[0-9a-f]*: e2 b0 ca 5a rcall [0-9a-f]* <.*>
49604 + *[0-9a-f]*: e8 a0 47 52 rcall [0-9a-f]* <.*>
49605 + *[0-9a-f]*: fe b0 fd ef rcall [0-9a-f]* <.*>
49606 +
49607 +[0-9a-f]* <sub5>:
49608 + *[0-9a-f]*: fe cf 00 00 sub pc,pc,0
49609 + *[0-9a-f]*: f8 cc ff ff sub r12,r12,-1
49610 + *[0-9a-f]*: ea c5 80 00 sub r5,r5,-32768
49611 + *[0-9a-f]*: e8 c4 7f ff sub r4,r4,32767
49612 + *[0-9a-f]*: fc ce 00 01 sub lr,lr,1
49613 + *[0-9a-f]*: fe cf ce 38 sub pc,pc,-12744
49614 + *[0-9a-f]*: ee c7 95 1b sub r7,r7,-27365
49615 + *[0-9a-f]*: f2 c2 bc 32 sub r2,r9,-17358
49616 +
49617 +[0-9a-f]* <satsub_w2>:
49618 + *[0-9a-f]*: fe df 00 00 satsub\.w pc,pc,0
49619 + *[0-9a-f]*: f8 dc ff ff satsub\.w r12,r12,-1
49620 + *[0-9a-f]*: ea d5 80 00 satsub\.w r5,r5,-32768
49621 + *[0-9a-f]*: e8 d4 7f ff satsub\.w r4,r4,32767
49622 + *[0-9a-f]*: fc de 00 01 satsub\.w lr,lr,1
49623 + *[0-9a-f]*: fc d2 f8 29 satsub\.w r2,lr,-2007
49624 + *[0-9a-f]*: f8 d7 fc f0 satsub\.w r7,r12,-784
49625 + *[0-9a-f]*: ee d4 5a 8c satsub\.w r4,r7,23180
49626 +
49627 +[0-9a-f]* <ld_d4>:
49628 + *[0-9a-f]*: fe e0 00 00 ld\.d r0,pc\[0\]
49629 + *[0-9a-f]*: f8 ee ff ff ld\.d lr,r12\[-1\]
49630 + *[0-9a-f]*: ea e8 80 00 ld\.d r8,r5\[-32768\]
49631 + *[0-9a-f]*: e8 e6 7f ff ld\.d r6,r4\[32767\]
49632 + *[0-9a-f]*: fc e2 00 01 ld\.d r2,lr\[1\]
49633 + *[0-9a-f]*: f6 ee 39 c0 ld\.d lr,r11\[14784\]
49634 + *[0-9a-f]*: f2 e6 b6 27 ld\.d r6,r9\[-18905\]
49635 + *[0-9a-f]*: e6 e2 e7 2d ld\.d r2,r3\[-6355\]
49636 +
49637 +[0-9a-f]* <ld_w4>:
49638 + *[0-9a-f]*: 7e 0f ld\.w pc,pc\[0x0\]
49639 + *[0-9a-f]*: f8 fc ff ff ld\.w r12,r12\[-1\]
49640 + *[0-9a-f]*: ea f5 80 00 ld\.w r5,r5\[-32768\]
49641 + *[0-9a-f]*: e8 f4 7f ff ld\.w r4,r4\[32767\]
49642 + *[0-9a-f]*: fc fe 00 01 ld\.w lr,lr\[1\]
49643 + *[0-9a-f]*: f8 f0 a9 8b ld\.w r0,r12\[-22133\]
49644 + *[0-9a-f]*: fe fd af d7 ld\.w sp,pc\[-20521\]
49645 + *[0-9a-f]*: d7 03 nop
49646 +
49647 +[0-9a-f]* <ld_sh4>:
49648 + *[0-9a-f]*: 9e 0f ld\.sh pc,pc\[0x0\]
49649 + *[0-9a-f]*: f9 0c ff ff ld\.sh r12,r12\[-1\]
49650 + *[0-9a-f]*: eb 05 80 00 ld\.sh r5,r5\[-32768\]
49651 + *[0-9a-f]*: e9 04 7f ff ld\.sh r4,r4\[32767\]
49652 + *[0-9a-f]*: fd 0e 00 01 ld\.sh lr,lr\[1\]
49653 + *[0-9a-f]*: f5 06 78 d2 ld\.sh r6,r10\[30930\]
49654 + *[0-9a-f]*: f5 06 55 d5 ld\.sh r6,r10\[21973\]
49655 + *[0-9a-f]*: d7 03 nop
49656 +
49657 +[0-9a-f]* <ld_uh4>:
49658 + *[0-9a-f]*: 9e 8f ld\.uh pc,pc\[0x0\]
49659 + *[0-9a-f]*: f9 1c ff ff ld\.uh r12,r12\[-1\]
49660 + *[0-9a-f]*: eb 15 80 00 ld\.uh r5,r5\[-32768\]
49661 + *[0-9a-f]*: e9 14 7f ff ld\.uh r4,r4\[32767\]
49662 + *[0-9a-f]*: fd 1e 00 01 ld\.uh lr,lr\[1\]
49663 + *[0-9a-f]*: f3 11 cb d6 ld\.uh r1,r9\[-13354\]
49664 + *[0-9a-f]*: f7 1e 53 59 ld\.uh lr,r11\[21337\]
49665 + *[0-9a-f]*: d7 03 nop
49666 +
49667 +[0-9a-f]* <ld_sb1>:
49668 + *[0-9a-f]*: ff 2f 00 00 ld\.sb pc,pc\[0\]
49669 + *[0-9a-f]*: f9 2c ff ff ld\.sb r12,r12\[-1\]
49670 + *[0-9a-f]*: eb 25 80 00 ld\.sb r5,r5\[-32768\]
49671 + *[0-9a-f]*: e9 24 7f ff ld\.sb r4,r4\[32767\]
49672 + *[0-9a-f]*: fd 2e 00 01 ld\.sb lr,lr\[1\]
49673 + *[0-9a-f]*: fb 27 90 09 ld\.sb r7,sp\[-28663\]
49674 + *[0-9a-f]*: e3 22 e9 09 ld\.sb r2,r1\[-5879\]
49675 + *[0-9a-f]*: e7 2c 49 2e ld\.sb r12,r3\[18734\]
49676 +
49677 +[0-9a-f]* <ld_ub4>:
49678 + *[0-9a-f]*: 1f 8f ld\.ub pc,pc\[0x0\]
49679 + *[0-9a-f]*: f9 3c ff ff ld\.ub r12,r12\[-1\]
49680 + *[0-9a-f]*: eb 35 80 00 ld\.ub r5,r5\[-32768\]
49681 + *[0-9a-f]*: e9 34 7f ff ld\.ub r4,r4\[32767\]
49682 + *[0-9a-f]*: 1d 9e ld\.ub lr,lr\[0x1\]
49683 + *[0-9a-f]*: e9 3f 20 55 ld\.ub pc,r4\[8277\]
49684 + *[0-9a-f]*: f9 35 4a e4 ld\.ub r5,r12\[19172\]
49685 + *[0-9a-f]*: fd 3a 66 eb ld\.ub r10,lr\[26347\]
49686 +
49687 +[0-9a-f]* <st_d4>:
49688 + *[0-9a-f]*: fe e1 00 00 st\.d pc\[0\],r0
49689 + *[0-9a-f]*: f8 ef ff ff st\.d r12\[-1\],lr
49690 + *[0-9a-f]*: ea e9 80 00 st\.d r5\[-32768\],r8
49691 + *[0-9a-f]*: e8 e7 7f ff st\.d r4\[32767\],r6
49692 + *[0-9a-f]*: fc e3 00 01 st\.d lr\[1\],r2
49693 + *[0-9a-f]*: ea eb 33 90 st\.d r5\[13200\],r10
49694 + *[0-9a-f]*: ea eb 24 88 st\.d r5\[9352\],r10
49695 + *[0-9a-f]*: ea e5 7e 75 st\.d r5\[32373\],r4
49696 +
49697 +[0-9a-f]* <st_w4>:
49698 + *[0-9a-f]*: 9f 0f st\.w pc\[0x0\],pc
49699 + *[0-9a-f]*: f9 4c ff ff st\.w r12\[-1\],r12
49700 + *[0-9a-f]*: eb 45 80 00 st\.w r5\[-32768\],r5
49701 + *[0-9a-f]*: e9 44 7f ff st\.w r4\[32767\],r4
49702 + *[0-9a-f]*: fd 4e 00 01 st\.w lr\[1\],lr
49703 + *[0-9a-f]*: fb 47 17 f8 st\.w sp\[6136\],r7
49704 + *[0-9a-f]*: ed 4c 69 cf st\.w r6\[27087\],r12
49705 + *[0-9a-f]*: d7 03 nop
49706 +
49707 +[0-9a-f]* <st_h4>:
49708 + *[0-9a-f]*: be 0f st\.h pc\[0x0\],pc
49709 + *[0-9a-f]*: f9 5c ff ff st\.h r12\[-1\],r12
49710 + *[0-9a-f]*: eb 55 80 00 st\.h r5\[-32768\],r5
49711 + *[0-9a-f]*: e9 54 7f ff st\.h r4\[32767\],r4
49712 + *[0-9a-f]*: fd 5e 00 01 st\.h lr\[1\],lr
49713 + *[0-9a-f]*: e9 57 d9 16 st\.h r4\[-9962\],r7
49714 + *[0-9a-f]*: f3 53 c0 86 st\.h r9\[-16250\],r3
49715 + *[0-9a-f]*: d7 03 nop
49716 +
49717 +[0-9a-f]* <st_b4>:
49718 + *[0-9a-f]*: be 8f st\.b pc\[0x0\],pc
49719 + *[0-9a-f]*: f9 6c ff ff st\.b r12\[-1\],r12
49720 + *[0-9a-f]*: eb 65 80 00 st\.b r5\[-32768\],r5
49721 + *[0-9a-f]*: e9 64 7f ff st\.b r4\[32767\],r4
49722 + *[0-9a-f]*: bc 9e st\.b lr\[0x1\],lr
49723 + *[0-9a-f]*: f9 66 75 96 st\.b r12\[30102\],r6
49724 + *[0-9a-f]*: eb 61 71 31 st\.b r5\[28977\],r1
49725 + *[0-9a-f]*: e1 61 15 5e st\.b r0\[5470\],r1
49726 +
49727 +[0-9a-f]* <mfsr>:
49728 + *[0-9a-f]*: e1 bf 00 00 mfsr pc,0x0
49729 + *[0-9a-f]*: e1 bc 00 ff mfsr r12,0x3fc
49730 + *[0-9a-f]*: e1 b5 00 80 mfsr r5,0x200
49731 + *[0-9a-f]*: e1 b4 00 7f mfsr r4,0x1fc
49732 + *[0-9a-f]*: e1 be 00 01 mfsr lr,0x4
49733 + *[0-9a-f]*: e1 b2 00 ae mfsr r2,0x2b8
49734 + *[0-9a-f]*: e1 b4 00 41 mfsr r4,0x104
49735 + *[0-9a-f]*: e1 ba 00 fe mfsr r10,0x3f8
49736 +
49737 +[0-9a-f]* <mtsr>:
49738 + *[0-9a-f]*: e3 bf 00 00 mtsr 0x0,pc
49739 + *[0-9a-f]*: e3 bc 00 ff mtsr 0x3fc,r12
49740 + *[0-9a-f]*: e3 b5 00 80 mtsr 0x200,r5
49741 + *[0-9a-f]*: e3 b4 00 7f mtsr 0x1fc,r4
49742 + *[0-9a-f]*: e3 be 00 01 mtsr 0x4,lr
49743 + *[0-9a-f]*: e3 ba 00 38 mtsr 0xe0,r10
49744 + *[0-9a-f]*: e3 bc 00 d1 mtsr 0x344,r12
49745 + *[0-9a-f]*: e3 b9 00 4c mtsr 0x130,r9
49746 +
49747 +[0-9a-f]* <mfdr>:
49748 + *[0-9a-f]*: e5 bf 00 00 mfdr pc,0x0
49749 + *[0-9a-f]*: e5 bc 00 ff mfdr r12,0x3fc
49750 + *[0-9a-f]*: e5 b5 00 80 mfdr r5,0x200
49751 + *[0-9a-f]*: e5 b4 00 7f mfdr r4,0x1fc
49752 + *[0-9a-f]*: e5 be 00 01 mfdr lr,0x4
49753 + *[0-9a-f]*: e5 b6 00 e9 mfdr r6,0x3a4
49754 + *[0-9a-f]*: e5 b5 00 09 mfdr r5,0x24
49755 + *[0-9a-f]*: e5 b9 00 4b mfdr r9,0x12c
49756 +
49757 +[0-9a-f]* <mtdr>:
49758 + *[0-9a-f]*: e7 bf 00 00 mtdr 0x0,pc
49759 + *[0-9a-f]*: e7 bc 00 ff mtdr 0x3fc,r12
49760 + *[0-9a-f]*: e7 b5 00 80 mtdr 0x200,r5
49761 + *[0-9a-f]*: e7 b4 00 7f mtdr 0x1fc,r4
49762 + *[0-9a-f]*: e7 be 00 01 mtdr 0x4,lr
49763 + *[0-9a-f]*: e7 b8 00 2d mtdr 0xb4,r8
49764 + *[0-9a-f]*: e7 ba 00 b4 mtdr 0x2d0,r10
49765 + *[0-9a-f]*: e7 be 00 66 mtdr 0x198,lr
49766 +
49767 +[0-9a-f]* <sleep>:
49768 + *[0-9a-f]*: e9 b0 00 00 sleep 0x0
49769 + *[0-9a-f]*: e9 b0 00 ff sleep 0xff
49770 + *[0-9a-f]*: e9 b0 00 80 sleep 0x80
49771 + *[0-9a-f]*: e9 b0 00 7f sleep 0x7f
49772 + *[0-9a-f]*: e9 b0 00 01 sleep 0x1
49773 + *[0-9a-f]*: e9 b0 00 fe sleep 0xfe
49774 + *[0-9a-f]*: e9 b0 00 0f sleep 0xf
49775 + *[0-9a-f]*: e9 b0 00 2b sleep 0x2b
49776 +
49777 +[0-9a-f]* <sync>:
49778 + *[0-9a-f]*: eb b0 00 00 sync 0x0
49779 + *[0-9a-f]*: eb b0 00 ff sync 0xff
49780 + *[0-9a-f]*: eb b0 00 80 sync 0x80
49781 + *[0-9a-f]*: eb b0 00 7f sync 0x7f
49782 + *[0-9a-f]*: eb b0 00 01 sync 0x1
49783 + *[0-9a-f]*: eb b0 00 a6 sync 0xa6
49784 + *[0-9a-f]*: eb b0 00 e6 sync 0xe6
49785 + *[0-9a-f]*: eb b0 00 b4 sync 0xb4
49786 +
49787 +[0-9a-f]* <bld>:
49788 + *[0-9a-f]*: ed bf 00 00 bld pc,0x0
49789 + *[0-9a-f]*: ed bc 00 1f bld r12,0x1f
49790 + *[0-9a-f]*: ed b5 00 10 bld r5,0x10
49791 + *[0-9a-f]*: ed b4 00 0f bld r4,0xf
49792 + *[0-9a-f]*: ed be 00 01 bld lr,0x1
49793 + *[0-9a-f]*: ed b9 00 0f bld r9,0xf
49794 + *[0-9a-f]*: ed b0 00 04 bld r0,0x4
49795 + *[0-9a-f]*: ed be 00 1a bld lr,0x1a
49796 +
49797 +[0-9a-f]* <bst>:
49798 + *[0-9a-f]*: ef bf 00 00 bst pc,0x0
49799 + *[0-9a-f]*: ef bc 00 1f bst r12,0x1f
49800 + *[0-9a-f]*: ef b5 00 10 bst r5,0x10
49801 + *[0-9a-f]*: ef b4 00 0f bst r4,0xf
49802 + *[0-9a-f]*: ef be 00 01 bst lr,0x1
49803 + *[0-9a-f]*: ef ba 00 1c bst r10,0x1c
49804 + *[0-9a-f]*: ef b0 00 03 bst r0,0x3
49805 + *[0-9a-f]*: ef bd 00 02 bst sp,0x2
49806 +
49807 +[0-9a-f]* <sats>:
49808 + *[0-9a-f]*: f1 bf 00 00 sats pc,0x0
49809 + *[0-9a-f]*: f1 bc 03 ff sats r12>>0x1f,0x1f
49810 + *[0-9a-f]*: f1 b5 02 10 sats r5>>0x10,0x10
49811 + *[0-9a-f]*: f1 b4 01 ef sats r4>>0xf,0xf
49812 + *[0-9a-f]*: f1 be 00 21 sats lr>>0x1,0x1
49813 + *[0-9a-f]*: f1 ba 02 63 sats r10>>0x3,0x13
49814 + *[0-9a-f]*: f1 ba 03 42 sats r10>>0x2,0x1a
49815 + *[0-9a-f]*: f1 b1 00 34 sats r1>>0x14,0x1
49816 +
49817 +[0-9a-f]* <satu>:
49818 + *[0-9a-f]*: f1 bf 04 00 satu pc,0x0
49819 + *[0-9a-f]*: f1 bc 07 ff satu r12>>0x1f,0x1f
49820 + *[0-9a-f]*: f1 b5 06 10 satu r5>>0x10,0x10
49821 + *[0-9a-f]*: f1 b4 05 ef satu r4>>0xf,0xf
49822 + *[0-9a-f]*: f1 be 04 21 satu lr>>0x1,0x1
49823 + *[0-9a-f]*: f1 bf 04 e5 satu pc>>0x5,0x7
49824 + *[0-9a-f]*: f1 b7 04 a5 satu r7>>0x5,0x5
49825 + *[0-9a-f]*: f1 b2 06 7a satu r2>>0x1a,0x13
49826 +
49827 +[0-9a-f]* <satrnds>:
49828 + *[0-9a-f]*: f3 bf 00 00 satrnds pc,0x0
49829 + *[0-9a-f]*: f3 bc 03 ff satrnds r12>>0x1f,0x1f
49830 + *[0-9a-f]*: f3 b5 02 10 satrnds r5>>0x10,0x10
49831 + *[0-9a-f]*: f3 b4 01 ef satrnds r4>>0xf,0xf
49832 + *[0-9a-f]*: f3 be 00 21 satrnds lr>>0x1,0x1
49833 + *[0-9a-f]*: f3 b0 02 75 satrnds r0>>0x15,0x13
49834 + *[0-9a-f]*: f3 bd 00 40 satrnds sp,0x2
49835 + *[0-9a-f]*: f3 b7 03 a6 satrnds r7>>0x6,0x1d
49836 +
49837 +[0-9a-f]* <satrndu>:
49838 + *[0-9a-f]*: f3 bf 04 00 satrndu pc,0x0
49839 + *[0-9a-f]*: f3 bc 07 ff satrndu r12>>0x1f,0x1f
49840 + *[0-9a-f]*: f3 b5 06 10 satrndu r5>>0x10,0x10
49841 + *[0-9a-f]*: f3 b4 05 ef satrndu r4>>0xf,0xf
49842 + *[0-9a-f]*: f3 be 04 21 satrndu lr>>0x1,0x1
49843 + *[0-9a-f]*: f3 bc 07 40 satrndu r12,0x1a
49844 + *[0-9a-f]*: f3 b4 04 75 satrndu r4>>0x15,0x3
49845 + *[0-9a-f]*: f3 ba 06 03 satrndu r10>>0x3,0x10
49846 +
49847 +[0-9a-f]* <subfc>:
49848 + *[0-9a-f]*: f5 bf 00 00 subfeq pc,0
49849 + *[0-9a-f]*: f5 bc 0f ff subfal r12,-1
49850 + *[0-9a-f]*: f5 b5 08 80 subfls r5,-128
49851 + *[0-9a-f]*: f5 b4 07 7f subfpl r4,127
49852 + *[0-9a-f]*: f5 be 01 01 subfne lr,1
49853 + *[0-9a-f]*: f5 ba 08 08 subfls r10,8
49854 + *[0-9a-f]*: f5 bb 0d 63 subfvc r11,99
49855 + *[0-9a-f]*: f5 b2 0c 49 subfvs r2,73
49856 +
49857 +[0-9a-f]* <subc>:
49858 + *[0-9a-f]*: f7 bf 00 00 subeq pc,0
49859 + *[0-9a-f]*: f7 bc 0f ff subal r12,-1
49860 + *[0-9a-f]*: f7 b5 08 80 subls r5,-128
49861 + *[0-9a-f]*: f7 b4 07 7f subpl r4,127
49862 + *[0-9a-f]*: f7 be 01 01 subne lr,1
49863 + *[0-9a-f]*: f7 bc 08 76 subls r12,118
49864 + *[0-9a-f]*: f7 be 0d f4 subvc lr,-12
49865 + *[0-9a-f]*: f7 b4 06 f3 submi r4,-13
49866 +
49867 +[0-9a-f]* <movc2>:
49868 + *[0-9a-f]*: f9 bf 00 00 moveq pc,0
49869 + *[0-9a-f]*: f9 bc 0f ff moval r12,-1
49870 + *[0-9a-f]*: f9 b5 08 80 movls r5,-128
49871 + *[0-9a-f]*: f9 b4 07 7f movpl r4,127
49872 + *[0-9a-f]*: f9 be 01 01 movne lr,1
49873 + *[0-9a-f]*: f9 b3 05 86 movlt r3,-122
49874 + *[0-9a-f]*: f9 b8 0d 02 movvc r8,2
49875 + *[0-9a-f]*: f9 b7 01 91 movne r7,-111
49876 +
49877 +[0-9a-f]* <cp_b>:
49878 + *[0-9a-f]*: e0 0f 18 00 cp\.b pc,r0
49879 + *[0-9a-f]*: fe 00 18 00 cp\.b r0,pc
49880 + *[0-9a-f]*: f0 07 18 00 cp\.b r7,r8
49881 + *[0-9a-f]*: ee 08 18 00 cp\.b r8,r7
49882 +
49883 +[0-9a-f]* <cp_h>:
49884 + *[0-9a-f]*: e0 0f 19 00 cp\.h pc,r0
49885 + *[0-9a-f]*: fe 00 19 00 cp\.h r0,pc
49886 + *[0-9a-f]*: f0 07 19 00 cp\.h r7,r8
49887 + *[0-9a-f]*: ee 08 19 00 cp\.h r8,r7
49888 +
49889 +[0-9a-f]* <ldm>:
49890 + *[0-9a-f]*: e1 cf 00 7e ldm pc,r1-r6
49891 + *[0-9a-f]*: e1 cc ff ff ldm r12,r0-pc
49892 + *[0-9a-f]*: e1 c5 80 00 ldm r5,pc
49893 + *[0-9a-f]*: e1 c4 7f ff ldm r4,r0-lr
49894 + *[0-9a-f]*: e1 ce 00 01 ldm lr,r0
49895 + *[0-9a-f]*: e1 c9 40 22 ldm r9,r1,r5,lr
49896 + *[0-9a-f]*: e1 cb 81 ec ldm r11,r2-r3,r5-r8,pc
49897 + *[0-9a-f]*: e1 c6 a2 09 ldm r6,r0,r3,r9,sp,pc
49898 +
49899 +[0-9a-f]* <ldm_pu>:
49900 + *[0-9a-f]*: e3 cf 03 c0 ldm pc\+\+,r6-r9
49901 + *[0-9a-f]*: e3 cc ff ff ldm r12\+\+,r0-pc
49902 + *[0-9a-f]*: e3 c5 80 00 ldm r5\+\+,pc
49903 + *[0-9a-f]*: e3 c4 7f ff ldm r4\+\+,r0-lr
49904 + *[0-9a-f]*: e3 ce 00 01 ldm lr\+\+,r0
49905 + *[0-9a-f]*: e3 cc d5 38 ldm r12\+\+,r3-r5,r8,r10,r12,lr-pc
49906 + *[0-9a-f]*: e3 ca c0 74 ldm r10\+\+,r2,r4-r6,lr-pc
49907 + *[0-9a-f]*: e3 c6 7e 1a ldm r6\+\+,r1,r3-r4,r9-lr
49908 +
49909 +[0-9a-f]* <ldmts>:
49910 + *[0-9a-f]*: e5 cf 01 80 ldmts pc,r7-r8
49911 + *[0-9a-f]*: e5 cc ff ff ldmts r12,r0-pc
49912 + *[0-9a-f]*: e5 c5 80 00 ldmts r5,pc
49913 + *[0-9a-f]*: e5 c4 7f ff ldmts r4,r0-lr
49914 + *[0-9a-f]*: e5 ce 00 01 ldmts lr,r0
49915 + *[0-9a-f]*: e5 c0 18 06 ldmts r0,r1-r2,r11-r12
49916 + *[0-9a-f]*: e5 ce 61 97 ldmts lr,r0-r2,r4,r7-r8,sp-lr
49917 + *[0-9a-f]*: e5 cc c2 3b ldmts r12,r0-r1,r3-r5,r9,lr-pc
49918 +
49919 +[0-9a-f]* <ldmts_pu>:
49920 + *[0-9a-f]*: e7 cf 02 00 ldmts pc\+\+,r9
49921 + *[0-9a-f]*: e7 cc ff ff ldmts r12\+\+,r0-pc
49922 + *[0-9a-f]*: e7 c5 80 00 ldmts r5\+\+,pc
49923 + *[0-9a-f]*: e7 c4 7f ff ldmts r4\+\+,r0-lr
49924 + *[0-9a-f]*: e7 ce 00 01 ldmts lr\+\+,r0
49925 + *[0-9a-f]*: e7 cd 0a bd ldmts sp\+\+,r0,r2-r5,r7,r9,r11
49926 + *[0-9a-f]*: e7 c5 0c 8e ldmts r5\+\+,r1-r3,r7,r10-r11
49927 + *[0-9a-f]*: e7 c8 a1 9c ldmts r8\+\+,r2-r4,r7-r8,sp,pc
49928 +
49929 +[0-9a-f]* <stm>:
49930 + *[0-9a-f]*: e9 cf 00 80 stm pc,r7
49931 + *[0-9a-f]*: e9 cc ff ff stm r12,r0-pc
49932 + *[0-9a-f]*: e9 c5 80 00 stm r5,pc
49933 + *[0-9a-f]*: e9 c4 7f ff stm r4,r0-lr
49934 + *[0-9a-f]*: e9 ce 00 01 stm lr,r0
49935 + *[0-9a-f]*: e9 cd 49 2c stm sp,r2-r3,r5,r8,r11,lr
49936 + *[0-9a-f]*: e9 c4 4c 5f stm r4,r0-r4,r6,r10-r11,lr
49937 + *[0-9a-f]*: e9 c9 f2 22 stm r9,r1,r5,r9,r12-pc
49938 +
49939 +[0-9a-f]* <stm_pu>:
49940 + *[0-9a-f]*: eb cf 00 70 stm --pc,r4-r6
49941 + *[0-9a-f]*: eb cc ff ff stm --r12,r0-pc
49942 + *[0-9a-f]*: eb c5 80 00 stm --r5,pc
49943 + *[0-9a-f]*: eb c4 7f ff stm --r4,r0-lr
49944 + *[0-9a-f]*: eb ce 00 01 stm --lr,r0
49945 + *[0-9a-f]*: eb cb fb f1 stm --r11,r0,r4-r9,r11-pc
49946 + *[0-9a-f]*: eb cb 56 09 stm --r11,r0,r3,r9-r10,r12,lr
49947 + *[0-9a-f]*: eb c6 63 04 stm --r6,r2,r8-r9,sp-lr
49948 +
49949 +[0-9a-f]* <stmts>:
49950 + *[0-9a-f]*: ed cf 01 00 stmts pc,r8
49951 + *[0-9a-f]*: ed cc ff ff stmts r12,r0-pc
49952 + *[0-9a-f]*: ed c5 80 00 stmts r5,pc
49953 + *[0-9a-f]*: ed c4 7f ff stmts r4,r0-lr
49954 + *[0-9a-f]*: ed ce 00 01 stmts lr,r0
49955 + *[0-9a-f]*: ed c1 c6 5b stmts r1,r0-r1,r3-r4,r6,r9-r10,lr-pc
49956 + *[0-9a-f]*: ed c3 1d c1 stmts r3,r0,r6-r8,r10-r12
49957 + *[0-9a-f]*: ed cb d6 d1 stmts r11,r0,r4,r6-r7,r9-r10,r12,lr-pc
49958 +
49959 +[0-9a-f]* <stmts_pu>:
49960 + *[0-9a-f]*: ef cf 01 c0 stmts --pc,r6-r8
49961 + *[0-9a-f]*: ef cc ff ff stmts --r12,r0-pc
49962 + *[0-9a-f]*: ef c5 80 00 stmts --r5,pc
49963 + *[0-9a-f]*: ef c4 7f ff stmts --r4,r0-lr
49964 + *[0-9a-f]*: ef ce 00 01 stmts --lr,r0
49965 + *[0-9a-f]*: ef c2 36 19 stmts --r2,r0,r3-r4,r9-r10,r12-sp
49966 + *[0-9a-f]*: ef c3 c0 03 stmts --r3,r0-r1,lr-pc
49967 + *[0-9a-f]*: ef c0 44 7d stmts --r0,r0,r2-r6,r10,lr
49968 +
49969 +[0-9a-f]* <ldins_h>:
49970 + *[0-9a-f]*: ff df 00 00 ldins\.h pc:b,pc\[0\]
49971 + *[0-9a-f]*: f9 dc 1f ff ldins\.h r12:t,r12\[-2\]
49972 + *[0-9a-f]*: eb d5 18 00 ldins\.h r5:t,r5\[-4096\]
49973 + *[0-9a-f]*: e9 d4 07 ff ldins\.h r4:b,r4\[4094\]
49974 + *[0-9a-f]*: fd de 10 01 ldins\.h lr:t,lr\[2\]
49975 + *[0-9a-f]*: fd d0 13 c5 ldins\.h r0:t,lr\[1930\]
49976 + *[0-9a-f]*: ef d3 0e f5 ldins\.h r3:b,r7\[-534\]
49977 + *[0-9a-f]*: f9 d2 0b 9a ldins\.h r2:b,r12\[-2252\]
49978 +
49979 +[0-9a-f]* <ldins_b>:
49980 + *[0-9a-f]*: ff df 40 00 ldins\.b pc:b,pc\[0\]
49981 + *[0-9a-f]*: f9 dc 7f ff ldins\.b r12:t,r12\[-1\]
49982 + *[0-9a-f]*: eb d5 68 00 ldins\.b r5:u,r5\[-2048\]
49983 + *[0-9a-f]*: e9 d4 57 ff ldins\.b r4:l,r4\[2047\]
49984 + *[0-9a-f]*: fd de 50 01 ldins\.b lr:l,lr\[1\]
49985 + *[0-9a-f]*: e9 d6 7d 6a ldins\.b r6:t,r4\[-662\]
49986 + *[0-9a-f]*: e3 d5 4f 69 ldins\.b r5:b,r1\[-151\]
49987 + *[0-9a-f]*: f7 da 78 7d ldins\.b r10:t,r11\[-1923\]
49988 +
49989 +[0-9a-f]* <ldswp_sh>:
49990 + *[0-9a-f]*: ff df 20 00 ldswp\.sh pc,pc\[0\]
49991 + *[0-9a-f]*: f9 dc 2f ff ldswp\.sh r12,r12\[-2\]
49992 + *[0-9a-f]*: eb d5 28 00 ldswp\.sh r5,r5\[-4096\]
49993 + *[0-9a-f]*: e9 d4 27 ff ldswp\.sh r4,r4\[4094\]
49994 + *[0-9a-f]*: fd de 20 01 ldswp\.sh lr,lr\[2\]
49995 + *[0-9a-f]*: f5 d9 27 84 ldswp\.sh r9,r10\[3848\]
49996 + *[0-9a-f]*: f9 d4 2c 04 ldswp\.sh r4,r12\[-2040\]
49997 + *[0-9a-f]*: e5 da 26 08 ldswp\.sh r10,r2\[3088\]
49998 +
49999 +[0-9a-f]* <ldswp_uh>:
50000 + *[0-9a-f]*: ff df 30 00 ldswp\.uh pc,pc\[0\]
50001 + *[0-9a-f]*: f9 dc 3f ff ldswp\.uh r12,r12\[-2\]
50002 + *[0-9a-f]*: eb d5 38 00 ldswp\.uh r5,r5\[-4096\]
50003 + *[0-9a-f]*: e9 d4 37 ff ldswp\.uh r4,r4\[4094\]
50004 + *[0-9a-f]*: fd de 30 01 ldswp\.uh lr,lr\[2\]
50005 + *[0-9a-f]*: f3 d4 37 46 ldswp\.uh r4,r9\[3724\]
50006 + *[0-9a-f]*: fb de 3c bc ldswp\.uh lr,sp\[-1672\]
50007 + *[0-9a-f]*: f9 d8 38 7d ldswp\.uh r8,r12\[-3846\]
50008 +
50009 +[0-9a-f]* <ldswp_w>:
50010 + *[0-9a-f]*: ff df 80 00 ldswp\.w pc,pc\[0\]
50011 + *[0-9a-f]*: f9 dc 8f ff ldswp\.w r12,r12\[-4\]
50012 + *[0-9a-f]*: eb d5 88 00 ldswp\.w r5,r5\[-8192\]
50013 + *[0-9a-f]*: e9 d4 87 ff ldswp\.w r4,r4\[8188\]
50014 + *[0-9a-f]*: fd de 80 01 ldswp\.w lr,lr\[4\]
50015 + *[0-9a-f]*: ef dd 81 d1 ldswp\.w sp,r7\[1860\]
50016 + *[0-9a-f]*: eb df 8c c1 ldswp\.w pc,r5\[-3324\]
50017 + *[0-9a-f]*: f5 dc 8c c8 ldswp\.w r12,r10\[-3296\]
50018 +
50019 +[0-9a-f]* <stswp_h>:
50020 + *[0-9a-f]*: ff df 90 00 stswp\.h pc\[0\],pc
50021 + *[0-9a-f]*: f9 dc 9f ff stswp\.h r12\[-2\],r12
50022 + *[0-9a-f]*: eb d5 98 00 stswp\.h r5\[-4096\],r5
50023 + *[0-9a-f]*: e9 d4 97 ff stswp\.h r4\[4094\],r4
50024 + *[0-9a-f]*: fd de 90 01 stswp\.h lr\[2\],lr
50025 + *[0-9a-f]*: ef da 90 20 stswp\.h r7\[64\],r10
50026 + *[0-9a-f]*: f5 d2 95 e8 stswp\.h r10\[3024\],r2
50027 + *[0-9a-f]*: e1 da 9b 74 stswp\.h r0\[-2328\],r10
50028 +
50029 +[0-9a-f]* <stswp_w>:
50030 + *[0-9a-f]*: ff df a0 00 stswp\.w pc\[0\],pc
50031 + *[0-9a-f]*: f9 dc af ff stswp\.w r12\[-4\],r12
50032 + *[0-9a-f]*: eb d5 a8 00 stswp\.w r5\[-8192\],r5
50033 + *[0-9a-f]*: e9 d4 a7 ff stswp\.w r4\[8188\],r4
50034 + *[0-9a-f]*: fd de a0 01 stswp\.w lr\[4\],lr
50035 + *[0-9a-f]*: ff d8 a1 21 stswp\.w pc\[1156\],r8
50036 + *[0-9a-f]*: fb da a7 ce stswp\.w sp\[7992\],r10
50037 + *[0-9a-f]*: f1 d5 ae db stswp\.w r8\[-1172\],r5
50038 +
50039 +[0-9a-f]* <and2>:
50040 + *[0-9a-f]*: ff ef 00 0f and pc,pc,pc
50041 + *[0-9a-f]*: f9 ec 01 fc and r12,r12,r12<<0x1f
50042 + *[0-9a-f]*: eb e5 01 05 and r5,r5,r5<<0x10
50043 + *[0-9a-f]*: e9 e4 00 f4 and r4,r4,r4<<0xf
50044 + *[0-9a-f]*: fd ee 00 1e and lr,lr,lr<<0x1
50045 + *[0-9a-f]*: e5 e1 00 1a and r10,r2,r1<<0x1
50046 + *[0-9a-f]*: f1 eb 01 bc and r12,r8,r11<<0x1b
50047 + *[0-9a-f]*: ef e0 00 3a and r10,r7,r0<<0x3
50048 +
50049 +[0-9a-f]* <and3>:
50050 + *[0-9a-f]*: ff ef 02 0f and pc,pc,pc
50051 + *[0-9a-f]*: f9 ec 03 fc and r12,r12,r12>>0x1f
50052 + *[0-9a-f]*: eb e5 03 05 and r5,r5,r5>>0x10
50053 + *[0-9a-f]*: e9 e4 02 f4 and r4,r4,r4>>0xf
50054 + *[0-9a-f]*: fd ee 02 1e and lr,lr,lr>>0x1
50055 + *[0-9a-f]*: f1 e7 03 1c and r12,r8,r7>>0x11
50056 + *[0-9a-f]*: e9 e9 03 4f and pc,r4,r9>>0x14
50057 + *[0-9a-f]*: f3 ea 02 ca and r10,r9,r10>>0xc
50058 +
50059 +[0-9a-f]* <or2>:
50060 + *[0-9a-f]*: ff ef 10 0f or pc,pc,pc
50061 + *[0-9a-f]*: f9 ec 11 fc or r12,r12,r12<<0x1f
50062 + *[0-9a-f]*: eb e5 11 05 or r5,r5,r5<<0x10
50063 + *[0-9a-f]*: e9 e4 10 f4 or r4,r4,r4<<0xf
50064 + *[0-9a-f]*: fd ee 10 1e or lr,lr,lr<<0x1
50065 + *[0-9a-f]*: fb eb 11 d8 or r8,sp,r11<<0x1d
50066 + *[0-9a-f]*: f3 e2 11 cf or pc,r9,r2<<0x1c
50067 + *[0-9a-f]*: e3 e2 10 35 or r5,r1,r2<<0x3
50068 +
50069 +[0-9a-f]* <or3>:
50070 + *[0-9a-f]*: ff ef 12 0f or pc,pc,pc
50071 + *[0-9a-f]*: f9 ec 13 fc or r12,r12,r12>>0x1f
50072 + *[0-9a-f]*: eb e5 13 05 or r5,r5,r5>>0x10
50073 + *[0-9a-f]*: e9 e4 12 f4 or r4,r4,r4>>0xf
50074 + *[0-9a-f]*: fd ee 12 1e or lr,lr,lr>>0x1
50075 + *[0-9a-f]*: fb ed 12 21 or r1,sp,sp>>0x2
50076 + *[0-9a-f]*: e3 e1 13 d0 or r0,r1,r1>>0x1d
50077 + *[0-9a-f]*: f9 e8 12 84 or r4,r12,r8>>0x8
50078 +
50079 +[0-9a-f]* <eor2>:
50080 + *[0-9a-f]*: ff ef 20 0f eor pc,pc,pc
50081 + *[0-9a-f]*: f9 ec 21 fc eor r12,r12,r12<<0x1f
50082 + *[0-9a-f]*: eb e5 21 05 eor r5,r5,r5<<0x10
50083 + *[0-9a-f]*: e9 e4 20 f4 eor r4,r4,r4<<0xf
50084 + *[0-9a-f]*: fd ee 20 1e eor lr,lr,lr<<0x1
50085 + *[0-9a-f]*: f3 e4 20 ba eor r10,r9,r4<<0xb
50086 + *[0-9a-f]*: e1 e1 21 f4 eor r4,r0,r1<<0x1f
50087 + *[0-9a-f]*: e5 ec 20 d6 eor r6,r2,r12<<0xd
50088 +
50089 +[0-9a-f]* <eor3>:
50090 + *[0-9a-f]*: ff ef 22 0f eor pc,pc,pc
50091 + *[0-9a-f]*: f9 ec 23 fc eor r12,r12,r12>>0x1f
50092 + *[0-9a-f]*: eb e5 23 05 eor r5,r5,r5>>0x10
50093 + *[0-9a-f]*: e9 e4 22 f4 eor r4,r4,r4>>0xf
50094 + *[0-9a-f]*: fd ee 22 1e eor lr,lr,lr>>0x1
50095 + *[0-9a-f]*: eb e5 23 65 eor r5,r5,r5>>0x16
50096 + *[0-9a-f]*: e3 ee 22 3a eor r10,r1,lr>>0x3
50097 + *[0-9a-f]*: fd ed 23 a7 eor r7,lr,sp>>0x1a
50098 +
50099 +[0-9a-f]* <sthh_w2>:
50100 + *[0-9a-f]*: ff ef 8f 0f sthh\.w pc\[pc\],pc:b,pc:b
50101 + *[0-9a-f]*: f9 ec bc 3c sthh\.w r12\[r12<<0x3\],r12:t,r12:t
50102 + *[0-9a-f]*: eb e5 b5 25 sthh\.w r5\[r5<<0x2\],r5:t,r5:t
50103 + *[0-9a-f]*: e9 e4 84 14 sthh\.w r4\[r4<<0x1\],r4:b,r4:b
50104 + *[0-9a-f]*: fd ee be 1e sthh\.w lr\[lr<<0x1\],lr:t,lr:t
50105 + *[0-9a-f]*: e3 ec b6 3d sthh\.w sp\[r6<<0x3\],r1:t,r12:t
50106 + *[0-9a-f]*: f3 e9 b6 06 sthh\.w r6\[r6\],r9:t,r9:t
50107 + *[0-9a-f]*: e1 eb 93 0a sthh\.w r10\[r3\],r0:b,r11:t
50108 +
50109 +[0-9a-f]* <sthh_w1>:
50110 + *[0-9a-f]*: ff ef c0 0f sthh\.w pc\[0x0\],pc:b,pc:b
50111 + *[0-9a-f]*: f9 ec ff fc sthh\.w r12\[0x3fc\],r12:t,r12:t
50112 + *[0-9a-f]*: eb e5 f8 05 sthh\.w r5\[0x200\],r5:t,r5:t
50113 + *[0-9a-f]*: e9 e4 c7 f4 sthh\.w r4\[0x1fc\],r4:b,r4:b
50114 + *[0-9a-f]*: fd ee f0 1e sthh\.w lr\[0x4\],lr:t,lr:t
50115 + *[0-9a-f]*: f3 e0 e6 54 sthh\.w r4\[0x194\],r9:t,r0:b
50116 + *[0-9a-f]*: e5 ea e5 78 sthh\.w r8\[0x15c\],r2:t,r10:b
50117 + *[0-9a-f]*: f3 e2 c2 bd sthh\.w sp\[0xac\],r9:b,r2:b
50118 +
50119 +[0-9a-f]* <cop>:
50120 + *[0-9a-f]*: e1 a0 00 00 cop cp0,cr0,cr0,cr0,0x0
50121 + *[0-9a-f]*: e7 af ff ff cop cp7,cr15,cr15,cr15,0x7f
50122 + *[0-9a-f]*: e3 a8 75 55 cop cp3,cr5,cr5,cr5,0x31
50123 + *[0-9a-f]*: e3 a8 44 44 cop cp2,cr4,cr4,cr4,0x30
50124 + *[0-9a-f]*: e5 ad a8 37 cop cp5,cr8,cr3,cr7,0x5a
50125 +
50126 +[0-9a-f]* <ldc_w1>:
50127 + *[0-9a-f]*: e9 a0 00 00 ldc\.w cp0,cr0,r0\[0x0\]
50128 + *[0-9a-f]*: e9 af ef ff ldc\.w cp7,cr15,pc\[0x3fc\]
50129 + *[0-9a-f]*: e9 a5 65 80 ldc\.w cp3,cr5,r5\[0x200\]
50130 + *[0-9a-f]*: e9 a4 44 7f ldc\.w cp2,cr4,r4\[0x1fc\]
50131 + *[0-9a-f]*: e9 ad 89 24 ldc\.w cp4,cr9,sp\[0x90\]
50132 +
50133 +[0-9a-f]* <ldc_w2>:
50134 + *[0-9a-f]*: ef a0 00 40 ldc\.w cp0,cr0,--r0
50135 + *[0-9a-f]*: ef af ef 40 ldc\.w cp7,cr15,--pc
50136 + *[0-9a-f]*: ef a5 65 40 ldc\.w cp3,cr5,--r5
50137 + *[0-9a-f]*: ef a4 44 40 ldc\.w cp2,cr4,--r4
50138 + *[0-9a-f]*: ef ad 89 40 ldc\.w cp4,cr9,--sp
50139 +
50140 +[0-9a-f]* <ldc_w3>:
50141 + *[0-9a-f]*: ef a0 10 00 ldc\.w cp0,cr0,r0\[r0\]
50142 + *[0-9a-f]*: ef af ff 3f ldc\.w cp7,cr15,pc\[pc<<0x3\]
50143 + *[0-9a-f]*: ef a5 75 24 ldc\.w cp3,cr5,r5\[r4<<0x2\]
50144 + *[0-9a-f]*: ef a4 54 13 ldc\.w cp2,cr4,r4\[r3<<0x1\]
50145 + *[0-9a-f]*: ef ad 99 0c ldc\.w cp4,cr9,sp\[r12\]
50146 +
50147 +[0-9a-f]* <ldc_d1>:
50148 + *[0-9a-f]*: e9 a0 10 00 ldc\.d cp0,cr0,r0\[0x0\]
50149 + *[0-9a-f]*: e9 af fe ff ldc\.d cp7,cr14,pc\[0x3fc\]
50150 + *[0-9a-f]*: e9 a5 76 80 ldc\.d cp3,cr6,r5\[0x200\]
50151 + *[0-9a-f]*: e9 a4 54 7f ldc\.d cp2,cr4,r4\[0x1fc\]
50152 + *[0-9a-f]*: e9 ad 98 24 ldc\.d cp4,cr8,sp\[0x90\]
50153 +
50154 +[0-9a-f]* <ldc_d2>:
50155 + *[0-9a-f]*: ef a0 00 50 ldc\.d cp0,cr0,--r0
50156 + *[0-9a-f]*: ef af ee 50 ldc\.d cp7,cr14,--pc
50157 + *[0-9a-f]*: ef a5 66 50 ldc\.d cp3,cr6,--r5
50158 + *[0-9a-f]*: ef a4 44 50 ldc\.d cp2,cr4,--r4
50159 + *[0-9a-f]*: ef ad 88 50 ldc\.d cp4,cr8,--sp
50160 +
50161 +[0-9a-f]* <ldc_d3>:
50162 + *[0-9a-f]*: ef a0 10 40 ldc\.d cp0,cr0,r0\[r0\]
50163 + *[0-9a-f]*: ef af fe 7f ldc\.d cp7,cr14,pc\[pc<<0x3\]
50164 + *[0-9a-f]*: ef a5 76 64 ldc\.d cp3,cr6,r5\[r4<<0x2\]
50165 + *[0-9a-f]*: ef a4 54 53 ldc\.d cp2,cr4,r4\[r3<<0x1\]
50166 + *[0-9a-f]*: ef ad 98 4c ldc\.d cp4,cr8,sp\[r12\]
50167 +
50168 +[0-9a-f]* <stc_w1>:
50169 + *[0-9a-f]*: eb a0 00 00 stc\.w cp0,r0\[0x0\],cr0
50170 + *[0-9a-f]*: eb af ef ff stc\.w cp7,pc\[0x3fc\],cr15
50171 + *[0-9a-f]*: eb a5 65 80 stc\.w cp3,r5\[0x200\],cr5
50172 + *[0-9a-f]*: eb a4 44 7f stc\.w cp2,r4\[0x1fc\],cr4
50173 + *[0-9a-f]*: eb ad 89 24 stc\.w cp4,sp\[0x90\],cr9
50174 +
50175 +[0-9a-f]* <stc_w2>:
50176 + *[0-9a-f]*: ef a0 00 60 stc\.w cp0,r0\+\+,cr0
50177 + *[0-9a-f]*: ef af ef 60 stc\.w cp7,pc\+\+,cr15
50178 + *[0-9a-f]*: ef a5 65 60 stc\.w cp3,r5\+\+,cr5
50179 + *[0-9a-f]*: ef a4 44 60 stc\.w cp2,r4\+\+,cr4
50180 + *[0-9a-f]*: ef ad 89 60 stc\.w cp4,sp\+\+,cr9
50181 +
50182 +[0-9a-f]* <stc_w3>:
50183 + *[0-9a-f]*: ef a0 10 80 stc\.w cp0,r0\[r0\],cr0
50184 + *[0-9a-f]*: ef af ff bf stc\.w cp7,pc\[pc<<0x3\],cr15
50185 + *[0-9a-f]*: ef a5 75 a4 stc\.w cp3,r5\[r4<<0x2\],cr5
50186 + *[0-9a-f]*: ef a4 54 93 stc\.w cp2,r4\[r3<<0x1\],cr4
50187 + *[0-9a-f]*: ef ad 99 8c stc\.w cp4,sp\[r12\],cr9
50188 +
50189 +[0-9a-f]* <stc_d1>:
50190 + *[0-9a-f]*: eb a0 10 00 stc\.d cp0,r0\[0x0\],cr0
50191 + *[0-9a-f]*: eb af fe ff stc\.d cp7,pc\[0x3fc\],cr14
50192 + *[0-9a-f]*: eb a5 76 80 stc\.d cp3,r5\[0x200\],cr6
50193 + *[0-9a-f]*: eb a4 54 7f stc\.d cp2,r4\[0x1fc\],cr4
50194 + *[0-9a-f]*: eb ad 98 24 stc\.d cp4,sp\[0x90\],cr8
50195 +
50196 +[0-9a-f]* <stc_d2>:
50197 + *[0-9a-f]*: ef a0 00 70 stc\.d cp0,r0\+\+,cr0
50198 + *[0-9a-f]*: ef af ee 70 stc\.d cp7,pc\+\+,cr14
50199 + *[0-9a-f]*: ef a5 66 70 stc\.d cp3,r5\+\+,cr6
50200 + *[0-9a-f]*: ef a4 44 70 stc\.d cp2,r4\+\+,cr4
50201 + *[0-9a-f]*: ef ad 88 70 stc\.d cp4,sp\+\+,cr8
50202 +
50203 +[0-9a-f]* <stc_d3>:
50204 + *[0-9a-f]*: ef a0 10 c0 stc\.d cp0,r0\[r0\],cr0
50205 + *[0-9a-f]*: ef af fe ff stc\.d cp7,pc\[pc<<0x3\],cr14
50206 + *[0-9a-f]*: ef a5 76 e4 stc\.d cp3,r5\[r4<<0x2\],cr6
50207 + *[0-9a-f]*: ef a4 54 d3 stc\.d cp2,r4\[r3<<0x1\],cr4
50208 + *[0-9a-f]*: ef ad 98 cc stc\.d cp4,sp\[r12\],cr8
50209 +
50210 +[0-9a-f]* <ldc0_w>:
50211 + *[0-9a-f]*: f1 a0 00 00 ldc0\.w cr0,r0\[0x0\]
50212 + *[0-9a-f]*: f1 af ff ff ldc0\.w cr15,pc\[0x3ffc\]
50213 + *[0-9a-f]*: f1 a5 85 00 ldc0\.w cr5,r5\[0x2000\]
50214 + *[0-9a-f]*: f1 a4 74 ff ldc0\.w cr4,r4\[0x1ffc\]
50215 + *[0-9a-f]*: f1 ad 09 93 ldc0\.w cr9,sp\[0x24c\]
50216 +
50217 +[0-9a-f]* <ldc0_d>:
50218 + *[0-9a-f]*: f3 a0 00 00 ldc0\.d cr0,r0\[0x0\]
50219 + *[0-9a-f]*: f3 af fe ff ldc0\.d cr14,pc\[0x3ffc\]
50220 + *[0-9a-f]*: f3 a5 86 00 ldc0\.d cr6,r5\[0x2000\]
50221 + *[0-9a-f]*: f3 a4 74 ff ldc0\.d cr4,r4\[0x1ffc\]
50222 + *[0-9a-f]*: f3 ad 08 93 ldc0\.d cr8,sp\[0x24c\]
50223 +
50224 +[0-9a-f]* <stc0_w>:
50225 + *[0-9a-f]*: f5 a0 00 00 stc0\.w r0\[0x0\],cr0
50226 + *[0-9a-f]*: f5 af ff ff stc0\.w pc\[0x3ffc\],cr15
50227 + *[0-9a-f]*: f5 a5 85 00 stc0\.w r5\[0x2000\],cr5
50228 + *[0-9a-f]*: f5 a4 74 ff stc0\.w r4\[0x1ffc\],cr4
50229 + *[0-9a-f]*: f5 ad 09 93 stc0\.w sp\[0x24c\],cr9
50230 +
50231 +[0-9a-f]* <stc0_d>:
50232 + *[0-9a-f]*: f7 a0 00 00 stc0\.d r0\[0x0\],cr0
50233 + *[0-9a-f]*: f7 af fe ff stc0\.d pc\[0x3ffc\],cr14
50234 + *[0-9a-f]*: f7 a5 86 00 stc0\.d r5\[0x2000\],cr6
50235 + *[0-9a-f]*: f7 a4 74 ff stc0\.d r4\[0x1ffc\],cr4
50236 + *[0-9a-f]*: f7 ad 08 93 stc0\.d sp\[0x24c\],cr8
50237 +
50238 +[0-9a-f]* <memc>:
50239 + *[0-9a-f]*: f6 10 00 00 memc 0,0x0
50240 + *[0-9a-f]*: f6 1f ff ff memc -4,0x1f
50241 + *[0-9a-f]*: f6 18 40 00 memc -65536,0x10
50242 + *[0-9a-f]*: f6 17 bf ff memc 65532,0xf
50243 +
50244 +[0-9a-f]* <mems>:
50245 + *[0-9a-f]*: f8 10 00 00 mems 0,0x0
50246 + *[0-9a-f]*: f8 1f ff ff mems -4,0x1f
50247 + *[0-9a-f]*: f8 18 40 00 mems -65536,0x10
50248 + *[0-9a-f]*: f8 17 bf ff mems 65532,0xf
50249 +
50250 +[0-9a-f]* <memt>:
50251 + *[0-9a-f]*: fa 10 00 00 memt 0,0x0
50252 + *[0-9a-f]*: fa 1f ff ff memt -4,0x1f
50253 + *[0-9a-f]*: fa 18 40 00 memt -65536,0x10
50254 + *[0-9a-f]*: fa 17 bf ff memt 65532,0xf
50255 +
50256 +[0-9a-f]* <stcond>:
50257 + *[0-9a-f]*: e1 70 00 00 stcond r0\[0\],r0
50258 + *[0-9a-f]*: ff 7f ff ff stcond pc\[-1\],pc
50259 + *[0-9a-f]*: f1 77 80 00 stcond r8\[-32768\],r7
50260 + *[0-9a-f]*: ef 78 7f ff stcond r7\[32767\],r8
50261 + *[0-9a-f]*: eb 7a 12 34 stcond r5\[4660\],r10
50262 +
50263 +[0-9a-f]* <ldcm_w>:
50264 + *[0-9a-f]*: ed af 00 ff ldcm\.w cp0,pc,cr0-cr7
50265 + *[0-9a-f]*: ed a0 e0 01 ldcm\.w cp7,r0,cr0
50266 + *[0-9a-f]*: ed a4 90 7f ldcm\.w cp4,r4\+\+,cr0-cr6
50267 + *[0-9a-f]*: ed a7 60 80 ldcm\.w cp3,r7,cr7
50268 + *[0-9a-f]*: ed ac 30 72 ldcm\.w cp1,r12\+\+,cr1,cr4-cr6
50269 + *[0-9a-f]*: ed af 01 ff ldcm\.w cp0,pc,cr8-cr15
50270 + *[0-9a-f]*: ed a0 e1 01 ldcm\.w cp7,r0,cr8
50271 + *[0-9a-f]*: ed a4 91 7f ldcm\.w cp4,r4\+\+,cr8-cr14
50272 + *[0-9a-f]*: ed a7 61 80 ldcm\.w cp3,r7,cr15
50273 + *[0-9a-f]*: ed ac 31 72 ldcm\.w cp1,r12\+\+,cr9,cr12-cr14
50274 +
50275 +[0-9a-f]* <ldcm_d>:
50276 + *[0-9a-f]*: ed af 04 ff ldcm\.d cp0,pc,cr0-cr15
50277 + *[0-9a-f]*: ed a0 e4 01 ldcm\.d cp7,r0,cr0-cr1
50278 + *[0-9a-f]*: ed a4 94 7f ldcm\.d cp4,r4\+\+,cr0-cr13
50279 + *[0-9a-f]*: ed a7 64 80 ldcm\.d cp3,r7,cr14-cr15
50280 + *[0-9a-f]*: ed ac 54 93 ldcm\.d cp2,r12\+\+,cr0-cr3,cr8-cr9,cr14-cr15
50281 +
50282 +[0-9a-f]* <stcm_w>:
50283 + *[0-9a-f]*: ed af 02 ff stcm\.w cp0,pc,cr0-cr7
50284 + *[0-9a-f]*: ed a0 e2 01 stcm\.w cp7,r0,cr0
50285 + *[0-9a-f]*: ed a4 92 7f stcm\.w cp4,--r4,cr0-cr6
50286 + *[0-9a-f]*: ed a7 62 80 stcm\.w cp3,r7,cr7
50287 + *[0-9a-f]*: ed ac 32 72 stcm\.w cp1,--r12,cr1,cr4-cr6
50288 + *[0-9a-f]*: ed af 03 ff stcm\.w cp0,pc,cr8-cr15
50289 + *[0-9a-f]*: ed a0 e3 01 stcm\.w cp7,r0,cr8
50290 + *[0-9a-f]*: ed a4 93 7f stcm\.w cp4,--r4,cr8-cr14
50291 + *[0-9a-f]*: ed a7 63 80 stcm\.w cp3,r7,cr15
50292 + *[0-9a-f]*: ed ac 33 72 stcm\.w cp1,--r12,cr9,cr12-cr14
50293 +
50294 +[0-9a-f]* <stcm_d>:
50295 + *[0-9a-f]*: ed af 05 ff stcm\.d cp0,pc,cr0-cr15
50296 + *[0-9a-f]*: ed a0 e5 01 stcm\.d cp7,r0,cr0-cr1
50297 + *[0-9a-f]*: ed a4 95 7f stcm\.d cp4,--r4,cr0-cr13
50298 + *[0-9a-f]*: ed a7 65 80 stcm\.d cp3,r7,cr14-cr15
50299 + *[0-9a-f]*: ed ac 55 93 stcm\.d cp2,--r12,cr0-cr3,cr8-cr9,cr14-cr15
50300 +
50301 +[0-9a-f]* <mvcr_w>:
50302 + *[0-9a-f]*: ef af ef 00 mvcr\.w cp7,pc,cr15
50303 + *[0-9a-f]*: ef a0 00 00 mvcr\.w cp0,r0,cr0
50304 + *[0-9a-f]*: ef af 0f 00 mvcr\.w cp0,pc,cr15
50305 + *[0-9a-f]*: ef a0 ef 00 mvcr\.w cp7,r0,cr15
50306 + *[0-9a-f]*: ef af e0 00 mvcr\.w cp7,pc,cr0
50307 + *[0-9a-f]*: ef a7 88 00 mvcr\.w cp4,r7,cr8
50308 + *[0-9a-f]*: ef a8 67 00 mvcr\.w cp3,r8,cr7
50309 +
50310 +[0-9a-f]* <mvcr_d>:
50311 + *[0-9a-f]*: ef ae ee 10 mvcr\.d cp7,lr,cr14
50312 + *[0-9a-f]*: ef a0 00 10 mvcr\.d cp0,r0,cr0
50313 + *[0-9a-f]*: ef ae 0e 10 mvcr\.d cp0,lr,cr14
50314 + *[0-9a-f]*: ef a0 ee 10 mvcr\.d cp7,r0,cr14
50315 + *[0-9a-f]*: ef ae e0 10 mvcr\.d cp7,lr,cr0
50316 + *[0-9a-f]*: ef a6 88 10 mvcr\.d cp4,r6,cr8
50317 + *[0-9a-f]*: ef a8 66 10 mvcr\.d cp3,r8,cr6
50318 +
50319 +[0-9a-f]* <mvrc_w>:
50320 + *[0-9a-f]*: ef af ef 20 mvrc\.w cp7,cr15,pc
50321 + *[0-9a-f]*: ef a0 00 20 mvrc\.w cp0,cr0,r0
50322 + *[0-9a-f]*: ef af 0f 20 mvrc\.w cp0,cr15,pc
50323 + *[0-9a-f]*: ef a0 ef 20 mvrc\.w cp7,cr15,r0
50324 + *[0-9a-f]*: ef af e0 20 mvrc\.w cp7,cr0,pc
50325 + *[0-9a-f]*: ef a7 88 20 mvrc\.w cp4,cr8,r7
50326 + *[0-9a-f]*: ef a8 67 20 mvrc\.w cp3,cr7,r8
50327 +
50328 +[0-9a-f]* <mvrc_d>:
50329 + *[0-9a-f]*: ef ae ee 30 mvrc\.d cp7,cr14,lr
50330 + *[0-9a-f]*: ef a0 00 30 mvrc\.d cp0,cr0,r0
50331 + *[0-9a-f]*: ef ae 0e 30 mvrc\.d cp0,cr14,lr
50332 + *[0-9a-f]*: ef a0 ee 30 mvrc\.d cp7,cr14,r0
50333 + *[0-9a-f]*: ef ae e0 30 mvrc\.d cp7,cr0,lr
50334 + *[0-9a-f]*: ef a6 88 30 mvrc\.d cp4,cr8,r6
50335 + *[0-9a-f]*: ef a8 66 30 mvrc\.d cp3,cr6,r8
50336 +
50337 +[0-9a-f]* <bfexts>:
50338 + *[0-9a-f]*: ff df b3 ff bfexts pc,pc,0x1f,0x1f
50339 + *[0-9a-f]*: e1 d0 b0 00 bfexts r0,r0,0x0,0x0
50340 + *[0-9a-f]*: e1 df b3 ff bfexts r0,pc,0x1f,0x1f
50341 + *[0-9a-f]*: ff d0 b3 ff bfexts pc,r0,0x1f,0x1f
50342 + *[0-9a-f]*: ff df b0 1f bfexts pc,pc,0x0,0x1f
50343 + *[0-9a-f]*: ff df b3 e0 bfexts pc,pc,0x1f,0x0
50344 + *[0-9a-f]*: ef d8 b1 f0 bfexts r7,r8,0xf,0x10
50345 + *[0-9a-f]*: f1 d7 b2 0f bfexts r8,r7,0x10,0xf
50346 +
50347 +[0-9a-f]* <bfextu>:
50348 + *[0-9a-f]*: ff df c3 ff bfextu pc,pc,0x1f,0x1f
50349 + *[0-9a-f]*: e1 d0 c0 00 bfextu r0,r0,0x0,0x0
50350 + *[0-9a-f]*: e1 df c3 ff bfextu r0,pc,0x1f,0x1f
50351 + *[0-9a-f]*: ff d0 c3 ff bfextu pc,r0,0x1f,0x1f
50352 + *[0-9a-f]*: ff df c0 1f bfextu pc,pc,0x0,0x1f
50353 + *[0-9a-f]*: ff df c3 e0 bfextu pc,pc,0x1f,0x0
50354 + *[0-9a-f]*: ef d8 c1 f0 bfextu r7,r8,0xf,0x10
50355 + *[0-9a-f]*: f1 d7 c2 0f bfextu r8,r7,0x10,0xf
50356 +
50357 +[0-9a-f]* <bfins>:
50358 + *[0-9a-f]*: ff df d3 ff bfins pc,pc,0x1f,0x1f
50359 + *[0-9a-f]*: e1 d0 d0 00 bfins r0,r0,0x0,0x0
50360 + *[0-9a-f]*: e1 df d3 ff bfins r0,pc,0x1f,0x1f
50361 + *[0-9a-f]*: ff d0 d3 ff bfins pc,r0,0x1f,0x1f
50362 + *[0-9a-f]*: ff df d0 1f bfins pc,pc,0x0,0x1f
50363 + *[0-9a-f]*: ff df d3 e0 bfins pc,pc,0x1f,0x0
50364 + *[0-9a-f]*: ef d8 d1 f0 bfins r7,r8,0xf,0x10
50365 + *[0-9a-f]*: f1 d7 d2 0f bfins r8,r7,0x10,0xf
50366 --- /dev/null
50367 +++ b/gas/testsuite/gas/avr32/allinsn.exp
50368 @@ -0,0 +1,5 @@
50369 +# AVR32 assembler testsuite. -*- Tcl -*-
50370 +
50371 +if [istarget avr32-*-*] {
50372 + run_dump_test "allinsn"
50373 +}
50374 --- /dev/null
50375 +++ b/gas/testsuite/gas/avr32/allinsn.s
50376 @@ -0,0 +1,3242 @@
50377 + .data
50378 +foodata: .word 42
50379 + .text
50380 +footext:
50381 + .text
50382 + .global ld_d5
50383 +ld_d5:
50384 + ld.d lr,pc[pc<<3]
50385 + ld.d r0,r0[r0<<0]
50386 + ld.d r6,r5[r5<<2]
50387 + ld.d r4,r4[r4<<1]
50388 + ld.d lr,lr[lr<<1]
50389 + ld.d r10,r3[sp<<2]
50390 + ld.d r8,r10[r6<<2]
50391 + ld.d r2,r7[r9<<0]
50392 + .text
50393 + .global ld_w5
50394 +ld_w5:
50395 + ld.w pc,pc[pc<<0]
50396 + ld.w r12,r12[r12<<3]
50397 + ld.w r5,r5[r5<<2]
50398 + ld.w r4,r4[r4<<1]
50399 + ld.w lr,lr[lr<<1]
50400 + ld.w r2,r9[r9<<0]
50401 + ld.w r11,r2[r6<<0]
50402 + ld.w r0,r2[sp<<3]
50403 + .text
50404 + .global ld_sh5
50405 +ld_sh5:
50406 + ld.sh pc,pc[pc<<0]
50407 + ld.sh r12,r12[r12<<3]
50408 + ld.sh r5,r5[r5<<2]
50409 + ld.sh r4,r4[r4<<1]
50410 + ld.sh lr,lr[lr<<1]
50411 + ld.sh r11,r0[pc<<2]
50412 + ld.sh r10,sp[r6<<2]
50413 + ld.sh r12,r2[r2<<0]
50414 + .text
50415 + .global ld_uh5
50416 +ld_uh5:
50417 + ld.uh pc,pc[pc<<0]
50418 + ld.uh r12,r12[r12<<3]
50419 + ld.uh r5,r5[r5<<2]
50420 + ld.uh r4,r4[r4<<1]
50421 + ld.uh lr,lr[lr<<1]
50422 + ld.uh r8,pc[lr<<3]
50423 + ld.uh r6,r1[pc<<1]
50424 + ld.uh r6,lr[sp<<1]
50425 + .text
50426 + .global ld_sb2
50427 +ld_sb2:
50428 + ld.sb pc,pc[pc<<0]
50429 + ld.sb r12,r12[r12<<3]
50430 + ld.sb r5,r5[r5<<2]
50431 + ld.sb r4,r4[r4<<1]
50432 + ld.sb lr,lr[lr<<1]
50433 + ld.sb r9,r1[pc<<3]
50434 + ld.sb r0,r3[r11<<1]
50435 + ld.sb r10,r5[r5<<1]
50436 + .text
50437 + .global ld_ub5
50438 +ld_ub5:
50439 + ld.ub pc,pc[pc<<0]
50440 + ld.ub r12,r12[r12<<3]
50441 + ld.ub r5,r5[r5<<2]
50442 + ld.ub r4,r4[r4<<1]
50443 + ld.ub lr,lr[lr<<1]
50444 + ld.ub r6,r12[r7<<3]
50445 + ld.ub r2,r6[r12<<0]
50446 + ld.ub r0,r7[r11<<1]
50447 + .text
50448 + .global st_d5
50449 +st_d5:
50450 + st.d pc[pc<<0],r14
50451 + st.d r12[r12<<3],r12
50452 + st.d r5[r5<<2],r6
50453 + st.d r4[r4<<1],r4
50454 + st.d lr[lr<<1],lr
50455 + st.d r1[r9<<1],r4
50456 + st.d r10[r2<<1],r4
50457 + st.d r12[r6<<0],lr
50458 + .text
50459 + .global st_w5
50460 +st_w5:
50461 + st.w pc[pc<<0],pc
50462 + st.w r12[r12<<3],r12
50463 + st.w r5[r5<<2],r5
50464 + st.w r4[r4<<1],r4
50465 + st.w lr[lr<<1],lr
50466 + st.w r1[r10<<0],r3
50467 + st.w r0[r10<<1],r9
50468 + st.w r4[r5<<3],pc
50469 + .text
50470 + .global st_h5
50471 +st_h5:
50472 + st.h pc[pc<<0],pc
50473 + st.h r12[r12<<3],r12
50474 + st.h r5[r5<<2],r5
50475 + st.h r4[r4<<1],r4
50476 + st.h lr[lr<<1],lr
50477 + st.h r2[r9<<0],r11
50478 + st.h r5[r1<<2],r12
50479 + st.h pc[r8<<2],r3
50480 + .text
50481 + .global st_b5
50482 +st_b5:
50483 + st.b pc[pc<<0],pc
50484 + st.b r12[r12<<3],r12
50485 + st.b r5[r5<<2],r5
50486 + st.b r4[r4<<1],r4
50487 + st.b lr[lr<<1],lr
50488 + st.b r1[r8<<1],r6
50489 + st.b lr[lr<<3],r1
50490 + st.b r5[r0<<2],pc
50491 + .text
50492 + .global divs
50493 +divs:
50494 + divs pc,pc,pc
50495 + divs r12,r12,r12
50496 + divs r5,r5,r5
50497 + divs r4,r4,r4
50498 + divs lr,lr,lr
50499 + divs r3,pc,pc
50500 + divs r9,r12,r2
50501 + divs r7,r4,r1
50502 + .text
50503 + .global add1
50504 +add1:
50505 + add pc,pc
50506 + add r12,r12
50507 + add r5,r5
50508 + add r4,r4
50509 + add lr,lr
50510 + add r12,r9
50511 + add r6,r3
50512 + add r10,r12
50513 + .text
50514 + .global sub1
50515 +sub1:
50516 + sub pc,pc
50517 + sub r12,r12
50518 + sub r5,r5
50519 + sub r4,r4
50520 + sub lr,lr
50521 + sub lr,r6
50522 + sub r0,sp
50523 + sub r6,r12
50524 + .text
50525 + .global rsub1
50526 +rsub1:
50527 + rsub pc,pc
50528 + rsub r12,r12
50529 + rsub r5,r5
50530 + rsub r4,r4
50531 + rsub lr,lr
50532 + rsub r11,sp
50533 + rsub r7,r4
50534 + rsub r9,r1
50535 + .text
50536 + .global cp1
50537 +cp1:
50538 + cp pc,pc
50539 + cp r12,r12
50540 + cp r5,r5
50541 + cp r4,r4
50542 + cp lr,lr
50543 + cp r6,r2
50544 + cp r0,r9
50545 + cp r3,sp
50546 + .text
50547 + .global or1
50548 +or1:
50549 + or pc,pc
50550 + or r12,r12
50551 + or r5,r5
50552 + or r4,r4
50553 + or lr,lr
50554 + or r4,r9
50555 + or r11,r4
50556 + or r4,r0
50557 + .text
50558 + .global eor1
50559 +eor1:
50560 + eor pc,pc
50561 + eor r12,r12
50562 + eor r5,r5
50563 + eor r4,r4
50564 + eor lr,lr
50565 + eor r12,r11
50566 + eor r0,r1
50567 + eor r5,pc
50568 + .text
50569 + .global and1
50570 +and1:
50571 + and pc,pc
50572 + and r12,r12
50573 + and r5,r5
50574 + and r4,r4
50575 + and lr,lr
50576 + and r8,r1
50577 + and r0,sp
50578 + and r10,r5
50579 + .text
50580 + .global tst
50581 +tst:
50582 + tst pc,pc
50583 + tst r12,r12
50584 + tst r5,r5
50585 + tst r4,r4
50586 + tst lr,lr
50587 + tst r0,r12
50588 + tst r10,r6
50589 + tst sp,r4
50590 + .text
50591 + .global andn
50592 +andn:
50593 + andn pc,pc
50594 + andn r12,r12
50595 + andn r5,r5
50596 + andn r4,r4
50597 + andn lr,lr
50598 + andn r9,r12
50599 + andn r11,sp
50600 + andn r12,r5
50601 + .text
50602 + .global mov3
50603 +mov3:
50604 + mov pc,pc
50605 + mov r12,r12
50606 + mov r5,r5
50607 + mov r4,r4
50608 + mov lr,lr
50609 + mov r5,r9
50610 + mov r11,r11
50611 + mov r2,lr
50612 + .text
50613 + .global st_w1
50614 +st_w1:
50615 + st.w pc++,pc
50616 + st.w r12++,r12
50617 + st.w r5++,r5
50618 + st.w r4++,r4
50619 + st.w lr++,lr
50620 + st.w r1++,r11
50621 + st.w sp++,r0
50622 + st.w sp++,r1
50623 + .text
50624 + .global st_h1
50625 +st_h1:
50626 + st.h pc++,pc
50627 + st.h r12++,r12
50628 + st.h r5++,r5
50629 + st.h r4++,r4
50630 + st.h lr++,lr
50631 + st.h r12++,sp
50632 + st.h r7++,lr
50633 + st.h r7++,r4
50634 + .text
50635 + .global st_b1
50636 +st_b1:
50637 + st.b pc++,pc
50638 + st.b r12++,r12
50639 + st.b r5++,r5
50640 + st.b r4++,r4
50641 + st.b lr++,lr
50642 + st.b r9++,sp
50643 + st.b r1++,sp
50644 + st.b r0++,r4
50645 + .text
50646 + .global st_w2
50647 +st_w2:
50648 + st.w --pc,pc
50649 + st.w --r12,r12
50650 + st.w --r5,r5
50651 + st.w --r4,r4
50652 + st.w --lr,lr
50653 + st.w --r1,r7
50654 + st.w --r3,r9
50655 + st.w --r5,r5
50656 + .text
50657 + .global st_h2
50658 +st_h2:
50659 + st.h --pc,pc
50660 + st.h --r12,r12
50661 + st.h --r5,r5
50662 + st.h --r4,r4
50663 + st.h --lr,lr
50664 + st.h --r5,r7
50665 + st.h --r8,r8
50666 + st.h --r7,r2
50667 + .text
50668 + .global st_b2
50669 +st_b2:
50670 + st.b --pc,pc
50671 + st.b --r12,r12
50672 + st.b --r5,r5
50673 + st.b --r4,r4
50674 + st.b --lr,lr
50675 + st.b --sp,sp
50676 + st.b --sp,r11
50677 + st.b --r4,r5
50678 + .text
50679 + .global ld_w1
50680 +ld_w1:
50681 + ld.w pc,pc++
50682 + ld.w r12,r12++
50683 + ld.w r5,r5++
50684 + ld.w r4,r4++
50685 + ld.w lr,lr++
50686 + ld.w r3,r7++
50687 + ld.w r3,lr++
50688 + ld.w r12,r5++
50689 + .text
50690 + .global ld_sh1
50691 +ld_sh1:
50692 + ld.sh pc,pc++
50693 + ld.sh r12,r12++
50694 + ld.sh r5,r5++
50695 + ld.sh r4,r4++
50696 + ld.sh lr,lr++
50697 + ld.sh r11,r2++
50698 + ld.sh r2,r8++
50699 + ld.sh r7,r6++
50700 + .text
50701 + .global ld_uh1
50702 +ld_uh1:
50703 + ld.uh pc,pc++
50704 + ld.uh r12,r12++
50705 + ld.uh r5,r5++
50706 + ld.uh r4,r4++
50707 + ld.uh lr,lr++
50708 + ld.uh r6,r7++
50709 + ld.uh r10,r11++
50710 + ld.uh lr,r4++
50711 + .text
50712 + .global ld_ub1
50713 +ld_ub1:
50714 + ld.ub pc,pc++
50715 + ld.ub r12,r12++
50716 + ld.ub r5,r5++
50717 + ld.ub r4,r4++
50718 + ld.ub lr,lr++
50719 + ld.ub r8,lr++
50720 + ld.ub r12,r12++
50721 + ld.ub r11,r10++
50722 + .text
50723 + .global ld_w2
50724 +ld_w2:
50725 + ld.w pc,--pc
50726 + ld.w r12,--r12
50727 + ld.w r5,--r5
50728 + ld.w r4,--r4
50729 + ld.w lr,--lr
50730 + ld.w r10,--lr
50731 + ld.w r12,--r9
50732 + ld.w r6,--r5
50733 + .text
50734 + .global ld_sh2
50735 +ld_sh2:
50736 + ld.sh pc,--pc
50737 + ld.sh r12,--r12
50738 + ld.sh r5,--r5
50739 + ld.sh r4,--r4
50740 + ld.sh lr,--lr
50741 + ld.sh pc,--r10
50742 + ld.sh r6,--r3
50743 + ld.sh r4,--r6
50744 + .text
50745 + .global ld_uh2
50746 +ld_uh2:
50747 + ld.uh pc,--pc
50748 + ld.uh r12,--r12
50749 + ld.uh r5,--r5
50750 + ld.uh r4,--r4
50751 + ld.uh lr,--lr
50752 + ld.uh r3,--r2
50753 + ld.uh r1,--r0
50754 + ld.uh r2,--r9
50755 + .text
50756 + .global ld_ub2
50757 +ld_ub2:
50758 + ld.ub pc,--pc
50759 + ld.ub r12,--r12
50760 + ld.ub r5,--r5
50761 + ld.ub r4,--r4
50762 + ld.ub lr,--lr
50763 + ld.ub r1,--r1
50764 + ld.ub r0,--r6
50765 + ld.ub r2,--r7
50766 + .text
50767 + .global ld_ub3
50768 +ld_ub3:
50769 + ld.ub pc,pc[0]
50770 + ld.ub r12,r12[7]
50771 + ld.ub r5,r5[4]
50772 + ld.ub r4,r4[3]
50773 + ld.ub lr,lr[1]
50774 + ld.ub r6,r9[6]
50775 + ld.ub r2,lr[4]
50776 + ld.ub r1,r8[0]
50777 + .text
50778 + .global sub3_sp
50779 +sub3_sp:
50780 + sub sp,0
50781 + sub sp,-4
50782 + sub sp,-512
50783 + sub sp,508
50784 + sub sp,4
50785 + sub sp,44
50786 + sub sp,8
50787 + sub sp,348
50788 + .text
50789 + .global sub3
50790 +sub3:
50791 + sub pc,0
50792 + sub r12,-1
50793 + sub r5,-128
50794 + sub r4,127
50795 + sub lr,1
50796 + sub r6,-41
50797 + sub r4,37
50798 + sub r12,56
50799 + .text
50800 + .global mov1
50801 +mov1:
50802 + mov pc,0
50803 + mov r12,-1
50804 + mov r5,-128
50805 + mov r4,127
50806 + mov lr,1
50807 + mov pc,14
50808 + mov r6,-100
50809 + mov lr,-122
50810 + .text
50811 + .global lddsp
50812 +lddsp:
50813 + lddsp pc,sp[0]
50814 + lddsp r12,sp[508]
50815 + lddsp r5,sp[256]
50816 + lddsp r4,sp[252]
50817 + lddsp lr,sp[4]
50818 + lddsp lr,sp[256]
50819 + lddsp r12,sp[20]
50820 + lddsp r9,sp[472]
50821 + .text
50822 + .global lddpc
50823 +lddpc:
50824 + lddpc pc,pc[0]
50825 + lddpc r0,pc[508]
50826 + lddpc r8,pc[256]
50827 + lddpc r7,pc[252]
50828 + lddpc lr,pc[4]
50829 + lddpc sp,pc[472]
50830 + lddpc r6,pc[120]
50831 + lddpc r11,pc[28]
50832 + .text
50833 + .global stdsp
50834 +stdsp:
50835 + stdsp sp[0],pc
50836 + stdsp sp[508],r12
50837 + stdsp sp[256],r5
50838 + stdsp sp[252],r4
50839 + stdsp sp[4],lr
50840 + stdsp sp[304],pc
50841 + stdsp sp[256],r0
50842 + stdsp sp[336],r5
50843 + .text
50844 + .global cp2
50845 +cp2:
50846 + cp pc,0
50847 + cp r12,-1
50848 + cp r5,-32
50849 + cp r4,31
50850 + cp lr,1
50851 + cp r8,3
50852 + cp lr,16
50853 + cp r7,-26
50854 + .text
50855 + .global acr
50856 +acr:
50857 + acr pc
50858 + acr r12
50859 + acr r5
50860 + acr r4
50861 + acr lr
50862 + acr r2
50863 + acr r12
50864 + acr pc
50865 + .text
50866 + .global scr
50867 +scr:
50868 + scr pc
50869 + scr r12
50870 + scr r5
50871 + scr r4
50872 + scr lr
50873 + scr pc
50874 + scr r6
50875 + scr r1
50876 + .text
50877 + .global cpc0
50878 +cpc0:
50879 + cpc pc
50880 + cpc r12
50881 + cpc r5
50882 + cpc r4
50883 + cpc lr
50884 + cpc pc
50885 + cpc r4
50886 + cpc r9
50887 + .text
50888 + .global neg
50889 +neg:
50890 + neg pc
50891 + neg r12
50892 + neg r5
50893 + neg r4
50894 + neg lr
50895 + neg r7
50896 + neg r1
50897 + neg r9
50898 + .text
50899 + .global abs
50900 +abs:
50901 + abs pc
50902 + abs r12
50903 + abs r5
50904 + abs r4
50905 + abs lr
50906 + abs r6
50907 + abs r6
50908 + abs r4
50909 + .text
50910 + .global castu_b
50911 +castu_b:
50912 + castu.b pc
50913 + castu.b r12
50914 + castu.b r5
50915 + castu.b r4
50916 + castu.b lr
50917 + castu.b r7
50918 + castu.b sp
50919 + castu.b r9
50920 + .text
50921 + .global casts_b
50922 +casts_b:
50923 + casts.b pc
50924 + casts.b r12
50925 + casts.b r5
50926 + casts.b r4
50927 + casts.b lr
50928 + casts.b r11
50929 + casts.b r1
50930 + casts.b r10
50931 + .text
50932 + .global castu_h
50933 +castu_h:
50934 + castu.h pc
50935 + castu.h r12
50936 + castu.h r5
50937 + castu.h r4
50938 + castu.h lr
50939 + castu.h r10
50940 + castu.h r11
50941 + castu.h r1
50942 + .text
50943 + .global casts_h
50944 +casts_h:
50945 + casts.h pc
50946 + casts.h r12
50947 + casts.h r5
50948 + casts.h r4
50949 + casts.h lr
50950 + casts.h r0
50951 + casts.h r5
50952 + casts.h r9
50953 + .text
50954 + .global brev
50955 +brev:
50956 + brev pc
50957 + brev r12
50958 + brev r5
50959 + brev r4
50960 + brev lr
50961 + brev r5
50962 + brev r10
50963 + brev r8
50964 + .text
50965 + .global swap_h
50966 +swap_h:
50967 + swap.h pc
50968 + swap.h r12
50969 + swap.h r5
50970 + swap.h r4
50971 + swap.h lr
50972 + swap.h r7
50973 + swap.h r0
50974 + swap.h r8
50975 + .text
50976 + .global swap_b
50977 +swap_b:
50978 + swap.b pc
50979 + swap.b r12
50980 + swap.b r5
50981 + swap.b r4
50982 + swap.b lr
50983 + swap.b r10
50984 + swap.b r12
50985 + swap.b r1
50986 + .text
50987 + .global swap_bh
50988 +swap_bh:
50989 + swap.bh pc
50990 + swap.bh r12
50991 + swap.bh r5
50992 + swap.bh r4
50993 + swap.bh lr
50994 + swap.bh r9
50995 + swap.bh r4
50996 + swap.bh r1
50997 + .text
50998 + .global One_s_compliment
50999 +One_s_compliment:
51000 + com pc
51001 + com r12
51002 + com r5
51003 + com r4
51004 + com lr
51005 + com r2
51006 + com r2
51007 + com r7
51008 + .text
51009 + .global tnbz
51010 +tnbz:
51011 + tnbz pc
51012 + tnbz r12
51013 + tnbz r5
51014 + tnbz r4
51015 + tnbz lr
51016 + tnbz r8
51017 + tnbz r12
51018 + tnbz pc
51019 + .text
51020 + .global rol
51021 +rol:
51022 + rol pc
51023 + rol r12
51024 + rol r5
51025 + rol r4
51026 + rol lr
51027 + rol r10
51028 + rol r9
51029 + rol r5
51030 + .text
51031 + .global ror
51032 +ror:
51033 + ror pc
51034 + ror r12
51035 + ror r5
51036 + ror r4
51037 + ror lr
51038 + ror r8
51039 + ror r4
51040 + ror r7
51041 + .text
51042 + .global icall
51043 +icall:
51044 + icall pc
51045 + icall r12
51046 + icall r5
51047 + icall r4
51048 + icall lr
51049 + icall r3
51050 + icall r1
51051 + icall r3
51052 + .text
51053 + .global mustr
51054 +mustr:
51055 + mustr pc
51056 + mustr r12
51057 + mustr r5
51058 + mustr r4
51059 + mustr lr
51060 + mustr r1
51061 + mustr r4
51062 + mustr r12
51063 + .text
51064 + .global musfr
51065 +musfr:
51066 + musfr pc
51067 + musfr r12
51068 + musfr r5
51069 + musfr r4
51070 + musfr lr
51071 + musfr r11
51072 + musfr r12
51073 + musfr r2
51074 + .text
51075 + .global ret_cond
51076 +ret_cond:
51077 + reteq pc
51078 + retal r12
51079 + retls r5
51080 + retpl r4
51081 + retne lr
51082 + retgt r0
51083 + retgt r12
51084 + retge r10
51085 + .text
51086 + .global sr_cond
51087 +sr_cond:
51088 + sreq pc
51089 + sral r12
51090 + srls r5
51091 + srpl r4
51092 + srne lr
51093 + srlt r0
51094 + sral sp
51095 + srge r9
51096 + .text
51097 + .global ld_w3
51098 +ld_w3:
51099 + ld.w pc,pc[0]
51100 + ld.w r12,r12[124]
51101 + ld.w r5,r5[64]
51102 + ld.w r4,r4[60]
51103 + ld.w lr,lr[4]
51104 + ld.w sp,r2[52]
51105 + ld.w r9,r1[8]
51106 + ld.w r5,sp[60]
51107 + .text
51108 + .global ld_sh3
51109 +ld_sh3:
51110 + ld.sh pc,pc[0]
51111 + ld.sh r12,r12[14]
51112 + ld.sh r5,r5[8]
51113 + ld.sh r4,r4[6]
51114 + ld.sh lr,lr[2]
51115 + ld.sh r4,r2[8]
51116 + ld.sh sp,lr[10]
51117 + ld.sh r2,r11[2]
51118 + .text
51119 + .global ld_uh3
51120 +ld_uh3:
51121 + ld.uh pc,pc[0]
51122 + ld.uh r12,r12[14]
51123 + ld.uh r5,r5[8]
51124 + ld.uh r4,r4[6]
51125 + ld.uh lr,lr[2]
51126 + ld.uh r10,r0[10]
51127 + ld.uh r8,r11[8]
51128 + ld.uh r10,r2[12]
51129 + .text
51130 + .global st_w3
51131 +st_w3:
51132 + st.w pc[0],pc
51133 + st.w r12[60],r12
51134 + st.w r5[32],r5
51135 + st.w r4[28],r4
51136 + st.w lr[4],lr
51137 + st.w r7[44],r11
51138 + st.w r2[24],r6
51139 + st.w r4[12],r9
51140 + .text
51141 + .global st_h3
51142 +st_h3:
51143 + st.h pc[0],pc
51144 + st.h r12[14],r12
51145 + st.h r5[8],r5
51146 + st.h r4[6],r4
51147 + st.h lr[2],lr
51148 + st.h lr[10],r12
51149 + st.h r6[4],r0
51150 + st.h r5[12],sp
51151 + .text
51152 + .global st_b3
51153 +st_b3:
51154 + st.b pc[0],pc
51155 + st.b r12[7],r12
51156 + st.b r5[4],r5
51157 + st.b r4[3],r4
51158 + st.b lr[1],lr
51159 + st.b r12[6],r9
51160 + st.b r2[3],lr
51161 + st.b r1[3],r11
51162 + .text
51163 + .global ldd
51164 +ldd:
51165 + ld.d r0,pc
51166 + ld.d r14,r12
51167 + ld.d r8,r5
51168 + ld.d r6,r4
51169 + ld.d r2,lr
51170 + ld.d r14,r7
51171 + ld.d r4,r4
51172 + ld.d r14,pc
51173 + .text
51174 + .global ldd_postinc
51175 +ldd_postinc:
51176 + ld.d r0,pc++
51177 + ld.d r14,r12++
51178 + ld.d r8,r5++
51179 + ld.d r6,r4++
51180 + ld.d r2,lr++
51181 + ld.d r14,r5++
51182 + ld.d r12,r11++
51183 + ld.d r2,r12++
51184 + .text
51185 + .global ldd_predec
51186 +ldd_predec:
51187 + ld.d r0,--pc
51188 + ld.d r14,--r12
51189 + ld.d r8,--r5
51190 + ld.d r6,--r4
51191 + ld.d r2,--lr
51192 + ld.d r8,--r0
51193 + ld.d r10,--pc
51194 + ld.d r2,--r4
51195 + .text
51196 + .global std
51197 +std:
51198 + st.d pc,r0
51199 + st.d r12,r14
51200 + st.d r5,r8
51201 + st.d r4,r6
51202 + st.d lr,r2
51203 + st.d r0,r12
51204 + st.d sp,r4
51205 + st.d r12,r12
51206 + .text
51207 + .global std_postinc
51208 +std_postinc:
51209 + st.d pc++,r0
51210 + st.d r12++,r14
51211 + st.d r5++,r8
51212 + st.d r4++,r6
51213 + st.d lr++,r2
51214 + st.d sp++,r6
51215 + st.d r10++,r6
51216 + st.d r7++,r2
51217 + .text
51218 + .global std_predec
51219 +std_predec:
51220 + st.d --pc,r0
51221 + st.d --r12,r14
51222 + st.d --r5,r8
51223 + st.d --r4,r6
51224 + st.d --lr,r2
51225 + st.d --r3,r6
51226 + st.d --lr,r2
51227 + st.d --r0,r4
51228 + .text
51229 + .global mul
51230 +mul:
51231 + mul pc,pc
51232 + mul r12,r12
51233 + mul r5,r5
51234 + mul r4,r4
51235 + mul lr,lr
51236 + mul r10,lr
51237 + mul r0,r8
51238 + mul r8,r5
51239 + .text
51240 + .global asr_imm5
51241 +asr_imm5:
51242 + asr pc,0
51243 + asr r12,31
51244 + asr r5,16
51245 + asr r4,15
51246 + asr lr,1
51247 + asr r6,23
51248 + asr r6,18
51249 + asr r5,8
51250 + .text
51251 + .global lsl_imm5
51252 +lsl_imm5:
51253 + lsl pc,0
51254 + lsl r12,31
51255 + lsl r5,16
51256 + lsl r4,15
51257 + lsl lr,1
51258 + lsl r12,13
51259 + lsl r6,16
51260 + lsl r1,25
51261 + .text
51262 + .global lsr_imm5
51263 +lsr_imm5:
51264 + lsr pc,0
51265 + lsr r12,31
51266 + lsr r5,16
51267 + lsr r4,15
51268 + lsr lr,1
51269 + lsr r0,1
51270 + lsr r8,10
51271 + lsr r7,26
51272 + .text
51273 + .global sbr
51274 +sbr:
51275 + sbr pc,0
51276 + sbr r12,31
51277 + sbr r5,16
51278 + sbr r4,15
51279 + sbr lr,1
51280 + sbr r8,31
51281 + sbr r6,22
51282 + sbr r1,23
51283 + .text
51284 + .global cbr
51285 +cbr:
51286 + cbr pc,0
51287 + cbr r12,31
51288 + cbr r5,16
51289 + cbr r4,15
51290 + cbr lr,1
51291 + cbr r12,10
51292 + cbr r7,22
51293 + cbr r8,9
51294 + .text
51295 + .global brc1
51296 +brc1:
51297 + breq 0
51298 + brpl -2
51299 + brge -256
51300 + brcs 254
51301 + brne 2
51302 + brcs 230
51303 + breq -18
51304 + breq 12
51305 + .text
51306 + .global rjmp
51307 +rjmp:
51308 + rjmp 0
51309 + rjmp -2
51310 + rjmp -1024
51311 + rjmp 1022
51312 + rjmp 2
51313 + rjmp -962
51314 + rjmp 14
51315 + rjmp -516
51316 + .text
51317 + .global rcall1
51318 +rcall1:
51319 + rcall 0
51320 + rcall -2
51321 + rcall -1024
51322 + rcall 1022
51323 + rcall 2
51324 + rcall 216
51325 + rcall -530
51326 + rcall -972
51327 + .text
51328 + .global acall
51329 +acall:
51330 + acall 0
51331 + acall 1020
51332 + acall 512
51333 + acall 508
51334 + acall 4
51335 + acall 356
51336 + acall 304
51337 + acall 172
51338 + .text
51339 + .global scall
51340 +scall:
51341 + scall
51342 + scall
51343 + scall
51344 + scall
51345 + scall
51346 + scall
51347 + scall
51348 + scall
51349 + .text
51350 + .global popm
51351 +popm:
51352 + /* popm with no argument fails currently */
51353 + popm pc
51354 + popm r0-r11,pc,r12=-1
51355 + popm lr
51356 + popm r0-r11,pc,r12=1
51357 + popm r0-r3
51358 + popm r4-r10,pc
51359 + popm r0-r3,r11,pc,r12=0
51360 + popm r0-r7,r10-r12,lr
51361 + .text
51362 + .global pushm
51363 +pushm:
51364 + pushm pc
51365 + pushm r0-r12,lr,pc
51366 + pushm pc
51367 + pushm r0-r12,lr
51368 + pushm r0-r3
51369 + pushm r8-r10,lr,pc
51370 + pushm r0-r3,r10
51371 + pushm r8-r9,r12
51372 + .text
51373 + .global popm_n
51374 +popm_n:
51375 + popm pc
51376 + popm r0-r11,pc,r12=-1
51377 + popm lr
51378 + popm r0-r11,pc,r12=1
51379 + popm r0-r3
51380 + popm r4-r10,pc
51381 + popm r0-r3,r11,pc,r12=0
51382 + popm r0-r7,r10-r12,lr
51383 + .text
51384 + .global pushm_n
51385 +pushm_n:
51386 + pushm pc
51387 + pushm r0-r12,lr,pc
51388 + pushm pc
51389 + pushm r0-r12,lr
51390 + pushm r0-r3
51391 + pushm r8-r10,lr,pc
51392 + pushm r0-r3,r10
51393 + pushm r8-r9,r12
51394 + .text
51395 + .global csrfcz
51396 +csrfcz:
51397 + csrfcz 0
51398 + csrfcz 31
51399 + csrfcz 16
51400 + csrfcz 15
51401 + csrfcz 1
51402 + csrfcz 5
51403 + csrfcz 13
51404 + csrfcz 23
51405 + .text
51406 + .global ssrf
51407 +ssrf:
51408 + ssrf 0
51409 + ssrf 31
51410 + ssrf 16
51411 + ssrf 15
51412 + ssrf 1
51413 + ssrf 29
51414 + ssrf 13
51415 + ssrf 13
51416 + .text
51417 + .global csrf
51418 +csrf:
51419 + csrf 0
51420 + csrf 31
51421 + csrf 16
51422 + csrf 15
51423 + csrf 1
51424 + csrf 10
51425 + csrf 15
51426 + csrf 11
51427 + .text
51428 + .global rete
51429 +rete:
51430 + rete
51431 + .text
51432 + .global rets
51433 +rets:
51434 + rets
51435 + .text
51436 + .global retd
51437 +retd:
51438 + retd
51439 + .text
51440 + .global retj
51441 +retj:
51442 + retj
51443 + .text
51444 + .global tlbr
51445 +tlbr:
51446 + tlbr
51447 + .text
51448 + .global tlbs
51449 +tlbs:
51450 + tlbs
51451 + .text
51452 + .global tlbw
51453 +tlbw:
51454 + tlbw
51455 + .text
51456 + .global breakpoint
51457 +breakpoint:
51458 + breakpoint
51459 + .text
51460 + .global incjosp
51461 +incjosp:
51462 + incjosp 1
51463 + incjosp 2
51464 + incjosp 3
51465 + incjosp 4
51466 + incjosp -4
51467 + incjosp -3
51468 + incjosp -2
51469 + incjosp -1
51470 + .text
51471 + .global nop
51472 +nop:
51473 + nop
51474 + .text
51475 + .global popjc
51476 +popjc:
51477 + popjc
51478 + .text
51479 + .global pushjc
51480 +pushjc:
51481 + pushjc
51482 + .text
51483 + .global add2
51484 +add2:
51485 + add pc,pc,pc<<0
51486 + add r12,r12,r12<<3
51487 + add r5,r5,r5<<2
51488 + add r4,r4,r4<<1
51489 + add lr,lr,lr<<1
51490 + add r0,r12,r0<<1
51491 + add r9,r12,r4<<0
51492 + add r12,r12,r7<<2
51493 + .text
51494 + .global sub2
51495 +sub2:
51496 + sub pc,pc,pc<<0
51497 + sub r12,r12,r12<<3
51498 + sub r5,r5,r5<<2
51499 + sub r4,r4,r4<<1
51500 + sub lr,lr,lr<<1
51501 + sub sp,r3,r4<<0
51502 + sub r3,r7,r3<<0
51503 + sub sp,r10,sp<<1
51504 + .text
51505 + .global divu
51506 +divu:
51507 + divu pc,pc,pc
51508 + divu r12,r12,r12
51509 + divu r5,r5,r5
51510 + divu r4,r4,r4
51511 + divu lr,lr,lr
51512 + divu sp,r4,pc
51513 + divu r5,r5,sp
51514 + divu r10,sp,r0
51515 + .text
51516 + .global addhh_w
51517 +addhh_w:
51518 + addhh.w pc,pc:b,pc:b
51519 + addhh.w r12,r12:t,r12:t
51520 + addhh.w r5,r5:t,r5:t
51521 + addhh.w r4,r4:b,r4:b
51522 + addhh.w lr,lr:t,lr:t
51523 + addhh.w r0,r0:b,r3:b
51524 + addhh.w lr,r12:t,r7:b
51525 + addhh.w r3,r10:t,r2:b
51526 + .text
51527 + .global subhh_w
51528 +subhh_w:
51529 + subhh.w pc,pc:b,pc:b
51530 + subhh.w r12,r12:t,r12:t
51531 + subhh.w r5,r5:t,r5:t
51532 + subhh.w r4,r4:b,r4:b
51533 + subhh.w lr,lr:t,lr:t
51534 + subhh.w r10,r1:t,r7:b
51535 + subhh.w pc,r10:t,lr:t
51536 + subhh.w r3,r0:t,r12:b
51537 + .text
51538 + .global adc
51539 +adc:
51540 + adc pc,pc,pc
51541 + adc r12,r12,r12
51542 + adc r5,r5,r5
51543 + adc r4,r4,r4
51544 + adc lr,lr,lr
51545 + adc r4,r0,r7
51546 + adc sp,r4,r3
51547 + adc r2,r12,r0
51548 + .text
51549 + .global sbc
51550 +sbc:
51551 + sbc pc,pc,pc
51552 + sbc r12,r12,r12
51553 + sbc r5,r5,r5
51554 + sbc r4,r4,r4
51555 + sbc lr,lr,lr
51556 + sbc r6,r7,r9
51557 + sbc r0,r8,r5
51558 + sbc r1,r0,r4
51559 + .text
51560 + .global mul_2
51561 +mul_2:
51562 + mul pc,pc,pc
51563 + mul r12,r12,r12
51564 + mul r5,r5,r5
51565 + mul r4,r4,r4
51566 + mul lr,lr,lr
51567 + mul pc,r0,r0
51568 + mul r8,pc,lr
51569 + mul r4,r12,pc
51570 + .text
51571 + .global mac
51572 +mac:
51573 + mac pc,pc,pc
51574 + mac r12,r12,r12
51575 + mac r5,r5,r5
51576 + mac r4,r4,r4
51577 + mac lr,lr,lr
51578 + mac r10,r4,r0
51579 + mac r7,lr,r0
51580 + mac r2,r9,r12
51581 + .text
51582 + .global mulsd
51583 +mulsd:
51584 + muls.d pc,pc,pc
51585 + muls.d r12,r12,r12
51586 + muls.d r5,r5,r5
51587 + muls.d r4,r4,r4
51588 + muls.d lr,lr,lr
51589 + muls.d r2,r8,lr
51590 + muls.d r4,r0,r11
51591 + muls.d r5,lr,r6
51592 + .text
51593 + .global macsd
51594 +macsd:
51595 + macs.d r0,pc,pc
51596 + macs.d r14,r12,r12
51597 + macs.d r8,r5,r5
51598 + macs.d r6,r4,r4
51599 + macs.d r2,lr,lr
51600 + macs.d r8,r1,r9
51601 + macs.d r14,r8,r8
51602 + macs.d r4,r3,r12
51603 + .text
51604 + .global mulud
51605 +mulud:
51606 + mulu.d r0,pc,pc
51607 + mulu.d r14,r12,r12
51608 + mulu.d r8,r5,r5
51609 + mulu.d r6,r4,r4
51610 + mulu.d r2,lr,lr
51611 + mulu.d r6,r5,r0
51612 + mulu.d r4,r6,r1
51613 + mulu.d r8,r8,r2
51614 + .text
51615 + .global macud
51616 +macud:
51617 + macu.d r0,pc,pc
51618 + macu.d r14,r12,r12
51619 + macu.d r8,r5,r5
51620 + macu.d r6,r4,r4
51621 + macu.d r2,lr,lr
51622 + macu.d r6,sp,r11
51623 + macu.d r2,r4,r8
51624 + macu.d r6,r10,r9
51625 + .text
51626 + .global asr_1
51627 +asr_1:
51628 + asr pc,pc,pc
51629 + asr r12,r12,r12
51630 + asr r5,r5,r5
51631 + asr r4,r4,r4
51632 + asr lr,lr,lr
51633 + asr pc,r6,pc
51634 + asr r0,r6,r12
51635 + asr r4,sp,r0
51636 + .text
51637 + .global lsl_1
51638 +lsl_1:
51639 + lsl pc,pc,pc
51640 + lsl r12,r12,r12
51641 + lsl r5,r5,r5
51642 + lsl r4,r4,r4
51643 + lsl lr,lr,lr
51644 + lsl lr,r5,lr
51645 + lsl r5,pc,r3
51646 + lsl r1,pc,r9
51647 + .text
51648 + .global lsr_1
51649 +lsr_1:
51650 + lsr pc,pc,pc
51651 + lsr r12,r12,r12
51652 + lsr r5,r5,r5
51653 + lsr r4,r4,r4
51654 + lsr lr,lr,lr
51655 + lsr r2,r4,r1
51656 + lsr r5,r1,r6
51657 + lsr sp,r6,r7
51658 + .text
51659 + .global xchg
51660 +xchg:
51661 + xchg pc,pc,pc
51662 + xchg r12,r12,r12
51663 + xchg r5,r5,r5
51664 + xchg r4,r4,r4
51665 + xchg lr,lr,lr
51666 + xchg lr,r4,sp
51667 + xchg r1,r5,r12
51668 + xchg lr,r12,r0
51669 + .text
51670 + .global max
51671 +max:
51672 + max pc,pc,pc
51673 + max r12,r12,r12
51674 + max r5,r5,r5
51675 + max r4,r4,r4
51676 + max lr,lr,lr
51677 + max lr,r2,sp
51678 + max r4,r10,r9
51679 + max lr,r9,lr
51680 + .text
51681 + .global min
51682 +min:
51683 + min pc,pc,pc
51684 + min r12,r12,r12
51685 + min r5,r5,r5
51686 + min r4,r4,r4
51687 + min lr,lr,lr
51688 + min r9,r7,r8
51689 + min sp,r5,r5
51690 + min r4,r1,r4
51691 + .text
51692 + .global addabs
51693 +addabs:
51694 + addabs pc,pc,pc
51695 + addabs r12,r12,r12
51696 + addabs r5,r5,r5
51697 + addabs r4,r4,r4
51698 + addabs lr,lr,lr
51699 + addabs r7,r10,r0
51700 + addabs r9,r9,r7
51701 + addabs r2,r8,r12
51702 + .text
51703 + .global mulnhh_w
51704 +mulnhh_w:
51705 + mulnhh.w pc,pc:b,pc:b
51706 + mulnhh.w r12,r12:t,r12:t
51707 + mulnhh.w r5,r5:t,r5:t
51708 + mulnhh.w r4,r4:b,r4:b
51709 + mulnhh.w lr,lr:t,lr:t
51710 + mulnhh.w r11,sp:t,r9:b
51711 + mulnhh.w sp,r4:b,lr:t
51712 + mulnhh.w r12,r2:t,r11:b
51713 + .text
51714 + .global mulnwh_d
51715 +mulnwh_d:
51716 + mulnwh.d r0,pc,pc:b
51717 + mulnwh.d r14,r12,r12:t
51718 + mulnwh.d r8,r5,r5:t
51719 + mulnwh.d r6,r4,r4:b
51720 + mulnwh.d r2,lr,lr:t
51721 + mulnwh.d r14,r3,r2:t
51722 + mulnwh.d r4,r5,r9:b
51723 + mulnwh.d r12,r4,r4:t
51724 + .text
51725 + .global machh_w
51726 +machh_w:
51727 + machh.w pc,pc:b,pc:b
51728 + machh.w r12,r12:t,r12:t
51729 + machh.w r5,r5:t,r5:t
51730 + machh.w r4,r4:b,r4:b
51731 + machh.w lr,lr:t,lr:t
51732 + machh.w lr,r5:b,r1:t
51733 + machh.w r9,r6:b,r7:b
51734 + machh.w r5,lr:t,r12:b
51735 + .text
51736 + .global machh_d
51737 +machh_d:
51738 + machh.d r0,pc:b,pc:b
51739 + machh.d r14,r12:t,r12:t
51740 + machh.d r8,r5:t,r5:t
51741 + machh.d r6,r4:b,r4:b
51742 + machh.d r2,lr:t,lr:t
51743 + machh.d r10,r0:b,r8:b
51744 + machh.d r14,r4:b,r5:t
51745 + machh.d r8,r0:b,r4:t
51746 + .text
51747 + .global macsathh_w
51748 +macsathh_w:
51749 + macsathh.w pc,pc:b,pc:b
51750 + macsathh.w r12,r12:t,r12:t
51751 + macsathh.w r5,r5:t,r5:t
51752 + macsathh.w r4,r4:b,r4:b
51753 + macsathh.w lr,lr:t,lr:t
51754 + macsathh.w r7,r7:t,pc:t
51755 + macsathh.w r4,r2:t,r4:b
51756 + macsathh.w r4,r8:t,r3:t
51757 + .text
51758 + .global mulhh_w
51759 +mulhh_w:
51760 + mulhh.w pc,pc:b,pc:b
51761 + mulhh.w r12,r12:t,r12:t
51762 + mulhh.w r5,r5:t,r5:t
51763 + mulhh.w r4,r4:b,r4:b
51764 + mulhh.w lr,lr:t,lr:t
51765 + mulhh.w r7,r4:t,r9:b
51766 + mulhh.w pc,r3:t,r7:t
51767 + mulhh.w pc,r4:b,r9:t
51768 + .text
51769 + .global mulsathh_h
51770 +mulsathh_h:
51771 + mulsathh.h pc,pc:b,pc:b
51772 + mulsathh.h r12,r12:t,r12:t
51773 + mulsathh.h r5,r5:t,r5:t
51774 + mulsathh.h r4,r4:b,r4:b
51775 + mulsathh.h lr,lr:t,lr:t
51776 + mulsathh.h r3,r1:b,sp:b
51777 + mulsathh.h r11,lr:t,r11:b
51778 + mulsathh.h r8,r8:b,r11:t
51779 + .text
51780 + .global mulsathh_w
51781 +mulsathh_w:
51782 + mulsathh.w pc,pc:b,pc:b
51783 + mulsathh.w r12,r12:t,r12:t
51784 + mulsathh.w r5,r5:t,r5:t
51785 + mulsathh.w r4,r4:b,r4:b
51786 + mulsathh.w lr,lr:t,lr:t
51787 + mulsathh.w lr,r11:t,r6:b
51788 + mulsathh.w r6,r6:b,r7:t
51789 + mulsathh.w r10,r2:b,r3:b
51790 + .text
51791 + .global mulsatrndhh_h
51792 +mulsatrndhh_h:
51793 + mulsatrndhh.h pc,pc:b,pc:b
51794 + mulsatrndhh.h r12,r12:t,r12:t
51795 + mulsatrndhh.h r5,r5:t,r5:t
51796 + mulsatrndhh.h r4,r4:b,r4:b
51797 + mulsatrndhh.h lr,lr:t,lr:t
51798 + mulsatrndhh.h r11,r6:b,r9:b
51799 + mulsatrndhh.h r11,r3:b,r8:t
51800 + mulsatrndhh.h r5,sp:t,r7:t
51801 + .text
51802 + .global mulsatrndwh_w
51803 +mulsatrndwh_w:
51804 + mulsatrndwh.w pc,pc,pc:b
51805 + mulsatrndwh.w r12,r12,r12:t
51806 + mulsatrndwh.w r5,r5,r5:t
51807 + mulsatrndwh.w r4,r4,r4:b
51808 + mulsatrndwh.w lr,lr,lr:t
51809 + mulsatrndwh.w r5,r12,r0:b
51810 + mulsatrndwh.w r7,r10,pc:b
51811 + mulsatrndwh.w r10,r8,r5:t
51812 + .text
51813 + .global macwh_d
51814 +macwh_d:
51815 + macwh.d r0,pc,pc:b
51816 + macwh.d r14,r12,r12:t
51817 + macwh.d r8,r5,r5:t
51818 + macwh.d r6,r4,r4:b
51819 + macwh.d r2,lr,lr:t
51820 + macwh.d r4,r10,r12:t
51821 + macwh.d r4,r7,sp:b
51822 + macwh.d r14,r9,r11:b
51823 + .text
51824 + .global mulwh_d
51825 +mulwh_d:
51826 + mulwh.d r0,pc,pc:b
51827 + mulwh.d r14,r12,r12:t
51828 + mulwh.d r8,r5,r5:t
51829 + mulwh.d r6,r4,r4:b
51830 + mulwh.d r2,lr,lr:t
51831 + mulwh.d r12,r5,r1:b
51832 + mulwh.d r0,r1,r3:t
51833 + mulwh.d r0,r9,r2:b
51834 + .text
51835 + .global mulsatwh_w
51836 +mulsatwh_w:
51837 + mulsatwh.w pc,pc,pc:b
51838 + mulsatwh.w r12,r12,r12:t
51839 + mulsatwh.w r5,r5,r5:t
51840 + mulsatwh.w r4,r4,r4:b
51841 + mulsatwh.w lr,lr,lr:t
51842 + mulsatwh.w r11,pc,r10:t
51843 + mulsatwh.w sp,r12,r9:t
51844 + mulsatwh.w r0,r3,r2:t
51845 + .text
51846 + .global ldw7
51847 +ldw7:
51848 + ld.w pc,pc[pc:b<<2]
51849 + ld.w r12,r12[r12:t<<2]
51850 + ld.w r5,r5[r5:u<<2]
51851 + ld.w r4,r4[r4:l<<2]
51852 + ld.w lr,lr[lr:l<<2]
51853 + ld.w r9,r10[r6:l<<2]
51854 + ld.w r2,r10[r10:b<<2]
51855 + ld.w r11,r5[pc:b<<2]
51856 + .text
51857 + .global satadd_w
51858 +satadd_w:
51859 + satadd.w pc,pc,pc
51860 + satadd.w r12,r12,r12
51861 + satadd.w r5,r5,r5
51862 + satadd.w r4,r4,r4
51863 + satadd.w lr,lr,lr
51864 + satadd.w r4,r8,r11
51865 + satadd.w r3,r12,r6
51866 + satadd.w r3,lr,r9
51867 + .text
51868 + .global satsub_w1
51869 +satsub_w1:
51870 + satsub.w pc,pc,pc
51871 + satsub.w r12,r12,r12
51872 + satsub.w r5,r5,r5
51873 + satsub.w r4,r4,r4
51874 + satsub.w lr,lr,lr
51875 + satsub.w r8,sp,r0
51876 + satsub.w r9,r8,r4
51877 + satsub.w pc,lr,r2
51878 + .text
51879 + .global satadd_h
51880 +satadd_h:
51881 + satadd.h pc,pc,pc
51882 + satadd.h r12,r12,r12
51883 + satadd.h r5,r5,r5
51884 + satadd.h r4,r4,r4
51885 + satadd.h lr,lr,lr
51886 + satadd.h r7,r3,r9
51887 + satadd.h r1,r0,r2
51888 + satadd.h r1,r4,lr
51889 + .text
51890 + .global satsub_h
51891 +satsub_h:
51892 + satsub.h pc,pc,pc
51893 + satsub.h r12,r12,r12
51894 + satsub.h r5,r5,r5
51895 + satsub.h r4,r4,r4
51896 + satsub.h lr,lr,lr
51897 + satsub.h lr,lr,r3
51898 + satsub.h r11,r6,r5
51899 + satsub.h r3,sp,r0
51900 + .text
51901 + .global mul3
51902 +mul3:
51903 + mul pc,pc,0
51904 + mul r12,r12,-1
51905 + mul r5,r5,-128
51906 + mul r4,r4,127
51907 + mul lr,lr,1
51908 + mul r12,r2,-7
51909 + mul r1,pc,95
51910 + mul r4,r6,19
51911 + .text
51912 + .global rsub2
51913 +rsub2:
51914 + rsub pc,pc,0
51915 + rsub r12,r12,-1
51916 + rsub r5,r5,-128
51917 + rsub r4,r4,127
51918 + rsub lr,lr,1
51919 + rsub r9,lr,96
51920 + rsub r11,r1,56
51921 + rsub r0,r7,-87
51922 + .text
51923 + .global clz
51924 +clz:
51925 + clz pc,pc
51926 + clz r12,r12
51927 + clz r5,r5
51928 + clz r4,r4
51929 + clz lr,lr
51930 + clz r2,r3
51931 + clz r5,r11
51932 + clz pc,r3
51933 + .text
51934 + .global cpc1
51935 +cpc1:
51936 + cpc pc,pc
51937 + cpc r12,r12
51938 + cpc r5,r5
51939 + cpc r4,r4
51940 + cpc lr,lr
51941 + cpc pc,r4
51942 + cpc r5,r9
51943 + cpc r6,r7
51944 + .text
51945 + .global asr3
51946 +asr3:
51947 + asr pc,pc,0
51948 + asr r12,r12,31
51949 + asr r5,r5,16
51950 + asr r4,r4,15
51951 + asr lr,lr,1
51952 + asr r4,r11,19
51953 + asr sp,pc,26
51954 + asr r11,sp,8
51955 + .text
51956 + .global lsl3
51957 +lsl3:
51958 + lsl pc,pc,0
51959 + lsl r12,r12,31
51960 + lsl r5,r5,16
51961 + lsl r4,r4,15
51962 + lsl lr,lr,1
51963 + lsl r8,r10,17
51964 + lsl r2,lr,3
51965 + lsl lr,r11,14
51966 + .text
51967 + .global lsr3
51968 +lsr3:
51969 + lsr pc,pc,0
51970 + lsr r12,r12,31
51971 + lsr r5,r5,16
51972 + lsr r4,r4,15
51973 + lsr lr,lr,1
51974 + lsr r4,r3,31
51975 + lsr pc,r9,14
51976 + lsr r3,r0,6
51977 +/* .text
51978 + .global extract_b
51979 +extract_b:
51980 + extract.b pc,pc:b
51981 + extract.b r12,r12:t
51982 + extract.b r5,r5:u
51983 + extract.b r4,r4:l
51984 + extract.b lr,lr:l
51985 + extract.b r2,r5:l
51986 + extract.b r12,r3:l
51987 + extract.b sp,r3:l
51988 + .text
51989 + .global insert_b
51990 +insert_b:
51991 + insert.b pc:b,pc
51992 + insert.b r12:t,r12
51993 + insert.b r5:u,r5
51994 + insert.b r4:l,r4
51995 + insert.b lr:l,lr
51996 + insert.b r12:u,r3
51997 + insert.b r10:l,lr
51998 + insert.b r11:l,r12
51999 + .text
52000 + .global extract_h
52001 +extract_h:
52002 + extract.h pc,pc:b
52003 + extract.h r12,r12:t
52004 + extract.h r5,r5:t
52005 + extract.h r4,r4:b
52006 + extract.h lr,lr:t
52007 + extract.h r11,lr:b
52008 + extract.h r10,r0:b
52009 + extract.h r11,r12:b
52010 + .text
52011 + .global insert_h
52012 +insert_h:
52013 + insert.h pc:b,pc
52014 + insert.h r12:t,r12
52015 + insert.h r5:t,r5
52016 + insert.h r4:b,r4
52017 + insert.h lr:t,lr
52018 + insert.h r12:t,r11
52019 + insert.h r7:b,r6
52020 + insert.h r1:t,r11 */
52021 + .text
52022 + .global movc1
52023 +movc1:
52024 + moveq pc,pc
52025 + moval r12,r12
52026 + movls r5,r5
52027 + movpl r4,r4
52028 + movne lr,lr
52029 + movne pc,r11
52030 + movmi r10,r2
52031 + movls r8,r12
52032 + .text
52033 + .global padd_h
52034 +padd_h:
52035 + padd.h pc,pc,pc
52036 + padd.h r12,r12,r12
52037 + padd.h r5,r5,r5
52038 + padd.h r4,r4,r4
52039 + padd.h lr,lr,lr
52040 + padd.h r8,r2,r7
52041 + padd.h r0,r0,r3
52042 + padd.h sp,r11,r6
52043 + .text
52044 + .global psub_h
52045 +psub_h:
52046 + psub.h pc,pc,pc
52047 + psub.h r12,r12,r12
52048 + psub.h r5,r5,r5
52049 + psub.h r4,r4,r4
52050 + psub.h lr,lr,lr
52051 + psub.h lr,r6,r8
52052 + psub.h r0,r1,sp
52053 + psub.h pc,pc,sp
52054 + .text
52055 + .global paddx_h
52056 +paddx_h:
52057 + paddx.h pc,pc,pc
52058 + paddx.h r12,r12,r12
52059 + paddx.h r5,r5,r5
52060 + paddx.h r4,r4,r4
52061 + paddx.h lr,lr,lr
52062 + paddx.h pc,pc,r1
52063 + paddx.h r10,r4,r5
52064 + paddx.h r5,pc,r2
52065 + .text
52066 + .global psubx_h
52067 +psubx_h:
52068 + psubx.h pc,pc,pc
52069 + psubx.h r12,r12,r12
52070 + psubx.h r5,r5,r5
52071 + psubx.h r4,r4,r4
52072 + psubx.h lr,lr,lr
52073 + psubx.h r5,r12,r5
52074 + psubx.h r3,r8,r3
52075 + psubx.h r5,r2,r3
52076 + .text
52077 + .global padds_sh
52078 +padds_sh:
52079 + padds.sh pc,pc,pc
52080 + padds.sh r12,r12,r12
52081 + padds.sh r5,r5,r5
52082 + padds.sh r4,r4,r4
52083 + padds.sh lr,lr,lr
52084 + padds.sh r9,lr,r2
52085 + padds.sh r6,r8,r1
52086 + padds.sh r6,r4,r10
52087 + .text
52088 + .global psubs_sh
52089 +psubs_sh:
52090 + psubs.sh pc,pc,pc
52091 + psubs.sh r12,r12,r12
52092 + psubs.sh r5,r5,r5
52093 + psubs.sh r4,r4,r4
52094 + psubs.sh lr,lr,lr
52095 + psubs.sh r6,lr,r11
52096 + psubs.sh r2,r12,r4
52097 + psubs.sh r0,r9,r0
52098 + .text
52099 + .global paddxs_sh
52100 +paddxs_sh:
52101 + paddxs.sh pc,pc,pc
52102 + paddxs.sh r12,r12,r12
52103 + paddxs.sh r5,r5,r5
52104 + paddxs.sh r4,r4,r4
52105 + paddxs.sh lr,lr,lr
52106 + paddxs.sh r0,r3,r9
52107 + paddxs.sh pc,r10,r11
52108 + paddxs.sh pc,r10,pc
52109 + .text
52110 + .global psubxs_sh
52111 +psubxs_sh:
52112 + psubxs.sh pc,pc,pc
52113 + psubxs.sh r12,r12,r12
52114 + psubxs.sh r5,r5,r5
52115 + psubxs.sh r4,r4,r4
52116 + psubxs.sh lr,lr,lr
52117 + psubxs.sh r7,r4,r4
52118 + psubxs.sh r7,r8,r3
52119 + psubxs.sh pc,r6,r5
52120 + .text
52121 + .global padds_uh
52122 +padds_uh:
52123 + padds.uh pc,pc,pc
52124 + padds.uh r12,r12,r12
52125 + padds.uh r5,r5,r5
52126 + padds.uh r4,r4,r4
52127 + padds.uh lr,lr,lr
52128 + padds.uh r12,r11,r7
52129 + padds.uh r7,r8,lr
52130 + padds.uh r6,r9,r7
52131 + .text
52132 + .global psubs_uh
52133 +psubs_uh:
52134 + psubs.uh pc,pc,pc
52135 + psubs.uh r12,r12,r12
52136 + psubs.uh r5,r5,r5
52137 + psubs.uh r4,r4,r4
52138 + psubs.uh lr,lr,lr
52139 + psubs.uh lr,r10,r6
52140 + psubs.uh sp,r2,pc
52141 + psubs.uh r2,r9,r2
52142 + .text
52143 + .global paddxs_uh
52144 +paddxs_uh:
52145 + paddxs.uh pc,pc,pc
52146 + paddxs.uh r12,r12,r12
52147 + paddxs.uh r5,r5,r5
52148 + paddxs.uh r4,r4,r4
52149 + paddxs.uh lr,lr,lr
52150 + paddxs.uh r7,r9,r5
52151 + paddxs.uh r9,r1,r4
52152 + paddxs.uh r5,r2,r3
52153 + .text
52154 + .global psubxs_uh
52155 +psubxs_uh:
52156 + psubxs.uh pc,pc,pc
52157 + psubxs.uh r12,r12,r12
52158 + psubxs.uh r5,r5,r5
52159 + psubxs.uh r4,r4,r4
52160 + psubxs.uh lr,lr,lr
52161 + psubxs.uh sp,r5,sp
52162 + psubxs.uh sp,r6,r6
52163 + psubxs.uh r3,r11,r8
52164 + .text
52165 + .global paddh_sh
52166 +paddh_sh:
52167 + paddh.sh pc,pc,pc
52168 + paddh.sh r12,r12,r12
52169 + paddh.sh r5,r5,r5
52170 + paddh.sh r4,r4,r4
52171 + paddh.sh lr,lr,lr
52172 + paddh.sh r12,sp,r3
52173 + paddh.sh pc,r5,r3
52174 + paddh.sh r8,r8,sp
52175 + .text
52176 + .global psubh_sh
52177 +psubh_sh:
52178 + psubh.sh pc,pc,pc
52179 + psubh.sh r12,r12,r12
52180 + psubh.sh r5,r5,r5
52181 + psubh.sh r4,r4,r4
52182 + psubh.sh lr,lr,lr
52183 + psubh.sh r1,r5,r8
52184 + psubh.sh r7,r3,r6
52185 + psubh.sh r4,r3,r3
52186 + .text
52187 + .global paddxh_sh
52188 +paddxh_sh:
52189 + paddxh.sh pc,pc,pc
52190 + paddxh.sh r12,r12,r12
52191 + paddxh.sh r5,r5,r5
52192 + paddxh.sh r4,r4,r4
52193 + paddxh.sh lr,lr,lr
52194 + paddxh.sh r6,r0,r4
52195 + paddxh.sh r9,r8,r9
52196 + paddxh.sh r3,r0,sp
52197 + .text
52198 + .global psubxh_sh
52199 +psubxh_sh:
52200 + psubxh.sh pc,pc,pc
52201 + psubxh.sh r12,r12,r12
52202 + psubxh.sh r5,r5,r5
52203 + psubxh.sh r4,r4,r4
52204 + psubxh.sh lr,lr,lr
52205 + psubxh.sh r4,pc,r12
52206 + psubxh.sh r8,r4,r6
52207 + psubxh.sh r12,r9,r4
52208 + .text
52209 + .global paddsub_h
52210 +paddsub_h:
52211 + paddsub.h pc,pc:b,pc:b
52212 + paddsub.h r12,r12:t,r12:t
52213 + paddsub.h r5,r5:t,r5:t
52214 + paddsub.h r4,r4:b,r4:b
52215 + paddsub.h lr,lr:t,lr:t
52216 + paddsub.h r5,r2:t,lr:b
52217 + paddsub.h r7,r1:b,r8:b
52218 + paddsub.h r6,r10:t,r5:t
52219 + .text
52220 + .global psubadd_h
52221 +psubadd_h:
52222 + psubadd.h pc,pc:b,pc:b
52223 + psubadd.h r12,r12:t,r12:t
52224 + psubadd.h r5,r5:t,r5:t
52225 + psubadd.h r4,r4:b,r4:b
52226 + psubadd.h lr,lr:t,lr:t
52227 + psubadd.h r9,r11:t,r8:t
52228 + psubadd.h r10,r7:t,lr:t
52229 + psubadd.h r6,pc:t,pc:b
52230 + .text
52231 + .global paddsubs_sh
52232 +paddsubs_sh:
52233 + paddsubs.sh pc,pc:b,pc:b
52234 + paddsubs.sh r12,r12:t,r12:t
52235 + paddsubs.sh r5,r5:t,r5:t
52236 + paddsubs.sh r4,r4:b,r4:b
52237 + paddsubs.sh lr,lr:t,lr:t
52238 + paddsubs.sh r0,lr:t,r0:b
52239 + paddsubs.sh r9,r2:t,r4:t
52240 + paddsubs.sh r12,r9:t,sp:t
52241 + .text
52242 + .global psubadds_sh
52243 +psubadds_sh:
52244 + psubadds.sh pc,pc:b,pc:b
52245 + psubadds.sh r12,r12:t,r12:t
52246 + psubadds.sh r5,r5:t,r5:t
52247 + psubadds.sh r4,r4:b,r4:b
52248 + psubadds.sh lr,lr:t,lr:t
52249 + psubadds.sh pc,lr:b,r1:t
52250 + psubadds.sh r11,r3:b,r12:b
52251 + psubadds.sh r10,r2:t,r8:t
52252 + .text
52253 + .global paddsubs_uh
52254 +paddsubs_uh:
52255 + paddsubs.uh pc,pc:b,pc:b
52256 + paddsubs.uh r12,r12:t,r12:t
52257 + paddsubs.uh r5,r5:t,r5:t
52258 + paddsubs.uh r4,r4:b,r4:b
52259 + paddsubs.uh lr,lr:t,lr:t
52260 + paddsubs.uh r9,r2:b,r3:b
52261 + paddsubs.uh sp,sp:b,r7:t
52262 + paddsubs.uh lr,r0:b,r10:t
52263 + .text
52264 + .global psubadds_uh
52265 +psubadds_uh:
52266 + psubadds.uh pc,pc:b,pc:b
52267 + psubadds.uh r12,r12:t,r12:t
52268 + psubadds.uh r5,r5:t,r5:t
52269 + psubadds.uh r4,r4:b,r4:b
52270 + psubadds.uh lr,lr:t,lr:t
52271 + psubadds.uh r12,r9:t,pc:t
52272 + psubadds.uh r8,r6:b,r8:b
52273 + psubadds.uh r8,r8:b,r4:b
52274 + .text
52275 + .global paddsubh_sh
52276 +paddsubh_sh:
52277 + paddsubh.sh pc,pc:b,pc:b
52278 + paddsubh.sh r12,r12:t,r12:t
52279 + paddsubh.sh r5,r5:t,r5:t
52280 + paddsubh.sh r4,r4:b,r4:b
52281 + paddsubh.sh lr,lr:t,lr:t
52282 + paddsubh.sh r8,r9:t,r9:b
52283 + paddsubh.sh r0,sp:t,r1:t
52284 + paddsubh.sh r3,r1:b,r0:t
52285 + .text
52286 + .global psubaddh_sh
52287 +psubaddh_sh:
52288 + psubaddh.sh pc,pc:b,pc:b
52289 + psubaddh.sh r12,r12:t,r12:t
52290 + psubaddh.sh r5,r5:t,r5:t
52291 + psubaddh.sh r4,r4:b,r4:b
52292 + psubaddh.sh lr,lr:t,lr:t
52293 + psubaddh.sh r7,r3:t,r10:b
52294 + psubaddh.sh r7,r2:t,r1:t
52295 + psubaddh.sh r11,r3:b,r6:b
52296 + .text
52297 + .global padd_b
52298 +padd_b:
52299 + padd.b pc,pc,pc
52300 + padd.b r12,r12,r12
52301 + padd.b r5,r5,r5
52302 + padd.b r4,r4,r4
52303 + padd.b lr,lr,lr
52304 + padd.b r2,r6,pc
52305 + padd.b r8,r9,r12
52306 + padd.b r5,r12,r3
52307 + .text
52308 + .global psub_b
52309 +psub_b:
52310 + psub.b pc,pc,pc
52311 + psub.b r12,r12,r12
52312 + psub.b r5,r5,r5
52313 + psub.b r4,r4,r4
52314 + psub.b lr,lr,lr
52315 + psub.b r0,r12,pc
52316 + psub.b r7,sp,r10
52317 + psub.b r5,sp,r12
52318 + .text
52319 + .global padds_sb
52320 +padds_sb:
52321 + padds.sb pc,pc,pc
52322 + padds.sb r12,r12,r12
52323 + padds.sb r5,r5,r5
52324 + padds.sb r4,r4,r4
52325 + padds.sb lr,lr,lr
52326 + padds.sb sp,r11,r4
52327 + padds.sb r11,r10,r11
52328 + padds.sb r5,r12,r6
52329 + .text
52330 + .global psubs_sb
52331 +psubs_sb:
52332 + psubs.sb pc,pc,pc
52333 + psubs.sb r12,r12,r12
52334 + psubs.sb r5,r5,r5
52335 + psubs.sb r4,r4,r4
52336 + psubs.sb lr,lr,lr
52337 + psubs.sb r7,r6,r8
52338 + psubs.sb r12,r10,r9
52339 + psubs.sb pc,r11,r0
52340 + .text
52341 + .global padds_ub
52342 +padds_ub:
52343 + padds.ub pc,pc,pc
52344 + padds.ub r12,r12,r12
52345 + padds.ub r5,r5,r5
52346 + padds.ub r4,r4,r4
52347 + padds.ub lr,lr,lr
52348 + padds.ub r3,r2,r11
52349 + padds.ub r10,r8,r1
52350 + padds.ub r11,r8,r10
52351 + .text
52352 + .global psubs_ub
52353 +psubs_ub:
52354 + psubs.ub pc,pc,pc
52355 + psubs.ub r12,r12,r12
52356 + psubs.ub r5,r5,r5
52357 + psubs.ub r4,r4,r4
52358 + psubs.ub lr,lr,lr
52359 + psubs.ub r0,r2,r7
52360 + psubs.ub lr,r5,r3
52361 + psubs.ub r6,r7,r9
52362 + .text
52363 + .global paddh_ub
52364 +paddh_ub:
52365 + paddh.ub pc,pc,pc
52366 + paddh.ub r12,r12,r12
52367 + paddh.ub r5,r5,r5
52368 + paddh.ub r4,r4,r4
52369 + paddh.ub lr,lr,lr
52370 + paddh.ub lr,r1,r0
52371 + paddh.ub r2,r7,r7
52372 + paddh.ub r2,r1,r2
52373 + .text
52374 + .global psubh_ub
52375 +psubh_ub:
52376 + psubh.ub pc,pc,pc
52377 + psubh.ub r12,r12,r12
52378 + psubh.ub r5,r5,r5
52379 + psubh.ub r4,r4,r4
52380 + psubh.ub lr,lr,lr
52381 + psubh.ub r0,r1,r6
52382 + psubh.ub r4,lr,r10
52383 + psubh.ub r9,r8,r1
52384 + .text
52385 + .global pmax_ub
52386 +pmax_ub:
52387 + pmax.ub pc,pc,pc
52388 + pmax.ub r12,r12,r12
52389 + pmax.ub r5,r5,r5
52390 + pmax.ub r4,r4,r4
52391 + pmax.ub lr,lr,lr
52392 + pmax.ub pc,r2,r11
52393 + pmax.ub r12,r1,r1
52394 + pmax.ub r5,r2,r0
52395 + .text
52396 + .global pmax_sh
52397 +pmax_sh:
52398 + pmax.sh pc,pc,pc
52399 + pmax.sh r12,r12,r12
52400 + pmax.sh r5,r5,r5
52401 + pmax.sh r4,r4,r4
52402 + pmax.sh lr,lr,lr
52403 + pmax.sh lr,r6,r12
52404 + pmax.sh r2,pc,r5
52405 + pmax.sh pc,r2,r7
52406 + .text
52407 + .global pmin_ub
52408 +pmin_ub:
52409 + pmin.ub pc,pc,pc
52410 + pmin.ub r12,r12,r12
52411 + pmin.ub r5,r5,r5
52412 + pmin.ub r4,r4,r4
52413 + pmin.ub lr,lr,lr
52414 + pmin.ub r8,r1,r5
52415 + pmin.ub r1,r8,r3
52416 + pmin.ub r0,r2,r7
52417 + .text
52418 + .global pmin_sh
52419 +pmin_sh:
52420 + pmin.sh pc,pc,pc
52421 + pmin.sh r12,r12,r12
52422 + pmin.sh r5,r5,r5
52423 + pmin.sh r4,r4,r4
52424 + pmin.sh lr,lr,lr
52425 + pmin.sh r8,r4,r10
52426 + pmin.sh lr,r10,r12
52427 + pmin.sh r2,r6,r2
52428 + .text
52429 + .global pavg_ub
52430 +pavg_ub:
52431 + pavg.ub pc,pc,pc
52432 + pavg.ub r12,r12,r12
52433 + pavg.ub r5,r5,r5
52434 + pavg.ub r4,r4,r4
52435 + pavg.ub lr,lr,lr
52436 + pavg.ub r0,r1,r6
52437 + pavg.ub r8,r3,r6
52438 + pavg.ub pc,r12,r10
52439 + .text
52440 + .global pavg_sh
52441 +pavg_sh:
52442 + pavg.sh pc,pc,pc
52443 + pavg.sh r12,r12,r12
52444 + pavg.sh r5,r5,r5
52445 + pavg.sh r4,r4,r4
52446 + pavg.sh lr,lr,lr
52447 + pavg.sh r9,pc,sp
52448 + pavg.sh pc,sp,r3
52449 + pavg.sh r6,r1,r9
52450 + .text
52451 + .global pabs_sb
52452 +pabs_sb:
52453 + pabs.sb pc,pc
52454 + pabs.sb r12,r12
52455 + pabs.sb r5,r5
52456 + pabs.sb r4,r4
52457 + pabs.sb lr,lr
52458 + pabs.sb r11,r6
52459 + pabs.sb lr,r9
52460 + pabs.sb sp,r7
52461 + .text
52462 + .global pabs_sh
52463 +pabs_sh:
52464 + pabs.sh pc,pc
52465 + pabs.sh r12,r12
52466 + pabs.sh r5,r5
52467 + pabs.sh r4,r4
52468 + pabs.sh lr,lr
52469 + pabs.sh pc,r3
52470 + pabs.sh r5,r7
52471 + pabs.sh r4,r0
52472 + .text
52473 + .global psad
52474 +psad:
52475 + psad pc,pc,pc
52476 + psad r12,r12,r12
52477 + psad r5,r5,r5
52478 + psad r4,r4,r4
52479 + psad lr,lr,lr
52480 + psad r9,r11,r11
52481 + psad lr,r4,sp
52482 + psad lr,r4,r5
52483 + .text
52484 + .global pasr_b
52485 +pasr_b:
52486 + pasr.b pc,pc,0
52487 + pasr.b r12,r12,7
52488 + pasr.b r5,r5,4
52489 + pasr.b r4,r4,3
52490 + pasr.b lr,lr,1
52491 + pasr.b pc,r7,1
52492 + pasr.b sp,lr,6
52493 + pasr.b sp,r3,2
52494 + .text
52495 + .global plsl_b
52496 +plsl_b:
52497 + plsl.b pc,pc,0
52498 + plsl.b r12,r12,7
52499 + plsl.b r5,r5,4
52500 + plsl.b r4,r4,3
52501 + plsl.b lr,lr,1
52502 + plsl.b r2,r11,4
52503 + plsl.b r8,r5,7
52504 + plsl.b pc,r0,2
52505 + .text
52506 + .global plsr_b
52507 +plsr_b:
52508 + plsr.b pc,pc,0
52509 + plsr.b r12,r12,7
52510 + plsr.b r5,r5,4
52511 + plsr.b r4,r4,3
52512 + plsr.b lr,lr,1
52513 + plsr.b r12,r1,2
52514 + plsr.b r6,pc,7
52515 + plsr.b r12,r11,2
52516 + .text
52517 + .global pasr_h
52518 +pasr_h:
52519 + pasr.h pc,pc,0
52520 + pasr.h r12,r12,15
52521 + pasr.h r5,r5,8
52522 + pasr.h r4,r4,7
52523 + pasr.h lr,lr,1
52524 + pasr.h r0,r11,10
52525 + pasr.h r4,r6,8
52526 + pasr.h r6,r2,4
52527 + .text
52528 + .global plsl_h
52529 +plsl_h:
52530 + plsl.h pc,pc,0
52531 + plsl.h r12,r12,15
52532 + plsl.h r5,r5,8
52533 + plsl.h r4,r4,7
52534 + plsl.h lr,lr,1
52535 + plsl.h r5,r10,9
52536 + plsl.h sp,lr,8
52537 + plsl.h r0,lr,7
52538 + .text
52539 + .global plsr_h
52540 +plsr_h:
52541 + plsr.h pc,pc,0
52542 + plsr.h r12,r12,15
52543 + plsr.h r5,r5,8
52544 + plsr.h r4,r4,7
52545 + plsr.h lr,lr,1
52546 + plsr.h r11,r0,15
52547 + plsr.h lr,r3,3
52548 + plsr.h r8,lr,10
52549 + .text
52550 + .global packw_sh
52551 +packw_sh:
52552 + packw.sh pc,pc,pc
52553 + packw.sh r12,r12,r12
52554 + packw.sh r5,r5,r5
52555 + packw.sh r4,r4,r4
52556 + packw.sh lr,lr,lr
52557 + packw.sh sp,r11,r10
52558 + packw.sh r8,r2,r12
52559 + packw.sh r8,r1,r5
52560 + .text
52561 + .global punpckub_h
52562 +punpckub_h:
52563 + punpckub.h pc,pc:b
52564 + punpckub.h r12,r12:t
52565 + punpckub.h r5,r5:t
52566 + punpckub.h r4,r4:b
52567 + punpckub.h lr,lr:t
52568 + punpckub.h r6,r1:t
52569 + punpckub.h lr,r5:b
52570 + punpckub.h lr,r2:t
52571 + .text
52572 + .global punpcksb_h
52573 +punpcksb_h:
52574 + punpcksb.h pc,pc:b
52575 + punpcksb.h r12,r12:t
52576 + punpcksb.h r5,r5:t
52577 + punpcksb.h r4,r4:b
52578 + punpcksb.h lr,lr:t
52579 + punpcksb.h r4,r7:t
52580 + punpcksb.h r6,lr:b
52581 + punpcksb.h r12,r12:t
52582 + .text
52583 + .global packsh_ub
52584 +packsh_ub:
52585 + packsh.ub pc,pc,pc
52586 + packsh.ub r12,r12,r12
52587 + packsh.ub r5,r5,r5
52588 + packsh.ub r4,r4,r4
52589 + packsh.ub lr,lr,lr
52590 + packsh.ub r3,r6,r3
52591 + packsh.ub r8,r0,r3
52592 + packsh.ub r9,r3,lr
52593 + .text
52594 + .global packsh_sb
52595 +packsh_sb:
52596 + packsh.sb pc,pc,pc
52597 + packsh.sb r12,r12,r12
52598 + packsh.sb r5,r5,r5
52599 + packsh.sb r4,r4,r4
52600 + packsh.sb lr,lr,lr
52601 + packsh.sb r6,r8,r1
52602 + packsh.sb lr,r9,r8
52603 + packsh.sb sp,r6,r6
52604 + .text
52605 + .global andl
52606 +andl:
52607 + andl pc,0
52608 + andl r12,65535
52609 + andl r5,32768
52610 + andl r4,32767
52611 + andl lr,1
52612 + andl pc,23128
52613 + andl r8,47262
52614 + andl r7,13719
52615 + .text
52616 + .global andl_coh
52617 +andl_coh:
52618 + andl pc,0,COH
52619 + andl r12,65535,COH
52620 + andl r5,32768,COH
52621 + andl r4,32767,COH
52622 + andl lr,1,COH
52623 + andl r6,22753,COH
52624 + andl r0,40653,COH
52625 + andl r4,48580,COH
52626 + .text
52627 + .global andh
52628 +andh:
52629 + andh pc,0
52630 + andh r12,65535
52631 + andh r5,32768
52632 + andh r4,32767
52633 + andh lr,1
52634 + andh r12,52312
52635 + andh r3,8675
52636 + andh r2,42987
52637 + .text
52638 + .global andh_coh
52639 +andh_coh:
52640 + andh pc,0,COH
52641 + andh r12,65535,COH
52642 + andh r5,32768,COH
52643 + andh r4,32767,COH
52644 + andh lr,1,COH
52645 + andh r11,34317,COH
52646 + andh r8,52982,COH
52647 + andh r10,23683,COH
52648 + .text
52649 + .global orl
52650 +orl:
52651 + orl pc,0
52652 + orl r12,65535
52653 + orl r5,32768
52654 + orl r4,32767
52655 + orl lr,1
52656 + orl sp,16766
52657 + orl r0,21181
52658 + orl pc,44103
52659 + .text
52660 + .global orh
52661 +orh:
52662 + orh pc,0
52663 + orh r12,65535
52664 + orh r5,32768
52665 + orh r4,32767
52666 + orh lr,1
52667 + orh r8,28285
52668 + orh r12,30492
52669 + orh r1,59930
52670 + .text
52671 + .global eorl
52672 +eorl:
52673 + eorl pc,0
52674 + eorl r12,65535
52675 + eorl r5,32768
52676 + eorl r4,32767
52677 + eorl lr,1
52678 + eorl r4,51129
52679 + eorl r6,64477
52680 + eorl r1,20913
52681 + .text
52682 + .global eorh
52683 +eorh:
52684 + eorh pc,0
52685 + eorh r12,65535
52686 + eorh r5,32768
52687 + eorh r4,32767
52688 + eorh lr,1
52689 + eorh r0,11732
52690 + eorh r10,38069
52691 + eorh r9,57130
52692 + .text
52693 + .global mcall
52694 +mcall:
52695 + mcall pc[0]
52696 + mcall r12[-4]
52697 + mcall r5[-131072]
52698 + mcall r4[131068]
52699 + mcall lr[4]
52700 + mcall sp[61180]
52701 + mcall r4[-35000]
52702 + mcall r0[9924]
52703 + .text
52704 + .global pref
52705 +pref:
52706 + pref pc[0]
52707 + pref r12[-1]
52708 + pref r5[-32768]
52709 + pref r4[32767]
52710 + pref lr[1]
52711 + pref r7[7748]
52712 + pref r7[-7699]
52713 + pref r2[-25892]
52714 + .text
52715 + .global cache
52716 +cache:
52717 + cache pc[0],0
52718 + cache r12[-1],31
52719 + cache r5[-1024],16
52720 + cache r4[1023],15
52721 + cache lr[1],1
52722 + cache r3[-964],17
52723 + cache r4[-375],22
52724 + cache r3[-888],17
52725 + .text
52726 + .global sub4
52727 +sub4:
52728 + sub pc,0
52729 + sub r12,-1
52730 + sub r5,-1048576
52731 + sub r4,1048575
52732 + sub lr,1
52733 + sub r2,-619156
52734 + sub lr,461517
52735 + sub r8,-185051
52736 + .text
52737 + .global cp3
52738 +cp3:
52739 + cp pc,0
52740 + cp r12,-1
52741 + cp r5,-1048576
52742 + cp r4,1048575
52743 + cp lr,1
52744 + cp r1,124078
52745 + cp r0,-378909
52746 + cp r4,-243180
52747 + .text
52748 + .global mov2
52749 +mov2:
52750 + mov pc,0
52751 + mov r12,-1
52752 + mov r5,-1048576
52753 + mov r4,1048575
52754 + mov lr,1
52755 + mov r5,-317021
52756 + mov sp,-749164
52757 + mov r5,940179
52758 + .text
52759 + .global brc2
52760 +brc2:
52761 + breq 0
52762 + bral -2
52763 + brls -2097152
52764 + brpl 2097150
52765 + brne 2
52766 + brhi -1796966
52767 + brqs 1321368
52768 + brls -577434
52769 + .text
52770 + .global rcall2
52771 +rcall2:
52772 + rcall 0
52773 + rcall -2
52774 + rcall -2097152
52775 + rcall 2097150
52776 + rcall 2
52777 + rcall 496820
52778 + rcall 1085092
52779 + rcall -1058
52780 + .text
52781 + .global sub5
52782 +sub5:
52783 + sub pc,pc,0
52784 + sub r12,r12,-1
52785 + sub r5,r5,-32768
52786 + sub r4,r4,32767
52787 + sub lr,lr,1
52788 + sub pc,pc,-12744
52789 + sub r7,r7,-27365
52790 + sub r2,r9,-17358
52791 + .text
52792 + .global satsub_w2
52793 +satsub_w2:
52794 + satsub.w pc,pc,0
52795 + satsub.w r12,r12,-1
52796 + satsub.w r5,r5,-32768
52797 + satsub.w r4,r4,32767
52798 + satsub.w lr,lr,1
52799 + satsub.w r2,lr,-2007
52800 + satsub.w r7,r12,-784
52801 + satsub.w r4,r7,23180
52802 + .text
52803 + .global ld_d4
52804 +ld_d4:
52805 + ld.d r0,pc[0]
52806 + ld.d r14,r12[-1]
52807 + ld.d r8,r5[-32768]
52808 + ld.d r6,r4[32767]
52809 + ld.d r2,lr[1]
52810 + ld.d r14,r11[14784]
52811 + ld.d r6,r9[-18905]
52812 + ld.d r2,r3[-6355]
52813 + .text
52814 + .global ld_w4
52815 +ld_w4:
52816 + ld.w pc,pc[0]
52817 + ld.w r12,r12[-1]
52818 + ld.w r5,r5[-32768]
52819 + ld.w r4,r4[32767]
52820 + ld.w lr,lr[1]
52821 + ld.w r0,r12[-22133]
52822 + ld.w sp,pc[-20521]
52823 + /* ld.w r3,r5[29035] */
52824 + nop
52825 + .text
52826 + .global ld_sh4
52827 +ld_sh4:
52828 + ld.sh pc,pc[0]
52829 + ld.sh r12,r12[-1]
52830 + ld.sh r5,r5[-32768]
52831 + ld.sh r4,r4[32767]
52832 + ld.sh lr,lr[1]
52833 + ld.sh r6,r10[30930]
52834 + ld.sh r6,r10[21973]
52835 + /* ld.sh r11,r10[-2058] */
52836 + nop
52837 + .text
52838 + .global ld_uh4
52839 +ld_uh4:
52840 + ld.uh pc,pc[0]
52841 + ld.uh r12,r12[-1]
52842 + ld.uh r5,r5[-32768]
52843 + ld.uh r4,r4[32767]
52844 + ld.uh lr,lr[1]
52845 + ld.uh r1,r9[-13354]
52846 + ld.uh lr,r11[21337]
52847 + /* ld.uh r2,lr[-25370] */
52848 + nop
52849 + .text
52850 + .global ld_sb1
52851 +ld_sb1:
52852 + ld.sb pc,pc[0]
52853 + ld.sb r12,r12[-1]
52854 + ld.sb r5,r5[-32768]
52855 + ld.sb r4,r4[32767]
52856 + ld.sb lr,lr[1]
52857 + ld.sb r7,sp[-28663]
52858 + ld.sb r2,r1[-5879]
52859 + ld.sb r12,r3[18734]
52860 + .text
52861 + .global ld_ub4
52862 +ld_ub4:
52863 + ld.ub pc,pc[0]
52864 + ld.ub r12,r12[-1]
52865 + ld.ub r5,r5[-32768]
52866 + ld.ub r4,r4[32767]
52867 + ld.ub lr,lr[1]
52868 + ld.ub pc,r4[8277]
52869 + ld.ub r5,r12[19172]
52870 + ld.ub r10,lr[26347]
52871 + .text
52872 + .global st_d4
52873 +st_d4:
52874 + st.d pc[0],r0
52875 + st.d r12[-1],r14
52876 + st.d r5[-32768],r8
52877 + st.d r4[32767],r6
52878 + st.d lr[1],r2
52879 + st.d r5[13200],r10
52880 + st.d r5[9352],r10
52881 + st.d r5[32373],r4
52882 + .text
52883 + .global st_w4
52884 +st_w4:
52885 + st.w pc[0],pc
52886 + st.w r12[-1],r12
52887 + st.w r5[-32768],r5
52888 + st.w r4[32767],r4
52889 + st.w lr[1],lr
52890 + st.w sp[6136],r7
52891 + st.w r6[27087],r12
52892 + /* st.w r3[20143],r7 */
52893 + nop
52894 + .text
52895 + .global st_h4
52896 +st_h4:
52897 + st.h pc[0],pc
52898 + st.h r12[-1],r12
52899 + st.h r5[-32768],r5
52900 + st.h r4[32767],r4
52901 + st.h lr[1],lr
52902 + st.h r4[-9962],r7
52903 + st.h r9[-16250],r3
52904 + /* st.h r8[-28810],r7 */
52905 + nop
52906 + .text
52907 + .global st_b4
52908 +st_b4:
52909 + st.b pc[0],pc
52910 + st.b r12[-1],r12
52911 + st.b r5[-32768],r5
52912 + st.b r4[32767],r4
52913 + st.b lr[1],lr
52914 + st.b r12[30102],r6
52915 + st.b r5[28977],r1
52916 + st.b r0[5470],r1
52917 + .text
52918 + .global mfsr
52919 +mfsr:
52920 + mfsr pc,0
52921 + mfsr r12,1020
52922 + mfsr r5,512
52923 + mfsr r4,508
52924 + mfsr lr,4
52925 + mfsr r2,696
52926 + mfsr r4,260
52927 + mfsr r10,1016
52928 + .text
52929 + .global mtsr
52930 +mtsr:
52931 + mtsr 0,pc
52932 + mtsr 1020,r12
52933 + mtsr 512,r5
52934 + mtsr 508,r4
52935 + mtsr 4,lr
52936 + mtsr 224,r10
52937 + mtsr 836,r12
52938 + mtsr 304,r9
52939 + .text
52940 + .global mfdr
52941 +mfdr:
52942 + mfdr pc,0
52943 + mfdr r12,1020
52944 + mfdr r5,512
52945 + mfdr r4,508
52946 + mfdr lr,4
52947 + mfdr r6,932
52948 + mfdr r5,36
52949 + mfdr r9,300
52950 + .text
52951 + .global mtdr
52952 +mtdr:
52953 + mtdr 0,pc
52954 + mtdr 1020,r12
52955 + mtdr 512,r5
52956 + mtdr 508,r4
52957 + mtdr 4,lr
52958 + mtdr 180,r8
52959 + mtdr 720,r10
52960 + mtdr 408,lr
52961 + .text
52962 + .global sleep
52963 +sleep:
52964 + sleep 0
52965 + sleep 255
52966 + sleep 128
52967 + sleep 127
52968 + sleep 1
52969 + sleep 254
52970 + sleep 15
52971 + sleep 43
52972 + .text
52973 + .global sync
52974 +sync:
52975 + sync 0
52976 + sync 255
52977 + sync 128
52978 + sync 127
52979 + sync 1
52980 + sync 166
52981 + sync 230
52982 + sync 180
52983 + .text
52984 + .global bld
52985 +bld:
52986 + bld pc,0
52987 + bld r12,31
52988 + bld r5,16
52989 + bld r4,15
52990 + bld lr,1
52991 + bld r9,15
52992 + bld r0,4
52993 + bld lr,26
52994 + .text
52995 + .global bst
52996 +bst:
52997 + bst pc,0
52998 + bst r12,31
52999 + bst r5,16
53000 + bst r4,15
53001 + bst lr,1
53002 + bst r10,28
53003 + bst r0,3
53004 + bst sp,2
53005 + .text
53006 + .global sats
53007 +sats:
53008 + sats pc>>0,0
53009 + sats r12>>31,31
53010 + sats r5>>16,16
53011 + sats r4>>15,15
53012 + sats lr>>1,1
53013 + sats r10>>3,19
53014 + sats r10>>2,26
53015 + sats r1>>20,1
53016 + .text
53017 + .global satu
53018 +satu:
53019 + satu pc>>0,0
53020 + satu r12>>31,31
53021 + satu r5>>16,16
53022 + satu r4>>15,15
53023 + satu lr>>1,1
53024 + satu pc>>5,7
53025 + satu r7>>5,5
53026 + satu r2>>26,19
53027 + .text
53028 + .global satrnds
53029 +satrnds:
53030 + satrnds pc>>0,0
53031 + satrnds r12>>31,31
53032 + satrnds r5>>16,16
53033 + satrnds r4>>15,15
53034 + satrnds lr>>1,1
53035 + satrnds r0>>21,19
53036 + satrnds sp>>0,2
53037 + satrnds r7>>6,29
53038 + .text
53039 + .global satrndu
53040 +satrndu:
53041 + satrndu pc>>0,0
53042 + satrndu r12>>31,31
53043 + satrndu r5>>16,16
53044 + satrndu r4>>15,15
53045 + satrndu lr>>1,1
53046 + satrndu r12>>0,26
53047 + satrndu r4>>21,3
53048 + satrndu r10>>3,16
53049 + .text
53050 + .global subfc
53051 +subfc:
53052 + subfeq pc,0
53053 + subfal r12,-1
53054 + subfls r5,-128
53055 + subfpl r4,127
53056 + subfne lr,1
53057 + subfls r10,8
53058 + subfvc r11,99
53059 + subfvs r2,73
53060 + .text
53061 + .global subc
53062 +subc:
53063 + subeq pc,0
53064 + subal r12,-1
53065 + subls r5,-128
53066 + subpl r4,127
53067 + subne lr,1
53068 + subls r12,118
53069 + subvc lr,-12
53070 + submi r4,-13
53071 + .text
53072 + .global movc2
53073 +movc2:
53074 + moveq pc,0
53075 + moval r12,-1
53076 + movls r5,-128
53077 + movpl r4,127
53078 + movne lr,1
53079 + movlt r3,-122
53080 + movvc r8,2
53081 + movne r7,-111
53082 + .text
53083 + .global cp_b
53084 +cp_b:
53085 + cp.b pc,r0
53086 + cp.b r0,pc
53087 + cp.b r7,r8
53088 + cp.b r8,r7
53089 + .text
53090 + .global cp_h
53091 +cp_h:
53092 + cp.h pc,r0
53093 + cp.h r0,pc
53094 + cp.h r7,r8
53095 + cp.h r8,r7
53096 + .text
53097 + .global ldm
53098 +ldm:
53099 + ldm pc,r1-r6
53100 + ldm r12,r0-r15
53101 + ldm r5,r15
53102 + ldm r4,r0-r14
53103 + ldm lr,r0
53104 + ldm r9,r1,r5,r14
53105 + ldm r11,r2-r3,r5-r8,r15
53106 + ldm r6,r0,r3,r9,r13,r15
53107 + .text
53108 + .global ldm_pu
53109 +ldm_pu:
53110 + ldm pc++,r6-r9
53111 + ldm r12++,r0-r15
53112 + ldm r5++,r15
53113 + ldm r4++,r0-r14
53114 + ldm lr++,r0
53115 + ldm r12++,r3-r5,r8,r10,r12,r14-r15
53116 + ldm r10++,r2,r4-r6,r14-r15
53117 + ldm r6++,r1,r3-r4,r9-r14
53118 + .text
53119 + .global ldmts
53120 +ldmts:
53121 + ldmts pc,r7-r8
53122 + ldmts r12,r0-r15
53123 + ldmts r5,r15
53124 + ldmts r4,r0-r14
53125 + ldmts lr,r0
53126 + ldmts r0,r1-r2,r11-r12
53127 + ldmts lr,r0-r2,r4,r7-r8,r13-r14
53128 + ldmts r12,r0-r1,r3-r5,r9,r14-r15
53129 + .text
53130 + .global ldmts_pu
53131 +ldmts_pu:
53132 + ldmts pc++,r9
53133 + ldmts r12++,r0-r15
53134 + ldmts r5++,r15
53135 + ldmts r4++,r0-r14
53136 + ldmts lr++,r0
53137 + ldmts sp++,r0,r2-r5,r7,r9,r11
53138 + ldmts r5++,r1-r3,r7,r10-r11
53139 + ldmts r8++,r2-r4,r7-r8,r13,r15
53140 + .text
53141 + .global stm
53142 +stm:
53143 + stm pc,r7
53144 + stm r12,r0-r15
53145 + stm r5,r15
53146 + stm r4,r0-r14
53147 + stm lr,r0
53148 + stm sp,r2-r3,r5,r8,r11,r14
53149 + stm r4,r0-r4,r6,r10-r11,r14
53150 + stm r9,r1,r5,r9,r12-r15
53151 + .text
53152 + .global stm_pu
53153 +stm_pu:
53154 + stm --pc,r4-r6
53155 + stm --r12,r0-r15
53156 + stm --r5,r15
53157 + stm --r4,r0-r14
53158 + stm --lr,r0
53159 + stm --r11,r0,r4-r9,r11-r15
53160 + stm --r11,r0,r3,r9-r10,r12,r14
53161 + stm --r6,r2,r8-r9,r13-r14
53162 + .text
53163 + .global stmts
53164 +stmts:
53165 + stmts pc,r8
53166 + stmts r12,r0-r15
53167 + stmts r5,r15
53168 + stmts r4,r0-r14
53169 + stmts lr,r0
53170 + stmts r1,r0-r1,r3-r4,r6,r9-r10,r14-r15
53171 + stmts r3,r0,r6-r8,r10-r12
53172 + stmts r11,r0,r4,r6-r7,r9-r10,r12,r14-r15
53173 + .text
53174 + .global stmts_pu
53175 +stmts_pu:
53176 + stmts --pc,r6-r8
53177 + stmts --r12,r0-r15
53178 + stmts --r5,r15
53179 + stmts --r4,r0-r14
53180 + stmts --lr,r0
53181 + stmts --r2,r0,r3-r4,r9-r10,r12-r13
53182 + stmts --r3,r0-r1,r14-r15
53183 + stmts --r0,r0,r2-r6,r10,r14
53184 + .text
53185 + .global ldins_h
53186 +ldins_h:
53187 + ldins.h pc:b,pc[0]
53188 + ldins.h r12:t,r12[-2]
53189 + ldins.h r5:t,r5[-4096]
53190 + ldins.h r4:b,r4[4094]
53191 + ldins.h lr:t,lr[2]
53192 + ldins.h r0:t,lr[1930]
53193 + ldins.h r3:b,r7[-534]
53194 + ldins.h r2:b,r12[-2252]
53195 + .text
53196 + .global ldins_b
53197 +ldins_b:
53198 + ldins.b pc:b,pc[0]
53199 + ldins.b r12:t,r12[-1]
53200 + ldins.b r5:u,r5[-2048]
53201 + ldins.b r4:l,r4[2047]
53202 + ldins.b lr:l,lr[1]
53203 + ldins.b r6:t,r4[-662]
53204 + ldins.b r5:b,r1[-151]
53205 + ldins.b r10:t,r11[-1923]
53206 + .text
53207 + .global ldswp_sh
53208 +ldswp_sh:
53209 + ldswp.sh pc,pc[0]
53210 + ldswp.sh r12,r12[-2]
53211 + ldswp.sh r5,r5[-4096]
53212 + ldswp.sh r4,r4[4094]
53213 + ldswp.sh lr,lr[2]
53214 + ldswp.sh r9,r10[3848]
53215 + ldswp.sh r4,r12[-2040]
53216 + ldswp.sh r10,r2[3088]
53217 + .text
53218 + .global ldswp_uh
53219 +ldswp_uh:
53220 + ldswp.uh pc,pc[0]
53221 + ldswp.uh r12,r12[-2]
53222 + ldswp.uh r5,r5[-4096]
53223 + ldswp.uh r4,r4[4094]
53224 + ldswp.uh lr,lr[2]
53225 + ldswp.uh r4,r9[3724]
53226 + ldswp.uh lr,sp[-1672]
53227 + ldswp.uh r8,r12[-3846]
53228 + .text
53229 + .global ldswp_w
53230 +ldswp_w:
53231 + ldswp.w pc,pc[0]
53232 + ldswp.w r12,r12[-4]
53233 + ldswp.w r5,r5[-8192]
53234 + ldswp.w r4,r4[8188]
53235 + ldswp.w lr,lr[4]
53236 + ldswp.w sp,r7[1860]
53237 + ldswp.w pc,r5[-3324]
53238 + ldswp.w r12,r10[-3296]
53239 + .text
53240 + .global stswp_h
53241 +stswp_h:
53242 + stswp.h pc[0],pc
53243 + stswp.h r12[-2],r12
53244 + stswp.h r5[-4096],r5
53245 + stswp.h r4[4094],r4
53246 + stswp.h lr[2],lr
53247 + stswp.h r7[64],r10
53248 + stswp.h r10[3024],r2
53249 + stswp.h r0[-2328],r10
53250 + .text
53251 + .global stswp_w
53252 +stswp_w:
53253 + stswp.w pc[0],pc
53254 + stswp.w r12[-4],r12
53255 + stswp.w r5[-8192],r5
53256 + stswp.w r4[8188],r4
53257 + stswp.w lr[4],lr
53258 + stswp.w pc[1156],r8
53259 + stswp.w sp[7992],r10
53260 + stswp.w r8[-1172],r5
53261 + .text
53262 + .global and2
53263 +and2:
53264 + and pc,pc,pc<<0
53265 + and r12,r12,r12<<31
53266 + and r5,r5,r5<<16
53267 + and r4,r4,r4<<15
53268 + and lr,lr,lr<<1
53269 + and r10,r2,r1<<1
53270 + and r12,r8,r11<<27
53271 + and r10,r7,r0<<3
53272 + .text
53273 + .global and3
53274 +and3:
53275 + and pc,pc,pc>>0
53276 + and r12,r12,r12>>31
53277 + and r5,r5,r5>>16
53278 + and r4,r4,r4>>15
53279 + and lr,lr,lr>>1
53280 + and r12,r8,r7>>17
53281 + and pc,r4,r9>>20
53282 + and r10,r9,r10>>12
53283 + .text
53284 + .global or2
53285 +or2:
53286 + or pc,pc,pc<<0
53287 + or r12,r12,r12<<31
53288 + or r5,r5,r5<<16
53289 + or r4,r4,r4<<15
53290 + or lr,lr,lr<<1
53291 + or r8,sp,r11<<29
53292 + or pc,r9,r2<<28
53293 + or r5,r1,r2<<3
53294 + .text
53295 + .global or3
53296 +or3:
53297 + or pc,pc,pc>>0
53298 + or r12,r12,r12>>31
53299 + or r5,r5,r5>>16
53300 + or r4,r4,r4>>15
53301 + or lr,lr,lr>>1
53302 + or r1,sp,sp>>2
53303 + or r0,r1,r1>>29
53304 + or r4,r12,r8>>8
53305 + .text
53306 + .global eor2
53307 +eor2:
53308 + eor pc,pc,pc<<0
53309 + eor r12,r12,r12<<31
53310 + eor r5,r5,r5<<16
53311 + eor r4,r4,r4<<15
53312 + eor lr,lr,lr<<1
53313 + eor r10,r9,r4<<11
53314 + eor r4,r0,r1<<31
53315 + eor r6,r2,r12<<13
53316 + .text
53317 + .global eor3
53318 +eor3:
53319 + eor pc,pc,pc>>0
53320 + eor r12,r12,r12>>31
53321 + eor r5,r5,r5>>16
53322 + eor r4,r4,r4>>15
53323 + eor lr,lr,lr>>1
53324 + eor r5,r5,r5>>22
53325 + eor r10,r1,lr>>3
53326 + eor r7,lr,sp>>26
53327 + .text
53328 + .global sthh_w2
53329 +sthh_w2:
53330 + sthh.w pc[pc<<0],pc:b,pc:b
53331 + sthh.w r12[r12<<3],r12:t,r12:t
53332 + sthh.w r5[r5<<2],r5:t,r5:t
53333 + sthh.w r4[r4<<1],r4:b,r4:b
53334 + sthh.w lr[lr<<1],lr:t,lr:t
53335 + sthh.w sp[r6<<3],r1:t,r12:t
53336 + sthh.w r6[r6<<0],r9:t,r9:t
53337 + sthh.w r10[r3<<0],r0:b,r11:t
53338 + .text
53339 + .global sthh_w1
53340 +sthh_w1:
53341 + sthh.w pc[0],pc:b,pc:b
53342 + sthh.w r12[1020],r12:t,r12:t
53343 + sthh.w r5[512],r5:t,r5:t
53344 + sthh.w r4[508],r4:b,r4:b
53345 + sthh.w lr[4],lr:t,lr:t
53346 + sthh.w r4[404],r9:t,r0:b
53347 + sthh.w r8[348],r2:t,r10:b
53348 + sthh.w sp[172],r9:b,r2:b
53349 + .text
53350 + .global cop
53351 +cop:
53352 + cop cp0,cr0,cr0,cr0,0
53353 + cop cp7,cr15,cr15,cr15,0x7f
53354 + cop cp3,cr5,cr5,cr5,0x31
53355 + cop cp2,cr4,cr4,cr4,0x30
53356 + cop cp5,cr8,cr3,cr7,0x5a
53357 + .text
53358 + .global ldc_w1
53359 +ldc_w1:
53360 + ldc.w cp0,cr0,r0[0]
53361 + ldc.w cp7,cr15,pc[255<<2]
53362 + ldc.w cp3,cr5,r5[128<<2]
53363 + ldc.w cp2,cr4,r4[127<<2]
53364 + ldc.w cp4,cr9,r13[36<<2]
53365 + .text
53366 + .global ldc_w2
53367 +ldc_w2:
53368 + ldc.w cp0,cr0,--r0
53369 + ldc.w cp7,cr15,--pc
53370 + ldc.w cp3,cr5,--r5
53371 + ldc.w cp2,cr4,--r4
53372 + ldc.w cp4,cr9,--r13
53373 + .text
53374 + .global ldc_w3
53375 +ldc_w3:
53376 + ldc.w cp0,cr0,r0[r0]
53377 + ldc.w cp7,cr15,pc[pc<<3]
53378 + ldc.w cp3,cr5,r5[r4<<2]
53379 + ldc.w cp2,cr4,r4[r3<<1]
53380 + ldc.w cp4,cr9,r13[r12<<0]
53381 + .text
53382 + .global ldc_d1
53383 +ldc_d1:
53384 + ldc.d cp0,cr0,r0[0]
53385 + ldc.d cp7,cr14,pc[255<<2]
53386 + ldc.d cp3,cr6,r5[128<<2]
53387 + ldc.d cp2,cr4,r4[127<<2]
53388 + ldc.d cp4,cr8,r13[36<<2]
53389 + .text
53390 + .global ldc_d2
53391 +ldc_d2:
53392 + ldc.d cp0,cr0,--r0
53393 + ldc.d cp7,cr14,--pc
53394 + ldc.d cp3,cr6,--r5
53395 + ldc.d cp2,cr4,--r4
53396 + ldc.d cp4,cr8,--r13
53397 + .text
53398 + .global ldc_d3
53399 +ldc_d3:
53400 + ldc.d cp0,cr0,r0[r0]
53401 + ldc.d cp7,cr14,pc[pc<<3]
53402 + ldc.d cp3,cr6,r5[r4<<2]
53403 + ldc.d cp2,cr4,r4[r3<<1]
53404 + ldc.d cp4,cr8,r13[r12<<0]
53405 + .text
53406 + .global stc_w1
53407 +stc_w1:
53408 + stc.w cp0,r0[0],cr0
53409 + stc.w cp7,pc[255<<2],cr15
53410 + stc.w cp3,r5[128<<2],cr5
53411 + stc.w cp2,r4[127<<2],cr4
53412 + stc.w cp4,r13[36<<2],cr9
53413 + .text
53414 + .global stc_w2
53415 +stc_w2:
53416 + stc.w cp0,r0++,cr0
53417 + stc.w cp7,pc++,cr15
53418 + stc.w cp3,r5++,cr5
53419 + stc.w cp2,r4++,cr4
53420 + stc.w cp4,r13++,cr9
53421 + .text
53422 + .global stc_w3
53423 +stc_w3:
53424 + stc.w cp0,r0[r0],cr0
53425 + stc.w cp7,pc[pc<<3],cr15
53426 + stc.w cp3,r5[r4<<2],cr5
53427 + stc.w cp2,r4[r3<<1],cr4
53428 + stc.w cp4,r13[r12<<0],cr9
53429 + .text
53430 + .global stc_d1
53431 +stc_d1:
53432 + stc.d cp0,r0[0],cr0
53433 + stc.d cp7,pc[255<<2],cr14
53434 + stc.d cp3,r5[128<<2],cr6
53435 + stc.d cp2,r4[127<<2],cr4
53436 + stc.d cp4,r13[36<<2],cr8
53437 + .text
53438 + .global stc_d2
53439 +stc_d2:
53440 + stc.d cp0,r0++,cr0
53441 + stc.d cp7,pc++,cr14
53442 + stc.d cp3,r5++,cr6
53443 + stc.d cp2,r4++,cr4
53444 + stc.d cp4,r13++,cr8
53445 + .text
53446 + .global stc_d3
53447 +stc_d3:
53448 + stc.d cp0,r0[r0],cr0
53449 + stc.d cp7,pc[pc<<3],cr14
53450 + stc.d cp3,r5[r4<<2],cr6
53451 + stc.d cp2,r4[r3<<1],cr4
53452 + stc.d cp4,r13[r12<<0],cr8
53453 + .text
53454 + .global ldc0_w
53455 +ldc0_w:
53456 + ldc0.w cr0,r0[0]
53457 + ldc0.w cr15,pc[4095<<2]
53458 + ldc0.w cr5,r5[2048<<2]
53459 + ldc0.w cr4,r4[2047<<2]
53460 + ldc0.w cr9,r13[147<<2]
53461 + .text
53462 + .global ldc0_d
53463 +ldc0_d:
53464 + ldc0.d cr0,r0[0]
53465 + ldc0.d cr14,pc[4095<<2]
53466 + ldc0.d cr6,r5[2048<<2]
53467 + ldc0.d cr4,r4[2047<<2]
53468 + ldc0.d cr8,r13[147<<2]
53469 + .text
53470 + .global stc0_w
53471 +stc0_w:
53472 + stc0.w r0[0],cr0
53473 + stc0.w pc[4095<<2],cr15
53474 + stc0.w r5[2048<<2],cr5
53475 + stc0.w r4[2047<<2],cr4
53476 + stc0.w r13[147<<2],cr9
53477 + .text
53478 + .global stc0_d
53479 +stc0_d:
53480 + stc0.d r0[0],cr0
53481 + stc0.d pc[4095<<2],cr14
53482 + stc0.d r5[2048<<2],cr6
53483 + stc0.d r4[2047<<2],cr4
53484 + stc0.d r13[147<<2],cr8
53485 + .text
53486 + .global memc
53487 +memc:
53488 + memc 0, 0
53489 + memc -4, 31
53490 + memc -65536, 16
53491 + memc 65532, 15
53492 + .text
53493 + .global mems
53494 +mems:
53495 + mems 0, 0
53496 + mems -4, 31
53497 + mems -65536, 16
53498 + mems 65532, 15
53499 + .text
53500 + .global memt
53501 +memt:
53502 + memt 0, 0
53503 + memt -4, 31
53504 + memt -65536, 16
53505 + memt 65532, 15
53506 +
53507 + .text
53508 + .global stcond
53509 +stcond:
53510 + stcond r0[0], r0
53511 + stcond pc[-1], pc
53512 + stcond r8[-32768], r7
53513 + stcond r7[32767], r8
53514 + stcond r5[0x1234], r10
53515 +
53516 +ldcm_w:
53517 + ldcm.w cp0,pc,cr0-cr7
53518 + ldcm.w cp7,r0,cr0
53519 + ldcm.w cp4,r4++,cr0-cr6
53520 + ldcm.w cp3,r7,cr7
53521 + ldcm.w cp1,r12++,cr1,cr4-cr6
53522 + ldcm.w cp0,pc,cr8-cr15
53523 + ldcm.w cp7,r0,cr8
53524 + ldcm.w cp4,r4++,cr8-cr14
53525 + ldcm.w cp3,r7,cr15
53526 + ldcm.w cp1,r12++,cr9,cr12-cr14
53527 +
53528 +ldcm_d:
53529 + ldcm.d cp0,pc,cr0-cr15
53530 + ldcm.d cp7,r0,cr0,cr1
53531 + ldcm.d cp4,r4++,cr0-cr13
53532 + ldcm.d cp3,r7,cr14-cr15
53533 + ldcm.d cp2,r12++,cr0-cr3,cr8-cr9,cr14-cr15
53534 +
53535 +stcm_w:
53536 + stcm.w cp0,pc,cr0-cr7
53537 + stcm.w cp7,r0,cr0
53538 + stcm.w cp4,--r4,cr0-cr6
53539 + stcm.w cp3,r7,cr7
53540 + stcm.w cp1,--r12,cr1,cr4-cr6
53541 + stcm.w cp0,pc,cr8-cr15
53542 + stcm.w cp7,r0,cr8
53543 + stcm.w cp4,--r4,cr8-cr14
53544 + stcm.w cp3,r7,cr15
53545 + stcm.w cp1,--r12,cr9,cr12-cr14
53546 +
53547 +stcm_d:
53548 + stcm.d cp0,pc,cr0-cr15
53549 + stcm.d cp7,r0,cr0,cr1
53550 + stcm.d cp4,--r4,cr0-cr13
53551 + stcm.d cp3,r7,cr14-cr15
53552 + stcm.d cp2,--r12,cr0-cr3,cr8-cr9,cr14-cr15
53553 +
53554 +mvcr_w:
53555 + mvcr.w cp7,pc,cr15
53556 + mvcr.w cp0,r0,cr0
53557 + mvcr.w cp0,pc,cr15
53558 + mvcr.w cp7,r0,cr15
53559 + mvcr.w cp7,pc,cr0
53560 + mvcr.w cp4,r7,cr8
53561 + mvcr.w cp3,r8,cr7
53562 +
53563 +mvcr_d:
53564 + mvcr.d cp7,lr,cr14
53565 + mvcr.d cp0,r0,cr0
53566 + mvcr.d cp0,lr,cr14
53567 + mvcr.d cp7,r0,cr14
53568 + mvcr.d cp7,lr,cr0
53569 + mvcr.d cp4,r6,cr8
53570 + mvcr.d cp3,r8,cr6
53571 +
53572 +mvrc_w:
53573 + mvrc.w cp7,cr15,pc
53574 + mvrc.w cp0,cr0,r0
53575 + mvrc.w cp0,cr15,pc
53576 + mvrc.w cp7,cr15,r0
53577 + mvrc.w cp7,cr0,pc
53578 + mvrc.w cp4,cr8,r7
53579 + mvrc.w cp3,cr7,r8
53580 +
53581 +mvrc_d:
53582 + mvrc.d cp7,cr14,lr
53583 + mvrc.d cp0,cr0,r0
53584 + mvrc.d cp0,cr14,lr
53585 + mvrc.d cp7,cr14,r0
53586 + mvrc.d cp7,cr0,lr
53587 + mvrc.d cp4,cr8,r6
53588 + mvrc.d cp3,cr6,r8
53589 +
53590 +bfexts:
53591 + bfexts pc,pc,31,31
53592 + bfexts r0,r0,0,0
53593 + bfexts r0,pc,31,31
53594 + bfexts pc,r0,31,31
53595 + bfexts pc,pc,0,31
53596 + bfexts pc,pc,31,0
53597 + bfexts r7,r8,15,16
53598 + bfexts r8,r7,16,15
53599 +
53600 +bfextu:
53601 + bfextu pc,pc,31,31
53602 + bfextu r0,r0,0,0
53603 + bfextu r0,pc,31,31
53604 + bfextu pc,r0,31,31
53605 + bfextu pc,pc,0,31
53606 + bfextu pc,pc,31,0
53607 + bfextu r7,r8,15,16
53608 + bfextu r8,r7,16,15
53609 +
53610 +bfins:
53611 + bfins pc,pc,31,31
53612 + bfins r0,r0,0,0
53613 + bfins r0,pc,31,31
53614 + bfins pc,r0,31,31
53615 + bfins pc,pc,0,31
53616 + bfins pc,pc,31,0
53617 + bfins r7,r8,15,16
53618 + bfins r8,r7,16,15
53619 --- /dev/null
53620 +++ b/gas/testsuite/gas/avr32/avr32.exp
53621 @@ -0,0 +1,23 @@
53622 +# AVR32 assembler testsuite. -*- Tcl -*-
53623 +
53624 +if [istarget avr32-*-*] {
53625 + run_dump_test "hwrd-lwrd"
53626 + run_dump_test "pcrel"
53627 + run_dump_test "aliases"
53628 + run_dump_test "dwarf2"
53629 + run_dump_test "pic_reloc"
53630 + run_dump_test "fpinsn"
53631 + run_dump_test "pico"
53632 + run_dump_test "lda_pic"
53633 + run_dump_test "lda_pic_linkrelax"
53634 + run_dump_test "lda_nopic"
53635 + run_dump_test "lda_nopic_linkrelax"
53636 + run_dump_test "call_pic"
53637 + run_dump_test "call_pic_linkrelax"
53638 + run_dump_test "call_nopic"
53639 + run_dump_test "call_nopic_linkrelax"
53640 + run_dump_test "jmptable"
53641 + run_dump_test "jmptable_linkrelax"
53642 + run_dump_test "symdiff"
53643 + run_dump_test "symdiff_linkrelax"
53644 +}
53645 --- /dev/null
53646 +++ b/gas/testsuite/gas/avr32/call_nopic.d
53647 @@ -0,0 +1,36 @@
53648 +#source: call.s
53649 +#as:
53650 +#objdump: -dr
53651 +#name: call_nopic
53652 +
53653 +.*: +file format .*
53654 +
53655 +Disassembly of section \.text:
53656 +
53657 +00000000 <call_test>:
53658 + 0: d7 03 nop
53659 +
53660 +00000002 <toofar_negative>:
53661 + \.\.\.
53662 + 1ffffe: 00 00 add r0,r0
53663 + 200000: f0 a0 00 00 rcall 0 <call_test>
53664 + 200004: f0 1f 00 0c mcall 200034 <toofar_negative\+0x200032>
53665 + 200008: f0 1f 00 0c mcall 200038 <toofar_negative\+0x200036>
53666 + 20000c: f0 1f 00 0c mcall 20003c <toofar_negative\+0x20003a>
53667 + 200010: f0 1f 00 0c mcall 200040 <toofar_negative\+0x20003e>
53668 + \.\.\.
53669 + 200030: ee b0 ff ff rcall 40002e <far_positive>
53670 + \.\.\.
53671 + 200034: R_AVR32_32_CPENT \.text\+0x2
53672 + 200038: R_AVR32_32_CPENT \.text\.init
53673 + 20003c: R_AVR32_32_CPENT undefined
53674 + 200040: R_AVR32_32_CPENT \.text\+0x40002c
53675 +
53676 +0040002c <toofar_positive>:
53677 + 40002c: d7 03 nop
53678 +0040002e <far_positive>:
53679 + 40002e: d7 03 nop
53680 +Disassembly of section \.text\.init:
53681 +
53682 +00000000 <different_section>:
53683 + 0: e2 c0 00 00 sub r0,r1,0
53684 --- /dev/null
53685 +++ b/gas/testsuite/gas/avr32/call_nopic_linkrelax.d
53686 @@ -0,0 +1,43 @@
53687 +#source: call.s
53688 +#as: --linkrelax
53689 +#objdump: -dr
53690 +#name: call_nopic_linkrelax
53691 +
53692 +.*: +file format .*
53693 +
53694 +Disassembly of section \.text:
53695 +
53696 +00000000 <call_test>:
53697 + 0: d7 03 nop
53698 +
53699 +00000002 <toofar_negative>:
53700 + \.\.\.
53701 + 1ffffe: 00 00 add r0,r0
53702 + 200000: e0 a0 00 00 rcall 200000 <toofar_negative\+0x1ffffe>
53703 + 200000: R_AVR32_22H_PCREL \.text
53704 + 200004: f0 1f 00 00 mcall 200004 <toofar_negative\+0x200002>
53705 + 200004: R_AVR32_CPCALL \.text\+0x200034
53706 + 200008: f0 1f 00 00 mcall 200008 <toofar_negative\+0x200006>
53707 + 200008: R_AVR32_CPCALL \.text\+0x200038
53708 + 20000c: f0 1f 00 00 mcall 20000c <toofar_negative\+0x20000a>
53709 + 20000c: R_AVR32_CPCALL \.text\+0x20003c
53710 + 200010: f0 1f 00 00 mcall 200010 <toofar_negative\+0x20000e>
53711 + 200010: R_AVR32_CPCALL \.text\+0x200040
53712 + \.\.\.
53713 + 200030: e0 a0 00 00 rcall 200030 <toofar_negative\+0x20002e>
53714 + 200030: R_AVR32_22H_PCREL \.text\+0x40002e
53715 + \.\.\.
53716 + 200034: R_AVR32_ALIGN \*ABS\*\+0x2
53717 + 200034: R_AVR32_32_CPENT \.text\+0x2
53718 + 200038: R_AVR32_32_CPENT \.text\.init
53719 + 20003c: R_AVR32_32_CPENT undefined
53720 + 200040: R_AVR32_32_CPENT \.text\+0x40002c
53721 +
53722 +0040002c <toofar_positive>:
53723 + 40002c: d7 03 nop
53724 +0040002e <far_positive>:
53725 + 40002e: d7 03 nop
53726 +Disassembly of section \.text\.init:
53727 +
53728 +00000000 <different_section>:
53729 + 0: e2 c0 00 00 sub r0,r1,0
53730 --- /dev/null
53731 +++ b/gas/testsuite/gas/avr32/call_pic.d
53732 @@ -0,0 +1,36 @@
53733 +#source: call.s
53734 +#as: --pic
53735 +#objdump: -dr
53736 +#name: call_pic
53737 +
53738 +.*: +file format .*
53739 +
53740 +Disassembly of section \.text:
53741 +
53742 +00000000 <call_test>:
53743 + 0: d7 03 nop
53744 +
53745 +00000002 <toofar_negative>:
53746 + \.\.\.
53747 + 1ffffe: 00 00 add r0,r0
53748 + 200000: f0 a0 00 00 rcall 0 <call_test>
53749 + 200004: f0 16 00 00 mcall r6\[0\]
53750 + 200004: R_AVR32_GOT18SW toofar_negative
53751 + 200008: f0 16 00 00 mcall r6\[0\]
53752 + 200008: R_AVR32_GOT18SW different_section
53753 + 20000c: f0 16 00 00 mcall r6\[0\]
53754 + 20000c: R_AVR32_GOT18SW undefined
53755 + 200010: f0 16 00 00 mcall r6\[0\]
53756 + 200010: R_AVR32_GOT18SW toofar_positive
53757 + \.\.\.
53758 + 200030: ee b0 ff ff rcall 40002e <far_positive>
53759 + \.\.\.
53760 +
53761 +0040002c <toofar_positive>:
53762 + 40002c: d7 03 nop
53763 +0040002e <far_positive>:
53764 + 40002e: d7 03 nop
53765 +Disassembly of section \.text\.init:
53766 +
53767 +00000000 <different_section>:
53768 + 0: e2 c0 00 00 sub r0,r1,0
53769 --- /dev/null
53770 +++ b/gas/testsuite/gas/avr32/call_pic_linkrelax.d
53771 @@ -0,0 +1,47 @@
53772 +#source: call.s
53773 +#as: --pic --linkrelax
53774 +#objdump: -dr
53775 +#name: call_pic_linkrelax
53776 +
53777 +.*: +file format .*
53778 +
53779 +Disassembly of section \.text:
53780 +
53781 +00000000 <call_test>:
53782 + 0: d7 03 nop
53783 +
53784 +00000002 <toofar_negative>:
53785 + \.\.\.
53786 + 1ffffe: 00 00 add r0,r0
53787 + 200000: e0 a0 00 00 rcall 200000 <toofar_negative\+0x1ffffe>
53788 + 200000: R_AVR32_22H_PCREL \.text
53789 + 200004: e0 6e 00 00 mov lr,0
53790 + 200004: R_AVR32_GOTCALL toofar_negative
53791 + 200008: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53792 + 20000c: 5d 1e icall lr
53793 + 20000e: e0 6e 00 00 mov lr,0
53794 + 20000e: R_AVR32_GOTCALL different_section
53795 + 200012: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53796 + 200016: 5d 1e icall lr
53797 + 200018: e0 6e 00 00 mov lr,0
53798 + 200018: R_AVR32_GOTCALL undefined
53799 + 20001c: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53800 + 200020: 5d 1e icall lr
53801 + 200022: e0 6e 00 00 mov lr,0
53802 + 200022: R_AVR32_GOTCALL toofar_positive
53803 + 200026: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53804 + 20002a: 5d 1e icall lr
53805 + 20002c: 00 00 add r0,r0
53806 + 20002e: 00 00 add r0,r0
53807 + 200030: e0 a0 00 00 rcall 200030 <toofar_negative\+0x20002e>
53808 + 200030: R_AVR32_22H_PCREL \.text\+0x40002e
53809 + \.\.\.
53810 +
53811 +0040002c <toofar_positive>:
53812 + 40002c: d7 03 nop
53813 +0040002e <far_positive>:
53814 + 40002e: d7 03 nop
53815 +Disassembly of section \.text\.init:
53816 +
53817 +00000000 <different_section>:
53818 + 0: e2 c0 00 00 sub r0,r1,0
53819 --- /dev/null
53820 +++ b/gas/testsuite/gas/avr32/call.s
53821 @@ -0,0 +1,30 @@
53822 +
53823 + .text
53824 + .global call_test
53825 +call_test:
53826 +far_negative:
53827 + nop
53828 +toofar_negative:
53829 +
53830 + .org 0x200000
53831 +
53832 + call far_negative
53833 + call toofar_negative
53834 + call different_section
53835 + call undefined
53836 + call toofar_positive
53837 + .org 0x200030
53838 + call far_positive
53839 +
53840 + .cpool
53841 +
53842 + .org 0x40002c
53843 +
53844 +toofar_positive:
53845 + nop
53846 +far_positive:
53847 + nop
53848 +
53849 + .section .text.init,"ax",@progbits
53850 +different_section:
53851 + sub r0, r1, 0
53852 --- /dev/null
53853 +++ b/gas/testsuite/gas/avr32/dwarf2.d
53854 @@ -0,0 +1,42 @@
53855 +#readelf: -wl
53856 +#name: dwarf2
53857 +#source: dwarf2.s
53858 +
53859 +Dump of debug contents of section \.debug_line:
53860 +
53861 + Length: 53
53862 + DWARF Version: 2
53863 + Prologue Length: 26
53864 + Minimum Instruction Length: 1
53865 + Initial value of 'is_stmt': 1
53866 + Line Base: -5
53867 + Line Range: 14
53868 + Opcode Base: 10
53869 + \(Pointer size: 4\)
53870 +
53871 + Opcodes:
53872 + Opcode 1 has 0 args
53873 + Opcode 2 has 1 args
53874 + Opcode 3 has 1 args
53875 + Opcode 4 has 1 args
53876 + Opcode 5 has 1 args
53877 + Opcode 6 has 0 args
53878 + Opcode 7 has 0 args
53879 + Opcode 8 has 0 args
53880 + Opcode 9 has 1 args
53881 +
53882 + The Directory Table is empty\.
53883 +
53884 + The File Name Table:
53885 + Entry Dir Time Size Name
53886 + 1 0 0 0 main\.c
53887 +
53888 + Line Number Statements:
53889 + Extended opcode 2: set Address to 0x0
53890 + Advance Line by 87 to 88
53891 + Copy
53892 + Advance Line by 23 to 111
53893 + Special opcode .*: advance Address by 4 to 0x4 and Line by 0 to 111
53894 + Special opcode .*: advance Address by 10 to 0xe and Line by 1 to 112
53895 + Advance PC by 530 to 220
53896 + Extended opcode 1: End of Sequence
53897 --- /dev/null
53898 +++ b/gas/testsuite/gas/avr32/dwarf2.s
53899 @@ -0,0 +1,67 @@
53900 +# Source file used to test DWARF2 information for AVR32.
53901 +
53902 + .file "main.c"
53903 +
53904 + .section .debug_abbrev,"",@progbits
53905 +.Ldebug_abbrev0:
53906 + .section .debug_info,"",@progbits
53907 +.Ldebug_info0:
53908 + .section .debug_line,"",@progbits
53909 +.Ldebug_line0:
53910 +
53911 + .text
53912 + .align 1
53913 + .globl main
53914 + .type main, @function
53915 +.Ltext0:
53916 +main:
53917 + .file 1 "main.c"
53918 + .loc 1 88 0
53919 + pushm r0-r7,lr
53920 + sub sp, 4
53921 + .loc 1 111 0
53922 + lddpc r12, .LC1
53923 + lddpc r7, .LC1
53924 + icall r7
53925 + .loc 1 112 0
53926 + lddpc r6, .LC4
53927 +
53928 + .align 2
53929 +.LC4: .int 0
53930 +
53931 + .fill 256, 2, 0
53932 +
53933 + .align 2
53934 +.LC1:
53935 + .int 0
53936 +.LC2:
53937 + .int 0
53938 +.LC3:
53939 + .int 0
53940 + .size main, . - main
53941 +
53942 +.Letext0:
53943 +
53944 + .section .debug_info
53945 + .int .Ledebug_info0 - .Ldebug_info0 // size
53946 + .short 2 // version
53947 + .int .Ldebug_abbrev0 // abbrev offset
53948 + .byte 4 // bytes per addr
53949 +
53950 + .uleb128 1 // abbrev 1
53951 + .int .Ldebug_line0 // DW_AT_stmt_list
53952 + .int .Letext0 // DW_AT_high_pc
53953 + .int .Ltext0 // DW_AT_low_pc
53954 +
53955 +.Ledebug_info0:
53956 +
53957 + .section .debug_abbrev
53958 + .uleb128 0x01
53959 + .uleb128 0x11 // DW_TAG_compile_unit
53960 + .byte 0 // DW_CHILDREN_no
53961 + .uleb128 0x10, 0x6 // DW_AT_stmt_list
53962 + .uleb128 0x12, 0x1 // DW_AT_high_pc
53963 + .uleb128 0x11, 0x1 // DW_AT_low_pc
53964 + .uleb128 0, 0
53965 +
53966 + .byte 0
53967 --- /dev/null
53968 +++ b/gas/testsuite/gas/avr32/fpinsn.d
53969 @@ -0,0 +1,271 @@
53970 +#as:
53971 +#objdump: -dr
53972 +#name: fpinsn
53973 +
53974 +.*: +file format .*
53975 +
53976 +Disassembly of section \.text:
53977 +
53978 +[0-9a-f]* <fadd_s>:
53979 + *[0-9a-f]*: e1 a2 0f ff cop cp0,cr15,cr15,cr15,0x4
53980 + *[0-9a-f]*: e1 a2 00 00 cop cp0,cr0,cr0,cr0,0x4
53981 + *[0-9a-f]*: e1 a2 00 ff cop cp0,cr0,cr15,cr15,0x4
53982 + *[0-9a-f]*: e1 a2 0f 0f cop cp0,cr15,cr0,cr15,0x4
53983 + *[0-9a-f]*: e1 a2 0f f0 cop cp0,cr15,cr15,cr0,0x4
53984 + *[0-9a-f]*: e1 a2 07 88 cop cp0,cr7,cr8,cr8,0x4
53985 + *[0-9a-f]*: e1 a2 08 78 cop cp0,cr8,cr7,cr8,0x4
53986 + *[0-9a-f]*: e1 a2 08 87 cop cp0,cr8,cr8,cr7,0x4
53987 +
53988 +[0-9a-f]* <fsub_s>:
53989 + *[0-9a-f]*: e1 a2 1f ff cop cp0,cr15,cr15,cr15,0x5
53990 + *[0-9a-f]*: e1 a2 10 00 cop cp0,cr0,cr0,cr0,0x5
53991 + *[0-9a-f]*: e1 a2 10 ff cop cp0,cr0,cr15,cr15,0x5
53992 + *[0-9a-f]*: e1 a2 1f 0f cop cp0,cr15,cr0,cr15,0x5
53993 + *[0-9a-f]*: e1 a2 1f f0 cop cp0,cr15,cr15,cr0,0x5
53994 + *[0-9a-f]*: e1 a2 17 88 cop cp0,cr7,cr8,cr8,0x5
53995 + *[0-9a-f]*: e1 a2 18 78 cop cp0,cr8,cr7,cr8,0x5
53996 + *[0-9a-f]*: e1 a2 18 87 cop cp0,cr8,cr8,cr7,0x5
53997 +
53998 +[0-9a-f]* <fmac_s>:
53999 + *[0-9a-f]*: e1 a0 0f ff cop cp0,cr15,cr15,cr15,0x0
54000 + *[0-9a-f]*: e1 a0 00 00 cop cp0,cr0,cr0,cr0,0x0
54001 + *[0-9a-f]*: e1 a0 00 ff cop cp0,cr0,cr15,cr15,0x0
54002 + *[0-9a-f]*: e1 a0 0f 0f cop cp0,cr15,cr0,cr15,0x0
54003 + *[0-9a-f]*: e1 a0 0f f0 cop cp0,cr15,cr15,cr0,0x0
54004 + *[0-9a-f]*: e1 a0 07 88 cop cp0,cr7,cr8,cr8,0x0
54005 + *[0-9a-f]*: e1 a0 08 78 cop cp0,cr8,cr7,cr8,0x0
54006 + *[0-9a-f]*: e1 a0 08 87 cop cp0,cr8,cr8,cr7,0x0
54007 +
54008 +[0-9a-f]* <fnmac_s>:
54009 + *[0-9a-f]*: e1 a0 1f ff cop cp0,cr15,cr15,cr15,0x1
54010 + *[0-9a-f]*: e1 a0 10 00 cop cp0,cr0,cr0,cr0,0x1
54011 + *[0-9a-f]*: e1 a0 10 ff cop cp0,cr0,cr15,cr15,0x1
54012 + *[0-9a-f]*: e1 a0 1f 0f cop cp0,cr15,cr0,cr15,0x1
54013 + *[0-9a-f]*: e1 a0 1f f0 cop cp0,cr15,cr15,cr0,0x1
54014 + *[0-9a-f]*: e1 a0 17 88 cop cp0,cr7,cr8,cr8,0x1
54015 + *[0-9a-f]*: e1 a0 18 78 cop cp0,cr8,cr7,cr8,0x1
54016 + *[0-9a-f]*: e1 a0 18 87 cop cp0,cr8,cr8,cr7,0x1
54017 +
54018 +[0-9a-f]* <fmsc_s>:
54019 + *[0-9a-f]*: e1 a1 0f ff cop cp0,cr15,cr15,cr15,0x2
54020 + *[0-9a-f]*: e1 a1 00 00 cop cp0,cr0,cr0,cr0,0x2
54021 + *[0-9a-f]*: e1 a1 00 ff cop cp0,cr0,cr15,cr15,0x2
54022 + *[0-9a-f]*: e1 a1 0f 0f cop cp0,cr15,cr0,cr15,0x2
54023 + *[0-9a-f]*: e1 a1 0f f0 cop cp0,cr15,cr15,cr0,0x2
54024 + *[0-9a-f]*: e1 a1 07 88 cop cp0,cr7,cr8,cr8,0x2
54025 + *[0-9a-f]*: e1 a1 08 78 cop cp0,cr8,cr7,cr8,0x2
54026 + *[0-9a-f]*: e1 a1 08 87 cop cp0,cr8,cr8,cr7,0x2
54027 +
54028 +[0-9a-f]* <fnmsc_s>:
54029 + *[0-9a-f]*: e1 a1 1f ff cop cp0,cr15,cr15,cr15,0x3
54030 + *[0-9a-f]*: e1 a1 10 00 cop cp0,cr0,cr0,cr0,0x3
54031 + *[0-9a-f]*: e1 a1 10 ff cop cp0,cr0,cr15,cr15,0x3
54032 + *[0-9a-f]*: e1 a1 1f 0f cop cp0,cr15,cr0,cr15,0x3
54033 + *[0-9a-f]*: e1 a1 1f f0 cop cp0,cr15,cr15,cr0,0x3
54034 + *[0-9a-f]*: e1 a1 17 88 cop cp0,cr7,cr8,cr8,0x3
54035 + *[0-9a-f]*: e1 a1 18 78 cop cp0,cr8,cr7,cr8,0x3
54036 + *[0-9a-f]*: e1 a1 18 87 cop cp0,cr8,cr8,cr7,0x3
54037 +
54038 +[0-9a-f]* <fmul_s>:
54039 + *[0-9a-f]*: e1 a3 0f ff cop cp0,cr15,cr15,cr15,0x6
54040 + *[0-9a-f]*: e1 a3 00 00 cop cp0,cr0,cr0,cr0,0x6
54041 + *[0-9a-f]*: e1 a3 00 ff cop cp0,cr0,cr15,cr15,0x6
54042 + *[0-9a-f]*: e1 a3 0f 0f cop cp0,cr15,cr0,cr15,0x6
54043 + *[0-9a-f]*: e1 a3 0f f0 cop cp0,cr15,cr15,cr0,0x6
54044 + *[0-9a-f]*: e1 a3 07 88 cop cp0,cr7,cr8,cr8,0x6
54045 + *[0-9a-f]*: e1 a3 08 78 cop cp0,cr8,cr7,cr8,0x6
54046 + *[0-9a-f]*: e1 a3 08 87 cop cp0,cr8,cr8,cr7,0x6
54047 +
54048 +[0-9a-f]* <fnmul_s>:
54049 + *[0-9a-f]*: e1 a3 1f ff cop cp0,cr15,cr15,cr15,0x7
54050 + *[0-9a-f]*: e1 a3 10 00 cop cp0,cr0,cr0,cr0,0x7
54051 + *[0-9a-f]*: e1 a3 10 ff cop cp0,cr0,cr15,cr15,0x7
54052 + *[0-9a-f]*: e1 a3 1f 0f cop cp0,cr15,cr0,cr15,0x7
54053 + *[0-9a-f]*: e1 a3 1f f0 cop cp0,cr15,cr15,cr0,0x7
54054 + *[0-9a-f]*: e1 a3 17 88 cop cp0,cr7,cr8,cr8,0x7
54055 + *[0-9a-f]*: e1 a3 18 78 cop cp0,cr8,cr7,cr8,0x7
54056 + *[0-9a-f]*: e1 a3 18 87 cop cp0,cr8,cr8,cr7,0x7
54057 +
54058 +[0-9a-f]* <fneg_s>:
54059 + *[0-9a-f]*: e1 a4 0f f0 cop cp0,cr15,cr15,cr0,0x8
54060 + *[0-9a-f]*: e1 a4 00 00 cop cp0,cr0,cr0,cr0,0x8
54061 + *[0-9a-f]*: e1 a4 00 f0 cop cp0,cr0,cr15,cr0,0x8
54062 + *[0-9a-f]*: e1 a4 0f 00 cop cp0,cr15,cr0,cr0,0x8
54063 + *[0-9a-f]*: e1 a4 07 80 cop cp0,cr7,cr8,cr0,0x8
54064 + *[0-9a-f]*: e1 a4 08 70 cop cp0,cr8,cr7,cr0,0x8
54065 +
54066 +[0-9a-f]* <fabs_s>:
54067 + *[0-9a-f]*: e1 a4 1f f0 cop cp0,cr15,cr15,cr0,0x9
54068 + *[0-9a-f]*: e1 a4 10 00 cop cp0,cr0,cr0,cr0,0x9
54069 + *[0-9a-f]*: e1 a4 10 f0 cop cp0,cr0,cr15,cr0,0x9
54070 + *[0-9a-f]*: e1 a4 1f 00 cop cp0,cr15,cr0,cr0,0x9
54071 + *[0-9a-f]*: e1 a4 17 80 cop cp0,cr7,cr8,cr0,0x9
54072 + *[0-9a-f]*: e1 a4 18 70 cop cp0,cr8,cr7,cr0,0x9
54073 +
54074 +[0-9a-f]* <fcmp_s>:
54075 + *[0-9a-f]*: e1 a6 10 ff cop cp0,cr0,cr15,cr15,0xd
54076 + *[0-9a-f]*: e1 a6 10 00 cop cp0,cr0,cr0,cr0,0xd
54077 + *[0-9a-f]*: e1 a6 10 0f cop cp0,cr0,cr0,cr15,0xd
54078 + *[0-9a-f]*: e1 a6 10 f0 cop cp0,cr0,cr15,cr0,0xd
54079 + *[0-9a-f]*: e1 a6 10 78 cop cp0,cr0,cr7,cr8,0xd
54080 + *[0-9a-f]*: e1 a6 10 87 cop cp0,cr0,cr8,cr7,0xd
54081 +
54082 +[0-9a-f]* <fadd_d>:
54083 + *[0-9a-f]*: e5 a2 0e ee cop cp0,cr14,cr14,cr14,0x44
54084 + *[0-9a-f]*: e5 a2 00 00 cop cp0,cr0,cr0,cr0,0x44
54085 + *[0-9a-f]*: e5 a2 00 ee cop cp0,cr0,cr14,cr14,0x44
54086 + *[0-9a-f]*: e5 a2 0e 0e cop cp0,cr14,cr0,cr14,0x44
54087 + *[0-9a-f]*: e5 a2 0e e0 cop cp0,cr14,cr14,cr0,0x44
54088 + *[0-9a-f]*: e5 a2 06 88 cop cp0,cr6,cr8,cr8,0x44
54089 + *[0-9a-f]*: e5 a2 08 68 cop cp0,cr8,cr6,cr8,0x44
54090 + *[0-9a-f]*: e5 a2 08 86 cop cp0,cr8,cr8,cr6,0x44
54091 +
54092 +[0-9a-f]* <fsub_d>:
54093 + *[0-9a-f]*: e5 a2 1e ee cop cp0,cr14,cr14,cr14,0x45
54094 + *[0-9a-f]*: e5 a2 10 00 cop cp0,cr0,cr0,cr0,0x45
54095 + *[0-9a-f]*: e5 a2 10 ee cop cp0,cr0,cr14,cr14,0x45
54096 + *[0-9a-f]*: e5 a2 1e 0e cop cp0,cr14,cr0,cr14,0x45
54097 + *[0-9a-f]*: e5 a2 1e e0 cop cp0,cr14,cr14,cr0,0x45
54098 + *[0-9a-f]*: e5 a2 16 88 cop cp0,cr6,cr8,cr8,0x45
54099 + *[0-9a-f]*: e5 a2 18 68 cop cp0,cr8,cr6,cr8,0x45
54100 + *[0-9a-f]*: e5 a2 18 86 cop cp0,cr8,cr8,cr6,0x45
54101 +
54102 +[0-9a-f]* <fmac_d>:
54103 + *[0-9a-f]*: e5 a0 0e ee cop cp0,cr14,cr14,cr14,0x40
54104 + *[0-9a-f]*: e5 a0 00 00 cop cp0,cr0,cr0,cr0,0x40
54105 + *[0-9a-f]*: e5 a0 00 ee cop cp0,cr0,cr14,cr14,0x40
54106 + *[0-9a-f]*: e5 a0 0e 0e cop cp0,cr14,cr0,cr14,0x40
54107 + *[0-9a-f]*: e5 a0 0e e0 cop cp0,cr14,cr14,cr0,0x40
54108 + *[0-9a-f]*: e5 a0 06 88 cop cp0,cr6,cr8,cr8,0x40
54109 + *[0-9a-f]*: e5 a0 08 68 cop cp0,cr8,cr6,cr8,0x40
54110 + *[0-9a-f]*: e5 a0 08 86 cop cp0,cr8,cr8,cr6,0x40
54111 +
54112 +[0-9a-f]* <fnmac_d>:
54113 + *[0-9a-f]*: e5 a0 1e ee cop cp0,cr14,cr14,cr14,0x41
54114 + *[0-9a-f]*: e5 a0 10 00 cop cp0,cr0,cr0,cr0,0x41
54115 + *[0-9a-f]*: e5 a0 10 ee cop cp0,cr0,cr14,cr14,0x41
54116 + *[0-9a-f]*: e5 a0 1e 0e cop cp0,cr14,cr0,cr14,0x41
54117 + *[0-9a-f]*: e5 a0 1e e0 cop cp0,cr14,cr14,cr0,0x41
54118 + *[0-9a-f]*: e5 a0 16 88 cop cp0,cr6,cr8,cr8,0x41
54119 + *[0-9a-f]*: e5 a0 18 68 cop cp0,cr8,cr6,cr8,0x41
54120 + *[0-9a-f]*: e5 a0 18 86 cop cp0,cr8,cr8,cr6,0x41
54121 +
54122 +[0-9a-f]* <fmsc_d>:
54123 + *[0-9a-f]*: e5 a1 0e ee cop cp0,cr14,cr14,cr14,0x42
54124 + *[0-9a-f]*: e5 a1 00 00 cop cp0,cr0,cr0,cr0,0x42
54125 + *[0-9a-f]*: e5 a1 00 ee cop cp0,cr0,cr14,cr14,0x42
54126 + *[0-9a-f]*: e5 a1 0e 0e cop cp0,cr14,cr0,cr14,0x42
54127 + *[0-9a-f]*: e5 a1 0e e0 cop cp0,cr14,cr14,cr0,0x42
54128 + *[0-9a-f]*: e5 a1 06 88 cop cp0,cr6,cr8,cr8,0x42
54129 + *[0-9a-f]*: e5 a1 08 68 cop cp0,cr8,cr6,cr8,0x42
54130 + *[0-9a-f]*: e5 a1 08 86 cop cp0,cr8,cr8,cr6,0x42
54131 +
54132 +[0-9a-f]* <fnmsc_d>:
54133 + *[0-9a-f]*: e5 a1 1e ee cop cp0,cr14,cr14,cr14,0x43
54134 + *[0-9a-f]*: e5 a1 10 00 cop cp0,cr0,cr0,cr0,0x43
54135 + *[0-9a-f]*: e5 a1 10 ee cop cp0,cr0,cr14,cr14,0x43
54136 + *[0-9a-f]*: e5 a1 1e 0e cop cp0,cr14,cr0,cr14,0x43
54137 + *[0-9a-f]*: e5 a1 1e e0 cop cp0,cr14,cr14,cr0,0x43
54138 + *[0-9a-f]*: e5 a1 16 88 cop cp0,cr6,cr8,cr8,0x43
54139 + *[0-9a-f]*: e5 a1 18 68 cop cp0,cr8,cr6,cr8,0x43
54140 + *[0-9a-f]*: e5 a1 18 86 cop cp0,cr8,cr8,cr6,0x43
54141 +
54142 +[0-9a-f]* <fmul_d>:
54143 + *[0-9a-f]*: e5 a3 0e ee cop cp0,cr14,cr14,cr14,0x46
54144 + *[0-9a-f]*: e5 a3 00 00 cop cp0,cr0,cr0,cr0,0x46
54145 + *[0-9a-f]*: e5 a3 00 ee cop cp0,cr0,cr14,cr14,0x46
54146 + *[0-9a-f]*: e5 a3 0e 0e cop cp0,cr14,cr0,cr14,0x46
54147 + *[0-9a-f]*: e5 a3 0e e0 cop cp0,cr14,cr14,cr0,0x46
54148 + *[0-9a-f]*: e5 a3 06 88 cop cp0,cr6,cr8,cr8,0x46
54149 + *[0-9a-f]*: e5 a3 08 68 cop cp0,cr8,cr6,cr8,0x46
54150 + *[0-9a-f]*: e5 a3 08 86 cop cp0,cr8,cr8,cr6,0x46
54151 +
54152 +[0-9a-f]* <fnmul_d>:
54153 + *[0-9a-f]*: e5 a3 1e ee cop cp0,cr14,cr14,cr14,0x47
54154 + *[0-9a-f]*: e5 a3 10 00 cop cp0,cr0,cr0,cr0,0x47
54155 + *[0-9a-f]*: e5 a3 10 ee cop cp0,cr0,cr14,cr14,0x47
54156 + *[0-9a-f]*: e5 a3 1e 0e cop cp0,cr14,cr0,cr14,0x47
54157 + *[0-9a-f]*: e5 a3 1e e0 cop cp0,cr14,cr14,cr0,0x47
54158 + *[0-9a-f]*: e5 a3 16 88 cop cp0,cr6,cr8,cr8,0x47
54159 + *[0-9a-f]*: e5 a3 18 68 cop cp0,cr8,cr6,cr8,0x47
54160 + *[0-9a-f]*: e5 a3 18 86 cop cp0,cr8,cr8,cr6,0x47
54161 +
54162 +[0-9a-f]* <fneg_d>:
54163 + *[0-9a-f]*: e5 a4 0e e0 cop cp0,cr14,cr14,cr0,0x48
54164 + *[0-9a-f]*: e5 a4 00 00 cop cp0,cr0,cr0,cr0,0x48
54165 + *[0-9a-f]*: e5 a4 00 e0 cop cp0,cr0,cr14,cr0,0x48
54166 + *[0-9a-f]*: e5 a4 0e 00 cop cp0,cr14,cr0,cr0,0x48
54167 + *[0-9a-f]*: e5 a4 06 80 cop cp0,cr6,cr8,cr0,0x48
54168 + *[0-9a-f]*: e5 a4 08 60 cop cp0,cr8,cr6,cr0,0x48
54169 +
54170 +[0-9a-f]* <fabs_d>:
54171 + *[0-9a-f]*: e5 a4 1e e0 cop cp0,cr14,cr14,cr0,0x49
54172 + *[0-9a-f]*: e5 a4 10 00 cop cp0,cr0,cr0,cr0,0x49
54173 + *[0-9a-f]*: e5 a4 10 e0 cop cp0,cr0,cr14,cr0,0x49
54174 + *[0-9a-f]*: e5 a4 1e 00 cop cp0,cr14,cr0,cr0,0x49
54175 + *[0-9a-f]*: e5 a4 16 80 cop cp0,cr6,cr8,cr0,0x49
54176 + *[0-9a-f]*: e5 a4 18 60 cop cp0,cr8,cr6,cr0,0x49
54177 +
54178 +[0-9a-f]* <fcmp_d>:
54179 + *[0-9a-f]*: e5 a6 10 ee cop cp0,cr0,cr14,cr14,0x4d
54180 + *[0-9a-f]*: e5 a6 10 00 cop cp0,cr0,cr0,cr0,0x4d
54181 + *[0-9a-f]*: e5 a6 10 0e cop cp0,cr0,cr0,cr14,0x4d
54182 + *[0-9a-f]*: e5 a6 10 e0 cop cp0,cr0,cr14,cr0,0x4d
54183 + *[0-9a-f]*: e5 a6 10 68 cop cp0,cr0,cr6,cr8,0x4d
54184 + *[0-9a-f]*: e5 a6 10 86 cop cp0,cr0,cr8,cr6,0x4d
54185 +
54186 +[0-9a-f]* <fmov_s>:
54187 + *[0-9a-f]*: e1 a5 0f f0 cop cp0,cr15,cr15,cr0,0xa
54188 + *[0-9a-f]*: e1 a5 00 00 cop cp0,cr0,cr0,cr0,0xa
54189 + *[0-9a-f]*: e1 a5 0f 00 cop cp0,cr15,cr0,cr0,0xa
54190 + *[0-9a-f]*: e1 a5 00 f0 cop cp0,cr0,cr15,cr0,0xa
54191 + *[0-9a-f]*: e1 a5 08 70 cop cp0,cr8,cr7,cr0,0xa
54192 + *[0-9a-f]*: e1 a5 07 80 cop cp0,cr7,cr8,cr0,0xa
54193 + *[0-9a-f]*: ef af 0f 00 mvcr.w cp0,pc,cr15
54194 + *[0-9a-f]*: ef a0 00 00 mvcr.w cp0,r0,cr0
54195 + *[0-9a-f]*: ef af 00 00 mvcr.w cp0,pc,cr0
54196 + *[0-9a-f]*: ef a0 0f 00 mvcr.w cp0,r0,cr15
54197 + *[0-9a-f]*: ef a8 07 00 mvcr.w cp0,r8,cr7
54198 + *[0-9a-f]*: ef a7 08 00 mvcr.w cp0,r7,cr8
54199 + *[0-9a-f]*: ef af 0f 20 mvrc.w cp0,cr15,pc
54200 + *[0-9a-f]*: ef a0 00 20 mvrc.w cp0,cr0,r0
54201 + *[0-9a-f]*: ef a0 0f 20 mvrc.w cp0,cr15,r0
54202 + *[0-9a-f]*: ef af 00 20 mvrc.w cp0,cr0,pc
54203 + *[0-9a-f]*: ef a7 08 20 mvrc.w cp0,cr8,r7
54204 + *[0-9a-f]*: ef a8 07 20 mvrc.w cp0,cr7,r8
54205 +
54206 +[0-9a-f]* <fmov_d>:
54207 + *[0-9a-f]*: e5 a5 0e e0 cop cp0,cr14,cr14,cr0,0x4a
54208 + *[0-9a-f]*: e5 a5 00 00 cop cp0,cr0,cr0,cr0,0x4a
54209 + *[0-9a-f]*: e5 a5 0e 00 cop cp0,cr14,cr0,cr0,0x4a
54210 + *[0-9a-f]*: e5 a5 00 e0 cop cp0,cr0,cr14,cr0,0x4a
54211 + *[0-9a-f]*: e5 a5 08 60 cop cp0,cr8,cr6,cr0,0x4a
54212 + *[0-9a-f]*: e5 a5 06 80 cop cp0,cr6,cr8,cr0,0x4a
54213 + *[0-9a-f]*: ef ae 0e 10 mvcr.d cp0,lr,cr14
54214 + *[0-9a-f]*: ef a0 00 10 mvcr.d cp0,r0,cr0
54215 + *[0-9a-f]*: ef ae 00 10 mvcr.d cp0,lr,cr0
54216 + *[0-9a-f]*: ef a0 0e 10 mvcr.d cp0,r0,cr14
54217 + *[0-9a-f]*: ef a8 06 10 mvcr.d cp0,r8,cr6
54218 + *[0-9a-f]*: ef a6 08 10 mvcr.d cp0,r6,cr8
54219 + *[0-9a-f]*: ef ae 0e 30 mvrc.d cp0,cr14,lr
54220 + *[0-9a-f]*: ef a0 00 30 mvrc.d cp0,cr0,r0
54221 + *[0-9a-f]*: ef a0 0e 30 mvrc.d cp0,cr14,r0
54222 + *[0-9a-f]*: ef ae 00 30 mvrc.d cp0,cr0,lr
54223 + *[0-9a-f]*: ef a6 08 30 mvrc.d cp0,cr8,r6
54224 + *[0-9a-f]*: ef a8 06 30 mvrc.d cp0,cr6,r8
54225 +
54226 +[0-9a-f]* <fcasts_d>:
54227 + *[0-9a-f]*: e1 a7 1f e0 cop cp0,cr15,cr14,cr0,0xf
54228 + *[0-9a-f]*: e1 a7 10 00 cop cp0,cr0,cr0,cr0,0xf
54229 + *[0-9a-f]*: e1 a7 1f 00 cop cp0,cr15,cr0,cr0,0xf
54230 + *[0-9a-f]*: e1 a7 10 e0 cop cp0,cr0,cr14,cr0,0xf
54231 + *[0-9a-f]*: e1 a7 18 60 cop cp0,cr8,cr6,cr0,0xf
54232 + *[0-9a-f]*: e1 a7 17 80 cop cp0,cr7,cr8,cr0,0xf
54233 +
54234 +[0-9a-f]* <fcastd_s>:
54235 + *[0-9a-f]*: e1 a8 0e f0 cop cp0,cr14,cr15,cr0,0x10
54236 + *[0-9a-f]*: e1 a8 00 00 cop cp0,cr0,cr0,cr0,0x10
54237 + *[0-9a-f]*: e1 a8 0e 00 cop cp0,cr14,cr0,cr0,0x10
54238 + *[0-9a-f]*: e1 a8 00 f0 cop cp0,cr0,cr15,cr0,0x10
54239 + *[0-9a-f]*: e1 a8 08 70 cop cp0,cr8,cr7,cr0,0x10
54240 + *[0-9a-f]*: e1 a8 06 80 cop cp0,cr6,cr8,cr0,0x10
54241 --- /dev/null
54242 +++ b/gas/testsuite/gas/avr32/fpinsn.s
54243 @@ -0,0 +1,266 @@
54244 +
54245 + .text
54246 + .global fadd_s
54247 +fadd_s:
54248 + fadd.s fr15, fr15, fr15
54249 + fadd.s fr0, fr0, fr0
54250 + fadd.s fr0, fr15, fr15
54251 + fadd.s fr15, fr0, fr15
54252 + fadd.s fr15, fr15, fr0
54253 + fadd.s fr7, fr8, fr8
54254 + fadd.s fr8, fr7, fr8
54255 + fadd.s fr8, fr8, fr7
54256 + .global fsub_s
54257 +fsub_s:
54258 + fsub.s fr15, fr15, fr15
54259 + fsub.s fr0, fr0, fr0
54260 + fsub.s fr0, fr15, fr15
54261 + fsub.s fr15, fr0, fr15
54262 + fsub.s fr15, fr15, fr0
54263 + fsub.s fr7, fr8, fr8
54264 + fsub.s fr8, fr7, fr8
54265 + fsub.s fr8, fr8, fr7
54266 + .global fmac_s
54267 +fmac_s:
54268 + fmac.s fr15, fr15, fr15
54269 + fmac.s fr0, fr0, fr0
54270 + fmac.s fr0, fr15, fr15
54271 + fmac.s fr15, fr0, fr15
54272 + fmac.s fr15, fr15, fr0
54273 + fmac.s fr7, fr8, fr8
54274 + fmac.s fr8, fr7, fr8
54275 + fmac.s fr8, fr8, fr7
54276 + .global fnmac_s
54277 +fnmac_s:
54278 + fnmac.s fr15, fr15, fr15
54279 + fnmac.s fr0, fr0, fr0
54280 + fnmac.s fr0, fr15, fr15
54281 + fnmac.s fr15, fr0, fr15
54282 + fnmac.s fr15, fr15, fr0
54283 + fnmac.s fr7, fr8, fr8
54284 + fnmac.s fr8, fr7, fr8
54285 + fnmac.s fr8, fr8, fr7
54286 + .global fmsc_s
54287 +fmsc_s:
54288 + fmsc.s fr15, fr15, fr15
54289 + fmsc.s fr0, fr0, fr0
54290 + fmsc.s fr0, fr15, fr15
54291 + fmsc.s fr15, fr0, fr15
54292 + fmsc.s fr15, fr15, fr0
54293 + fmsc.s fr7, fr8, fr8
54294 + fmsc.s fr8, fr7, fr8
54295 + fmsc.s fr8, fr8, fr7
54296 + .global fnmsc_s
54297 +fnmsc_s:
54298 + fnmsc.s fr15, fr15, fr15
54299 + fnmsc.s fr0, fr0, fr0
54300 + fnmsc.s fr0, fr15, fr15
54301 + fnmsc.s fr15, fr0, fr15
54302 + fnmsc.s fr15, fr15, fr0
54303 + fnmsc.s fr7, fr8, fr8
54304 + fnmsc.s fr8, fr7, fr8
54305 + fnmsc.s fr8, fr8, fr7
54306 + .global fmul_s
54307 +fmul_s:
54308 + fmul.s fr15, fr15, fr15
54309 + fmul.s fr0, fr0, fr0
54310 + fmul.s fr0, fr15, fr15
54311 + fmul.s fr15, fr0, fr15
54312 + fmul.s fr15, fr15, fr0
54313 + fmul.s fr7, fr8, fr8
54314 + fmul.s fr8, fr7, fr8
54315 + fmul.s fr8, fr8, fr7
54316 + .global fnmul_s
54317 +fnmul_s:
54318 + fnmul.s fr15, fr15, fr15
54319 + fnmul.s fr0, fr0, fr0
54320 + fnmul.s fr0, fr15, fr15
54321 + fnmul.s fr15, fr0, fr15
54322 + fnmul.s fr15, fr15, fr0
54323 + fnmul.s fr7, fr8, fr8
54324 + fnmul.s fr8, fr7, fr8
54325 + fnmul.s fr8, fr8, fr7
54326 + .global fneg_s
54327 +fneg_s:
54328 + fneg.s fr15, fr15
54329 + fneg.s fr0, fr0
54330 + fneg.s fr0, fr15
54331 + fneg.s fr15, fr0
54332 + fneg.s fr7, fr8
54333 + fneg.s fr8, fr7
54334 + .global fabs_s
54335 +fabs_s:
54336 + fabs.s fr15, fr15
54337 + fabs.s fr0, fr0
54338 + fabs.s fr0, fr15
54339 + fabs.s fr15, fr0
54340 + fabs.s fr7, fr8
54341 + fabs.s fr8, fr7
54342 + .global fcmp_s
54343 +fcmp_s:
54344 + fcmp.s fr15, fr15
54345 + fcmp.s fr0, fr0
54346 + fcmp.s fr0, fr15
54347 + fcmp.s fr15, fr0
54348 + fcmp.s fr7, fr8
54349 + fcmp.s fr8, fr7
54350 + .global fadd_d
54351 +fadd_d:
54352 + fadd.d fr14, fr14, fr14
54353 + fadd.d fr0, fr0, fr0
54354 + fadd.d fr0, fr14, fr14
54355 + fadd.d fr14, fr0, fr14
54356 + fadd.d fr14, fr14, fr0
54357 + fadd.d fr6, fr8, fr8
54358 + fadd.d fr8, fr6, fr8
54359 + fadd.d fr8, fr8, fr6
54360 + .global fsub_d
54361 +fsub_d:
54362 + fsub.d fr14, fr14, fr14
54363 + fsub.d fr0, fr0, fr0
54364 + fsub.d fr0, fr14, fr14
54365 + fsub.d fr14, fr0, fr14
54366 + fsub.d fr14, fr14, fr0
54367 + fsub.d fr6, fr8, fr8
54368 + fsub.d fr8, fr6, fr8
54369 + fsub.d fr8, fr8, fr6
54370 + .global fmac_d
54371 +fmac_d:
54372 + fmac.d fr14, fr14, fr14
54373 + fmac.d fr0, fr0, fr0
54374 + fmac.d fr0, fr14, fr14
54375 + fmac.d fr14, fr0, fr14
54376 + fmac.d fr14, fr14, fr0
54377 + fmac.d fr6, fr8, fr8
54378 + fmac.d fr8, fr6, fr8
54379 + fmac.d fr8, fr8, fr6
54380 + .global fnmac_d
54381 +fnmac_d:
54382 + fnmac.d fr14, fr14, fr14
54383 + fnmac.d fr0, fr0, fr0
54384 + fnmac.d fr0, fr14, fr14
54385 + fnmac.d fr14, fr0, fr14
54386 + fnmac.d fr14, fr14, fr0
54387 + fnmac.d fr6, fr8, fr8
54388 + fnmac.d fr8, fr6, fr8
54389 + fnmac.d fr8, fr8, fr6
54390 + .global fmsc_d
54391 +fmsc_d:
54392 + fmsc.d fr14, fr14, fr14
54393 + fmsc.d fr0, fr0, fr0
54394 + fmsc.d fr0, fr14, fr14
54395 + fmsc.d fr14, fr0, fr14
54396 + fmsc.d fr14, fr14, fr0
54397 + fmsc.d fr6, fr8, fr8
54398 + fmsc.d fr8, fr6, fr8
54399 + fmsc.d fr8, fr8, fr6
54400 + .global fnmsc_d
54401 +fnmsc_d:
54402 + fnmsc.d fr14, fr14, fr14
54403 + fnmsc.d fr0, fr0, fr0
54404 + fnmsc.d fr0, fr14, fr14
54405 + fnmsc.d fr14, fr0, fr14
54406 + fnmsc.d fr14, fr14, fr0
54407 + fnmsc.d fr6, fr8, fr8
54408 + fnmsc.d fr8, fr6, fr8
54409 + fnmsc.d fr8, fr8, fr6
54410 + .global fmul_d
54411 +fmul_d:
54412 + fmul.d fr14, fr14, fr14
54413 + fmul.d fr0, fr0, fr0
54414 + fmul.d fr0, fr14, fr14
54415 + fmul.d fr14, fr0, fr14
54416 + fmul.d fr14, fr14, fr0
54417 + fmul.d fr6, fr8, fr8
54418 + fmul.d fr8, fr6, fr8
54419 + fmul.d fr8, fr8, fr6
54420 + .global fnmul_d
54421 +fnmul_d:
54422 + fnmul.d fr14, fr14, fr14
54423 + fnmul.d fr0, fr0, fr0
54424 + fnmul.d fr0, fr14, fr14
54425 + fnmul.d fr14, fr0, fr14
54426 + fnmul.d fr14, fr14, fr0
54427 + fnmul.d fr6, fr8, fr8
54428 + fnmul.d fr8, fr6, fr8
54429 + fnmul.d fr8, fr8, fr6
54430 + .global fneg_d
54431 +fneg_d:
54432 + fneg.d fr14, fr14
54433 + fneg.d fr0, fr0
54434 + fneg.d fr0, fr14
54435 + fneg.d fr14, fr0
54436 + fneg.d fr6, fr8
54437 + fneg.d fr8, fr6
54438 + .global fabs_d
54439 +fabs_d:
54440 + fabs.d fr14, fr14
54441 + fabs.d fr0, fr0
54442 + fabs.d fr0, fr14
54443 + fabs.d fr14, fr0
54444 + fabs.d fr6, fr8
54445 + fabs.d fr8, fr6
54446 + .global fcmp_d
54447 +fcmp_d:
54448 + fcmp.d fr14, fr14
54449 + fcmp.d fr0, fr0
54450 + fcmp.d fr0, fr14
54451 + fcmp.d fr14, fr0
54452 + fcmp.d fr6, fr8
54453 + fcmp.d fr8, fr6
54454 + .global fmov_s
54455 +fmov_s:
54456 + fmov.s fr15, fr15
54457 + fmov.s fr0, fr0
54458 + fmov.s fr15, fr0
54459 + fmov.s fr0, fr15
54460 + fmov.s fr8, fr7
54461 + fmov.s fr7, fr8
54462 + fmov.s pc, fr15
54463 + fmov.s r0, fr0
54464 + fmov.s pc, fr0
54465 + fmov.s r0, fr15
54466 + fmov.s r8, fr7
54467 + fmov.s r7, fr8
54468 + fmov.s fr15, pc
54469 + fmov.s fr0, r0
54470 + fmov.s fr15, r0
54471 + fmov.s fr0, pc
54472 + fmov.s fr8, r7
54473 + fmov.s fr7, r8
54474 + .global fmov_d
54475 +fmov_d:
54476 + fmov.d fr14, fr14
54477 + fmov.d fr0, fr0
54478 + fmov.d fr14, fr0
54479 + fmov.d fr0, fr14
54480 + fmov.d fr8, fr6
54481 + fmov.d fr6, fr8
54482 + fmov.d lr, fr14
54483 + fmov.d r0, fr0
54484 + fmov.d lr, fr0
54485 + fmov.d r0, fr14
54486 + fmov.d r8, fr6
54487 + fmov.d r6, fr8
54488 + fmov.d fr14, lr
54489 + fmov.d fr0, r0
54490 + fmov.d fr14, r0
54491 + fmov.d fr0, lr
54492 + fmov.d fr8, r6
54493 + fmov.d fr6, r8
54494 + .global fcasts_d
54495 +fcasts_d:
54496 + fcasts.d fr15, fr14
54497 + fcasts.d fr0, fr0
54498 + fcasts.d fr15, fr0
54499 + fcasts.d fr0, fr14
54500 + fcasts.d fr8, fr6
54501 + fcasts.d fr7, fr8
54502 + .global fcastd_s
54503 +fcastd_s:
54504 + fcastd.s fr14, fr15
54505 + fcastd.s fr0, fr0
54506 + fcastd.s fr14, fr0
54507 + fcastd.s fr0, fr15
54508 + fcastd.s fr8, fr7
54509 + fcastd.s fr6, fr8
54510 --- /dev/null
54511 +++ b/gas/testsuite/gas/avr32/hwrd-lwrd.d
54512 @@ -0,0 +1,47 @@
54513 +#as:
54514 +#objdump: -dr
54515 +#name: hwrd-lwrd
54516 +
54517 +.*: +file format .*
54518 +
54519 +Disassembly of section \.text:
54520 +
54521 +00000000 <test_hwrd>:
54522 + 0: e0 60 87 65 mov r0,34661
54523 + 4: e0 60 12 34 mov r0,4660
54524 + 8: e0 60 00 00 mov r0,0
54525 + 8: R_AVR32_HI16 \.text\+0x60
54526 + c: e0 60 00 00 mov r0,0
54527 + c: R_AVR32_HI16 extsym1
54528 + 10: ea 10 87 65 orh r0,0x8765
54529 + 14: ea 10 12 34 orh r0,0x1234
54530 + 18: ea 10 00 00 orh r0,0x0
54531 + 18: R_AVR32_HI16 \.text\+0x60
54532 + 1c: ea 10 00 00 orh r0,0x0
54533 + 1c: R_AVR32_HI16 extsym1
54534 + 20: e4 10 87 65 andh r0,0x8765
54535 + 24: e4 10 12 34 andh r0,0x1234
54536 + 28: e4 10 00 00 andh r0,0x0
54537 + 28: R_AVR32_HI16 \.text\+0x60
54538 + 2c: e4 10 00 00 andh r0,0x0
54539 + 2c: R_AVR32_HI16 extsym1
54540 +
54541 +00000030 <test_lwrd>:
54542 + 30: e0 60 43 21 mov r0,17185
54543 + 34: e0 60 56 78 mov r0,22136
54544 + 38: e0 60 00 00 mov r0,0
54545 + 38: R_AVR32_LO16 \.text\+0x60
54546 + 3c: e0 60 00 00 mov r0,0
54547 + 3c: R_AVR32_LO16 extsym1
54548 + 40: e8 10 43 21 orl r0,0x4321
54549 + 44: e8 10 56 78 orl r0,0x5678
54550 + 48: e8 10 00 00 orl r0,0x0
54551 + 48: R_AVR32_LO16 \.text\+0x60
54552 + 4c: e8 10 00 00 orl r0,0x0
54553 + 4c: R_AVR32_LO16 extsym1
54554 + 50: e0 10 43 21 andl r0,0x4321
54555 + 54: e0 10 56 78 andl r0,0x5678
54556 + 58: e0 10 00 00 andl r0,0x0
54557 + 58: R_AVR32_LO16 \.text\+0x60
54558 + 5c: e0 10 00 00 andl r0,0x0
54559 + 5c: R_AVR32_LO16 extsym1
54560 --- /dev/null
54561 +++ b/gas/testsuite/gas/avr32/hwrd-lwrd.s
54562 @@ -0,0 +1,39 @@
54563 +
54564 + .equ sym1, 0x12345678
54565 +
54566 + .text
54567 + .global test_hwrd
54568 +test_hwrd:
54569 + mov r0, hi(0x87654321)
54570 + mov r0, hi(sym1)
54571 + mov r0, hi(sym2)
54572 + mov r0, hi(extsym1)
54573 +
54574 + orh r0, hi(0x87654321)
54575 + orh r0, hi(sym1)
54576 + orh r0, hi(sym2)
54577 + orh r0, hi(extsym1)
54578 +
54579 + andh r0, hi(0x87654321)
54580 + andh r0, hi(sym1)
54581 + andh r0, hi(sym2)
54582 + andh r0, hi(extsym1)
54583 +
54584 + .global test_lwrd
54585 +test_lwrd:
54586 + mov r0, lo(0x87654321)
54587 + mov r0, lo(sym1)
54588 + mov r0, lo(sym2)
54589 + mov r0, lo(extsym1)
54590 +
54591 + orl r0, lo(0x87654321)
54592 + orl r0, lo(sym1)
54593 + orl r0, lo(sym2)
54594 + orl r0, lo(extsym1)
54595 +
54596 + andl r0, lo(0x87654321)
54597 + andl r0, lo(sym1)
54598 + andl r0, lo(sym2)
54599 + andl r0, lo(extsym1)
54600 +
54601 +sym2:
54602 --- /dev/null
54603 +++ b/gas/testsuite/gas/avr32/jmptable.d
54604 @@ -0,0 +1,20 @@
54605 +#source: jmptable.s
54606 +#as:
54607 +#objdump: -dr
54608 +#name: jmptable
54609 +
54610 +.*: +file format .*
54611 +
54612 +Disassembly of section \.text:
54613 +
54614 +00000000 <jmptable_test>:
54615 + 0: fe c8 ff f4 sub r8,pc,-12
54616 + 4: f0 00 00 2f add pc,r8,r0<<0x2
54617 + 8: d7 03 nop
54618 + a: 00 00 add r0,r0
54619 + c: c0 38 rjmp 12 <jmptable_test\+0x12>
54620 + e: c0 38 rjmp 14 <jmptable_test\+0x14>
54621 + 10: c0 38 rjmp 16 <jmptable_test\+0x16>
54622 + 12: d7 03 nop
54623 + 14: d7 03 nop
54624 + 16: d7 03 nop
54625 --- /dev/null
54626 +++ b/gas/testsuite/gas/avr32/jmptable_linkrelax.d
54627 @@ -0,0 +1,25 @@
54628 +#source: jmptable.s
54629 +#as: --linkrelax
54630 +#objdump: -dr
54631 +#name: jmptable_linkrelax
54632 +
54633 +.*: +file format .*
54634 +
54635 +Disassembly of section \.text:
54636 +
54637 +00000000 <jmptable_test>:
54638 + 0: fe c8 00 00 sub r8,pc,0
54639 + 0: R_AVR32_16N_PCREL \.text\+0xc
54640 + 4: f0 00 00 2f add pc,r8,r0<<0x2
54641 + 8: d7 03 nop
54642 + a: 00 00 add r0,r0
54643 + a: R_AVR32_ALIGN \*ABS\*\+0x2
54644 + c: c0 08 rjmp c <jmptable_test\+0xc>
54645 + c: R_AVR32_11H_PCREL \.text\+0x12
54646 + e: c0 08 rjmp e <jmptable_test\+0xe>
54647 + e: R_AVR32_11H_PCREL \.text\+0x14
54648 + 10: c0 08 rjmp 10 <jmptable_test\+0x10>
54649 + 10: R_AVR32_11H_PCREL \.text\+0x16
54650 + 12: d7 03 nop
54651 + 14: d7 03 nop
54652 + 16: d7 03 nop
54653 --- /dev/null
54654 +++ b/gas/testsuite/gas/avr32/jmptable.s
54655 @@ -0,0 +1,14 @@
54656 +
54657 + .text
54658 + .global jmptable_test
54659 +jmptable_test:
54660 + sub r8, pc, -(.L1 - .)
54661 + add pc, r8, r0 << 2
54662 + nop
54663 + .align 2
54664 +.L1: rjmp 1f
54665 + rjmp 2f
54666 + rjmp 3f
54667 +1: nop
54668 +2: nop
54669 +3: nop
54670 --- /dev/null
54671 +++ b/gas/testsuite/gas/avr32/lda_nopic.d
54672 @@ -0,0 +1,32 @@
54673 +#source: lda.s
54674 +#as:
54675 +#objdump: -dr
54676 +#name: lda_nopic
54677 +
54678 +.*: +file format .*
54679 +
54680 +Disassembly of section \.text:
54681 +
54682 +00000000 <lda_test>:
54683 + 0: f2 c8 00 00 sub r8,r9,0
54684 +
54685 +00000004 <far_negative>:
54686 + 4: f6 ca 00 00 sub r10,r11,0
54687 + ...
54688 + 8000: fe c0 7f fc sub r0,pc,32764
54689 + 8004: 48 31 lddpc r1,8010 <far_negative\+0x800c>
54690 + 8006: 48 42 lddpc r2,8014 <far_negative\+0x8010>
54691 + 8008: 48 43 lddpc r3,8018 <far_negative\+0x8014>
54692 + 800a: 48 54 lddpc r4,801c <far_negative\+0x8018>
54693 + 800c: fe c5 80 04 sub r5,pc,-32764
54694 + ...
54695 + 8010: R_AVR32_32_CPENT \.text
54696 + 8014: R_AVR32_32_CPENT \.data
54697 + 8018: R_AVR32_32_CPENT undefined
54698 + 801c: R_AVR32_32_CPENT \.text\+0x1001c
54699 +
54700 +00010008 <far_positive>:
54701 + 10008: fa cc 00 00 sub r12,sp,0
54702 + ...
54703 +0001001c <toofar_positive>:
54704 + 1001c: fe ce 00 00 sub lr,pc,0
54705 --- /dev/null
54706 +++ b/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d
54707 @@ -0,0 +1,41 @@
54708 +#source: lda.s
54709 +#as: --linkrelax
54710 +#objdump: -dr
54711 +#name: lda_nopic_linkrelax
54712 +
54713 +.*: +file format .*
54714 +
54715 +Disassembly of section \.text:
54716 +
54717 +00000000 <lda_test>:
54718 + 0: f2 c8 00 00 sub r8,r9,0
54719 +
54720 +00000004 <far_negative>:
54721 + 4: f6 ca 00 00 sub r10,r11,0
54722 + \.\.\.
54723 + 8000: 48 00 lddpc r0,8000 <far_negative\+0x7ffc>
54724 + 8000: R_AVR32_9W_CP \.text\+0x800c
54725 + 8002: 48 01 lddpc r1,8000 <far_negative\+0x7ffc>
54726 + 8002: R_AVR32_9W_CP \.text\+0x8010
54727 + 8004: 48 02 lddpc r2,8004 <far_negative\+0x8000>
54728 + 8004: R_AVR32_9W_CP \.text\+0x8014
54729 + 8006: 48 03 lddpc r3,8004 <far_negative\+0x8000>
54730 + 8006: R_AVR32_9W_CP \.text\+0x8018
54731 + 8008: 48 04 lddpc r4,8008 <far_negative\+0x8004>
54732 + 8008: R_AVR32_9W_CP \.text\+0x801c
54733 + 800a: 48 05 lddpc r5,8008 <far_negative\+0x8004>
54734 + 800a: R_AVR32_9W_CP \.text\+0x8020
54735 + \.\.\.
54736 + 800c: R_AVR32_ALIGN \*ABS\*\+0x2
54737 + 800c: R_AVR32_32_CPENT \.text\+0x4
54738 + 8010: R_AVR32_32_CPENT \.text
54739 + 8014: R_AVR32_32_CPENT \.data
54740 + 8018: R_AVR32_32_CPENT undefined
54741 + 801c: R_AVR32_32_CPENT \.text\+0x10020
54742 + 8020: R_AVR32_32_CPENT \.text\+0x1000c
54743 +
54744 +0001000c <far_positive>:
54745 + 1000c: fa cc 00 00 sub r12,sp,0
54746 + \.\.\.
54747 +00010020 <toofar_positive>:
54748 + 10020: fe ce 00 00 sub lr,pc,0
54749 --- /dev/null
54750 +++ b/gas/testsuite/gas/avr32/lda_pic.d
54751 @@ -0,0 +1,32 @@
54752 +#source: lda.s
54753 +#as: --pic
54754 +#objdump: -dr
54755 +#name: lda_pic
54756 +
54757 +.*: +file format .*
54758 +
54759 +Disassembly of section \.text:
54760 +
54761 +00000000 <lda_test>:
54762 + 0: f2 c8 00 00 sub r8,r9,0
54763 +
54764 +00000004 <far_negative>:
54765 + 4: f6 ca 00 00 sub r10,r11,0
54766 + ...
54767 + 8000: fe c0 7f fc sub r0,pc,32764
54768 + 8004: ec f1 00 00 ld.w r1,r6\[0\]
54769 + 8004: R_AVR32_GOT16S toofar_negative
54770 + 8008: ec f2 00 00 ld.w r2,r6\[0\]
54771 + 8008: R_AVR32_GOT16S different_section
54772 + 800c: ec f3 00 00 ld.w r3,r6\[0\]
54773 + 800c: R_AVR32_GOT16S undefined
54774 + 8010: ec f4 00 00 ld.w r4,r6\[0\]
54775 + 8010: R_AVR32_GOT16S toofar_positive
54776 + 8014: fe c5 80 14 sub r5,pc,-32748
54777 + ...
54778 +
54779 +00010000 <far_positive>:
54780 + 10000: fa cc 00 00 sub r12,sp,0
54781 + ...
54782 +00010014 <toofar_positive>:
54783 + 10014: fe ce 00 00 sub lr,pc,0
54784 --- /dev/null
54785 +++ b/gas/testsuite/gas/avr32/lda_pic_linkrelax.d
54786 @@ -0,0 +1,40 @@
54787 +#source: lda.s
54788 +#as: --pic --linkrelax
54789 +#objdump: -dr
54790 +#name: lda_pic_linkrelax
54791 +
54792 +.*: +file format .*
54793 +
54794 +Disassembly of section \.text:
54795 +
54796 +00000000 <lda_test>:
54797 + 0: f2 c8 00 00 sub r8,r9,0
54798 +
54799 +00000004 <far_negative>:
54800 + 4: f6 ca 00 00 sub r10,r11,0
54801 + ...
54802 + 8000: e0 60 00 00 mov r0,0
54803 + 8000: R_AVR32_LDA_GOT far_negative
54804 + 8004: ec 00 03 20 ld\.w r0,r6\[r0<<0x2\]
54805 + 8008: e0 61 00 00 mov r1,0
54806 + 8008: R_AVR32_LDA_GOT toofar_negative
54807 + 800c: ec 01 03 21 ld\.w r1,r6\[r1<<0x2\]
54808 + 8010: e0 62 00 00 mov r2,0
54809 + 8010: R_AVR32_LDA_GOT different_section
54810 + 8014: ec 02 03 22 ld\.w r2,r6\[r2<<0x2\]
54811 + 8018: e0 63 00 00 mov r3,0
54812 + 8018: R_AVR32_LDA_GOT undefined
54813 + 801c: ec 03 03 23 ld\.w r3,r6\[r3<<0x2\]
54814 + 8020: e0 64 00 00 mov r4,0
54815 + 8020: R_AVR32_LDA_GOT toofar_positive
54816 + 8024: ec 04 03 24 ld\.w r4,r6\[r4<<0x2\]
54817 + 8028: e0 65 00 00 mov r5,0
54818 + 8028: R_AVR32_LDA_GOT far_positive
54819 + 802c: ec 05 03 25 ld\.w r5,r6\[r5<<0x2\]
54820 + ...
54821 +
54822 +00010018 <far_positive>:
54823 + 10018: fa cc 00 00 sub r12,sp,0
54824 + ...
54825 +0001002c <toofar_positive>:
54826 + 1002c: fe ce 00 00 sub lr,pc,0
54827 --- /dev/null
54828 +++ b/gas/testsuite/gas/avr32/lda.s
54829 @@ -0,0 +1,30 @@
54830 +
54831 + .text
54832 + .global lda_test
54833 +lda_test:
54834 +toofar_negative:
54835 + sub r8, r9, 0
54836 +far_negative:
54837 + sub r10, r11, 0
54838 +
54839 + .fill 32760, 1, 0x00
54840 +
54841 + lda.w r0, far_negative
54842 + lda.w r1, toofar_negative
54843 + lda.w r2, different_section
54844 + lda.w r3, undefined
54845 + lda.w r4, toofar_positive
54846 + lda.w r5, far_positive
54847 +
54848 + .cpool
54849 +
54850 + .fill 32744, 1, 0x00
54851 +far_positive:
54852 + sub r12, sp, 0
54853 + .fill 16, 1, 0x00
54854 +toofar_positive:
54855 + sub lr, pc, 0
54856 +
54857 + .data
54858 +different_section:
54859 + .long 0x12345678
54860 --- /dev/null
54861 +++ b/gas/testsuite/gas/avr32/pcrel.d
54862 @@ -0,0 +1,64 @@
54863 +#as:
54864 +#objdump: -dr
54865 +#name: pcrel
54866 +
54867 +.*: +file format .*
54868 +
54869 +Disassembly of section \.text:
54870 +
54871 +00000000 <test_rjmp>:
54872 + 0: d7 03 nop
54873 + 2: c0 28 rjmp 6 <test_rjmp\+0x6>
54874 + 4: d7 03 nop
54875 + 6: e0 8f 00 00 bral 6 <test_rjmp\+0x6>
54876 + 6: R_AVR32_22H_PCREL extsym10
54877 +
54878 +0000000a <test_rcall>:
54879 + a: d7 03 nop
54880 +0000000c <test_rcall2>:
54881 + c: c0 2c rcall 10 <test_rcall2\+0x4>
54882 + e: d7 03 nop
54883 + 10: e0 a0 00 00 rcall 10 <test_rcall2\+0x4>
54884 + 10: R_AVR32_22H_PCREL extsym21
54885 +
54886 +00000014 <test_branch>:
54887 + 14: c0 31 brne 1a <test_branch\+0x6>
54888 + 16: e0 8f 00 00 bral 16 <test_branch\+0x2>
54889 + 16: R_AVR32_22H_PCREL test_branch
54890 + 1a: e0 80 00 00 breq 1a <test_branch\+0x6>
54891 + 1a: R_AVR32_22H_PCREL extsym21
54892 +
54893 +0000001e <test_lddpc>:
54894 + 1e: 48 30 lddpc r0,28 <sym1>
54895 + 20: 48 20 lddpc r0,28 <sym1>
54896 + 22: fe f0 00 00 ld.w r0,pc\[0\]
54897 + 22: R_AVR32_16B_PCREL extsym16
54898 + \.\.\.
54899 +
54900 +00000028 <sym1>:
54901 + 28: d7 03 nop
54902 + 2a: d7 03 nop
54903 +
54904 +0000002c <test_local>:
54905 + 2c: 48 20 lddpc r0,34 <test_local\+0x8>
54906 + 2e: 48 30 lddpc r0,38 <test_local\+0xc>
54907 + 30: 48 20 lddpc r0,38 <test_local\+0xc>
54908 + 32: 00 00 add r0,r0
54909 + 34: d7 03 nop
54910 + 36: d7 03 nop
54911 + 38: d7 03 nop
54912 + 3a: d7 03 nop
54913 +
54914 +Disassembly of section \.text\.init:
54915 +
54916 +00000000 <test_inter_section>:
54917 + 0: e0 a0 .. .. rcall [0-9a-f]+ <.*>
54918 + 0: R_AVR32_22H_PCREL test_rcall
54919 + 4: d7 03 nop
54920 + 6: e0 a0 .. .. rcall [0-9a-f]+ <.*>
54921 + 6: R_AVR32_22H_PCREL test_rcall
54922 + a: e0 a0 .. .. rcall [0-9a-z]+ <.*>
54923 + a: R_AVR32_22H_PCREL \.text\+0xc
54924 + e: d7 03 nop
54925 + 10: e0 a0 .. .. rcall [0-9a-f]+ <.*>
54926 + 10: R_AVR32_22H_PCREL \.text\+0xc
54927 --- /dev/null
54928 +++ b/gas/testsuite/gas/avr32/pcrel.s
54929 @@ -0,0 +1,57 @@
54930 +
54931 + .text
54932 + .global test_rjmp
54933 +test_rjmp:
54934 + nop
54935 + rjmp 0f
54936 + nop
54937 +0: rjmp extsym10
54938 +
54939 + .global test_rcall
54940 +test_rcall:
54941 + nop
54942 +test_rcall2:
54943 + rcall 0f
54944 + nop
54945 +0: rcall extsym21
54946 +
54947 + .global test_branch
54948 +test_branch:
54949 + brne 0f
54950 + /* This will generate a reloc since test_branch is global */
54951 + bral test_branch
54952 +0: breq extsym21
54953 +
54954 + .global test_lddpc
54955 +test_lddpc:
54956 + lddpc r0,sym1
54957 + lddpc r0,sym1
54958 + lddpc r0,extsym16
54959 +
54960 + .align 2
54961 +sym1: nop
54962 + nop
54963 +
54964 + .global test_local
54965 +test_local:
54966 + lddpc r0, .LC1
54967 + lddpc r0, .LC2
54968 + lddpc r0, .LC1 + 0x4
54969 +
54970 + .align 2
54971 +.LC1:
54972 + nop
54973 + nop
54974 +.LC2:
54975 + nop
54976 + nop
54977 +
54978 + .section .text.init,"ax"
54979 + .global test_inter_section
54980 +test_inter_section:
54981 + rcall test_rcall
54982 + nop
54983 + rcall test_rcall
54984 + rcall test_rcall2
54985 + nop
54986 + rcall test_rcall2
54987 --- /dev/null
54988 +++ b/gas/testsuite/gas/avr32/pico.d
54989 @@ -0,0 +1,149 @@
54990 +#as:
54991 +#objdump: -dr
54992 +#name: pico
54993 +
54994 +.*: +file format .*
54995 +
54996 +Disassembly of section \.text:
54997 +
54998 +[0-9a-f]* <picosvmac>:
54999 + *[0-9a-f]*: e1 a6 20 00 cop cp1,cr0,cr0,cr0,0xc
55000 + *[0-9a-f]*: e1 a7 2b bb cop cp1,cr11,cr11,cr11,0xe
55001 + *[0-9a-f]*: e1 a6 3a 05 cop cp1,cr10,cr0,cr5,0xd
55002 + *[0-9a-f]*: e1 a7 36 90 cop cp1,cr6,cr9,cr0,0xf
55003 +
55004 +[0-9a-f]* <picosvmul>:
55005 + *[0-9a-f]*: e1 a4 20 00 cop cp1,cr0,cr0,cr0,0x8
55006 + *[0-9a-f]*: e1 a5 2b bb cop cp1,cr11,cr11,cr11,0xa
55007 + *[0-9a-f]*: e1 a4 3a 05 cop cp1,cr10,cr0,cr5,0x9
55008 + *[0-9a-f]*: e1 a5 36 90 cop cp1,cr6,cr9,cr0,0xb
55009 +
55010 +[0-9a-f]* <picovmac>:
55011 + *[0-9a-f]*: e1 a2 20 00 cop cp1,cr0,cr0,cr0,0x4
55012 + *[0-9a-f]*: e1 a3 2b bb cop cp1,cr11,cr11,cr11,0x6
55013 + *[0-9a-f]*: e1 a2 3a 05 cop cp1,cr10,cr0,cr5,0x5
55014 + *[0-9a-f]*: e1 a3 36 90 cop cp1,cr6,cr9,cr0,0x7
55015 +
55016 +[0-9a-f]* <picovmul>:
55017 + *[0-9a-f]*: e1 a0 20 00 cop cp1,cr0,cr0,cr0,0x0
55018 + *[0-9a-f]*: e1 a1 2b bb cop cp1,cr11,cr11,cr11,0x2
55019 + *[0-9a-f]*: e1 a0 3a 05 cop cp1,cr10,cr0,cr5,0x1
55020 + *[0-9a-f]*: e1 a1 36 90 cop cp1,cr6,cr9,cr0,0x3
55021 +
55022 +[0-9a-f]* <picold_d>:
55023 + *[0-9a-f]*: e9 af 3e ff ldc\.d cp1,cr14,pc\[0x3fc\]
55024 + *[0-9a-f]*: e9 a0 30 ff ldc\.d cp1,cr0,r0\[0x3fc\]
55025 + *[0-9a-f]*: e9 a0 30 00 ldc\.d cp1,cr0,r0\[0x0\]
55026 + *[0-9a-f]*: ef a8 26 50 ldc\.d cp1,cr6,--r8
55027 + *[0-9a-f]*: ef a7 28 50 ldc\.d cp1,cr8,--r7
55028 + *[0-9a-f]*: ef aa 32 65 ldc\.d cp1,cr2,r10\[r5<<0x2\]
55029 + *[0-9a-f]*: ef a3 3c 46 ldc\.d cp1,cr12,r3\[r6\]
55030 +
55031 +[0-9a-f]* <picold_w>:
55032 + *[0-9a-f]*: e9 af 2f ff ldc\.w cp1,cr15,pc\[0x3fc\]
55033 + *[0-9a-f]*: e9 a0 20 ff ldc\.w cp1,cr0,r0\[0x3fc\]
55034 + *[0-9a-f]*: e9 a0 20 00 ldc\.w cp1,cr0,r0\[0x0\]
55035 + *[0-9a-f]*: ef a8 27 40 ldc\.w cp1,cr7,--r8
55036 + *[0-9a-f]*: ef a7 28 40 ldc\.w cp1,cr8,--r7
55037 + *[0-9a-f]*: ef aa 31 25 ldc\.w cp1,cr1,r10\[r5<<0x2\]
55038 + *[0-9a-f]*: ef a3 3d 06 ldc\.w cp1,cr13,r3\[r6\]
55039 +
55040 +[0-9a-f]* <picoldm_d>:
55041 + *[0-9a-f]*: ed af 24 ff ldcm\.d cp1,pc,cr0-cr15
55042 + *[0-9a-f]*: ed a0 24 01 ldcm\.d cp1,r0,cr0-cr1
55043 + *[0-9a-f]*: ed a7 24 80 ldcm\.d cp1,r7,cr14-cr15
55044 + *[0-9a-f]*: ed a8 24 7f ldcm\.d cp1,r8,cr0-cr13
55045 +
55046 +[0-9a-f]* <picoldm_d_pu>:
55047 + *[0-9a-f]*: ed af 34 ff ldcm\.d cp1,pc\+\+,cr0-cr15
55048 + *[0-9a-f]*: ed a0 34 01 ldcm\.d cp1,r0\+\+,cr0-cr1
55049 + *[0-9a-f]*: ed a7 34 80 ldcm\.d cp1,r7\+\+,cr14-cr15
55050 + *[0-9a-f]*: ed a8 34 7f ldcm\.d cp1,r8\+\+,cr0-cr13
55051 +
55052 +[0-9a-f]* <picoldm_w>:
55053 + *[0-9a-f]*: ed af 20 ff ldcm\.w cp1,pc,cr0-cr7
55054 + *[0-9a-f]*: ed a0 20 01 ldcm\.w cp1,r0,cr0
55055 + *[0-9a-f]*: ed a7 20 80 ldcm\.w cp1,r7,cr7
55056 + *[0-9a-f]*: ed a8 20 7f ldcm\.w cp1,r8,cr0-cr6
55057 + *[0-9a-f]*: ed af 21 ff ldcm\.w cp1,pc,cr8-cr15
55058 + *[0-9a-f]*: ed a0 21 01 ldcm\.w cp1,r0,cr8
55059 + *[0-9a-f]*: ed a7 21 80 ldcm\.w cp1,r7,cr15
55060 + *[0-9a-f]*: ed a8 21 7f ldcm\.w cp1,r8,cr8-cr14
55061 +
55062 +[0-9a-f]* <picoldm_w_pu>:
55063 + *[0-9a-f]*: ed af 30 ff ldcm\.w cp1,pc\+\+,cr0-cr7
55064 + *[0-9a-f]*: ed a0 30 01 ldcm\.w cp1,r0\+\+,cr0
55065 + *[0-9a-f]*: ed a7 30 80 ldcm\.w cp1,r7\+\+,cr7
55066 + *[0-9a-f]*: ed a8 30 7f ldcm\.w cp1,r8\+\+,cr0-cr6
55067 + *[0-9a-f]*: ed af 31 ff ldcm\.w cp1,pc\+\+,cr8-cr15
55068 + *[0-9a-f]*: ed a0 31 01 ldcm\.w cp1,r0\+\+,cr8
55069 + *[0-9a-f]*: ed a7 31 80 ldcm\.w cp1,r7\+\+,cr15
55070 + *[0-9a-f]*: ed a8 31 7f ldcm\.w cp1,r8\+\+,cr8-cr14
55071 +
55072 +[0-9a-f]* <picomv_d>:
55073 + *[0-9a-f]*: ef ae 2e 30 mvrc\.d cp1,cr14,lr
55074 + *[0-9a-f]*: ef a0 20 30 mvrc\.d cp1,cr0,r0
55075 + *[0-9a-f]*: ef a8 26 30 mvrc\.d cp1,cr6,r8
55076 + *[0-9a-f]*: ef a6 28 30 mvrc\.d cp1,cr8,r6
55077 + *[0-9a-f]*: ef ae 2e 10 mvcr\.d cp1,lr,cr14
55078 + *[0-9a-f]*: ef a0 20 10 mvcr\.d cp1,r0,cr0
55079 + *[0-9a-f]*: ef a8 26 10 mvcr\.d cp1,r8,cr6
55080 + *[0-9a-f]*: ef a6 28 10 mvcr\.d cp1,r6,cr8
55081 +
55082 +[0-9a-f]* <picomv_w>:
55083 + *[0-9a-f]*: ef af 2f 20 mvrc\.w cp1,cr15,pc
55084 + *[0-9a-f]*: ef a0 20 20 mvrc\.w cp1,cr0,r0
55085 + *[0-9a-f]*: ef a8 27 20 mvrc\.w cp1,cr7,r8
55086 + *[0-9a-f]*: ef a7 28 20 mvrc\.w cp1,cr8,r7
55087 + *[0-9a-f]*: ef af 2f 00 mvcr\.w cp1,pc,cr15
55088 + *[0-9a-f]*: ef a0 20 00 mvcr\.w cp1,r0,cr0
55089 + *[0-9a-f]*: ef a8 27 00 mvcr\.w cp1,r8,cr7
55090 + *[0-9a-f]*: ef a7 28 00 mvcr\.w cp1,r7,cr8
55091 +
55092 +[0-9a-f]* <picost_d>:
55093 + *[0-9a-f]*: eb af 3e ff stc\.d cp1,pc\[0x3fc\],cr14
55094 + *[0-9a-f]*: eb a0 30 00 stc\.d cp1,r0\[0x0\],cr0
55095 + *[0-9a-f]*: ef a8 26 70 stc\.d cp1,r8\+\+,cr6
55096 + *[0-9a-f]*: ef a7 28 70 stc\.d cp1,r7\+\+,cr8
55097 + *[0-9a-f]*: ef aa 32 e5 stc\.d cp1,r10\[r5<<0x2\],cr2
55098 + *[0-9a-f]*: ef a3 3c c6 stc\.d cp1,r3\[r6\],cr12
55099 +
55100 +[0-9a-f]* <picost_w>:
55101 + *[0-9a-f]*: eb af 2f ff stc\.w cp1,pc\[0x3fc\],cr15
55102 + *[0-9a-f]*: eb a0 20 00 stc\.w cp1,r0\[0x0\],cr0
55103 + *[0-9a-f]*: ef a8 27 60 stc\.w cp1,r8\+\+,cr7
55104 + *[0-9a-f]*: ef a7 28 60 stc\.w cp1,r7\+\+,cr8
55105 + *[0-9a-f]*: ef aa 31 a5 stc\.w cp1,r10\[r5<<0x2\],cr1
55106 + *[0-9a-f]*: ef a3 3d 86 stc\.w cp1,r3\[r6\],cr13
55107 +
55108 +[0-9a-f]* <picostm_d>:
55109 + *[0-9a-f]*: ed af 25 ff stcm\.d cp1,pc,cr0-cr15
55110 + *[0-9a-f]*: ed a0 25 01 stcm\.d cp1,r0,cr0-cr1
55111 + *[0-9a-f]*: ed a7 25 80 stcm\.d cp1,r7,cr14-cr15
55112 + *[0-9a-f]*: ed a8 25 7f stcm\.d cp1,r8,cr0-cr13
55113 +
55114 +[0-9a-f]* <picostm_d_pu>:
55115 + *[0-9a-f]*: ed af 35 ff stcm\.d cp1,--pc,cr0-cr15
55116 + *[0-9a-f]*: ed a0 35 01 stcm\.d cp1,--r0,cr0-cr1
55117 + *[0-9a-f]*: ed a7 35 80 stcm\.d cp1,--r7,cr14-cr15
55118 + *[0-9a-f]*: ed a8 35 7f stcm\.d cp1,--r8,cr0-cr13
55119 +
55120 +[0-9a-f]* <picostm_w>:
55121 + *[0-9a-f]*: ed af 22 ff stcm\.w cp1,pc,cr0-cr7
55122 + *[0-9a-f]*: ed a0 22 01 stcm\.w cp1,r0,cr0
55123 + *[0-9a-f]*: ed a7 22 80 stcm\.w cp1,r7,cr7
55124 + *[0-9a-f]*: ed a8 22 7f stcm\.w cp1,r8,cr0-cr6
55125 + *[0-9a-f]*: ed af 23 ff stcm\.w cp1,pc,cr8-cr15
55126 + *[0-9a-f]*: ed a0 23 01 stcm\.w cp1,r0,cr8
55127 + *[0-9a-f]*: ed a7 23 80 stcm\.w cp1,r7,cr15
55128 + *[0-9a-f]*: ed a8 23 7f stcm\.w cp1,r8,cr8-cr14
55129 +
55130 +[0-9a-f]* <picostm_w_pu>:
55131 + *[0-9a-f]*: ed af 32 ff stcm\.w cp1,--pc,cr0-cr7
55132 + *[0-9a-f]*: ed a0 32 01 stcm\.w cp1,--r0,cr0
55133 + *[0-9a-f]*: ed a7 32 80 stcm\.w cp1,--r7,cr7
55134 + *[0-9a-f]*: ed a8 32 7f stcm\.w cp1,--r8,cr0-cr6
55135 + *[0-9a-f]*: ed af 33 ff stcm\.w cp1,--pc,cr8-cr15
55136 + *[0-9a-f]*: ed a0 33 01 stcm\.w cp1,--r0,cr8
55137 + *[0-9a-f]*: ed a7 33 80 stcm\.w cp1,--r7,cr15
55138 + *[0-9a-f]*: ed a8 33 7f stcm\.w cp1,--r8,cr8-cr14
55139 --- /dev/null
55140 +++ b/gas/testsuite/gas/avr32/pico.s
55141 @@ -0,0 +1,144 @@
55142 +
55143 + .text
55144 + .global picosvmac
55145 +picosvmac:
55146 + picosvmac out0, in0, in0, in0
55147 + picosvmac out2, in11, in11, in11
55148 + picosvmac out1, in10, in0, in5
55149 + picosvmac out3, in6, in9, in0
55150 + .global picosvmul
55151 +picosvmul:
55152 + picosvmul out0, in0, in0, in0
55153 + picosvmul out2, in11, in11, in11
55154 + picosvmul out1, in10, in0, in5
55155 + picosvmul out3, in6, in9, in0
55156 + .global picovmac
55157 +picovmac:
55158 + picovmac out0, in0, in0, in0
55159 + picovmac out2, in11, in11, in11
55160 + picovmac out1, in10, in0, in5
55161 + picovmac out3, in6, in9, in0
55162 + .global picovmul
55163 +picovmul:
55164 + picovmul out0, in0, in0, in0
55165 + picovmul out2, in11, in11, in11
55166 + picovmul out1, in10, in0, in5
55167 + picovmul out3, in6, in9, in0
55168 + .global picold_d
55169 +picold_d:
55170 + picold.d vmu2_out, pc[1020]
55171 + picold.d inpix2, r0[1020]
55172 + picold.d inpix2, r0[0]
55173 + picold.d coeff0_a, --r8
55174 + picold.d coeff1_a, --r7
55175 + picold.d inpix0, r10[r5 << 2]
55176 + picold.d vmu0_out, r3[r6 << 0]
55177 + .global picold_w
55178 +picold_w:
55179 + picold.w config, pc[1020]
55180 + picold.w inpix2, r0[1020]
55181 + picold.w inpix2, r0[0]
55182 + picold.w coeff0_b, --r8
55183 + picold.w coeff1_a, --r7
55184 + picold.w inpix1, r10[r5 << 2]
55185 + picold.w vmu1_out, r3[r6 << 0]
55186 + .global picoldm_d
55187 +picoldm_d:
55188 + picoldm.d pc, inpix2-config
55189 + picoldm.d r0, inpix2, inpix1
55190 + picoldm.d r7, vmu2_out, config
55191 + picoldm.d r8, inpix2-vmu1_out
55192 + .global picoldm_d_pu
55193 +picoldm_d_pu:
55194 + picoldm.d pc++, inpix2, inpix1, inpix0, outpix2, outpix1, outpix0, coeff0_a, coeff0_b, coeff1_a, coeff1_b, coeff2_a, coeff2_b, vmu0_out, vmu1_out, vmu2_out, config
55195 + picoldm.d r0++, inpix2, inpix1
55196 + picoldm.d r7++, vmu2_out, config
55197 + picoldm.d r8++, inpix2, inpix1, inpix0, outpix2, outpix1, outpix0, coeff0_a, coeff0_b, coeff1_a, coeff1_b, coeff2_a, coeff2_b, vmu0_out, vmu1_out
55198 + .global picoldm_w
55199 +picoldm_w:
55200 + picoldm.w pc, inpix2-coeff0_b
55201 + picoldm.w r0, inpix2
55202 + picoldm.w r7, coeff0_b
55203 + picoldm.w r8, inpix2-coeff0_a
55204 + picoldm.w pc, coeff1_a-config
55205 + picoldm.w r0, coeff1_a
55206 + picoldm.w r7, config
55207 + picoldm.w r8, coeff1_a-vmu2_out
55208 + .global picoldm_w_pu
55209 +picoldm_w_pu:
55210 + picoldm.w pc++, inpix2-coeff0_b
55211 + picoldm.w r0++, inpix2
55212 + picoldm.w r7++, coeff0_b
55213 + picoldm.w r8++, inpix2-coeff0_a
55214 + picoldm.w pc++, coeff1_a-config
55215 + picoldm.w r0++, coeff1_a
55216 + picoldm.w r7++, config
55217 + picoldm.w r8++, coeff1_a-vmu2_out
55218 + .global picomv_d
55219 +picomv_d:
55220 + picomv.d vmu2_out, lr
55221 + picomv.d inpix2, r0
55222 + picomv.d coeff0_a, r8
55223 + picomv.d coeff1_a, r6
55224 + picomv.d pc, vmu2_out
55225 + picomv.d r0, inpix2
55226 + picomv.d r8, coeff0_a
55227 + picomv.d r6, coeff1_a
55228 + .global picomv_w
55229 +picomv_w:
55230 + picomv.w config, pc
55231 + picomv.w inpix2, r0
55232 + picomv.w coeff0_b, r8
55233 + picomv.w coeff1_a, r7
55234 + picomv.w pc, config
55235 + picomv.w r0, inpix2
55236 + picomv.w r8, coeff0_b
55237 + picomv.w r7, coeff1_a
55238 + .global picost_d
55239 +picost_d:
55240 + picost.d pc[1020], vmu2_out
55241 + picost.d r0[0], inpix2
55242 + picost.d r8++, coeff0_a
55243 + picost.d r7++, coeff1_a
55244 + picost.d r10[r5 << 2], inpix0
55245 + picost.d r3[r6 << 0], vmu0_out
55246 + .global picost_w
55247 +picost_w:
55248 + picost.w pc[1020], config
55249 + picost.w r0[0], inpix2
55250 + picost.w r8++, coeff0_b
55251 + picost.w r7++, coeff1_a
55252 + picost.w r10[r5 << 2], inpix1
55253 + picost.w r3[r6 << 0], vmu1_out
55254 + .global picostm_d
55255 +picostm_d:
55256 + picostm.d pc, inpix2-config
55257 + picostm.d r0, inpix2, inpix1
55258 + picostm.d r7, vmu2_out, config
55259 + picostm.d r8, inpix2-vmu1_out
55260 + .global picostm_d_pu
55261 +picostm_d_pu:
55262 + picostm.d --pc, inpix2, inpix1, inpix0, outpix2, outpix1, outpix0, coeff0_a, coeff0_b, coeff1_a, coeff1_b, coeff2_a, coeff2_b, vmu0_out, vmu1_out, vmu2_out, config
55263 + picostm.d --r0, inpix2, inpix1
55264 + picostm.d --r7, vmu2_out, config
55265 + picostm.d --r8, inpix2, inpix1, inpix0, outpix2, outpix1, outpix0, coeff0_a, coeff0_b, coeff1_a, coeff1_b, coeff2_a, coeff2_b, vmu0_out, vmu1_out
55266 + .global picostm_w
55267 +picostm_w:
55268 + picostm.w pc, inpix2-coeff0_b
55269 + picostm.w r0, inpix2
55270 + picostm.w r7, coeff0_b
55271 + picostm.w r8, inpix2-coeff0_a
55272 + picostm.w pc, coeff1_a-config
55273 + picostm.w r0, coeff1_a
55274 + picostm.w r7, config
55275 + picostm.w r8, coeff1_a-vmu2_out
55276 + .global picostm_w_pu
55277 +picostm_w_pu:
55278 + picostm.w --pc, inpix2-coeff0_b
55279 + picostm.w --r0, inpix2
55280 + picostm.w --r7, coeff0_b
55281 + picostm.w --r8, inpix2-coeff0_a
55282 + picostm.w --pc, coeff1_a-config
55283 + picostm.w --r0, coeff1_a
55284 + picostm.w --r7, config
55285 + picostm.w --r8, coeff1_a-vmu2_out
55286 --- /dev/null
55287 +++ b/gas/testsuite/gas/avr32/pic_reloc.d
55288 @@ -0,0 +1,27 @@
55289 +#as:
55290 +#objdump: -dr
55291 +#name: pic_reloc
55292 +
55293 +.*: +file format .*
55294 +
55295 +Disassembly of section \.text:
55296 +
55297 +00000000 <mcall_got>:
55298 + 0: f0 16 00 00 mcall r6\[0\]
55299 + 0: R_AVR32_GOT18SW extfunc
55300 + 4: f0 16 00 00 mcall r6\[0\]
55301 + 4: R_AVR32_GOT18SW \.L1
55302 + 8: f0 16 00 00 mcall r6\[0\]
55303 + 8: R_AVR32_GOT18SW \.L2
55304 + c: f0 16 00 00 mcall r6\[0\]
55305 + c: R_AVR32_GOT18SW mcall_got
55306 +
55307 +00000010 <ldw_got>:
55308 + 10: ec f0 00 00 ld.w r0,r6\[0\]
55309 + 10: R_AVR32_GOT16S extvar
55310 + 14: ec f0 00 00 ld.w r0,r6\[0\]
55311 + 14: R_AVR32_GOT16S \.L3
55312 + 18: ec f0 00 00 ld.w r0,r6\[0\]
55313 + 18: R_AVR32_GOT16S \.L4
55314 + 1c: ec f0 00 00 ld.w r0,r6\[0\]
55315 + 1c: R_AVR32_GOT16S ldw_got
55316 --- /dev/null
55317 +++ b/gas/testsuite/gas/avr32/pic_reloc.s
55318 @@ -0,0 +1,18 @@
55319 +
55320 + .text
55321 + .global mcall_got
55322 +mcall_got:
55323 +.L1:
55324 + mcall r6[extfunc@got]
55325 + mcall r6[.L1@got]
55326 + mcall r6[.L2@got]
55327 + mcall r6[mcall_got@got]
55328 +.L2:
55329 +
55330 + .global ldw_got
55331 +ldw_got:
55332 +.L3: ld.w r0,r6[extvar@got]
55333 + ld.w r0,r6[.L3@got]
55334 + ld.w r0,r6[.L4@got]
55335 + ld.w r0,r6[ldw_got@got]
55336 +.L4:
55337 --- /dev/null
55338 +++ b/gas/testsuite/gas/avr32/symdiff.d
55339 @@ -0,0 +1,24 @@
55340 +#source: symdiff.s
55341 +#as:
55342 +#objdump: -dr
55343 +#name: symdiff
55344 +
55345 +.*: +file format .*
55346 +
55347 +Disassembly of section \.text:
55348 +
55349 +00000000 <diff32>:
55350 + 0: 00 00 add r0,r0
55351 + 2: 00 04 add r4,r0
55352 +
55353 +00000004 <diff16>:
55354 + 4: 00 04 add r4,r0
55355 +
55356 +00000006 <diff8>:
55357 + 6: 04 00 add r0,r2
55358 +
55359 +00000008 <symdiff_test>:
55360 + 8: d7 03 nop
55361 + a: d7 03 nop
55362 + c: d7 03 nop
55363 + e: d7 03 nop
55364 --- /dev/null
55365 +++ b/gas/testsuite/gas/avr32/symdiff_linkrelax.d
55366 @@ -0,0 +1,28 @@
55367 +#source: symdiff.s
55368 +#as: --linkrelax
55369 +#objdump: -dr
55370 +#name: symdiff_linkrelax
55371 +
55372 +.*: +file format .*
55373 +
55374 +Disassembly of section \.text:
55375 +
55376 +00000000 <diff32>:
55377 + 0: 00 00 add r0,r0
55378 + 0: R_AVR32_DIFF32 \.text\+0xa
55379 + 2: 00 04 add r4,r0
55380 +
55381 +00000004 <diff16>:
55382 + 4: 00 04 add r4,r0
55383 + 4: R_AVR32_DIFF16 \.text\+0xa
55384 +
55385 +00000006 <diff8>:
55386 + 6: 04 00 add r0,r2
55387 + 6: R_AVR32_DIFF8 \.text\+0xa
55388 + 7: R_AVR32_ALIGN \*ABS\*\+0x1
55389 +
55390 +00000008 <symdiff_test>:
55391 + 8: d7 03 nop
55392 + a: d7 03 nop
55393 + c: d7 03 nop
55394 + e: d7 03 nop
55395 --- /dev/null
55396 +++ b/gas/testsuite/gas/avr32/symdiff.s
55397 @@ -0,0 +1,19 @@
55398 +
55399 + .text
55400 + .global diff32
55401 +diff32:
55402 + .long .L2 - .L1
55403 + .global diff16
55404 +diff16:
55405 + .short .L2 - .L1
55406 + .global diff8
55407 +diff8:
55408 + .byte .L2 - .L1
55409 +
55410 + .global symdiff_test
55411 + .align 1
55412 +symdiff_test:
55413 + nop
55414 +.L1: nop
55415 + nop
55416 +.L2: nop
55417 --- a/gas/write.c
55418 +++ b/gas/write.c
55419 @@ -126,7 +126,9 @@ static fixS *fix_new_internal (fragS *,
55420 offsetT offset, int pcrel,
55421 RELOC_ENUM r_type);
55422 static long fixup_segment (fixS *, segT);
55423 +#if !defined (TC_RELAX_ALIGN)
55424 static relax_addressT relax_align (relax_addressT addr, int align);
55425 +#endif
55426 static fragS *chain_frchains_together_1 (segT, struct frchain *);
55427 static void chain_frchains_together (bfd *, segT, PTR);
55428 static void cvt_frag_to_fill (segT, fragS *);
55429 @@ -1684,6 +1686,10 @@ relax_frag (segT segment, fragS *fragP,
55430
55431 #endif /* defined (TC_GENERIC_RELAX_TABLE) */
55432
55433 +#ifdef TC_RELAX_ALIGN
55434 +#define RELAX_ALIGN(SEG, FRAG, ADDR) TC_RELAX_ALIGN(SEG, FRAG, ADDR)
55435 +#else
55436 +#define RELAX_ALIGN(SEG, FRAG, ADDR) relax_align(ADDR, (FRAG)->fr_offset)
55437 /* Relax_align. Advance location counter to next address that has 'alignment'
55438 lowest order bits all 0s, return size of adjustment made. */
55439 static relax_addressT
55440 @@ -1703,6 +1709,7 @@ relax_align (register relax_addressT add
55441 #endif
55442 return (new_address - address);
55443 }
55444 +#endif
55445
55446 /* Now we have a segment, not a crowd of sub-segments, we can make
55447 fr_address values.
55448 @@ -1746,7 +1753,7 @@ relax_segment (struct frag *segment_frag
55449 case rs_align_code:
55450 case rs_align_test:
55451 {
55452 - addressT offset = relax_align (address, (int) fragP->fr_offset);
55453 + addressT offset = RELAX_ALIGN(segment, fragP, address);
55454
55455 if (fragP->fr_subtype != 0 && offset > fragP->fr_subtype)
55456 offset = 0;
55457 @@ -1922,10 +1929,10 @@ relax_segment (struct frag *segment_frag
55458 {
55459 addressT oldoff, newoff;
55460
55461 - oldoff = relax_align (was_address + fragP->fr_fix,
55462 - (int) offset);
55463 - newoff = relax_align (address + fragP->fr_fix,
55464 - (int) offset);
55465 + oldoff = RELAX_ALIGN (segment, fragP,
55466 + was_address + fragP->fr_fix);
55467 + newoff = RELAX_ALIGN (segment, fragP,
55468 + address + fragP->fr_fix);
55469
55470 if (fragP->fr_subtype != 0)
55471 {
55472 --- a/include/dis-asm.h
55473 +++ b/include/dis-asm.h
55474 @@ -223,6 +223,7 @@ extern int print_insn_big_arm (bfd_vma,
55475 extern int print_insn_little_arm (bfd_vma, disassemble_info *);
55476 extern int print_insn_sparc (bfd_vma, disassemble_info *);
55477 extern int print_insn_avr (bfd_vma, disassemble_info *);
55478 +extern int print_insn_avr32 (bfd_vma, disassemble_info *);
55479 extern int print_insn_bfin (bfd_vma, disassemble_info *);
55480 extern int print_insn_d10v (bfd_vma, disassemble_info *);
55481 extern int print_insn_d30v (bfd_vma, disassemble_info *);
55482 @@ -276,7 +277,9 @@ extern disassembler_ftype cris_get_disas
55483 extern void print_mips_disassembler_options (FILE *);
55484 extern void print_ppc_disassembler_options (FILE *);
55485 extern void print_arm_disassembler_options (FILE *);
55486 +extern void print_avr32_disassembler_options (FILE *);
55487 extern void parse_arm_disassembler_option (char *);
55488 +extern void parse_avr32_disassembler_option (char *);
55489 extern int get_arm_regname_num_options (void);
55490 extern int set_arm_regname_option (int);
55491 extern int get_arm_regnames (int, const char **, const char **, const char *const **);
55492 --- /dev/null
55493 +++ b/include/elf/avr32.h
55494 @@ -0,0 +1,95 @@
55495 +/* AVR32 ELF support for BFD.
55496 + Copyright 2003-2006 Atmel Corporation.
55497 +
55498 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
55499 +
55500 + This file is part of BFD, the Binary File Descriptor library.
55501 +
55502 + This program is free software; you can redistribute it and/or
55503 + modify it under the terms of the GNU General Public License as
55504 + published by the Free Software Foundation; either version 2 of the
55505 + License, or (at your option) any later version.
55506 +
55507 + This program is distributed in the hope that it will be useful, but
55508 + WITHOUT ANY WARRANTY; without even the implied warranty of
55509 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
55510 + General Public License for more details.
55511 +
55512 + You should have received a copy of the GNU General Public License
55513 + along with this program; if not, write to the Free Software
55514 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
55515 + 02111-1307, USA. */
55516 +
55517 +#include "elf/reloc-macros.h"
55518 +
55519 +/* CPU-specific flags for the ELF header e_flags field */
55520 +#define EF_AVR32_LINKRELAX 0x01
55521 +#define EF_AVR32_PIC 0x02
55522 +
55523 +START_RELOC_NUMBERS (elf_avr32_reloc_type)
55524 + RELOC_NUMBER (R_AVR32_NONE, 0)
55525 +
55526 + /* Data Relocations */
55527 + RELOC_NUMBER (R_AVR32_32, 1)
55528 + RELOC_NUMBER (R_AVR32_16, 2)
55529 + RELOC_NUMBER (R_AVR32_8, 3)
55530 + RELOC_NUMBER (R_AVR32_32_PCREL, 4)
55531 + RELOC_NUMBER (R_AVR32_16_PCREL, 5)
55532 + RELOC_NUMBER (R_AVR32_8_PCREL, 6)
55533 + RELOC_NUMBER (R_AVR32_DIFF32, 7)
55534 + RELOC_NUMBER (R_AVR32_DIFF16, 8)
55535 + RELOC_NUMBER (R_AVR32_DIFF8, 9)
55536 + RELOC_NUMBER (R_AVR32_GOT32, 10)
55537 + RELOC_NUMBER (R_AVR32_GOT16, 11)
55538 + RELOC_NUMBER (R_AVR32_GOT8, 12)
55539 +
55540 + /* Normal Code Relocations */
55541 + RELOC_NUMBER (R_AVR32_21S, 13)
55542 + RELOC_NUMBER (R_AVR32_16U, 14)
55543 + RELOC_NUMBER (R_AVR32_16S, 15)
55544 + RELOC_NUMBER (R_AVR32_8S, 16)
55545 + RELOC_NUMBER (R_AVR32_8S_EXT, 17)
55546 +
55547 + /* PC-Relative Code Relocations */
55548 + RELOC_NUMBER (R_AVR32_22H_PCREL, 18)
55549 + RELOC_NUMBER (R_AVR32_18W_PCREL, 19)
55550 + RELOC_NUMBER (R_AVR32_16B_PCREL, 20)
55551 + RELOC_NUMBER (R_AVR32_16N_PCREL, 21)
55552 + RELOC_NUMBER (R_AVR32_14UW_PCREL, 22)
55553 + RELOC_NUMBER (R_AVR32_11H_PCREL, 23)
55554 + RELOC_NUMBER (R_AVR32_10UW_PCREL, 24)
55555 + RELOC_NUMBER (R_AVR32_9H_PCREL, 25)
55556 + RELOC_NUMBER (R_AVR32_9UW_PCREL, 26)
55557 +
55558 + /* Special Code Relocations */
55559 + RELOC_NUMBER (R_AVR32_HI16, 27)
55560 + RELOC_NUMBER (R_AVR32_LO16, 28)
55561 +
55562 + /* PIC Relocations */
55563 + RELOC_NUMBER (R_AVR32_GOTPC, 29)
55564 + RELOC_NUMBER (R_AVR32_GOTCALL, 30)
55565 + RELOC_NUMBER (R_AVR32_LDA_GOT, 31)
55566 + RELOC_NUMBER (R_AVR32_GOT21S, 32)
55567 + RELOC_NUMBER (R_AVR32_GOT18SW, 33)
55568 + RELOC_NUMBER (R_AVR32_GOT16S, 34)
55569 + RELOC_NUMBER (R_AVR32_GOT7UW, 35)
55570 +
55571 + /* Constant Pool Relocations */
55572 + RELOC_NUMBER (R_AVR32_32_CPENT, 36)
55573 + RELOC_NUMBER (R_AVR32_CPCALL, 37)
55574 + RELOC_NUMBER (R_AVR32_16_CP, 38)
55575 + RELOC_NUMBER (R_AVR32_9W_CP, 39)
55576 +
55577 + /* Dynamic Relocations */
55578 + RELOC_NUMBER (R_AVR32_RELATIVE, 40)
55579 + RELOC_NUMBER (R_AVR32_GLOB_DAT, 41)
55580 + RELOC_NUMBER (R_AVR32_JMP_SLOT, 42)
55581 +
55582 + /* Linkrelax Information */
55583 + RELOC_NUMBER (R_AVR32_ALIGN, 43)
55584 +END_RELOC_NUMBERS (R_AVR32_max)
55585 +
55586 +/* Processor specific dynamic array tags. */
55587 +
55588 +/* The total size in bytes of the Global Offset Table */
55589 +#define DT_AVR32_GOTSZ 0x70000001
55590 --- a/include/elf/common.h
55591 +++ b/include/elf/common.h
55592 @@ -256,6 +256,9 @@
55593 /* V850 backend magic number. Written in the absense of an ABI. */
55594 #define EM_CYGNUS_V850 0x9080
55595
55596 +/* AVR32 magic number, picked by IAR Systems. */
55597 +#define EM_AVR32 0x18ad
55598 +
55599 /* old S/390 backend magic number. Written in the absence of an ABI. */
55600 #define EM_S390_OLD 0xa390
55601
55602 --- a/ld/configdoc.texi
55603 +++ b/ld/configdoc.texi
55604 @@ -6,6 +6,7 @@
55605 @set H8300
55606 @set I960
55607 @set ARM
55608 +@set AVR32
55609 @set HPPA
55610 @set MMIX
55611 @set MSP430
55612 --- a/ld/config.in
55613 +++ b/ld/config.in
55614 @@ -187,7 +187,7 @@
55615
55616 /* If using the C implementation of alloca, define if you know the
55617 direction of stack growth for your system; otherwise it will be
55618 - automatically deduced at run-time.
55619 + automatically deduced at runtime.
55620 STACK_DIRECTION > 0 => grows toward higher addresses
55621 STACK_DIRECTION < 0 => grows toward lower addresses
55622 STACK_DIRECTION = 0 => direction of growth unknown */
55623 @@ -215,8 +215,8 @@
55624 #undef inline
55625 #endif
55626
55627 -/* Define to `long' if <sys/types.h> does not define. */
55628 +/* Define to `long int' if <sys/types.h> does not define. */
55629 #undef off_t
55630
55631 -/* Define to `unsigned' if <sys/types.h> does not define. */
55632 +/* Define to `unsigned int' if <sys/types.h> does not define. */
55633 #undef size_t
55634 --- a/ld/configure
55635 +++ b/ld/configure
55636 @@ -1,25 +1,54 @@
55637 #! /bin/sh
55638 # Guess values for system-dependent variables and create Makefiles.
55639 -# Generated by GNU Autoconf 2.59.
55640 +# Generated by GNU Autoconf 2.61.
55641 #
55642 -# Copyright (C) 2003 Free Software Foundation, Inc.
55643 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
55644 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55645 # This configure script is free software; the Free Software Foundation
55646 # gives unlimited permission to copy, distribute and modify it.
55647 ## --------------------- ##
55648 ## M4sh Initialization. ##
55649 ## --------------------- ##
55650
55651 -# Be Bourne compatible
55652 +# Be more Bourne compatible
55653 +DUALCASE=1; export DUALCASE # for MKS sh
55654 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
55655 emulate sh
55656 NULLCMD=:
55657 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
55658 # is contrary to our usage. Disable this feature.
55659 alias -g '${1+"$@"}'='"$@"'
55660 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
55661 - set -o posix
55662 + setopt NO_GLOB_SUBST
55663 +else
55664 + case `(set -o) 2>/dev/null` in
55665 + *posix*) set -o posix ;;
55666 +esac
55667 +
55668 +fi
55669 +
55670 +
55671 +
55672 +
55673 +# PATH needs CR
55674 +# Avoid depending upon Character Ranges.
55675 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
55676 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
55677 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
55678 +as_cr_digits='0123456789'
55679 +as_cr_alnum=$as_cr_Letters$as_cr_digits
55680 +
55681 +# The user is always right.
55682 +if test "${PATH_SEPARATOR+set}" != set; then
55683 + echo "#! /bin/sh" >conf$$.sh
55684 + echo "exit 0" >>conf$$.sh
55685 + chmod +x conf$$.sh
55686 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55687 + PATH_SEPARATOR=';'
55688 + else
55689 + PATH_SEPARATOR=:
55690 + fi
55691 + rm -f conf$$.sh
55692 fi
55693 -DUALCASE=1; export DUALCASE # for MKS sh
55694
55695 # Support unset when possible.
55696 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55697 @@ -29,8 +58,43 @@ else
55698 fi
55699
55700
55701 +# IFS
55702 +# We need space, tab and new line, in precisely that order. Quoting is
55703 +# there to prevent editors from complaining about space-tab.
55704 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
55705 +# splitting by setting IFS to empty value.)
55706 +as_nl='
55707 +'
55708 +IFS=" "" $as_nl"
55709 +
55710 +# Find who we are. Look in the path if we contain no directory separator.
55711 +case $0 in
55712 + *[\\/]* ) as_myself=$0 ;;
55713 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55714 +for as_dir in $PATH
55715 +do
55716 + IFS=$as_save_IFS
55717 + test -z "$as_dir" && as_dir=.
55718 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55719 +done
55720 +IFS=$as_save_IFS
55721 +
55722 + ;;
55723 +esac
55724 +# We did not find ourselves, most probably we were run as `sh COMMAND'
55725 +# in which case we are not to be found in the path.
55726 +if test "x$as_myself" = x; then
55727 + as_myself=$0
55728 +fi
55729 +if test ! -f "$as_myself"; then
55730 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
55731 + { (exit 1); exit 1; }
55732 +fi
55733 +
55734 # Work around bugs in pre-3.0 UWIN ksh.
55735 -$as_unset ENV MAIL MAILPATH
55736 +for as_var in ENV MAIL MAILPATH
55737 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55738 +done
55739 PS1='$ '
55740 PS2='> '
55741 PS4='+ '
55742 @@ -44,18 +108,19 @@ do
55743 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
55744 eval $as_var=C; export $as_var
55745 else
55746 - $as_unset $as_var
55747 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55748 fi
55749 done
55750
55751 # Required to use basename.
55752 -if expr a : '\(a\)' >/dev/null 2>&1; then
55753 +if expr a : '\(a\)' >/dev/null 2>&1 &&
55754 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
55755 as_expr=expr
55756 else
55757 as_expr=false
55758 fi
55759
55760 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
55761 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
55762 as_basename=basename
55763 else
55764 as_basename=false
55765 @@ -63,157 +128,388 @@ fi
55766
55767
55768 # Name of the executable.
55769 -as_me=`$as_basename "$0" ||
55770 +as_me=`$as_basename -- "$0" ||
55771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
55772 X"$0" : 'X\(//\)$' \| \
55773 - X"$0" : 'X\(/\)$' \| \
55774 - . : '\(.\)' 2>/dev/null ||
55775 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
55776 echo X/"$0" |
55777 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
55778 - /^X\/\(\/\/\)$/{ s//\1/; q; }
55779 - /^X\/\(\/\).*/{ s//\1/; q; }
55780 - s/.*/./; q'`
55781 + sed '/^.*\/\([^/][^/]*\)\/*$/{
55782 + s//\1/
55783 + q
55784 + }
55785 + /^X\/\(\/\/\)$/{
55786 + s//\1/
55787 + q
55788 + }
55789 + /^X\/\(\/\).*/{
55790 + s//\1/
55791 + q
55792 + }
55793 + s/.*/./; q'`
55794
55795 +# CDPATH.
55796 +$as_unset CDPATH
55797
55798 -# PATH needs CR, and LINENO needs CR and PATH.
55799 -# Avoid depending upon Character Ranges.
55800 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
55801 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
55802 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
55803 -as_cr_digits='0123456789'
55804 -as_cr_alnum=$as_cr_Letters$as_cr_digits
55805
55806 -# The user is always right.
55807 -if test "${PATH_SEPARATOR+set}" != set; then
55808 - echo "#! /bin/sh" >conf$$.sh
55809 - echo "exit 0" >>conf$$.sh
55810 - chmod +x conf$$.sh
55811 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55812 - PATH_SEPARATOR=';'
55813 - else
55814 - PATH_SEPARATOR=:
55815 - fi
55816 - rm -f conf$$.sh
55817 +if test "x$CONFIG_SHELL" = x; then
55818 + if (eval ":") 2>/dev/null; then
55819 + as_have_required=yes
55820 +else
55821 + as_have_required=no
55822 +fi
55823 +
55824 + if test $as_have_required = yes && (eval ":
55825 +(as_func_return () {
55826 + (exit \$1)
55827 +}
55828 +as_func_success () {
55829 + as_func_return 0
55830 +}
55831 +as_func_failure () {
55832 + as_func_return 1
55833 +}
55834 +as_func_ret_success () {
55835 + return 0
55836 +}
55837 +as_func_ret_failure () {
55838 + return 1
55839 +}
55840 +
55841 +exitcode=0
55842 +if as_func_success; then
55843 + :
55844 +else
55845 + exitcode=1
55846 + echo as_func_success failed.
55847 fi
55848
55849 +if as_func_failure; then
55850 + exitcode=1
55851 + echo as_func_failure succeeded.
55852 +fi
55853
55854 - as_lineno_1=$LINENO
55855 - as_lineno_2=$LINENO
55856 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
55857 - test "x$as_lineno_1" != "x$as_lineno_2" &&
55858 - test "x$as_lineno_3" = "x$as_lineno_2" || {
55859 - # Find who we are. Look in the path if we contain no path at all
55860 - # relative or not.
55861 - case $0 in
55862 - *[\\/]* ) as_myself=$0 ;;
55863 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55864 -for as_dir in $PATH
55865 -do
55866 - IFS=$as_save_IFS
55867 - test -z "$as_dir" && as_dir=.
55868 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55869 -done
55870 +if as_func_ret_success; then
55871 + :
55872 +else
55873 + exitcode=1
55874 + echo as_func_ret_success failed.
55875 +fi
55876
55877 - ;;
55878 - esac
55879 - # We did not find ourselves, most probably we were run as `sh COMMAND'
55880 - # in which case we are not to be found in the path.
55881 - if test "x$as_myself" = x; then
55882 - as_myself=$0
55883 - fi
55884 - if test ! -f "$as_myself"; then
55885 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
55886 - { (exit 1); exit 1; }; }
55887 - fi
55888 - case $CONFIG_SHELL in
55889 - '')
55890 +if as_func_ret_failure; then
55891 + exitcode=1
55892 + echo as_func_ret_failure succeeded.
55893 +fi
55894 +
55895 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
55896 + :
55897 +else
55898 + exitcode=1
55899 + echo positional parameters were not saved.
55900 +fi
55901 +
55902 +test \$exitcode = 0) || { (exit 1); exit 1; }
55903 +
55904 +(
55905 + as_lineno_1=\$LINENO
55906 + as_lineno_2=\$LINENO
55907 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
55908 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
55909 +") 2> /dev/null; then
55910 + :
55911 +else
55912 + as_candidate_shells=
55913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55914 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
55915 do
55916 IFS=$as_save_IFS
55917 test -z "$as_dir" && as_dir=.
55918 - for as_base in sh bash ksh sh5; do
55919 - case $as_dir in
55920 + case $as_dir in
55921 /*)
55922 - if ("$as_dir/$as_base" -c '
55923 + for as_base in sh bash ksh sh5; do
55924 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
55925 + done;;
55926 + esac
55927 +done
55928 +IFS=$as_save_IFS
55929 +
55930 +
55931 + for as_shell in $as_candidate_shells $SHELL; do
55932 + # Try only shells that exist, to save several forks.
55933 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
55934 + { ("$as_shell") 2> /dev/null <<\_ASEOF
55935 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
55936 + emulate sh
55937 + NULLCMD=:
55938 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
55939 + # is contrary to our usage. Disable this feature.
55940 + alias -g '${1+"$@"}'='"$@"'
55941 + setopt NO_GLOB_SUBST
55942 +else
55943 + case `(set -o) 2>/dev/null` in
55944 + *posix*) set -o posix ;;
55945 +esac
55946 +
55947 +fi
55948 +
55949 +
55950 +:
55951 +_ASEOF
55952 +}; then
55953 + CONFIG_SHELL=$as_shell
55954 + as_have_required=yes
55955 + if { "$as_shell" 2> /dev/null <<\_ASEOF
55956 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
55957 + emulate sh
55958 + NULLCMD=:
55959 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
55960 + # is contrary to our usage. Disable this feature.
55961 + alias -g '${1+"$@"}'='"$@"'
55962 + setopt NO_GLOB_SUBST
55963 +else
55964 + case `(set -o) 2>/dev/null` in
55965 + *posix*) set -o posix ;;
55966 +esac
55967 +
55968 +fi
55969 +
55970 +
55971 +:
55972 +(as_func_return () {
55973 + (exit $1)
55974 +}
55975 +as_func_success () {
55976 + as_func_return 0
55977 +}
55978 +as_func_failure () {
55979 + as_func_return 1
55980 +}
55981 +as_func_ret_success () {
55982 + return 0
55983 +}
55984 +as_func_ret_failure () {
55985 + return 1
55986 +}
55987 +
55988 +exitcode=0
55989 +if as_func_success; then
55990 + :
55991 +else
55992 + exitcode=1
55993 + echo as_func_success failed.
55994 +fi
55995 +
55996 +if as_func_failure; then
55997 + exitcode=1
55998 + echo as_func_failure succeeded.
55999 +fi
56000 +
56001 +if as_func_ret_success; then
56002 + :
56003 +else
56004 + exitcode=1
56005 + echo as_func_ret_success failed.
56006 +fi
56007 +
56008 +if as_func_ret_failure; then
56009 + exitcode=1
56010 + echo as_func_ret_failure succeeded.
56011 +fi
56012 +
56013 +if ( set x; as_func_ret_success y && test x = "$1" ); then
56014 + :
56015 +else
56016 + exitcode=1
56017 + echo positional parameters were not saved.
56018 +fi
56019 +
56020 +test $exitcode = 0) || { (exit 1); exit 1; }
56021 +
56022 +(
56023 as_lineno_1=$LINENO
56024 as_lineno_2=$LINENO
56025 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
56026 test "x$as_lineno_1" != "x$as_lineno_2" &&
56027 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
56028 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
56029 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
56030 - CONFIG_SHELL=$as_dir/$as_base
56031 - export CONFIG_SHELL
56032 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
56033 - fi;;
56034 - esac
56035 - done
56036 -done
56037 -;;
56038 - esac
56039 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
56040 +
56041 +_ASEOF
56042 +}; then
56043 + break
56044 +fi
56045 +
56046 +fi
56047 +
56048 + done
56049 +
56050 + if test "x$CONFIG_SHELL" != x; then
56051 + for as_var in BASH_ENV ENV
56052 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56053 + done
56054 + export CONFIG_SHELL
56055 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
56056 +fi
56057 +
56058 +
56059 + if test $as_have_required = no; then
56060 + echo This script requires a shell more modern than all the
56061 + echo shells that I found on your system. Please install a
56062 + echo modern shell, or manually run the script under such a
56063 + echo shell if you do have one.
56064 + { (exit 1); exit 1; }
56065 +fi
56066 +
56067 +
56068 +fi
56069 +
56070 +fi
56071 +
56072 +
56073 +
56074 +(eval "as_func_return () {
56075 + (exit \$1)
56076 +}
56077 +as_func_success () {
56078 + as_func_return 0
56079 +}
56080 +as_func_failure () {
56081 + as_func_return 1
56082 +}
56083 +as_func_ret_success () {
56084 + return 0
56085 +}
56086 +as_func_ret_failure () {
56087 + return 1
56088 +}
56089 +
56090 +exitcode=0
56091 +if as_func_success; then
56092 + :
56093 +else
56094 + exitcode=1
56095 + echo as_func_success failed.
56096 +fi
56097 +
56098 +if as_func_failure; then
56099 + exitcode=1
56100 + echo as_func_failure succeeded.
56101 +fi
56102 +
56103 +if as_func_ret_success; then
56104 + :
56105 +else
56106 + exitcode=1
56107 + echo as_func_ret_success failed.
56108 +fi
56109 +
56110 +if as_func_ret_failure; then
56111 + exitcode=1
56112 + echo as_func_ret_failure succeeded.
56113 +fi
56114 +
56115 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
56116 + :
56117 +else
56118 + exitcode=1
56119 + echo positional parameters were not saved.
56120 +fi
56121 +
56122 +test \$exitcode = 0") || {
56123 + echo No shell found that supports shell functions.
56124 + echo Please tell autoconf@gnu.org about your system,
56125 + echo including any error possibly output before this
56126 + echo message
56127 +}
56128 +
56129 +
56130 +
56131 + as_lineno_1=$LINENO
56132 + as_lineno_2=$LINENO
56133 + test "x$as_lineno_1" != "x$as_lineno_2" &&
56134 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
56135
56136 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56137 # uniformly replaced by the line number. The first 'sed' inserts a
56138 - # line-number line before each line; the second 'sed' does the real
56139 - # work. The second script uses 'N' to pair each line-number line
56140 - # with the numbered line, and appends trailing '-' during
56141 - # substitution so that $LINENO is not a special case at line end.
56142 + # line-number line after each line using $LINENO; the second 'sed'
56143 + # does the real work. The second script uses 'N' to pair each
56144 + # line-number line with the line containing $LINENO, and appends
56145 + # trailing '-' during substitution so that $LINENO is not a special
56146 + # case at line end.
56147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56148 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
56149 - sed '=' <$as_myself |
56150 + # scripts with optimization help from Paolo Bonzini. Blame Lee
56151 + # E. McMahon (1931-1989) for sed's syntax. :-)
56152 + sed -n '
56153 + p
56154 + /[$]LINENO/=
56155 + ' <$as_myself |
56156 sed '
56157 + s/[$]LINENO.*/&-/
56158 + t lineno
56159 + b
56160 + :lineno
56161 N
56162 - s,$,-,
56163 - : loop
56164 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
56165 + :loop
56166 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
56167 t loop
56168 - s,-$,,
56169 - s,^['$as_cr_digits']*\n,,
56170 + s/-\n.*//
56171 ' >$as_me.lineno &&
56172 - chmod +x $as_me.lineno ||
56173 + chmod +x "$as_me.lineno" ||
56174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
56175 { (exit 1); exit 1; }; }
56176
56177 # Don't try to exec as it changes $[0], causing all sort of problems
56178 # (the dirname of $[0] is not the place where we might find the
56179 - # original and so on. Autoconf is especially sensible to this).
56180 - . ./$as_me.lineno
56181 + # original and so on. Autoconf is especially sensitive to this).
56182 + . "./$as_me.lineno"
56183 # Exit status is that of the last command.
56184 exit
56185 }
56186
56187
56188 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
56189 - *c*,-n*) ECHO_N= ECHO_C='
56190 -' ECHO_T=' ' ;;
56191 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
56192 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
56193 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56194 + as_dirname=dirname
56195 +else
56196 + as_dirname=false
56197 +fi
56198 +
56199 +ECHO_C= ECHO_N= ECHO_T=
56200 +case `echo -n x` in
56201 +-n*)
56202 + case `echo 'x\c'` in
56203 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
56204 + *) ECHO_C='\c';;
56205 + esac;;
56206 +*)
56207 + ECHO_N='-n';;
56208 esac
56209
56210 -if expr a : '\(a\)' >/dev/null 2>&1; then
56211 +if expr a : '\(a\)' >/dev/null 2>&1 &&
56212 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
56213 as_expr=expr
56214 else
56215 as_expr=false
56216 fi
56217
56218 rm -f conf$$ conf$$.exe conf$$.file
56219 +if test -d conf$$.dir; then
56220 + rm -f conf$$.dir/conf$$.file
56221 +else
56222 + rm -f conf$$.dir
56223 + mkdir conf$$.dir
56224 +fi
56225 echo >conf$$.file
56226 if ln -s conf$$.file conf$$ 2>/dev/null; then
56227 - # We could just check for DJGPP; but this test a) works b) is more generic
56228 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
56229 - if test -f conf$$.exe; then
56230 - # Don't use ln at all; we don't have any links
56231 + as_ln_s='ln -s'
56232 + # ... but there are two gotchas:
56233 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56234 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56235 + # In both cases, we have to default to `cp -p'.
56236 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56237 as_ln_s='cp -p'
56238 - else
56239 - as_ln_s='ln -s'
56240 - fi
56241 elif ln conf$$.file conf$$ 2>/dev/null; then
56242 as_ln_s=ln
56243 else
56244 as_ln_s='cp -p'
56245 fi
56246 -rm -f conf$$ conf$$.exe conf$$.file
56247 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56248 +rmdir conf$$.dir 2>/dev/null
56249
56250 if mkdir -p . 2>/dev/null; then
56251 as_mkdir_p=:
56252 @@ -222,7 +518,28 @@ else
56253 as_mkdir_p=false
56254 fi
56255
56256 -as_executable_p="test -f"
56257 +if test -x / >/dev/null 2>&1; then
56258 + as_test_x='test -x'
56259 +else
56260 + if ls -dL / >/dev/null 2>&1; then
56261 + as_ls_L_option=L
56262 + else
56263 + as_ls_L_option=
56264 + fi
56265 + as_test_x='
56266 + eval sh -c '\''
56267 + if test -d "$1"; then
56268 + test -d "$1/.";
56269 + else
56270 + case $1 in
56271 + -*)set "./$1";;
56272 + esac;
56273 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56274 + ???[sx]*):;;*)false;;esac;fi
56275 + '\'' sh
56276 + '
56277 +fi
56278 +as_executable_p=$as_test_x
56279
56280 # Sed expression to map a string onto a valid CPP name.
56281 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56282 @@ -231,39 +548,27 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
56283 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56284
56285
56286 -# IFS
56287 -# We need space, tab and new line, in precisely that order.
56288 -as_nl='
56289 -'
56290 -IFS=" $as_nl"
56291 -
56292 -# CDPATH.
56293 -$as_unset CDPATH
56294
56295 +exec 7<&0 </dev/null 6>&1
56296
56297 # Name of the host.
56298 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
56299 # so uname gets run too.
56300 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
56301
56302 -exec 6>&1
56303 -
56304 #
56305 # Initializations.
56306 #
56307 ac_default_prefix=/usr/local
56308 +ac_clean_files=
56309 ac_config_libobj_dir=.
56310 +LIBOBJS=
56311 cross_compiling=no
56312 subdirs=
56313 MFLAGS=
56314 MAKEFLAGS=
56315 SHELL=${CONFIG_SHELL-/bin/sh}
56316
56317 -# Maximum number of lines to put in a shell here document.
56318 -# This variable seems obsolete. It should probably be removed, and
56319 -# only ac_max_sed_lines should be used.
56320 -: ${ac_max_here_lines=38}
56321 -
56322 # Identity of this package.
56323 PACKAGE_NAME=
56324 PACKAGE_TARNAME=
56325 @@ -275,42 +580,191 @@ ac_unique_file="ldmain.c"
56326 # Factoring default headers for most tests.
56327 ac_includes_default="\
56328 #include <stdio.h>
56329 -#if HAVE_SYS_TYPES_H
56330 +#ifdef HAVE_SYS_TYPES_H
56331 # include <sys/types.h>
56332 #endif
56333 -#if HAVE_SYS_STAT_H
56334 +#ifdef HAVE_SYS_STAT_H
56335 # include <sys/stat.h>
56336 #endif
56337 -#if STDC_HEADERS
56338 +#ifdef STDC_HEADERS
56339 # include <stdlib.h>
56340 # include <stddef.h>
56341 #else
56342 -# if HAVE_STDLIB_H
56343 +# ifdef HAVE_STDLIB_H
56344 # include <stdlib.h>
56345 # endif
56346 #endif
56347 -#if HAVE_STRING_H
56348 -# if !STDC_HEADERS && HAVE_MEMORY_H
56349 +#ifdef HAVE_STRING_H
56350 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
56351 # include <memory.h>
56352 # endif
56353 # include <string.h>
56354 #endif
56355 -#if HAVE_STRINGS_H
56356 +#ifdef HAVE_STRINGS_H
56357 # include <strings.h>
56358 #endif
56359 -#if HAVE_INTTYPES_H
56360 +#ifdef HAVE_INTTYPES_H
56361 # include <inttypes.h>
56362 -#else
56363 -# if HAVE_STDINT_H
56364 -# include <stdint.h>
56365 -# endif
56366 #endif
56367 -#if HAVE_UNISTD_H
56368 +#ifdef HAVE_STDINT_H
56369 +# include <stdint.h>
56370 +#endif
56371 +#ifdef HAVE_UNISTD_H
56372 # include <unistd.h>
56373 #endif"
56374
56375 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
56376 +ac_subst_vars='SHELL
56377 +PATH_SEPARATOR
56378 +PACKAGE_NAME
56379 +PACKAGE_TARNAME
56380 +PACKAGE_VERSION
56381 +PACKAGE_STRING
56382 +PACKAGE_BUGREPORT
56383 +exec_prefix
56384 +prefix
56385 +program_transform_name
56386 +bindir
56387 +sbindir
56388 +libexecdir
56389 +datarootdir
56390 +datadir
56391 +sysconfdir
56392 +sharedstatedir
56393 +localstatedir
56394 +includedir
56395 +oldincludedir
56396 +docdir
56397 +infodir
56398 +htmldir
56399 +dvidir
56400 +pdfdir
56401 +psdir
56402 +libdir
56403 +localedir
56404 +mandir
56405 +DEFS
56406 +ECHO_C
56407 +ECHO_N
56408 +ECHO_T
56409 +LIBS
56410 +build_alias
56411 +host_alias
56412 +target_alias
56413 +build
56414 +build_cpu
56415 +build_vendor
56416 +build_os
56417 +host
56418 +host_cpu
56419 +host_vendor
56420 +host_os
56421 +target
56422 +target_cpu
56423 +target_vendor
56424 +target_os
56425 +CC
56426 +CFLAGS
56427 +LDFLAGS
56428 +CPPFLAGS
56429 +ac_ct_CC
56430 +EXEEXT
56431 +OBJEXT
56432 +INSTALL_PROGRAM
56433 +INSTALL_SCRIPT
56434 +INSTALL_DATA
56435 +CYGPATH_W
56436 +PACKAGE
56437 +VERSION
56438 +ACLOCAL
56439 +AUTOCONF
56440 +AUTOMAKE
56441 +AUTOHEADER
56442 +MAKEINFO
56443 +install_sh
56444 +STRIP
56445 +INSTALL_STRIP_PROGRAM
56446 +mkdir_p
56447 +AWK
56448 +SET_MAKE
56449 +am__leading_dot
56450 +AMTAR
56451 +am__tar
56452 +am__untar
56453 +DEPDIR
56454 +am__include
56455 +am__quote
56456 +AMDEP_TRUE
56457 +AMDEP_FALSE
56458 +AMDEPBACKSLASH
56459 +CCDEPMODE
56460 +am__fastdepCC_TRUE
56461 +am__fastdepCC_FALSE
56462 +LN_S
56463 +RANLIB
56464 +LIBTOOL
56465 +use_sysroot
56466 +TARGET_SYSTEM_ROOT
56467 +TARGET_SYSTEM_ROOT_DEFINE
56468 +WARN_CFLAGS
56469 +NO_WERROR
56470 +CPP
56471 +GREP
56472 +EGREP
56473 +ALLOCA
56474 +USE_NLS
56475 +MSGFMT
56476 +GMSGFMT
56477 +XGETTEXT
56478 +USE_INCLUDED_LIBINTL
56479 +CATALOGS
56480 +CATOBJEXT
56481 +DATADIRNAME
56482 +GMOFILES
56483 +INSTOBJEXT
56484 +INTLDEPS
56485 +INTLLIBS
56486 +INTLOBJS
56487 +POFILES
56488 +POSUB
56489 +INCLUDE_LOCALE_H
56490 +GT_NO
56491 +GT_YES
56492 +MKINSTALLDIRS
56493 +l
56494 +YACC
56495 +YFLAGS
56496 +LEX
56497 +LEX_OUTPUT_ROOT
56498 +LEXLIB
56499 +MAINTAINER_MODE_TRUE
56500 +MAINTAINER_MODE_FALSE
56501 +MAINT
56502 +HDEFINES
56503 +HOSTING_CRT0
56504 +HOSTING_LIBS
56505 +NATIVE_LIB_DIRS
56506 +STRINGIFY
56507 +EMUL
56508 +EMULATION_OFILES
56509 +EMUL_EXTRA_OFILES
56510 +LIB_PATH
56511 +EMULATION_LIBPATH
56512 +TESTBFDLIB
56513 +LIBOBJS
56514 +LTLIBOBJS'
56515 ac_subst_files='TDIRS'
56516 + ac_precious_vars='build_alias
56517 +host_alias
56518 +target_alias
56519 +CC
56520 +CFLAGS
56521 +LDFLAGS
56522 +LIBS
56523 +CPPFLAGS
56524 +CPP
56525 +YACC
56526 +YFLAGS'
56527 +
56528
56529 # Initialize some variables set by options.
56530 ac_init_help=
56531 @@ -337,34 +791,48 @@ x_libraries=NONE
56532 # and all the variables that are supposed to be based on exec_prefix
56533 # by default will actually change.
56534 # Use braces instead of parens because sh, perl, etc. also accept them.
56535 +# (The list follows the same order as the GNU Coding Standards.)
56536 bindir='${exec_prefix}/bin'
56537 sbindir='${exec_prefix}/sbin'
56538 libexecdir='${exec_prefix}/libexec'
56539 -datadir='${prefix}/share'
56540 +datarootdir='${prefix}/share'
56541 +datadir='${datarootdir}'
56542 sysconfdir='${prefix}/etc'
56543 sharedstatedir='${prefix}/com'
56544 localstatedir='${prefix}/var'
56545 -libdir='${exec_prefix}/lib'
56546 includedir='${prefix}/include'
56547 oldincludedir='/usr/include'
56548 -infodir='${prefix}/info'
56549 -mandir='${prefix}/man'
56550 +docdir='${datarootdir}/doc/${PACKAGE}'
56551 +infodir='${datarootdir}/info'
56552 +htmldir='${docdir}'
56553 +dvidir='${docdir}'
56554 +pdfdir='${docdir}'
56555 +psdir='${docdir}'
56556 +libdir='${exec_prefix}/lib'
56557 +localedir='${datarootdir}/locale'
56558 +mandir='${datarootdir}/man'
56559
56560 ac_prev=
56561 +ac_dashdash=
56562 for ac_option
56563 do
56564 # If the previous option needs an argument, assign it.
56565 if test -n "$ac_prev"; then
56566 - eval "$ac_prev=\$ac_option"
56567 + eval $ac_prev=\$ac_option
56568 ac_prev=
56569 continue
56570 fi
56571
56572 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
56573 + case $ac_option in
56574 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
56575 + *) ac_optarg=yes ;;
56576 + esac
56577
56578 # Accept the important Cygnus configure options, so we can diagnose typos.
56579
56580 - case $ac_option in
56581 + case $ac_dashdash$ac_option in
56582 + --)
56583 + ac_dashdash=yes ;;
56584
56585 -bindir | --bindir | --bindi | --bind | --bin | --bi)
56586 ac_prev=bindir ;;
56587 @@ -386,33 +854,45 @@ do
56588 --config-cache | -C)
56589 cache_file=config.cache ;;
56590
56591 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
56592 + -datadir | --datadir | --datadi | --datad)
56593 ac_prev=datadir ;;
56594 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
56595 - | --da=*)
56596 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
56597 datadir=$ac_optarg ;;
56598
56599 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
56600 + | --dataroo | --dataro | --datar)
56601 + ac_prev=datarootdir ;;
56602 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
56603 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
56604 + datarootdir=$ac_optarg ;;
56605 +
56606 -disable-* | --disable-*)
56607 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
56608 # Reject names that are not valid shell variable names.
56609 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56610 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56611 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
56612 { (exit 1); exit 1; }; }
56613 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
56614 - eval "enable_$ac_feature=no" ;;
56615 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
56616 + eval enable_$ac_feature=no ;;
56617 +
56618 + -docdir | --docdir | --docdi | --doc | --do)
56619 + ac_prev=docdir ;;
56620 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
56621 + docdir=$ac_optarg ;;
56622 +
56623 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
56624 + ac_prev=dvidir ;;
56625 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
56626 + dvidir=$ac_optarg ;;
56627
56628 -enable-* | --enable-*)
56629 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
56630 # Reject names that are not valid shell variable names.
56631 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56632 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56633 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
56634 { (exit 1); exit 1; }; }
56635 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
56636 - case $ac_option in
56637 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
56638 - *) ac_optarg=yes ;;
56639 - esac
56640 - eval "enable_$ac_feature='$ac_optarg'" ;;
56641 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
56642 + eval enable_$ac_feature=\$ac_optarg ;;
56643
56644 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
56645 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
56646 @@ -439,6 +919,12 @@ do
56647 -host=* | --host=* | --hos=* | --ho=*)
56648 host_alias=$ac_optarg ;;
56649
56650 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
56651 + ac_prev=htmldir ;;
56652 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
56653 + | --ht=*)
56654 + htmldir=$ac_optarg ;;
56655 +
56656 -includedir | --includedir | --includedi | --included | --include \
56657 | --includ | --inclu | --incl | --inc)
56658 ac_prev=includedir ;;
56659 @@ -463,13 +949,16 @@ do
56660 | --libexe=* | --libex=* | --libe=*)
56661 libexecdir=$ac_optarg ;;
56662
56663 + -localedir | --localedir | --localedi | --localed | --locale)
56664 + ac_prev=localedir ;;
56665 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
56666 + localedir=$ac_optarg ;;
56667 +
56668 -localstatedir | --localstatedir | --localstatedi | --localstated \
56669 - | --localstate | --localstat | --localsta | --localst \
56670 - | --locals | --local | --loca | --loc | --lo)
56671 + | --localstate | --localstat | --localsta | --localst | --locals)
56672 ac_prev=localstatedir ;;
56673 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
56674 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
56675 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
56676 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
56677 localstatedir=$ac_optarg ;;
56678
56679 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
56680 @@ -534,6 +1023,16 @@ do
56681 | --progr-tra=* | --program-tr=* | --program-t=*)
56682 program_transform_name=$ac_optarg ;;
56683
56684 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
56685 + ac_prev=pdfdir ;;
56686 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
56687 + pdfdir=$ac_optarg ;;
56688 +
56689 + -psdir | --psdir | --psdi | --psd | --ps)
56690 + ac_prev=psdir ;;
56691 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
56692 + psdir=$ac_optarg ;;
56693 +
56694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56695 | -silent | --silent | --silen | --sile | --sil)
56696 silent=yes ;;
56697 @@ -586,24 +1085,20 @@ do
56698 -with-* | --with-*)
56699 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
56700 # Reject names that are not valid shell variable names.
56701 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56702 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56703 { echo "$as_me: error: invalid package name: $ac_package" >&2
56704 { (exit 1); exit 1; }; }
56705 - ac_package=`echo $ac_package| sed 's/-/_/g'`
56706 - case $ac_option in
56707 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
56708 - *) ac_optarg=yes ;;
56709 - esac
56710 - eval "with_$ac_package='$ac_optarg'" ;;
56711 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
56712 + eval with_$ac_package=\$ac_optarg ;;
56713
56714 -without-* | --without-*)
56715 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
56716 # Reject names that are not valid shell variable names.
56717 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56718 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56719 { echo "$as_me: error: invalid package name: $ac_package" >&2
56720 { (exit 1); exit 1; }; }
56721 - ac_package=`echo $ac_package | sed 's/-/_/g'`
56722 - eval "with_$ac_package=no" ;;
56723 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
56724 + eval with_$ac_package=no ;;
56725
56726 --x)
56727 # Obsolete; use --with-x.
56728 @@ -634,8 +1129,7 @@ Try \`$0 --help' for more information."
56729 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
56730 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
56731 { (exit 1); exit 1; }; }
56732 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
56733 - eval "$ac_envvar='$ac_optarg'"
56734 + eval $ac_envvar=\$ac_optarg
56735 export $ac_envvar ;;
56736
56737 *)
56738 @@ -655,27 +1149,19 @@ if test -n "$ac_prev"; then
56739 { (exit 1); exit 1; }; }
56740 fi
56741
56742 -# Be sure to have absolute paths.
56743 -for ac_var in exec_prefix prefix
56744 +# Be sure to have absolute directory names.
56745 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
56746 + datadir sysconfdir sharedstatedir localstatedir includedir \
56747 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
56748 + libdir localedir mandir
56749 do
56750 - eval ac_val=$`echo $ac_var`
56751 + eval ac_val=\$$ac_var
56752 case $ac_val in
56753 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
56754 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
56755 - { (exit 1); exit 1; }; };;
56756 - esac
56757 -done
56758 -
56759 -# Be sure to have absolute paths.
56760 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
56761 - localstatedir libdir includedir oldincludedir infodir mandir
56762 -do
56763 - eval ac_val=$`echo $ac_var`
56764 - case $ac_val in
56765 - [\\/$]* | ?:[\\/]* ) ;;
56766 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
56767 - { (exit 1); exit 1; }; };;
56768 + [\\/$]* | ?:[\\/]* ) continue;;
56769 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
56770 esac
56771 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
56772 + { (exit 1); exit 1; }; }
56773 done
56774
56775 # There might be people who depend on the old broken behavior: `$host'
56776 @@ -702,74 +1188,76 @@ test -n "$host_alias" && ac_tool_prefix=
56777 test "$silent" = yes && exec 6>/dev/null
56778
56779
56780 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
56781 +ac_ls_di=`ls -di .` &&
56782 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
56783 + { echo "$as_me: error: Working directory cannot be determined" >&2
56784 + { (exit 1); exit 1; }; }
56785 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
56786 + { echo "$as_me: error: pwd does not report name of working directory" >&2
56787 + { (exit 1); exit 1; }; }
56788 +
56789 +
56790 # Find the source files, if location was not specified.
56791 if test -z "$srcdir"; then
56792 ac_srcdir_defaulted=yes
56793 - # Try the directory containing this script, then its parent.
56794 - ac_confdir=`(dirname "$0") 2>/dev/null ||
56795 + # Try the directory containing this script, then the parent directory.
56796 + ac_confdir=`$as_dirname -- "$0" ||
56797 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56798 X"$0" : 'X\(//\)[^/]' \| \
56799 X"$0" : 'X\(//\)$' \| \
56800 - X"$0" : 'X\(/\)' \| \
56801 - . : '\(.\)' 2>/dev/null ||
56802 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56803 echo X"$0" |
56804 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56805 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56806 - /^X\(\/\/\)$/{ s//\1/; q; }
56807 - /^X\(\/\).*/{ s//\1/; q; }
56808 - s/.*/./; q'`
56809 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56810 + s//\1/
56811 + q
56812 + }
56813 + /^X\(\/\/\)[^/].*/{
56814 + s//\1/
56815 + q
56816 + }
56817 + /^X\(\/\/\)$/{
56818 + s//\1/
56819 + q
56820 + }
56821 + /^X\(\/\).*/{
56822 + s//\1/
56823 + q
56824 + }
56825 + s/.*/./; q'`
56826 srcdir=$ac_confdir
56827 - if test ! -r $srcdir/$ac_unique_file; then
56828 + if test ! -r "$srcdir/$ac_unique_file"; then
56829 srcdir=..
56830 fi
56831 else
56832 ac_srcdir_defaulted=no
56833 fi
56834 -if test ! -r $srcdir/$ac_unique_file; then
56835 - if test "$ac_srcdir_defaulted" = yes; then
56836 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
56837 - { (exit 1); exit 1; }; }
56838 - else
56839 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
56840 - { (exit 1); exit 1; }; }
56841 - fi
56842 -fi
56843 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
56844 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
56845 - { (exit 1); exit 1; }; }
56846 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
56847 -ac_env_build_alias_set=${build_alias+set}
56848 -ac_env_build_alias_value=$build_alias
56849 -ac_cv_env_build_alias_set=${build_alias+set}
56850 -ac_cv_env_build_alias_value=$build_alias
56851 -ac_env_host_alias_set=${host_alias+set}
56852 -ac_env_host_alias_value=$host_alias
56853 -ac_cv_env_host_alias_set=${host_alias+set}
56854 -ac_cv_env_host_alias_value=$host_alias
56855 -ac_env_target_alias_set=${target_alias+set}
56856 -ac_env_target_alias_value=$target_alias
56857 -ac_cv_env_target_alias_set=${target_alias+set}
56858 -ac_cv_env_target_alias_value=$target_alias
56859 -ac_env_CC_set=${CC+set}
56860 -ac_env_CC_value=$CC
56861 -ac_cv_env_CC_set=${CC+set}
56862 -ac_cv_env_CC_value=$CC
56863 -ac_env_CFLAGS_set=${CFLAGS+set}
56864 -ac_env_CFLAGS_value=$CFLAGS
56865 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
56866 -ac_cv_env_CFLAGS_value=$CFLAGS
56867 -ac_env_LDFLAGS_set=${LDFLAGS+set}
56868 -ac_env_LDFLAGS_value=$LDFLAGS
56869 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
56870 -ac_cv_env_LDFLAGS_value=$LDFLAGS
56871 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
56872 -ac_env_CPPFLAGS_value=$CPPFLAGS
56873 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
56874 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
56875 -ac_env_CPP_set=${CPP+set}
56876 -ac_env_CPP_value=$CPP
56877 -ac_cv_env_CPP_set=${CPP+set}
56878 -ac_cv_env_CPP_value=$CPP
56879 +if test ! -r "$srcdir/$ac_unique_file"; then
56880 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
56881 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
56882 + { (exit 1); exit 1; }; }
56883 +fi
56884 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
56885 +ac_abs_confdir=`(
56886 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
56887 + { (exit 1); exit 1; }; }
56888 + pwd)`
56889 +# When building in place, set srcdir=.
56890 +if test "$ac_abs_confdir" = "$ac_pwd"; then
56891 + srcdir=.
56892 +fi
56893 +# Remove unnecessary trailing slashes from srcdir.
56894 +# Double slashes in file names in object file debugging info
56895 +# mess up M-x gdb in Emacs.
56896 +case $srcdir in
56897 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
56898 +esac
56899 +for ac_var in $ac_precious_vars; do
56900 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
56901 + eval ac_env_${ac_var}_value=\$${ac_var}
56902 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
56903 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
56904 +done
56905
56906 #
56907 # Report the --help message.
56908 @@ -798,9 +1286,6 @@ Configuration:
56909 -n, --no-create do not create output files
56910 --srcdir=DIR find the sources in DIR [configure dir or \`..']
56911
56912 -_ACEOF
56913 -
56914 - cat <<_ACEOF
56915 Installation directories:
56916 --prefix=PREFIX install architecture-independent files in PREFIX
56917 [$ac_default_prefix]
56918 @@ -818,15 +1303,22 @@ Fine tuning of the installation director
56919 --bindir=DIR user executables [EPREFIX/bin]
56920 --sbindir=DIR system admin executables [EPREFIX/sbin]
56921 --libexecdir=DIR program executables [EPREFIX/libexec]
56922 - --datadir=DIR read-only architecture-independent data [PREFIX/share]
56923 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
56924 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
56925 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
56926 --libdir=DIR object code libraries [EPREFIX/lib]
56927 --includedir=DIR C header files [PREFIX/include]
56928 --oldincludedir=DIR C header files for non-gcc [/usr/include]
56929 - --infodir=DIR info documentation [PREFIX/info]
56930 - --mandir=DIR man documentation [PREFIX/man]
56931 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
56932 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
56933 + --infodir=DIR info documentation [DATAROOTDIR/info]
56934 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
56935 + --mandir=DIR man documentation [DATAROOTDIR/man]
56936 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
56937 + --htmldir=DIR html documentation [DOCDIR]
56938 + --dvidir=DIR dvi documentation [DOCDIR]
56939 + --pdfdir=DIR pdf documentation [DOCDIR]
56940 + --psdir=DIR ps documentation [DOCDIR]
56941 _ACEOF
56942
56943 cat <<\_ACEOF
56944 @@ -878,126 +1370,100 @@ Some influential environment variables:
56945 CFLAGS C compiler flags
56946 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
56947 nonstandard directory <lib dir>
56948 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
56949 - headers in a nonstandard directory <include dir>
56950 + LIBS libraries to pass to the linker, e.g. -l<library>
56951 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
56952 + you have headers in a nonstandard directory <include dir>
56953 CPP C preprocessor
56954 + YACC The `Yet Another C Compiler' implementation to use. Defaults to
56955 + the first program found out of: `bison -y', `byacc', `yacc'.
56956 + YFLAGS The list of arguments that will be passed by default to $YACC.
56957 + This script will default YFLAGS to the empty string to avoid a
56958 + default value of `-d' given by some make applications.
56959
56960 Use these variables to override the choices made by `configure' or to help
56961 it to find libraries and programs with nonstandard names/locations.
56962
56963 _ACEOF
56964 +ac_status=$?
56965 fi
56966
56967 if test "$ac_init_help" = "recursive"; then
56968 # If there are subdirs, report their specific --help.
56969 - ac_popdir=`pwd`
56970 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
56971 - test -d $ac_dir || continue
56972 + test -d "$ac_dir" || continue
56973 ac_builddir=.
56974
56975 -if test "$ac_dir" != .; then
56976 +case "$ac_dir" in
56977 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
56978 +*)
56979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
56980 - # A "../" for each directory in $ac_dir_suffix.
56981 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
56982 -else
56983 - ac_dir_suffix= ac_top_builddir=
56984 -fi
56985 + # A ".." for each directory in $ac_dir_suffix.
56986 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
56987 + case $ac_top_builddir_sub in
56988 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
56989 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
56990 + esac ;;
56991 +esac
56992 +ac_abs_top_builddir=$ac_pwd
56993 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
56994 +# for backward compatibility:
56995 +ac_top_builddir=$ac_top_build_prefix
56996
56997 case $srcdir in
56998 - .) # No --srcdir option. We are building in place.
56999 + .) # We are building in place.
57000 ac_srcdir=.
57001 - if test -z "$ac_top_builddir"; then
57002 - ac_top_srcdir=.
57003 - else
57004 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
57005 - fi ;;
57006 - [\\/]* | ?:[\\/]* ) # Absolute path.
57007 + ac_top_srcdir=$ac_top_builddir_sub
57008 + ac_abs_top_srcdir=$ac_pwd ;;
57009 + [\\/]* | ?:[\\/]* ) # Absolute name.
57010 ac_srcdir=$srcdir$ac_dir_suffix;
57011 - ac_top_srcdir=$srcdir ;;
57012 - *) # Relative path.
57013 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
57014 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
57015 -esac
57016 -
57017 -# Do not use `cd foo && pwd` to compute absolute paths, because
57018 -# the directories may not exist.
57019 -case `pwd` in
57020 -.) ac_abs_builddir="$ac_dir";;
57021 -*)
57022 - case "$ac_dir" in
57023 - .) ac_abs_builddir=`pwd`;;
57024 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
57025 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
57026 - esac;;
57027 -esac
57028 -case $ac_abs_builddir in
57029 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
57030 -*)
57031 - case ${ac_top_builddir}. in
57032 - .) ac_abs_top_builddir=$ac_abs_builddir;;
57033 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
57034 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
57035 - esac;;
57036 -esac
57037 -case $ac_abs_builddir in
57038 -.) ac_abs_srcdir=$ac_srcdir;;
57039 -*)
57040 - case $ac_srcdir in
57041 - .) ac_abs_srcdir=$ac_abs_builddir;;
57042 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
57043 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
57044 - esac;;
57045 -esac
57046 -case $ac_abs_builddir in
57047 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
57048 -*)
57049 - case $ac_top_srcdir in
57050 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
57051 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
57052 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
57053 - esac;;
57054 -esac
57055 -
57056 - cd $ac_dir
57057 - # Check for guested configure; otherwise get Cygnus style configure.
57058 - if test -f $ac_srcdir/configure.gnu; then
57059 - echo
57060 - $SHELL $ac_srcdir/configure.gnu --help=recursive
57061 - elif test -f $ac_srcdir/configure; then
57062 - echo
57063 - $SHELL $ac_srcdir/configure --help=recursive
57064 - elif test -f $ac_srcdir/configure.ac ||
57065 - test -f $ac_srcdir/configure.in; then
57066 - echo
57067 - $ac_configure --help
57068 + ac_top_srcdir=$srcdir
57069 + ac_abs_top_srcdir=$srcdir ;;
57070 + *) # Relative name.
57071 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57072 + ac_top_srcdir=$ac_top_build_prefix$srcdir
57073 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57074 +esac
57075 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57076 +
57077 + cd "$ac_dir" || { ac_status=$?; continue; }
57078 + # Check for guested configure.
57079 + if test -f "$ac_srcdir/configure.gnu"; then
57080 + echo &&
57081 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
57082 + elif test -f "$ac_srcdir/configure"; then
57083 + echo &&
57084 + $SHELL "$ac_srcdir/configure" --help=recursive
57085 else
57086 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
57087 - fi
57088 - cd $ac_popdir
57089 + fi || ac_status=$?
57090 + cd "$ac_pwd" || { ac_status=$?; break; }
57091 done
57092 fi
57093
57094 -test -n "$ac_init_help" && exit 0
57095 +test -n "$ac_init_help" && exit $ac_status
57096 if $ac_init_version; then
57097 cat <<\_ACEOF
57098 +configure
57099 +generated by GNU Autoconf 2.61
57100
57101 -Copyright (C) 2003 Free Software Foundation, Inc.
57102 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
57103 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
57104 This configure script is free software; the Free Software Foundation
57105 gives unlimited permission to copy, distribute and modify it.
57106 _ACEOF
57107 - exit 0
57108 + exit
57109 fi
57110 -exec 5>config.log
57111 -cat >&5 <<_ACEOF
57112 +cat >config.log <<_ACEOF
57113 This file contains any messages produced by compilers while
57114 running configure, to aid debugging if configure makes a mistake.
57115
57116 It was created by $as_me, which was
57117 -generated by GNU Autoconf 2.59. Invocation command line was
57118 +generated by GNU Autoconf 2.61. Invocation command line was
57119
57120 $ $0 $@
57121
57122 _ACEOF
57123 +exec 5>>config.log
57124 {
57125 cat <<_ASUNAME
57126 ## --------- ##
57127 @@ -1016,7 +1482,7 @@ uname -v = `(uname -v) 2>/dev/null || ec
57128 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
57129 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
57130 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
57131 -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
57132 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
57133 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
57134 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
57135 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
57136 @@ -1030,6 +1496,7 @@ do
57137 test -z "$as_dir" && as_dir=.
57138 echo "PATH: $as_dir"
57139 done
57140 +IFS=$as_save_IFS
57141
57142 } >&5
57143
57144 @@ -1051,7 +1518,6 @@ _ACEOF
57145 ac_configure_args=
57146 ac_configure_args0=
57147 ac_configure_args1=
57148 -ac_sep=
57149 ac_must_keep_next=false
57150 for ac_pass in 1 2
57151 do
57152 @@ -1062,7 +1528,7 @@ do
57153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
57154 | -silent | --silent | --silen | --sile | --sil)
57155 continue ;;
57156 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
57157 + *\'*)
57158 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57159 esac
57160 case $ac_pass in
57161 @@ -1084,9 +1550,7 @@ do
57162 -* ) ac_must_keep_next=true ;;
57163 esac
57164 fi
57165 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
57166 - # Get rid of the leading space.
57167 - ac_sep=" "
57168 + ac_configure_args="$ac_configure_args '$ac_arg'"
57169 ;;
57170 esac
57171 done
57172 @@ -1097,8 +1561,8 @@ $as_unset ac_configure_args1 || test "${
57173 # When interrupted or exit'd, cleanup temporary files, and complete
57174 # config.log. We remove comments because anyway the quotes in there
57175 # would cause problems or look ugly.
57176 -# WARNING: Be sure not to use single quotes in there, as some shells,
57177 -# such as our DU 5.0 friend, will then `close' the trap.
57178 +# WARNING: Use '\'' to represent an apostrophe within the trap.
57179 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
57180 trap 'exit_status=$?
57181 # Save into config.log some information that might help in debugging.
57182 {
57183 @@ -1111,20 +1575,34 @@ trap 'exit_status=$?
57184 _ASBOX
57185 echo
57186 # The following way of writing the cache mishandles newlines in values,
57187 -{
57188 +(
57189 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
57190 + eval ac_val=\$$ac_var
57191 + case $ac_val in #(
57192 + *${as_nl}*)
57193 + case $ac_var in #(
57194 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
57195 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
57196 + esac
57197 + case $ac_var in #(
57198 + _ | IFS | as_nl) ;; #(
57199 + *) $as_unset $ac_var ;;
57200 + esac ;;
57201 + esac
57202 + done
57203 (set) 2>&1 |
57204 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
57205 - *ac_space=\ *)
57206 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
57207 + *${as_nl}ac_space=\ *)
57208 sed -n \
57209 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
57210 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
57211 - ;;
57212 + "s/'\''/'\''\\\\'\'''\''/g;
57213 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
57214 + ;; #(
57215 *)
57216 - sed -n \
57217 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
57218 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
57219 ;;
57220 - esac;
57221 -}
57222 + esac |
57223 + sort
57224 +)
57225 echo
57226
57227 cat <<\_ASBOX
57228 @@ -1135,22 +1613,28 @@ _ASBOX
57229 echo
57230 for ac_var in $ac_subst_vars
57231 do
57232 - eval ac_val=$`echo $ac_var`
57233 - echo "$ac_var='"'"'$ac_val'"'"'"
57234 + eval ac_val=\$$ac_var
57235 + case $ac_val in
57236 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
57237 + esac
57238 + echo "$ac_var='\''$ac_val'\''"
57239 done | sort
57240 echo
57241
57242 if test -n "$ac_subst_files"; then
57243 cat <<\_ASBOX
57244 -## ------------- ##
57245 -## Output files. ##
57246 -## ------------- ##
57247 +## ------------------- ##
57248 +## File substitutions. ##
57249 +## ------------------- ##
57250 _ASBOX
57251 echo
57252 for ac_var in $ac_subst_files
57253 do
57254 - eval ac_val=$`echo $ac_var`
57255 - echo "$ac_var='"'"'$ac_val'"'"'"
57256 + eval ac_val=\$$ac_var
57257 + case $ac_val in
57258 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
57259 + esac
57260 + echo "$ac_var='\''$ac_val'\''"
57261 done | sort
57262 echo
57263 fi
57264 @@ -1162,26 +1646,24 @@ _ASBOX
57265 ## ----------- ##
57266 _ASBOX
57267 echo
57268 - sed "/^$/d" confdefs.h | sort
57269 + cat confdefs.h
57270 echo
57271 fi
57272 test "$ac_signal" != 0 &&
57273 echo "$as_me: caught signal $ac_signal"
57274 echo "$as_me: exit $exit_status"
57275 } >&5
57276 - rm -f core *.core &&
57277 - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
57278 + rm -f core *.core core.conftest.* &&
57279 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
57280 exit $exit_status
57281 - ' 0
57282 +' 0
57283 for ac_signal in 1 2 13 15; do
57284 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
57285 done
57286 ac_signal=0
57287
57288 # confdefs.h avoids OS command line length limits that DEFS can exceed.
57289 -rm -rf conftest* confdefs.h
57290 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
57291 -echo >confdefs.h
57292 +rm -f -r conftest* confdefs.h
57293
57294 # Predefined preprocessor variables.
57295
57296 @@ -1212,14 +1694,17 @@ _ACEOF
57297
57298 # Let the site file select an alternate cache file if it wants to.
57299 # Prefer explicitly selected file to automatically selected ones.
57300 -if test -z "$CONFIG_SITE"; then
57301 - if test "x$prefix" != xNONE; then
57302 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
57303 - else
57304 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
57305 - fi
57306 +if test -n "$CONFIG_SITE"; then
57307 + set x "$CONFIG_SITE"
57308 +elif test "x$prefix" != xNONE; then
57309 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
57310 +else
57311 + set x "$ac_default_prefix/share/config.site" \
57312 + "$ac_default_prefix/etc/config.site"
57313 fi
57314 -for ac_site_file in $CONFIG_SITE; do
57315 +shift
57316 +for ac_site_file
57317 +do
57318 if test -r "$ac_site_file"; then
57319 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
57320 echo "$as_me: loading site script $ac_site_file" >&6;}
57321 @@ -1235,8 +1720,8 @@ if test -r "$cache_file"; then
57322 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
57323 echo "$as_me: loading cache $cache_file" >&6;}
57324 case $cache_file in
57325 - [\\/]* | ?:[\\/]* ) . $cache_file;;
57326 - *) . ./$cache_file;;
57327 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
57328 + *) . "./$cache_file";;
57329 esac
57330 fi
57331 else
57332 @@ -1248,12 +1733,11 @@ fi
57333 # Check that the precious variables saved in the cache have kept the same
57334 # value.
57335 ac_cache_corrupted=false
57336 -for ac_var in `(set) 2>&1 |
57337 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
57338 +for ac_var in $ac_precious_vars; do
57339 eval ac_old_set=\$ac_cv_env_${ac_var}_set
57340 eval ac_new_set=\$ac_env_${ac_var}_set
57341 - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
57342 - eval ac_new_val="\$ac_env_${ac_var}_value"
57343 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
57344 + eval ac_new_val=\$ac_env_${ac_var}_value
57345 case $ac_old_set,$ac_new_set in
57346 set,)
57347 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
57348 @@ -1278,8 +1762,7 @@ echo "$as_me: current value: $ac_new_v
57349 # Pass precious variables to config.status.
57350 if test "$ac_new_set" = set; then
57351 case $ac_new_val in
57352 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
57353 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
57354 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
57355 *) ac_arg=$ac_var=$ac_new_val ;;
57356 esac
57357 case " $ac_configure_args " in
57358 @@ -1296,12 +1779,6 @@ echo "$as_me: error: run \`make distclea
57359 { (exit 1); exit 1; }; }
57360 fi
57361
57362 -ac_ext=c
57363 -ac_cpp='$CPP $CPPFLAGS'
57364 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
57365 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
57366 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
57367 -
57368
57369
57370
57371 @@ -1318,108 +1795,163 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
57372
57373
57374
57375 +ac_ext=c
57376 +ac_cpp='$CPP $CPPFLAGS'
57377 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
57378 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
57379 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
57380
57381
57382
57383 ac_aux_dir=
57384 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
57385 - if test -f $ac_dir/install-sh; then
57386 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
57387 + if test -f "$ac_dir/install-sh"; then
57388 ac_aux_dir=$ac_dir
57389 ac_install_sh="$ac_aux_dir/install-sh -c"
57390 break
57391 - elif test -f $ac_dir/install.sh; then
57392 + elif test -f "$ac_dir/install.sh"; then
57393 ac_aux_dir=$ac_dir
57394 ac_install_sh="$ac_aux_dir/install.sh -c"
57395 break
57396 - elif test -f $ac_dir/shtool; then
57397 + elif test -f "$ac_dir/shtool"; then
57398 ac_aux_dir=$ac_dir
57399 ac_install_sh="$ac_aux_dir/shtool install -c"
57400 break
57401 fi
57402 done
57403 if test -z "$ac_aux_dir"; then
57404 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
57405 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
57406 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
57407 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
57408 { (exit 1); exit 1; }; }
57409 fi
57410 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
57411 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
57412 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
57413 +
57414 +# These three variables are undocumented and unsupported,
57415 +# and are intended to be withdrawn in a future Autoconf release.
57416 +# They can cause serious problems if a builder's source tree is in a directory
57417 +# whose full name contains unusual characters.
57418 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
57419 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
57420 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
57421 +
57422
57423 # Make sure we can run config.sub.
57424 -$ac_config_sub sun4 >/dev/null 2>&1 ||
57425 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
57426 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
57427 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
57428 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
57429 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
57430 { (exit 1); exit 1; }; }
57431
57432 -echo "$as_me:$LINENO: checking build system type" >&5
57433 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
57434 +{ echo "$as_me:$LINENO: checking build system type" >&5
57435 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
57436 if test "${ac_cv_build+set}" = set; then
57437 echo $ECHO_N "(cached) $ECHO_C" >&6
57438 else
57439 - ac_cv_build_alias=$build_alias
57440 -test -z "$ac_cv_build_alias" &&
57441 - ac_cv_build_alias=`$ac_config_guess`
57442 -test -z "$ac_cv_build_alias" &&
57443 + ac_build_alias=$build_alias
57444 +test "x$ac_build_alias" = x &&
57445 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
57446 +test "x$ac_build_alias" = x &&
57447 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
57448 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
57449 { (exit 1); exit 1; }; }
57450 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
57451 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
57452 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
57453 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
57454 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
57455 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
57456 { (exit 1); exit 1; }; }
57457
57458 fi
57459 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
57460 -echo "${ECHO_T}$ac_cv_build" >&6
57461 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
57462 +echo "${ECHO_T}$ac_cv_build" >&6; }
57463 +case $ac_cv_build in
57464 +*-*-*) ;;
57465 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
57466 +echo "$as_me: error: invalid value of canonical build" >&2;}
57467 + { (exit 1); exit 1; }; };;
57468 +esac
57469 build=$ac_cv_build
57470 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
57471 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
57472 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
57473 +ac_save_IFS=$IFS; IFS='-'
57474 +set x $ac_cv_build
57475 +shift
57476 +build_cpu=$1
57477 +build_vendor=$2
57478 +shift; shift
57479 +# Remember, the first character of IFS is used to create $*,
57480 +# except with old shells:
57481 +build_os=$*
57482 +IFS=$ac_save_IFS
57483 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
57484
57485
57486 -echo "$as_me:$LINENO: checking host system type" >&5
57487 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
57488 +{ echo "$as_me:$LINENO: checking host system type" >&5
57489 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
57490 if test "${ac_cv_host+set}" = set; then
57491 echo $ECHO_N "(cached) $ECHO_C" >&6
57492 else
57493 - ac_cv_host_alias=$host_alias
57494 -test -z "$ac_cv_host_alias" &&
57495 - ac_cv_host_alias=$ac_cv_build_alias
57496 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
57497 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
57498 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
57499 + if test "x$host_alias" = x; then
57500 + ac_cv_host=$ac_cv_build
57501 +else
57502 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
57503 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
57504 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
57505 { (exit 1); exit 1; }; }
57506 +fi
57507
57508 fi
57509 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
57510 -echo "${ECHO_T}$ac_cv_host" >&6
57511 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
57512 +echo "${ECHO_T}$ac_cv_host" >&6; }
57513 +case $ac_cv_host in
57514 +*-*-*) ;;
57515 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
57516 +echo "$as_me: error: invalid value of canonical host" >&2;}
57517 + { (exit 1); exit 1; }; };;
57518 +esac
57519 host=$ac_cv_host
57520 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
57521 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
57522 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
57523 +ac_save_IFS=$IFS; IFS='-'
57524 +set x $ac_cv_host
57525 +shift
57526 +host_cpu=$1
57527 +host_vendor=$2
57528 +shift; shift
57529 +# Remember, the first character of IFS is used to create $*,
57530 +# except with old shells:
57531 +host_os=$*
57532 +IFS=$ac_save_IFS
57533 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
57534
57535
57536 -echo "$as_me:$LINENO: checking target system type" >&5
57537 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
57538 +{ echo "$as_me:$LINENO: checking target system type" >&5
57539 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
57540 if test "${ac_cv_target+set}" = set; then
57541 echo $ECHO_N "(cached) $ECHO_C" >&6
57542 else
57543 - ac_cv_target_alias=$target_alias
57544 -test "x$ac_cv_target_alias" = "x" &&
57545 - ac_cv_target_alias=$ac_cv_host_alias
57546 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
57547 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
57548 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
57549 + if test "x$target_alias" = x; then
57550 + ac_cv_target=$ac_cv_host
57551 +else
57552 + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
57553 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
57554 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
57555 { (exit 1); exit 1; }; }
57556 +fi
57557
57558 fi
57559 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
57560 -echo "${ECHO_T}$ac_cv_target" >&6
57561 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
57562 +echo "${ECHO_T}$ac_cv_target" >&6; }
57563 +case $ac_cv_target in
57564 +*-*-*) ;;
57565 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
57566 +echo "$as_me: error: invalid value of canonical target" >&2;}
57567 + { (exit 1); exit 1; }; };;
57568 +esac
57569 target=$ac_cv_target
57570 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
57571 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
57572 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
57573 +ac_save_IFS=$IFS; IFS='-'
57574 +set x $ac_cv_target
57575 +shift
57576 +target_cpu=$1
57577 +target_vendor=$2
57578 +shift; shift
57579 +# Remember, the first character of IFS is used to create $*,
57580 +# except with old shells:
57581 +target_os=$*
57582 +IFS=$ac_save_IFS
57583 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
57584
57585
57586 # The aliases save the names the user supplied, while $host etc.
57587 @@ -1436,8 +1968,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
57588 if test -n "$ac_tool_prefix"; then
57589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
57590 set dummy ${ac_tool_prefix}gcc; ac_word=$2
57591 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57592 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57593 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57594 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57595 if test "${ac_cv_prog_CC+set}" = set; then
57596 echo $ECHO_N "(cached) $ECHO_C" >&6
57597 else
57598 @@ -1450,32 +1982,34 @@ do
57599 IFS=$as_save_IFS
57600 test -z "$as_dir" && as_dir=.
57601 for ac_exec_ext in '' $ac_executable_extensions; do
57602 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57603 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57604 ac_cv_prog_CC="${ac_tool_prefix}gcc"
57605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57606 break 2
57607 fi
57608 done
57609 done
57610 +IFS=$as_save_IFS
57611
57612 fi
57613 fi
57614 CC=$ac_cv_prog_CC
57615 if test -n "$CC"; then
57616 - echo "$as_me:$LINENO: result: $CC" >&5
57617 -echo "${ECHO_T}$CC" >&6
57618 + { echo "$as_me:$LINENO: result: $CC" >&5
57619 +echo "${ECHO_T}$CC" >&6; }
57620 else
57621 - echo "$as_me:$LINENO: result: no" >&5
57622 -echo "${ECHO_T}no" >&6
57623 + { echo "$as_me:$LINENO: result: no" >&5
57624 +echo "${ECHO_T}no" >&6; }
57625 fi
57626
57627 +
57628 fi
57629 if test -z "$ac_cv_prog_CC"; then
57630 ac_ct_CC=$CC
57631 # Extract the first word of "gcc", so it can be a program name with args.
57632 set dummy gcc; ac_word=$2
57633 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57634 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57635 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57636 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
57638 echo $ECHO_N "(cached) $ECHO_C" >&6
57639 else
57640 @@ -1488,36 +2022,51 @@ do
57641 IFS=$as_save_IFS
57642 test -z "$as_dir" && as_dir=.
57643 for ac_exec_ext in '' $ac_executable_extensions; do
57644 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57645 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57646 ac_cv_prog_ac_ct_CC="gcc"
57647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57648 break 2
57649 fi
57650 done
57651 done
57652 +IFS=$as_save_IFS
57653
57654 fi
57655 fi
57656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
57657 if test -n "$ac_ct_CC"; then
57658 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57659 -echo "${ECHO_T}$ac_ct_CC" >&6
57660 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57661 +echo "${ECHO_T}$ac_ct_CC" >&6; }
57662 else
57663 - echo "$as_me:$LINENO: result: no" >&5
57664 -echo "${ECHO_T}no" >&6
57665 + { echo "$as_me:$LINENO: result: no" >&5
57666 +echo "${ECHO_T}no" >&6; }
57667 fi
57668
57669 - CC=$ac_ct_CC
57670 + if test "x$ac_ct_CC" = x; then
57671 + CC=""
57672 + else
57673 + case $cross_compiling:$ac_tool_warned in
57674 +yes:)
57675 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
57676 +whose name does not start with the host triplet. If you think this
57677 +configuration is useful to you, please write to autoconf@gnu.org." >&5
57678 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
57679 +whose name does not start with the host triplet. If you think this
57680 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
57681 +ac_tool_warned=yes ;;
57682 +esac
57683 + CC=$ac_ct_CC
57684 + fi
57685 else
57686 CC="$ac_cv_prog_CC"
57687 fi
57688
57689 if test -z "$CC"; then
57690 - if test -n "$ac_tool_prefix"; then
57691 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
57692 + if test -n "$ac_tool_prefix"; then
57693 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
57694 set dummy ${ac_tool_prefix}cc; ac_word=$2
57695 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57696 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57697 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57698 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57699 if test "${ac_cv_prog_CC+set}" = set; then
57700 echo $ECHO_N "(cached) $ECHO_C" >&6
57701 else
57702 @@ -1530,74 +2079,34 @@ do
57703 IFS=$as_save_IFS
57704 test -z "$as_dir" && as_dir=.
57705 for ac_exec_ext in '' $ac_executable_extensions; do
57706 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57707 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57708 ac_cv_prog_CC="${ac_tool_prefix}cc"
57709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57710 break 2
57711 fi
57712 done
57713 done
57714 +IFS=$as_save_IFS
57715
57716 fi
57717 fi
57718 CC=$ac_cv_prog_CC
57719 if test -n "$CC"; then
57720 - echo "$as_me:$LINENO: result: $CC" >&5
57721 -echo "${ECHO_T}$CC" >&6
57722 -else
57723 - echo "$as_me:$LINENO: result: no" >&5
57724 -echo "${ECHO_T}no" >&6
57725 -fi
57726 -
57727 -fi
57728 -if test -z "$ac_cv_prog_CC"; then
57729 - ac_ct_CC=$CC
57730 - # Extract the first word of "cc", so it can be a program name with args.
57731 -set dummy cc; ac_word=$2
57732 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57733 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57734 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
57735 - echo $ECHO_N "(cached) $ECHO_C" >&6
57736 -else
57737 - if test -n "$ac_ct_CC"; then
57738 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
57739 -else
57740 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57741 -for as_dir in $PATH
57742 -do
57743 - IFS=$as_save_IFS
57744 - test -z "$as_dir" && as_dir=.
57745 - for ac_exec_ext in '' $ac_executable_extensions; do
57746 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57747 - ac_cv_prog_ac_ct_CC="cc"
57748 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57749 - break 2
57750 - fi
57751 -done
57752 -done
57753 -
57754 -fi
57755 -fi
57756 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
57757 -if test -n "$ac_ct_CC"; then
57758 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57759 -echo "${ECHO_T}$ac_ct_CC" >&6
57760 + { echo "$as_me:$LINENO: result: $CC" >&5
57761 +echo "${ECHO_T}$CC" >&6; }
57762 else
57763 - echo "$as_me:$LINENO: result: no" >&5
57764 -echo "${ECHO_T}no" >&6
57765 + { echo "$as_me:$LINENO: result: no" >&5
57766 +echo "${ECHO_T}no" >&6; }
57767 fi
57768
57769 - CC=$ac_ct_CC
57770 -else
57771 - CC="$ac_cv_prog_CC"
57772 -fi
57773
57774 + fi
57775 fi
57776 if test -z "$CC"; then
57777 # Extract the first word of "cc", so it can be a program name with args.
57778 set dummy cc; ac_word=$2
57779 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57780 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57781 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57782 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57783 if test "${ac_cv_prog_CC+set}" = set; then
57784 echo $ECHO_N "(cached) $ECHO_C" >&6
57785 else
57786 @@ -1611,7 +2120,7 @@ do
57787 IFS=$as_save_IFS
57788 test -z "$as_dir" && as_dir=.
57789 for ac_exec_ext in '' $ac_executable_extensions; do
57790 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57791 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
57793 ac_prog_rejected=yes
57794 continue
57795 @@ -1622,6 +2131,7 @@ do
57796 fi
57797 done
57798 done
57799 +IFS=$as_save_IFS
57800
57801 if test $ac_prog_rejected = yes; then
57802 # We found a bogon in the path, so make sure we never use it.
57803 @@ -1639,22 +2149,23 @@ fi
57804 fi
57805 CC=$ac_cv_prog_CC
57806 if test -n "$CC"; then
57807 - echo "$as_me:$LINENO: result: $CC" >&5
57808 -echo "${ECHO_T}$CC" >&6
57809 + { echo "$as_me:$LINENO: result: $CC" >&5
57810 +echo "${ECHO_T}$CC" >&6; }
57811 else
57812 - echo "$as_me:$LINENO: result: no" >&5
57813 -echo "${ECHO_T}no" >&6
57814 + { echo "$as_me:$LINENO: result: no" >&5
57815 +echo "${ECHO_T}no" >&6; }
57816 fi
57817
57818 +
57819 fi
57820 if test -z "$CC"; then
57821 if test -n "$ac_tool_prefix"; then
57822 - for ac_prog in cl
57823 + for ac_prog in cl.exe
57824 do
57825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
57826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
57827 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57828 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57829 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57830 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57831 if test "${ac_cv_prog_CC+set}" = set; then
57832 echo $ECHO_N "(cached) $ECHO_C" >&6
57833 else
57834 @@ -1667,36 +2178,38 @@ do
57835 IFS=$as_save_IFS
57836 test -z "$as_dir" && as_dir=.
57837 for ac_exec_ext in '' $ac_executable_extensions; do
57838 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57839 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
57841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57842 break 2
57843 fi
57844 done
57845 done
57846 +IFS=$as_save_IFS
57847
57848 fi
57849 fi
57850 CC=$ac_cv_prog_CC
57851 if test -n "$CC"; then
57852 - echo "$as_me:$LINENO: result: $CC" >&5
57853 -echo "${ECHO_T}$CC" >&6
57854 + { echo "$as_me:$LINENO: result: $CC" >&5
57855 +echo "${ECHO_T}$CC" >&6; }
57856 else
57857 - echo "$as_me:$LINENO: result: no" >&5
57858 -echo "${ECHO_T}no" >&6
57859 + { echo "$as_me:$LINENO: result: no" >&5
57860 +echo "${ECHO_T}no" >&6; }
57861 fi
57862
57863 +
57864 test -n "$CC" && break
57865 done
57866 fi
57867 if test -z "$CC"; then
57868 ac_ct_CC=$CC
57869 - for ac_prog in cl
57870 + for ac_prog in cl.exe
57871 do
57872 # Extract the first word of "$ac_prog", so it can be a program name with args.
57873 set dummy $ac_prog; ac_word=$2
57874 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57875 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57876 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57877 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
57879 echo $ECHO_N "(cached) $ECHO_C" >&6
57880 else
57881 @@ -1709,29 +2222,45 @@ do
57882 IFS=$as_save_IFS
57883 test -z "$as_dir" && as_dir=.
57884 for ac_exec_ext in '' $ac_executable_extensions; do
57885 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57886 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57887 ac_cv_prog_ac_ct_CC="$ac_prog"
57888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57889 break 2
57890 fi
57891 done
57892 done
57893 +IFS=$as_save_IFS
57894
57895 fi
57896 fi
57897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
57898 if test -n "$ac_ct_CC"; then
57899 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57900 -echo "${ECHO_T}$ac_ct_CC" >&6
57901 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57902 +echo "${ECHO_T}$ac_ct_CC" >&6; }
57903 else
57904 - echo "$as_me:$LINENO: result: no" >&5
57905 -echo "${ECHO_T}no" >&6
57906 + { echo "$as_me:$LINENO: result: no" >&5
57907 +echo "${ECHO_T}no" >&6; }
57908 fi
57909
57910 +
57911 test -n "$ac_ct_CC" && break
57912 done
57913
57914 - CC=$ac_ct_CC
57915 + if test "x$ac_ct_CC" = x; then
57916 + CC=""
57917 + else
57918 + case $cross_compiling:$ac_tool_warned in
57919 +yes:)
57920 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
57921 +whose name does not start with the host triplet. If you think this
57922 +configuration is useful to you, please write to autoconf@gnu.org." >&5
57923 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
57924 +whose name does not start with the host triplet. If you think this
57925 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
57926 +ac_tool_warned=yes ;;
57927 +esac
57928 + CC=$ac_ct_CC
57929 + fi
57930 fi
57931
57932 fi
57933 @@ -1744,21 +2273,35 @@ See \`config.log' for more details." >&2
57934 { (exit 1); exit 1; }; }
57935
57936 # Provide some information about the compiler.
57937 -echo "$as_me:$LINENO:" \
57938 - "checking for C compiler version" >&5
57939 +echo "$as_me:$LINENO: checking for C compiler version" >&5
57940 ac_compiler=`set X $ac_compile; echo $2`
57941 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
57942 - (eval $ac_compiler --version </dev/null >&5) 2>&5
57943 +{ (ac_try="$ac_compiler --version >&5"
57944 +case "(($ac_try" in
57945 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57946 + *) ac_try_echo=$ac_try;;
57947 +esac
57948 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57949 + (eval "$ac_compiler --version >&5") 2>&5
57950 ac_status=$?
57951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57952 (exit $ac_status); }
57953 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
57954 - (eval $ac_compiler -v </dev/null >&5) 2>&5
57955 +{ (ac_try="$ac_compiler -v >&5"
57956 +case "(($ac_try" in
57957 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57958 + *) ac_try_echo=$ac_try;;
57959 +esac
57960 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57961 + (eval "$ac_compiler -v >&5") 2>&5
57962 ac_status=$?
57963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57964 (exit $ac_status); }
57965 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
57966 - (eval $ac_compiler -V </dev/null >&5) 2>&5
57967 +{ (ac_try="$ac_compiler -V >&5"
57968 +case "(($ac_try" in
57969 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57970 + *) ac_try_echo=$ac_try;;
57971 +esac
57972 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57973 + (eval "$ac_compiler -V >&5") 2>&5
57974 ac_status=$?
57975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57976 (exit $ac_status); }
57977 @@ -1783,47 +2326,77 @@ ac_clean_files="$ac_clean_files a.out a.
57978 # Try to create an executable without -o first, disregard a.out.
57979 # It will help us diagnose broken compilers, and finding out an intuition
57980 # of exeext.
57981 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
57982 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
57983 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
57984 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
57985 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
57986 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
57987 - (eval $ac_link_default) 2>&5
57988 +#
57989 +# List of possible output files, starting from the most likely.
57990 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
57991 +# only as a last resort. b.out is created by i960 compilers.
57992 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
57993 +#
57994 +# The IRIX 6 linker writes into existing files which may not be
57995 +# executable, retaining their permissions. Remove them first so a
57996 +# subsequent execution test works.
57997 +ac_rmfiles=
57998 +for ac_file in $ac_files
57999 +do
58000 + case $ac_file in
58001 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
58002 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
58003 + esac
58004 +done
58005 +rm -f $ac_rmfiles
58006 +
58007 +if { (ac_try="$ac_link_default"
58008 +case "(($ac_try" in
58009 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58010 + *) ac_try_echo=$ac_try;;
58011 +esac
58012 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58013 + (eval "$ac_link_default") 2>&5
58014 ac_status=$?
58015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58016 (exit $ac_status); }; then
58017 - # Find the output, starting from the most likely. This scheme is
58018 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
58019 -# resort.
58020 -
58021 -# Be careful to initialize this variable, since it used to be cached.
58022 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
58023 -ac_cv_exeext=
58024 -# b.out is created by i960 compilers.
58025 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
58026 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
58027 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
58028 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
58029 +# so that the user can short-circuit this test for compilers unknown to
58030 +# Autoconf.
58031 +for ac_file in $ac_files ''
58032 do
58033 test -f "$ac_file" || continue
58034 case $ac_file in
58035 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
58036 - ;;
58037 - conftest.$ac_ext )
58038 - # This is the source file.
58039 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
58040 ;;
58041 [ab].out )
58042 # We found the default executable, but exeext='' is most
58043 # certainly right.
58044 break;;
58045 *.* )
58046 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
58047 - # FIXME: I believe we export ac_cv_exeext for Libtool,
58048 - # but it would be cool to find out if it's true. Does anybody
58049 - # maintain Libtool? --akim.
58050 - export ac_cv_exeext
58051 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
58052 + then :; else
58053 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
58054 + fi
58055 + # We set ac_cv_exeext here because the later test for it is not
58056 + # safe: cross compilers may not add the suffix if given an `-o'
58057 + # argument, so we may need to know it at that point already.
58058 + # Even if this section looks crufty: it has the advantage of
58059 + # actually working.
58060 break;;
58061 * )
58062 break;;
58063 esac
58064 done
58065 +test "$ac_cv_exeext" = no && ac_cv_exeext=
58066 +
58067 else
58068 + ac_file=''
58069 +fi
58070 +
58071 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
58072 +echo "${ECHO_T}$ac_file" >&6; }
58073 +if test -z "$ac_file"; then
58074 echo "$as_me: failed program was:" >&5
58075 sed 's/^/| /' conftest.$ac_ext >&5
58076
58077 @@ -1835,19 +2408,21 @@ See \`config.log' for more details." >&2
58078 fi
58079
58080 ac_exeext=$ac_cv_exeext
58081 -echo "$as_me:$LINENO: result: $ac_file" >&5
58082 -echo "${ECHO_T}$ac_file" >&6
58083
58084 -# Check the compiler produces executables we can run. If not, either
58085 +# Check that the compiler produces executables we can run. If not, either
58086 # the compiler is broken, or we cross compile.
58087 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
58088 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
58089 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
58090 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
58091 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
58092 # If not cross compiling, check that we can run a simple program.
58093 if test "$cross_compiling" != yes; then
58094 if { ac_try='./$ac_file'
58095 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58096 - (eval $ac_try) 2>&5
58097 + { (case "(($ac_try" in
58098 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58099 + *) ac_try_echo=$ac_try;;
58100 +esac
58101 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58102 + (eval "$ac_try") 2>&5
58103 ac_status=$?
58104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58105 (exit $ac_status); }; }; then
58106 @@ -1866,22 +2441,27 @@ See \`config.log' for more details." >&2
58107 fi
58108 fi
58109 fi
58110 -echo "$as_me:$LINENO: result: yes" >&5
58111 -echo "${ECHO_T}yes" >&6
58112 +{ echo "$as_me:$LINENO: result: yes" >&5
58113 +echo "${ECHO_T}yes" >&6; }
58114
58115 rm -f a.out a.exe conftest$ac_cv_exeext b.out
58116 ac_clean_files=$ac_clean_files_save
58117 -# Check the compiler produces executables we can run. If not, either
58118 +# Check that the compiler produces executables we can run. If not, either
58119 # the compiler is broken, or we cross compile.
58120 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
58121 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
58122 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
58123 -echo "${ECHO_T}$cross_compiling" >&6
58124 -
58125 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
58126 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
58127 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58128 - (eval $ac_link) 2>&5
58129 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
58130 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
58131 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
58132 +echo "${ECHO_T}$cross_compiling" >&6; }
58133 +
58134 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
58135 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
58136 +if { (ac_try="$ac_link"
58137 +case "(($ac_try" in
58138 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58139 + *) ac_try_echo=$ac_try;;
58140 +esac
58141 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58142 + (eval "$ac_link") 2>&5
58143 ac_status=$?
58144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58145 (exit $ac_status); }; then
58146 @@ -1892,9 +2472,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
58147 for ac_file in conftest.exe conftest conftest.*; do
58148 test -f "$ac_file" || continue
58149 case $ac_file in
58150 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
58151 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
58152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
58153 - export ac_cv_exeext
58154 break;;
58155 * ) break;;
58156 esac
58157 @@ -1908,14 +2487,14 @@ See \`config.log' for more details." >&2
58158 fi
58159
58160 rm -f conftest$ac_cv_exeext
58161 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
58162 -echo "${ECHO_T}$ac_cv_exeext" >&6
58163 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
58164 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
58165
58166 rm -f conftest.$ac_ext
58167 EXEEXT=$ac_cv_exeext
58168 ac_exeext=$EXEEXT
58169 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
58170 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
58171 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
58172 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
58173 if test "${ac_cv_objext+set}" = set; then
58174 echo $ECHO_N "(cached) $ECHO_C" >&6
58175 else
58176 @@ -1935,14 +2514,20 @@ main ()
58177 }
58178 _ACEOF
58179 rm -f conftest.o conftest.obj
58180 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58181 - (eval $ac_compile) 2>&5
58182 +if { (ac_try="$ac_compile"
58183 +case "(($ac_try" in
58184 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58185 + *) ac_try_echo=$ac_try;;
58186 +esac
58187 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58188 + (eval "$ac_compile") 2>&5
58189 ac_status=$?
58190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58191 (exit $ac_status); }; then
58192 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
58193 + for ac_file in conftest.o conftest.obj conftest.*; do
58194 + test -f "$ac_file" || continue;
58195 case $ac_file in
58196 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
58197 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
58198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
58199 break;;
58200 esac
58201 @@ -1960,12 +2545,12 @@ fi
58202
58203 rm -f conftest.$ac_cv_objext conftest.$ac_ext
58204 fi
58205 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
58206 -echo "${ECHO_T}$ac_cv_objext" >&6
58207 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
58208 +echo "${ECHO_T}$ac_cv_objext" >&6; }
58209 OBJEXT=$ac_cv_objext
58210 ac_objext=$OBJEXT
58211 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
58212 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
58213 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
58214 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
58215 if test "${ac_cv_c_compiler_gnu+set}" = set; then
58216 echo $ECHO_N "(cached) $ECHO_C" >&6
58217 else
58218 @@ -1988,50 +2573,49 @@ main ()
58219 }
58220 _ACEOF
58221 rm -f conftest.$ac_objext
58222 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58223 - (eval $ac_compile) 2>conftest.er1
58224 +if { (ac_try="$ac_compile"
58225 +case "(($ac_try" in
58226 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58227 + *) ac_try_echo=$ac_try;;
58228 +esac
58229 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58230 + (eval "$ac_compile") 2>conftest.er1
58231 ac_status=$?
58232 grep -v '^ *+' conftest.er1 >conftest.err
58233 rm -f conftest.er1
58234 cat conftest.err >&5
58235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58236 - (exit $ac_status); } &&
58237 - { ac_try='test -z "$ac_c_werror_flag"
58238 - || test ! -s conftest.err'
58239 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58240 - (eval $ac_try) 2>&5
58241 - ac_status=$?
58242 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58243 - (exit $ac_status); }; } &&
58244 - { ac_try='test -s conftest.$ac_objext'
58245 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58246 - (eval $ac_try) 2>&5
58247 - ac_status=$?
58248 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58249 - (exit $ac_status); }; }; then
58250 + (exit $ac_status); } && {
58251 + test -z "$ac_c_werror_flag" ||
58252 + test ! -s conftest.err
58253 + } && test -s conftest.$ac_objext; then
58254 ac_compiler_gnu=yes
58255 else
58256 echo "$as_me: failed program was:" >&5
58257 sed 's/^/| /' conftest.$ac_ext >&5
58258
58259 -ac_compiler_gnu=no
58260 + ac_compiler_gnu=no
58261 fi
58262 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58263 +
58264 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58265 ac_cv_c_compiler_gnu=$ac_compiler_gnu
58266
58267 fi
58268 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
58269 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
58270 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
58271 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
58272 GCC=`test $ac_compiler_gnu = yes && echo yes`
58273 ac_test_CFLAGS=${CFLAGS+set}
58274 ac_save_CFLAGS=$CFLAGS
58275 -CFLAGS="-g"
58276 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
58277 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
58278 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
58279 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
58280 if test "${ac_cv_prog_cc_g+set}" = set; then
58281 echo $ECHO_N "(cached) $ECHO_C" >&6
58282 else
58283 - cat >conftest.$ac_ext <<_ACEOF
58284 + ac_save_c_werror_flag=$ac_c_werror_flag
58285 + ac_c_werror_flag=yes
58286 + ac_cv_prog_cc_g=no
58287 + CFLAGS="-g"
58288 + cat >conftest.$ac_ext <<_ACEOF
58289 /* confdefs.h. */
58290 _ACEOF
58291 cat confdefs.h >>conftest.$ac_ext
58292 @@ -2047,38 +2631,118 @@ main ()
58293 }
58294 _ACEOF
58295 rm -f conftest.$ac_objext
58296 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58297 - (eval $ac_compile) 2>conftest.er1
58298 +if { (ac_try="$ac_compile"
58299 +case "(($ac_try" in
58300 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58301 + *) ac_try_echo=$ac_try;;
58302 +esac
58303 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58304 + (eval "$ac_compile") 2>conftest.er1
58305 ac_status=$?
58306 grep -v '^ *+' conftest.er1 >conftest.err
58307 rm -f conftest.er1
58308 cat conftest.err >&5
58309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58310 - (exit $ac_status); } &&
58311 - { ac_try='test -z "$ac_c_werror_flag"
58312 - || test ! -s conftest.err'
58313 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58314 - (eval $ac_try) 2>&5
58315 + (exit $ac_status); } && {
58316 + test -z "$ac_c_werror_flag" ||
58317 + test ! -s conftest.err
58318 + } && test -s conftest.$ac_objext; then
58319 + ac_cv_prog_cc_g=yes
58320 +else
58321 + echo "$as_me: failed program was:" >&5
58322 +sed 's/^/| /' conftest.$ac_ext >&5
58323 +
58324 + CFLAGS=""
58325 + cat >conftest.$ac_ext <<_ACEOF
58326 +/* confdefs.h. */
58327 +_ACEOF
58328 +cat confdefs.h >>conftest.$ac_ext
58329 +cat >>conftest.$ac_ext <<_ACEOF
58330 +/* end confdefs.h. */
58331 +
58332 +int
58333 +main ()
58334 +{
58335 +
58336 + ;
58337 + return 0;
58338 +}
58339 +_ACEOF
58340 +rm -f conftest.$ac_objext
58341 +if { (ac_try="$ac_compile"
58342 +case "(($ac_try" in
58343 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58344 + *) ac_try_echo=$ac_try;;
58345 +esac
58346 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58347 + (eval "$ac_compile") 2>conftest.er1
58348 ac_status=$?
58349 + grep -v '^ *+' conftest.er1 >conftest.err
58350 + rm -f conftest.er1
58351 + cat conftest.err >&5
58352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58353 - (exit $ac_status); }; } &&
58354 - { ac_try='test -s conftest.$ac_objext'
58355 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58356 - (eval $ac_try) 2>&5
58357 + (exit $ac_status); } && {
58358 + test -z "$ac_c_werror_flag" ||
58359 + test ! -s conftest.err
58360 + } && test -s conftest.$ac_objext; then
58361 + :
58362 +else
58363 + echo "$as_me: failed program was:" >&5
58364 +sed 's/^/| /' conftest.$ac_ext >&5
58365 +
58366 + ac_c_werror_flag=$ac_save_c_werror_flag
58367 + CFLAGS="-g"
58368 + cat >conftest.$ac_ext <<_ACEOF
58369 +/* confdefs.h. */
58370 +_ACEOF
58371 +cat confdefs.h >>conftest.$ac_ext
58372 +cat >>conftest.$ac_ext <<_ACEOF
58373 +/* end confdefs.h. */
58374 +
58375 +int
58376 +main ()
58377 +{
58378 +
58379 + ;
58380 + return 0;
58381 +}
58382 +_ACEOF
58383 +rm -f conftest.$ac_objext
58384 +if { (ac_try="$ac_compile"
58385 +case "(($ac_try" in
58386 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58387 + *) ac_try_echo=$ac_try;;
58388 +esac
58389 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58390 + (eval "$ac_compile") 2>conftest.er1
58391 ac_status=$?
58392 + grep -v '^ *+' conftest.er1 >conftest.err
58393 + rm -f conftest.er1
58394 + cat conftest.err >&5
58395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58396 - (exit $ac_status); }; }; then
58397 + (exit $ac_status); } && {
58398 + test -z "$ac_c_werror_flag" ||
58399 + test ! -s conftest.err
58400 + } && test -s conftest.$ac_objext; then
58401 ac_cv_prog_cc_g=yes
58402 else
58403 echo "$as_me: failed program was:" >&5
58404 sed 's/^/| /' conftest.$ac_ext >&5
58405
58406 -ac_cv_prog_cc_g=no
58407 +
58408 +fi
58409 +
58410 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58411 +fi
58412 +
58413 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58414 fi
58415 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58416 +
58417 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58418 + ac_c_werror_flag=$ac_save_c_werror_flag
58419 fi
58420 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
58421 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
58422 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
58423 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
58424 if test "$ac_test_CFLAGS" = set; then
58425 CFLAGS=$ac_save_CFLAGS
58426 elif test $ac_cv_prog_cc_g = yes; then
58427 @@ -2094,12 +2758,12 @@ else
58428 CFLAGS=
58429 fi
58430 fi
58431 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
58432 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
58433 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
58434 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
58435 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
58436 +if test "${ac_cv_prog_cc_c89+set}" = set; then
58437 echo $ECHO_N "(cached) $ECHO_C" >&6
58438 else
58439 - ac_cv_prog_cc_stdc=no
58440 + ac_cv_prog_cc_c89=no
58441 ac_save_CC=$CC
58442 cat >conftest.$ac_ext <<_ACEOF
58443 /* confdefs.h. */
58444 @@ -2133,12 +2797,17 @@ static char *f (char * (*g) (char **, in
58445 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
58446 function prototypes and stuff, but not '\xHH' hex character constants.
58447 These don't provoke an error unfortunately, instead are silently treated
58448 - as 'x'. The following induces an error, until -std1 is added to get
58449 + as 'x'. The following induces an error, until -std is added to get
58450 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
58451 array size at least. It's necessary to write '\x00'==0 to get something
58452 - that's true only with -std1. */
58453 + that's true only with -std. */
58454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
58455
58456 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
58457 + inside strings and character constants. */
58458 +#define FOO(x) 'x'
58459 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
58460 +
58461 int test (int i, double x);
58462 struct s1 {int (*f) (int a);};
58463 struct s2 {int (*f) (double a);};
58464 @@ -2153,335 +2822,144 @@ return f (e, argv, 0) != argv[0] || f
58465 return 0;
58466 }
58467 _ACEOF
58468 -# Don't try gcc -ansi; that turns off useful extensions and
58469 -# breaks some systems' header files.
58470 -# AIX -qlanglvl=ansi
58471 -# Ultrix and OSF/1 -std1
58472 -# HP-UX 10.20 and later -Ae
58473 -# HP-UX older versions -Aa -D_HPUX_SOURCE
58474 -# SVR4 -Xc -D__EXTENSIONS__
58475 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
58476 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
58477 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
58478 do
58479 CC="$ac_save_CC $ac_arg"
58480 rm -f conftest.$ac_objext
58481 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58482 - (eval $ac_compile) 2>conftest.er1
58483 +if { (ac_try="$ac_compile"
58484 +case "(($ac_try" in
58485 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58486 + *) ac_try_echo=$ac_try;;
58487 +esac
58488 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58489 + (eval "$ac_compile") 2>conftest.er1
58490 ac_status=$?
58491 grep -v '^ *+' conftest.er1 >conftest.err
58492 rm -f conftest.er1
58493 cat conftest.err >&5
58494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58495 - (exit $ac_status); } &&
58496 - { ac_try='test -z "$ac_c_werror_flag"
58497 - || test ! -s conftest.err'
58498 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58499 - (eval $ac_try) 2>&5
58500 - ac_status=$?
58501 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58502 - (exit $ac_status); }; } &&
58503 - { ac_try='test -s conftest.$ac_objext'
58504 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58505 - (eval $ac_try) 2>&5
58506 - ac_status=$?
58507 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58508 - (exit $ac_status); }; }; then
58509 - ac_cv_prog_cc_stdc=$ac_arg
58510 -break
58511 + (exit $ac_status); } && {
58512 + test -z "$ac_c_werror_flag" ||
58513 + test ! -s conftest.err
58514 + } && test -s conftest.$ac_objext; then
58515 + ac_cv_prog_cc_c89=$ac_arg
58516 else
58517 echo "$as_me: failed program was:" >&5
58518 sed 's/^/| /' conftest.$ac_ext >&5
58519
58520 +
58521 fi
58522 -rm -f conftest.err conftest.$ac_objext
58523 +
58524 +rm -f core conftest.err conftest.$ac_objext
58525 + test "x$ac_cv_prog_cc_c89" != "xno" && break
58526 done
58527 -rm -f conftest.$ac_ext conftest.$ac_objext
58528 +rm -f conftest.$ac_ext
58529 CC=$ac_save_CC
58530
58531 fi
58532 -
58533 -case "x$ac_cv_prog_cc_stdc" in
58534 - x|xno)
58535 - echo "$as_me:$LINENO: result: none needed" >&5
58536 -echo "${ECHO_T}none needed" >&6 ;;
58537 +# AC_CACHE_VAL
58538 +case "x$ac_cv_prog_cc_c89" in
58539 + x)
58540 + { echo "$as_me:$LINENO: result: none needed" >&5
58541 +echo "${ECHO_T}none needed" >&6; } ;;
58542 + xno)
58543 + { echo "$as_me:$LINENO: result: unsupported" >&5
58544 +echo "${ECHO_T}unsupported" >&6; } ;;
58545 *)
58546 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
58547 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
58548 - CC="$CC $ac_cv_prog_cc_stdc" ;;
58549 + CC="$CC $ac_cv_prog_cc_c89"
58550 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
58551 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
58552 esac
58553
58554 -# Some people use a C++ compiler to compile C. Since we use `exit',
58555 -# in C++ we need to declare it. In case someone uses the same compiler
58556 -# for both compiling C and C++ we need to have the C++ compiler decide
58557 -# the declaration of exit, since it's the most demanding environment.
58558 +
58559 +ac_ext=c
58560 +ac_cpp='$CPP $CPPFLAGS'
58561 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58562 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58563 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
58564 +
58565 +
58566 +{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
58567 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
58568 +if test "${ac_cv_search_strerror+set}" = set; then
58569 + echo $ECHO_N "(cached) $ECHO_C" >&6
58570 +else
58571 + ac_func_search_save_LIBS=$LIBS
58572 cat >conftest.$ac_ext <<_ACEOF
58573 -#ifndef __cplusplus
58574 - choke me
58575 -#endif
58576 -_ACEOF
58577 -rm -f conftest.$ac_objext
58578 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58579 - (eval $ac_compile) 2>conftest.er1
58580 - ac_status=$?
58581 - grep -v '^ *+' conftest.er1 >conftest.err
58582 - rm -f conftest.er1
58583 - cat conftest.err >&5
58584 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58585 - (exit $ac_status); } &&
58586 - { ac_try='test -z "$ac_c_werror_flag"
58587 - || test ! -s conftest.err'
58588 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58589 - (eval $ac_try) 2>&5
58590 - ac_status=$?
58591 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58592 - (exit $ac_status); }; } &&
58593 - { ac_try='test -s conftest.$ac_objext'
58594 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58595 - (eval $ac_try) 2>&5
58596 - ac_status=$?
58597 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58598 - (exit $ac_status); }; }; then
58599 - for ac_declaration in \
58600 - '' \
58601 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
58602 - 'extern "C" void std::exit (int); using std::exit;' \
58603 - 'extern "C" void exit (int) throw ();' \
58604 - 'extern "C" void exit (int);' \
58605 - 'void exit (int);'
58606 -do
58607 - cat >conftest.$ac_ext <<_ACEOF
58608 /* confdefs.h. */
58609 _ACEOF
58610 cat confdefs.h >>conftest.$ac_ext
58611 cat >>conftest.$ac_ext <<_ACEOF
58612 /* end confdefs.h. */
58613 -$ac_declaration
58614 -#include <stdlib.h>
58615 +
58616 +/* Override any GCC internal prototype to avoid an error.
58617 + Use char because int might match the return type of a GCC
58618 + builtin and then its argument prototype would still apply. */
58619 +#ifdef __cplusplus
58620 +extern "C"
58621 +#endif
58622 +char strerror ();
58623 int
58624 main ()
58625 {
58626 -exit (42);
58627 +return strerror ();
58628 ;
58629 return 0;
58630 }
58631 _ACEOF
58632 -rm -f conftest.$ac_objext
58633 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58634 - (eval $ac_compile) 2>conftest.er1
58635 +for ac_lib in '' cposix; do
58636 + if test -z "$ac_lib"; then
58637 + ac_res="none required"
58638 + else
58639 + ac_res=-l$ac_lib
58640 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
58641 + fi
58642 + rm -f conftest.$ac_objext conftest$ac_exeext
58643 +if { (ac_try="$ac_link"
58644 +case "(($ac_try" in
58645 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58646 + *) ac_try_echo=$ac_try;;
58647 +esac
58648 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58649 + (eval "$ac_link") 2>conftest.er1
58650 ac_status=$?
58651 grep -v '^ *+' conftest.er1 >conftest.err
58652 rm -f conftest.er1
58653 cat conftest.err >&5
58654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58655 - (exit $ac_status); } &&
58656 - { ac_try='test -z "$ac_c_werror_flag"
58657 - || test ! -s conftest.err'
58658 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58659 - (eval $ac_try) 2>&5
58660 - ac_status=$?
58661 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58662 - (exit $ac_status); }; } &&
58663 - { ac_try='test -s conftest.$ac_objext'
58664 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58665 - (eval $ac_try) 2>&5
58666 - ac_status=$?
58667 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58668 - (exit $ac_status); }; }; then
58669 - :
58670 + (exit $ac_status); } && {
58671 + test -z "$ac_c_werror_flag" ||
58672 + test ! -s conftest.err
58673 + } && test -s conftest$ac_exeext &&
58674 + $as_test_x conftest$ac_exeext; then
58675 + ac_cv_search_strerror=$ac_res
58676 else
58677 echo "$as_me: failed program was:" >&5
58678 sed 's/^/| /' conftest.$ac_ext >&5
58679
58680 -continue
58681 -fi
58682 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58683 - cat >conftest.$ac_ext <<_ACEOF
58684 -/* confdefs.h. */
58685 -_ACEOF
58686 -cat confdefs.h >>conftest.$ac_ext
58687 -cat >>conftest.$ac_ext <<_ACEOF
58688 -/* end confdefs.h. */
58689 -$ac_declaration
58690 -int
58691 -main ()
58692 -{
58693 -exit (42);
58694 - ;
58695 - return 0;
58696 -}
58697 -_ACEOF
58698 -rm -f conftest.$ac_objext
58699 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58700 - (eval $ac_compile) 2>conftest.er1
58701 - ac_status=$?
58702 - grep -v '^ *+' conftest.er1 >conftest.err
58703 - rm -f conftest.er1
58704 - cat conftest.err >&5
58705 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58706 - (exit $ac_status); } &&
58707 - { ac_try='test -z "$ac_c_werror_flag"
58708 - || test ! -s conftest.err'
58709 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58710 - (eval $ac_try) 2>&5
58711 - ac_status=$?
58712 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58713 - (exit $ac_status); }; } &&
58714 - { ac_try='test -s conftest.$ac_objext'
58715 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58716 - (eval $ac_try) 2>&5
58717 - ac_status=$?
58718 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58719 - (exit $ac_status); }; }; then
58720 - break
58721 -else
58722 - echo "$as_me: failed program was:" >&5
58723 -sed 's/^/| /' conftest.$ac_ext >&5
58724
58725 fi
58726 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58727 -done
58728 -rm -f conftest*
58729 -if test -n "$ac_declaration"; then
58730 - echo '#ifdef __cplusplus' >>confdefs.h
58731 - echo $ac_declaration >>confdefs.h
58732 - echo '#endif' >>confdefs.h
58733 -fi
58734 -
58735 -else
58736 - echo "$as_me: failed program was:" >&5
58737 -sed 's/^/| /' conftest.$ac_ext >&5
58738
58739 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58740 + conftest$ac_exeext
58741 + if test "${ac_cv_search_strerror+set}" = set; then
58742 + break
58743 fi
58744 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58745 -ac_ext=c
58746 -ac_cpp='$CPP $CPPFLAGS'
58747 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58748 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58749 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
58750 -
58751 -
58752 -echo "$as_me:$LINENO: checking for library containing strerror" >&5
58753 -echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
58754 +done
58755 if test "${ac_cv_search_strerror+set}" = set; then
58756 - echo $ECHO_N "(cached) $ECHO_C" >&6
58757 -else
58758 - ac_func_search_save_LIBS=$LIBS
58759 -ac_cv_search_strerror=no
58760 -cat >conftest.$ac_ext <<_ACEOF
58761 -/* confdefs.h. */
58762 -_ACEOF
58763 -cat confdefs.h >>conftest.$ac_ext
58764 -cat >>conftest.$ac_ext <<_ACEOF
58765 -/* end confdefs.h. */
58766 -
58767 -/* Override any gcc2 internal prototype to avoid an error. */
58768 -#ifdef __cplusplus
58769 -extern "C"
58770 -#endif
58771 -/* We use char because int might match the return type of a gcc2
58772 - builtin and then its argument prototype would still apply. */
58773 -char strerror ();
58774 -int
58775 -main ()
58776 -{
58777 -strerror ();
58778 - ;
58779 - return 0;
58780 -}
58781 -_ACEOF
58782 -rm -f conftest.$ac_objext conftest$ac_exeext
58783 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58784 - (eval $ac_link) 2>conftest.er1
58785 - ac_status=$?
58786 - grep -v '^ *+' conftest.er1 >conftest.err
58787 - rm -f conftest.er1
58788 - cat conftest.err >&5
58789 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58790 - (exit $ac_status); } &&
58791 - { ac_try='test -z "$ac_c_werror_flag"
58792 - || test ! -s conftest.err'
58793 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58794 - (eval $ac_try) 2>&5
58795 - ac_status=$?
58796 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58797 - (exit $ac_status); }; } &&
58798 - { ac_try='test -s conftest$ac_exeext'
58799 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58800 - (eval $ac_try) 2>&5
58801 - ac_status=$?
58802 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58803 - (exit $ac_status); }; }; then
58804 - ac_cv_search_strerror="none required"
58805 -else
58806 - echo "$as_me: failed program was:" >&5
58807 -sed 's/^/| /' conftest.$ac_ext >&5
58808 -
58809 -fi
58810 -rm -f conftest.err conftest.$ac_objext \
58811 - conftest$ac_exeext conftest.$ac_ext
58812 -if test "$ac_cv_search_strerror" = no; then
58813 - for ac_lib in cposix; do
58814 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
58815 - cat >conftest.$ac_ext <<_ACEOF
58816 -/* confdefs.h. */
58817 -_ACEOF
58818 -cat confdefs.h >>conftest.$ac_ext
58819 -cat >>conftest.$ac_ext <<_ACEOF
58820 -/* end confdefs.h. */
58821 -
58822 -/* Override any gcc2 internal prototype to avoid an error. */
58823 -#ifdef __cplusplus
58824 -extern "C"
58825 -#endif
58826 -/* We use char because int might match the return type of a gcc2
58827 - builtin and then its argument prototype would still apply. */
58828 -char strerror ();
58829 -int
58830 -main ()
58831 -{
58832 -strerror ();
58833 - ;
58834 - return 0;
58835 -}
58836 -_ACEOF
58837 -rm -f conftest.$ac_objext conftest$ac_exeext
58838 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58839 - (eval $ac_link) 2>conftest.er1
58840 - ac_status=$?
58841 - grep -v '^ *+' conftest.er1 >conftest.err
58842 - rm -f conftest.er1
58843 - cat conftest.err >&5
58844 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58845 - (exit $ac_status); } &&
58846 - { ac_try='test -z "$ac_c_werror_flag"
58847 - || test ! -s conftest.err'
58848 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58849 - (eval $ac_try) 2>&5
58850 - ac_status=$?
58851 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58852 - (exit $ac_status); }; } &&
58853 - { ac_try='test -s conftest$ac_exeext'
58854 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58855 - (eval $ac_try) 2>&5
58856 - ac_status=$?
58857 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58858 - (exit $ac_status); }; }; then
58859 - ac_cv_search_strerror="-l$ac_lib"
58860 -break
58861 + :
58862 else
58863 - echo "$as_me: failed program was:" >&5
58864 -sed 's/^/| /' conftest.$ac_ext >&5
58865 -
58866 -fi
58867 -rm -f conftest.err conftest.$ac_objext \
58868 - conftest$ac_exeext conftest.$ac_ext
58869 - done
58870 + ac_cv_search_strerror=no
58871 fi
58872 +rm conftest.$ac_ext
58873 LIBS=$ac_func_search_save_LIBS
58874 fi
58875 -echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
58876 -echo "${ECHO_T}$ac_cv_search_strerror" >&6
58877 -if test "$ac_cv_search_strerror" != no; then
58878 - test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
58879 +{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
58880 +echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
58881 +ac_res=$ac_cv_search_strerror
58882 +if test "$ac_res" != no; then
58883 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
58884
58885 fi
58886
58887 @@ -2501,8 +2979,8 @@ am__api_version="1.9"
58888 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
58889 # OS/2's system install, which has a completely different semantic
58890 # ./install, which can be erroneously created by make from ./install.sh.
58891 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
58892 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
58893 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
58894 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
58895 if test -z "$INSTALL"; then
58896 if test "${ac_cv_path_install+set}" = set; then
58897 echo $ECHO_N "(cached) $ECHO_C" >&6
58898 @@ -2524,7 +3002,7 @@ case $as_dir/ in
58899 # by default.
58900 for ac_prog in ginstall scoinst install; do
58901 for ac_exec_ext in '' $ac_executable_extensions; do
58902 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
58903 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
58904 if test $ac_prog = install &&
58905 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
58906 # AIX install. It has an incompatible calling convention.
58907 @@ -2543,21 +3021,22 @@ case $as_dir/ in
58908 ;;
58909 esac
58910 done
58911 +IFS=$as_save_IFS
58912
58913
58914 fi
58915 if test "${ac_cv_path_install+set}" = set; then
58916 INSTALL=$ac_cv_path_install
58917 else
58918 - # As a last resort, use the slow shell script. We don't cache a
58919 - # path for INSTALL within a source directory, because that will
58920 + # As a last resort, use the slow shell script. Don't cache a
58921 + # value for INSTALL within a source directory, because that will
58922 # break other packages using the cache if that directory is
58923 - # removed, or if the path is relative.
58924 + # removed, or if the value is a relative name.
58925 INSTALL=$ac_install_sh
58926 fi
58927 fi
58928 -echo "$as_me:$LINENO: result: $INSTALL" >&5
58929 -echo "${ECHO_T}$INSTALL" >&6
58930 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
58931 +echo "${ECHO_T}$INSTALL" >&6; }
58932
58933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
58934 # It thinks the first close brace ends the variable substitution.
58935 @@ -2567,8 +3046,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
58936
58937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
58938
58939 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
58940 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
58941 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
58942 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
58943 # Just in case
58944 sleep 1
58945 echo timestamp > conftest.file
58946 @@ -2610,20 +3089,20 @@ echo "$as_me: error: newly created file
58947 Check your system clock" >&2;}
58948 { (exit 1); exit 1; }; }
58949 fi
58950 -echo "$as_me:$LINENO: result: yes" >&5
58951 -echo "${ECHO_T}yes" >&6
58952 +{ echo "$as_me:$LINENO: result: yes" >&5
58953 +echo "${ECHO_T}yes" >&6; }
58954 test "$program_prefix" != NONE &&
58955 - program_transform_name="s,^,$program_prefix,;$program_transform_name"
58956 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
58957 # Use a double $ so make ignores it.
58958 test "$program_suffix" != NONE &&
58959 - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
58960 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
58961 # Double any \ or $. echo might interpret backslashes.
58962 # By default was `s,x,x', remove it if useless.
58963 cat <<\_ACEOF >conftest.sed
58964 s/[\\$]/&&/g;s/;s,x,x,$//
58965 _ACEOF
58966 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
58967 -rm conftest.sed
58968 +rm -f conftest.sed
58969
58970 # expand $ac_aux_dir to an absolute path
58971 am_aux_dir=`cd $ac_aux_dir && pwd`
58972 @@ -2675,8 +3154,8 @@ for ac_prog in gawk mawk nawk awk
58973 do
58974 # Extract the first word of "$ac_prog", so it can be a program name with args.
58975 set dummy $ac_prog; ac_word=$2
58976 -echo "$as_me:$LINENO: checking for $ac_word" >&5
58977 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
58978 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
58979 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
58980 if test "${ac_cv_prog_AWK+set}" = set; then
58981 echo $ECHO_N "(cached) $ECHO_C" >&6
58982 else
58983 @@ -2689,54 +3168,57 @@ do
58984 IFS=$as_save_IFS
58985 test -z "$as_dir" && as_dir=.
58986 for ac_exec_ext in '' $ac_executable_extensions; do
58987 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
58988 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58989 ac_cv_prog_AWK="$ac_prog"
58990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58991 break 2
58992 fi
58993 done
58994 done
58995 +IFS=$as_save_IFS
58996
58997 fi
58998 fi
58999 AWK=$ac_cv_prog_AWK
59000 if test -n "$AWK"; then
59001 - echo "$as_me:$LINENO: result: $AWK" >&5
59002 -echo "${ECHO_T}$AWK" >&6
59003 + { echo "$as_me:$LINENO: result: $AWK" >&5
59004 +echo "${ECHO_T}$AWK" >&6; }
59005 else
59006 - echo "$as_me:$LINENO: result: no" >&5
59007 -echo "${ECHO_T}no" >&6
59008 + { echo "$as_me:$LINENO: result: no" >&5
59009 +echo "${ECHO_T}no" >&6; }
59010 fi
59011
59012 +
59013 test -n "$AWK" && break
59014 done
59015
59016 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
59017 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
59018 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
59019 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
59020 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
59021 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
59022 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
59023 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
59024 echo $ECHO_N "(cached) $ECHO_C" >&6
59025 else
59026 cat >conftest.make <<\_ACEOF
59027 +SHELL = /bin/sh
59028 all:
59029 - @echo 'ac_maketemp="$(MAKE)"'
59030 + @echo '@@@%%%=$(MAKE)=@@@%%%'
59031 _ACEOF
59032 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
59033 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
59034 -if test -n "$ac_maketemp"; then
59035 - eval ac_cv_prog_make_${ac_make}_set=yes
59036 -else
59037 - eval ac_cv_prog_make_${ac_make}_set=no
59038 -fi
59039 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
59040 + *@@@%%%=?*=@@@%%%*)
59041 + eval ac_cv_prog_make_${ac_make}_set=yes;;
59042 + *)
59043 + eval ac_cv_prog_make_${ac_make}_set=no;;
59044 +esac
59045 rm -f conftest.make
59046 fi
59047 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
59048 - echo "$as_me:$LINENO: result: yes" >&5
59049 -echo "${ECHO_T}yes" >&6
59050 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
59051 + { echo "$as_me:$LINENO: result: yes" >&5
59052 +echo "${ECHO_T}yes" >&6; }
59053 SET_MAKE=
59054 else
59055 - echo "$as_me:$LINENO: result: no" >&5
59056 -echo "${ECHO_T}no" >&6
59057 + { echo "$as_me:$LINENO: result: no" >&5
59058 +echo "${ECHO_T}no" >&6; }
59059 SET_MAKE="MAKE=${MAKE-make}"
59060 fi
59061
59062 @@ -2751,7 +3233,7 @@ rmdir .tst 2>/dev/null
59063
59064 DEPDIR="${am__leading_dot}deps"
59065
59066 - ac_config_commands="$ac_config_commands depfiles"
59067 +ac_config_commands="$ac_config_commands depfiles"
59068
59069
59070 am_make=${MAKE-make}
59071 @@ -2761,8 +3243,8 @@ am__doit:
59072 .PHONY: am__doit
59073 END
59074 # If we don't find an include directive, just comment out the code.
59075 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
59076 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
59077 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
59078 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
59079 am__include="#"
59080 am__quote=
59081 _am_result=none
59082 @@ -2789,15 +3271,15 @@ if test "$am__include" = "#"; then
59083 fi
59084
59085
59086 -echo "$as_me:$LINENO: result: $_am_result" >&5
59087 -echo "${ECHO_T}$_am_result" >&6
59088 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
59089 +echo "${ECHO_T}$_am_result" >&6; }
59090 rm -f confinc confmf
59091
59092 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
59093 +# Check whether --enable-dependency-tracking was given.
59094 if test "${enable_dependency_tracking+set}" = set; then
59095 - enableval="$enable_dependency_tracking"
59096 + enableval=$enable_dependency_tracking;
59097 +fi
59098
59099 -fi;
59100 if test "x$enable_dependency_tracking" != xno; then
59101 am_depcomp="$ac_aux_dir/depcomp"
59102 AMDEPBACKSLASH='\'
59103 @@ -2872,8 +3354,8 @@ if test "$cross_compiling" != no; then
59104 if test -n "$ac_tool_prefix"; then
59105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
59106 set dummy ${ac_tool_prefix}strip; ac_word=$2
59107 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59108 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59109 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59110 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59111 if test "${ac_cv_prog_STRIP+set}" = set; then
59112 echo $ECHO_N "(cached) $ECHO_C" >&6
59113 else
59114 @@ -2886,32 +3368,34 @@ do
59115 IFS=$as_save_IFS
59116 test -z "$as_dir" && as_dir=.
59117 for ac_exec_ext in '' $ac_executable_extensions; do
59118 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59119 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59120 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
59121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59122 break 2
59123 fi
59124 done
59125 done
59126 +IFS=$as_save_IFS
59127
59128 fi
59129 fi
59130 STRIP=$ac_cv_prog_STRIP
59131 if test -n "$STRIP"; then
59132 - echo "$as_me:$LINENO: result: $STRIP" >&5
59133 -echo "${ECHO_T}$STRIP" >&6
59134 + { echo "$as_me:$LINENO: result: $STRIP" >&5
59135 +echo "${ECHO_T}$STRIP" >&6; }
59136 else
59137 - echo "$as_me:$LINENO: result: no" >&5
59138 -echo "${ECHO_T}no" >&6
59139 + { echo "$as_me:$LINENO: result: no" >&5
59140 +echo "${ECHO_T}no" >&6; }
59141 fi
59142
59143 +
59144 fi
59145 if test -z "$ac_cv_prog_STRIP"; then
59146 ac_ct_STRIP=$STRIP
59147 # Extract the first word of "strip", so it can be a program name with args.
59148 set dummy strip; ac_word=$2
59149 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59150 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59151 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59152 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59153 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
59154 echo $ECHO_N "(cached) $ECHO_C" >&6
59155 else
59156 @@ -2924,27 +3408,41 @@ do
59157 IFS=$as_save_IFS
59158 test -z "$as_dir" && as_dir=.
59159 for ac_exec_ext in '' $ac_executable_extensions; do
59160 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59161 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59162 ac_cv_prog_ac_ct_STRIP="strip"
59163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59164 break 2
59165 fi
59166 done
59167 done
59168 +IFS=$as_save_IFS
59169
59170 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
59171 fi
59172 fi
59173 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
59174 if test -n "$ac_ct_STRIP"; then
59175 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59176 -echo "${ECHO_T}$ac_ct_STRIP" >&6
59177 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59178 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
59179 else
59180 - echo "$as_me:$LINENO: result: no" >&5
59181 -echo "${ECHO_T}no" >&6
59182 + { echo "$as_me:$LINENO: result: no" >&5
59183 +echo "${ECHO_T}no" >&6; }
59184 fi
59185
59186 - STRIP=$ac_ct_STRIP
59187 + if test "x$ac_ct_STRIP" = x; then
59188 + STRIP=":"
59189 + else
59190 + case $cross_compiling:$ac_tool_warned in
59191 +yes:)
59192 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
59193 +whose name does not start with the host triplet. If you think this
59194 +configuration is useful to you, please write to autoconf@gnu.org." >&5
59195 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
59196 +whose name does not start with the host triplet. If you think this
59197 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
59198 +ac_tool_warned=yes ;;
59199 +esac
59200 + STRIP=$ac_ct_STRIP
59201 + fi
59202 else
59203 STRIP="$ac_cv_prog_STRIP"
59204 fi
59205 @@ -2965,8 +3463,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
59206
59207 depcc="$CC" am_compiler_list=
59208
59209 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
59210 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
59211 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
59212 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
59213 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
59214 echo $ECHO_N "(cached) $ECHO_C" >&6
59215 else
59216 @@ -3055,8 +3553,8 @@ else
59217 fi
59218
59219 fi
59220 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
59221 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
59222 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
59223 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
59224 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
59225
59226
59227 @@ -3074,10 +3572,9 @@ fi
59228
59229
59230
59231 -# Check whether --enable-shared or --disable-shared was given.
59232 +# Check whether --enable-shared was given.
59233 if test "${enable_shared+set}" = set; then
59234 - enableval="$enable_shared"
59235 - p=${PACKAGE-default}
59236 + enableval=$enable_shared; p=${PACKAGE-default}
59237 case $enableval in
59238 yes) enable_shared=yes ;;
59239 no) enable_shared=no ;;
59240 @@ -3095,11 +3592,11 @@ no) enable_shared=no ;;
59241 esac
59242 else
59243 enable_shared=yes
59244 -fi;
59245 -# Check whether --enable-static or --disable-static was given.
59246 +fi
59247 +
59248 +# Check whether --enable-static was given.
59249 if test "${enable_static+set}" = set; then
59250 - enableval="$enable_static"
59251 - p=${PACKAGE-default}
59252 + enableval=$enable_static; p=${PACKAGE-default}
59253 case $enableval in
59254 yes) enable_static=yes ;;
59255 no) enable_static=no ;;
59256 @@ -3117,11 +3614,11 @@ no) enable_static=no ;;
59257 esac
59258 else
59259 enable_static=yes
59260 -fi;
59261 -# Check whether --enable-fast-install or --disable-fast-install was given.
59262 +fi
59263 +
59264 +# Check whether --enable-fast-install was given.
59265 if test "${enable_fast_install+set}" = set; then
59266 - enableval="$enable_fast_install"
59267 - p=${PACKAGE-default}
59268 + enableval=$enable_fast_install; p=${PACKAGE-default}
59269 case $enableval in
59270 yes) enable_fast_install=yes ;;
59271 no) enable_fast_install=no ;;
59272 @@ -3139,20 +3636,21 @@ no) enable_fast_install=no ;;
59273 esac
59274 else
59275 enable_fast_install=yes
59276 -fi;
59277 +fi
59278 +
59279
59280 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
59281 +# Check whether --with-gnu-ld was given.
59282 if test "${with_gnu_ld+set}" = set; then
59283 - withval="$with_gnu_ld"
59284 - test "$withval" = no || with_gnu_ld=yes
59285 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
59286 else
59287 with_gnu_ld=no
59288 -fi;
59289 +fi
59290 +
59291 ac_prog=ld
59292 if test "$GCC" = yes; then
59293 # Check if gcc -print-prog-name=ld gives a path.
59294 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
59295 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
59296 + { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
59297 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
59298 case $host in
59299 *-*-mingw*)
59300 # gcc leaves a trailing carriage return which upsets mingw
59301 @@ -3181,11 +3679,11 @@ echo $ECHO_N "checking for ld used by GC
59302 ;;
59303 esac
59304 elif test "$with_gnu_ld" = yes; then
59305 - echo "$as_me:$LINENO: checking for GNU ld" >&5
59306 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
59307 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
59308 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
59309 else
59310 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
59311 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
59312 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
59313 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
59314 fi
59315 if test "${lt_cv_path_LD+set}" = set; then
59316 echo $ECHO_N "(cached) $ECHO_C" >&6
59317 @@ -3214,17 +3712,17 @@ fi
59318
59319 LD="$lt_cv_path_LD"
59320 if test -n "$LD"; then
59321 - echo "$as_me:$LINENO: result: $LD" >&5
59322 -echo "${ECHO_T}$LD" >&6
59323 + { echo "$as_me:$LINENO: result: $LD" >&5
59324 +echo "${ECHO_T}$LD" >&6; }
59325 else
59326 - echo "$as_me:$LINENO: result: no" >&5
59327 -echo "${ECHO_T}no" >&6
59328 + { echo "$as_me:$LINENO: result: no" >&5
59329 +echo "${ECHO_T}no" >&6; }
59330 fi
59331 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
59332 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
59333 { (exit 1); exit 1; }; }
59334 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
59335 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
59336 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
59337 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
59338 if test "${lt_cv_prog_gnu_ld+set}" = set; then
59339 echo $ECHO_N "(cached) $ECHO_C" >&6
59340 else
59341 @@ -3235,25 +3733,25 @@ else
59342 lt_cv_prog_gnu_ld=no
59343 fi
59344 fi
59345 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
59346 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
59347 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
59348 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
59349 with_gnu_ld=$lt_cv_prog_gnu_ld
59350
59351
59352 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
59353 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
59354 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
59355 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
59356 if test "${lt_cv_ld_reload_flag+set}" = set; then
59357 echo $ECHO_N "(cached) $ECHO_C" >&6
59358 else
59359 lt_cv_ld_reload_flag='-r'
59360 fi
59361 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
59362 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
59363 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
59364 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
59365 reload_flag=$lt_cv_ld_reload_flag
59366 test -n "$reload_flag" && reload_flag=" $reload_flag"
59367
59368 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
59369 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
59370 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
59371 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
59372 if test "${lt_cv_path_NM+set}" = set; then
59373 echo $ECHO_N "(cached) $ECHO_C" >&6
59374 else
59375 @@ -3288,22 +3786,22 @@ fi
59376 fi
59377
59378 NM="$lt_cv_path_NM"
59379 -echo "$as_me:$LINENO: result: $NM" >&5
59380 -echo "${ECHO_T}$NM" >&6
59381 +{ echo "$as_me:$LINENO: result: $NM" >&5
59382 +echo "${ECHO_T}$NM" >&6; }
59383
59384 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
59385 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
59386 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
59387 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
59388 LN_S=$as_ln_s
59389 if test "$LN_S" = "ln -s"; then
59390 - echo "$as_me:$LINENO: result: yes" >&5
59391 -echo "${ECHO_T}yes" >&6
59392 + { echo "$as_me:$LINENO: result: yes" >&5
59393 +echo "${ECHO_T}yes" >&6; }
59394 else
59395 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
59396 -echo "${ECHO_T}no, using $LN_S" >&6
59397 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
59398 +echo "${ECHO_T}no, using $LN_S" >&6; }
59399 fi
59400
59401 -echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
59402 -echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
59403 +{ echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
59404 +echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
59405 if test "${lt_cv_deplibs_check_method+set}" = set; then
59406 echo $ECHO_N "(cached) $ECHO_C" >&6
59407 else
59408 @@ -3465,8 +3963,8 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
59409 esac
59410
59411 fi
59412 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
59413 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
59414 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
59415 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
59416 file_magic_cmd=$lt_cv_file_magic_cmd
59417 deplibs_check_method=$lt_cv_deplibs_check_method
59418
59419 @@ -3476,8 +3974,8 @@ deplibs_check_method=$lt_cv_deplibs_chec
59420 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
59421
59422 # find the maximum length of command line arguments
59423 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
59424 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
59425 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
59426 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
59427 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
59428 echo $ECHO_N "(cached) $ECHO_C" >&6
59429 else
59430 @@ -3528,11 +4026,11 @@ else
59431 fi
59432
59433 if test -n "$lt_cv_sys_max_cmd_len" ; then
59434 - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
59435 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
59436 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
59437 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
59438 else
59439 - echo "$as_me:$LINENO: result: none" >&5
59440 -echo "${ECHO_T}none" >&6
59441 + { echo "$as_me:$LINENO: result: none" >&5
59442 +echo "${ECHO_T}none" >&6; }
59443 fi
59444
59445
59446 @@ -3540,8 +4038,8 @@ fi
59447 case $deplibs_check_method in
59448 file_magic*)
59449 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
59450 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
59451 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
59452 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
59453 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
59454 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
59455 echo $ECHO_N "(cached) $ECHO_C" >&6
59456 else
59457 @@ -3595,17 +4093,17 @@ fi
59458
59459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
59460 if test -n "$MAGIC_CMD"; then
59461 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59462 -echo "${ECHO_T}$MAGIC_CMD" >&6
59463 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59464 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
59465 else
59466 - echo "$as_me:$LINENO: result: no" >&5
59467 -echo "${ECHO_T}no" >&6
59468 + { echo "$as_me:$LINENO: result: no" >&5
59469 +echo "${ECHO_T}no" >&6; }
59470 fi
59471
59472 if test -z "$lt_cv_path_MAGIC_CMD"; then
59473 if test -n "$ac_tool_prefix"; then
59474 - echo "$as_me:$LINENO: checking for file" >&5
59475 -echo $ECHO_N "checking for file... $ECHO_C" >&6
59476 + { echo "$as_me:$LINENO: checking for file" >&5
59477 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
59478 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
59479 echo $ECHO_N "(cached) $ECHO_C" >&6
59480 else
59481 @@ -3659,11 +4157,11 @@ fi
59482
59483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
59484 if test -n "$MAGIC_CMD"; then
59485 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59486 -echo "${ECHO_T}$MAGIC_CMD" >&6
59487 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59488 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
59489 else
59490 - echo "$as_me:$LINENO: result: no" >&5
59491 -echo "${ECHO_T}no" >&6
59492 + { echo "$as_me:$LINENO: result: no" >&5
59493 +echo "${ECHO_T}no" >&6; }
59494 fi
59495
59496 else
59497 @@ -3678,8 +4176,8 @@ esac
59498 if test -n "$ac_tool_prefix"; then
59499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
59500 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
59501 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59502 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59503 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59504 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59505 if test "${ac_cv_prog_RANLIB+set}" = set; then
59506 echo $ECHO_N "(cached) $ECHO_C" >&6
59507 else
59508 @@ -3692,32 +4190,34 @@ do
59509 IFS=$as_save_IFS
59510 test -z "$as_dir" && as_dir=.
59511 for ac_exec_ext in '' $ac_executable_extensions; do
59512 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59513 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
59515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59516 break 2
59517 fi
59518 done
59519 done
59520 +IFS=$as_save_IFS
59521
59522 fi
59523 fi
59524 RANLIB=$ac_cv_prog_RANLIB
59525 if test -n "$RANLIB"; then
59526 - echo "$as_me:$LINENO: result: $RANLIB" >&5
59527 -echo "${ECHO_T}$RANLIB" >&6
59528 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
59529 +echo "${ECHO_T}$RANLIB" >&6; }
59530 else
59531 - echo "$as_me:$LINENO: result: no" >&5
59532 -echo "${ECHO_T}no" >&6
59533 + { echo "$as_me:$LINENO: result: no" >&5
59534 +echo "${ECHO_T}no" >&6; }
59535 fi
59536
59537 +
59538 fi
59539 if test -z "$ac_cv_prog_RANLIB"; then
59540 ac_ct_RANLIB=$RANLIB
59541 # Extract the first word of "ranlib", so it can be a program name with args.
59542 set dummy ranlib; ac_word=$2
59543 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59544 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59545 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59546 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59547 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
59548 echo $ECHO_N "(cached) $ECHO_C" >&6
59549 else
59550 @@ -3730,27 +4230,41 @@ do
59551 IFS=$as_save_IFS
59552 test -z "$as_dir" && as_dir=.
59553 for ac_exec_ext in '' $ac_executable_extensions; do
59554 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59555 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59556 ac_cv_prog_ac_ct_RANLIB="ranlib"
59557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59558 break 2
59559 fi
59560 done
59561 done
59562 +IFS=$as_save_IFS
59563
59564 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
59565 fi
59566 fi
59567 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
59568 if test -n "$ac_ct_RANLIB"; then
59569 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
59570 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
59571 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
59572 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
59573 else
59574 - echo "$as_me:$LINENO: result: no" >&5
59575 -echo "${ECHO_T}no" >&6
59576 + { echo "$as_me:$LINENO: result: no" >&5
59577 +echo "${ECHO_T}no" >&6; }
59578 fi
59579
59580 - RANLIB=$ac_ct_RANLIB
59581 + if test "x$ac_ct_RANLIB" = x; then
59582 + RANLIB=":"
59583 + else
59584 + case $cross_compiling:$ac_tool_warned in
59585 +yes:)
59586 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
59587 +whose name does not start with the host triplet. If you think this
59588 +configuration is useful to you, please write to autoconf@gnu.org." >&5
59589 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
59590 +whose name does not start with the host triplet. If you think this
59591 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
59592 +ac_tool_warned=yes ;;
59593 +esac
59594 + RANLIB=$ac_ct_RANLIB
59595 + fi
59596 else
59597 RANLIB="$ac_cv_prog_RANLIB"
59598 fi
59599 @@ -3758,8 +4272,8 @@ fi
59600 if test -n "$ac_tool_prefix"; then
59601 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
59602 set dummy ${ac_tool_prefix}strip; ac_word=$2
59603 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59604 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59605 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59606 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59607 if test "${ac_cv_prog_STRIP+set}" = set; then
59608 echo $ECHO_N "(cached) $ECHO_C" >&6
59609 else
59610 @@ -3772,32 +4286,34 @@ do
59611 IFS=$as_save_IFS
59612 test -z "$as_dir" && as_dir=.
59613 for ac_exec_ext in '' $ac_executable_extensions; do
59614 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59615 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59616 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
59617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59618 break 2
59619 fi
59620 done
59621 done
59622 +IFS=$as_save_IFS
59623
59624 fi
59625 fi
59626 STRIP=$ac_cv_prog_STRIP
59627 if test -n "$STRIP"; then
59628 - echo "$as_me:$LINENO: result: $STRIP" >&5
59629 -echo "${ECHO_T}$STRIP" >&6
59630 + { echo "$as_me:$LINENO: result: $STRIP" >&5
59631 +echo "${ECHO_T}$STRIP" >&6; }
59632 else
59633 - echo "$as_me:$LINENO: result: no" >&5
59634 -echo "${ECHO_T}no" >&6
59635 + { echo "$as_me:$LINENO: result: no" >&5
59636 +echo "${ECHO_T}no" >&6; }
59637 fi
59638
59639 +
59640 fi
59641 if test -z "$ac_cv_prog_STRIP"; then
59642 ac_ct_STRIP=$STRIP
59643 # Extract the first word of "strip", so it can be a program name with args.
59644 set dummy strip; ac_word=$2
59645 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59646 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59647 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59648 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59649 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
59650 echo $ECHO_N "(cached) $ECHO_C" >&6
59651 else
59652 @@ -3810,27 +4326,41 @@ do
59653 IFS=$as_save_IFS
59654 test -z "$as_dir" && as_dir=.
59655 for ac_exec_ext in '' $ac_executable_extensions; do
59656 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59657 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59658 ac_cv_prog_ac_ct_STRIP="strip"
59659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59660 break 2
59661 fi
59662 done
59663 done
59664 +IFS=$as_save_IFS
59665
59666 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
59667 fi
59668 fi
59669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
59670 if test -n "$ac_ct_STRIP"; then
59671 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59672 -echo "${ECHO_T}$ac_ct_STRIP" >&6
59673 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59674 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
59675 else
59676 - echo "$as_me:$LINENO: result: no" >&5
59677 -echo "${ECHO_T}no" >&6
59678 + { echo "$as_me:$LINENO: result: no" >&5
59679 +echo "${ECHO_T}no" >&6; }
59680 fi
59681
59682 - STRIP=$ac_ct_STRIP
59683 + if test "x$ac_ct_STRIP" = x; then
59684 + STRIP=":"
59685 + else
59686 + case $cross_compiling:$ac_tool_warned in
59687 +yes:)
59688 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
59689 +whose name does not start with the host triplet. If you think this
59690 +configuration is useful to you, please write to autoconf@gnu.org." >&5
59691 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
59692 +whose name does not start with the host triplet. If you think this
59693 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
59694 +ac_tool_warned=yes ;;
59695 +esac
59696 + STRIP=$ac_ct_STRIP
59697 + fi
59698 else
59699 STRIP="$ac_cv_prog_STRIP"
59700 fi
59701 @@ -3845,22 +4375,22 @@ test "$GCC" = yes && libtool_flags="$lib
59702 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
59703
59704
59705 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
59706 +# Check whether --enable-libtool-lock was given.
59707 if test "${enable_libtool_lock+set}" = set; then
59708 - enableval="$enable_libtool_lock"
59709 + enableval=$enable_libtool_lock;
59710 +fi
59711
59712 -fi;
59713 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
59714 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
59715
59716
59717 -# Check whether --with-pic or --without-pic was given.
59718 +# Check whether --with-pic was given.
59719 if test "${with_pic+set}" = set; then
59720 - withval="$with_pic"
59721 - pic_mode="$withval"
59722 + withval=$with_pic; pic_mode="$withval"
59723 else
59724 pic_mode=default
59725 -fi;
59726 +fi
59727 +
59728 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
59729 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
59730
59731 @@ -3869,7 +4399,7 @@ test x"$pic_mode" = xno && libtool_flags
59732 case $host in
59733 *-*-irix6*)
59734 # Find out which ABI we are using.
59735 - echo '#line 3872 "configure"' > conftest.$ac_ext
59736 + echo '#line 4402 "configure"' > conftest.$ac_ext
59737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59738 (eval $ac_compile) 2>&5
59739 ac_status=$?
59740 @@ -3974,13 +4504,12 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
59741 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
59742 SAVE_CFLAGS="$CFLAGS"
59743 CFLAGS="$CFLAGS -belf"
59744 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
59745 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
59746 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
59747 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
59748 if test "${lt_cv_cc_needs_belf+set}" = set; then
59749 echo $ECHO_N "(cached) $ECHO_C" >&6
59750 else
59751
59752 -
59753 ac_ext=c
59754 ac_cpp='$CPP $CPPFLAGS'
59755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
59756 @@ -4003,35 +4532,32 @@ main ()
59757 }
59758 _ACEOF
59759 rm -f conftest.$ac_objext conftest$ac_exeext
59760 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59761 - (eval $ac_link) 2>conftest.er1
59762 +if { (ac_try="$ac_link"
59763 +case "(($ac_try" in
59764 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59765 + *) ac_try_echo=$ac_try;;
59766 +esac
59767 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59768 + (eval "$ac_link") 2>conftest.er1
59769 ac_status=$?
59770 grep -v '^ *+' conftest.er1 >conftest.err
59771 rm -f conftest.er1
59772 cat conftest.err >&5
59773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59774 - (exit $ac_status); } &&
59775 - { ac_try='test -z "$ac_c_werror_flag"
59776 - || test ! -s conftest.err'
59777 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59778 - (eval $ac_try) 2>&5
59779 - ac_status=$?
59780 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
59781 - (exit $ac_status); }; } &&
59782 - { ac_try='test -s conftest$ac_exeext'
59783 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59784 - (eval $ac_try) 2>&5
59785 - ac_status=$?
59786 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
59787 - (exit $ac_status); }; }; then
59788 + (exit $ac_status); } && {
59789 + test -z "$ac_c_werror_flag" ||
59790 + test ! -s conftest.err
59791 + } && test -s conftest$ac_exeext &&
59792 + $as_test_x conftest$ac_exeext; then
59793 lt_cv_cc_needs_belf=yes
59794 else
59795 echo "$as_me: failed program was:" >&5
59796 sed 's/^/| /' conftest.$ac_ext >&5
59797
59798 -lt_cv_cc_needs_belf=no
59799 + lt_cv_cc_needs_belf=no
59800 fi
59801 -rm -f conftest.err conftest.$ac_objext \
59802 +
59803 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59804 conftest$ac_exeext conftest.$ac_ext
59805 ac_ext=c
59806 ac_cpp='$CPP $CPPFLAGS'
59807 @@ -4040,8 +4566,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
59808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
59809
59810 fi
59811 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
59812 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
59813 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
59814 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
59815 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
59816 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
59817 CFLAGS="$SAVE_CFLAGS"
59818 @@ -4071,39 +4597,58 @@ _ACEOF
59819
59820 # The following way of writing the cache mishandles newlines in values,
59821 # but we know of no workaround that is simple, portable, and efficient.
59822 -# So, don't put newlines in cache variables' values.
59823 +# So, we kill variables containing newlines.
59824 # Ultrix sh set writes to stderr and can't be redirected directly,
59825 # and sets the high bit in the cache file unless we assign to the vars.
59826 -{
59827 +(
59828 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
59829 + eval ac_val=\$$ac_var
59830 + case $ac_val in #(
59831 + *${as_nl}*)
59832 + case $ac_var in #(
59833 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
59834 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
59835 + esac
59836 + case $ac_var in #(
59837 + _ | IFS | as_nl) ;; #(
59838 + *) $as_unset $ac_var ;;
59839 + esac ;;
59840 + esac
59841 + done
59842 +
59843 (set) 2>&1 |
59844 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
59845 - *ac_space=\ *)
59846 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
59847 + *${as_nl}ac_space=\ *)
59848 # `set' does not quote correctly, so add quotes (double-quote
59849 # substitution turns \\\\ into \\, and sed turns \\ into \).
59850 sed -n \
59851 "s/'/'\\\\''/g;
59852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59853 - ;;
59854 + ;; #(
59855 *)
59856 # `set' quotes correctly as required by POSIX, so do not add quotes.
59857 - sed -n \
59858 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
59859 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
59860 ;;
59861 - esac;
59862 -} |
59863 + esac |
59864 + sort
59865 +) |
59866 sed '
59867 + /^ac_cv_env_/b end
59868 t clear
59869 - : clear
59870 + :clear
59871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59872 t end
59873 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59874 - : end' >>confcache
59875 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
59876 - if test -w $cache_file; then
59877 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
59878 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59879 + :end' >>confcache
59880 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
59881 + if test -w "$cache_file"; then
59882 + test "x$cache_file" != "x/dev/null" &&
59883 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
59884 +echo "$as_me: updating cache $cache_file" >&6;}
59885 cat confcache >$cache_file
59886 else
59887 - echo "not updating unwritable cache $cache_file"
59888 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
59889 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
59890 fi
59891 fi
59892 rm -f confcache
59893 @@ -4129,8 +4674,8 @@ if test -r "$cache_file"; then
59894 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
59895 echo "$as_me: loading cache $cache_file" >&6;}
59896 case $cache_file in
59897 - [\\/]* | ?:[\\/]* ) . $cache_file;;
59898 - *) . ./$cache_file;;
59899 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
59900 + *) . "./$cache_file";;
59901 esac
59902 fi
59903 else
59904 @@ -4157,15 +4702,14 @@ exec 5>>./config.log
59905
59906
59907
59908 -# Check whether --with-lib-path or --without-lib-path was given.
59909 +# Check whether --with-lib-path was given.
59910 if test "${with_lib_path+set}" = set; then
59911 - withval="$with_lib_path"
59912 - LIB_PATH=$withval
59913 -fi;
59914 -# Check whether --enable-targets or --disable-targets was given.
59915 + withval=$with_lib_path; LIB_PATH=$withval
59916 +fi
59917 +
59918 +# Check whether --enable-targets was given.
59919 if test "${enable_targets+set}" = set; then
59920 - enableval="$enable_targets"
59921 - case "${enableval}" in
59922 + enableval=$enable_targets; case "${enableval}" in
59923 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
59924 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
59925 { (exit 1); exit 1; }; }
59926 @@ -4173,10 +4717,10 @@ echo "$as_me: error: enable-targets opti
59927 no) enable_targets= ;;
59928 *) enable_targets=$enableval ;;
59929 esac
59930 -fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
59931 +fi
59932 +# Check whether --enable-64-bit-bfd was given.
59933 if test "${enable_64_bit_bfd+set}" = set; then
59934 - enableval="$enable_64_bit_bfd"
59935 - case "${enableval}" in
59936 + enableval=$enable_64_bit_bfd; case "${enableval}" in
59937 yes) want64=true ;;
59938 no) want64=false ;;
59939 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
59940 @@ -4185,12 +4729,12 @@ echo "$as_me: error: bad value ${enablev
59941 esac
59942 else
59943 want64=false
59944 -fi;
59945 +fi
59946
59947 -# Check whether --with-sysroot or --without-sysroot was given.
59948 -if test "${with_sysroot+set}" = set; then
59949 - withval="$with_sysroot"
59950
59951 +# Check whether --with-sysroot was given.
59952 +if test "${with_sysroot+set}" = set; then
59953 + withval=$with_sysroot;
59954 case ${with_sysroot} in
59955 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
59956 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
59957 @@ -4222,7 +4766,8 @@ else
59958 TARGET_SYSTEM_ROOT=
59959 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
59960
59961 -fi;
59962 +fi
59963 +
59964
59965
59966
59967 @@ -4230,17 +4775,17 @@ fi;
59968
59969 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
59970
59971 -# Check whether --enable-werror or --disable-werror was given.
59972 +# Check whether --enable-werror was given.
59973 if test "${enable_werror+set}" = set; then
59974 - enableval="$enable_werror"
59975 - case "${enableval}" in
59976 + enableval=$enable_werror; case "${enableval}" in
59977 yes | y) ERROR_ON_WARNING="yes" ;;
59978 no | n) ERROR_ON_WARNING="no" ;;
59979 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
59980 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
59981 { (exit 1); exit 1; }; } ;;
59982 esac
59983 -fi;
59984 +fi
59985 +
59986
59987 # Enable -Werror by default when using gcc
59988 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
59989 @@ -4257,10 +4802,9 @@ if test "${GCC}" = yes ; then
59990 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
59991 fi
59992
59993 -# Check whether --enable-build-warnings or --disable-build-warnings was given.
59994 +# Check whether --enable-build-warnings was given.
59995 if test "${enable_build_warnings+set}" = set; then
59996 - enableval="$enable_build_warnings"
59997 - case "${enableval}" in
59998 + enableval=$enable_build_warnings; case "${enableval}" in
59999 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
60000 no) if test "${GCC}" = yes ; then
60001 WARN_CFLAGS="-w"
60002 @@ -4271,7 +4815,8 @@ if test "${enable_build_warnings+set}" =
60003 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
60004 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
60005 esac
60006 -fi;
60007 +fi
60008 +
60009
60010 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
60011 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
60012 @@ -4281,7 +4826,7 @@ fi
60013
60014
60015
60016 - ac_config_headers="$ac_config_headers config.h:config.in"
60017 +ac_config_headers="$ac_config_headers config.h:config.in"
60018
60019
60020 if test -z "$target" ; then
60021 @@ -4305,8 +4850,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
60022 if test -n "$ac_tool_prefix"; then
60023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
60024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
60025 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60026 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60027 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60028 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60029 if test "${ac_cv_prog_CC+set}" = set; then
60030 echo $ECHO_N "(cached) $ECHO_C" >&6
60031 else
60032 @@ -4319,32 +4864,34 @@ do
60033 IFS=$as_save_IFS
60034 test -z "$as_dir" && as_dir=.
60035 for ac_exec_ext in '' $ac_executable_extensions; do
60036 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60037 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
60039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60040 break 2
60041 fi
60042 done
60043 done
60044 +IFS=$as_save_IFS
60045
60046 fi
60047 fi
60048 CC=$ac_cv_prog_CC
60049 if test -n "$CC"; then
60050 - echo "$as_me:$LINENO: result: $CC" >&5
60051 -echo "${ECHO_T}$CC" >&6
60052 + { echo "$as_me:$LINENO: result: $CC" >&5
60053 +echo "${ECHO_T}$CC" >&6; }
60054 else
60055 - echo "$as_me:$LINENO: result: no" >&5
60056 -echo "${ECHO_T}no" >&6
60057 + { echo "$as_me:$LINENO: result: no" >&5
60058 +echo "${ECHO_T}no" >&6; }
60059 fi
60060
60061 +
60062 fi
60063 if test -z "$ac_cv_prog_CC"; then
60064 ac_ct_CC=$CC
60065 # Extract the first word of "gcc", so it can be a program name with args.
60066 set dummy gcc; ac_word=$2
60067 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60068 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60069 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60070 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
60072 echo $ECHO_N "(cached) $ECHO_C" >&6
60073 else
60074 @@ -4357,36 +4904,51 @@ do
60075 IFS=$as_save_IFS
60076 test -z "$as_dir" && as_dir=.
60077 for ac_exec_ext in '' $ac_executable_extensions; do
60078 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60079 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60080 ac_cv_prog_ac_ct_CC="gcc"
60081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60082 break 2
60083 fi
60084 done
60085 done
60086 +IFS=$as_save_IFS
60087
60088 fi
60089 fi
60090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
60091 if test -n "$ac_ct_CC"; then
60092 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60093 -echo "${ECHO_T}$ac_ct_CC" >&6
60094 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60095 +echo "${ECHO_T}$ac_ct_CC" >&6; }
60096 else
60097 - echo "$as_me:$LINENO: result: no" >&5
60098 -echo "${ECHO_T}no" >&6
60099 + { echo "$as_me:$LINENO: result: no" >&5
60100 +echo "${ECHO_T}no" >&6; }
60101 fi
60102
60103 - CC=$ac_ct_CC
60104 + if test "x$ac_ct_CC" = x; then
60105 + CC=""
60106 + else
60107 + case $cross_compiling:$ac_tool_warned in
60108 +yes:)
60109 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
60110 +whose name does not start with the host triplet. If you think this
60111 +configuration is useful to you, please write to autoconf@gnu.org." >&5
60112 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
60113 +whose name does not start with the host triplet. If you think this
60114 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
60115 +ac_tool_warned=yes ;;
60116 +esac
60117 + CC=$ac_ct_CC
60118 + fi
60119 else
60120 CC="$ac_cv_prog_CC"
60121 fi
60122
60123 if test -z "$CC"; then
60124 - if test -n "$ac_tool_prefix"; then
60125 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
60126 + if test -n "$ac_tool_prefix"; then
60127 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
60128 set dummy ${ac_tool_prefix}cc; ac_word=$2
60129 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60130 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60131 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60132 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60133 if test "${ac_cv_prog_CC+set}" = set; then
60134 echo $ECHO_N "(cached) $ECHO_C" >&6
60135 else
60136 @@ -4399,74 +4961,34 @@ do
60137 IFS=$as_save_IFS
60138 test -z "$as_dir" && as_dir=.
60139 for ac_exec_ext in '' $ac_executable_extensions; do
60140 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60141 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60142 ac_cv_prog_CC="${ac_tool_prefix}cc"
60143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60144 break 2
60145 fi
60146 done
60147 done
60148 +IFS=$as_save_IFS
60149
60150 fi
60151 fi
60152 CC=$ac_cv_prog_CC
60153 if test -n "$CC"; then
60154 - echo "$as_me:$LINENO: result: $CC" >&5
60155 -echo "${ECHO_T}$CC" >&6
60156 -else
60157 - echo "$as_me:$LINENO: result: no" >&5
60158 -echo "${ECHO_T}no" >&6
60159 -fi
60160 -
60161 -fi
60162 -if test -z "$ac_cv_prog_CC"; then
60163 - ac_ct_CC=$CC
60164 - # Extract the first word of "cc", so it can be a program name with args.
60165 -set dummy cc; ac_word=$2
60166 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60167 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60168 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
60169 - echo $ECHO_N "(cached) $ECHO_C" >&6
60170 -else
60171 - if test -n "$ac_ct_CC"; then
60172 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
60173 -else
60174 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
60175 -for as_dir in $PATH
60176 -do
60177 - IFS=$as_save_IFS
60178 - test -z "$as_dir" && as_dir=.
60179 - for ac_exec_ext in '' $ac_executable_extensions; do
60180 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60181 - ac_cv_prog_ac_ct_CC="cc"
60182 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60183 - break 2
60184 - fi
60185 -done
60186 -done
60187 -
60188 -fi
60189 -fi
60190 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
60191 -if test -n "$ac_ct_CC"; then
60192 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60193 -echo "${ECHO_T}$ac_ct_CC" >&6
60194 + { echo "$as_me:$LINENO: result: $CC" >&5
60195 +echo "${ECHO_T}$CC" >&6; }
60196 else
60197 - echo "$as_me:$LINENO: result: no" >&5
60198 -echo "${ECHO_T}no" >&6
60199 + { echo "$as_me:$LINENO: result: no" >&5
60200 +echo "${ECHO_T}no" >&6; }
60201 fi
60202
60203 - CC=$ac_ct_CC
60204 -else
60205 - CC="$ac_cv_prog_CC"
60206 -fi
60207
60208 + fi
60209 fi
60210 if test -z "$CC"; then
60211 # Extract the first word of "cc", so it can be a program name with args.
60212 set dummy cc; ac_word=$2
60213 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60214 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60215 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60216 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60217 if test "${ac_cv_prog_CC+set}" = set; then
60218 echo $ECHO_N "(cached) $ECHO_C" >&6
60219 else
60220 @@ -4480,7 +5002,7 @@ do
60221 IFS=$as_save_IFS
60222 test -z "$as_dir" && as_dir=.
60223 for ac_exec_ext in '' $ac_executable_extensions; do
60224 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60225 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60226 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
60227 ac_prog_rejected=yes
60228 continue
60229 @@ -4491,6 +5013,7 @@ do
60230 fi
60231 done
60232 done
60233 +IFS=$as_save_IFS
60234
60235 if test $ac_prog_rejected = yes; then
60236 # We found a bogon in the path, so make sure we never use it.
60237 @@ -4508,22 +5031,23 @@ fi
60238 fi
60239 CC=$ac_cv_prog_CC
60240 if test -n "$CC"; then
60241 - echo "$as_me:$LINENO: result: $CC" >&5
60242 -echo "${ECHO_T}$CC" >&6
60243 + { echo "$as_me:$LINENO: result: $CC" >&5
60244 +echo "${ECHO_T}$CC" >&6; }
60245 else
60246 - echo "$as_me:$LINENO: result: no" >&5
60247 -echo "${ECHO_T}no" >&6
60248 + { echo "$as_me:$LINENO: result: no" >&5
60249 +echo "${ECHO_T}no" >&6; }
60250 fi
60251
60252 +
60253 fi
60254 if test -z "$CC"; then
60255 if test -n "$ac_tool_prefix"; then
60256 - for ac_prog in cl
60257 + for ac_prog in cl.exe
60258 do
60259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
60260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
60261 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60262 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60263 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60264 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60265 if test "${ac_cv_prog_CC+set}" = set; then
60266 echo $ECHO_N "(cached) $ECHO_C" >&6
60267 else
60268 @@ -4536,36 +5060,38 @@ do
60269 IFS=$as_save_IFS
60270 test -z "$as_dir" && as_dir=.
60271 for ac_exec_ext in '' $ac_executable_extensions; do
60272 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60273 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
60275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60276 break 2
60277 fi
60278 done
60279 done
60280 +IFS=$as_save_IFS
60281
60282 fi
60283 fi
60284 CC=$ac_cv_prog_CC
60285 if test -n "$CC"; then
60286 - echo "$as_me:$LINENO: result: $CC" >&5
60287 -echo "${ECHO_T}$CC" >&6
60288 + { echo "$as_me:$LINENO: result: $CC" >&5
60289 +echo "${ECHO_T}$CC" >&6; }
60290 else
60291 - echo "$as_me:$LINENO: result: no" >&5
60292 -echo "${ECHO_T}no" >&6
60293 + { echo "$as_me:$LINENO: result: no" >&5
60294 +echo "${ECHO_T}no" >&6; }
60295 fi
60296
60297 +
60298 test -n "$CC" && break
60299 done
60300 fi
60301 if test -z "$CC"; then
60302 ac_ct_CC=$CC
60303 - for ac_prog in cl
60304 + for ac_prog in cl.exe
60305 do
60306 # Extract the first word of "$ac_prog", so it can be a program name with args.
60307 set dummy $ac_prog; ac_word=$2
60308 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60309 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60310 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60311 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
60313 echo $ECHO_N "(cached) $ECHO_C" >&6
60314 else
60315 @@ -4578,29 +5104,45 @@ do
60316 IFS=$as_save_IFS
60317 test -z "$as_dir" && as_dir=.
60318 for ac_exec_ext in '' $ac_executable_extensions; do
60319 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60320 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60321 ac_cv_prog_ac_ct_CC="$ac_prog"
60322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60323 break 2
60324 fi
60325 done
60326 done
60327 +IFS=$as_save_IFS
60328
60329 fi
60330 fi
60331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
60332 if test -n "$ac_ct_CC"; then
60333 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60334 -echo "${ECHO_T}$ac_ct_CC" >&6
60335 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60336 +echo "${ECHO_T}$ac_ct_CC" >&6; }
60337 else
60338 - echo "$as_me:$LINENO: result: no" >&5
60339 -echo "${ECHO_T}no" >&6
60340 + { echo "$as_me:$LINENO: result: no" >&5
60341 +echo "${ECHO_T}no" >&6; }
60342 fi
60343
60344 +
60345 test -n "$ac_ct_CC" && break
60346 done
60347
60348 - CC=$ac_ct_CC
60349 + if test "x$ac_ct_CC" = x; then
60350 + CC=""
60351 + else
60352 + case $cross_compiling:$ac_tool_warned in
60353 +yes:)
60354 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
60355 +whose name does not start with the host triplet. If you think this
60356 +configuration is useful to you, please write to autoconf@gnu.org." >&5
60357 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
60358 +whose name does not start with the host triplet. If you think this
60359 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
60360 +ac_tool_warned=yes ;;
60361 +esac
60362 + CC=$ac_ct_CC
60363 + fi
60364 fi
60365
60366 fi
60367 @@ -4613,27 +5155,41 @@ See \`config.log' for more details." >&2
60368 { (exit 1); exit 1; }; }
60369
60370 # Provide some information about the compiler.
60371 -echo "$as_me:$LINENO:" \
60372 - "checking for C compiler version" >&5
60373 +echo "$as_me:$LINENO: checking for C compiler version" >&5
60374 ac_compiler=`set X $ac_compile; echo $2`
60375 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
60376 - (eval $ac_compiler --version </dev/null >&5) 2>&5
60377 +{ (ac_try="$ac_compiler --version >&5"
60378 +case "(($ac_try" in
60379 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60380 + *) ac_try_echo=$ac_try;;
60381 +esac
60382 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60383 + (eval "$ac_compiler --version >&5") 2>&5
60384 ac_status=$?
60385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60386 (exit $ac_status); }
60387 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
60388 - (eval $ac_compiler -v </dev/null >&5) 2>&5
60389 +{ (ac_try="$ac_compiler -v >&5"
60390 +case "(($ac_try" in
60391 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60392 + *) ac_try_echo=$ac_try;;
60393 +esac
60394 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60395 + (eval "$ac_compiler -v >&5") 2>&5
60396 ac_status=$?
60397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60398 (exit $ac_status); }
60399 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
60400 - (eval $ac_compiler -V </dev/null >&5) 2>&5
60401 +{ (ac_try="$ac_compiler -V >&5"
60402 +case "(($ac_try" in
60403 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60404 + *) ac_try_echo=$ac_try;;
60405 +esac
60406 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60407 + (eval "$ac_compiler -V >&5") 2>&5
60408 ac_status=$?
60409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60410 (exit $ac_status); }
60411
60412 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
60413 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
60414 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
60415 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
60416 if test "${ac_cv_c_compiler_gnu+set}" = set; then
60417 echo $ECHO_N "(cached) $ECHO_C" >&6
60418 else
60419 @@ -4656,50 +5212,49 @@ main ()
60420 }
60421 _ACEOF
60422 rm -f conftest.$ac_objext
60423 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60424 - (eval $ac_compile) 2>conftest.er1
60425 +if { (ac_try="$ac_compile"
60426 +case "(($ac_try" in
60427 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60428 + *) ac_try_echo=$ac_try;;
60429 +esac
60430 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60431 + (eval "$ac_compile") 2>conftest.er1
60432 ac_status=$?
60433 grep -v '^ *+' conftest.er1 >conftest.err
60434 rm -f conftest.er1
60435 cat conftest.err >&5
60436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60437 - (exit $ac_status); } &&
60438 - { ac_try='test -z "$ac_c_werror_flag"
60439 - || test ! -s conftest.err'
60440 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60441 - (eval $ac_try) 2>&5
60442 - ac_status=$?
60443 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60444 - (exit $ac_status); }; } &&
60445 - { ac_try='test -s conftest.$ac_objext'
60446 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60447 - (eval $ac_try) 2>&5
60448 - ac_status=$?
60449 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60450 - (exit $ac_status); }; }; then
60451 + (exit $ac_status); } && {
60452 + test -z "$ac_c_werror_flag" ||
60453 + test ! -s conftest.err
60454 + } && test -s conftest.$ac_objext; then
60455 ac_compiler_gnu=yes
60456 else
60457 echo "$as_me: failed program was:" >&5
60458 sed 's/^/| /' conftest.$ac_ext >&5
60459
60460 -ac_compiler_gnu=no
60461 + ac_compiler_gnu=no
60462 fi
60463 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60464 +
60465 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
60467
60468 fi
60469 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
60470 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
60471 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
60472 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
60473 GCC=`test $ac_compiler_gnu = yes && echo yes`
60474 ac_test_CFLAGS=${CFLAGS+set}
60475 ac_save_CFLAGS=$CFLAGS
60476 -CFLAGS="-g"
60477 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
60478 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
60479 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
60480 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
60481 if test "${ac_cv_prog_cc_g+set}" = set; then
60482 echo $ECHO_N "(cached) $ECHO_C" >&6
60483 else
60484 - cat >conftest.$ac_ext <<_ACEOF
60485 + ac_save_c_werror_flag=$ac_c_werror_flag
60486 + ac_c_werror_flag=yes
60487 + ac_cv_prog_cc_g=no
60488 + CFLAGS="-g"
60489 + cat >conftest.$ac_ext <<_ACEOF
60490 /* confdefs.h. */
60491 _ACEOF
60492 cat confdefs.h >>conftest.$ac_ext
60493 @@ -4715,59 +5270,139 @@ main ()
60494 }
60495 _ACEOF
60496 rm -f conftest.$ac_objext
60497 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60498 - (eval $ac_compile) 2>conftest.er1
60499 +if { (ac_try="$ac_compile"
60500 +case "(($ac_try" in
60501 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60502 + *) ac_try_echo=$ac_try;;
60503 +esac
60504 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60505 + (eval "$ac_compile") 2>conftest.er1
60506 ac_status=$?
60507 grep -v '^ *+' conftest.er1 >conftest.err
60508 rm -f conftest.er1
60509 cat conftest.err >&5
60510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60511 - (exit $ac_status); } &&
60512 - { ac_try='test -z "$ac_c_werror_flag"
60513 - || test ! -s conftest.err'
60514 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60515 - (eval $ac_try) 2>&5
60516 - ac_status=$?
60517 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60518 - (exit $ac_status); }; } &&
60519 - { ac_try='test -s conftest.$ac_objext'
60520 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60521 - (eval $ac_try) 2>&5
60522 - ac_status=$?
60523 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60524 - (exit $ac_status); }; }; then
60525 + (exit $ac_status); } && {
60526 + test -z "$ac_c_werror_flag" ||
60527 + test ! -s conftest.err
60528 + } && test -s conftest.$ac_objext; then
60529 ac_cv_prog_cc_g=yes
60530 else
60531 echo "$as_me: failed program was:" >&5
60532 sed 's/^/| /' conftest.$ac_ext >&5
60533
60534 -ac_cv_prog_cc_g=no
60535 -fi
60536 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60537 -fi
60538 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
60539 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
60540 -if test "$ac_test_CFLAGS" = set; then
60541 - CFLAGS=$ac_save_CFLAGS
60542 -elif test $ac_cv_prog_cc_g = yes; then
60543 - if test "$GCC" = yes; then
60544 - CFLAGS="-g -O2"
60545 - else
60546 - CFLAGS="-g"
60547 - fi
60548 -else
60549 - if test "$GCC" = yes; then
60550 - CFLAGS="-O2"
60551 - else
60552 - CFLAGS=
60553 - fi
60554 -fi
60555 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
60556 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
60557 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
60558 - echo $ECHO_N "(cached) $ECHO_C" >&6
60559 -else
60560 - ac_cv_prog_cc_stdc=no
60561 + CFLAGS=""
60562 + cat >conftest.$ac_ext <<_ACEOF
60563 +/* confdefs.h. */
60564 +_ACEOF
60565 +cat confdefs.h >>conftest.$ac_ext
60566 +cat >>conftest.$ac_ext <<_ACEOF
60567 +/* end confdefs.h. */
60568 +
60569 +int
60570 +main ()
60571 +{
60572 +
60573 + ;
60574 + return 0;
60575 +}
60576 +_ACEOF
60577 +rm -f conftest.$ac_objext
60578 +if { (ac_try="$ac_compile"
60579 +case "(($ac_try" in
60580 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60581 + *) ac_try_echo=$ac_try;;
60582 +esac
60583 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60584 + (eval "$ac_compile") 2>conftest.er1
60585 + ac_status=$?
60586 + grep -v '^ *+' conftest.er1 >conftest.err
60587 + rm -f conftest.er1
60588 + cat conftest.err >&5
60589 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
60590 + (exit $ac_status); } && {
60591 + test -z "$ac_c_werror_flag" ||
60592 + test ! -s conftest.err
60593 + } && test -s conftest.$ac_objext; then
60594 + :
60595 +else
60596 + echo "$as_me: failed program was:" >&5
60597 +sed 's/^/| /' conftest.$ac_ext >&5
60598 +
60599 + ac_c_werror_flag=$ac_save_c_werror_flag
60600 + CFLAGS="-g"
60601 + cat >conftest.$ac_ext <<_ACEOF
60602 +/* confdefs.h. */
60603 +_ACEOF
60604 +cat confdefs.h >>conftest.$ac_ext
60605 +cat >>conftest.$ac_ext <<_ACEOF
60606 +/* end confdefs.h. */
60607 +
60608 +int
60609 +main ()
60610 +{
60611 +
60612 + ;
60613 + return 0;
60614 +}
60615 +_ACEOF
60616 +rm -f conftest.$ac_objext
60617 +if { (ac_try="$ac_compile"
60618 +case "(($ac_try" in
60619 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60620 + *) ac_try_echo=$ac_try;;
60621 +esac
60622 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60623 + (eval "$ac_compile") 2>conftest.er1
60624 + ac_status=$?
60625 + grep -v '^ *+' conftest.er1 >conftest.err
60626 + rm -f conftest.er1
60627 + cat conftest.err >&5
60628 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
60629 + (exit $ac_status); } && {
60630 + test -z "$ac_c_werror_flag" ||
60631 + test ! -s conftest.err
60632 + } && test -s conftest.$ac_objext; then
60633 + ac_cv_prog_cc_g=yes
60634 +else
60635 + echo "$as_me: failed program was:" >&5
60636 +sed 's/^/| /' conftest.$ac_ext >&5
60637 +
60638 +
60639 +fi
60640 +
60641 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60642 +fi
60643 +
60644 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60645 +fi
60646 +
60647 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60648 + ac_c_werror_flag=$ac_save_c_werror_flag
60649 +fi
60650 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
60651 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
60652 +if test "$ac_test_CFLAGS" = set; then
60653 + CFLAGS=$ac_save_CFLAGS
60654 +elif test $ac_cv_prog_cc_g = yes; then
60655 + if test "$GCC" = yes; then
60656 + CFLAGS="-g -O2"
60657 + else
60658 + CFLAGS="-g"
60659 + fi
60660 +else
60661 + if test "$GCC" = yes; then
60662 + CFLAGS="-O2"
60663 + else
60664 + CFLAGS=
60665 + fi
60666 +fi
60667 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
60668 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
60669 +if test "${ac_cv_prog_cc_c89+set}" = set; then
60670 + echo $ECHO_N "(cached) $ECHO_C" >&6
60671 +else
60672 + ac_cv_prog_cc_c89=no
60673 ac_save_CC=$CC
60674 cat >conftest.$ac_ext <<_ACEOF
60675 /* confdefs.h. */
60676 @@ -4801,12 +5436,17 @@ static char *f (char * (*g) (char **, in
60677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
60678 function prototypes and stuff, but not '\xHH' hex character constants.
60679 These don't provoke an error unfortunately, instead are silently treated
60680 - as 'x'. The following induces an error, until -std1 is added to get
60681 + as 'x'. The following induces an error, until -std is added to get
60682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
60683 array size at least. It's necessary to write '\x00'==0 to get something
60684 - that's true only with -std1. */
60685 + that's true only with -std. */
60686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
60687
60688 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
60689 + inside strings and character constants. */
60690 +#define FOO(x) 'x'
60691 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
60692 +
60693 int test (int i, double x);
60694 struct s1 {int (*f) (int a);};
60695 struct s2 {int (*f) (double a);};
60696 @@ -4821,205 +5461,57 @@ return f (e, argv, 0) != argv[0] || f
60697 return 0;
60698 }
60699 _ACEOF
60700 -# Don't try gcc -ansi; that turns off useful extensions and
60701 -# breaks some systems' header files.
60702 -# AIX -qlanglvl=ansi
60703 -# Ultrix and OSF/1 -std1
60704 -# HP-UX 10.20 and later -Ae
60705 -# HP-UX older versions -Aa -D_HPUX_SOURCE
60706 -# SVR4 -Xc -D__EXTENSIONS__
60707 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
60708 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
60709 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
60710 do
60711 CC="$ac_save_CC $ac_arg"
60712 rm -f conftest.$ac_objext
60713 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60714 - (eval $ac_compile) 2>conftest.er1
60715 +if { (ac_try="$ac_compile"
60716 +case "(($ac_try" in
60717 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60718 + *) ac_try_echo=$ac_try;;
60719 +esac
60720 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60721 + (eval "$ac_compile") 2>conftest.er1
60722 ac_status=$?
60723 grep -v '^ *+' conftest.er1 >conftest.err
60724 rm -f conftest.er1
60725 cat conftest.err >&5
60726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60727 - (exit $ac_status); } &&
60728 - { ac_try='test -z "$ac_c_werror_flag"
60729 - || test ! -s conftest.err'
60730 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60731 - (eval $ac_try) 2>&5
60732 - ac_status=$?
60733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60734 - (exit $ac_status); }; } &&
60735 - { ac_try='test -s conftest.$ac_objext'
60736 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60737 - (eval $ac_try) 2>&5
60738 - ac_status=$?
60739 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60740 - (exit $ac_status); }; }; then
60741 - ac_cv_prog_cc_stdc=$ac_arg
60742 -break
60743 + (exit $ac_status); } && {
60744 + test -z "$ac_c_werror_flag" ||
60745 + test ! -s conftest.err
60746 + } && test -s conftest.$ac_objext; then
60747 + ac_cv_prog_cc_c89=$ac_arg
60748 else
60749 echo "$as_me: failed program was:" >&5
60750 sed 's/^/| /' conftest.$ac_ext >&5
60751
60752 +
60753 fi
60754 -rm -f conftest.err conftest.$ac_objext
60755 +
60756 +rm -f core conftest.err conftest.$ac_objext
60757 + test "x$ac_cv_prog_cc_c89" != "xno" && break
60758 done
60759 -rm -f conftest.$ac_ext conftest.$ac_objext
60760 +rm -f conftest.$ac_ext
60761 CC=$ac_save_CC
60762
60763 fi
60764 -
60765 -case "x$ac_cv_prog_cc_stdc" in
60766 - x|xno)
60767 - echo "$as_me:$LINENO: result: none needed" >&5
60768 -echo "${ECHO_T}none needed" >&6 ;;
60769 +# AC_CACHE_VAL
60770 +case "x$ac_cv_prog_cc_c89" in
60771 + x)
60772 + { echo "$as_me:$LINENO: result: none needed" >&5
60773 +echo "${ECHO_T}none needed" >&6; } ;;
60774 + xno)
60775 + { echo "$as_me:$LINENO: result: unsupported" >&5
60776 +echo "${ECHO_T}unsupported" >&6; } ;;
60777 *)
60778 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
60779 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
60780 - CC="$CC $ac_cv_prog_cc_stdc" ;;
60781 + CC="$CC $ac_cv_prog_cc_c89"
60782 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
60783 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
60784 esac
60785
60786 -# Some people use a C++ compiler to compile C. Since we use `exit',
60787 -# in C++ we need to declare it. In case someone uses the same compiler
60788 -# for both compiling C and C++ we need to have the C++ compiler decide
60789 -# the declaration of exit, since it's the most demanding environment.
60790 -cat >conftest.$ac_ext <<_ACEOF
60791 -#ifndef __cplusplus
60792 - choke me
60793 -#endif
60794 -_ACEOF
60795 -rm -f conftest.$ac_objext
60796 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60797 - (eval $ac_compile) 2>conftest.er1
60798 - ac_status=$?
60799 - grep -v '^ *+' conftest.er1 >conftest.err
60800 - rm -f conftest.er1
60801 - cat conftest.err >&5
60802 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60803 - (exit $ac_status); } &&
60804 - { ac_try='test -z "$ac_c_werror_flag"
60805 - || test ! -s conftest.err'
60806 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60807 - (eval $ac_try) 2>&5
60808 - ac_status=$?
60809 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60810 - (exit $ac_status); }; } &&
60811 - { ac_try='test -s conftest.$ac_objext'
60812 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60813 - (eval $ac_try) 2>&5
60814 - ac_status=$?
60815 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60816 - (exit $ac_status); }; }; then
60817 - for ac_declaration in \
60818 - '' \
60819 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
60820 - 'extern "C" void std::exit (int); using std::exit;' \
60821 - 'extern "C" void exit (int) throw ();' \
60822 - 'extern "C" void exit (int);' \
60823 - 'void exit (int);'
60824 -do
60825 - cat >conftest.$ac_ext <<_ACEOF
60826 -/* confdefs.h. */
60827 -_ACEOF
60828 -cat confdefs.h >>conftest.$ac_ext
60829 -cat >>conftest.$ac_ext <<_ACEOF
60830 -/* end confdefs.h. */
60831 -$ac_declaration
60832 -#include <stdlib.h>
60833 -int
60834 -main ()
60835 -{
60836 -exit (42);
60837 - ;
60838 - return 0;
60839 -}
60840 -_ACEOF
60841 -rm -f conftest.$ac_objext
60842 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60843 - (eval $ac_compile) 2>conftest.er1
60844 - ac_status=$?
60845 - grep -v '^ *+' conftest.er1 >conftest.err
60846 - rm -f conftest.er1
60847 - cat conftest.err >&5
60848 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60849 - (exit $ac_status); } &&
60850 - { ac_try='test -z "$ac_c_werror_flag"
60851 - || test ! -s conftest.err'
60852 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60853 - (eval $ac_try) 2>&5
60854 - ac_status=$?
60855 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60856 - (exit $ac_status); }; } &&
60857 - { ac_try='test -s conftest.$ac_objext'
60858 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60859 - (eval $ac_try) 2>&5
60860 - ac_status=$?
60861 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60862 - (exit $ac_status); }; }; then
60863 - :
60864 -else
60865 - echo "$as_me: failed program was:" >&5
60866 -sed 's/^/| /' conftest.$ac_ext >&5
60867 -
60868 -continue
60869 -fi
60870 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60871 - cat >conftest.$ac_ext <<_ACEOF
60872 -/* confdefs.h. */
60873 -_ACEOF
60874 -cat confdefs.h >>conftest.$ac_ext
60875 -cat >>conftest.$ac_ext <<_ACEOF
60876 -/* end confdefs.h. */
60877 -$ac_declaration
60878 -int
60879 -main ()
60880 -{
60881 -exit (42);
60882 - ;
60883 - return 0;
60884 -}
60885 -_ACEOF
60886 -rm -f conftest.$ac_objext
60887 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60888 - (eval $ac_compile) 2>conftest.er1
60889 - ac_status=$?
60890 - grep -v '^ *+' conftest.er1 >conftest.err
60891 - rm -f conftest.er1
60892 - cat conftest.err >&5
60893 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60894 - (exit $ac_status); } &&
60895 - { ac_try='test -z "$ac_c_werror_flag"
60896 - || test ! -s conftest.err'
60897 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60898 - (eval $ac_try) 2>&5
60899 - ac_status=$?
60900 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60901 - (exit $ac_status); }; } &&
60902 - { ac_try='test -s conftest.$ac_objext'
60903 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60904 - (eval $ac_try) 2>&5
60905 - ac_status=$?
60906 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60907 - (exit $ac_status); }; }; then
60908 - break
60909 -else
60910 - echo "$as_me: failed program was:" >&5
60911 -sed 's/^/| /' conftest.$ac_ext >&5
60912 -
60913 -fi
60914 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60915 -done
60916 -rm -f conftest*
60917 -if test -n "$ac_declaration"; then
60918 - echo '#ifdef __cplusplus' >>confdefs.h
60919 - echo $ac_declaration >>confdefs.h
60920 - echo '#endif' >>confdefs.h
60921 -fi
60922 -
60923 -else
60924 - echo "$as_me: failed program was:" >&5
60925 -sed 's/^/| /' conftest.$ac_ext >&5
60926
60927 -fi
60928 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60929 ac_ext=c
60930 ac_cpp='$CPP $CPPFLAGS'
60931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
60932 @@ -5039,8 +5531,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
60933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
60934 # OS/2's system install, which has a completely different semantic
60935 # ./install, which can be erroneously created by make from ./install.sh.
60936 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
60937 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
60938 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
60939 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
60940 if test -z "$INSTALL"; then
60941 if test "${ac_cv_path_install+set}" = set; then
60942 echo $ECHO_N "(cached) $ECHO_C" >&6
60943 @@ -5062,7 +5554,7 @@ case $as_dir/ in
60944 # by default.
60945 for ac_prog in ginstall scoinst install; do
60946 for ac_exec_ext in '' $ac_executable_extensions; do
60947 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
60948 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
60949 if test $ac_prog = install &&
60950 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
60951 # AIX install. It has an incompatible calling convention.
60952 @@ -5081,21 +5573,22 @@ case $as_dir/ in
60953 ;;
60954 esac
60955 done
60956 +IFS=$as_save_IFS
60957
60958
60959 fi
60960 if test "${ac_cv_path_install+set}" = set; then
60961 INSTALL=$ac_cv_path_install
60962 else
60963 - # As a last resort, use the slow shell script. We don't cache a
60964 - # path for INSTALL within a source directory, because that will
60965 + # As a last resort, use the slow shell script. Don't cache a
60966 + # value for INSTALL within a source directory, because that will
60967 # break other packages using the cache if that directory is
60968 - # removed, or if the path is relative.
60969 + # removed, or if the value is a relative name.
60970 INSTALL=$ac_install_sh
60971 fi
60972 fi
60973 -echo "$as_me:$LINENO: result: $INSTALL" >&5
60974 -echo "${ECHO_T}$INSTALL" >&6
60975 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
60976 +echo "${ECHO_T}$INSTALL" >&6; }
60977
60978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
60979 # It thinks the first close brace ends the variable substitution.
60980 @@ -5110,8 +5603,8 @@ ALL_LINGUAS="fr sv tr es da vi zh_CN"
60981 if test -n "$ac_tool_prefix"; then
60982 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
60983 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
60984 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60985 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60986 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60987 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60988 if test "${ac_cv_prog_RANLIB+set}" = set; then
60989 echo $ECHO_N "(cached) $ECHO_C" >&6
60990 else
60991 @@ -5124,32 +5617,34 @@ do
60992 IFS=$as_save_IFS
60993 test -z "$as_dir" && as_dir=.
60994 for ac_exec_ext in '' $ac_executable_extensions; do
60995 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60996 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
60998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60999 break 2
61000 fi
61001 done
61002 done
61003 +IFS=$as_save_IFS
61004
61005 fi
61006 fi
61007 RANLIB=$ac_cv_prog_RANLIB
61008 if test -n "$RANLIB"; then
61009 - echo "$as_me:$LINENO: result: $RANLIB" >&5
61010 -echo "${ECHO_T}$RANLIB" >&6
61011 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
61012 +echo "${ECHO_T}$RANLIB" >&6; }
61013 else
61014 - echo "$as_me:$LINENO: result: no" >&5
61015 -echo "${ECHO_T}no" >&6
61016 + { echo "$as_me:$LINENO: result: no" >&5
61017 +echo "${ECHO_T}no" >&6; }
61018 fi
61019
61020 +
61021 fi
61022 if test -z "$ac_cv_prog_RANLIB"; then
61023 ac_ct_RANLIB=$RANLIB
61024 # Extract the first word of "ranlib", so it can be a program name with args.
61025 set dummy ranlib; ac_word=$2
61026 -echo "$as_me:$LINENO: checking for $ac_word" >&5
61027 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
61028 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
61029 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
61030 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
61031 echo $ECHO_N "(cached) $ECHO_C" >&6
61032 else
61033 @@ -5162,27 +5657,41 @@ do
61034 IFS=$as_save_IFS
61035 test -z "$as_dir" && as_dir=.
61036 for ac_exec_ext in '' $ac_executable_extensions; do
61037 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
61038 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
61039 ac_cv_prog_ac_ct_RANLIB="ranlib"
61040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
61041 break 2
61042 fi
61043 done
61044 done
61045 +IFS=$as_save_IFS
61046
61047 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
61048 fi
61049 fi
61050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
61051 if test -n "$ac_ct_RANLIB"; then
61052 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
61053 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
61054 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
61055 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
61056 else
61057 - echo "$as_me:$LINENO: result: no" >&5
61058 -echo "${ECHO_T}no" >&6
61059 + { echo "$as_me:$LINENO: result: no" >&5
61060 +echo "${ECHO_T}no" >&6; }
61061 fi
61062
61063 - RANLIB=$ac_ct_RANLIB
61064 + if test "x$ac_ct_RANLIB" = x; then
61065 + RANLIB=":"
61066 + else
61067 + case $cross_compiling:$ac_tool_warned in
61068 +yes:)
61069 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
61070 +whose name does not start with the host triplet. If you think this
61071 +configuration is useful to you, please write to autoconf@gnu.org." >&5
61072 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
61073 +whose name does not start with the host triplet. If you think this
61074 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
61075 +ac_tool_warned=yes ;;
61076 +esac
61077 + RANLIB=$ac_ct_RANLIB
61078 + fi
61079 else
61080 RANLIB="$ac_cv_prog_RANLIB"
61081 fi
61082 @@ -5192,8 +5701,8 @@ ac_cpp='$CPP $CPPFLAGS'
61083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
61086 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
61087 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
61088 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
61089 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
61090 # On Suns, sometimes $CPP names a directory.
61091 if test -n "$CPP" && test -d "$CPP"; then
61092 CPP=
61093 @@ -5227,24 +5736,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61094 #endif
61095 Syntax error
61096 _ACEOF
61097 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61098 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61099 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61100 +case "(($ac_try" in
61101 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61102 + *) ac_try_echo=$ac_try;;
61103 +esac
61104 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61105 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61106 ac_status=$?
61107 grep -v '^ *+' conftest.er1 >conftest.err
61108 rm -f conftest.er1
61109 cat conftest.err >&5
61110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61111 - (exit $ac_status); } >/dev/null; then
61112 - if test -s conftest.err; then
61113 - ac_cpp_err=$ac_c_preproc_warn_flag
61114 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61115 - else
61116 - ac_cpp_err=
61117 - fi
61118 -else
61119 - ac_cpp_err=yes
61120 -fi
61121 -if test -z "$ac_cpp_err"; then
61122 + (exit $ac_status); } >/dev/null && {
61123 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61124 + test ! -s conftest.err
61125 + }; then
61126 :
61127 else
61128 echo "$as_me: failed program was:" >&5
61129 @@ -5253,9 +5760,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
61130 # Broken: fails on valid input.
61131 continue
61132 fi
61133 +
61134 rm -f conftest.err conftest.$ac_ext
61135
61136 - # OK, works on sane cases. Now check whether non-existent headers
61137 + # OK, works on sane cases. Now check whether nonexistent headers
61138 # can be detected and how.
61139 cat >conftest.$ac_ext <<_ACEOF
61140 /* confdefs.h. */
61141 @@ -5265,24 +5773,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61142 /* end confdefs.h. */
61143 #include <ac_nonexistent.h>
61144 _ACEOF
61145 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61146 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61147 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61148 +case "(($ac_try" in
61149 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61150 + *) ac_try_echo=$ac_try;;
61151 +esac
61152 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61153 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61154 ac_status=$?
61155 grep -v '^ *+' conftest.er1 >conftest.err
61156 rm -f conftest.er1
61157 cat conftest.err >&5
61158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61159 - (exit $ac_status); } >/dev/null; then
61160 - if test -s conftest.err; then
61161 - ac_cpp_err=$ac_c_preproc_warn_flag
61162 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61163 - else
61164 - ac_cpp_err=
61165 - fi
61166 -else
61167 - ac_cpp_err=yes
61168 -fi
61169 -if test -z "$ac_cpp_err"; then
61170 + (exit $ac_status); } >/dev/null && {
61171 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61172 + test ! -s conftest.err
61173 + }; then
61174 # Broken: success on invalid input.
61175 continue
61176 else
61177 @@ -5293,6 +5799,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
61178 ac_preproc_ok=:
61179 break
61180 fi
61181 +
61182 rm -f conftest.err conftest.$ac_ext
61183
61184 done
61185 @@ -5310,8 +5817,8 @@ fi
61186 else
61187 ac_cv_prog_CPP=$CPP
61188 fi
61189 -echo "$as_me:$LINENO: result: $CPP" >&5
61190 -echo "${ECHO_T}$CPP" >&6
61191 +{ echo "$as_me:$LINENO: result: $CPP" >&5
61192 +echo "${ECHO_T}$CPP" >&6; }
61193 ac_preproc_ok=false
61194 for ac_c_preproc_warn_flag in '' yes
61195 do
61196 @@ -5334,24 +5841,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61197 #endif
61198 Syntax error
61199 _ACEOF
61200 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61201 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61202 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61203 +case "(($ac_try" in
61204 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61205 + *) ac_try_echo=$ac_try;;
61206 +esac
61207 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61208 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61209 ac_status=$?
61210 grep -v '^ *+' conftest.er1 >conftest.err
61211 rm -f conftest.er1
61212 cat conftest.err >&5
61213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61214 - (exit $ac_status); } >/dev/null; then
61215 - if test -s conftest.err; then
61216 - ac_cpp_err=$ac_c_preproc_warn_flag
61217 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61218 - else
61219 - ac_cpp_err=
61220 - fi
61221 -else
61222 - ac_cpp_err=yes
61223 -fi
61224 -if test -z "$ac_cpp_err"; then
61225 + (exit $ac_status); } >/dev/null && {
61226 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61227 + test ! -s conftest.err
61228 + }; then
61229 :
61230 else
61231 echo "$as_me: failed program was:" >&5
61232 @@ -5360,9 +5865,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
61233 # Broken: fails on valid input.
61234 continue
61235 fi
61236 +
61237 rm -f conftest.err conftest.$ac_ext
61238
61239 - # OK, works on sane cases. Now check whether non-existent headers
61240 + # OK, works on sane cases. Now check whether nonexistent headers
61241 # can be detected and how.
61242 cat >conftest.$ac_ext <<_ACEOF
61243 /* confdefs.h. */
61244 @@ -5372,24 +5878,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61245 /* end confdefs.h. */
61246 #include <ac_nonexistent.h>
61247 _ACEOF
61248 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61249 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61250 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61251 +case "(($ac_try" in
61252 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61253 + *) ac_try_echo=$ac_try;;
61254 +esac
61255 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61256 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61257 ac_status=$?
61258 grep -v '^ *+' conftest.er1 >conftest.err
61259 rm -f conftest.er1
61260 cat conftest.err >&5
61261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61262 - (exit $ac_status); } >/dev/null; then
61263 - if test -s conftest.err; then
61264 - ac_cpp_err=$ac_c_preproc_warn_flag
61265 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61266 - else
61267 - ac_cpp_err=
61268 - fi
61269 -else
61270 - ac_cpp_err=yes
61271 -fi
61272 -if test -z "$ac_cpp_err"; then
61273 + (exit $ac_status); } >/dev/null && {
61274 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61275 + test ! -s conftest.err
61276 + }; then
61277 # Broken: success on invalid input.
61278 continue
61279 else
61280 @@ -5400,6 +5904,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
61281 ac_preproc_ok=:
61282 break
61283 fi
61284 +
61285 rm -f conftest.err conftest.$ac_ext
61286
61287 done
61288 @@ -5422,79 +5927,222 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
61289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
61290
61291
61292 -echo "$as_me:$LINENO: checking for egrep" >&5
61293 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
61294 -if test "${ac_cv_prog_egrep+set}" = set; then
61295 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
61296 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
61297 +if test "${ac_cv_path_GREP+set}" = set; then
61298 + echo $ECHO_N "(cached) $ECHO_C" >&6
61299 +else
61300 + # Extract the first word of "grep ggrep" to use in msg output
61301 +if test -z "$GREP"; then
61302 +set dummy grep ggrep; ac_prog_name=$2
61303 +if test "${ac_cv_path_GREP+set}" = set; then
61304 echo $ECHO_N "(cached) $ECHO_C" >&6
61305 else
61306 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
61307 - then ac_cv_prog_egrep='grep -E'
61308 - else ac_cv_prog_egrep='egrep'
61309 + ac_path_GREP_found=false
61310 +# Loop through the user's path and test for each of PROGNAME-LIST
61311 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61312 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
61313 +do
61314 + IFS=$as_save_IFS
61315 + test -z "$as_dir" && as_dir=.
61316 + for ac_prog in grep ggrep; do
61317 + for ac_exec_ext in '' $ac_executable_extensions; do
61318 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
61319 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
61320 + # Check for GNU ac_path_GREP and select it if it is found.
61321 + # Check for GNU $ac_path_GREP
61322 +case `"$ac_path_GREP" --version 2>&1` in
61323 +*GNU*)
61324 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
61325 +*)
61326 + ac_count=0
61327 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
61328 + while :
61329 + do
61330 + cat "conftest.in" "conftest.in" >"conftest.tmp"
61331 + mv "conftest.tmp" "conftest.in"
61332 + cp "conftest.in" "conftest.nl"
61333 + echo 'GREP' >> "conftest.nl"
61334 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
61335 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
61336 + ac_count=`expr $ac_count + 1`
61337 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
61338 + # Best one so far, save it but keep looking for a better one
61339 + ac_cv_path_GREP="$ac_path_GREP"
61340 + ac_path_GREP_max=$ac_count
61341 fi
61342 -fi
61343 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
61344 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
61345 - EGREP=$ac_cv_prog_egrep
61346 + # 10*(2^10) chars as input seems more than enough
61347 + test $ac_count -gt 10 && break
61348 + done
61349 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
61350 +esac
61351
61352
61353 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
61354 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
61355 -if test "${ac_cv_header_stdc+set}" = set; then
61356 - echo $ECHO_N "(cached) $ECHO_C" >&6
61357 -else
61358 - cat >conftest.$ac_ext <<_ACEOF
61359 -/* confdefs.h. */
61360 -_ACEOF
61361 -cat confdefs.h >>conftest.$ac_ext
61362 -cat >>conftest.$ac_ext <<_ACEOF
61363 -/* end confdefs.h. */
61364 -#include <stdlib.h>
61365 -#include <stdarg.h>
61366 -#include <string.h>
61367 -#include <float.h>
61368 + $ac_path_GREP_found && break 3
61369 + done
61370 +done
61371
61372 -int
61373 -main ()
61374 -{
61375 +done
61376 +IFS=$as_save_IFS
61377
61378 - ;
61379 - return 0;
61380 -}
61381 -_ACEOF
61382 -rm -f conftest.$ac_objext
61383 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61384 - (eval $ac_compile) 2>conftest.er1
61385 - ac_status=$?
61386 - grep -v '^ *+' conftest.er1 >conftest.err
61387 - rm -f conftest.er1
61388 - cat conftest.err >&5
61389 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61390 - (exit $ac_status); } &&
61391 - { ac_try='test -z "$ac_c_werror_flag"
61392 - || test ! -s conftest.err'
61393 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61394 - (eval $ac_try) 2>&5
61395 - ac_status=$?
61396 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61397 - (exit $ac_status); }; } &&
61398 - { ac_try='test -s conftest.$ac_objext'
61399 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61400 - (eval $ac_try) 2>&5
61401 - ac_status=$?
61402 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61403 - (exit $ac_status); }; }; then
61404 - ac_cv_header_stdc=yes
61405 -else
61406 - echo "$as_me: failed program was:" >&5
61407 -sed 's/^/| /' conftest.$ac_ext >&5
61408
61409 -ac_cv_header_stdc=no
61410 fi
61411 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61412
61413 -if test $ac_cv_header_stdc = yes; then
61414 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
61415 - cat >conftest.$ac_ext <<_ACEOF
61416 +GREP="$ac_cv_path_GREP"
61417 +if test -z "$GREP"; then
61418 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
61419 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
61420 + { (exit 1); exit 1; }; }
61421 +fi
61422 +
61423 +else
61424 + ac_cv_path_GREP=$GREP
61425 +fi
61426 +
61427 +
61428 +fi
61429 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
61430 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
61431 + GREP="$ac_cv_path_GREP"
61432 +
61433 +
61434 +{ echo "$as_me:$LINENO: checking for egrep" >&5
61435 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
61436 +if test "${ac_cv_path_EGREP+set}" = set; then
61437 + echo $ECHO_N "(cached) $ECHO_C" >&6
61438 +else
61439 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
61440 + then ac_cv_path_EGREP="$GREP -E"
61441 + else
61442 + # Extract the first word of "egrep" to use in msg output
61443 +if test -z "$EGREP"; then
61444 +set dummy egrep; ac_prog_name=$2
61445 +if test "${ac_cv_path_EGREP+set}" = set; then
61446 + echo $ECHO_N "(cached) $ECHO_C" >&6
61447 +else
61448 + ac_path_EGREP_found=false
61449 +# Loop through the user's path and test for each of PROGNAME-LIST
61450 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61451 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
61452 +do
61453 + IFS=$as_save_IFS
61454 + test -z "$as_dir" && as_dir=.
61455 + for ac_prog in egrep; do
61456 + for ac_exec_ext in '' $ac_executable_extensions; do
61457 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
61458 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
61459 + # Check for GNU ac_path_EGREP and select it if it is found.
61460 + # Check for GNU $ac_path_EGREP
61461 +case `"$ac_path_EGREP" --version 2>&1` in
61462 +*GNU*)
61463 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
61464 +*)
61465 + ac_count=0
61466 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
61467 + while :
61468 + do
61469 + cat "conftest.in" "conftest.in" >"conftest.tmp"
61470 + mv "conftest.tmp" "conftest.in"
61471 + cp "conftest.in" "conftest.nl"
61472 + echo 'EGREP' >> "conftest.nl"
61473 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
61474 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
61475 + ac_count=`expr $ac_count + 1`
61476 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
61477 + # Best one so far, save it but keep looking for a better one
61478 + ac_cv_path_EGREP="$ac_path_EGREP"
61479 + ac_path_EGREP_max=$ac_count
61480 + fi
61481 + # 10*(2^10) chars as input seems more than enough
61482 + test $ac_count -gt 10 && break
61483 + done
61484 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
61485 +esac
61486 +
61487 +
61488 + $ac_path_EGREP_found && break 3
61489 + done
61490 +done
61491 +
61492 +done
61493 +IFS=$as_save_IFS
61494 +
61495 +
61496 +fi
61497 +
61498 +EGREP="$ac_cv_path_EGREP"
61499 +if test -z "$EGREP"; then
61500 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
61501 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
61502 + { (exit 1); exit 1; }; }
61503 +fi
61504 +
61505 +else
61506 + ac_cv_path_EGREP=$EGREP
61507 +fi
61508 +
61509 +
61510 + fi
61511 +fi
61512 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
61513 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
61514 + EGREP="$ac_cv_path_EGREP"
61515 +
61516 +
61517 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
61518 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
61519 +if test "${ac_cv_header_stdc+set}" = set; then
61520 + echo $ECHO_N "(cached) $ECHO_C" >&6
61521 +else
61522 + cat >conftest.$ac_ext <<_ACEOF
61523 +/* confdefs.h. */
61524 +_ACEOF
61525 +cat confdefs.h >>conftest.$ac_ext
61526 +cat >>conftest.$ac_ext <<_ACEOF
61527 +/* end confdefs.h. */
61528 +#include <stdlib.h>
61529 +#include <stdarg.h>
61530 +#include <string.h>
61531 +#include <float.h>
61532 +
61533 +int
61534 +main ()
61535 +{
61536 +
61537 + ;
61538 + return 0;
61539 +}
61540 +_ACEOF
61541 +rm -f conftest.$ac_objext
61542 +if { (ac_try="$ac_compile"
61543 +case "(($ac_try" in
61544 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61545 + *) ac_try_echo=$ac_try;;
61546 +esac
61547 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61548 + (eval "$ac_compile") 2>conftest.er1
61549 + ac_status=$?
61550 + grep -v '^ *+' conftest.er1 >conftest.err
61551 + rm -f conftest.er1
61552 + cat conftest.err >&5
61553 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
61554 + (exit $ac_status); } && {
61555 + test -z "$ac_c_werror_flag" ||
61556 + test ! -s conftest.err
61557 + } && test -s conftest.$ac_objext; then
61558 + ac_cv_header_stdc=yes
61559 +else
61560 + echo "$as_me: failed program was:" >&5
61561 +sed 's/^/| /' conftest.$ac_ext >&5
61562 +
61563 + ac_cv_header_stdc=no
61564 +fi
61565 +
61566 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61567 +
61568 +if test $ac_cv_header_stdc = yes; then
61569 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
61570 + cat >conftest.$ac_ext <<_ACEOF
61571 /* confdefs.h. */
61572 _ACEOF
61573 cat confdefs.h >>conftest.$ac_ext
61574 @@ -5546,6 +6194,7 @@ cat confdefs.h >>conftest.$ac_ext
61575 cat >>conftest.$ac_ext <<_ACEOF
61576 /* end confdefs.h. */
61577 #include <ctype.h>
61578 +#include <stdlib.h>
61579 #if ((' ' & 0x0FF) == 0x020)
61580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
61581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
61582 @@ -5565,18 +6214,27 @@ main ()
61583 for (i = 0; i < 256; i++)
61584 if (XOR (islower (i), ISLOWER (i))
61585 || toupper (i) != TOUPPER (i))
61586 - exit(2);
61587 - exit (0);
61588 + return 2;
61589 + return 0;
61590 }
61591 _ACEOF
61592 rm -f conftest$ac_exeext
61593 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61594 - (eval $ac_link) 2>&5
61595 +if { (ac_try="$ac_link"
61596 +case "(($ac_try" in
61597 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61598 + *) ac_try_echo=$ac_try;;
61599 +esac
61600 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61601 + (eval "$ac_link") 2>&5
61602 ac_status=$?
61603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61605 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61606 - (eval $ac_try) 2>&5
61607 + { (case "(($ac_try" in
61608 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61609 + *) ac_try_echo=$ac_try;;
61610 +esac
61611 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61612 + (eval "$ac_try") 2>&5
61613 ac_status=$?
61614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61615 (exit $ac_status); }; }; then
61616 @@ -5589,12 +6247,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
61617 ( exit $ac_status )
61618 ac_cv_header_stdc=no
61619 fi
61620 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61621 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61622 fi
61623 +
61624 +
61625 fi
61626 fi
61627 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
61628 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
61629 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
61630 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
61631 if test $ac_cv_header_stdc = yes; then
61632
61633 cat >>confdefs.h <<\_ACEOF
61634 @@ -5603,8 +6263,8 @@ _ACEOF
61635
61636 fi
61637
61638 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
61639 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
61640 +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
61641 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
61642 if test "${ac_cv_c_const+set}" = set; then
61643 echo $ECHO_N "(cached) $ECHO_C" >&6
61644 else
61645 @@ -5622,10 +6282,10 @@ main ()
61646 #ifndef __cplusplus
61647 /* Ultrix mips cc rejects this. */
61648 typedef int charset[2];
61649 - const charset x;
61650 + const charset cs;
61651 /* SunOS 4.1.1 cc rejects this. */
61652 - char const *const *ccp;
61653 - char **p;
61654 + char const *const *pcpcc;
61655 + char **ppc;
61656 /* NEC SVR4.0.2 mips cc rejects this. */
61657 struct point {int x, y;};
61658 static struct point const zero = {0,0};
61659 @@ -5634,16 +6294,17 @@ main ()
61660 an arm of an if-expression whose if-part is not a constant
61661 expression */
61662 const char *g = "string";
61663 - ccp = &g + (g ? g-g : 0);
61664 + pcpcc = &g + (g ? g-g : 0);
61665 /* HPUX 7.0 cc rejects these. */
61666 - ++ccp;
61667 - p = (char**) ccp;
61668 - ccp = (char const *const *) p;
61669 + ++pcpcc;
61670 + ppc = (char**) pcpcc;
61671 + pcpcc = (char const *const *) ppc;
61672 { /* SCO 3.2v4 cc rejects this. */
61673 char *t;
61674 char const *s = 0 ? (char *) 0 : (char const *) 0;
61675
61676 *t++ = 0;
61677 + if (s) return 0;
61678 }
61679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
61680 int x[] = {25, 17};
61681 @@ -5662,7 +6323,9 @@ main ()
61682 }
61683 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
61684 const int foo = 10;
61685 + if (!foo) return 0;
61686 }
61687 + return !cs[0] && !zero.x;
61688 #endif
61689
61690 ;
61691 @@ -5670,38 +6333,34 @@ main ()
61692 }
61693 _ACEOF
61694 rm -f conftest.$ac_objext
61695 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61696 - (eval $ac_compile) 2>conftest.er1
61697 +if { (ac_try="$ac_compile"
61698 +case "(($ac_try" in
61699 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61700 + *) ac_try_echo=$ac_try;;
61701 +esac
61702 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61703 + (eval "$ac_compile") 2>conftest.er1
61704 ac_status=$?
61705 grep -v '^ *+' conftest.er1 >conftest.err
61706 rm -f conftest.er1
61707 cat conftest.err >&5
61708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61709 - (exit $ac_status); } &&
61710 - { ac_try='test -z "$ac_c_werror_flag"
61711 - || test ! -s conftest.err'
61712 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61713 - (eval $ac_try) 2>&5
61714 - ac_status=$?
61715 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61716 - (exit $ac_status); }; } &&
61717 - { ac_try='test -s conftest.$ac_objext'
61718 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61719 - (eval $ac_try) 2>&5
61720 - ac_status=$?
61721 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61722 - (exit $ac_status); }; }; then
61723 + (exit $ac_status); } && {
61724 + test -z "$ac_c_werror_flag" ||
61725 + test ! -s conftest.err
61726 + } && test -s conftest.$ac_objext; then
61727 ac_cv_c_const=yes
61728 else
61729 echo "$as_me: failed program was:" >&5
61730 sed 's/^/| /' conftest.$ac_ext >&5
61731
61732 -ac_cv_c_const=no
61733 + ac_cv_c_const=no
61734 fi
61735 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61736 +
61737 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61738 fi
61739 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
61740 -echo "${ECHO_T}$ac_cv_c_const" >&6
61741 +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
61742 +echo "${ECHO_T}$ac_cv_c_const" >&6; }
61743 if test $ac_cv_c_const = no; then
61744
61745 cat >>confdefs.h <<\_ACEOF
61746 @@ -5710,8 +6369,8 @@ _ACEOF
61747
61748 fi
61749
61750 -echo "$as_me:$LINENO: checking for inline" >&5
61751 -echo $ECHO_N "checking for inline... $ECHO_C" >&6
61752 +{ echo "$as_me:$LINENO: checking for inline" >&5
61753 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
61754 if test "${ac_cv_c_inline+set}" = set; then
61755 echo $ECHO_N "(cached) $ECHO_C" >&6
61756 else
61757 @@ -5731,39 +6390,37 @@ $ac_kw foo_t foo () {return 0; }
61758
61759 _ACEOF
61760 rm -f conftest.$ac_objext
61761 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61762 - (eval $ac_compile) 2>conftest.er1
61763 +if { (ac_try="$ac_compile"
61764 +case "(($ac_try" in
61765 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61766 + *) ac_try_echo=$ac_try;;
61767 +esac
61768 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61769 + (eval "$ac_compile") 2>conftest.er1
61770 ac_status=$?
61771 grep -v '^ *+' conftest.er1 >conftest.err
61772 rm -f conftest.er1
61773 cat conftest.err >&5
61774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61775 - (exit $ac_status); } &&
61776 - { ac_try='test -z "$ac_c_werror_flag"
61777 - || test ! -s conftest.err'
61778 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61779 - (eval $ac_try) 2>&5
61780 - ac_status=$?
61781 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61782 - (exit $ac_status); }; } &&
61783 - { ac_try='test -s conftest.$ac_objext'
61784 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61785 - (eval $ac_try) 2>&5
61786 - ac_status=$?
61787 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61788 - (exit $ac_status); }; }; then
61789 - ac_cv_c_inline=$ac_kw; break
61790 + (exit $ac_status); } && {
61791 + test -z "$ac_c_werror_flag" ||
61792 + test ! -s conftest.err
61793 + } && test -s conftest.$ac_objext; then
61794 + ac_cv_c_inline=$ac_kw
61795 else
61796 echo "$as_me: failed program was:" >&5
61797 sed 's/^/| /' conftest.$ac_ext >&5
61798
61799 +
61800 fi
61801 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61802 +
61803 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61804 + test "$ac_cv_c_inline" != no && break
61805 done
61806
61807 fi
61808 -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
61809 -echo "${ECHO_T}$ac_cv_c_inline" >&6
61810 +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
61811 +echo "${ECHO_T}$ac_cv_c_inline" >&6; }
61812
61813
61814 case $ac_cv_c_inline in
61815 @@ -5795,9 +6452,9 @@ for ac_header in sys/types.h sys/stat.h
61816 inttypes.h stdint.h unistd.h
61817 do
61818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61819 -echo "$as_me:$LINENO: checking for $ac_header" >&5
61820 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61821 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
61822 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
61823 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
61824 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
61825 echo $ECHO_N "(cached) $ECHO_C" >&6
61826 else
61827 cat >conftest.$ac_ext <<_ACEOF
61828 @@ -5811,38 +6468,35 @@ $ac_includes_default
61829 #include <$ac_header>
61830 _ACEOF
61831 rm -f conftest.$ac_objext
61832 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61833 - (eval $ac_compile) 2>conftest.er1
61834 +if { (ac_try="$ac_compile"
61835 +case "(($ac_try" in
61836 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61837 + *) ac_try_echo=$ac_try;;
61838 +esac
61839 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61840 + (eval "$ac_compile") 2>conftest.er1
61841 ac_status=$?
61842 grep -v '^ *+' conftest.er1 >conftest.err
61843 rm -f conftest.er1
61844 cat conftest.err >&5
61845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61846 - (exit $ac_status); } &&
61847 - { ac_try='test -z "$ac_c_werror_flag"
61848 - || test ! -s conftest.err'
61849 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61850 - (eval $ac_try) 2>&5
61851 - ac_status=$?
61852 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61853 - (exit $ac_status); }; } &&
61854 - { ac_try='test -s conftest.$ac_objext'
61855 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61856 - (eval $ac_try) 2>&5
61857 - ac_status=$?
61858 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61859 - (exit $ac_status); }; }; then
61860 + (exit $ac_status); } && {
61861 + test -z "$ac_c_werror_flag" ||
61862 + test ! -s conftest.err
61863 + } && test -s conftest.$ac_objext; then
61864 eval "$as_ac_Header=yes"
61865 else
61866 echo "$as_me: failed program was:" >&5
61867 sed 's/^/| /' conftest.$ac_ext >&5
61868
61869 -eval "$as_ac_Header=no"
61870 + eval "$as_ac_Header=no"
61871 fi
61872 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61873 +
61874 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61875 fi
61876 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61877 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61878 +ac_res=`eval echo '${'$as_ac_Header'}'`
61879 + { echo "$as_me:$LINENO: result: $ac_res" >&5
61880 +echo "${ECHO_T}$ac_res" >&6; }
61881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61882 cat >>confdefs.h <<_ACEOF
61883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61884 @@ -5853,8 +6507,8 @@ fi
61885 done
61886
61887
61888 -echo "$as_me:$LINENO: checking for off_t" >&5
61889 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
61890 +{ echo "$as_me:$LINENO: checking for off_t" >&5
61891 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
61892 if test "${ac_cv_type_off_t+set}" = set; then
61893 echo $ECHO_N "(cached) $ECHO_C" >&6
61894 else
61895 @@ -5865,62 +6519,59 @@ cat confdefs.h >>conftest.$ac_ext
61896 cat >>conftest.$ac_ext <<_ACEOF
61897 /* end confdefs.h. */
61898 $ac_includes_default
61899 +typedef off_t ac__type_new_;
61900 int
61901 main ()
61902 {
61903 -if ((off_t *) 0)
61904 +if ((ac__type_new_ *) 0)
61905 return 0;
61906 -if (sizeof (off_t))
61907 +if (sizeof (ac__type_new_))
61908 return 0;
61909 ;
61910 return 0;
61911 }
61912 _ACEOF
61913 rm -f conftest.$ac_objext
61914 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61915 - (eval $ac_compile) 2>conftest.er1
61916 +if { (ac_try="$ac_compile"
61917 +case "(($ac_try" in
61918 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61919 + *) ac_try_echo=$ac_try;;
61920 +esac
61921 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61922 + (eval "$ac_compile") 2>conftest.er1
61923 ac_status=$?
61924 grep -v '^ *+' conftest.er1 >conftest.err
61925 rm -f conftest.er1
61926 cat conftest.err >&5
61927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61928 - (exit $ac_status); } &&
61929 - { ac_try='test -z "$ac_c_werror_flag"
61930 - || test ! -s conftest.err'
61931 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61932 - (eval $ac_try) 2>&5
61933 - ac_status=$?
61934 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61935 - (exit $ac_status); }; } &&
61936 - { ac_try='test -s conftest.$ac_objext'
61937 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61938 - (eval $ac_try) 2>&5
61939 - ac_status=$?
61940 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61941 - (exit $ac_status); }; }; then
61942 + (exit $ac_status); } && {
61943 + test -z "$ac_c_werror_flag" ||
61944 + test ! -s conftest.err
61945 + } && test -s conftest.$ac_objext; then
61946 ac_cv_type_off_t=yes
61947 else
61948 echo "$as_me: failed program was:" >&5
61949 sed 's/^/| /' conftest.$ac_ext >&5
61950
61951 -ac_cv_type_off_t=no
61952 + ac_cv_type_off_t=no
61953 fi
61954 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61955 +
61956 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61957 fi
61958 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
61959 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
61960 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
61961 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
61962 if test $ac_cv_type_off_t = yes; then
61963 :
61964 else
61965
61966 cat >>confdefs.h <<_ACEOF
61967 -#define off_t long
61968 +#define off_t long int
61969 _ACEOF
61970
61971 fi
61972
61973 -echo "$as_me:$LINENO: checking for size_t" >&5
61974 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
61975 +{ echo "$as_me:$LINENO: checking for size_t" >&5
61976 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
61977 if test "${ac_cv_type_size_t+set}" = set; then
61978 echo $ECHO_N "(cached) $ECHO_C" >&6
61979 else
61980 @@ -5931,64 +6582,61 @@ cat confdefs.h >>conftest.$ac_ext
61981 cat >>conftest.$ac_ext <<_ACEOF
61982 /* end confdefs.h. */
61983 $ac_includes_default
61984 +typedef size_t ac__type_new_;
61985 int
61986 main ()
61987 {
61988 -if ((size_t *) 0)
61989 +if ((ac__type_new_ *) 0)
61990 return 0;
61991 -if (sizeof (size_t))
61992 +if (sizeof (ac__type_new_))
61993 return 0;
61994 ;
61995 return 0;
61996 }
61997 _ACEOF
61998 rm -f conftest.$ac_objext
61999 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62000 - (eval $ac_compile) 2>conftest.er1
62001 +if { (ac_try="$ac_compile"
62002 +case "(($ac_try" in
62003 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62004 + *) ac_try_echo=$ac_try;;
62005 +esac
62006 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62007 + (eval "$ac_compile") 2>conftest.er1
62008 ac_status=$?
62009 grep -v '^ *+' conftest.er1 >conftest.err
62010 rm -f conftest.er1
62011 cat conftest.err >&5
62012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62013 - (exit $ac_status); } &&
62014 - { ac_try='test -z "$ac_c_werror_flag"
62015 - || test ! -s conftest.err'
62016 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62017 - (eval $ac_try) 2>&5
62018 - ac_status=$?
62019 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62020 - (exit $ac_status); }; } &&
62021 - { ac_try='test -s conftest.$ac_objext'
62022 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62023 - (eval $ac_try) 2>&5
62024 - ac_status=$?
62025 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62026 - (exit $ac_status); }; }; then
62027 + (exit $ac_status); } && {
62028 + test -z "$ac_c_werror_flag" ||
62029 + test ! -s conftest.err
62030 + } && test -s conftest.$ac_objext; then
62031 ac_cv_type_size_t=yes
62032 else
62033 echo "$as_me: failed program was:" >&5
62034 sed 's/^/| /' conftest.$ac_ext >&5
62035
62036 -ac_cv_type_size_t=no
62037 + ac_cv_type_size_t=no
62038 fi
62039 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62040 +
62041 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62042 fi
62043 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
62044 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
62045 +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
62046 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
62047 if test $ac_cv_type_size_t = yes; then
62048 :
62049 else
62050
62051 cat >>confdefs.h <<_ACEOF
62052 -#define size_t unsigned
62053 +#define size_t unsigned int
62054 _ACEOF
62055
62056 fi
62057
62058 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
62059 # for constant arguments. Useless!
62060 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
62061 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
62062 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
62063 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
62064 if test "${ac_cv_working_alloca_h+set}" = set; then
62065 echo $ECHO_N "(cached) $ECHO_C" >&6
62066 else
62067 @@ -6003,44 +6651,42 @@ int
62068 main ()
62069 {
62070 char *p = (char *) alloca (2 * sizeof (int));
62071 + if (p) return 0;
62072 ;
62073 return 0;
62074 }
62075 _ACEOF
62076 rm -f conftest.$ac_objext conftest$ac_exeext
62077 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62078 - (eval $ac_link) 2>conftest.er1
62079 +if { (ac_try="$ac_link"
62080 +case "(($ac_try" in
62081 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62082 + *) ac_try_echo=$ac_try;;
62083 +esac
62084 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62085 + (eval "$ac_link") 2>conftest.er1
62086 ac_status=$?
62087 grep -v '^ *+' conftest.er1 >conftest.err
62088 rm -f conftest.er1
62089 cat conftest.err >&5
62090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62091 - (exit $ac_status); } &&
62092 - { ac_try='test -z "$ac_c_werror_flag"
62093 - || test ! -s conftest.err'
62094 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62095 - (eval $ac_try) 2>&5
62096 - ac_status=$?
62097 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62098 - (exit $ac_status); }; } &&
62099 - { ac_try='test -s conftest$ac_exeext'
62100 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62101 - (eval $ac_try) 2>&5
62102 - ac_status=$?
62103 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62104 - (exit $ac_status); }; }; then
62105 + (exit $ac_status); } && {
62106 + test -z "$ac_c_werror_flag" ||
62107 + test ! -s conftest.err
62108 + } && test -s conftest$ac_exeext &&
62109 + $as_test_x conftest$ac_exeext; then
62110 ac_cv_working_alloca_h=yes
62111 else
62112 echo "$as_me: failed program was:" >&5
62113 sed 's/^/| /' conftest.$ac_ext >&5
62114
62115 -ac_cv_working_alloca_h=no
62116 + ac_cv_working_alloca_h=no
62117 fi
62118 -rm -f conftest.err conftest.$ac_objext \
62119 +
62120 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62121 conftest$ac_exeext conftest.$ac_ext
62122 fi
62123 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
62124 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
62125 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
62126 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
62127 if test $ac_cv_working_alloca_h = yes; then
62128
62129 cat >>confdefs.h <<\_ACEOF
62130 @@ -6049,8 +6695,8 @@ _ACEOF
62131
62132 fi
62133
62134 -echo "$as_me:$LINENO: checking for alloca" >&5
62135 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
62136 +{ echo "$as_me:$LINENO: checking for alloca" >&5
62137 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
62138 if test "${ac_cv_func_alloca_works+set}" = set; then
62139 echo $ECHO_N "(cached) $ECHO_C" >&6
62140 else
62141 @@ -6067,7 +6713,7 @@ cat >>conftest.$ac_ext <<_ACEOF
62142 # include <malloc.h>
62143 # define alloca _alloca
62144 # else
62145 -# if HAVE_ALLOCA_H
62146 +# ifdef HAVE_ALLOCA_H
62147 # include <alloca.h>
62148 # else
62149 # ifdef _AIX
62150 @@ -6085,44 +6731,42 @@ int
62151 main ()
62152 {
62153 char *p = (char *) alloca (1);
62154 + if (p) return 0;
62155 ;
62156 return 0;
62157 }
62158 _ACEOF
62159 rm -f conftest.$ac_objext conftest$ac_exeext
62160 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62161 - (eval $ac_link) 2>conftest.er1
62162 +if { (ac_try="$ac_link"
62163 +case "(($ac_try" in
62164 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62165 + *) ac_try_echo=$ac_try;;
62166 +esac
62167 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62168 + (eval "$ac_link") 2>conftest.er1
62169 ac_status=$?
62170 grep -v '^ *+' conftest.er1 >conftest.err
62171 rm -f conftest.er1
62172 cat conftest.err >&5
62173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62174 - (exit $ac_status); } &&
62175 - { ac_try='test -z "$ac_c_werror_flag"
62176 - || test ! -s conftest.err'
62177 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62178 - (eval $ac_try) 2>&5
62179 - ac_status=$?
62180 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62181 - (exit $ac_status); }; } &&
62182 - { ac_try='test -s conftest$ac_exeext'
62183 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62184 - (eval $ac_try) 2>&5
62185 - ac_status=$?
62186 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62187 - (exit $ac_status); }; }; then
62188 + (exit $ac_status); } && {
62189 + test -z "$ac_c_werror_flag" ||
62190 + test ! -s conftest.err
62191 + } && test -s conftest$ac_exeext &&
62192 + $as_test_x conftest$ac_exeext; then
62193 ac_cv_func_alloca_works=yes
62194 else
62195 echo "$as_me: failed program was:" >&5
62196 sed 's/^/| /' conftest.$ac_ext >&5
62197
62198 -ac_cv_func_alloca_works=no
62199 + ac_cv_func_alloca_works=no
62200 fi
62201 -rm -f conftest.err conftest.$ac_objext \
62202 +
62203 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62204 conftest$ac_exeext conftest.$ac_ext
62205 fi
62206 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
62207 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
62208 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
62209 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
62210
62211 if test $ac_cv_func_alloca_works = yes; then
62212
62213 @@ -6136,15 +6780,15 @@ else
62214 # contain a buggy version. If you still want to use their alloca,
62215 # use ar to extract alloca.o from them instead of compiling alloca.c.
62216
62217 -ALLOCA=alloca.$ac_objext
62218 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
62219
62220 cat >>confdefs.h <<\_ACEOF
62221 #define C_ALLOCA 1
62222 _ACEOF
62223
62224
62225 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
62226 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
62227 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
62228 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
62229 if test "${ac_cv_os_cray+set}" = set; then
62230 echo $ECHO_N "(cached) $ECHO_C" >&6
62231 else
62232 @@ -6154,7 +6798,7 @@ _ACEOF
62233 cat confdefs.h >>conftest.$ac_ext
62234 cat >>conftest.$ac_ext <<_ACEOF
62235 /* end confdefs.h. */
62236 -#if defined(CRAY) && ! defined(CRAY2)
62237 +#if defined CRAY && ! defined CRAY2
62238 webecray
62239 #else
62240 wenotbecray
62241 @@ -6170,14 +6814,14 @@ fi
62242 rm -f conftest*
62243
62244 fi
62245 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
62246 -echo "${ECHO_T}$ac_cv_os_cray" >&6
62247 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
62248 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
62249 if test $ac_cv_os_cray = yes; then
62250 for ac_func in _getb67 GETB67 getb67; do
62251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62252 -echo "$as_me:$LINENO: checking for $ac_func" >&5
62253 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62254 -if eval "test \"\${$as_ac_var+set}\" = set"; then
62255 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
62256 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62257 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62258 echo $ECHO_N "(cached) $ECHO_C" >&6
62259 else
62260 cat >conftest.$ac_ext <<_ACEOF
62261 @@ -6203,68 +6847,60 @@ cat >>conftest.$ac_ext <<_ACEOF
62262
62263 #undef $ac_func
62264
62265 -/* Override any gcc2 internal prototype to avoid an error. */
62266 +/* Override any GCC internal prototype to avoid an error.
62267 + Use char because int might match the return type of a GCC
62268 + builtin and then its argument prototype would still apply. */
62269 #ifdef __cplusplus
62270 extern "C"
62271 -{
62272 #endif
62273 -/* We use char because int might match the return type of a gcc2
62274 - builtin and then its argument prototype would still apply. */
62275 char $ac_func ();
62276 /* The GNU C library defines this for functions which it implements
62277 to always fail with ENOSYS. Some functions are actually named
62278 something starting with __ and the normal name is an alias. */
62279 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62280 +#if defined __stub_$ac_func || defined __stub___$ac_func
62281 choke me
62282 -#else
62283 -char (*f) () = $ac_func;
62284 -#endif
62285 -#ifdef __cplusplus
62286 -}
62287 #endif
62288
62289 int
62290 main ()
62291 {
62292 -return f != $ac_func;
62293 +return $ac_func ();
62294 ;
62295 return 0;
62296 }
62297 _ACEOF
62298 rm -f conftest.$ac_objext conftest$ac_exeext
62299 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62300 - (eval $ac_link) 2>conftest.er1
62301 +if { (ac_try="$ac_link"
62302 +case "(($ac_try" in
62303 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62304 + *) ac_try_echo=$ac_try;;
62305 +esac
62306 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62307 + (eval "$ac_link") 2>conftest.er1
62308 ac_status=$?
62309 grep -v '^ *+' conftest.er1 >conftest.err
62310 rm -f conftest.er1
62311 cat conftest.err >&5
62312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62313 - (exit $ac_status); } &&
62314 - { ac_try='test -z "$ac_c_werror_flag"
62315 - || test ! -s conftest.err'
62316 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62317 - (eval $ac_try) 2>&5
62318 - ac_status=$?
62319 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62320 - (exit $ac_status); }; } &&
62321 - { ac_try='test -s conftest$ac_exeext'
62322 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62323 - (eval $ac_try) 2>&5
62324 - ac_status=$?
62325 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62326 - (exit $ac_status); }; }; then
62327 + (exit $ac_status); } && {
62328 + test -z "$ac_c_werror_flag" ||
62329 + test ! -s conftest.err
62330 + } && test -s conftest$ac_exeext &&
62331 + $as_test_x conftest$ac_exeext; then
62332 eval "$as_ac_var=yes"
62333 else
62334 echo "$as_me: failed program was:" >&5
62335 sed 's/^/| /' conftest.$ac_ext >&5
62336
62337 -eval "$as_ac_var=no"
62338 + eval "$as_ac_var=no"
62339 fi
62340 -rm -f conftest.err conftest.$ac_objext \
62341 +
62342 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62343 conftest$ac_exeext conftest.$ac_ext
62344 fi
62345 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62346 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62347 +ac_res=`eval echo '${'$as_ac_var'}'`
62348 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62349 +echo "${ECHO_T}$ac_res" >&6; }
62350 if test `eval echo '${'$as_ac_var'}'` = yes; then
62351
62352 cat >>confdefs.h <<_ACEOF
62353 @@ -6277,8 +6913,8 @@ fi
62354 done
62355 fi
62356
62357 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
62358 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
62359 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
62360 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
62361 if test "${ac_cv_c_stack_direction+set}" = set; then
62362 echo $ECHO_N "(cached) $ECHO_C" >&6
62363 else
62364 @@ -6291,6 +6927,7 @@ _ACEOF
62365 cat confdefs.h >>conftest.$ac_ext
62366 cat >>conftest.$ac_ext <<_ACEOF
62367 /* end confdefs.h. */
62368 +$ac_includes_default
62369 int
62370 find_stack_direction ()
62371 {
62372 @@ -6308,17 +6945,26 @@ find_stack_direction ()
62373 int
62374 main ()
62375 {
62376 - exit (find_stack_direction () < 0);
62377 + return find_stack_direction () < 0;
62378 }
62379 _ACEOF
62380 rm -f conftest$ac_exeext
62381 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62382 - (eval $ac_link) 2>&5
62383 +if { (ac_try="$ac_link"
62384 +case "(($ac_try" in
62385 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62386 + *) ac_try_echo=$ac_try;;
62387 +esac
62388 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62389 + (eval "$ac_link") 2>&5
62390 ac_status=$?
62391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62393 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62394 - (eval $ac_try) 2>&5
62395 + { (case "(($ac_try" in
62396 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62397 + *) ac_try_echo=$ac_try;;
62398 +esac
62399 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62400 + (eval "$ac_try") 2>&5
62401 ac_status=$?
62402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62403 (exit $ac_status); }; }; then
62404 @@ -6331,11 +6977,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
62405 ( exit $ac_status )
62406 ac_cv_c_stack_direction=-1
62407 fi
62408 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62409 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62410 fi
62411 +
62412 +
62413 fi
62414 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
62415 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
62416 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
62417 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
62418
62419 cat >>confdefs.h <<_ACEOF
62420 #define STACK_DIRECTION $ac_cv_c_stack_direction
62421 @@ -6349,18 +6997,19 @@ fi
62422 for ac_header in stdlib.h unistd.h
62423 do
62424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62425 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62426 - echo "$as_me:$LINENO: checking for $ac_header" >&5
62427 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62428 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62429 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62430 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
62431 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
62432 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62433 echo $ECHO_N "(cached) $ECHO_C" >&6
62434 fi
62435 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62436 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62437 +ac_res=`eval echo '${'$as_ac_Header'}'`
62438 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62439 +echo "${ECHO_T}$ac_res" >&6; }
62440 else
62441 # Is the header compilable?
62442 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
62443 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62444 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
62445 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
62446 cat >conftest.$ac_ext <<_ACEOF
62447 /* confdefs.h. */
62448 _ACEOF
62449 @@ -6371,41 +7020,37 @@ $ac_includes_default
62450 #include <$ac_header>
62451 _ACEOF
62452 rm -f conftest.$ac_objext
62453 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62454 - (eval $ac_compile) 2>conftest.er1
62455 +if { (ac_try="$ac_compile"
62456 +case "(($ac_try" in
62457 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62458 + *) ac_try_echo=$ac_try;;
62459 +esac
62460 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62461 + (eval "$ac_compile") 2>conftest.er1
62462 ac_status=$?
62463 grep -v '^ *+' conftest.er1 >conftest.err
62464 rm -f conftest.er1
62465 cat conftest.err >&5
62466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62467 - (exit $ac_status); } &&
62468 - { ac_try='test -z "$ac_c_werror_flag"
62469 - || test ! -s conftest.err'
62470 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62471 - (eval $ac_try) 2>&5
62472 - ac_status=$?
62473 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62474 - (exit $ac_status); }; } &&
62475 - { ac_try='test -s conftest.$ac_objext'
62476 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62477 - (eval $ac_try) 2>&5
62478 - ac_status=$?
62479 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62480 - (exit $ac_status); }; }; then
62481 + (exit $ac_status); } && {
62482 + test -z "$ac_c_werror_flag" ||
62483 + test ! -s conftest.err
62484 + } && test -s conftest.$ac_objext; then
62485 ac_header_compiler=yes
62486 else
62487 echo "$as_me: failed program was:" >&5
62488 sed 's/^/| /' conftest.$ac_ext >&5
62489
62490 -ac_header_compiler=no
62491 + ac_header_compiler=no
62492 fi
62493 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62494 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62495 -echo "${ECHO_T}$ac_header_compiler" >&6
62496 +
62497 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62498 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62499 +echo "${ECHO_T}$ac_header_compiler" >&6; }
62500
62501 # Is the header present?
62502 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
62503 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62504 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
62505 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
62506 cat >conftest.$ac_ext <<_ACEOF
62507 /* confdefs.h. */
62508 _ACEOF
62509 @@ -6414,24 +7059,22 @@ cat >>conftest.$ac_ext <<_ACEOF
62510 /* end confdefs.h. */
62511 #include <$ac_header>
62512 _ACEOF
62513 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62514 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62515 +if { (ac_try="$ac_cpp conftest.$ac_ext"
62516 +case "(($ac_try" in
62517 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62518 + *) ac_try_echo=$ac_try;;
62519 +esac
62520 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62521 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
62522 ac_status=$?
62523 grep -v '^ *+' conftest.er1 >conftest.err
62524 rm -f conftest.er1
62525 cat conftest.err >&5
62526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62527 - (exit $ac_status); } >/dev/null; then
62528 - if test -s conftest.err; then
62529 - ac_cpp_err=$ac_c_preproc_warn_flag
62530 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62531 - else
62532 - ac_cpp_err=
62533 - fi
62534 -else
62535 - ac_cpp_err=yes
62536 -fi
62537 -if test -z "$ac_cpp_err"; then
62538 + (exit $ac_status); } >/dev/null && {
62539 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
62540 + test ! -s conftest.err
62541 + }; then
62542 ac_header_preproc=yes
62543 else
62544 echo "$as_me: failed program was:" >&5
62545 @@ -6439,9 +7082,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
62546
62547 ac_header_preproc=no
62548 fi
62549 +
62550 rm -f conftest.err conftest.$ac_ext
62551 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62552 -echo "${ECHO_T}$ac_header_preproc" >&6
62553 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62554 +echo "${ECHO_T}$ac_header_preproc" >&6; }
62555
62556 # So? What about this header?
62557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62558 @@ -6465,25 +7109,19 @@ echo "$as_me: WARNING: $ac_header: s
62559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62562 - (
62563 - cat <<\_ASBOX
62564 -## ------------------------------------------ ##
62565 -## Report this to the AC_PACKAGE_NAME lists. ##
62566 -## ------------------------------------------ ##
62567 -_ASBOX
62568 - ) |
62569 - sed "s/^/$as_me: WARNING: /" >&2
62570 +
62571 ;;
62572 esac
62573 -echo "$as_me:$LINENO: checking for $ac_header" >&5
62574 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62575 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62576 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
62577 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
62578 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62579 echo $ECHO_N "(cached) $ECHO_C" >&6
62580 else
62581 eval "$as_ac_Header=\$ac_header_preproc"
62582 fi
62583 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62584 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62585 +ac_res=`eval echo '${'$as_ac_Header'}'`
62586 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62587 +echo "${ECHO_T}$ac_res" >&6; }
62588
62589 fi
62590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62591 @@ -6499,9 +7137,9 @@ done
62592 for ac_func in getpagesize
62593 do
62594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62595 -echo "$as_me:$LINENO: checking for $ac_func" >&5
62596 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62597 -if eval "test \"\${$as_ac_var+set}\" = set"; then
62598 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
62599 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62600 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62601 echo $ECHO_N "(cached) $ECHO_C" >&6
62602 else
62603 cat >conftest.$ac_ext <<_ACEOF
62604 @@ -6527,68 +7165,60 @@ cat >>conftest.$ac_ext <<_ACEOF
62605
62606 #undef $ac_func
62607
62608 -/* Override any gcc2 internal prototype to avoid an error. */
62609 +/* Override any GCC internal prototype to avoid an error.
62610 + Use char because int might match the return type of a GCC
62611 + builtin and then its argument prototype would still apply. */
62612 #ifdef __cplusplus
62613 extern "C"
62614 -{
62615 #endif
62616 -/* We use char because int might match the return type of a gcc2
62617 - builtin and then its argument prototype would still apply. */
62618 char $ac_func ();
62619 /* The GNU C library defines this for functions which it implements
62620 to always fail with ENOSYS. Some functions are actually named
62621 something starting with __ and the normal name is an alias. */
62622 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62623 +#if defined __stub_$ac_func || defined __stub___$ac_func
62624 choke me
62625 -#else
62626 -char (*f) () = $ac_func;
62627 -#endif
62628 -#ifdef __cplusplus
62629 -}
62630 #endif
62631
62632 int
62633 main ()
62634 {
62635 -return f != $ac_func;
62636 +return $ac_func ();
62637 ;
62638 return 0;
62639 }
62640 _ACEOF
62641 rm -f conftest.$ac_objext conftest$ac_exeext
62642 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62643 - (eval $ac_link) 2>conftest.er1
62644 +if { (ac_try="$ac_link"
62645 +case "(($ac_try" in
62646 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62647 + *) ac_try_echo=$ac_try;;
62648 +esac
62649 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62650 + (eval "$ac_link") 2>conftest.er1
62651 ac_status=$?
62652 grep -v '^ *+' conftest.er1 >conftest.err
62653 rm -f conftest.er1
62654 cat conftest.err >&5
62655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62656 - (exit $ac_status); } &&
62657 - { ac_try='test -z "$ac_c_werror_flag"
62658 - || test ! -s conftest.err'
62659 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62660 - (eval $ac_try) 2>&5
62661 - ac_status=$?
62662 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62663 - (exit $ac_status); }; } &&
62664 - { ac_try='test -s conftest$ac_exeext'
62665 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62666 - (eval $ac_try) 2>&5
62667 - ac_status=$?
62668 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62669 - (exit $ac_status); }; }; then
62670 + (exit $ac_status); } && {
62671 + test -z "$ac_c_werror_flag" ||
62672 + test ! -s conftest.err
62673 + } && test -s conftest$ac_exeext &&
62674 + $as_test_x conftest$ac_exeext; then
62675 eval "$as_ac_var=yes"
62676 else
62677 echo "$as_me: failed program was:" >&5
62678 sed 's/^/| /' conftest.$ac_ext >&5
62679
62680 -eval "$as_ac_var=no"
62681 + eval "$as_ac_var=no"
62682 fi
62683 -rm -f conftest.err conftest.$ac_objext \
62684 +
62685 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62686 conftest$ac_exeext conftest.$ac_ext
62687 fi
62688 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62689 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62690 +ac_res=`eval echo '${'$as_ac_var'}'`
62691 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62692 +echo "${ECHO_T}$ac_res" >&6; }
62693 if test `eval echo '${'$as_ac_var'}'` = yes; then
62694 cat >>confdefs.h <<_ACEOF
62695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62696 @@ -6597,8 +7227,8 @@ _ACEOF
62697 fi
62698 done
62699
62700 -echo "$as_me:$LINENO: checking for working mmap" >&5
62701 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
62702 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
62703 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
62704 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
62705 echo $ECHO_N "(cached) $ECHO_C" >&6
62706 else
62707 @@ -6640,21 +7270,21 @@ $ac_includes_default
62708 #include <fcntl.h>
62709 #include <sys/mman.h>
62710
62711 -#if !STDC_HEADERS && !HAVE_STDLIB_H
62712 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
62713 char *malloc ();
62714 #endif
62715
62716 /* This mess was copied from the GNU getpagesize.h. */
62717 -#if !HAVE_GETPAGESIZE
62718 +#ifndef HAVE_GETPAGESIZE
62719 /* Assume that all systems that can run configure have sys/param.h. */
62720 -# if !HAVE_SYS_PARAM_H
62721 +# ifndef HAVE_SYS_PARAM_H
62722 # define HAVE_SYS_PARAM_H 1
62723 # endif
62724
62725 # ifdef _SC_PAGESIZE
62726 # define getpagesize() sysconf(_SC_PAGESIZE)
62727 # else /* no _SC_PAGESIZE */
62728 -# if HAVE_SYS_PARAM_H
62729 +# ifdef HAVE_SYS_PARAM_H
62730 # include <sys/param.h>
62731 # ifdef EXEC_PAGESIZE
62732 # define getpagesize() EXEC_PAGESIZE
62733 @@ -6693,15 +7323,15 @@ main ()
62734 /* First, make a file with some known garbage in it. */
62735 data = (char *) malloc (pagesize);
62736 if (!data)
62737 - exit (1);
62738 + return 1;
62739 for (i = 0; i < pagesize; ++i)
62740 *(data + i) = rand ();
62741 umask (0);
62742 fd = creat ("conftest.mmap", 0600);
62743 if (fd < 0)
62744 - exit (1);
62745 + return 1;
62746 if (write (fd, data, pagesize) != pagesize)
62747 - exit (1);
62748 + return 1;
62749 close (fd);
62750
62751 /* Next, try to mmap the file at a fixed address which already has
62752 @@ -6709,17 +7339,17 @@ main ()
62753 we see the same garbage. */
62754 fd = open ("conftest.mmap", O_RDWR);
62755 if (fd < 0)
62756 - exit (1);
62757 + return 1;
62758 data2 = (char *) malloc (2 * pagesize);
62759 if (!data2)
62760 - exit (1);
62761 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
62762 + return 1;
62763 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
62764 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
62765 MAP_PRIVATE | MAP_FIXED, fd, 0L))
62766 - exit (1);
62767 + return 1;
62768 for (i = 0; i < pagesize; ++i)
62769 if (*(data + i) != *(data2 + i))
62770 - exit (1);
62771 + return 1;
62772
62773 /* Finally, make sure that changes to the mapped area do not
62774 percolate back to the file as seen by read(). (This is a bug on
62775 @@ -6728,24 +7358,33 @@ main ()
62776 *(data2 + i) = *(data2 + i) + 1;
62777 data3 = (char *) malloc (pagesize);
62778 if (!data3)
62779 - exit (1);
62780 + return 1;
62781 if (read (fd, data3, pagesize) != pagesize)
62782 - exit (1);
62783 + return 1;
62784 for (i = 0; i < pagesize; ++i)
62785 if (*(data + i) != *(data3 + i))
62786 - exit (1);
62787 + return 1;
62788 close (fd);
62789 - exit (0);
62790 + return 0;
62791 }
62792 _ACEOF
62793 rm -f conftest$ac_exeext
62794 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62795 - (eval $ac_link) 2>&5
62796 +if { (ac_try="$ac_link"
62797 +case "(($ac_try" in
62798 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62799 + *) ac_try_echo=$ac_try;;
62800 +esac
62801 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62802 + (eval "$ac_link") 2>&5
62803 ac_status=$?
62804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62806 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62807 - (eval $ac_try) 2>&5
62808 + { (case "(($ac_try" in
62809 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62810 + *) ac_try_echo=$ac_try;;
62811 +esac
62812 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62813 + (eval "$ac_try") 2>&5
62814 ac_status=$?
62815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62816 (exit $ac_status); }; }; then
62817 @@ -6758,11 +7397,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
62818 ( exit $ac_status )
62819 ac_cv_func_mmap_fixed_mapped=no
62820 fi
62821 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62822 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62823 fi
62824 +
62825 +
62826 fi
62827 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
62828 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
62829 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
62830 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
62831 if test $ac_cv_func_mmap_fixed_mapped = yes; then
62832
62833 cat >>confdefs.h <<\_ACEOF
62834 @@ -6786,18 +7427,19 @@ for ac_header in argz.h limits.h locale.
62835 unistd.h values.h sys/param.h
62836 do
62837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62838 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62839 - echo "$as_me:$LINENO: checking for $ac_header" >&5
62840 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62841 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62842 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62843 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
62844 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
62845 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62846 echo $ECHO_N "(cached) $ECHO_C" >&6
62847 fi
62848 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62849 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62850 +ac_res=`eval echo '${'$as_ac_Header'}'`
62851 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62852 +echo "${ECHO_T}$ac_res" >&6; }
62853 else
62854 # Is the header compilable?
62855 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
62856 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62857 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
62858 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
62859 cat >conftest.$ac_ext <<_ACEOF
62860 /* confdefs.h. */
62861 _ACEOF
62862 @@ -6808,41 +7450,37 @@ $ac_includes_default
62863 #include <$ac_header>
62864 _ACEOF
62865 rm -f conftest.$ac_objext
62866 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62867 - (eval $ac_compile) 2>conftest.er1
62868 +if { (ac_try="$ac_compile"
62869 +case "(($ac_try" in
62870 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62871 + *) ac_try_echo=$ac_try;;
62872 +esac
62873 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62874 + (eval "$ac_compile") 2>conftest.er1
62875 ac_status=$?
62876 grep -v '^ *+' conftest.er1 >conftest.err
62877 rm -f conftest.er1
62878 cat conftest.err >&5
62879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62880 - (exit $ac_status); } &&
62881 - { ac_try='test -z "$ac_c_werror_flag"
62882 - || test ! -s conftest.err'
62883 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62884 - (eval $ac_try) 2>&5
62885 - ac_status=$?
62886 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62887 - (exit $ac_status); }; } &&
62888 - { ac_try='test -s conftest.$ac_objext'
62889 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62890 - (eval $ac_try) 2>&5
62891 - ac_status=$?
62892 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62893 - (exit $ac_status); }; }; then
62894 + (exit $ac_status); } && {
62895 + test -z "$ac_c_werror_flag" ||
62896 + test ! -s conftest.err
62897 + } && test -s conftest.$ac_objext; then
62898 ac_header_compiler=yes
62899 else
62900 echo "$as_me: failed program was:" >&5
62901 sed 's/^/| /' conftest.$ac_ext >&5
62902
62903 -ac_header_compiler=no
62904 + ac_header_compiler=no
62905 fi
62906 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62907 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62908 -echo "${ECHO_T}$ac_header_compiler" >&6
62909 +
62910 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62911 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62912 +echo "${ECHO_T}$ac_header_compiler" >&6; }
62913
62914 # Is the header present?
62915 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
62916 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62917 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
62918 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
62919 cat >conftest.$ac_ext <<_ACEOF
62920 /* confdefs.h. */
62921 _ACEOF
62922 @@ -6851,24 +7489,22 @@ cat >>conftest.$ac_ext <<_ACEOF
62923 /* end confdefs.h. */
62924 #include <$ac_header>
62925 _ACEOF
62926 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62927 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62928 +if { (ac_try="$ac_cpp conftest.$ac_ext"
62929 +case "(($ac_try" in
62930 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62931 + *) ac_try_echo=$ac_try;;
62932 +esac
62933 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62934 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
62935 ac_status=$?
62936 grep -v '^ *+' conftest.er1 >conftest.err
62937 rm -f conftest.er1
62938 cat conftest.err >&5
62939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62940 - (exit $ac_status); } >/dev/null; then
62941 - if test -s conftest.err; then
62942 - ac_cpp_err=$ac_c_preproc_warn_flag
62943 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62944 - else
62945 - ac_cpp_err=
62946 - fi
62947 -else
62948 - ac_cpp_err=yes
62949 -fi
62950 -if test -z "$ac_cpp_err"; then
62951 + (exit $ac_status); } >/dev/null && {
62952 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
62953 + test ! -s conftest.err
62954 + }; then
62955 ac_header_preproc=yes
62956 else
62957 echo "$as_me: failed program was:" >&5
62958 @@ -6876,9 +7512,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
62959
62960 ac_header_preproc=no
62961 fi
62962 +
62963 rm -f conftest.err conftest.$ac_ext
62964 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62965 -echo "${ECHO_T}$ac_header_preproc" >&6
62966 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62967 +echo "${ECHO_T}$ac_header_preproc" >&6; }
62968
62969 # So? What about this header?
62970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62971 @@ -6902,25 +7539,19 @@ echo "$as_me: WARNING: $ac_header: s
62972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62975 - (
62976 - cat <<\_ASBOX
62977 -## ------------------------------------------ ##
62978 -## Report this to the AC_PACKAGE_NAME lists. ##
62979 -## ------------------------------------------ ##
62980 -_ASBOX
62981 - ) |
62982 - sed "s/^/$as_me: WARNING: /" >&2
62983 +
62984 ;;
62985 esac
62986 -echo "$as_me:$LINENO: checking for $ac_header" >&5
62987 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62988 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62989 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
62990 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
62991 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62992 echo $ECHO_N "(cached) $ECHO_C" >&6
62993 else
62994 eval "$as_ac_Header=\$ac_header_preproc"
62995 fi
62996 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62997 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62998 +ac_res=`eval echo '${'$as_ac_Header'}'`
62999 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63000 +echo "${ECHO_T}$ac_res" >&6; }
63001
63002 fi
63003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63004 @@ -6946,9 +7577,9 @@ for ac_func in getcwd munmap putenv sete
63005 __argz_count __argz_stringify __argz_next
63006 do
63007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63008 -echo "$as_me:$LINENO: checking for $ac_func" >&5
63009 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63010 -if eval "test \"\${$as_ac_var+set}\" = set"; then
63011 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
63012 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63013 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63014 echo $ECHO_N "(cached) $ECHO_C" >&6
63015 else
63016 cat >conftest.$ac_ext <<_ACEOF
63017 @@ -6974,68 +7605,60 @@ cat >>conftest.$ac_ext <<_ACEOF
63018
63019 #undef $ac_func
63020
63021 -/* Override any gcc2 internal prototype to avoid an error. */
63022 +/* Override any GCC internal prototype to avoid an error.
63023 + Use char because int might match the return type of a GCC
63024 + builtin and then its argument prototype would still apply. */
63025 #ifdef __cplusplus
63026 extern "C"
63027 -{
63028 #endif
63029 -/* We use char because int might match the return type of a gcc2
63030 - builtin and then its argument prototype would still apply. */
63031 char $ac_func ();
63032 /* The GNU C library defines this for functions which it implements
63033 to always fail with ENOSYS. Some functions are actually named
63034 something starting with __ and the normal name is an alias. */
63035 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63036 +#if defined __stub_$ac_func || defined __stub___$ac_func
63037 choke me
63038 -#else
63039 -char (*f) () = $ac_func;
63040 -#endif
63041 -#ifdef __cplusplus
63042 -}
63043 #endif
63044
63045 int
63046 main ()
63047 {
63048 -return f != $ac_func;
63049 +return $ac_func ();
63050 ;
63051 return 0;
63052 }
63053 _ACEOF
63054 rm -f conftest.$ac_objext conftest$ac_exeext
63055 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63056 - (eval $ac_link) 2>conftest.er1
63057 +if { (ac_try="$ac_link"
63058 +case "(($ac_try" in
63059 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63060 + *) ac_try_echo=$ac_try;;
63061 +esac
63062 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63063 + (eval "$ac_link") 2>conftest.er1
63064 ac_status=$?
63065 grep -v '^ *+' conftest.er1 >conftest.err
63066 rm -f conftest.er1
63067 cat conftest.err >&5
63068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63069 - (exit $ac_status); } &&
63070 - { ac_try='test -z "$ac_c_werror_flag"
63071 - || test ! -s conftest.err'
63072 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63073 - (eval $ac_try) 2>&5
63074 - ac_status=$?
63075 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63076 - (exit $ac_status); }; } &&
63077 - { ac_try='test -s conftest$ac_exeext'
63078 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63079 - (eval $ac_try) 2>&5
63080 - ac_status=$?
63081 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63082 - (exit $ac_status); }; }; then
63083 + (exit $ac_status); } && {
63084 + test -z "$ac_c_werror_flag" ||
63085 + test ! -s conftest.err
63086 + } && test -s conftest$ac_exeext &&
63087 + $as_test_x conftest$ac_exeext; then
63088 eval "$as_ac_var=yes"
63089 else
63090 echo "$as_me: failed program was:" >&5
63091 sed 's/^/| /' conftest.$ac_ext >&5
63092
63093 -eval "$as_ac_var=no"
63094 + eval "$as_ac_var=no"
63095 fi
63096 -rm -f conftest.err conftest.$ac_objext \
63097 +
63098 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63099 conftest$ac_exeext conftest.$ac_ext
63100 fi
63101 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63102 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63103 +ac_res=`eval echo '${'$as_ac_var'}'`
63104 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63105 +echo "${ECHO_T}$ac_res" >&6; }
63106 if test `eval echo '${'$as_ac_var'}'` = yes; then
63107 cat >>confdefs.h <<_ACEOF
63108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63109 @@ -7050,9 +7673,9 @@ done
63110 for ac_func in stpcpy
63111 do
63112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63113 -echo "$as_me:$LINENO: checking for $ac_func" >&5
63114 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63115 -if eval "test \"\${$as_ac_var+set}\" = set"; then
63116 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
63117 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63118 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63119 echo $ECHO_N "(cached) $ECHO_C" >&6
63120 else
63121 cat >conftest.$ac_ext <<_ACEOF
63122 @@ -7078,68 +7701,60 @@ cat >>conftest.$ac_ext <<_ACEOF
63123
63124 #undef $ac_func
63125
63126 -/* Override any gcc2 internal prototype to avoid an error. */
63127 +/* Override any GCC internal prototype to avoid an error.
63128 + Use char because int might match the return type of a GCC
63129 + builtin and then its argument prototype would still apply. */
63130 #ifdef __cplusplus
63131 extern "C"
63132 -{
63133 #endif
63134 -/* We use char because int might match the return type of a gcc2
63135 - builtin and then its argument prototype would still apply. */
63136 char $ac_func ();
63137 /* The GNU C library defines this for functions which it implements
63138 to always fail with ENOSYS. Some functions are actually named
63139 something starting with __ and the normal name is an alias. */
63140 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63141 +#if defined __stub_$ac_func || defined __stub___$ac_func
63142 choke me
63143 -#else
63144 -char (*f) () = $ac_func;
63145 -#endif
63146 -#ifdef __cplusplus
63147 -}
63148 #endif
63149
63150 int
63151 main ()
63152 {
63153 -return f != $ac_func;
63154 +return $ac_func ();
63155 ;
63156 return 0;
63157 }
63158 _ACEOF
63159 rm -f conftest.$ac_objext conftest$ac_exeext
63160 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63161 - (eval $ac_link) 2>conftest.er1
63162 +if { (ac_try="$ac_link"
63163 +case "(($ac_try" in
63164 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63165 + *) ac_try_echo=$ac_try;;
63166 +esac
63167 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63168 + (eval "$ac_link") 2>conftest.er1
63169 ac_status=$?
63170 grep -v '^ *+' conftest.er1 >conftest.err
63171 rm -f conftest.er1
63172 cat conftest.err >&5
63173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63174 - (exit $ac_status); } &&
63175 - { ac_try='test -z "$ac_c_werror_flag"
63176 - || test ! -s conftest.err'
63177 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63178 - (eval $ac_try) 2>&5
63179 - ac_status=$?
63180 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63181 - (exit $ac_status); }; } &&
63182 - { ac_try='test -s conftest$ac_exeext'
63183 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63184 - (eval $ac_try) 2>&5
63185 - ac_status=$?
63186 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63187 - (exit $ac_status); }; }; then
63188 + (exit $ac_status); } && {
63189 + test -z "$ac_c_werror_flag" ||
63190 + test ! -s conftest.err
63191 + } && test -s conftest$ac_exeext &&
63192 + $as_test_x conftest$ac_exeext; then
63193 eval "$as_ac_var=yes"
63194 else
63195 echo "$as_me: failed program was:" >&5
63196 sed 's/^/| /' conftest.$ac_ext >&5
63197
63198 -eval "$as_ac_var=no"
63199 + eval "$as_ac_var=no"
63200 fi
63201 -rm -f conftest.err conftest.$ac_objext \
63202 +
63203 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63204 conftest$ac_exeext conftest.$ac_ext
63205 fi
63206 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63207 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63208 +ac_res=`eval echo '${'$as_ac_var'}'`
63209 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63210 +echo "${ECHO_T}$ac_res" >&6; }
63211 if test `eval echo '${'$as_ac_var'}'` = yes; then
63212 cat >>confdefs.h <<_ACEOF
63213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63214 @@ -7158,8 +7773,8 @@ _ACEOF
63215 fi
63216
63217 if test $ac_cv_header_locale_h = yes; then
63218 - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
63219 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
63220 + { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
63221 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
63222 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
63223 echo $ECHO_N "(cached) $ECHO_C" >&6
63224 else
63225 @@ -7179,39 +7794,36 @@ return LC_MESSAGES
63226 }
63227 _ACEOF
63228 rm -f conftest.$ac_objext conftest$ac_exeext
63229 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63230 - (eval $ac_link) 2>conftest.er1
63231 +if { (ac_try="$ac_link"
63232 +case "(($ac_try" in
63233 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63234 + *) ac_try_echo=$ac_try;;
63235 +esac
63236 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63237 + (eval "$ac_link") 2>conftest.er1
63238 ac_status=$?
63239 grep -v '^ *+' conftest.er1 >conftest.err
63240 rm -f conftest.er1
63241 cat conftest.err >&5
63242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63243 - (exit $ac_status); } &&
63244 - { ac_try='test -z "$ac_c_werror_flag"
63245 - || test ! -s conftest.err'
63246 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63247 - (eval $ac_try) 2>&5
63248 - ac_status=$?
63249 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63250 - (exit $ac_status); }; } &&
63251 - { ac_try='test -s conftest$ac_exeext'
63252 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63253 - (eval $ac_try) 2>&5
63254 - ac_status=$?
63255 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63256 - (exit $ac_status); }; }; then
63257 + (exit $ac_status); } && {
63258 + test -z "$ac_c_werror_flag" ||
63259 + test ! -s conftest.err
63260 + } && test -s conftest$ac_exeext &&
63261 + $as_test_x conftest$ac_exeext; then
63262 am_cv_val_LC_MESSAGES=yes
63263 else
63264 echo "$as_me: failed program was:" >&5
63265 sed 's/^/| /' conftest.$ac_ext >&5
63266
63267 -am_cv_val_LC_MESSAGES=no
63268 + am_cv_val_LC_MESSAGES=no
63269 fi
63270 -rm -f conftest.err conftest.$ac_objext \
63271 +
63272 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63273 conftest$ac_exeext conftest.$ac_ext
63274 fi
63275 -echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
63276 -echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
63277 +{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
63278 +echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
63279 if test $am_cv_val_LC_MESSAGES = yes; then
63280
63281 cat >>confdefs.h <<\_ACEOF
63282 @@ -7220,34 +7832,34 @@ _ACEOF
63283
63284 fi
63285 fi
63286 - echo "$as_me:$LINENO: checking whether NLS is requested" >&5
63287 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
63288 - # Check whether --enable-nls or --disable-nls was given.
63289 + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
63290 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
63291 + # Check whether --enable-nls was given.
63292 if test "${enable_nls+set}" = set; then
63293 - enableval="$enable_nls"
63294 - USE_NLS=$enableval
63295 + enableval=$enable_nls; USE_NLS=$enableval
63296 else
63297 USE_NLS=yes
63298 -fi;
63299 - echo "$as_me:$LINENO: result: $USE_NLS" >&5
63300 -echo "${ECHO_T}$USE_NLS" >&6
63301 +fi
63302 +
63303 + { echo "$as_me:$LINENO: result: $USE_NLS" >&5
63304 +echo "${ECHO_T}$USE_NLS" >&6; }
63305
63306
63307 USE_INCLUDED_LIBINTL=no
63308
63309 if test "$USE_NLS" = "yes"; then
63310 - echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
63311 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
63312 + { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
63313 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
63314
63315 -# Check whether --with-included-gettext or --without-included-gettext was given.
63316 +# Check whether --with-included-gettext was given.
63317 if test "${with_included_gettext+set}" = set; then
63318 - withval="$with_included_gettext"
63319 - nls_cv_force_use_gnu_gettext=$withval
63320 + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
63321 else
63322 nls_cv_force_use_gnu_gettext=no
63323 -fi;
63324 - echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
63325 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
63326 +fi
63327 +
63328 + { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
63329 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
63330
63331 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
63332 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
63333 @@ -7256,17 +7868,17 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_get
63334 CATOBJEXT=
63335
63336 if test "${ac_cv_header_libintl_h+set}" = set; then
63337 - echo "$as_me:$LINENO: checking for libintl.h" >&5
63338 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
63339 + { echo "$as_me:$LINENO: checking for libintl.h" >&5
63340 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
63341 if test "${ac_cv_header_libintl_h+set}" = set; then
63342 echo $ECHO_N "(cached) $ECHO_C" >&6
63343 fi
63344 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63345 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
63346 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63347 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
63348 else
63349 # Is the header compilable?
63350 -echo "$as_me:$LINENO: checking libintl.h usability" >&5
63351 -echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
63352 +{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
63353 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
63354 cat >conftest.$ac_ext <<_ACEOF
63355 /* confdefs.h. */
63356 _ACEOF
63357 @@ -7277,41 +7889,37 @@ $ac_includes_default
63358 #include <libintl.h>
63359 _ACEOF
63360 rm -f conftest.$ac_objext
63361 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63362 - (eval $ac_compile) 2>conftest.er1
63363 +if { (ac_try="$ac_compile"
63364 +case "(($ac_try" in
63365 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63366 + *) ac_try_echo=$ac_try;;
63367 +esac
63368 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63369 + (eval "$ac_compile") 2>conftest.er1
63370 ac_status=$?
63371 grep -v '^ *+' conftest.er1 >conftest.err
63372 rm -f conftest.er1
63373 cat conftest.err >&5
63374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63375 - (exit $ac_status); } &&
63376 - { ac_try='test -z "$ac_c_werror_flag"
63377 - || test ! -s conftest.err'
63378 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63379 - (eval $ac_try) 2>&5
63380 - ac_status=$?
63381 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63382 - (exit $ac_status); }; } &&
63383 - { ac_try='test -s conftest.$ac_objext'
63384 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63385 - (eval $ac_try) 2>&5
63386 - ac_status=$?
63387 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63388 - (exit $ac_status); }; }; then
63389 + (exit $ac_status); } && {
63390 + test -z "$ac_c_werror_flag" ||
63391 + test ! -s conftest.err
63392 + } && test -s conftest.$ac_objext; then
63393 ac_header_compiler=yes
63394 else
63395 echo "$as_me: failed program was:" >&5
63396 sed 's/^/| /' conftest.$ac_ext >&5
63397
63398 -ac_header_compiler=no
63399 + ac_header_compiler=no
63400 fi
63401 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63402 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63403 -echo "${ECHO_T}$ac_header_compiler" >&6
63404 +
63405 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63406 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63407 +echo "${ECHO_T}$ac_header_compiler" >&6; }
63408
63409 # Is the header present?
63410 -echo "$as_me:$LINENO: checking libintl.h presence" >&5
63411 -echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
63412 +{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
63413 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
63414 cat >conftest.$ac_ext <<_ACEOF
63415 /* confdefs.h. */
63416 _ACEOF
63417 @@ -7320,24 +7928,22 @@ cat >>conftest.$ac_ext <<_ACEOF
63418 /* end confdefs.h. */
63419 #include <libintl.h>
63420 _ACEOF
63421 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63422 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63423 +if { (ac_try="$ac_cpp conftest.$ac_ext"
63424 +case "(($ac_try" in
63425 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63426 + *) ac_try_echo=$ac_try;;
63427 +esac
63428 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63429 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63430 ac_status=$?
63431 grep -v '^ *+' conftest.er1 >conftest.err
63432 rm -f conftest.er1
63433 cat conftest.err >&5
63434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63435 - (exit $ac_status); } >/dev/null; then
63436 - if test -s conftest.err; then
63437 - ac_cpp_err=$ac_c_preproc_warn_flag
63438 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63439 - else
63440 - ac_cpp_err=
63441 - fi
63442 -else
63443 - ac_cpp_err=yes
63444 -fi
63445 -if test -z "$ac_cpp_err"; then
63446 + (exit $ac_status); } >/dev/null && {
63447 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63448 + test ! -s conftest.err
63449 + }; then
63450 ac_header_preproc=yes
63451 else
63452 echo "$as_me: failed program was:" >&5
63453 @@ -7345,9 +7951,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
63454
63455 ac_header_preproc=no
63456 fi
63457 +
63458 rm -f conftest.err conftest.$ac_ext
63459 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63460 -echo "${ECHO_T}$ac_header_preproc" >&6
63461 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63462 +echo "${ECHO_T}$ac_header_preproc" >&6; }
63463
63464 # So? What about this header?
63465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63466 @@ -7371,30 +7978,23 @@ echo "$as_me: WARNING: libintl.h: se
63467 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
63468 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
63469 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
63470 - (
63471 - cat <<\_ASBOX
63472 -## ------------------------------------------ ##
63473 -## Report this to the AC_PACKAGE_NAME lists. ##
63474 -## ------------------------------------------ ##
63475 -_ASBOX
63476 - ) |
63477 - sed "s/^/$as_me: WARNING: /" >&2
63478 +
63479 ;;
63480 esac
63481 -echo "$as_me:$LINENO: checking for libintl.h" >&5
63482 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
63483 +{ echo "$as_me:$LINENO: checking for libintl.h" >&5
63484 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
63485 if test "${ac_cv_header_libintl_h+set}" = set; then
63486 echo $ECHO_N "(cached) $ECHO_C" >&6
63487 else
63488 ac_cv_header_libintl_h=$ac_header_preproc
63489 fi
63490 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63491 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
63492 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63493 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
63494
63495 fi
63496 if test $ac_cv_header_libintl_h = yes; then
63497 - echo "$as_me:$LINENO: checking for gettext in libc" >&5
63498 -echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
63499 + { echo "$as_me:$LINENO: checking for gettext in libc" >&5
63500 +echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
63501 if test "${gt_cv_func_gettext_libc+set}" = set; then
63502 echo $ECHO_N "(cached) $ECHO_C" >&6
63503 else
63504 @@ -7414,43 +8014,40 @@ return (int) gettext ("")
63505 }
63506 _ACEOF
63507 rm -f conftest.$ac_objext conftest$ac_exeext
63508 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63509 - (eval $ac_link) 2>conftest.er1
63510 +if { (ac_try="$ac_link"
63511 +case "(($ac_try" in
63512 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63513 + *) ac_try_echo=$ac_try;;
63514 +esac
63515 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63516 + (eval "$ac_link") 2>conftest.er1
63517 ac_status=$?
63518 grep -v '^ *+' conftest.er1 >conftest.err
63519 rm -f conftest.er1
63520 cat conftest.err >&5
63521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63522 - (exit $ac_status); } &&
63523 - { ac_try='test -z "$ac_c_werror_flag"
63524 - || test ! -s conftest.err'
63525 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63526 - (eval $ac_try) 2>&5
63527 - ac_status=$?
63528 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63529 - (exit $ac_status); }; } &&
63530 - { ac_try='test -s conftest$ac_exeext'
63531 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63532 - (eval $ac_try) 2>&5
63533 - ac_status=$?
63534 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63535 - (exit $ac_status); }; }; then
63536 + (exit $ac_status); } && {
63537 + test -z "$ac_c_werror_flag" ||
63538 + test ! -s conftest.err
63539 + } && test -s conftest$ac_exeext &&
63540 + $as_test_x conftest$ac_exeext; then
63541 gt_cv_func_gettext_libc=yes
63542 else
63543 echo "$as_me: failed program was:" >&5
63544 sed 's/^/| /' conftest.$ac_ext >&5
63545
63546 -gt_cv_func_gettext_libc=no
63547 + gt_cv_func_gettext_libc=no
63548 fi
63549 -rm -f conftest.err conftest.$ac_objext \
63550 +
63551 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63552 conftest$ac_exeext conftest.$ac_ext
63553 fi
63554 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
63555 -echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
63556 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
63557 +echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
63558
63559 if test "$gt_cv_func_gettext_libc" != "yes"; then
63560 - echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
63561 -echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
63562 + { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
63563 +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
63564 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
63565 echo $ECHO_N "(cached) $ECHO_C" >&6
63566 else
63567 @@ -7463,59 +8060,56 @@ cat confdefs.h >>conftest.$ac_ext
63568 cat >>conftest.$ac_ext <<_ACEOF
63569 /* end confdefs.h. */
63570
63571 -/* Override any gcc2 internal prototype to avoid an error. */
63572 +/* Override any GCC internal prototype to avoid an error.
63573 + Use char because int might match the return type of a GCC
63574 + builtin and then its argument prototype would still apply. */
63575 #ifdef __cplusplus
63576 extern "C"
63577 #endif
63578 -/* We use char because int might match the return type of a gcc2
63579 - builtin and then its argument prototype would still apply. */
63580 char bindtextdomain ();
63581 int
63582 main ()
63583 {
63584 -bindtextdomain ();
63585 +return bindtextdomain ();
63586 ;
63587 return 0;
63588 }
63589 _ACEOF
63590 rm -f conftest.$ac_objext conftest$ac_exeext
63591 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63592 - (eval $ac_link) 2>conftest.er1
63593 +if { (ac_try="$ac_link"
63594 +case "(($ac_try" in
63595 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63596 + *) ac_try_echo=$ac_try;;
63597 +esac
63598 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63599 + (eval "$ac_link") 2>conftest.er1
63600 ac_status=$?
63601 grep -v '^ *+' conftest.er1 >conftest.err
63602 rm -f conftest.er1
63603 cat conftest.err >&5
63604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63605 - (exit $ac_status); } &&
63606 - { ac_try='test -z "$ac_c_werror_flag"
63607 - || test ! -s conftest.err'
63608 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63609 - (eval $ac_try) 2>&5
63610 - ac_status=$?
63611 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63612 - (exit $ac_status); }; } &&
63613 - { ac_try='test -s conftest$ac_exeext'
63614 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63615 - (eval $ac_try) 2>&5
63616 - ac_status=$?
63617 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63618 - (exit $ac_status); }; }; then
63619 + (exit $ac_status); } && {
63620 + test -z "$ac_c_werror_flag" ||
63621 + test ! -s conftest.err
63622 + } && test -s conftest$ac_exeext &&
63623 + $as_test_x conftest$ac_exeext; then
63624 ac_cv_lib_intl_bindtextdomain=yes
63625 else
63626 echo "$as_me: failed program was:" >&5
63627 sed 's/^/| /' conftest.$ac_ext >&5
63628
63629 -ac_cv_lib_intl_bindtextdomain=no
63630 + ac_cv_lib_intl_bindtextdomain=no
63631 fi
63632 -rm -f conftest.err conftest.$ac_objext \
63633 +
63634 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63635 conftest$ac_exeext conftest.$ac_ext
63636 LIBS=$ac_check_lib_save_LIBS
63637 fi
63638 -echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
63639 -echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
63640 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
63641 +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
63642 if test $ac_cv_lib_intl_bindtextdomain = yes; then
63643 - echo "$as_me:$LINENO: checking for gettext in libintl" >&5
63644 -echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
63645 + { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
63646 +echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
63647 if test "${gt_cv_func_gettext_libintl+set}" = set; then
63648 echo $ECHO_N "(cached) $ECHO_C" >&6
63649 else
63650 @@ -7535,39 +8129,36 @@ return (int) gettext ("")
63651 }
63652 _ACEOF
63653 rm -f conftest.$ac_objext conftest$ac_exeext
63654 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63655 - (eval $ac_link) 2>conftest.er1
63656 +if { (ac_try="$ac_link"
63657 +case "(($ac_try" in
63658 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63659 + *) ac_try_echo=$ac_try;;
63660 +esac
63661 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63662 + (eval "$ac_link") 2>conftest.er1
63663 ac_status=$?
63664 grep -v '^ *+' conftest.er1 >conftest.err
63665 rm -f conftest.er1
63666 cat conftest.err >&5
63667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63668 - (exit $ac_status); } &&
63669 - { ac_try='test -z "$ac_c_werror_flag"
63670 - || test ! -s conftest.err'
63671 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63672 - (eval $ac_try) 2>&5
63673 - ac_status=$?
63674 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63675 - (exit $ac_status); }; } &&
63676 - { ac_try='test -s conftest$ac_exeext'
63677 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63678 - (eval $ac_try) 2>&5
63679 - ac_status=$?
63680 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63681 - (exit $ac_status); }; }; then
63682 + (exit $ac_status); } && {
63683 + test -z "$ac_c_werror_flag" ||
63684 + test ! -s conftest.err
63685 + } && test -s conftest$ac_exeext &&
63686 + $as_test_x conftest$ac_exeext; then
63687 gt_cv_func_gettext_libintl=yes
63688 else
63689 echo "$as_me: failed program was:" >&5
63690 sed 's/^/| /' conftest.$ac_ext >&5
63691
63692 -gt_cv_func_gettext_libintl=no
63693 + gt_cv_func_gettext_libintl=no
63694 fi
63695 -rm -f conftest.err conftest.$ac_objext \
63696 +
63697 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63698 conftest$ac_exeext conftest.$ac_ext
63699 fi
63700 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
63701 -echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
63702 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
63703 +echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
63704 fi
63705
63706 fi
63707 @@ -7581,8 +8172,8 @@ _ACEOF
63708
63709 # Extract the first word of "msgfmt", so it can be a program name with args.
63710 set dummy msgfmt; ac_word=$2
63711 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63712 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63713 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63714 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63715 if test "${ac_cv_path_MSGFMT+set}" = set; then
63716 echo $ECHO_N "(cached) $ECHO_C" >&6
63717 else
63718 @@ -7608,20 +8199,20 @@ esac
63719 fi
63720 MSGFMT="$ac_cv_path_MSGFMT"
63721 if test -n "$MSGFMT"; then
63722 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
63723 -echo "${ECHO_T}$MSGFMT" >&6
63724 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
63725 +echo "${ECHO_T}$MSGFMT" >&6; }
63726 else
63727 - echo "$as_me:$LINENO: result: no" >&5
63728 -echo "${ECHO_T}no" >&6
63729 + { echo "$as_me:$LINENO: result: no" >&5
63730 +echo "${ECHO_T}no" >&6; }
63731 fi
63732 if test "$MSGFMT" != "no"; then
63733
63734 for ac_func in dcgettext
63735 do
63736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63737 -echo "$as_me:$LINENO: checking for $ac_func" >&5
63738 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63739 -if eval "test \"\${$as_ac_var+set}\" = set"; then
63740 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
63741 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63742 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63743 echo $ECHO_N "(cached) $ECHO_C" >&6
63744 else
63745 cat >conftest.$ac_ext <<_ACEOF
63746 @@ -7647,68 +8238,60 @@ cat >>conftest.$ac_ext <<_ACEOF
63747
63748 #undef $ac_func
63749
63750 -/* Override any gcc2 internal prototype to avoid an error. */
63751 +/* Override any GCC internal prototype to avoid an error.
63752 + Use char because int might match the return type of a GCC
63753 + builtin and then its argument prototype would still apply. */
63754 #ifdef __cplusplus
63755 extern "C"
63756 -{
63757 #endif
63758 -/* We use char because int might match the return type of a gcc2
63759 - builtin and then its argument prototype would still apply. */
63760 char $ac_func ();
63761 /* The GNU C library defines this for functions which it implements
63762 to always fail with ENOSYS. Some functions are actually named
63763 something starting with __ and the normal name is an alias. */
63764 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63765 +#if defined __stub_$ac_func || defined __stub___$ac_func
63766 choke me
63767 -#else
63768 -char (*f) () = $ac_func;
63769 -#endif
63770 -#ifdef __cplusplus
63771 -}
63772 #endif
63773
63774 int
63775 main ()
63776 {
63777 -return f != $ac_func;
63778 +return $ac_func ();
63779 ;
63780 return 0;
63781 }
63782 _ACEOF
63783 rm -f conftest.$ac_objext conftest$ac_exeext
63784 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63785 - (eval $ac_link) 2>conftest.er1
63786 +if { (ac_try="$ac_link"
63787 +case "(($ac_try" in
63788 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63789 + *) ac_try_echo=$ac_try;;
63790 +esac
63791 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63792 + (eval "$ac_link") 2>conftest.er1
63793 ac_status=$?
63794 grep -v '^ *+' conftest.er1 >conftest.err
63795 rm -f conftest.er1
63796 cat conftest.err >&5
63797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63798 - (exit $ac_status); } &&
63799 - { ac_try='test -z "$ac_c_werror_flag"
63800 - || test ! -s conftest.err'
63801 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63802 - (eval $ac_try) 2>&5
63803 - ac_status=$?
63804 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63805 - (exit $ac_status); }; } &&
63806 - { ac_try='test -s conftest$ac_exeext'
63807 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63808 - (eval $ac_try) 2>&5
63809 - ac_status=$?
63810 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63811 - (exit $ac_status); }; }; then
63812 + (exit $ac_status); } && {
63813 + test -z "$ac_c_werror_flag" ||
63814 + test ! -s conftest.err
63815 + } && test -s conftest$ac_exeext &&
63816 + $as_test_x conftest$ac_exeext; then
63817 eval "$as_ac_var=yes"
63818 else
63819 echo "$as_me: failed program was:" >&5
63820 sed 's/^/| /' conftest.$ac_ext >&5
63821
63822 -eval "$as_ac_var=no"
63823 + eval "$as_ac_var=no"
63824 fi
63825 -rm -f conftest.err conftest.$ac_objext \
63826 +
63827 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63828 conftest$ac_exeext conftest.$ac_ext
63829 fi
63830 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63831 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63832 +ac_res=`eval echo '${'$as_ac_var'}'`
63833 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63834 +echo "${ECHO_T}$ac_res" >&6; }
63835 if test `eval echo '${'$as_ac_var'}'` = yes; then
63836 cat >>confdefs.h <<_ACEOF
63837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63838 @@ -7719,8 +8302,8 @@ done
63839
63840 # Extract the first word of "gmsgfmt", so it can be a program name with args.
63841 set dummy gmsgfmt; ac_word=$2
63842 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63843 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63844 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63845 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63846 if test "${ac_cv_path_GMSGFMT+set}" = set; then
63847 echo $ECHO_N "(cached) $ECHO_C" >&6
63848 else
63849 @@ -7735,32 +8318,33 @@ do
63850 IFS=$as_save_IFS
63851 test -z "$as_dir" && as_dir=.
63852 for ac_exec_ext in '' $ac_executable_extensions; do
63853 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63854 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
63855 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
63856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
63857 break 2
63858 fi
63859 done
63860 done
63861 +IFS=$as_save_IFS
63862
63863 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
63864 ;;
63865 esac
63866 fi
63867 GMSGFMT=$ac_cv_path_GMSGFMT
63868 -
63869 if test -n "$GMSGFMT"; then
63870 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
63871 -echo "${ECHO_T}$GMSGFMT" >&6
63872 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
63873 +echo "${ECHO_T}$GMSGFMT" >&6; }
63874 else
63875 - echo "$as_me:$LINENO: result: no" >&5
63876 -echo "${ECHO_T}no" >&6
63877 + { echo "$as_me:$LINENO: result: no" >&5
63878 +echo "${ECHO_T}no" >&6; }
63879 fi
63880
63881 +
63882 # Extract the first word of "xgettext", so it can be a program name with args.
63883 set dummy xgettext; ac_word=$2
63884 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63885 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63886 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63887 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63888 if test "${ac_cv_path_XGETTEXT+set}" = set; then
63889 echo $ECHO_N "(cached) $ECHO_C" >&6
63890 else
63891 @@ -7786,11 +8370,11 @@ esac
63892 fi
63893 XGETTEXT="$ac_cv_path_XGETTEXT"
63894 if test -n "$XGETTEXT"; then
63895 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
63896 -echo "${ECHO_T}$XGETTEXT" >&6
63897 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
63898 +echo "${ECHO_T}$XGETTEXT" >&6; }
63899 else
63900 - echo "$as_me:$LINENO: result: no" >&5
63901 -echo "${ECHO_T}no" >&6
63902 + { echo "$as_me:$LINENO: result: no" >&5
63903 +echo "${ECHO_T}no" >&6; }
63904 fi
63905
63906 cat >conftest.$ac_ext <<_ACEOF
63907 @@ -7810,37 +8394,34 @@ extern int _nl_msg_cat_cntr;
63908 }
63909 _ACEOF
63910 rm -f conftest.$ac_objext conftest$ac_exeext
63911 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63912 - (eval $ac_link) 2>conftest.er1
63913 +if { (ac_try="$ac_link"
63914 +case "(($ac_try" in
63915 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63916 + *) ac_try_echo=$ac_try;;
63917 +esac
63918 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63919 + (eval "$ac_link") 2>conftest.er1
63920 ac_status=$?
63921 grep -v '^ *+' conftest.er1 >conftest.err
63922 rm -f conftest.er1
63923 cat conftest.err >&5
63924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63925 - (exit $ac_status); } &&
63926 - { ac_try='test -z "$ac_c_werror_flag"
63927 - || test ! -s conftest.err'
63928 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63929 - (eval $ac_try) 2>&5
63930 - ac_status=$?
63931 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63932 - (exit $ac_status); }; } &&
63933 - { ac_try='test -s conftest$ac_exeext'
63934 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63935 - (eval $ac_try) 2>&5
63936 - ac_status=$?
63937 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63938 - (exit $ac_status); }; }; then
63939 + (exit $ac_status); } && {
63940 + test -z "$ac_c_werror_flag" ||
63941 + test ! -s conftest.err
63942 + } && test -s conftest$ac_exeext &&
63943 + $as_test_x conftest$ac_exeext; then
63944 CATOBJEXT=.gmo
63945 DATADIRNAME=share
63946 else
63947 echo "$as_me: failed program was:" >&5
63948 sed 's/^/| /' conftest.$ac_ext >&5
63949
63950 -CATOBJEXT=.mo
63951 + CATOBJEXT=.mo
63952 DATADIRNAME=lib
63953 fi
63954 -rm -f conftest.err conftest.$ac_objext \
63955 +
63956 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63957 conftest$ac_exeext conftest.$ac_ext
63958 INSTOBJEXT=.mo
63959 fi
63960 @@ -7862,8 +8443,8 @@ fi
63961 INTLOBJS="\$(GETTOBJS)"
63962 # Extract the first word of "msgfmt", so it can be a program name with args.
63963 set dummy msgfmt; ac_word=$2
63964 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63965 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63966 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63967 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63968 if test "${ac_cv_path_MSGFMT+set}" = set; then
63969 echo $ECHO_N "(cached) $ECHO_C" >&6
63970 else
63971 @@ -7889,17 +8470,17 @@ esac
63972 fi
63973 MSGFMT="$ac_cv_path_MSGFMT"
63974 if test -n "$MSGFMT"; then
63975 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
63976 -echo "${ECHO_T}$MSGFMT" >&6
63977 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
63978 +echo "${ECHO_T}$MSGFMT" >&6; }
63979 else
63980 - echo "$as_me:$LINENO: result: no" >&5
63981 -echo "${ECHO_T}no" >&6
63982 + { echo "$as_me:$LINENO: result: no" >&5
63983 +echo "${ECHO_T}no" >&6; }
63984 fi
63985
63986 # Extract the first word of "gmsgfmt", so it can be a program name with args.
63987 set dummy gmsgfmt; ac_word=$2
63988 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63989 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63990 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63991 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63992 if test "${ac_cv_path_GMSGFMT+set}" = set; then
63993 echo $ECHO_N "(cached) $ECHO_C" >&6
63994 else
63995 @@ -7914,32 +8495,33 @@ do
63996 IFS=$as_save_IFS
63997 test -z "$as_dir" && as_dir=.
63998 for ac_exec_ext in '' $ac_executable_extensions; do
63999 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64000 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64001 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
64002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
64003 break 2
64004 fi
64005 done
64006 done
64007 +IFS=$as_save_IFS
64008
64009 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
64010 ;;
64011 esac
64012 fi
64013 GMSGFMT=$ac_cv_path_GMSGFMT
64014 -
64015 if test -n "$GMSGFMT"; then
64016 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
64017 -echo "${ECHO_T}$GMSGFMT" >&6
64018 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
64019 +echo "${ECHO_T}$GMSGFMT" >&6; }
64020 else
64021 - echo "$as_me:$LINENO: result: no" >&5
64022 -echo "${ECHO_T}no" >&6
64023 + { echo "$as_me:$LINENO: result: no" >&5
64024 +echo "${ECHO_T}no" >&6; }
64025 fi
64026
64027 +
64028 # Extract the first word of "xgettext", so it can be a program name with args.
64029 set dummy xgettext; ac_word=$2
64030 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64031 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64032 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64033 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64034 if test "${ac_cv_path_XGETTEXT+set}" = set; then
64035 echo $ECHO_N "(cached) $ECHO_C" >&6
64036 else
64037 @@ -7965,11 +8547,11 @@ esac
64038 fi
64039 XGETTEXT="$ac_cv_path_XGETTEXT"
64040 if test -n "$XGETTEXT"; then
64041 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
64042 -echo "${ECHO_T}$XGETTEXT" >&6
64043 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
64044 +echo "${ECHO_T}$XGETTEXT" >&6; }
64045 else
64046 - echo "$as_me:$LINENO: result: no" >&5
64047 -echo "${ECHO_T}no" >&6
64048 + { echo "$as_me:$LINENO: result: no" >&5
64049 +echo "${ECHO_T}no" >&6; }
64050 fi
64051
64052
64053 @@ -7988,8 +8570,8 @@ fi
64054 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
64055 : ;
64056 else
64057 - echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
64058 -echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
64059 + { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
64060 +echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
64061 XGETTEXT=":"
64062 fi
64063 fi
64064 @@ -8038,8 +8620,8 @@ _ACEOF
64065 if test "x$ALL_LINGUAS" = "x"; then
64066 LINGUAS=
64067 else
64068 - echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
64069 -echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
64070 + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
64071 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
64072 NEW_LINGUAS=
64073 for lang in ${LINGUAS=$ALL_LINGUAS}; do
64074 case "$ALL_LINGUAS" in
64075 @@ -8047,8 +8629,8 @@ echo $ECHO_N "checking for catalogs to b
64076 esac
64077 done
64078 LINGUAS=$NEW_LINGUAS
64079 - echo "$as_me:$LINENO: result: $LINGUAS" >&5
64080 -echo "${ECHO_T}$LINGUAS" >&6
64081 + { echo "$as_me:$LINENO: result: $LINGUAS" >&5
64082 +echo "${ECHO_T}$LINGUAS" >&6; }
64083 fi
64084
64085 if test -n "$LINGUAS"; then
64086 @@ -8067,17 +8649,17 @@ echo "${ECHO_T}$LINGUAS" >&6
64087 if test -f $srcdir/po2tbl.sed.in; then
64088 if test "$CATOBJEXT" = ".cat"; then
64089 if test "${ac_cv_header_linux_version_h+set}" = set; then
64090 - echo "$as_me:$LINENO: checking for linux/version.h" >&5
64091 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
64092 + { echo "$as_me:$LINENO: checking for linux/version.h" >&5
64093 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
64094 if test "${ac_cv_header_linux_version_h+set}" = set; then
64095 echo $ECHO_N "(cached) $ECHO_C" >&6
64096 fi
64097 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64098 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
64099 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64100 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
64101 else
64102 # Is the header compilable?
64103 -echo "$as_me:$LINENO: checking linux/version.h usability" >&5
64104 -echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
64105 +{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
64106 +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
64107 cat >conftest.$ac_ext <<_ACEOF
64108 /* confdefs.h. */
64109 _ACEOF
64110 @@ -8088,41 +8670,37 @@ $ac_includes_default
64111 #include <linux/version.h>
64112 _ACEOF
64113 rm -f conftest.$ac_objext
64114 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64115 - (eval $ac_compile) 2>conftest.er1
64116 +if { (ac_try="$ac_compile"
64117 +case "(($ac_try" in
64118 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64119 + *) ac_try_echo=$ac_try;;
64120 +esac
64121 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64122 + (eval "$ac_compile") 2>conftest.er1
64123 ac_status=$?
64124 grep -v '^ *+' conftest.er1 >conftest.err
64125 rm -f conftest.er1
64126 cat conftest.err >&5
64127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64128 - (exit $ac_status); } &&
64129 - { ac_try='test -z "$ac_c_werror_flag"
64130 - || test ! -s conftest.err'
64131 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64132 - (eval $ac_try) 2>&5
64133 - ac_status=$?
64134 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64135 - (exit $ac_status); }; } &&
64136 - { ac_try='test -s conftest.$ac_objext'
64137 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64138 - (eval $ac_try) 2>&5
64139 - ac_status=$?
64140 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64141 - (exit $ac_status); }; }; then
64142 + (exit $ac_status); } && {
64143 + test -z "$ac_c_werror_flag" ||
64144 + test ! -s conftest.err
64145 + } && test -s conftest.$ac_objext; then
64146 ac_header_compiler=yes
64147 else
64148 echo "$as_me: failed program was:" >&5
64149 sed 's/^/| /' conftest.$ac_ext >&5
64150
64151 -ac_header_compiler=no
64152 + ac_header_compiler=no
64153 fi
64154 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64155 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64156 -echo "${ECHO_T}$ac_header_compiler" >&6
64157 +
64158 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64159 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64160 +echo "${ECHO_T}$ac_header_compiler" >&6; }
64161
64162 # Is the header present?
64163 -echo "$as_me:$LINENO: checking linux/version.h presence" >&5
64164 -echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
64165 +{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
64166 +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
64167 cat >conftest.$ac_ext <<_ACEOF
64168 /* confdefs.h. */
64169 _ACEOF
64170 @@ -8131,24 +8709,22 @@ cat >>conftest.$ac_ext <<_ACEOF
64171 /* end confdefs.h. */
64172 #include <linux/version.h>
64173 _ACEOF
64174 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64175 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64176 +if { (ac_try="$ac_cpp conftest.$ac_ext"
64177 +case "(($ac_try" in
64178 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64179 + *) ac_try_echo=$ac_try;;
64180 +esac
64181 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64182 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
64183 ac_status=$?
64184 grep -v '^ *+' conftest.er1 >conftest.err
64185 rm -f conftest.er1
64186 cat conftest.err >&5
64187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64188 - (exit $ac_status); } >/dev/null; then
64189 - if test -s conftest.err; then
64190 - ac_cpp_err=$ac_c_preproc_warn_flag
64191 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64192 - else
64193 - ac_cpp_err=
64194 - fi
64195 -else
64196 - ac_cpp_err=yes
64197 -fi
64198 -if test -z "$ac_cpp_err"; then
64199 + (exit $ac_status); } >/dev/null && {
64200 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
64201 + test ! -s conftest.err
64202 + }; then
64203 ac_header_preproc=yes
64204 else
64205 echo "$as_me: failed program was:" >&5
64206 @@ -8156,9 +8732,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
64207
64208 ac_header_preproc=no
64209 fi
64210 +
64211 rm -f conftest.err conftest.$ac_ext
64212 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64213 -echo "${ECHO_T}$ac_header_preproc" >&6
64214 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64215 +echo "${ECHO_T}$ac_header_preproc" >&6; }
64216
64217 # So? What about this header?
64218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64219 @@ -8182,25 +8759,18 @@ echo "$as_me: WARNING: linux/version.h:
64220 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
64221 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
64222 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
64223 - (
64224 - cat <<\_ASBOX
64225 -## ------------------------------------------ ##
64226 -## Report this to the AC_PACKAGE_NAME lists. ##
64227 -## ------------------------------------------ ##
64228 -_ASBOX
64229 - ) |
64230 - sed "s/^/$as_me: WARNING: /" >&2
64231 +
64232 ;;
64233 esac
64234 -echo "$as_me:$LINENO: checking for linux/version.h" >&5
64235 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
64236 +{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
64237 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
64238 if test "${ac_cv_header_linux_version_h+set}" = set; then
64239 echo $ECHO_N "(cached) $ECHO_C" >&6
64240 else
64241 ac_cv_header_linux_version_h=$ac_header_preproc
64242 fi
64243 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64244 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
64245 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64246 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
64247
64248 fi
64249 if test $ac_cv_header_linux_version_h = yes; then
64250 @@ -8256,8 +8826,8 @@ for ac_prog in 'bison -y' byacc
64251 do
64252 # Extract the first word of "$ac_prog", so it can be a program name with args.
64253 set dummy $ac_prog; ac_word=$2
64254 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64255 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64256 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64257 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64258 if test "${ac_cv_prog_YACC+set}" = set; then
64259 echo $ECHO_N "(cached) $ECHO_C" >&6
64260 else
64261 @@ -8270,25 +8840,27 @@ do
64262 IFS=$as_save_IFS
64263 test -z "$as_dir" && as_dir=.
64264 for ac_exec_ext in '' $ac_executable_extensions; do
64265 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64266 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64267 ac_cv_prog_YACC="$ac_prog"
64268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
64269 break 2
64270 fi
64271 done
64272 done
64273 +IFS=$as_save_IFS
64274
64275 fi
64276 fi
64277 YACC=$ac_cv_prog_YACC
64278 if test -n "$YACC"; then
64279 - echo "$as_me:$LINENO: result: $YACC" >&5
64280 -echo "${ECHO_T}$YACC" >&6
64281 + { echo "$as_me:$LINENO: result: $YACC" >&5
64282 +echo "${ECHO_T}$YACC" >&6; }
64283 else
64284 - echo "$as_me:$LINENO: result: no" >&5
64285 -echo "${ECHO_T}no" >&6
64286 + { echo "$as_me:$LINENO: result: no" >&5
64287 +echo "${ECHO_T}no" >&6; }
64288 fi
64289
64290 +
64291 test -n "$YACC" && break
64292 done
64293 test -n "$YACC" || YACC="yacc"
64294 @@ -8297,8 +8869,8 @@ for ac_prog in flex lex
64295 do
64296 # Extract the first word of "$ac_prog", so it can be a program name with args.
64297 set dummy $ac_prog; ac_word=$2
64298 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64299 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64300 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64301 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64302 if test "${ac_cv_prog_LEX+set}" = set; then
64303 echo $ECHO_N "(cached) $ECHO_C" >&6
64304 else
64305 @@ -8311,253 +8883,182 @@ do
64306 IFS=$as_save_IFS
64307 test -z "$as_dir" && as_dir=.
64308 for ac_exec_ext in '' $ac_executable_extensions; do
64309 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64310 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64311 ac_cv_prog_LEX="$ac_prog"
64312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
64313 break 2
64314 fi
64315 done
64316 done
64317 +IFS=$as_save_IFS
64318
64319 fi
64320 fi
64321 LEX=$ac_cv_prog_LEX
64322 if test -n "$LEX"; then
64323 - echo "$as_me:$LINENO: result: $LEX" >&5
64324 -echo "${ECHO_T}$LEX" >&6
64325 + { echo "$as_me:$LINENO: result: $LEX" >&5
64326 +echo "${ECHO_T}$LEX" >&6; }
64327 else
64328 - echo "$as_me:$LINENO: result: no" >&5
64329 -echo "${ECHO_T}no" >&6
64330 + { echo "$as_me:$LINENO: result: no" >&5
64331 +echo "${ECHO_T}no" >&6; }
64332 fi
64333
64334 +
64335 test -n "$LEX" && break
64336 done
64337 test -n "$LEX" || LEX=":"
64338
64339 -if test -z "$LEXLIB"
64340 -then
64341 - echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
64342 -echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
64343 -if test "${ac_cv_lib_fl_yywrap+set}" = set; then
64344 - echo $ECHO_N "(cached) $ECHO_C" >&6
64345 -else
64346 - ac_check_lib_save_LIBS=$LIBS
64347 -LIBS="-lfl $LIBS"
64348 -cat >conftest.$ac_ext <<_ACEOF
64349 -/* confdefs.h. */
64350 -_ACEOF
64351 -cat confdefs.h >>conftest.$ac_ext
64352 -cat >>conftest.$ac_ext <<_ACEOF
64353 -/* end confdefs.h. */
64354 -
64355 -/* Override any gcc2 internal prototype to avoid an error. */
64356 -#ifdef __cplusplus
64357 -extern "C"
64358 +if test "x$LEX" != "x:"; then
64359 + cat >conftest.l <<_ACEOF
64360 +%%
64361 +a { ECHO; }
64362 +b { REJECT; }
64363 +c { yymore (); }
64364 +d { yyless (1); }
64365 +e { yyless (input () != 0); }
64366 +f { unput (yytext[0]); }
64367 +. { BEGIN INITIAL; }
64368 +%%
64369 +#ifdef YYTEXT_POINTER
64370 +extern char *yytext;
64371 #endif
64372 -/* We use char because int might match the return type of a gcc2
64373 - builtin and then its argument prototype would still apply. */
64374 -char yywrap ();
64375 int
64376 -main ()
64377 +main (void)
64378 {
64379 -yywrap ();
64380 - ;
64381 - return 0;
64382 + return ! yylex () + ! yywrap ();
64383 }
64384 _ACEOF
64385 -rm -f conftest.$ac_objext conftest$ac_exeext
64386 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64387 - (eval $ac_link) 2>conftest.er1
64388 - ac_status=$?
64389 - grep -v '^ *+' conftest.er1 >conftest.err
64390 - rm -f conftest.er1
64391 - cat conftest.err >&5
64392 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64393 - (exit $ac_status); } &&
64394 - { ac_try='test -z "$ac_c_werror_flag"
64395 - || test ! -s conftest.err'
64396 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64397 - (eval $ac_try) 2>&5
64398 - ac_status=$?
64399 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64400 - (exit $ac_status); }; } &&
64401 - { ac_try='test -s conftest$ac_exeext'
64402 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64403 - (eval $ac_try) 2>&5
64404 +{ (ac_try="$LEX conftest.l"
64405 +case "(($ac_try" in
64406 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64407 + *) ac_try_echo=$ac_try;;
64408 +esac
64409 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64410 + (eval "$LEX conftest.l") 2>&5
64411 ac_status=$?
64412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64413 - (exit $ac_status); }; }; then
64414 - ac_cv_lib_fl_yywrap=yes
64415 + (exit $ac_status); }
64416 +{ echo "$as_me:$LINENO: checking lex output file root" >&5
64417 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
64418 +if test "${ac_cv_prog_lex_root+set}" = set; then
64419 + echo $ECHO_N "(cached) $ECHO_C" >&6
64420 else
64421 - echo "$as_me: failed program was:" >&5
64422 -sed 's/^/| /' conftest.$ac_ext >&5
64423
64424 -ac_cv_lib_fl_yywrap=no
64425 +if test -f lex.yy.c; then
64426 + ac_cv_prog_lex_root=lex.yy
64427 +elif test -f lexyy.c; then
64428 + ac_cv_prog_lex_root=lexyy
64429 +else
64430 + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
64431 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
64432 + { (exit 1); exit 1; }; }
64433 fi
64434 -rm -f conftest.err conftest.$ac_objext \
64435 - conftest$ac_exeext conftest.$ac_ext
64436 -LIBS=$ac_check_lib_save_LIBS
64437 fi
64438 -echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
64439 -echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
64440 -if test $ac_cv_lib_fl_yywrap = yes; then
64441 - LEXLIB="-lfl"
64442 -else
64443 - echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
64444 -echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
64445 -if test "${ac_cv_lib_l_yywrap+set}" = set; then
64446 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
64447 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
64448 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
64449 +
64450 +if test -z "${LEXLIB+set}"; then
64451 + { echo "$as_me:$LINENO: checking lex library" >&5
64452 +echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
64453 +if test "${ac_cv_lib_lex+set}" = set; then
64454 echo $ECHO_N "(cached) $ECHO_C" >&6
64455 else
64456 - ac_check_lib_save_LIBS=$LIBS
64457 -LIBS="-ll $LIBS"
64458 -cat >conftest.$ac_ext <<_ACEOF
64459 -/* confdefs.h. */
64460 -_ACEOF
64461 -cat confdefs.h >>conftest.$ac_ext
64462 -cat >>conftest.$ac_ext <<_ACEOF
64463 -/* end confdefs.h. */
64464
64465 -/* Override any gcc2 internal prototype to avoid an error. */
64466 -#ifdef __cplusplus
64467 -extern "C"
64468 -#endif
64469 -/* We use char because int might match the return type of a gcc2
64470 - builtin and then its argument prototype would still apply. */
64471 -char yywrap ();
64472 -int
64473 -main ()
64474 -{
64475 -yywrap ();
64476 - ;
64477 - return 0;
64478 -}
64479 + ac_save_LIBS=$LIBS
64480 + ac_cv_lib_lex='none needed'
64481 + for ac_lib in '' -lfl -ll; do
64482 + LIBS="$ac_lib $ac_save_LIBS"
64483 + cat >conftest.$ac_ext <<_ACEOF
64484 +`cat $LEX_OUTPUT_ROOT.c`
64485 _ACEOF
64486 rm -f conftest.$ac_objext conftest$ac_exeext
64487 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64488 - (eval $ac_link) 2>conftest.er1
64489 +if { (ac_try="$ac_link"
64490 +case "(($ac_try" in
64491 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64492 + *) ac_try_echo=$ac_try;;
64493 +esac
64494 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64495 + (eval "$ac_link") 2>conftest.er1
64496 ac_status=$?
64497 grep -v '^ *+' conftest.er1 >conftest.err
64498 rm -f conftest.er1
64499 cat conftest.err >&5
64500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64501 - (exit $ac_status); } &&
64502 - { ac_try='test -z "$ac_c_werror_flag"
64503 - || test ! -s conftest.err'
64504 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64505 - (eval $ac_try) 2>&5
64506 - ac_status=$?
64507 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64508 - (exit $ac_status); }; } &&
64509 - { ac_try='test -s conftest$ac_exeext'
64510 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64511 - (eval $ac_try) 2>&5
64512 - ac_status=$?
64513 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64514 - (exit $ac_status); }; }; then
64515 - ac_cv_lib_l_yywrap=yes
64516 + (exit $ac_status); } && {
64517 + test -z "$ac_c_werror_flag" ||
64518 + test ! -s conftest.err
64519 + } && test -s conftest$ac_exeext &&
64520 + $as_test_x conftest$ac_exeext; then
64521 + ac_cv_lib_lex=$ac_lib
64522 else
64523 echo "$as_me: failed program was:" >&5
64524 sed 's/^/| /' conftest.$ac_ext >&5
64525
64526 -ac_cv_lib_l_yywrap=no
64527 -fi
64528 -rm -f conftest.err conftest.$ac_objext \
64529 - conftest$ac_exeext conftest.$ac_ext
64530 -LIBS=$ac_check_lib_save_LIBS
64531 -fi
64532 -echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
64533 -echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
64534 -if test $ac_cv_lib_l_yywrap = yes; then
64535 - LEXLIB="-ll"
64536 -fi
64537
64538 fi
64539
64540 -fi
64541 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64542 + conftest$ac_exeext conftest.$ac_ext
64543 + test "$ac_cv_lib_lex" != 'none needed' && break
64544 + done
64545 + LIBS=$ac_save_LIBS
64546
64547 -if test "x$LEX" != "x:"; then
64548 - echo "$as_me:$LINENO: checking lex output file root" >&5
64549 -echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
64550 -if test "${ac_cv_prog_lex_root+set}" = set; then
64551 - echo $ECHO_N "(cached) $ECHO_C" >&6
64552 -else
64553 - # The minimal lex program is just a single line: %%. But some broken lexes
64554 -# (Solaris, I think it was) want two %% lines, so accommodate them.
64555 -cat >conftest.l <<_ACEOF
64556 -%%
64557 -%%
64558 -_ACEOF
64559 -{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
64560 - (eval $LEX conftest.l) 2>&5
64561 - ac_status=$?
64562 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64563 - (exit $ac_status); }
64564 -if test -f lex.yy.c; then
64565 - ac_cv_prog_lex_root=lex.yy
64566 -elif test -f lexyy.c; then
64567 - ac_cv_prog_lex_root=lexyy
64568 -else
64569 - { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
64570 -echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
64571 - { (exit 1); exit 1; }; }
64572 fi
64573 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
64574 +echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
64575 + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
64576 fi
64577 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
64578 -echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
64579 -rm -f conftest.l
64580 -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
64581
64582 -echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
64583 -echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
64584 +
64585 +{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
64586 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
64587 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
64588 echo $ECHO_N "(cached) $ECHO_C" >&6
64589 else
64590 # POSIX says lex can declare yytext either as a pointer or an array; the
64591 -# default is implementation-dependent. Figure out which it is, since
64592 +# default is implementation-dependent. Figure out which it is, since
64593 # not all implementations provide the %pointer and %array declarations.
64594 ac_cv_prog_lex_yytext_pointer=no
64595 -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
64596 ac_save_LIBS=$LIBS
64597 -LIBS="$LIBS $LEXLIB"
64598 +LIBS="$LEXLIB $ac_save_LIBS"
64599 cat >conftest.$ac_ext <<_ACEOF
64600 +#define YYTEXT_POINTER 1
64601 `cat $LEX_OUTPUT_ROOT.c`
64602 _ACEOF
64603 rm -f conftest.$ac_objext conftest$ac_exeext
64604 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64605 - (eval $ac_link) 2>conftest.er1
64606 +if { (ac_try="$ac_link"
64607 +case "(($ac_try" in
64608 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64609 + *) ac_try_echo=$ac_try;;
64610 +esac
64611 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64612 + (eval "$ac_link") 2>conftest.er1
64613 ac_status=$?
64614 grep -v '^ *+' conftest.er1 >conftest.err
64615 rm -f conftest.er1
64616 cat conftest.err >&5
64617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64618 - (exit $ac_status); } &&
64619 - { ac_try='test -z "$ac_c_werror_flag"
64620 - || test ! -s conftest.err'
64621 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64622 - (eval $ac_try) 2>&5
64623 - ac_status=$?
64624 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64625 - (exit $ac_status); }; } &&
64626 - { ac_try='test -s conftest$ac_exeext'
64627 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64628 - (eval $ac_try) 2>&5
64629 - ac_status=$?
64630 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64631 - (exit $ac_status); }; }; then
64632 + (exit $ac_status); } && {
64633 + test -z "$ac_c_werror_flag" ||
64634 + test ! -s conftest.err
64635 + } && test -s conftest$ac_exeext &&
64636 + $as_test_x conftest$ac_exeext; then
64637 ac_cv_prog_lex_yytext_pointer=yes
64638 else
64639 echo "$as_me: failed program was:" >&5
64640 sed 's/^/| /' conftest.$ac_ext >&5
64641
64642 +
64643 fi
64644 -rm -f conftest.err conftest.$ac_objext \
64645 +
64646 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64647 conftest$ac_exeext conftest.$ac_ext
64648 LIBS=$ac_save_LIBS
64649 -rm -f "${LEX_OUTPUT_ROOT}.c"
64650
64651 fi
64652 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
64653 -echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
64654 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
64655 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
64656 if test $ac_cv_prog_lex_yytext_pointer = yes; then
64657
64658 cat >>confdefs.h <<\_ACEOF
64659 @@ -8565,23 +9066,24 @@ cat >>confdefs.h <<\_ACEOF
64660 _ACEOF
64661
64662 fi
64663 +rm -f conftest.l $LEX_OUTPUT_ROOT.c
64664
64665 fi
64666 if test "$LEX" = :; then
64667 LEX=${am_missing_run}flex
64668 fi
64669
64670 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
64671 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
64672 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
64673 +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
64674 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
64675 + # Check whether --enable-maintainer-mode was given.
64676 if test "${enable_maintainer_mode+set}" = set; then
64677 - enableval="$enable_maintainer_mode"
64678 - USE_MAINTAINER_MODE=$enableval
64679 + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
64680 else
64681 USE_MAINTAINER_MODE=no
64682 -fi;
64683 - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
64684 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
64685 +fi
64686 +
64687 + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
64688 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
64689
64690
64691 if test $USE_MAINTAINER_MODE = yes; then
64692 @@ -8611,18 +9113,19 @@ fi
64693 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h
64694 do
64695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64696 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
64697 - echo "$as_me:$LINENO: checking for $ac_header" >&5
64698 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64699 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
64700 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64701 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
64702 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
64703 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64704 echo $ECHO_N "(cached) $ECHO_C" >&6
64705 fi
64706 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64707 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64708 +ac_res=`eval echo '${'$as_ac_Header'}'`
64709 + { echo "$as_me:$LINENO: result: $ac_res" >&5
64710 +echo "${ECHO_T}$ac_res" >&6; }
64711 else
64712 # Is the header compilable?
64713 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
64714 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64715 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
64716 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
64717 cat >conftest.$ac_ext <<_ACEOF
64718 /* confdefs.h. */
64719 _ACEOF
64720 @@ -8633,41 +9136,37 @@ $ac_includes_default
64721 #include <$ac_header>
64722 _ACEOF
64723 rm -f conftest.$ac_objext
64724 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64725 - (eval $ac_compile) 2>conftest.er1
64726 +if { (ac_try="$ac_compile"
64727 +case "(($ac_try" in
64728 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64729 + *) ac_try_echo=$ac_try;;
64730 +esac
64731 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64732 + (eval "$ac_compile") 2>conftest.er1
64733 ac_status=$?
64734 grep -v '^ *+' conftest.er1 >conftest.err
64735 rm -f conftest.er1
64736 cat conftest.err >&5
64737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64738 - (exit $ac_status); } &&
64739 - { ac_try='test -z "$ac_c_werror_flag"
64740 - || test ! -s conftest.err'
64741 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64742 - (eval $ac_try) 2>&5
64743 - ac_status=$?
64744 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64745 - (exit $ac_status); }; } &&
64746 - { ac_try='test -s conftest.$ac_objext'
64747 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64748 - (eval $ac_try) 2>&5
64749 - ac_status=$?
64750 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64751 - (exit $ac_status); }; }; then
64752 + (exit $ac_status); } && {
64753 + test -z "$ac_c_werror_flag" ||
64754 + test ! -s conftest.err
64755 + } && test -s conftest.$ac_objext; then
64756 ac_header_compiler=yes
64757 else
64758 echo "$as_me: failed program was:" >&5
64759 sed 's/^/| /' conftest.$ac_ext >&5
64760
64761 -ac_header_compiler=no
64762 + ac_header_compiler=no
64763 fi
64764 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64765 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64766 -echo "${ECHO_T}$ac_header_compiler" >&6
64767 +
64768 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64769 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64770 +echo "${ECHO_T}$ac_header_compiler" >&6; }
64771
64772 # Is the header present?
64773 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
64774 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64775 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
64776 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
64777 cat >conftest.$ac_ext <<_ACEOF
64778 /* confdefs.h. */
64779 _ACEOF
64780 @@ -8676,24 +9175,22 @@ cat >>conftest.$ac_ext <<_ACEOF
64781 /* end confdefs.h. */
64782 #include <$ac_header>
64783 _ACEOF
64784 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64785 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64786 +if { (ac_try="$ac_cpp conftest.$ac_ext"
64787 +case "(($ac_try" in
64788 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64789 + *) ac_try_echo=$ac_try;;
64790 +esac
64791 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64792 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
64793 ac_status=$?
64794 grep -v '^ *+' conftest.er1 >conftest.err
64795 rm -f conftest.er1
64796 cat conftest.err >&5
64797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64798 - (exit $ac_status); } >/dev/null; then
64799 - if test -s conftest.err; then
64800 - ac_cpp_err=$ac_c_preproc_warn_flag
64801 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64802 - else
64803 - ac_cpp_err=
64804 - fi
64805 -else
64806 - ac_cpp_err=yes
64807 -fi
64808 -if test -z "$ac_cpp_err"; then
64809 + (exit $ac_status); } >/dev/null && {
64810 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
64811 + test ! -s conftest.err
64812 + }; then
64813 ac_header_preproc=yes
64814 else
64815 echo "$as_me: failed program was:" >&5
64816 @@ -8701,9 +9198,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
64817
64818 ac_header_preproc=no
64819 fi
64820 +
64821 rm -f conftest.err conftest.$ac_ext
64822 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64823 -echo "${ECHO_T}$ac_header_preproc" >&6
64824 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64825 +echo "${ECHO_T}$ac_header_preproc" >&6; }
64826
64827 # So? What about this header?
64828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64829 @@ -8727,25 +9225,19 @@ echo "$as_me: WARNING: $ac_header: s
64830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64833 - (
64834 - cat <<\_ASBOX
64835 -## ------------------------------------------ ##
64836 -## Report this to the AC_PACKAGE_NAME lists. ##
64837 -## ------------------------------------------ ##
64838 -_ASBOX
64839 - ) |
64840 - sed "s/^/$as_me: WARNING: /" >&2
64841 +
64842 ;;
64843 esac
64844 -echo "$as_me:$LINENO: checking for $ac_header" >&5
64845 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64846 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
64847 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
64848 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
64849 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64850 echo $ECHO_N "(cached) $ECHO_C" >&6
64851 else
64852 eval "$as_ac_Header=\$ac_header_preproc"
64853 fi
64854 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64855 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64856 +ac_res=`eval echo '${'$as_ac_Header'}'`
64857 + { echo "$as_me:$LINENO: result: $ac_res" >&5
64858 +echo "${ECHO_T}$ac_res" >&6; }
64859
64860 fi
64861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64862 @@ -8763,9 +9255,9 @@ done
64863 for ac_func in sbrk realpath glob
64864 do
64865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64866 -echo "$as_me:$LINENO: checking for $ac_func" >&5
64867 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64868 -if eval "test \"\${$as_ac_var+set}\" = set"; then
64869 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
64870 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64871 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64872 echo $ECHO_N "(cached) $ECHO_C" >&6
64873 else
64874 cat >conftest.$ac_ext <<_ACEOF
64875 @@ -8791,68 +9283,60 @@ cat >>conftest.$ac_ext <<_ACEOF
64876
64877 #undef $ac_func
64878
64879 -/* Override any gcc2 internal prototype to avoid an error. */
64880 +/* Override any GCC internal prototype to avoid an error.
64881 + Use char because int might match the return type of a GCC
64882 + builtin and then its argument prototype would still apply. */
64883 #ifdef __cplusplus
64884 extern "C"
64885 -{
64886 #endif
64887 -/* We use char because int might match the return type of a gcc2
64888 - builtin and then its argument prototype would still apply. */
64889 char $ac_func ();
64890 /* The GNU C library defines this for functions which it implements
64891 to always fail with ENOSYS. Some functions are actually named
64892 something starting with __ and the normal name is an alias. */
64893 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64894 +#if defined __stub_$ac_func || defined __stub___$ac_func
64895 choke me
64896 -#else
64897 -char (*f) () = $ac_func;
64898 -#endif
64899 -#ifdef __cplusplus
64900 -}
64901 #endif
64902
64903 int
64904 main ()
64905 {
64906 -return f != $ac_func;
64907 +return $ac_func ();
64908 ;
64909 return 0;
64910 }
64911 _ACEOF
64912 rm -f conftest.$ac_objext conftest$ac_exeext
64913 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64914 - (eval $ac_link) 2>conftest.er1
64915 +if { (ac_try="$ac_link"
64916 +case "(($ac_try" in
64917 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64918 + *) ac_try_echo=$ac_try;;
64919 +esac
64920 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64921 + (eval "$ac_link") 2>conftest.er1
64922 ac_status=$?
64923 grep -v '^ *+' conftest.er1 >conftest.err
64924 rm -f conftest.er1
64925 cat conftest.err >&5
64926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64927 - (exit $ac_status); } &&
64928 - { ac_try='test -z "$ac_c_werror_flag"
64929 - || test ! -s conftest.err'
64930 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64931 - (eval $ac_try) 2>&5
64932 - ac_status=$?
64933 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64934 - (exit $ac_status); }; } &&
64935 - { ac_try='test -s conftest$ac_exeext'
64936 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64937 - (eval $ac_try) 2>&5
64938 - ac_status=$?
64939 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64940 - (exit $ac_status); }; }; then
64941 + (exit $ac_status); } && {
64942 + test -z "$ac_c_werror_flag" ||
64943 + test ! -s conftest.err
64944 + } && test -s conftest$ac_exeext &&
64945 + $as_test_x conftest$ac_exeext; then
64946 eval "$as_ac_var=yes"
64947 else
64948 echo "$as_me: failed program was:" >&5
64949 sed 's/^/| /' conftest.$ac_ext >&5
64950
64951 -eval "$as_ac_var=no"
64952 + eval "$as_ac_var=no"
64953 fi
64954 -rm -f conftest.err conftest.$ac_objext \
64955 +
64956 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64957 conftest$ac_exeext conftest.$ac_ext
64958 fi
64959 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64960 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64961 +ac_res=`eval echo '${'$as_ac_var'}'`
64962 + { echo "$as_me:$LINENO: result: $ac_res" >&5
64963 +echo "${ECHO_T}$ac_res" >&6; }
64964 if test `eval echo '${'$as_ac_var'}'` = yes; then
64965 cat >>confdefs.h <<_ACEOF
64966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64967 @@ -8869,9 +9353,9 @@ done
64968 ac_header_dirent=no
64969 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
64970 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
64971 -echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
64972 -echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
64973 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
64974 +{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
64975 +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
64976 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64977 echo $ECHO_N "(cached) $ECHO_C" >&6
64978 else
64979 cat >conftest.$ac_ext <<_ACEOF
64980 @@ -8893,38 +9377,35 @@ return 0;
64981 }
64982 _ACEOF
64983 rm -f conftest.$ac_objext
64984 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64985 - (eval $ac_compile) 2>conftest.er1
64986 +if { (ac_try="$ac_compile"
64987 +case "(($ac_try" in
64988 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64989 + *) ac_try_echo=$ac_try;;
64990 +esac
64991 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64992 + (eval "$ac_compile") 2>conftest.er1
64993 ac_status=$?
64994 grep -v '^ *+' conftest.er1 >conftest.err
64995 rm -f conftest.er1
64996 cat conftest.err >&5
64997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64998 - (exit $ac_status); } &&
64999 - { ac_try='test -z "$ac_c_werror_flag"
65000 - || test ! -s conftest.err'
65001 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65002 - (eval $ac_try) 2>&5
65003 - ac_status=$?
65004 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65005 - (exit $ac_status); }; } &&
65006 - { ac_try='test -s conftest.$ac_objext'
65007 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65008 - (eval $ac_try) 2>&5
65009 - ac_status=$?
65010 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65011 - (exit $ac_status); }; }; then
65012 + (exit $ac_status); } && {
65013 + test -z "$ac_c_werror_flag" ||
65014 + test ! -s conftest.err
65015 + } && test -s conftest.$ac_objext; then
65016 eval "$as_ac_Header=yes"
65017 else
65018 echo "$as_me: failed program was:" >&5
65019 sed 's/^/| /' conftest.$ac_ext >&5
65020
65021 -eval "$as_ac_Header=no"
65022 + eval "$as_ac_Header=no"
65023 fi
65024 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65025 +
65026 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65027 fi
65028 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
65029 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
65030 +ac_res=`eval echo '${'$as_ac_Header'}'`
65031 + { echo "$as_me:$LINENO: result: $ac_res" >&5
65032 +echo "${ECHO_T}$ac_res" >&6; }
65033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
65034 cat >>confdefs.h <<_ACEOF
65035 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
65036 @@ -8936,13 +9417,12 @@ fi
65037 done
65038 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
65039 if test $ac_header_dirent = dirent.h; then
65040 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
65041 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
65042 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
65043 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
65044 if test "${ac_cv_search_opendir+set}" = set; then
65045 echo $ECHO_N "(cached) $ECHO_C" >&6
65046 else
65047 ac_func_search_save_LIBS=$LIBS
65048 -ac_cv_search_opendir=no
65049 cat >conftest.$ac_ext <<_ACEOF
65050 /* confdefs.h. */
65051 _ACEOF
65052 @@ -8950,126 +9430,83 @@ cat confdefs.h >>conftest.$ac_ext
65053 cat >>conftest.$ac_ext <<_ACEOF
65054 /* end confdefs.h. */
65055
65056 -/* Override any gcc2 internal prototype to avoid an error. */
65057 +/* Override any GCC internal prototype to avoid an error.
65058 + Use char because int might match the return type of a GCC
65059 + builtin and then its argument prototype would still apply. */
65060 #ifdef __cplusplus
65061 extern "C"
65062 #endif
65063 -/* We use char because int might match the return type of a gcc2
65064 - builtin and then its argument prototype would still apply. */
65065 char opendir ();
65066 int
65067 main ()
65068 {
65069 -opendir ();
65070 +return opendir ();
65071 ;
65072 return 0;
65073 }
65074 _ACEOF
65075 -rm -f conftest.$ac_objext conftest$ac_exeext
65076 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65077 - (eval $ac_link) 2>conftest.er1
65078 +for ac_lib in '' dir; do
65079 + if test -z "$ac_lib"; then
65080 + ac_res="none required"
65081 + else
65082 + ac_res=-l$ac_lib
65083 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65084 + fi
65085 + rm -f conftest.$ac_objext conftest$ac_exeext
65086 +if { (ac_try="$ac_link"
65087 +case "(($ac_try" in
65088 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65089 + *) ac_try_echo=$ac_try;;
65090 +esac
65091 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65092 + (eval "$ac_link") 2>conftest.er1
65093 ac_status=$?
65094 grep -v '^ *+' conftest.er1 >conftest.err
65095 rm -f conftest.er1
65096 cat conftest.err >&5
65097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65098 - (exit $ac_status); } &&
65099 - { ac_try='test -z "$ac_c_werror_flag"
65100 - || test ! -s conftest.err'
65101 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65102 - (eval $ac_try) 2>&5
65103 - ac_status=$?
65104 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65105 - (exit $ac_status); }; } &&
65106 - { ac_try='test -s conftest$ac_exeext'
65107 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65108 - (eval $ac_try) 2>&5
65109 - ac_status=$?
65110 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65111 - (exit $ac_status); }; }; then
65112 - ac_cv_search_opendir="none required"
65113 + (exit $ac_status); } && {
65114 + test -z "$ac_c_werror_flag" ||
65115 + test ! -s conftest.err
65116 + } && test -s conftest$ac_exeext &&
65117 + $as_test_x conftest$ac_exeext; then
65118 + ac_cv_search_opendir=$ac_res
65119 else
65120 echo "$as_me: failed program was:" >&5
65121 sed 's/^/| /' conftest.$ac_ext >&5
65122
65123 +
65124 fi
65125 -rm -f conftest.err conftest.$ac_objext \
65126 - conftest$ac_exeext conftest.$ac_ext
65127 -if test "$ac_cv_search_opendir" = no; then
65128 - for ac_lib in dir; do
65129 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65130 - cat >conftest.$ac_ext <<_ACEOF
65131 -/* confdefs.h. */
65132 -_ACEOF
65133 -cat confdefs.h >>conftest.$ac_ext
65134 -cat >>conftest.$ac_ext <<_ACEOF
65135 -/* end confdefs.h. */
65136 -
65137 -/* Override any gcc2 internal prototype to avoid an error. */
65138 -#ifdef __cplusplus
65139 -extern "C"
65140 -#endif
65141 -/* We use char because int might match the return type of a gcc2
65142 - builtin and then its argument prototype would still apply. */
65143 -char opendir ();
65144 -int
65145 -main ()
65146 -{
65147 -opendir ();
65148 - ;
65149 - return 0;
65150 -}
65151 -_ACEOF
65152 -rm -f conftest.$ac_objext conftest$ac_exeext
65153 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65154 - (eval $ac_link) 2>conftest.er1
65155 - ac_status=$?
65156 - grep -v '^ *+' conftest.er1 >conftest.err
65157 - rm -f conftest.er1
65158 - cat conftest.err >&5
65159 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65160 - (exit $ac_status); } &&
65161 - { ac_try='test -z "$ac_c_werror_flag"
65162 - || test ! -s conftest.err'
65163 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65164 - (eval $ac_try) 2>&5
65165 - ac_status=$?
65166 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65167 - (exit $ac_status); }; } &&
65168 - { ac_try='test -s conftest$ac_exeext'
65169 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65170 - (eval $ac_try) 2>&5
65171 - ac_status=$?
65172 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65173 - (exit $ac_status); }; }; then
65174 - ac_cv_search_opendir="-l$ac_lib"
65175 -break
65176 -else
65177 - echo "$as_me: failed program was:" >&5
65178 -sed 's/^/| /' conftest.$ac_ext >&5
65179
65180 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65181 + conftest$ac_exeext
65182 + if test "${ac_cv_search_opendir+set}" = set; then
65183 + break
65184 fi
65185 -rm -f conftest.err conftest.$ac_objext \
65186 - conftest$ac_exeext conftest.$ac_ext
65187 - done
65188 +done
65189 +if test "${ac_cv_search_opendir+set}" = set; then
65190 + :
65191 +else
65192 + ac_cv_search_opendir=no
65193 fi
65194 +rm conftest.$ac_ext
65195 LIBS=$ac_func_search_save_LIBS
65196 fi
65197 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65198 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
65199 -if test "$ac_cv_search_opendir" != no; then
65200 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
65201 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65202 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
65203 +ac_res=$ac_cv_search_opendir
65204 +if test "$ac_res" != no; then
65205 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
65206
65207 fi
65208
65209 else
65210 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
65211 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
65212 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
65213 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
65214 if test "${ac_cv_search_opendir+set}" = set; then
65215 echo $ECHO_N "(cached) $ECHO_C" >&6
65216 else
65217 ac_func_search_save_LIBS=$LIBS
65218 -ac_cv_search_opendir=no
65219 cat >conftest.$ac_ext <<_ACEOF
65220 /* confdefs.h. */
65221 _ACEOF
65222 @@ -9077,123 +9514,81 @@ cat confdefs.h >>conftest.$ac_ext
65223 cat >>conftest.$ac_ext <<_ACEOF
65224 /* end confdefs.h. */
65225
65226 -/* Override any gcc2 internal prototype to avoid an error. */
65227 +/* Override any GCC internal prototype to avoid an error.
65228 + Use char because int might match the return type of a GCC
65229 + builtin and then its argument prototype would still apply. */
65230 #ifdef __cplusplus
65231 extern "C"
65232 #endif
65233 -/* We use char because int might match the return type of a gcc2
65234 - builtin and then its argument prototype would still apply. */
65235 char opendir ();
65236 int
65237 main ()
65238 {
65239 -opendir ();
65240 +return opendir ();
65241 ;
65242 return 0;
65243 }
65244 _ACEOF
65245 -rm -f conftest.$ac_objext conftest$ac_exeext
65246 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65247 - (eval $ac_link) 2>conftest.er1
65248 +for ac_lib in '' x; do
65249 + if test -z "$ac_lib"; then
65250 + ac_res="none required"
65251 + else
65252 + ac_res=-l$ac_lib
65253 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65254 + fi
65255 + rm -f conftest.$ac_objext conftest$ac_exeext
65256 +if { (ac_try="$ac_link"
65257 +case "(($ac_try" in
65258 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65259 + *) ac_try_echo=$ac_try;;
65260 +esac
65261 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65262 + (eval "$ac_link") 2>conftest.er1
65263 ac_status=$?
65264 grep -v '^ *+' conftest.er1 >conftest.err
65265 rm -f conftest.er1
65266 cat conftest.err >&5
65267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65268 - (exit $ac_status); } &&
65269 - { ac_try='test -z "$ac_c_werror_flag"
65270 - || test ! -s conftest.err'
65271 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65272 - (eval $ac_try) 2>&5
65273 - ac_status=$?
65274 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65275 - (exit $ac_status); }; } &&
65276 - { ac_try='test -s conftest$ac_exeext'
65277 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65278 - (eval $ac_try) 2>&5
65279 - ac_status=$?
65280 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65281 - (exit $ac_status); }; }; then
65282 - ac_cv_search_opendir="none required"
65283 + (exit $ac_status); } && {
65284 + test -z "$ac_c_werror_flag" ||
65285 + test ! -s conftest.err
65286 + } && test -s conftest$ac_exeext &&
65287 + $as_test_x conftest$ac_exeext; then
65288 + ac_cv_search_opendir=$ac_res
65289 else
65290 echo "$as_me: failed program was:" >&5
65291 sed 's/^/| /' conftest.$ac_ext >&5
65292
65293 -fi
65294 -rm -f conftest.err conftest.$ac_objext \
65295 - conftest$ac_exeext conftest.$ac_ext
65296 -if test "$ac_cv_search_opendir" = no; then
65297 - for ac_lib in x; do
65298 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65299 - cat >conftest.$ac_ext <<_ACEOF
65300 -/* confdefs.h. */
65301 -_ACEOF
65302 -cat confdefs.h >>conftest.$ac_ext
65303 -cat >>conftest.$ac_ext <<_ACEOF
65304 -/* end confdefs.h. */
65305
65306 -/* Override any gcc2 internal prototype to avoid an error. */
65307 -#ifdef __cplusplus
65308 -extern "C"
65309 -#endif
65310 -/* We use char because int might match the return type of a gcc2
65311 - builtin and then its argument prototype would still apply. */
65312 -char opendir ();
65313 -int
65314 -main ()
65315 -{
65316 -opendir ();
65317 - ;
65318 - return 0;
65319 -}
65320 -_ACEOF
65321 -rm -f conftest.$ac_objext conftest$ac_exeext
65322 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65323 - (eval $ac_link) 2>conftest.er1
65324 - ac_status=$?
65325 - grep -v '^ *+' conftest.er1 >conftest.err
65326 - rm -f conftest.er1
65327 - cat conftest.err >&5
65328 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65329 - (exit $ac_status); } &&
65330 - { ac_try='test -z "$ac_c_werror_flag"
65331 - || test ! -s conftest.err'
65332 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65333 - (eval $ac_try) 2>&5
65334 - ac_status=$?
65335 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65336 - (exit $ac_status); }; } &&
65337 - { ac_try='test -s conftest$ac_exeext'
65338 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65339 - (eval $ac_try) 2>&5
65340 - ac_status=$?
65341 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65342 - (exit $ac_status); }; }; then
65343 - ac_cv_search_opendir="-l$ac_lib"
65344 -break
65345 -else
65346 - echo "$as_me: failed program was:" >&5
65347 -sed 's/^/| /' conftest.$ac_ext >&5
65348 +fi
65349
65350 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65351 + conftest$ac_exeext
65352 + if test "${ac_cv_search_opendir+set}" = set; then
65353 + break
65354 fi
65355 -rm -f conftest.err conftest.$ac_objext \
65356 - conftest$ac_exeext conftest.$ac_ext
65357 - done
65358 +done
65359 +if test "${ac_cv_search_opendir+set}" = set; then
65360 + :
65361 +else
65362 + ac_cv_search_opendir=no
65363 fi
65364 +rm conftest.$ac_ext
65365 LIBS=$ac_func_search_save_LIBS
65366 fi
65367 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65368 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
65369 -if test "$ac_cv_search_opendir" != no; then
65370 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
65371 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65372 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
65373 +ac_res=$ac_cv_search_opendir
65374 +if test "$ac_res" != no; then
65375 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
65376
65377 fi
65378
65379 fi
65380
65381
65382 -echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
65383 -echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
65384 +{ echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
65385 +echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6; }
65386 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
65387 echo $ECHO_N "(cached) $ECHO_C" >&6
65388 else
65389 @@ -9213,39 +9608,35 @@ extern int getopt (int, char *const*, co
65390 }
65391 _ACEOF
65392 rm -f conftest.$ac_objext
65393 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65394 - (eval $ac_compile) 2>conftest.er1
65395 +if { (ac_try="$ac_compile"
65396 +case "(($ac_try" in
65397 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65398 + *) ac_try_echo=$ac_try;;
65399 +esac
65400 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65401 + (eval "$ac_compile") 2>conftest.er1
65402 ac_status=$?
65403 grep -v '^ *+' conftest.er1 >conftest.err
65404 rm -f conftest.er1
65405 cat conftest.err >&5
65406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65407 - (exit $ac_status); } &&
65408 - { ac_try='test -z "$ac_c_werror_flag"
65409 - || test ! -s conftest.err'
65410 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65411 - (eval $ac_try) 2>&5
65412 - ac_status=$?
65413 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65414 - (exit $ac_status); }; } &&
65415 - { ac_try='test -s conftest.$ac_objext'
65416 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65417 - (eval $ac_try) 2>&5
65418 - ac_status=$?
65419 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65420 - (exit $ac_status); }; }; then
65421 + (exit $ac_status); } && {
65422 + test -z "$ac_c_werror_flag" ||
65423 + test ! -s conftest.err
65424 + } && test -s conftest.$ac_objext; then
65425 ld_cv_decl_getopt_unistd_h=yes
65426 else
65427 echo "$as_me: failed program was:" >&5
65428 sed 's/^/| /' conftest.$ac_ext >&5
65429
65430 -ld_cv_decl_getopt_unistd_h=no
65431 + ld_cv_decl_getopt_unistd_h=no
65432 fi
65433 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65434 +
65435 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65436 fi
65437
65438 -echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
65439 -echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
65440 +{ echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
65441 +echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6; }
65442 if test $ld_cv_decl_getopt_unistd_h = yes; then
65443
65444 cat >>confdefs.h <<\_ACEOF
65445 @@ -9264,8 +9655,8 @@ _ACEOF
65446 ;;
65447 esac
65448
65449 -echo "$as_me:$LINENO: checking whether strstr is declared" >&5
65450 -echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
65451 +{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
65452 +echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
65453 if test "${ac_cv_have_decl_strstr+set}" = set; then
65454 echo $ECHO_N "(cached) $ECHO_C" >&6
65455 else
65456 @@ -9280,7 +9671,7 @@ int
65457 main ()
65458 {
65459 #ifndef strstr
65460 - char *p = (char *) strstr;
65461 + (void) strstr;
65462 #endif
65463
65464 ;
65465 @@ -9288,38 +9679,34 @@ main ()
65466 }
65467 _ACEOF
65468 rm -f conftest.$ac_objext
65469 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65470 - (eval $ac_compile) 2>conftest.er1
65471 +if { (ac_try="$ac_compile"
65472 +case "(($ac_try" in
65473 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65474 + *) ac_try_echo=$ac_try;;
65475 +esac
65476 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65477 + (eval "$ac_compile") 2>conftest.er1
65478 ac_status=$?
65479 grep -v '^ *+' conftest.er1 >conftest.err
65480 rm -f conftest.er1
65481 cat conftest.err >&5
65482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65483 - (exit $ac_status); } &&
65484 - { ac_try='test -z "$ac_c_werror_flag"
65485 - || test ! -s conftest.err'
65486 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65487 - (eval $ac_try) 2>&5
65488 - ac_status=$?
65489 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65490 - (exit $ac_status); }; } &&
65491 - { ac_try='test -s conftest.$ac_objext'
65492 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65493 - (eval $ac_try) 2>&5
65494 - ac_status=$?
65495 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65496 - (exit $ac_status); }; }; then
65497 + (exit $ac_status); } && {
65498 + test -z "$ac_c_werror_flag" ||
65499 + test ! -s conftest.err
65500 + } && test -s conftest.$ac_objext; then
65501 ac_cv_have_decl_strstr=yes
65502 else
65503 echo "$as_me: failed program was:" >&5
65504 sed 's/^/| /' conftest.$ac_ext >&5
65505
65506 -ac_cv_have_decl_strstr=no
65507 + ac_cv_have_decl_strstr=no
65508 fi
65509 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65510 +
65511 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65512 fi
65513 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
65514 -echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
65515 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
65516 +echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
65517 if test $ac_cv_have_decl_strstr = yes; then
65518
65519 cat >>confdefs.h <<_ACEOF
65520 @@ -9334,8 +9721,8 @@ _ACEOF
65521
65522
65523 fi
65524 -echo "$as_me:$LINENO: checking whether free is declared" >&5
65525 -echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
65526 +{ echo "$as_me:$LINENO: checking whether free is declared" >&5
65527 +echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
65528 if test "${ac_cv_have_decl_free+set}" = set; then
65529 echo $ECHO_N "(cached) $ECHO_C" >&6
65530 else
65531 @@ -9350,7 +9737,7 @@ int
65532 main ()
65533 {
65534 #ifndef free
65535 - char *p = (char *) free;
65536 + (void) free;
65537 #endif
65538
65539 ;
65540 @@ -9358,38 +9745,34 @@ main ()
65541 }
65542 _ACEOF
65543 rm -f conftest.$ac_objext
65544 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65545 - (eval $ac_compile) 2>conftest.er1
65546 +if { (ac_try="$ac_compile"
65547 +case "(($ac_try" in
65548 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65549 + *) ac_try_echo=$ac_try;;
65550 +esac
65551 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65552 + (eval "$ac_compile") 2>conftest.er1
65553 ac_status=$?
65554 grep -v '^ *+' conftest.er1 >conftest.err
65555 rm -f conftest.er1
65556 cat conftest.err >&5
65557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65558 - (exit $ac_status); } &&
65559 - { ac_try='test -z "$ac_c_werror_flag"
65560 - || test ! -s conftest.err'
65561 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65562 - (eval $ac_try) 2>&5
65563 - ac_status=$?
65564 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65565 - (exit $ac_status); }; } &&
65566 - { ac_try='test -s conftest.$ac_objext'
65567 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65568 - (eval $ac_try) 2>&5
65569 - ac_status=$?
65570 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65571 - (exit $ac_status); }; }; then
65572 + (exit $ac_status); } && {
65573 + test -z "$ac_c_werror_flag" ||
65574 + test ! -s conftest.err
65575 + } && test -s conftest.$ac_objext; then
65576 ac_cv_have_decl_free=yes
65577 else
65578 echo "$as_me: failed program was:" >&5
65579 sed 's/^/| /' conftest.$ac_ext >&5
65580
65581 -ac_cv_have_decl_free=no
65582 + ac_cv_have_decl_free=no
65583 fi
65584 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65585 +
65586 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65587 fi
65588 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
65589 -echo "${ECHO_T}$ac_cv_have_decl_free" >&6
65590 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
65591 +echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
65592 if test $ac_cv_have_decl_free = yes; then
65593
65594 cat >>confdefs.h <<_ACEOF
65595 @@ -9404,8 +9787,8 @@ _ACEOF
65596
65597
65598 fi
65599 -echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
65600 -echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
65601 +{ echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
65602 +echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; }
65603 if test "${ac_cv_have_decl_sbrk+set}" = set; then
65604 echo $ECHO_N "(cached) $ECHO_C" >&6
65605 else
65606 @@ -9420,7 +9803,7 @@ int
65607 main ()
65608 {
65609 #ifndef sbrk
65610 - char *p = (char *) sbrk;
65611 + (void) sbrk;
65612 #endif
65613
65614 ;
65615 @@ -9428,38 +9811,34 @@ main ()
65616 }
65617 _ACEOF
65618 rm -f conftest.$ac_objext
65619 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65620 - (eval $ac_compile) 2>conftest.er1
65621 +if { (ac_try="$ac_compile"
65622 +case "(($ac_try" in
65623 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65624 + *) ac_try_echo=$ac_try;;
65625 +esac
65626 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65627 + (eval "$ac_compile") 2>conftest.er1
65628 ac_status=$?
65629 grep -v '^ *+' conftest.er1 >conftest.err
65630 rm -f conftest.er1
65631 cat conftest.err >&5
65632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65633 - (exit $ac_status); } &&
65634 - { ac_try='test -z "$ac_c_werror_flag"
65635 - || test ! -s conftest.err'
65636 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65637 - (eval $ac_try) 2>&5
65638 - ac_status=$?
65639 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65640 - (exit $ac_status); }; } &&
65641 - { ac_try='test -s conftest.$ac_objext'
65642 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65643 - (eval $ac_try) 2>&5
65644 - ac_status=$?
65645 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65646 - (exit $ac_status); }; }; then
65647 + (exit $ac_status); } && {
65648 + test -z "$ac_c_werror_flag" ||
65649 + test ! -s conftest.err
65650 + } && test -s conftest.$ac_objext; then
65651 ac_cv_have_decl_sbrk=yes
65652 else
65653 echo "$as_me: failed program was:" >&5
65654 sed 's/^/| /' conftest.$ac_ext >&5
65655
65656 -ac_cv_have_decl_sbrk=no
65657 + ac_cv_have_decl_sbrk=no
65658 fi
65659 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65660 +
65661 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65662 fi
65663 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
65664 -echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
65665 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
65666 +echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; }
65667 if test $ac_cv_have_decl_sbrk = yes; then
65668
65669 cat >>confdefs.h <<_ACEOF
65670 @@ -9474,8 +9853,8 @@ _ACEOF
65671
65672
65673 fi
65674 -echo "$as_me:$LINENO: checking whether getenv is declared" >&5
65675 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
65676 +{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
65677 +echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
65678 if test "${ac_cv_have_decl_getenv+set}" = set; then
65679 echo $ECHO_N "(cached) $ECHO_C" >&6
65680 else
65681 @@ -9490,7 +9869,7 @@ int
65682 main ()
65683 {
65684 #ifndef getenv
65685 - char *p = (char *) getenv;
65686 + (void) getenv;
65687 #endif
65688
65689 ;
65690 @@ -9498,38 +9877,34 @@ main ()
65691 }
65692 _ACEOF
65693 rm -f conftest.$ac_objext
65694 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65695 - (eval $ac_compile) 2>conftest.er1
65696 +if { (ac_try="$ac_compile"
65697 +case "(($ac_try" in
65698 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65699 + *) ac_try_echo=$ac_try;;
65700 +esac
65701 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65702 + (eval "$ac_compile") 2>conftest.er1
65703 ac_status=$?
65704 grep -v '^ *+' conftest.er1 >conftest.err
65705 rm -f conftest.er1
65706 cat conftest.err >&5
65707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65708 - (exit $ac_status); } &&
65709 - { ac_try='test -z "$ac_c_werror_flag"
65710 - || test ! -s conftest.err'
65711 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65712 - (eval $ac_try) 2>&5
65713 - ac_status=$?
65714 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65715 - (exit $ac_status); }; } &&
65716 - { ac_try='test -s conftest.$ac_objext'
65717 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65718 - (eval $ac_try) 2>&5
65719 - ac_status=$?
65720 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65721 - (exit $ac_status); }; }; then
65722 + (exit $ac_status); } && {
65723 + test -z "$ac_c_werror_flag" ||
65724 + test ! -s conftest.err
65725 + } && test -s conftest.$ac_objext; then
65726 ac_cv_have_decl_getenv=yes
65727 else
65728 echo "$as_me: failed program was:" >&5
65729 sed 's/^/| /' conftest.$ac_ext >&5
65730
65731 -ac_cv_have_decl_getenv=no
65732 + ac_cv_have_decl_getenv=no
65733 fi
65734 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65735 +
65736 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65737 fi
65738 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
65739 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
65740 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
65741 +echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
65742 if test $ac_cv_have_decl_getenv = yes; then
65743
65744 cat >>confdefs.h <<_ACEOF
65745 @@ -9544,8 +9919,8 @@ _ACEOF
65746
65747
65748 fi
65749 -echo "$as_me:$LINENO: checking whether environ is declared" >&5
65750 -echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
65751 +{ echo "$as_me:$LINENO: checking whether environ is declared" >&5
65752 +echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
65753 if test "${ac_cv_have_decl_environ+set}" = set; then
65754 echo $ECHO_N "(cached) $ECHO_C" >&6
65755 else
65756 @@ -9560,7 +9935,7 @@ int
65757 main ()
65758 {
65759 #ifndef environ
65760 - char *p = (char *) environ;
65761 + (void) environ;
65762 #endif
65763
65764 ;
65765 @@ -9568,38 +9943,34 @@ main ()
65766 }
65767 _ACEOF
65768 rm -f conftest.$ac_objext
65769 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65770 - (eval $ac_compile) 2>conftest.er1
65771 +if { (ac_try="$ac_compile"
65772 +case "(($ac_try" in
65773 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65774 + *) ac_try_echo=$ac_try;;
65775 +esac
65776 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65777 + (eval "$ac_compile") 2>conftest.er1
65778 ac_status=$?
65779 grep -v '^ *+' conftest.er1 >conftest.err
65780 rm -f conftest.er1
65781 cat conftest.err >&5
65782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65783 - (exit $ac_status); } &&
65784 - { ac_try='test -z "$ac_c_werror_flag"
65785 - || test ! -s conftest.err'
65786 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65787 - (eval $ac_try) 2>&5
65788 - ac_status=$?
65789 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65790 - (exit $ac_status); }; } &&
65791 - { ac_try='test -s conftest.$ac_objext'
65792 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65793 - (eval $ac_try) 2>&5
65794 - ac_status=$?
65795 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65796 - (exit $ac_status); }; }; then
65797 + (exit $ac_status); } && {
65798 + test -z "$ac_c_werror_flag" ||
65799 + test ! -s conftest.err
65800 + } && test -s conftest.$ac_objext; then
65801 ac_cv_have_decl_environ=yes
65802 else
65803 echo "$as_me: failed program was:" >&5
65804 sed 's/^/| /' conftest.$ac_ext >&5
65805
65806 -ac_cv_have_decl_environ=no
65807 + ac_cv_have_decl_environ=no
65808 fi
65809 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65810 +
65811 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65812 fi
65813 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
65814 -echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
65815 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
65816 +echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
65817 if test $ac_cv_have_decl_environ = yes; then
65818
65819 cat >>confdefs.h <<_ACEOF
65820 @@ -9623,8 +9994,8 @@ fi
65821 # broken Microsoft MSVC compiler, which limits the length of string
65822 # constants, while still supporting pre-ANSI compilers which do not
65823 # support string concatenation.
65824 -echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
65825 -echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
65826 +{ echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
65827 +echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6; }
65828 if test "${ld_cv_string_concatenation+set}" = set; then
65829 echo $ECHO_N "(cached) $ECHO_C" >&6
65830 else
65831 @@ -9644,39 +10015,35 @@ char *a = "a" "a";
65832 }
65833 _ACEOF
65834 rm -f conftest.$ac_objext
65835 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65836 - (eval $ac_compile) 2>conftest.er1
65837 +if { (ac_try="$ac_compile"
65838 +case "(($ac_try" in
65839 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65840 + *) ac_try_echo=$ac_try;;
65841 +esac
65842 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65843 + (eval "$ac_compile") 2>conftest.er1
65844 ac_status=$?
65845 grep -v '^ *+' conftest.er1 >conftest.err
65846 rm -f conftest.er1
65847 cat conftest.err >&5
65848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65849 - (exit $ac_status); } &&
65850 - { ac_try='test -z "$ac_c_werror_flag"
65851 - || test ! -s conftest.err'
65852 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65853 - (eval $ac_try) 2>&5
65854 - ac_status=$?
65855 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65856 - (exit $ac_status); }; } &&
65857 - { ac_try='test -s conftest.$ac_objext'
65858 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65859 - (eval $ac_try) 2>&5
65860 - ac_status=$?
65861 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65862 - (exit $ac_status); }; }; then
65863 + (exit $ac_status); } && {
65864 + test -z "$ac_c_werror_flag" ||
65865 + test ! -s conftest.err
65866 + } && test -s conftest.$ac_objext; then
65867 ld_cv_string_concatenation=yes
65868 else
65869 echo "$as_me: failed program was:" >&5
65870 sed 's/^/| /' conftest.$ac_ext >&5
65871
65872 -ld_cv_string_concatenation=no
65873 + ld_cv_string_concatenation=no
65874 fi
65875 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65876 +
65877 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65878 fi
65879
65880 -echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
65881 -echo "${ECHO_T}$ld_cv_string_concatenation" >&6
65882 +{ echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
65883 +echo "${ECHO_T}$ld_cv_string_concatenation" >&6; }
65884 if test "$ld_cv_string_concatenation" = "yes"; then
65885 STRINGIFY=astring.sed
65886 else
65887 @@ -9801,8 +10168,10 @@ fi
65888
65889
65890
65891 - ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
65892 - ac_config_commands="$ac_config_commands default"
65893 +ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
65894 +
65895 +ac_config_commands="$ac_config_commands default"
65896 +
65897 cat >confcache <<\_ACEOF
65898 # This file is a shell script that caches the results of configure
65899 # tests run on this system so they can be shared between configure
65900 @@ -9821,39 +10190,58 @@ _ACEOF
65901
65902 # The following way of writing the cache mishandles newlines in values,
65903 # but we know of no workaround that is simple, portable, and efficient.
65904 -# So, don't put newlines in cache variables' values.
65905 +# So, we kill variables containing newlines.
65906 # Ultrix sh set writes to stderr and can't be redirected directly,
65907 # and sets the high bit in the cache file unless we assign to the vars.
65908 -{
65909 +(
65910 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
65911 + eval ac_val=\$$ac_var
65912 + case $ac_val in #(
65913 + *${as_nl}*)
65914 + case $ac_var in #(
65915 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
65916 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
65917 + esac
65918 + case $ac_var in #(
65919 + _ | IFS | as_nl) ;; #(
65920 + *) $as_unset $ac_var ;;
65921 + esac ;;
65922 + esac
65923 + done
65924 +
65925 (set) 2>&1 |
65926 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
65927 - *ac_space=\ *)
65928 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
65929 + *${as_nl}ac_space=\ *)
65930 # `set' does not quote correctly, so add quotes (double-quote
65931 # substitution turns \\\\ into \\, and sed turns \\ into \).
65932 sed -n \
65933 "s/'/'\\\\''/g;
65934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
65935 - ;;
65936 + ;; #(
65937 *)
65938 # `set' quotes correctly as required by POSIX, so do not add quotes.
65939 - sed -n \
65940 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
65941 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
65942 ;;
65943 - esac;
65944 -} |
65945 + esac |
65946 + sort
65947 +) |
65948 sed '
65949 + /^ac_cv_env_/b end
65950 t clear
65951 - : clear
65952 + :clear
65953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
65954 t end
65955 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
65956 - : end' >>confcache
65957 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
65958 - if test -w $cache_file; then
65959 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
65960 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
65961 + :end' >>confcache
65962 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
65963 + if test -w "$cache_file"; then
65964 + test "x$cache_file" != "x/dev/null" &&
65965 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
65966 +echo "$as_me: updating cache $cache_file" >&6;}
65967 cat confcache >$cache_file
65968 else
65969 - echo "not updating unwritable cache $cache_file"
65970 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
65971 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
65972 fi
65973 fi
65974 rm -f confcache
65975 @@ -9862,32 +10250,18 @@ test "x$prefix" = xNONE && prefix=$ac_de
65976 # Let make expand exec_prefix.
65977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
65978
65979 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
65980 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
65981 -# trailing colons and then remove the whole line if VPATH becomes empty
65982 -# (actually we leave an empty line to preserve line numbers).
65983 -if test "x$srcdir" = x.; then
65984 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
65985 -s/:*\$(srcdir):*/:/;
65986 -s/:*\${srcdir}:*/:/;
65987 -s/:*@srcdir@:*/:/;
65988 -s/^\([^=]*=[ ]*\):*/\1/;
65989 -s/:*$//;
65990 -s/^[^=]*=[ ]*$//;
65991 -}'
65992 -fi
65993 -
65994 DEFS=-DHAVE_CONFIG_H
65995
65996 ac_libobjs=
65997 ac_ltlibobjs=
65998 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
65999 # 1. Remove the extension, and $U if already installed.
66000 - ac_i=`echo "$ac_i" |
66001 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
66002 - # 2. Add them.
66003 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
66004 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
66005 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
66006 + ac_i=`echo "$ac_i" | sed "$ac_script"`
66007 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
66008 + # will be set to the directory where LIBOBJS objects are built.
66009 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
66010 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
66011 done
66012 LIBOBJS=$ac_libobjs
66013
66014 @@ -9939,17 +10313,45 @@ cat >>$CONFIG_STATUS <<\_ACEOF
66015 ## M4sh Initialization. ##
66016 ## --------------------- ##
66017
66018 -# Be Bourne compatible
66019 +# Be more Bourne compatible
66020 +DUALCASE=1; export DUALCASE # for MKS sh
66021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
66022 emulate sh
66023 NULLCMD=:
66024 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
66025 # is contrary to our usage. Disable this feature.
66026 alias -g '${1+"$@"}'='"$@"'
66027 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
66028 - set -o posix
66029 + setopt NO_GLOB_SUBST
66030 +else
66031 + case `(set -o) 2>/dev/null` in
66032 + *posix*) set -o posix ;;
66033 +esac
66034 +
66035 +fi
66036 +
66037 +
66038 +
66039 +
66040 +# PATH needs CR
66041 +# Avoid depending upon Character Ranges.
66042 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66043 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
66044 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
66045 +as_cr_digits='0123456789'
66046 +as_cr_alnum=$as_cr_Letters$as_cr_digits
66047 +
66048 +# The user is always right.
66049 +if test "${PATH_SEPARATOR+set}" != set; then
66050 + echo "#! /bin/sh" >conf$$.sh
66051 + echo "exit 0" >>conf$$.sh
66052 + chmod +x conf$$.sh
66053 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
66054 + PATH_SEPARATOR=';'
66055 + else
66056 + PATH_SEPARATOR=:
66057 + fi
66058 + rm -f conf$$.sh
66059 fi
66060 -DUALCASE=1; export DUALCASE # for MKS sh
66061
66062 # Support unset when possible.
66063 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66064 @@ -9959,8 +10361,43 @@ else
66065 fi
66066
66067
66068 +# IFS
66069 +# We need space, tab and new line, in precisely that order. Quoting is
66070 +# there to prevent editors from complaining about space-tab.
66071 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66072 +# splitting by setting IFS to empty value.)
66073 +as_nl='
66074 +'
66075 +IFS=" "" $as_nl"
66076 +
66077 +# Find who we are. Look in the path if we contain no directory separator.
66078 +case $0 in
66079 + *[\\/]* ) as_myself=$0 ;;
66080 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66081 +for as_dir in $PATH
66082 +do
66083 + IFS=$as_save_IFS
66084 + test -z "$as_dir" && as_dir=.
66085 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
66086 +done
66087 +IFS=$as_save_IFS
66088 +
66089 + ;;
66090 +esac
66091 +# We did not find ourselves, most probably we were run as `sh COMMAND'
66092 +# in which case we are not to be found in the path.
66093 +if test "x$as_myself" = x; then
66094 + as_myself=$0
66095 +fi
66096 +if test ! -f "$as_myself"; then
66097 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
66098 + { (exit 1); exit 1; }
66099 +fi
66100 +
66101 # Work around bugs in pre-3.0 UWIN ksh.
66102 -$as_unset ENV MAIL MAILPATH
66103 +for as_var in ENV MAIL MAILPATH
66104 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
66105 +done
66106 PS1='$ '
66107 PS2='> '
66108 PS4='+ '
66109 @@ -9974,18 +10411,19 @@ do
66110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
66111 eval $as_var=C; export $as_var
66112 else
66113 - $as_unset $as_var
66114 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
66115 fi
66116 done
66117
66118 # Required to use basename.
66119 -if expr a : '\(a\)' >/dev/null 2>&1; then
66120 +if expr a : '\(a\)' >/dev/null 2>&1 &&
66121 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
66122 as_expr=expr
66123 else
66124 as_expr=false
66125 fi
66126
66127 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66128 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
66129 as_basename=basename
66130 else
66131 as_basename=false
66132 @@ -9993,159 +10431,120 @@ fi
66133
66134
66135 # Name of the executable.
66136 -as_me=`$as_basename "$0" ||
66137 +as_me=`$as_basename -- "$0" ||
66138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66139 X"$0" : 'X\(//\)$' \| \
66140 - X"$0" : 'X\(/\)$' \| \
66141 - . : '\(.\)' 2>/dev/null ||
66142 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
66143 echo X/"$0" |
66144 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
66145 - /^X\/\(\/\/\)$/{ s//\1/; q; }
66146 - /^X\/\(\/\).*/{ s//\1/; q; }
66147 - s/.*/./; q'`
66148 -
66149 -
66150 -# PATH needs CR, and LINENO needs CR and PATH.
66151 -# Avoid depending upon Character Ranges.
66152 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66153 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
66154 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
66155 -as_cr_digits='0123456789'
66156 -as_cr_alnum=$as_cr_Letters$as_cr_digits
66157 + sed '/^.*\/\([^/][^/]*\)\/*$/{
66158 + s//\1/
66159 + q
66160 + }
66161 + /^X\/\(\/\/\)$/{
66162 + s//\1/
66163 + q
66164 + }
66165 + /^X\/\(\/\).*/{
66166 + s//\1/
66167 + q
66168 + }
66169 + s/.*/./; q'`
66170
66171 -# The user is always right.
66172 -if test "${PATH_SEPARATOR+set}" != set; then
66173 - echo "#! /bin/sh" >conf$$.sh
66174 - echo "exit 0" >>conf$$.sh
66175 - chmod +x conf$$.sh
66176 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
66177 - PATH_SEPARATOR=';'
66178 - else
66179 - PATH_SEPARATOR=:
66180 - fi
66181 - rm -f conf$$.sh
66182 -fi
66183 +# CDPATH.
66184 +$as_unset CDPATH
66185
66186
66187 - as_lineno_1=$LINENO
66188 - as_lineno_2=$LINENO
66189 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
66190 - test "x$as_lineno_1" != "x$as_lineno_2" &&
66191 - test "x$as_lineno_3" = "x$as_lineno_2" || {
66192 - # Find who we are. Look in the path if we contain no path at all
66193 - # relative or not.
66194 - case $0 in
66195 - *[\\/]* ) as_myself=$0 ;;
66196 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66197 -for as_dir in $PATH
66198 -do
66199 - IFS=$as_save_IFS
66200 - test -z "$as_dir" && as_dir=.
66201 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
66202 -done
66203
66204 - ;;
66205 - esac
66206 - # We did not find ourselves, most probably we were run as `sh COMMAND'
66207 - # in which case we are not to be found in the path.
66208 - if test "x$as_myself" = x; then
66209 - as_myself=$0
66210 - fi
66211 - if test ! -f "$as_myself"; then
66212 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
66213 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
66214 - { (exit 1); exit 1; }; }
66215 - fi
66216 - case $CONFIG_SHELL in
66217 - '')
66218 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66219 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
66220 -do
66221 - IFS=$as_save_IFS
66222 - test -z "$as_dir" && as_dir=.
66223 - for as_base in sh bash ksh sh5; do
66224 - case $as_dir in
66225 - /*)
66226 - if ("$as_dir/$as_base" -c '
66227 as_lineno_1=$LINENO
66228 as_lineno_2=$LINENO
66229 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
66230 test "x$as_lineno_1" != "x$as_lineno_2" &&
66231 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
66232 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
66233 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
66234 - CONFIG_SHELL=$as_dir/$as_base
66235 - export CONFIG_SHELL
66236 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
66237 - fi;;
66238 - esac
66239 - done
66240 -done
66241 -;;
66242 - esac
66243 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
66244
66245 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
66246 # uniformly replaced by the line number. The first 'sed' inserts a
66247 - # line-number line before each line; the second 'sed' does the real
66248 - # work. The second script uses 'N' to pair each line-number line
66249 - # with the numbered line, and appends trailing '-' during
66250 - # substitution so that $LINENO is not a special case at line end.
66251 + # line-number line after each line using $LINENO; the second 'sed'
66252 + # does the real work. The second script uses 'N' to pair each
66253 + # line-number line with the line containing $LINENO, and appends
66254 + # trailing '-' during substitution so that $LINENO is not a special
66255 + # case at line end.
66256 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
66257 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
66258 - sed '=' <$as_myself |
66259 + # scripts with optimization help from Paolo Bonzini. Blame Lee
66260 + # E. McMahon (1931-1989) for sed's syntax. :-)
66261 + sed -n '
66262 + p
66263 + /[$]LINENO/=
66264 + ' <$as_myself |
66265 sed '
66266 + s/[$]LINENO.*/&-/
66267 + t lineno
66268 + b
66269 + :lineno
66270 N
66271 - s,$,-,
66272 - : loop
66273 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
66274 + :loop
66275 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
66276 t loop
66277 - s,-$,,
66278 - s,^['$as_cr_digits']*\n,,
66279 + s/-\n.*//
66280 ' >$as_me.lineno &&
66281 - chmod +x $as_me.lineno ||
66282 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
66283 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
66284 + chmod +x "$as_me.lineno" ||
66285 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
66286 { (exit 1); exit 1; }; }
66287
66288 # Don't try to exec as it changes $[0], causing all sort of problems
66289 # (the dirname of $[0] is not the place where we might find the
66290 - # original and so on. Autoconf is especially sensible to this).
66291 - . ./$as_me.lineno
66292 + # original and so on. Autoconf is especially sensitive to this).
66293 + . "./$as_me.lineno"
66294 # Exit status is that of the last command.
66295 exit
66296 }
66297
66298
66299 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
66300 - *c*,-n*) ECHO_N= ECHO_C='
66301 -' ECHO_T=' ' ;;
66302 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
66303 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
66304 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
66305 + as_dirname=dirname
66306 +else
66307 + as_dirname=false
66308 +fi
66309 +
66310 +ECHO_C= ECHO_N= ECHO_T=
66311 +case `echo -n x` in
66312 +-n*)
66313 + case `echo 'x\c'` in
66314 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
66315 + *) ECHO_C='\c';;
66316 + esac;;
66317 +*)
66318 + ECHO_N='-n';;
66319 esac
66320
66321 -if expr a : '\(a\)' >/dev/null 2>&1; then
66322 +if expr a : '\(a\)' >/dev/null 2>&1 &&
66323 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
66324 as_expr=expr
66325 else
66326 as_expr=false
66327 fi
66328
66329 rm -f conf$$ conf$$.exe conf$$.file
66330 +if test -d conf$$.dir; then
66331 + rm -f conf$$.dir/conf$$.file
66332 +else
66333 + rm -f conf$$.dir
66334 + mkdir conf$$.dir
66335 +fi
66336 echo >conf$$.file
66337 if ln -s conf$$.file conf$$ 2>/dev/null; then
66338 - # We could just check for DJGPP; but this test a) works b) is more generic
66339 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
66340 - if test -f conf$$.exe; then
66341 - # Don't use ln at all; we don't have any links
66342 + as_ln_s='ln -s'
66343 + # ... but there are two gotchas:
66344 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
66345 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
66346 + # In both cases, we have to default to `cp -p'.
66347 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
66348 as_ln_s='cp -p'
66349 - else
66350 - as_ln_s='ln -s'
66351 - fi
66352 elif ln conf$$.file conf$$ 2>/dev/null; then
66353 as_ln_s=ln
66354 else
66355 as_ln_s='cp -p'
66356 fi
66357 -rm -f conf$$ conf$$.exe conf$$.file
66358 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
66359 +rmdir conf$$.dir 2>/dev/null
66360
66361 if mkdir -p . 2>/dev/null; then
66362 as_mkdir_p=:
66363 @@ -10154,7 +10553,28 @@ else
66364 as_mkdir_p=false
66365 fi
66366
66367 -as_executable_p="test -f"
66368 +if test -x / >/dev/null 2>&1; then
66369 + as_test_x='test -x'
66370 +else
66371 + if ls -dL / >/dev/null 2>&1; then
66372 + as_ls_L_option=L
66373 + else
66374 + as_ls_L_option=
66375 + fi
66376 + as_test_x='
66377 + eval sh -c '\''
66378 + if test -d "$1"; then
66379 + test -d "$1/.";
66380 + else
66381 + case $1 in
66382 + -*)set "./$1";;
66383 + esac;
66384 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
66385 + ???[sx]*):;;*)false;;esac;fi
66386 + '\'' sh
66387 + '
66388 +fi
66389 +as_executable_p=$as_test_x
66390
66391 # Sed expression to map a string onto a valid CPP name.
66392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
66393 @@ -10163,31 +10583,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
66394 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
66395
66396
66397 -# IFS
66398 -# We need space, tab and new line, in precisely that order.
66399 -as_nl='
66400 -'
66401 -IFS=" $as_nl"
66402 -
66403 -# CDPATH.
66404 -$as_unset CDPATH
66405 -
66406 exec 6>&1
66407
66408 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
66409 +# Save the log message, to keep $[0] and so on meaningful, and to
66410 # report actual input values of CONFIG_FILES etc. instead of their
66411 -# values after options handling. Logging --version etc. is OK.
66412 -exec 5>>config.log
66413 -{
66414 - echo
66415 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
66416 -## Running $as_me. ##
66417 -_ASBOX
66418 -} >&5
66419 -cat >&5 <<_CSEOF
66420 -
66421 +# values after options handling.
66422 +ac_log="
66423 This file was extended by $as_me, which was
66424 -generated by GNU Autoconf 2.59. Invocation command line was
66425 +generated by GNU Autoconf 2.61. Invocation command line was
66426
66427 CONFIG_FILES = $CONFIG_FILES
66428 CONFIG_HEADERS = $CONFIG_HEADERS
66429 @@ -10195,30 +10598,20 @@ generated by GNU Autoconf 2.59. Invocat
66430 CONFIG_COMMANDS = $CONFIG_COMMANDS
66431 $ $0 $@
66432
66433 -_CSEOF
66434 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
66435 -echo >&5
66436 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
66437 +"
66438 +
66439 _ACEOF
66440
66441 +cat >>$CONFIG_STATUS <<_ACEOF
66442 # Files that config.status was made for.
66443 -if test -n "$ac_config_files"; then
66444 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
66445 -fi
66446 -
66447 -if test -n "$ac_config_headers"; then
66448 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
66449 -fi
66450 -
66451 -if test -n "$ac_config_links"; then
66452 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
66453 -fi
66454 +config_files="$ac_config_files"
66455 +config_headers="$ac_config_headers"
66456 +config_commands="$ac_config_commands"
66457
66458 -if test -n "$ac_config_commands"; then
66459 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
66460 -fi
66461 +_ACEOF
66462
66463 cat >>$CONFIG_STATUS <<\_ACEOF
66464 -
66465 ac_cs_usage="\
66466 \`$as_me' instantiates files from templates according to the
66467 current configuration.
66468 @@ -10226,7 +10619,7 @@ current configuration.
66469 Usage: $0 [OPTIONS] [FILE]...
66470
66471 -h, --help print this help, then exit
66472 - -V, --version print version number, then exit
66473 + -V, --version print version number and configuration settings, then exit
66474 -q, --quiet do not print progress messages
66475 -d, --debug don't remove temporary files
66476 --recheck update $as_me by reconfiguring in the same conditions
66477 @@ -10245,19 +10638,21 @@ Configuration commands:
66478 $config_commands
66479
66480 Report bugs to <bug-autoconf@gnu.org>."
66481 -_ACEOF
66482
66483 +_ACEOF
66484 cat >>$CONFIG_STATUS <<_ACEOF
66485 ac_cs_version="\\
66486 config.status
66487 -configured by $0, generated by GNU Autoconf 2.59,
66488 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
66489 +configured by $0, generated by GNU Autoconf 2.61,
66490 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
66491
66492 -Copyright (C) 2003 Free Software Foundation, Inc.
66493 +Copyright (C) 2006 Free Software Foundation, Inc.
66494 This config.status script is free software; the Free Software Foundation
66495 gives unlimited permission to copy, distribute and modify it."
66496 -srcdir=$srcdir
66497 -INSTALL="$INSTALL"
66498 +
66499 +ac_pwd='$ac_pwd'
66500 +srcdir='$srcdir'
66501 +INSTALL='$INSTALL'
66502 _ACEOF
66503
66504 cat >>$CONFIG_STATUS <<\_ACEOF
66505 @@ -10268,39 +10663,24 @@ while test $# != 0
66506 do
66507 case $1 in
66508 --*=*)
66509 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
66510 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
66511 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
66512 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
66513 ac_shift=:
66514 ;;
66515 - -*)
66516 + *)
66517 ac_option=$1
66518 ac_optarg=$2
66519 ac_shift=shift
66520 ;;
66521 - *) # This is not an option, so the user has probably given explicit
66522 - # arguments.
66523 - ac_option=$1
66524 - ac_need_defaults=false;;
66525 esac
66526
66527 case $ac_option in
66528 # Handling of the options.
66529 -_ACEOF
66530 -cat >>$CONFIG_STATUS <<\_ACEOF
66531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
66532 ac_cs_recheck=: ;;
66533 - --version | --vers* | -V )
66534 - echo "$ac_cs_version"; exit 0 ;;
66535 - --he | --h)
66536 - # Conflict between --help and --header
66537 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
66538 -Try \`$0 --help' for more information." >&5
66539 -echo "$as_me: error: ambiguous option: $1
66540 -Try \`$0 --help' for more information." >&2;}
66541 - { (exit 1); exit 1; }; };;
66542 - --help | --hel | -h )
66543 - echo "$ac_cs_usage"; exit 0 ;;
66544 - --debug | --d* | -d )
66545 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
66546 + echo "$ac_cs_version"; exit ;;
66547 + --debug | --debu | --deb | --de | --d | -d )
66548 debug=: ;;
66549 --file | --fil | --fi | --f )
66550 $ac_shift
66551 @@ -10310,18 +10690,24 @@ Try \`$0 --help' for more information."
66552 $ac_shift
66553 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
66554 ac_need_defaults=false;;
66555 + --he | --h)
66556 + # Conflict between --help and --header
66557 + { echo "$as_me: error: ambiguous option: $1
66558 +Try \`$0 --help' for more information." >&2
66559 + { (exit 1); exit 1; }; };;
66560 + --help | --hel | -h )
66561 + echo "$ac_cs_usage"; exit ;;
66562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
66563 | -silent | --silent | --silen | --sile | --sil | --si | --s)
66564 ac_cs_silent=: ;;
66565
66566 # This is an error.
66567 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
66568 -Try \`$0 --help' for more information." >&5
66569 -echo "$as_me: error: unrecognized option: $1
66570 -Try \`$0 --help' for more information." >&2;}
66571 + -*) { echo "$as_me: error: unrecognized option: $1
66572 +Try \`$0 --help' for more information." >&2
66573 { (exit 1); exit 1; }; } ;;
66574
66575 - *) ac_config_targets="$ac_config_targets $1" ;;
66576 + *) ac_config_targets="$ac_config_targets $1"
66577 + ac_need_defaults=false ;;
66578
66579 esac
66580 shift
66581 @@ -10337,39 +10723,51 @@ fi
66582 _ACEOF
66583 cat >>$CONFIG_STATUS <<_ACEOF
66584 if \$ac_cs_recheck; then
66585 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
66586 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
66587 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
66588 + CONFIG_SHELL=$SHELL
66589 + export CONFIG_SHELL
66590 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
66591 fi
66592
66593 _ACEOF
66594 +cat >>$CONFIG_STATUS <<\_ACEOF
66595 +exec 5>>config.log
66596 +{
66597 + echo
66598 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
66599 +## Running $as_me. ##
66600 +_ASBOX
66601 + echo "$ac_log"
66602 +} >&5
66603
66604 +_ACEOF
66605 cat >>$CONFIG_STATUS <<_ACEOF
66606 #
66607 -# INIT-COMMANDS section.
66608 +# INIT-COMMANDS
66609 #
66610 -
66611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
66612
66613 _ACEOF
66614
66615 -
66616 -
66617 cat >>$CONFIG_STATUS <<\_ACEOF
66618 +
66619 +# Handling of arguments.
66620 for ac_config_target in $ac_config_targets
66621 do
66622 - case "$ac_config_target" in
66623 - # Handling of arguments.
66624 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
66625 - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
66626 - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
66627 - "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
66628 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
66629 + case $ac_config_target in
66630 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
66631 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
66632 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
66633 + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
66634 + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
66635 +
66636 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
66637 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
66638 { (exit 1); exit 1; }; };;
66639 esac
66640 done
66641
66642 +
66643 # If the user did not use the arguments to specify the items to instantiate,
66644 # then the envvar interface is used. Set only those that are not.
66645 # We use the long form for the default assignment because of an extremely
66646 @@ -10381,640 +10779,634 @@ if $ac_need_defaults; then
66647 fi
66648
66649 # Have a temporary directory for convenience. Make it in the build tree
66650 -# simply because there is no reason to put it here, and in addition,
66651 +# simply because there is no reason against having it here, and in addition,
66652 # creating and moving files from /tmp can sometimes cause problems.
66653 -# Create a temporary directory, and hook for its removal unless debugging.
66654 +# Hook for its removal unless debugging.
66655 +# Note that there is a small window in which the directory will not be cleaned:
66656 +# after its creation but before its name has been assigned to `$tmp'.
66657 $debug ||
66658 {
66659 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
66660 + tmp=
66661 + trap 'exit_status=$?
66662 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
66663 +' 0
66664 trap '{ (exit 1); exit 1; }' 1 2 13 15
66665 }
66666 -
66667 # Create a (secure) tmp directory for tmp files.
66668
66669 {
66670 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
66671 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
66672 test -n "$tmp" && test -d "$tmp"
66673 } ||
66674 {
66675 - tmp=./confstat$$-$RANDOM
66676 - (umask 077 && mkdir $tmp)
66677 + tmp=./conf$$-$RANDOM
66678 + (umask 077 && mkdir "$tmp")
66679 } ||
66680 {
66681 echo "$me: cannot create a temporary directory in ." >&2
66682 { (exit 1); exit 1; }
66683 }
66684
66685 -_ACEOF
66686 -
66687 -cat >>$CONFIG_STATUS <<_ACEOF
66688 -
66689 #
66690 -# CONFIG_FILES section.
66691 +# Set up the sed scripts for CONFIG_FILES section.
66692 #
66693
66694 # No need to generate the scripts if there are no CONFIG_FILES.
66695 # This happens for instance when ./config.status config.h
66696 -if test -n "\$CONFIG_FILES"; then
66697 - # Protect against being on the right side of a sed subst in config.status.
66698 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
66699 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
66700 -s,@SHELL@,$SHELL,;t t
66701 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
66702 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
66703 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
66704 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
66705 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
66706 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
66707 -s,@exec_prefix@,$exec_prefix,;t t
66708 -s,@prefix@,$prefix,;t t
66709 -s,@program_transform_name@,$program_transform_name,;t t
66710 -s,@bindir@,$bindir,;t t
66711 -s,@sbindir@,$sbindir,;t t
66712 -s,@libexecdir@,$libexecdir,;t t
66713 -s,@datadir@,$datadir,;t t
66714 -s,@sysconfdir@,$sysconfdir,;t t
66715 -s,@sharedstatedir@,$sharedstatedir,;t t
66716 -s,@localstatedir@,$localstatedir,;t t
66717 -s,@libdir@,$libdir,;t t
66718 -s,@includedir@,$includedir,;t t
66719 -s,@oldincludedir@,$oldincludedir,;t t
66720 -s,@infodir@,$infodir,;t t
66721 -s,@mandir@,$mandir,;t t
66722 -s,@build_alias@,$build_alias,;t t
66723 -s,@host_alias@,$host_alias,;t t
66724 -s,@target_alias@,$target_alias,;t t
66725 -s,@DEFS@,$DEFS,;t t
66726 -s,@ECHO_C@,$ECHO_C,;t t
66727 -s,@ECHO_N@,$ECHO_N,;t t
66728 -s,@ECHO_T@,$ECHO_T,;t t
66729 -s,@LIBS@,$LIBS,;t t
66730 -s,@build@,$build,;t t
66731 -s,@build_cpu@,$build_cpu,;t t
66732 -s,@build_vendor@,$build_vendor,;t t
66733 -s,@build_os@,$build_os,;t t
66734 -s,@host@,$host,;t t
66735 -s,@host_cpu@,$host_cpu,;t t
66736 -s,@host_vendor@,$host_vendor,;t t
66737 -s,@host_os@,$host_os,;t t
66738 -s,@target@,$target,;t t
66739 -s,@target_cpu@,$target_cpu,;t t
66740 -s,@target_vendor@,$target_vendor,;t t
66741 -s,@target_os@,$target_os,;t t
66742 -s,@CC@,$CC,;t t
66743 -s,@CFLAGS@,$CFLAGS,;t t
66744 -s,@LDFLAGS@,$LDFLAGS,;t t
66745 -s,@CPPFLAGS@,$CPPFLAGS,;t t
66746 -s,@ac_ct_CC@,$ac_ct_CC,;t t
66747 -s,@EXEEXT@,$EXEEXT,;t t
66748 -s,@OBJEXT@,$OBJEXT,;t t
66749 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
66750 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
66751 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
66752 -s,@CYGPATH_W@,$CYGPATH_W,;t t
66753 -s,@PACKAGE@,$PACKAGE,;t t
66754 -s,@VERSION@,$VERSION,;t t
66755 -s,@ACLOCAL@,$ACLOCAL,;t t
66756 -s,@AUTOCONF@,$AUTOCONF,;t t
66757 -s,@AUTOMAKE@,$AUTOMAKE,;t t
66758 -s,@AUTOHEADER@,$AUTOHEADER,;t t
66759 -s,@MAKEINFO@,$MAKEINFO,;t t
66760 -s,@install_sh@,$install_sh,;t t
66761 -s,@STRIP@,$STRIP,;t t
66762 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
66763 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
66764 -s,@mkdir_p@,$mkdir_p,;t t
66765 -s,@AWK@,$AWK,;t t
66766 -s,@SET_MAKE@,$SET_MAKE,;t t
66767 -s,@am__leading_dot@,$am__leading_dot,;t t
66768 -s,@AMTAR@,$AMTAR,;t t
66769 -s,@am__tar@,$am__tar,;t t
66770 -s,@am__untar@,$am__untar,;t t
66771 -s,@DEPDIR@,$DEPDIR,;t t
66772 -s,@am__include@,$am__include,;t t
66773 -s,@am__quote@,$am__quote,;t t
66774 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
66775 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
66776 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
66777 -s,@CCDEPMODE@,$CCDEPMODE,;t t
66778 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
66779 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
66780 -s,@LN_S@,$LN_S,;t t
66781 -s,@RANLIB@,$RANLIB,;t t
66782 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
66783 -s,@LIBTOOL@,$LIBTOOL,;t t
66784 -s,@use_sysroot@,$use_sysroot,;t t
66785 -s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
66786 -s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
66787 -s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
66788 -s,@NO_WERROR@,$NO_WERROR,;t t
66789 -s,@CPP@,$CPP,;t t
66790 -s,@EGREP@,$EGREP,;t t
66791 -s,@ALLOCA@,$ALLOCA,;t t
66792 -s,@USE_NLS@,$USE_NLS,;t t
66793 -s,@MSGFMT@,$MSGFMT,;t t
66794 -s,@GMSGFMT@,$GMSGFMT,;t t
66795 -s,@XGETTEXT@,$XGETTEXT,;t t
66796 -s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
66797 -s,@CATALOGS@,$CATALOGS,;t t
66798 -s,@CATOBJEXT@,$CATOBJEXT,;t t
66799 -s,@DATADIRNAME@,$DATADIRNAME,;t t
66800 -s,@GMOFILES@,$GMOFILES,;t t
66801 -s,@INSTOBJEXT@,$INSTOBJEXT,;t t
66802 -s,@INTLDEPS@,$INTLDEPS,;t t
66803 -s,@INTLLIBS@,$INTLLIBS,;t t
66804 -s,@INTLOBJS@,$INTLOBJS,;t t
66805 -s,@POFILES@,$POFILES,;t t
66806 -s,@POSUB@,$POSUB,;t t
66807 -s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
66808 -s,@GT_NO@,$GT_NO,;t t
66809 -s,@GT_YES@,$GT_YES,;t t
66810 -s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
66811 -s,@l@,$l,;t t
66812 -s,@YACC@,$YACC,;t t
66813 -s,@LEX@,$LEX,;t t
66814 -s,@LEXLIB@,$LEXLIB,;t t
66815 -s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
66816 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
66817 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
66818 -s,@MAINT@,$MAINT,;t t
66819 -s,@HDEFINES@,$HDEFINES,;t t
66820 -s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
66821 -s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
66822 -s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
66823 -s,@STRINGIFY@,$STRINGIFY,;t t
66824 -s,@EMUL@,$EMUL,;t t
66825 -s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
66826 -s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
66827 -s,@LIB_PATH@,$LIB_PATH,;t t
66828 -s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
66829 -s,@TESTBFDLIB@,$TESTBFDLIB,;t t
66830 -s,@datarootdir@,$datarootdir,;t t
66831 -s,@docdir@,$docdir,;t t
66832 -s,@htmldir@,$htmldir,;t t
66833 -s,@LIBOBJS@,$LIBOBJS,;t t
66834 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
66835 -/@TDIRS@/r $TDIRS
66836 -s,@TDIRS@,,;t t
66837 -CEOF
66838 -
66839 -_ACEOF
66840 -
66841 - cat >>$CONFIG_STATUS <<\_ACEOF
66842 - # Split the substitutions into bite-sized pieces for seds with
66843 - # small command number limits, like on Digital OSF/1 and HP-UX.
66844 - ac_max_sed_lines=48
66845 - ac_sed_frag=1 # Number of current file.
66846 - ac_beg=1 # First line for current file.
66847 - ac_end=$ac_max_sed_lines # Line after last line for current file.
66848 - ac_more_lines=:
66849 - ac_sed_cmds=
66850 - while $ac_more_lines; do
66851 - if test $ac_beg -gt 1; then
66852 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
66853 - else
66854 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
66855 - fi
66856 - if test ! -s $tmp/subs.frag; then
66857 - ac_more_lines=false
66858 - else
66859 - # The purpose of the label and of the branching condition is to
66860 - # speed up the sed processing (if there are no `@' at all, there
66861 - # is no need to browse any of the substitutions).
66862 - # These are the two extra sed commands mentioned above.
66863 - (echo ':t
66864 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
66865 - if test -z "$ac_sed_cmds"; then
66866 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
66867 - else
66868 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
66869 - fi
66870 - ac_sed_frag=`expr $ac_sed_frag + 1`
66871 - ac_beg=$ac_end
66872 - ac_end=`expr $ac_end + $ac_max_sed_lines`
66873 - fi
66874 - done
66875 - if test -z "$ac_sed_cmds"; then
66876 - ac_sed_cmds=cat
66877 +if test -n "$CONFIG_FILES"; then
66878 +
66879 +_ACEOF
66880 +
66881 +# Create sed commands to just substitute file output variables.
66882 +
66883 +# Remaining file output variables are in a fragment that also has non-file
66884 +# output varibles.
66885 +
66886 +
66887 +
66888 +ac_delim='%!_!# '
66889 +for ac_last_try in false false false false false :; do
66890 + cat >conf$$subs.sed <<_ACEOF
66891 +SHELL!$SHELL$ac_delim
66892 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
66893 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
66894 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
66895 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
66896 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
66897 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
66898 +exec_prefix!$exec_prefix$ac_delim
66899 +prefix!$prefix$ac_delim
66900 +program_transform_name!$program_transform_name$ac_delim
66901 +bindir!$bindir$ac_delim
66902 +sbindir!$sbindir$ac_delim
66903 +libexecdir!$libexecdir$ac_delim
66904 +datarootdir!$datarootdir$ac_delim
66905 +datadir!$datadir$ac_delim
66906 +sysconfdir!$sysconfdir$ac_delim
66907 +sharedstatedir!$sharedstatedir$ac_delim
66908 +localstatedir!$localstatedir$ac_delim
66909 +includedir!$includedir$ac_delim
66910 +oldincludedir!$oldincludedir$ac_delim
66911 +docdir!$docdir$ac_delim
66912 +infodir!$infodir$ac_delim
66913 +htmldir!$htmldir$ac_delim
66914 +dvidir!$dvidir$ac_delim
66915 +pdfdir!$pdfdir$ac_delim
66916 +psdir!$psdir$ac_delim
66917 +libdir!$libdir$ac_delim
66918 +localedir!$localedir$ac_delim
66919 +mandir!$mandir$ac_delim
66920 +DEFS!$DEFS$ac_delim
66921 +ECHO_C!$ECHO_C$ac_delim
66922 +ECHO_N!$ECHO_N$ac_delim
66923 +ECHO_T!$ECHO_T$ac_delim
66924 +LIBS!$LIBS$ac_delim
66925 +build_alias!$build_alias$ac_delim
66926 +host_alias!$host_alias$ac_delim
66927 +target_alias!$target_alias$ac_delim
66928 +build!$build$ac_delim
66929 +build_cpu!$build_cpu$ac_delim
66930 +build_vendor!$build_vendor$ac_delim
66931 +build_os!$build_os$ac_delim
66932 +host!$host$ac_delim
66933 +host_cpu!$host_cpu$ac_delim
66934 +host_vendor!$host_vendor$ac_delim
66935 +host_os!$host_os$ac_delim
66936 +target!$target$ac_delim
66937 +target_cpu!$target_cpu$ac_delim
66938 +target_vendor!$target_vendor$ac_delim
66939 +target_os!$target_os$ac_delim
66940 +CC!$CC$ac_delim
66941 +CFLAGS!$CFLAGS$ac_delim
66942 +LDFLAGS!$LDFLAGS$ac_delim
66943 +CPPFLAGS!$CPPFLAGS$ac_delim
66944 +ac_ct_CC!$ac_ct_CC$ac_delim
66945 +EXEEXT!$EXEEXT$ac_delim
66946 +OBJEXT!$OBJEXT$ac_delim
66947 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
66948 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
66949 +INSTALL_DATA!$INSTALL_DATA$ac_delim
66950 +CYGPATH_W!$CYGPATH_W$ac_delim
66951 +PACKAGE!$PACKAGE$ac_delim
66952 +VERSION!$VERSION$ac_delim
66953 +ACLOCAL!$ACLOCAL$ac_delim
66954 +AUTOCONF!$AUTOCONF$ac_delim
66955 +AUTOMAKE!$AUTOMAKE$ac_delim
66956 +AUTOHEADER!$AUTOHEADER$ac_delim
66957 +MAKEINFO!$MAKEINFO$ac_delim
66958 +install_sh!$install_sh$ac_delim
66959 +STRIP!$STRIP$ac_delim
66960 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
66961 +mkdir_p!$mkdir_p$ac_delim
66962 +AWK!$AWK$ac_delim
66963 +SET_MAKE!$SET_MAKE$ac_delim
66964 +am__leading_dot!$am__leading_dot$ac_delim
66965 +AMTAR!$AMTAR$ac_delim
66966 +am__tar!$am__tar$ac_delim
66967 +am__untar!$am__untar$ac_delim
66968 +DEPDIR!$DEPDIR$ac_delim
66969 +am__include!$am__include$ac_delim
66970 +am__quote!$am__quote$ac_delim
66971 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
66972 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
66973 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
66974 +CCDEPMODE!$CCDEPMODE$ac_delim
66975 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
66976 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
66977 +LN_S!$LN_S$ac_delim
66978 +RANLIB!$RANLIB$ac_delim
66979 +LIBTOOL!$LIBTOOL$ac_delim
66980 +use_sysroot!$use_sysroot$ac_delim
66981 +TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
66982 +TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
66983 +WARN_CFLAGS!$WARN_CFLAGS$ac_delim
66984 +NO_WERROR!$NO_WERROR$ac_delim
66985 +_ACEOF
66986 +
66987 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
66988 + break
66989 + elif $ac_last_try; then
66990 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
66991 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
66992 + { (exit 1); exit 1; }; }
66993 + else
66994 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
66995 fi
66996 -fi # test -n "$CONFIG_FILES"
66997 +done
66998 +
66999 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
67000 +if test -n "$ac_eof"; then
67001 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
67002 + ac_eof=`expr $ac_eof + 1`
67003 +fi
67004 +
67005 +cat >>$CONFIG_STATUS <<_ACEOF
67006 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
67007 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
67008 +/^[ ]*@TDIRS@[ ]*$/{
67009 +r $TDIRS
67010 +d
67011 +}
67012 +_ACEOF
67013 +sed '
67014 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
67015 +s/^/s,@/; s/!/@,|#_!!_#|/
67016 +:n
67017 +t n
67018 +s/'"$ac_delim"'$/,g/; t
67019 +s/$/\\/; p
67020 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
67021 +' >>$CONFIG_STATUS <conf$$subs.sed
67022 +rm -f conf$$subs.sed
67023 +cat >>$CONFIG_STATUS <<_ACEOF
67024 +CEOF$ac_eof
67025 +_ACEOF
67026 +
67027 +
67028 +ac_delim='%!_!# '
67029 +for ac_last_try in false false false false false :; do
67030 + cat >conf$$subs.sed <<_ACEOF
67031 +CPP!$CPP$ac_delim
67032 +GREP!$GREP$ac_delim
67033 +EGREP!$EGREP$ac_delim
67034 +ALLOCA!$ALLOCA$ac_delim
67035 +USE_NLS!$USE_NLS$ac_delim
67036 +MSGFMT!$MSGFMT$ac_delim
67037 +GMSGFMT!$GMSGFMT$ac_delim
67038 +XGETTEXT!$XGETTEXT$ac_delim
67039 +USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
67040 +CATALOGS!$CATALOGS$ac_delim
67041 +CATOBJEXT!$CATOBJEXT$ac_delim
67042 +DATADIRNAME!$DATADIRNAME$ac_delim
67043 +GMOFILES!$GMOFILES$ac_delim
67044 +INSTOBJEXT!$INSTOBJEXT$ac_delim
67045 +INTLDEPS!$INTLDEPS$ac_delim
67046 +INTLLIBS!$INTLLIBS$ac_delim
67047 +INTLOBJS!$INTLOBJS$ac_delim
67048 +POFILES!$POFILES$ac_delim
67049 +POSUB!$POSUB$ac_delim
67050 +INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
67051 +GT_NO!$GT_NO$ac_delim
67052 +GT_YES!$GT_YES$ac_delim
67053 +MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
67054 +l!$l$ac_delim
67055 +YACC!$YACC$ac_delim
67056 +YFLAGS!$YFLAGS$ac_delim
67057 +LEX!$LEX$ac_delim
67058 +LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
67059 +LEXLIB!$LEXLIB$ac_delim
67060 +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
67061 +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
67062 +MAINT!$MAINT$ac_delim
67063 +HDEFINES!$HDEFINES$ac_delim
67064 +HOSTING_CRT0!$HOSTING_CRT0$ac_delim
67065 +HOSTING_LIBS!$HOSTING_LIBS$ac_delim
67066 +NATIVE_LIB_DIRS!$NATIVE_LIB_DIRS$ac_delim
67067 +STRINGIFY!$STRINGIFY$ac_delim
67068 +EMUL!$EMUL$ac_delim
67069 +EMULATION_OFILES!$EMULATION_OFILES$ac_delim
67070 +EMUL_EXTRA_OFILES!$EMUL_EXTRA_OFILES$ac_delim
67071 +LIB_PATH!$LIB_PATH$ac_delim
67072 +EMULATION_LIBPATH!$EMULATION_LIBPATH$ac_delim
67073 +TESTBFDLIB!$TESTBFDLIB$ac_delim
67074 +LIBOBJS!$LIBOBJS$ac_delim
67075 +LTLIBOBJS!$LTLIBOBJS$ac_delim
67076 +_ACEOF
67077 +
67078 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
67079 + break
67080 + elif $ac_last_try; then
67081 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
67082 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
67083 + { (exit 1); exit 1; }; }
67084 + else
67085 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
67086 + fi
67087 +done
67088 +
67089 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
67090 +if test -n "$ac_eof"; then
67091 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
67092 + ac_eof=`expr $ac_eof + 1`
67093 +fi
67094
67095 +cat >>$CONFIG_STATUS <<_ACEOF
67096 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
67097 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
67098 +_ACEOF
67099 +sed '
67100 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
67101 +s/^/s,@/; s/!/@,|#_!!_#|/
67102 +:n
67103 +t n
67104 +s/'"$ac_delim"'$/,g/; t
67105 +s/$/\\/; p
67106 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
67107 +' >>$CONFIG_STATUS <conf$$subs.sed
67108 +rm -f conf$$subs.sed
67109 +cat >>$CONFIG_STATUS <<_ACEOF
67110 +:end
67111 +s/|#_!!_#|//g
67112 +CEOF$ac_eof
67113 _ACEOF
67114 +
67115 +
67116 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
67117 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
67118 +# trailing colons and then remove the whole line if VPATH becomes empty
67119 +# (actually we leave an empty line to preserve line numbers).
67120 +if test "x$srcdir" = x.; then
67121 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
67122 +s/:*\$(srcdir):*/:/
67123 +s/:*\${srcdir}:*/:/
67124 +s/:*@srcdir@:*/:/
67125 +s/^\([^=]*=[ ]*\):*/\1/
67126 +s/:*$//
67127 +s/^[^=]*=[ ]*$//
67128 +}'
67129 +fi
67130 +
67131 cat >>$CONFIG_STATUS <<\_ACEOF
67132 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
67133 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
67134 - case $ac_file in
67135 - - | *:- | *:-:* ) # input from stdin
67136 - cat >$tmp/stdin
67137 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67138 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67139 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67140 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67141 - * ) ac_file_in=$ac_file.in ;;
67142 +fi # test -n "$CONFIG_FILES"
67143 +
67144 +
67145 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
67146 +do
67147 + case $ac_tag in
67148 + :[FHLC]) ac_mode=$ac_tag; continue;;
67149 + esac
67150 + case $ac_mode$ac_tag in
67151 + :[FHL]*:*);;
67152 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
67153 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
67154 + { (exit 1); exit 1; }; };;
67155 + :[FH]-) ac_tag=-:-;;
67156 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
67157 + esac
67158 + ac_save_IFS=$IFS
67159 + IFS=:
67160 + set x $ac_tag
67161 + IFS=$ac_save_IFS
67162 + shift
67163 + ac_file=$1
67164 + shift
67165 +
67166 + case $ac_mode in
67167 + :L) ac_source=$1;;
67168 + :[FH])
67169 + ac_file_inputs=
67170 + for ac_f
67171 + do
67172 + case $ac_f in
67173 + -) ac_f="$tmp/stdin";;
67174 + *) # Look for the file first in the build tree, then in the source tree
67175 + # (if the path is not absolute). The absolute path cannot be DOS-style,
67176 + # because $ac_f cannot contain `:'.
67177 + test -f "$ac_f" ||
67178 + case $ac_f in
67179 + [\\/$]*) false;;
67180 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
67181 + esac ||
67182 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
67183 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
67184 + { (exit 1); exit 1; }; };;
67185 + esac
67186 + ac_file_inputs="$ac_file_inputs $ac_f"
67187 + done
67188 +
67189 + # Let's still pretend it is `configure' which instantiates (i.e., don't
67190 + # use $as_me), people would be surprised to read:
67191 + # /* config.h. Generated by config.status. */
67192 + configure_input="Generated from "`IFS=:
67193 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
67194 + if test x"$ac_file" != x-; then
67195 + configure_input="$ac_file. $configure_input"
67196 + { echo "$as_me:$LINENO: creating $ac_file" >&5
67197 +echo "$as_me: creating $ac_file" >&6;}
67198 + fi
67199 +
67200 + case $ac_tag in
67201 + *:-:* | *:-) cat >"$tmp/stdin";;
67202 + esac
67203 + ;;
67204 esac
67205
67206 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
67207 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
67208 + ac_dir=`$as_dirname -- "$ac_file" ||
67209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67210 X"$ac_file" : 'X\(//\)[^/]' \| \
67211 X"$ac_file" : 'X\(//\)$' \| \
67212 - X"$ac_file" : 'X\(/\)' \| \
67213 - . : '\(.\)' 2>/dev/null ||
67214 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
67215 echo X"$ac_file" |
67216 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67217 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67218 - /^X\(\/\/\)$/{ s//\1/; q; }
67219 - /^X\(\/\).*/{ s//\1/; q; }
67220 - s/.*/./; q'`
67221 - { if $as_mkdir_p; then
67222 - mkdir -p "$ac_dir"
67223 - else
67224 - as_dir="$ac_dir"
67225 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67226 + s//\1/
67227 + q
67228 + }
67229 + /^X\(\/\/\)[^/].*/{
67230 + s//\1/
67231 + q
67232 + }
67233 + /^X\(\/\/\)$/{
67234 + s//\1/
67235 + q
67236 + }
67237 + /^X\(\/\).*/{
67238 + s//\1/
67239 + q
67240 + }
67241 + s/.*/./; q'`
67242 + { as_dir="$ac_dir"
67243 + case $as_dir in #(
67244 + -*) as_dir=./$as_dir;;
67245 + esac
67246 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
67247 as_dirs=
67248 - while test ! -d "$as_dir"; do
67249 - as_dirs="$as_dir $as_dirs"
67250 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
67251 + while :; do
67252 + case $as_dir in #(
67253 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
67254 + *) as_qdir=$as_dir;;
67255 + esac
67256 + as_dirs="'$as_qdir' $as_dirs"
67257 + as_dir=`$as_dirname -- "$as_dir" ||
67258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67259 X"$as_dir" : 'X\(//\)[^/]' \| \
67260 X"$as_dir" : 'X\(//\)$' \| \
67261 - X"$as_dir" : 'X\(/\)' \| \
67262 - . : '\(.\)' 2>/dev/null ||
67263 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
67264 echo X"$as_dir" |
67265 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67266 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67267 - /^X\(\/\/\)$/{ s//\1/; q; }
67268 - /^X\(\/\).*/{ s//\1/; q; }
67269 - s/.*/./; q'`
67270 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67271 + s//\1/
67272 + q
67273 + }
67274 + /^X\(\/\/\)[^/].*/{
67275 + s//\1/
67276 + q
67277 + }
67278 + /^X\(\/\/\)$/{
67279 + s//\1/
67280 + q
67281 + }
67282 + /^X\(\/\).*/{
67283 + s//\1/
67284 + q
67285 + }
67286 + s/.*/./; q'`
67287 + test -d "$as_dir" && break
67288 done
67289 - test ! -n "$as_dirs" || mkdir $as_dirs
67290 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
67291 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
67292 + test -z "$as_dirs" || eval "mkdir $as_dirs"
67293 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
67294 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
67295 { (exit 1); exit 1; }; }; }
67296 -
67297 ac_builddir=.
67298
67299 -if test "$ac_dir" != .; then
67300 +case "$ac_dir" in
67301 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
67302 +*)
67303 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
67304 - # A "../" for each directory in $ac_dir_suffix.
67305 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
67306 -else
67307 - ac_dir_suffix= ac_top_builddir=
67308 -fi
67309 + # A ".." for each directory in $ac_dir_suffix.
67310 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
67311 + case $ac_top_builddir_sub in
67312 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
67313 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
67314 + esac ;;
67315 +esac
67316 +ac_abs_top_builddir=$ac_pwd
67317 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
67318 +# for backward compatibility:
67319 +ac_top_builddir=$ac_top_build_prefix
67320
67321 case $srcdir in
67322 - .) # No --srcdir option. We are building in place.
67323 + .) # We are building in place.
67324 ac_srcdir=.
67325 - if test -z "$ac_top_builddir"; then
67326 - ac_top_srcdir=.
67327 - else
67328 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
67329 - fi ;;
67330 - [\\/]* | ?:[\\/]* ) # Absolute path.
67331 + ac_top_srcdir=$ac_top_builddir_sub
67332 + ac_abs_top_srcdir=$ac_pwd ;;
67333 + [\\/]* | ?:[\\/]* ) # Absolute name.
67334 ac_srcdir=$srcdir$ac_dir_suffix;
67335 - ac_top_srcdir=$srcdir ;;
67336 - *) # Relative path.
67337 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
67338 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
67339 -esac
67340 + ac_top_srcdir=$srcdir
67341 + ac_abs_top_srcdir=$srcdir ;;
67342 + *) # Relative name.
67343 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
67344 + ac_top_srcdir=$ac_top_build_prefix$srcdir
67345 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
67346 +esac
67347 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
67348
67349 -# Do not use `cd foo && pwd` to compute absolute paths, because
67350 -# the directories may not exist.
67351 -case `pwd` in
67352 -.) ac_abs_builddir="$ac_dir";;
67353 -*)
67354 - case "$ac_dir" in
67355 - .) ac_abs_builddir=`pwd`;;
67356 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
67357 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
67358 - esac;;
67359 -esac
67360 -case $ac_abs_builddir in
67361 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
67362 -*)
67363 - case ${ac_top_builddir}. in
67364 - .) ac_abs_top_builddir=$ac_abs_builddir;;
67365 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
67366 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
67367 - esac;;
67368 -esac
67369 -case $ac_abs_builddir in
67370 -.) ac_abs_srcdir=$ac_srcdir;;
67371 -*)
67372 - case $ac_srcdir in
67373 - .) ac_abs_srcdir=$ac_abs_builddir;;
67374 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
67375 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
67376 - esac;;
67377 -esac
67378 -case $ac_abs_builddir in
67379 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
67380 -*)
67381 - case $ac_top_srcdir in
67382 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
67383 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
67384 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
67385 - esac;;
67386 -esac
67387
67388 + case $ac_mode in
67389 + :F)
67390 + #
67391 + # CONFIG_FILE
67392 + #
67393
67394 case $INSTALL in
67395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
67396 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
67397 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
67398 esac
67399 +_ACEOF
67400
67401 - if test x"$ac_file" != x-; then
67402 - { echo "$as_me:$LINENO: creating $ac_file" >&5
67403 -echo "$as_me: creating $ac_file" >&6;}
67404 - rm -f "$ac_file"
67405 - fi
67406 - # Let's still pretend it is `configure' which instantiates (i.e., don't
67407 - # use $as_me), people would be surprised to read:
67408 - # /* config.h. Generated by config.status. */
67409 - if test x"$ac_file" = x-; then
67410 - configure_input=
67411 - else
67412 - configure_input="$ac_file. "
67413 - fi
67414 - configure_input=$configure_input"Generated from `echo $ac_file_in |
67415 - sed 's,.*/,,'` by configure."
67416 -
67417 - # First look for the input files in the build tree, otherwise in the
67418 - # src tree.
67419 - ac_file_inputs=`IFS=:
67420 - for f in $ac_file_in; do
67421 - case $f in
67422 - -) echo $tmp/stdin ;;
67423 - [\\/$]*)
67424 - # Absolute (can't be DOS-style, as IFS=:)
67425 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67426 -echo "$as_me: error: cannot find input file: $f" >&2;}
67427 - { (exit 1); exit 1; }; }
67428 - echo "$f";;
67429 - *) # Relative
67430 - if test -f "$f"; then
67431 - # Build tree
67432 - echo "$f"
67433 - elif test -f "$srcdir/$f"; then
67434 - # Source tree
67435 - echo "$srcdir/$f"
67436 - else
67437 - # /dev/null tree
67438 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67439 -echo "$as_me: error: cannot find input file: $f" >&2;}
67440 - { (exit 1); exit 1; }; }
67441 - fi;;
67442 - esac
67443 - done` || { (exit 1); exit 1; }
67444 +cat >>$CONFIG_STATUS <<\_ACEOF
67445 +# If the template does not know about datarootdir, expand it.
67446 +# FIXME: This hack should be removed a few years after 2.60.
67447 +ac_datarootdir_hack=; ac_datarootdir_seen=
67448 +
67449 +case `sed -n '/datarootdir/ {
67450 + p
67451 + q
67452 +}
67453 +/@datadir@/p
67454 +/@docdir@/p
67455 +/@infodir@/p
67456 +/@localedir@/p
67457 +/@mandir@/p
67458 +' $ac_file_inputs` in
67459 +*datarootdir*) ac_datarootdir_seen=yes;;
67460 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
67461 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
67462 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
67463 _ACEOF
67464 cat >>$CONFIG_STATUS <<_ACEOF
67465 + ac_datarootdir_hack='
67466 + s&@datadir@&$datadir&g
67467 + s&@docdir@&$docdir&g
67468 + s&@infodir@&$infodir&g
67469 + s&@localedir@&$localedir&g
67470 + s&@mandir@&$mandir&g
67471 + s&\\\${datarootdir}&$datarootdir&g' ;;
67472 +esac
67473 +_ACEOF
67474 +
67475 +# Neutralize VPATH when `$srcdir' = `.'.
67476 +# Shell code in configure.ac might set extrasub.
67477 +# FIXME: do we really want to maintain this feature?
67478 +cat >>$CONFIG_STATUS <<_ACEOF
67479 sed "$ac_vpsub
67480 $extrasub
67481 _ACEOF
67482 cat >>$CONFIG_STATUS <<\_ACEOF
67483 :t
67484 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
67485 -s,@configure_input@,$configure_input,;t t
67486 -s,@srcdir@,$ac_srcdir,;t t
67487 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
67488 -s,@top_srcdir@,$ac_top_srcdir,;t t
67489 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
67490 -s,@builddir@,$ac_builddir,;t t
67491 -s,@abs_builddir@,$ac_abs_builddir,;t t
67492 -s,@top_builddir@,$ac_top_builddir,;t t
67493 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
67494 -s,@INSTALL@,$ac_INSTALL,;t t
67495 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
67496 - rm -f $tmp/stdin
67497 - if test x"$ac_file" != x-; then
67498 - mv $tmp/out $ac_file
67499 - else
67500 - cat $tmp/out
67501 - rm -f $tmp/out
67502 - fi
67503 -
67504 -done
67505 -_ACEOF
67506 -cat >>$CONFIG_STATUS <<\_ACEOF
67507 -
67508 -#
67509 -# CONFIG_HEADER section.
67510 -#
67511 -
67512 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
67513 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
67514 -#
67515 -# ac_d sets the value in "#define NAME VALUE" lines.
67516 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
67517 -ac_dB='[ ].*$,\1#\2'
67518 -ac_dC=' '
67519 -ac_dD=',;t'
67520 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
67521 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
67522 -ac_uB='$,\1#\2define\3'
67523 -ac_uC=' '
67524 -ac_uD=',;t'
67525 +s&@configure_input@&$configure_input&;t t
67526 +s&@top_builddir@&$ac_top_builddir_sub&;t t
67527 +s&@srcdir@&$ac_srcdir&;t t
67528 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
67529 +s&@top_srcdir@&$ac_top_srcdir&;t t
67530 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
67531 +s&@builddir@&$ac_builddir&;t t
67532 +s&@abs_builddir@&$ac_abs_builddir&;t t
67533 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
67534 +s&@INSTALL@&$ac_INSTALL&;t t
67535 +$ac_datarootdir_hack
67536 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
67537 +
67538 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
67539 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
67540 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
67541 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67542 +which seems to be undefined. Please make sure it is defined." >&5
67543 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67544 +which seems to be undefined. Please make sure it is defined." >&2;}
67545
67546 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
67547 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
67548 + rm -f "$tmp/stdin"
67549 case $ac_file in
67550 - - | *:- | *:-:* ) # input from stdin
67551 - cat >$tmp/stdin
67552 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67553 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67554 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67555 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67556 - * ) ac_file_in=$ac_file.in ;;
67557 + -) cat "$tmp/out"; rm -f "$tmp/out";;
67558 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
67559 esac
67560 + ;;
67561 + :H)
67562 + #
67563 + # CONFIG_HEADER
67564 + #
67565 +_ACEOF
67566 +
67567 +# Transform confdefs.h into a sed script `conftest.defines', that
67568 +# substitutes the proper values into config.h.in to produce config.h.
67569 +rm -f conftest.defines conftest.tail
67570 +# First, append a space to every undef/define line, to ease matching.
67571 +echo 's/$/ /' >conftest.defines
67572 +# Then, protect against being on the right side of a sed subst, or in
67573 +# an unquoted here document, in config.status. If some macros were
67574 +# called several times there might be several #defines for the same
67575 +# symbol, which is useless. But do not sort them, since the last
67576 +# AC_DEFINE must be honored.
67577 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
67578 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
67579 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
67580 +# PARAMS is the parameter list in the macro definition--in most cases, it's
67581 +# just an empty string.
67582 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
67583 +ac_dB='\\)[ (].*,\\1define\\2'
67584 +ac_dC=' '
67585 +ac_dD=' ,'
67586
67587 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
67588 -echo "$as_me: creating $ac_file" >&6;}
67589 -
67590 - # First look for the input files in the build tree, otherwise in the
67591 - # src tree.
67592 - ac_file_inputs=`IFS=:
67593 - for f in $ac_file_in; do
67594 - case $f in
67595 - -) echo $tmp/stdin ;;
67596 - [\\/$]*)
67597 - # Absolute (can't be DOS-style, as IFS=:)
67598 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67599 -echo "$as_me: error: cannot find input file: $f" >&2;}
67600 - { (exit 1); exit 1; }; }
67601 - # Do quote $f, to prevent DOS paths from being IFS'd.
67602 - echo "$f";;
67603 - *) # Relative
67604 - if test -f "$f"; then
67605 - # Build tree
67606 - echo "$f"
67607 - elif test -f "$srcdir/$f"; then
67608 - # Source tree
67609 - echo "$srcdir/$f"
67610 - else
67611 - # /dev/null tree
67612 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67613 -echo "$as_me: error: cannot find input file: $f" >&2;}
67614 - { (exit 1); exit 1; }; }
67615 - fi;;
67616 - esac
67617 - done` || { (exit 1); exit 1; }
67618 - # Remove the trailing spaces.
67619 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
67620 -
67621 -_ACEOF
67622 -
67623 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
67624 -# `conftest.undefs', that substitutes the proper values into
67625 -# config.h.in to produce config.h. The first handles `#define'
67626 -# templates, and the second `#undef' templates.
67627 -# And first: Protect against being on the right side of a sed subst in
67628 -# config.status. Protect against being in an unquoted here document
67629 -# in config.status.
67630 -rm -f conftest.defines conftest.undefs
67631 -# Using a here document instead of a string reduces the quoting nightmare.
67632 -# Putting comments in sed scripts is not portable.
67633 -#
67634 -# `end' is used to avoid that the second main sed command (meant for
67635 -# 0-ary CPP macros) applies to n-ary macro definitions.
67636 -# See the Autoconf documentation for `clear'.
67637 -cat >confdef2sed.sed <<\_ACEOF
67638 -s/[\\&,]/\\&/g
67639 -s,[\\$`],\\&,g
67640 -t clear
67641 -: clear
67642 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
67643 -t end
67644 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
67645 -: end
67646 -_ACEOF
67647 -# If some macros were called several times there might be several times
67648 -# the same #defines, which is useless. Nevertheless, we may not want to
67649 -# sort them, since we want the *last* AC-DEFINE to be honored.
67650 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
67651 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
67652 -rm -f confdef2sed.sed
67653 +uniq confdefs.h |
67654 + sed -n '
67655 + t rset
67656 + :rset
67657 + s/^[ ]*#[ ]*define[ ][ ]*//
67658 + t ok
67659 + d
67660 + :ok
67661 + s/[\\&,]/\\&/g
67662 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
67663 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
67664 + ' >>conftest.defines
67665
67666 -# This sed command replaces #undef with comments. This is necessary, for
67667 +# Remove the space that was appended to ease matching.
67668 +# Then replace #undef with comments. This is necessary, for
67669 # example, in the case of _POSIX_SOURCE, which is predefined and required
67670 # on some systems where configure will not decide to define it.
67671 -cat >>conftest.undefs <<\_ACEOF
67672 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
67673 +# (The regexp can be short, since the line contains either #define or #undef.)
67674 +echo 's/ $//
67675 +s,^[ #]*u.*,/* & */,' >>conftest.defines
67676 +
67677 +# Break up conftest.defines:
67678 +ac_max_sed_lines=50
67679 +
67680 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
67681 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
67682 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
67683 +# et cetera.
67684 +ac_in='$ac_file_inputs'
67685 +ac_out='"$tmp/out1"'
67686 +ac_nxt='"$tmp/out2"'
67687 +
67688 +while :
67689 +do
67690 + # Write a here document:
67691 + cat >>$CONFIG_STATUS <<_ACEOF
67692 + # First, check the format of the line:
67693 + cat >"\$tmp/defines.sed" <<\\CEOF
67694 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
67695 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
67696 +b
67697 +:def
67698 _ACEOF
67699 -
67700 -# Break up conftest.defines because some shells have a limit on the size
67701 -# of here documents, and old seds have small limits too (100 cmds).
67702 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
67703 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
67704 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
67705 -echo ' :' >>$CONFIG_STATUS
67706 -rm -f conftest.tail
67707 -while grep . conftest.defines >/dev/null
67708 -do
67709 - # Write a limited-size here document to $tmp/defines.sed.
67710 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
67711 - # Speed up: don't consider the non `#define' lines.
67712 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
67713 - # Work around the forget-to-reset-the-flag bug.
67714 - echo 't clr' >>$CONFIG_STATUS
67715 - echo ': clr' >>$CONFIG_STATUS
67716 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
67717 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
67718 echo 'CEOF
67719 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
67720 - rm -f $tmp/in
67721 - mv $tmp/out $tmp/in
67722 -' >>$CONFIG_STATUS
67723 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
67724 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
67725 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
67726 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
67727 + grep . conftest.tail >/dev/null || break
67728 rm -f conftest.defines
67729 mv conftest.tail conftest.defines
67730 done
67731 -rm -f conftest.defines
67732 -echo ' fi # grep' >>$CONFIG_STATUS
67733 -echo >>$CONFIG_STATUS
67734 -
67735 -# Break up conftest.undefs because some shells have a limit on the size
67736 -# of here documents, and old seds have small limits too (100 cmds).
67737 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
67738 -rm -f conftest.tail
67739 -while grep . conftest.undefs >/dev/null
67740 -do
67741 - # Write a limited-size here document to $tmp/undefs.sed.
67742 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
67743 - # Speed up: don't consider the non `#undef'
67744 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
67745 - # Work around the forget-to-reset-the-flag bug.
67746 - echo 't clr' >>$CONFIG_STATUS
67747 - echo ': clr' >>$CONFIG_STATUS
67748 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
67749 - echo 'CEOF
67750 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
67751 - rm -f $tmp/in
67752 - mv $tmp/out $tmp/in
67753 -' >>$CONFIG_STATUS
67754 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
67755 - rm -f conftest.undefs
67756 - mv conftest.tail conftest.undefs
67757 -done
67758 -rm -f conftest.undefs
67759 +rm -f conftest.defines conftest.tail
67760
67761 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
67762 cat >>$CONFIG_STATUS <<\_ACEOF
67763 - # Let's still pretend it is `configure' which instantiates (i.e., don't
67764 - # use $as_me), people would be surprised to read:
67765 - # /* config.h. Generated by config.status. */
67766 - if test x"$ac_file" = x-; then
67767 - echo "/* Generated by configure. */" >$tmp/config.h
67768 - else
67769 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
67770 - fi
67771 - cat $tmp/in >>$tmp/config.h
67772 - rm -f $tmp/in
67773 if test x"$ac_file" != x-; then
67774 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
67775 + echo "/* $configure_input */" >"$tmp/config.h"
67776 + cat "$ac_result" >>"$tmp/config.h"
67777 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
67778 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
67779 echo "$as_me: $ac_file is unchanged" >&6;}
67780 else
67781 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
67782 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67783 - X"$ac_file" : 'X\(//\)[^/]' \| \
67784 - X"$ac_file" : 'X\(//\)$' \| \
67785 - X"$ac_file" : 'X\(/\)' \| \
67786 - . : '\(.\)' 2>/dev/null ||
67787 -echo X"$ac_file" |
67788 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67789 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67790 - /^X\(\/\/\)$/{ s//\1/; q; }
67791 - /^X\(\/\).*/{ s//\1/; q; }
67792 - s/.*/./; q'`
67793 - { if $as_mkdir_p; then
67794 - mkdir -p "$ac_dir"
67795 - else
67796 - as_dir="$ac_dir"
67797 - as_dirs=
67798 - while test ! -d "$as_dir"; do
67799 - as_dirs="$as_dir $as_dirs"
67800 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
67801 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67802 - X"$as_dir" : 'X\(//\)[^/]' \| \
67803 - X"$as_dir" : 'X\(//\)$' \| \
67804 - X"$as_dir" : 'X\(/\)' \| \
67805 - . : '\(.\)' 2>/dev/null ||
67806 -echo X"$as_dir" |
67807 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67808 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67809 - /^X\(\/\/\)$/{ s//\1/; q; }
67810 - /^X\(\/\).*/{ s//\1/; q; }
67811 - s/.*/./; q'`
67812 - done
67813 - test ! -n "$as_dirs" || mkdir $as_dirs
67814 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
67815 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
67816 - { (exit 1); exit 1; }; }; }
67817 -
67818 rm -f $ac_file
67819 - mv $tmp/config.h $ac_file
67820 + mv "$tmp/config.h" $ac_file
67821 fi
67822 else
67823 - cat $tmp/config.h
67824 - rm -f $tmp/config.h
67825 + echo "/* $configure_input */"
67826 + cat "$ac_result"
67827 fi
67828 + rm -f "$tmp/out12"
67829 # Compute $ac_file's index in $config_headers.
67830 _am_stamp_count=1
67831 for _am_header in $config_headers :; do
67832 @@ -11025,135 +11417,39 @@ for _am_header in $config_headers :; do
67833 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
67834 esac
67835 done
67836 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
67837 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
67838 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67839 X$ac_file : 'X\(//\)[^/]' \| \
67840 X$ac_file : 'X\(//\)$' \| \
67841 - X$ac_file : 'X\(/\)' \| \
67842 - . : '\(.\)' 2>/dev/null ||
67843 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
67844 echo X$ac_file |
67845 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67846 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67847 - /^X\(\/\/\)$/{ s//\1/; q; }
67848 - /^X\(\/\).*/{ s//\1/; q; }
67849 - s/.*/./; q'`/stamp-h$_am_stamp_count
67850 -done
67851 -_ACEOF
67852 -cat >>$CONFIG_STATUS <<\_ACEOF
67853 -
67854 -#
67855 -# CONFIG_COMMANDS section.
67856 -#
67857 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
67858 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
67859 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
67860 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
67861 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67862 - X"$ac_dest" : 'X\(//\)[^/]' \| \
67863 - X"$ac_dest" : 'X\(//\)$' \| \
67864 - X"$ac_dest" : 'X\(/\)' \| \
67865 - . : '\(.\)' 2>/dev/null ||
67866 -echo X"$ac_dest" |
67867 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67868 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67869 - /^X\(\/\/\)$/{ s//\1/; q; }
67870 - /^X\(\/\).*/{ s//\1/; q; }
67871 - s/.*/./; q'`
67872 - { if $as_mkdir_p; then
67873 - mkdir -p "$ac_dir"
67874 - else
67875 - as_dir="$ac_dir"
67876 - as_dirs=
67877 - while test ! -d "$as_dir"; do
67878 - as_dirs="$as_dir $as_dirs"
67879 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
67880 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67881 - X"$as_dir" : 'X\(//\)[^/]' \| \
67882 - X"$as_dir" : 'X\(//\)$' \| \
67883 - X"$as_dir" : 'X\(/\)' \| \
67884 - . : '\(.\)' 2>/dev/null ||
67885 -echo X"$as_dir" |
67886 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67887 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67888 - /^X\(\/\/\)$/{ s//\1/; q; }
67889 - /^X\(\/\).*/{ s//\1/; q; }
67890 - s/.*/./; q'`
67891 - done
67892 - test ! -n "$as_dirs" || mkdir $as_dirs
67893 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
67894 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
67895 - { (exit 1); exit 1; }; }; }
67896 -
67897 - ac_builddir=.
67898 -
67899 -if test "$ac_dir" != .; then
67900 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
67901 - # A "../" for each directory in $ac_dir_suffix.
67902 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
67903 -else
67904 - ac_dir_suffix= ac_top_builddir=
67905 -fi
67906 -
67907 -case $srcdir in
67908 - .) # No --srcdir option. We are building in place.
67909 - ac_srcdir=.
67910 - if test -z "$ac_top_builddir"; then
67911 - ac_top_srcdir=.
67912 - else
67913 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
67914 - fi ;;
67915 - [\\/]* | ?:[\\/]* ) # Absolute path.
67916 - ac_srcdir=$srcdir$ac_dir_suffix;
67917 - ac_top_srcdir=$srcdir ;;
67918 - *) # Relative path.
67919 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
67920 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
67921 -esac
67922 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67923 + s//\1/
67924 + q
67925 + }
67926 + /^X\(\/\/\)[^/].*/{
67927 + s//\1/
67928 + q
67929 + }
67930 + /^X\(\/\/\)$/{
67931 + s//\1/
67932 + q
67933 + }
67934 + /^X\(\/\).*/{
67935 + s//\1/
67936 + q
67937 + }
67938 + s/.*/./; q'`/stamp-h$_am_stamp_count
67939 + ;;
67940
67941 -# Do not use `cd foo && pwd` to compute absolute paths, because
67942 -# the directories may not exist.
67943 -case `pwd` in
67944 -.) ac_abs_builddir="$ac_dir";;
67945 -*)
67946 - case "$ac_dir" in
67947 - .) ac_abs_builddir=`pwd`;;
67948 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
67949 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
67950 - esac;;
67951 -esac
67952 -case $ac_abs_builddir in
67953 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
67954 -*)
67955 - case ${ac_top_builddir}. in
67956 - .) ac_abs_top_builddir=$ac_abs_builddir;;
67957 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
67958 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
67959 - esac;;
67960 -esac
67961 -case $ac_abs_builddir in
67962 -.) ac_abs_srcdir=$ac_srcdir;;
67963 -*)
67964 - case $ac_srcdir in
67965 - .) ac_abs_srcdir=$ac_abs_builddir;;
67966 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
67967 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
67968 - esac;;
67969 -esac
67970 -case $ac_abs_builddir in
67971 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
67972 -*)
67973 - case $ac_top_srcdir in
67974 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
67975 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
67976 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
67977 - esac;;
67978 -esac
67979 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
67980 +echo "$as_me: executing $ac_file commands" >&6;}
67981 + ;;
67982 + esac
67983
67984
67985 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
67986 -echo "$as_me: executing $ac_dest commands" >&6;}
67987 - case $ac_dest in
67988 - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
67989 + case $ac_file$ac_mode in
67990 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
67991 # Strip MF so we end up with the name of the file.
67992 mf=`echo "$mf" | sed -e 's/:.*$//'`
67993 # Check whether this is an Automake generated Makefile or not.
67994 @@ -11163,18 +11459,29 @@ echo "$as_me: executing $ac_dest command
67995 # each Makefile.in and add a new line on top of each file to say so.
67996 # So let's grep whole file.
67997 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
67998 - dirpart=`(dirname "$mf") 2>/dev/null ||
67999 + dirpart=`$as_dirname -- "$mf" ||
68000 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68001 X"$mf" : 'X\(//\)[^/]' \| \
68002 X"$mf" : 'X\(//\)$' \| \
68003 - X"$mf" : 'X\(/\)' \| \
68004 - . : '\(.\)' 2>/dev/null ||
68005 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
68006 echo X"$mf" |
68007 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
68008 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
68009 - /^X\(\/\/\)$/{ s//\1/; q; }
68010 - /^X\(\/\).*/{ s//\1/; q; }
68011 - s/.*/./; q'`
68012 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68013 + s//\1/
68014 + q
68015 + }
68016 + /^X\(\/\/\)[^/].*/{
68017 + s//\1/
68018 + q
68019 + }
68020 + /^X\(\/\/\)$/{
68021 + s//\1/
68022 + q
68023 + }
68024 + /^X\(\/\).*/{
68025 + s//\1/
68026 + q
68027 + }
68028 + s/.*/./; q'`
68029 else
68030 continue
68031 fi
68032 @@ -11196,54 +11503,80 @@ echo X"$mf" |
68033 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
68034 # Make sure the directory exists.
68035 test -f "$dirpart/$file" && continue
68036 - fdir=`(dirname "$file") 2>/dev/null ||
68037 + fdir=`$as_dirname -- "$file" ||
68038 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68039 X"$file" : 'X\(//\)[^/]' \| \
68040 X"$file" : 'X\(//\)$' \| \
68041 - X"$file" : 'X\(/\)' \| \
68042 - . : '\(.\)' 2>/dev/null ||
68043 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
68044 echo X"$file" |
68045 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
68046 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
68047 - /^X\(\/\/\)$/{ s//\1/; q; }
68048 - /^X\(\/\).*/{ s//\1/; q; }
68049 - s/.*/./; q'`
68050 - { if $as_mkdir_p; then
68051 - mkdir -p $dirpart/$fdir
68052 - else
68053 - as_dir=$dirpart/$fdir
68054 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68055 + s//\1/
68056 + q
68057 + }
68058 + /^X\(\/\/\)[^/].*/{
68059 + s//\1/
68060 + q
68061 + }
68062 + /^X\(\/\/\)$/{
68063 + s//\1/
68064 + q
68065 + }
68066 + /^X\(\/\).*/{
68067 + s//\1/
68068 + q
68069 + }
68070 + s/.*/./; q'`
68071 + { as_dir=$dirpart/$fdir
68072 + case $as_dir in #(
68073 + -*) as_dir=./$as_dir;;
68074 + esac
68075 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
68076 as_dirs=
68077 - while test ! -d "$as_dir"; do
68078 - as_dirs="$as_dir $as_dirs"
68079 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
68080 + while :; do
68081 + case $as_dir in #(
68082 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
68083 + *) as_qdir=$as_dir;;
68084 + esac
68085 + as_dirs="'$as_qdir' $as_dirs"
68086 + as_dir=`$as_dirname -- "$as_dir" ||
68087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68088 X"$as_dir" : 'X\(//\)[^/]' \| \
68089 X"$as_dir" : 'X\(//\)$' \| \
68090 - X"$as_dir" : 'X\(/\)' \| \
68091 - . : '\(.\)' 2>/dev/null ||
68092 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
68093 echo X"$as_dir" |
68094 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
68095 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
68096 - /^X\(\/\/\)$/{ s//\1/; q; }
68097 - /^X\(\/\).*/{ s//\1/; q; }
68098 - s/.*/./; q'`
68099 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68100 + s//\1/
68101 + q
68102 + }
68103 + /^X\(\/\/\)[^/].*/{
68104 + s//\1/
68105 + q
68106 + }
68107 + /^X\(\/\/\)$/{
68108 + s//\1/
68109 + q
68110 + }
68111 + /^X\(\/\).*/{
68112 + s//\1/
68113 + q
68114 + }
68115 + s/.*/./; q'`
68116 + test -d "$as_dir" && break
68117 done
68118 - test ! -n "$as_dirs" || mkdir $as_dirs
68119 - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
68120 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
68121 + test -z "$as_dirs" || eval "mkdir $as_dirs"
68122 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
68123 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
68124 { (exit 1); exit 1; }; }; }
68125 -
68126 # echo "creating $dirpart/$file"
68127 echo '# dummy' > "$dirpart/$file"
68128 done
68129 done
68130 ;;
68131 - default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
68132 + "default":C) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
68133 +
68134 esac
68135 -done
68136 -_ACEOF
68137 +done # for ac_tag
68138
68139 -cat >>$CONFIG_STATUS <<\_ACEOF
68140
68141 { (exit 0); exit 0; }
68142 _ACEOF
68143 --- a/ld/configure.tgt
68144 +++ b/ld/configure.tgt
68145 @@ -81,8 +81,10 @@ xscale-*-coff) targ_emul=armcoff ;;
68146 xscale-*-elf) targ_emul=armelf
68147 ;;
68148 avr-*-*) targ_emul=avr2
68149 - targ_extra_emuls="avr1 avr3 avr4 avr5"
68150 - ;;
68151 + targ_extra_emuls="avr1 avr3 avr4 avr5" ;;
68152 +avr32-*-none) targ_emul=avr32elf_ap7000
68153 + targ_extra_emuls="avr32elf_uc3a0128 avr32elf_uc3a0256 avr32elf_uc3a0512 avr32elf_uc3a1128 avr32elf_uc3a1256 avr32elf_uc3a1512 avr32elf_uc3b064 avr32elf_uc3b0128 avr32elf_uc3b0256 avr32elf_uc3b164 avr32elf_uc3b1128 avr32elf_uc3b1256" ;;
68154 +avr32-*-linux*) targ_emul=avr32linux ;;
68155 bfin-*-elf) targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
68156 bfin-*-uclinux*) targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
68157 cr16c-*-elf*) targ_emul=elf32cr16c
68158 --- /dev/null
68159 +++ b/ld/emulparams/avr32elf_ap7000.sh
68160 @@ -0,0 +1,35 @@
68161 +MACHINE=ap
68162 +SCRIPT_NAME=elf_xip
68163 +TEMPLATE_NAME=elf32
68164 +EXTRA_EM_FILE=avr32elf
68165 +OUTPUT_FORMAT="elf32-avr32"
68166 +ARCH=avr32
68167 +MAXPAGESIZE=4096
68168 +ENTRY=_start
68169 +EMBEDDED=yes
68170 +NO_SMALL_DATA=yes
68171 +NOP=0xd703d703
68172 +
68173 +TEXT_START_ADDR=0xa0000000
68174 +DATA_SEGMENT_ALIGN=8
68175 +BSS_ALIGNMENT=8
68176 +
68177 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH
68178 + . = . & 0x9fffffff;"
68179 +
68180 +MEMORY="MEMORY
68181 + {
68182 + FLASH (rxai) : ORIGIN = 0x00000000, LENGTH = 0x4000000
68183 + SRAM (rwxa) : ORIGIN = 0x24000000, LENGTH = 0x8000
68184 + }"
68185 +RO_LMA_REGION="FLASH"
68186 +RO_VMA_REGION="FLASH"
68187 +RW_LMA_REGION="FLASH"
68188 +RW_VMA_REGION="SRAM"
68189 +
68190 +STACK_SIZE=0x1000
68191 +STACK_ADDR="ORIGIN(SRAM) + LENGTH(SRAM) - ${STACK_SIZE}"
68192 +
68193 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68194 + . = ${STACK_ADDR};
68195 + __heap_end__ = .;"
68196 --- /dev/null
68197 +++ b/ld/emulparams/avr32elf.sh
68198 @@ -0,0 +1,25 @@
68199 +MACHINE=
68200 +SCRIPT_NAME=elf
68201 +TEMPLATE_NAME=elf32
68202 +EXTRA_EM_FILE=avr32elf
68203 +OUTPUT_FORMAT="elf32-avr32"
68204 +TEXT_START_ADDR=0xa0000000
68205 +ARCH=avr32
68206 +MAXPAGESIZE=0x4
68207 +ENTRY=_start
68208 +EMBEDDED=yes
68209 +NOP=0xd703d703
68210 +INITIAL_READONLY_SECTIONS=".reset : AT(0x0) { *(.reset) }
68211 + . = . & 0x9fffffff;"
68212 +DATA_START_SYMBOLS="__data_init_start__ = .;
68213 + __data_init_end__ = .;
68214 + __data_start__ = .;"
68215 +
68216 +OTHER_BSS_SYMBOLS='__bss_start__ = .;'
68217 +OTHER_BSS_END_SYMBOLS="_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
68218 + . = ALIGN(16);
68219 + __heap_start__ = .;
68220 + __heap_end__ = 0x82000000;"
68221 +
68222 +STACK_ADDR=0x82000000
68223 +
68224 --- /dev/null
68225 +++ b/ld/emulparams/avr32elf_uc3a0128.sh
68226 @@ -0,0 +1,40 @@
68227 +MACHINE=uc
68228 +SCRIPT_NAME=elf_xip
68229 +TEMPLATE_NAME=elf32
68230 +EXTRA_EM_FILE=avr32elf
68231 +OUTPUT_FORMAT="elf32-avr32"
68232 +ARCH=avr32
68233 +MAXPAGESIZE=4096
68234 +ENTRY=_start
68235 +EMBEDDED=yes
68236 +NO_SMALL_DATA=yes
68237 +NOP=0xd703d703
68238 +
68239 +TEXT_START_ADDR=0x80000000
68240 +DATA_SEGMENT_ALIGN=8
68241 +BSS_ALIGNMENT=8
68242 +
68243 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68244 +
68245 +MEMORY="MEMORY
68246 + {
68247 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68248 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68249 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68250 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68251 + }"
68252 +RO_LMA_REGION="FLASH"
68253 +RO_VMA_REGION="FLASH"
68254 +RW_LMA_REGION="FLASH"
68255 +RW_VMA_REGION="INTRAM"
68256 +
68257 +STACK_SIZE=0x1000
68258 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68259 +
68260 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68261 + . = ${STACK_ADDR};
68262 + __heap_end__ = .;"
68263 +
68264 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68265 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68266 +
68267 \ No newline at end of file
68268 --- /dev/null
68269 +++ b/ld/emulparams/avr32elf_uc3a0256.sh
68270 @@ -0,0 +1,39 @@
68271 +MACHINE=uc
68272 +SCRIPT_NAME=elf_xip
68273 +TEMPLATE_NAME=elf32
68274 +EXTRA_EM_FILE=avr32elf
68275 +OUTPUT_FORMAT="elf32-avr32"
68276 +ARCH=avr32
68277 +MAXPAGESIZE=4096
68278 +ENTRY=_start
68279 +EMBEDDED=yes
68280 +NO_SMALL_DATA=yes
68281 +NOP=0xd703d703
68282 +
68283 +TEXT_START_ADDR=0x80000000
68284 +DATA_SEGMENT_ALIGN=8
68285 +BSS_ALIGNMENT=8
68286 +
68287 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68288 +
68289 +MEMORY="MEMORY
68290 + {
68291 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68292 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68293 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68294 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68295 + }"
68296 +RO_LMA_REGION="FLASH"
68297 +RO_VMA_REGION="FLASH"
68298 +RW_LMA_REGION="FLASH"
68299 +RW_VMA_REGION="INTRAM"
68300 +
68301 +STACK_SIZE=0x1000
68302 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68303 +
68304 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68305 + . = ${STACK_ADDR};
68306 + __heap_end__ = .;"
68307 +
68308 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68309 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68310 --- /dev/null
68311 +++ b/ld/emulparams/avr32elf_uc3a0512.sh
68312 @@ -0,0 +1,39 @@
68313 +MACHINE=uc
68314 +SCRIPT_NAME=elf_xip
68315 +TEMPLATE_NAME=elf32
68316 +EXTRA_EM_FILE=avr32elf
68317 +OUTPUT_FORMAT="elf32-avr32"
68318 +ARCH=avr32
68319 +MAXPAGESIZE=4096
68320 +ENTRY=_start
68321 +EMBEDDED=yes
68322 +NO_SMALL_DATA=yes
68323 +NOP=0xd703d703
68324 +
68325 +TEXT_START_ADDR=0x80000000
68326 +DATA_SEGMENT_ALIGN=8
68327 +BSS_ALIGNMENT=8
68328 +
68329 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68330 +
68331 +MEMORY="MEMORY
68332 + {
68333 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x80000
68334 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68335 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68336 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68337 + }"
68338 +RO_LMA_REGION="FLASH"
68339 +RO_VMA_REGION="FLASH"
68340 +RW_LMA_REGION="FLASH"
68341 +RW_VMA_REGION="INTRAM"
68342 +
68343 +STACK_SIZE=0x1000
68344 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68345 +
68346 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68347 + . = ${STACK_ADDR};
68348 + __heap_end__ = .;"
68349 +
68350 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68351 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68352 --- /dev/null
68353 +++ b/ld/emulparams/avr32elf_uc3a1128.sh
68354 @@ -0,0 +1,39 @@
68355 +MACHINE=uc
68356 +SCRIPT_NAME=elf_xip
68357 +TEMPLATE_NAME=elf32
68358 +EXTRA_EM_FILE=avr32elf
68359 +OUTPUT_FORMAT="elf32-avr32"
68360 +ARCH=avr32
68361 +MAXPAGESIZE=4096
68362 +ENTRY=_start
68363 +EMBEDDED=yes
68364 +NO_SMALL_DATA=yes
68365 +NOP=0xd703d703
68366 +
68367 +TEXT_START_ADDR=0x80000000
68368 +DATA_SEGMENT_ALIGN=8
68369 +BSS_ALIGNMENT=8
68370 +
68371 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68372 +
68373 +MEMORY="MEMORY
68374 + {
68375 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68376 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68377 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68378 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68379 + }"
68380 +RO_LMA_REGION="FLASH"
68381 +RO_VMA_REGION="FLASH"
68382 +RW_LMA_REGION="FLASH"
68383 +RW_VMA_REGION="INTRAM"
68384 +
68385 +STACK_SIZE=0x1000
68386 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68387 +
68388 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68389 + . = ${STACK_ADDR};
68390 + __heap_end__ = .;"
68391 +
68392 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68393 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68394 --- /dev/null
68395 +++ b/ld/emulparams/avr32elf_uc3a1256.sh
68396 @@ -0,0 +1,39 @@
68397 +MACHINE=uc
68398 +SCRIPT_NAME=elf_xip
68399 +TEMPLATE_NAME=elf32
68400 +EXTRA_EM_FILE=avr32elf
68401 +OUTPUT_FORMAT="elf32-avr32"
68402 +ARCH=avr32
68403 +MAXPAGESIZE=4096
68404 +ENTRY=_start
68405 +EMBEDDED=yes
68406 +NO_SMALL_DATA=yes
68407 +NOP=0xd703d703
68408 +
68409 +TEXT_START_ADDR=0x80000000
68410 +DATA_SEGMENT_ALIGN=8
68411 +BSS_ALIGNMENT=8
68412 +
68413 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68414 +
68415 +MEMORY="MEMORY
68416 + {
68417 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68418 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68419 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68420 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68421 + }"
68422 +RO_LMA_REGION="FLASH"
68423 +RO_VMA_REGION="FLASH"
68424 +RW_LMA_REGION="FLASH"
68425 +RW_VMA_REGION="INTRAM"
68426 +
68427 +STACK_SIZE=0x1000
68428 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68429 +
68430 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68431 + . = ${STACK_ADDR};
68432 + __heap_end__ = .;"
68433 +
68434 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68435 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68436 --- /dev/null
68437 +++ b/ld/emulparams/avr32elf_uc3a1512.sh
68438 @@ -0,0 +1,39 @@
68439 +MACHINE=uc
68440 +SCRIPT_NAME=elf_xip
68441 +TEMPLATE_NAME=elf32
68442 +EXTRA_EM_FILE=avr32elf
68443 +OUTPUT_FORMAT="elf32-avr32"
68444 +ARCH=avr32
68445 +MAXPAGESIZE=4096
68446 +ENTRY=_start
68447 +EMBEDDED=yes
68448 +NO_SMALL_DATA=yes
68449 +NOP=0xd703d703
68450 +
68451 +TEXT_START_ADDR=0x80000000
68452 +DATA_SEGMENT_ALIGN=8
68453 +BSS_ALIGNMENT=8
68454 +
68455 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68456 +
68457 +MEMORY="MEMORY
68458 + {
68459 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x80000
68460 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68461 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68462 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68463 + }"
68464 +RO_LMA_REGION="FLASH"
68465 +RO_VMA_REGION="FLASH"
68466 +RW_LMA_REGION="FLASH"
68467 +RW_VMA_REGION="INTRAM"
68468 +
68469 +STACK_SIZE=0x1000
68470 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68471 +
68472 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68473 + . = ${STACK_ADDR};
68474 + __heap_end__ = .;"
68475 +
68476 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68477 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68478 --- /dev/null
68479 +++ b/ld/emulparams/avr32elf_uc3b0128.sh
68480 @@ -0,0 +1,39 @@
68481 +MACHINE=uc
68482 +SCRIPT_NAME=elf_xip
68483 +TEMPLATE_NAME=elf32
68484 +EXTRA_EM_FILE=avr32elf
68485 +OUTPUT_FORMAT="elf32-avr32"
68486 +ARCH=avr32
68487 +MAXPAGESIZE=4096
68488 +ENTRY=_start
68489 +EMBEDDED=yes
68490 +NO_SMALL_DATA=yes
68491 +NOP=0xd703d703
68492 +
68493 +TEXT_START_ADDR=0x80000000
68494 +DATA_SEGMENT_ALIGN=8
68495 +BSS_ALIGNMENT=8
68496 +
68497 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68498 +
68499 +MEMORY="MEMORY
68500 + {
68501 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68502 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68503 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68504 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68505 + }"
68506 +RO_LMA_REGION="FLASH"
68507 +RO_VMA_REGION="FLASH"
68508 +RW_LMA_REGION="FLASH"
68509 +RW_VMA_REGION="INTRAM"
68510 +
68511 +STACK_SIZE=0x1000
68512 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68513 +
68514 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68515 + . = ${STACK_ADDR};
68516 + __heap_end__ = .;"
68517 +
68518 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68519 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68520 --- /dev/null
68521 +++ b/ld/emulparams/avr32elf_uc3b0256.sh
68522 @@ -0,0 +1,40 @@
68523 +MACHINE=uc
68524 +SCRIPT_NAME=elf_xip
68525 +TEMPLATE_NAME=elf32
68526 +EXTRA_EM_FILE=avr32elf
68527 +OUTPUT_FORMAT="elf32-avr32"
68528 +ARCH=avr32
68529 +MAXPAGESIZE=4096
68530 +ENTRY=_start
68531 +EMBEDDED=yes
68532 +NO_SMALL_DATA=yes
68533 +NOP=0xd703d703
68534 +
68535 +TEXT_START_ADDR=0x80000000
68536 +DATA_SEGMENT_ALIGN=8
68537 +BSS_ALIGNMENT=8
68538 +
68539 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68540 +
68541 +MEMORY="MEMORY
68542 + {
68543 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68544 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68545 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68546 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68547 + }"
68548 +RO_LMA_REGION="FLASH"
68549 +RO_VMA_REGION="FLASH"
68550 +RW_LMA_REGION="FLASH"
68551 +RW_VMA_REGION="INTRAM"
68552 +
68553 +STACK_SIZE=0x1000
68554 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68555 +
68556 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68557 + . = ${STACK_ADDR};
68558 + __heap_end__ = .;"
68559 +
68560 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68561 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68562 +
68563 \ No newline at end of file
68564 --- /dev/null
68565 +++ b/ld/emulparams/avr32elf_uc3b064.sh
68566 @@ -0,0 +1,39 @@
68567 +MACHINE=uc
68568 +SCRIPT_NAME=elf_xip
68569 +TEMPLATE_NAME=elf32
68570 +EXTRA_EM_FILE=avr32elf
68571 +OUTPUT_FORMAT="elf32-avr32"
68572 +ARCH=avr32
68573 +MAXPAGESIZE=4096
68574 +ENTRY=_start
68575 +EMBEDDED=yes
68576 +NO_SMALL_DATA=yes
68577 +NOP=0xd703d703
68578 +
68579 +TEXT_START_ADDR=0x80000000
68580 +DATA_SEGMENT_ALIGN=8
68581 +BSS_ALIGNMENT=8
68582 +
68583 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68584 +
68585 +MEMORY="MEMORY
68586 + {
68587 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x10000
68588 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x4000
68589 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68590 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68591 + }"
68592 +RO_LMA_REGION="FLASH"
68593 +RO_VMA_REGION="FLASH"
68594 +RW_LMA_REGION="FLASH"
68595 +RW_VMA_REGION="INTRAM"
68596 +
68597 +STACK_SIZE=0x1000
68598 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68599 +
68600 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68601 + . = ${STACK_ADDR};
68602 + __heap_end__ = .;"
68603 +
68604 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68605 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68606 --- /dev/null
68607 +++ b/ld/emulparams/avr32elf_uc3b1128.sh
68608 @@ -0,0 +1,39 @@
68609 +MACHINE=uc
68610 +SCRIPT_NAME=elf_xip
68611 +TEMPLATE_NAME=elf32
68612 +EXTRA_EM_FILE=avr32elf
68613 +OUTPUT_FORMAT="elf32-avr32"
68614 +ARCH=avr32
68615 +MAXPAGESIZE=4096
68616 +ENTRY=_start
68617 +EMBEDDED=yes
68618 +NO_SMALL_DATA=yes
68619 +NOP=0xd703d703
68620 +
68621 +TEXT_START_ADDR=0x80000000
68622 +DATA_SEGMENT_ALIGN=8
68623 +BSS_ALIGNMENT=8
68624 +
68625 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68626 +
68627 +MEMORY="MEMORY
68628 + {
68629 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68630 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68631 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68632 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68633 + }"
68634 +RO_LMA_REGION="FLASH"
68635 +RO_VMA_REGION="FLASH"
68636 +RW_LMA_REGION="FLASH"
68637 +RW_VMA_REGION="INTRAM"
68638 +
68639 +STACK_SIZE=0x1000
68640 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68641 +
68642 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68643 + . = ${STACK_ADDR};
68644 + __heap_end__ = .;"
68645 +
68646 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68647 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68648 --- /dev/null
68649 +++ b/ld/emulparams/avr32elf_uc3b1256.sh
68650 @@ -0,0 +1,39 @@
68651 +MACHINE=uc
68652 +SCRIPT_NAME=elf_xip
68653 +TEMPLATE_NAME=elf32
68654 +EXTRA_EM_FILE=avr32elf
68655 +OUTPUT_FORMAT="elf32-avr32"
68656 +ARCH=avr32
68657 +MAXPAGESIZE=4096
68658 +ENTRY=_start
68659 +EMBEDDED=yes
68660 +NO_SMALL_DATA=yes
68661 +NOP=0xd703d703
68662 +
68663 +TEXT_START_ADDR=0x80000000
68664 +DATA_SEGMENT_ALIGN=8
68665 +BSS_ALIGNMENT=8
68666 +
68667 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68668 +
68669 +MEMORY="MEMORY
68670 + {
68671 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68672 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68673 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68674 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68675 + }"
68676 +RO_LMA_REGION="FLASH"
68677 +RO_VMA_REGION="FLASH"
68678 +RW_LMA_REGION="FLASH"
68679 +RW_VMA_REGION="INTRAM"
68680 +
68681 +STACK_SIZE=0x1000
68682 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68683 +
68684 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68685 + . = ${STACK_ADDR};
68686 + __heap_end__ = .;"
68687 +
68688 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68689 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68690 --- /dev/null
68691 +++ b/ld/emulparams/avr32elf_uc3b164.sh
68692 @@ -0,0 +1,40 @@
68693 +MACHINE=uc
68694 +SCRIPT_NAME=elf_xip
68695 +TEMPLATE_NAME=elf32
68696 +EXTRA_EM_FILE=avr32elf
68697 +OUTPUT_FORMAT="elf32-avr32"
68698 +ARCH=avr32
68699 +MAXPAGESIZE=4096
68700 +ENTRY=_start
68701 +EMBEDDED=yes
68702 +NO_SMALL_DATA=yes
68703 +NOP=0xd703d703
68704 +
68705 +TEXT_START_ADDR=0x80000000
68706 +DATA_SEGMENT_ALIGN=8
68707 +BSS_ALIGNMENT=8
68708 +
68709 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68710 +
68711 +MEMORY="MEMORY
68712 + {
68713 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x10000
68714 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x4000
68715 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68716 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68717 + }"
68718 +RO_LMA_REGION="FLASH"
68719 +RO_VMA_REGION="FLASH"
68720 +RW_LMA_REGION="FLASH"
68721 +RW_VMA_REGION="INTRAM"
68722 +
68723 +STACK_SIZE=0x1000
68724 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68725 +
68726 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68727 + . = ${STACK_ADDR};
68728 + __heap_end__ = .;"
68729 +
68730 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68731 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68732 +
68733 \ No newline at end of file
68734 --- /dev/null
68735 +++ b/ld/emulparams/avr32linux.sh
68736 @@ -0,0 +1,14 @@
68737 +ARCH=avr32
68738 +SCRIPT_NAME=elf
68739 +TEMPLATE_NAME=elf32
68740 +EXTRA_EM_FILE=avr32elf
68741 +OUTPUT_FORMAT="elf32-avr32"
68742 +GENERATE_SHLIB_SCRIPT=yes
68743 +MAXPAGESIZE=0x1000
68744 +TEXT_START_ADDR=0x00001000
68745 +NOP=0xd703d703
68746 +
68747 +# This appears to place the GOT before the data section, which is
68748 +# essential for uClinux. We don't use those .s* sections on AVR32
68749 +# anyway, so it shouldn't hurt for regular Linux either...
68750 +NO_SMALL_DATA=yes
68751 --- /dev/null
68752 +++ b/ld/emultempl/avr32elf.em
68753 @@ -0,0 +1,72 @@
68754 +# This shell script emits a C file. -*- C -*-
68755 +# Copyright (C) 2007 Atmel Corporation
68756 +#
68757 +# This file is part of GLD, the Gnu Linker.
68758 +#
68759 +# This program is free software; you can redistribute it and/or modify
68760 +# it under the terms of the GNU General Public License as published by
68761 +# the Free Software Foundation; either version 2 of the License, or
68762 +# (at your option) any later version.
68763 +#
68764 +# This program is distributed in the hope that it will be useful,
68765 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
68766 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68767 +# GNU General Public License for more details.
68768 +#
68769 +# You should have received a copy of the GNU General Public License
68770 +# along with this program; if not, write to the Free Software
68771 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
68772 +#
68773 +
68774 +# This file is sourced from elf32.em, and defines extra avr32-elf
68775 +# specific routines.
68776 +#
68777 +
68778 +cat >> e${EMULATION_NAME}.c <<EOF
68779 +
68780 +#include "libbfd.h"
68781 +#include "elf32-avr32.h"
68782 +
68783 +/* Whether to allow direct references (sub or mov) to SEC_DATA and
68784 + !SEC_CONTENTS sections when optimizing. Not enabled by default
68785 + since it might cause link errors. */
68786 +static int direct_data_refs = 0;
68787 +
68788 +static void avr32_elf_after_open (void)
68789 +{
68790 + bfd_elf32_avr32_set_options (&link_info, direct_data_refs);
68791 + gld${EMULATION_NAME}_after_open ();
68792 +}
68793 +
68794 +EOF
68795 +
68796 +# Define some shell vars to insert bits of code into the standard elf
68797 +# parse_args and list_options functions.
68798 +#
68799 +PARSE_AND_LIST_PROLOGUE='
68800 +#define OPTION_DIRECT_DATA 300
68801 +#define OPTION_NO_DIRECT_DATA 301
68802 +'
68803 +
68804 +PARSE_AND_LIST_LONGOPTS='
68805 + { "direct-data", no_argument, NULL, OPTION_DIRECT_DATA },
68806 + { "no-direct-data", no_argument, NULL, OPTION_NO_DIRECT_DATA },
68807 +'
68808 +
68809 +PARSE_AND_LIST_OPTIONS='
68810 + fprintf (file, _(" --direct-data\t\tAllow direct data references when optimizing\n"));
68811 + fprintf (file, _(" --no-direct-data\tDo not allow direct data references when optimizing\n"));
68812 +'
68813 +
68814 +PARSE_AND_LIST_ARGS_CASES='
68815 + case OPTION_DIRECT_DATA:
68816 + direct_data_refs = 1;
68817 + break;
68818 + case OPTION_NO_DIRECT_DATA:
68819 + direct_data_refs = 0;
68820 + break;
68821 +'
68822 +
68823 +# Replace some of the standard ELF functions with our own versions.
68824 +#
68825 +LDEMUL_AFTER_OPEN=avr32_elf_after_open
68826 --- a/ld/ld.info
68827 +++ b/ld/ld.info
68828 @@ -1,5 +1,7 @@
68829 -This is .././ld/ld.info, produced by makeinfo version 4.8 from
68830 -.././ld/ld.texinfo.
68831 +This is
68832 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.info,
68833 +produced by makeinfo version 4.8 from
68834 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.texinfo.
68835
68836 START-INFO-DIR-ENTRY
68837 * Ld: (ld). The GNU linker.
68838 @@ -4192,6 +4194,8 @@ not listed.
68839
68840 * ARM:: `ld' and the ARM family
68841
68842 +* AVR32:: `ld' and AVR32 processors
68843 +
68844 * HPPA ELF32:: `ld' and HPPA 32-bit ELF
68845
68846 * MMIX:: `ld' and MMIX
68847 @@ -4285,7 +4289,7 @@ target subroutine is a leaf routine (tha
68848 not itself call any subroutines).
68849
68850 \1f
68851 -File: ld.info, Node: ARM, Next: HPPA ELF32, Prev: i960, Up: Machine Dependent
68852 ++File: ld.info, Node: ARM, Next: AVR32, Prev: i960, Up: Machine Dependent
68853
68854 4.3 `ld' and the ARM family
68855 ===========================
68856 @@ -4351,9 +4355,33 @@ entry. This should lead to such calls ex
68857 to specify it if you are using that target.
68858
68859 \1f
68860 -File: ld.info, Node: HPPA ELF32, Next: MMIX, Prev: ARM, Up: Machine Dependent
68861 +File: ld.info, Node: AVR32, Next: HPPA ELF32, Prev: ARM, Up: Machine Dependent
68862 +
68863 +4.4 `ld' and AVR32 processors
68864 +=============================
68865 +
68866 +`--direct-data'
68867 +
68868 +`--no-direct-data'
68869 + Taking the address of a symbol can often be done by using a direct
68870 + `mov' or pc-relative `sub' instruction, which is faster than using
68871 + a PC- or GOT-relative load, especially on the uC3 processors.
68872 + However, this does not always work when dealing with symbols in
68873 + the `.data' section so this optimization is disabled by default.
68874 +
68875 + Specifying `--direct-data' will enable this optimization. Note
68876 + that this may cause `relocation truncated to fit' errors for
68877 + certain large programs. If this happens, the optimization can be
68878 + turned off by specifying `--no-direct-data'.
68879 +
68880 + All known issues with direct data optimizations are detected at
68881 + link time, so if the linker doesn't complain, the result should
68882 + run just fine.
68883 +
68884 +\1f
68885 +File: ld.info, Node: HPPA ELF32, Next: MMIX, Prev: AVR32, Up: Machine Dependent
68886
68887 -4.4 `ld' and HPPA 32-bit ELF Support
68888 +4.5 `ld' and HPPA 32-bit ELF Support
68889 ====================================
68890
68891 When generating a shared library, `ld' will by default generate import
68892 @@ -4384,7 +4412,7 @@ large, it may not be possible for a bran
68893 \1f
68894 File: ld.info, Node: MMIX, Next: MSP430, Prev: HPPA ELF32, Up: Machine Dependent
68895
68896 -4.5 `ld' and MMIX
68897 +4.6 `ld' and MMIX
68898 =================
68899
68900 For MMIX, there is a choice of generating `ELF' object files or `mmo'
68901 @@ -4412,7 +4440,7 @@ section, are left out from an mmo file.
68902 \1f
68903 File: ld.info, Node: MSP430, Next: PowerPC ELF32, Prev: MMIX, Up: Machine Dependent
68904
68905 -4.6 `ld' and MSP430
68906 +4.7 `ld' and MSP430
68907 ===================
68908
68909 For the MSP430 it is possible to select the MPU architecture. The flag
68910 @@ -4446,7 +4474,7 @@ specific:
68911 \1f
68912 File: ld.info, Node: PowerPC ELF32, Next: PowerPC64 ELF64, Prev: MSP430, Up: Machine Dependent
68913
68914 -4.7 `ld' and PowerPC 32-bit ELF Support
68915 +4.8 `ld' and PowerPC 32-bit ELF Support
68916 =======================================
68917
68918 Branches on PowerPC processors are limited to a signed 26-bit
68919 @@ -4577,7 +4605,7 @@ File: ld.info, Node: PowerPC64 ELF64,
68920 \1f
68921 File: ld.info, Node: TI COFF, Next: WIN32, Prev: PowerPC64 ELF64, Up: Machine Dependent
68922
68923 -4.9 `ld''s Support for Various TI COFF Versions
68924 +4.10 `ld''s Support for Various TI COFF Versions
68925 ===============================================
68926
68927 The `--format' switch allows selection of one of the various TI COFF
68928 @@ -4589,7 +4617,7 @@ depends on the default specified by the
68929 \1f
68930 File: ld.info, Node: WIN32, Next: Xtensa, Prev: TI COFF, Up: Machine Dependent
68931
68932 -4.10 `ld' and WIN32 (cygwin/mingw)
68933 +4.11 `ld' and WIN32 (cygwin/mingw)
68934 ==================================
68935
68936 This section describes some of the win32 specific `ld' issues. See
68937 @@ -4986,7 +5014,7 @@ _weak externals_
68938 \1f
68939 File: ld.info, Node: Xtensa, Prev: WIN32, Up: Machine Dependent
68940
68941 -4.11 `ld' and Xtensa Processors
68942 +4.12 `ld' and Xtensa Processors
68943 ===============================
68944
68945 The default `ld' behavior for Xtensa processors is to interpret
68946 @@ -5954,6 +5982,7 @@ Index
68947 * --default-symver: Options. (line 849)
68948 * --defsym SYMBOL=EXP: Options. (line 739)
68949 * --demangle[=STYLE]: Options. (line 752)
68950 +* --direct-data: AVR32. (line 6)
68951 * --disable-auto-image-base: Options. (line 1495)
68952 * --disable-auto-import: Options. (line 1624)
68953 * --disable-new-dtags: Options. (line 1295)
68954 @@ -6016,6 +6045,7 @@ Index
68955 * --no-check-sections: Options. (line 701)
68956 * --no-define-common: Options. (line 723)
68957 * --no-demangle: Options. (line 752)
68958 +* --no-direct-data: AVR32. (line 6)
68959 * --no-dotsyms: PowerPC64 ELF64. (line 33)
68960 * --no-gc-sections: Options. (line 784)
68961 * --no-keep-memory: Options. (line 804)
68962 @@ -6200,6 +6230,7 @@ Index
68963 * AT(LMA): Output Section LMA. (line 6)
68964 * AT>LMA_REGION: Output Section LMA. (line 6)
68965 * automatic data imports: WIN32. (line 170)
68966 +* AVR32 options: AVR32. (line 6)
68967 * back end: BFD. (line 6)
68968 * BASE (MRI): MRI. (line 54)
68969 * BE8: ARM. (line 23)
68970 @@ -6611,81 +6642,161 @@ Index
68971
68972 \1f
68973 Tag Table:
68974 -Node: Top\7f347
68975 -Node: Overview\7f1109
68976 -Node: Invocation\7f2223
68977 -Node: Options\7f2631
68978 -Node: Environment\7f77286
68979 -Node: Scripts\7f79046
68980 -Node: Basic Script Concepts\7f80780
68981 -Node: Script Format\7f83487
68982 -Node: Simple Example\7f84350
68983 -Node: Simple Commands\7f87446
68984 -Node: Entry Point\7f87897
68985 -Node: File Commands\7f88656
68986 -Node: Format Commands\7f92522
68987 -Node: Miscellaneous Commands\7f94488
68988 -Node: Assignments\7f96718
68989 -Node: Simple Assignments\7f97209
68990 -Node: PROVIDE\7f98945
68991 -Node: PROVIDE_HIDDEN\7f100150
68992 -Node: Source Code Reference\7f100394
68993 -Node: SECTIONS\7f103974
68994 -Node: Output Section Description\7f105865
68995 -Node: Output Section Name\7f106918
68996 -Node: Output Section Address\7f107794
68997 -Node: Input Section\7f109443
68998 -Node: Input Section Basics\7f110244
68999 -Node: Input Section Wildcards\7f112596
69000 -Node: Input Section Common\7f117329
69001 -Node: Input Section Keep\7f118811
69002 -Node: Input Section Example\7f119301
69003 -Node: Output Section Data\7f120269
69004 -Node: Output Section Keywords\7f123046
69005 -Node: Output Section Discarding\7f126615
69006 -Node: Output Section Attributes\7f127571
69007 -Node: Output Section Type\7f128575
69008 -Node: Output Section LMA\7f129729
69009 -Node: Forced Output Alignment\7f132000
69010 -Node: Forced Input Alignment\7f132268
69011 -Node: Output Section Region\7f132653
69012 -Node: Output Section Phdr\7f133083
69013 -Node: Output Section Fill\7f133747
69014 -Node: Overlay Description\7f134889
69015 -Node: MEMORY\7f139137
69016 -Node: PHDRS\7f143337
69017 -Node: VERSION\7f148376
69018 -Node: Expressions\7f156167
69019 -Node: Constants\7f157045
69020 -Node: Symbols\7f157606
69021 -Node: Orphan Sections\7f158344
69022 -Node: Location Counter\7f159107
69023 -Node: Operators\7f163411
69024 -Node: Evaluation\7f164333
69025 -Node: Expression Section\7f165697
69026 -Node: Builtin Functions\7f167186
69027 -Node: Implicit Linker Scripts\7f174678
69028 -Node: Machine Dependent\7f175453
69029 -Node: H8/300\7f176314
69030 -Node: i960\7f177939
69031 -Node: ARM\7f179624
69032 -Node: HPPA ELF32\7f182540
69033 -Node: MMIX\7f184163
69034 -Node: MSP430\7f185380
69035 -Node: PowerPC ELF32\7f186428
69036 -Node: PowerPC64 ELF64\7f188719
69037 -Node: TI COFF\7f193133
69038 -Node: WIN32\7f193665
69039 -Node: Xtensa\7f211739
69040 -Node: BFD\7f214861
69041 -Node: BFD outline\7f216316
69042 -Node: BFD information loss\7f217602
69043 -Node: Canonical format\7f220119
69044 -Node: Reporting Bugs\7f224476
69045 -Node: Bug Criteria\7f225170
69046 -Node: Bug Reporting\7f225869
69047 -Node: MRI\7f232894
69048 -Node: GNU Free Documentation License\7f237537
69049 -Node: Index\7f257251
69050 +<<<<<<< .mine
69051 +Node: Top\7f487
69052 +Node: Overview\7f1249
69053 +Node: Invocation\7f2363
69054 +Node: Options\7f2771
69055 +Node: Environment\7f77426
69056 +Node: Scripts\7f79186
69057 +Node: Basic Script Concepts\7f80920
69058 +Node: Script Format\7f83627
69059 +Node: Simple Example\7f84490
69060 +Node: Simple Commands\7f87586
69061 +Node: Entry Point\7f88037
69062 +Node: File Commands\7f88796
69063 +Node: Format Commands\7f92662
69064 +Node: Miscellaneous Commands\7f94628
69065 +Node: Assignments\7f96858
69066 +Node: Simple Assignments\7f97349
69067 +Node: PROVIDE\7f99085
69068 +Node: PROVIDE_HIDDEN\7f100290
69069 +Node: Source Code Reference\7f100534
69070 +Node: SECTIONS\7f104114
69071 +Node: Output Section Description\7f106005
69072 +Node: Output Section Name\7f107058
69073 +Node: Output Section Address\7f107934
69074 +Node: Input Section\7f109583
69075 +Node: Input Section Basics\7f110384
69076 +Node: Input Section Wildcards\7f112736
69077 +Node: Input Section Common\7f117469
69078 +Node: Input Section Keep\7f118951
69079 +Node: Input Section Example\7f119441
69080 +Node: Output Section Data\7f120409
69081 +Node: Output Section Keywords\7f123186
69082 +Node: Output Section Discarding\7f126755
69083 +Node: Output Section Attributes\7f127711
69084 +Node: Output Section Type\7f128715
69085 +Node: Output Section LMA\7f129869
69086 +Node: Forced Output Alignment\7f132140
69087 +Node: Forced Input Alignment\7f132408
69088 +Node: Output Section Region\7f132793
69089 +Node: Output Section Phdr\7f133223
69090 +Node: Output Section Fill\7f133887
69091 +Node: Overlay Description\7f135029
69092 +Node: MEMORY\7f139277
69093 +Node: PHDRS\7f143477
69094 +Node: VERSION\7f148516
69095 +Node: Expressions\7f156307
69096 +Node: Constants\7f157185
69097 +Node: Symbols\7f157746
69098 +Node: Orphan Sections\7f158484
69099 +Node: Location Counter\7f159247
69100 +Node: Operators\7f163551
69101 +Node: Evaluation\7f164473
69102 +Node: Expression Section\7f165837
69103 +Node: Builtin Functions\7f167326
69104 +Node: Implicit Linker Scripts\7f174818
69105 +Node: Machine Dependent\7f175593
69106 +Node: H8/300\7f176454
69107 +Node: i960\7f178079
69108 +Node: ARM\7f179764
69109 +Node: HPPA ELF32\7f182680
69110 +Node: MMIX\7f184303
69111 +Node: MSP430\7f185520
69112 +Node: PowerPC ELF32\7f186568
69113 +Node: PowerPC64 ELF64\7f188859
69114 +Node: TI COFF\7f193273
69115 +Node: WIN32\7f193805
69116 +Node: Xtensa\7f211879
69117 +Node: BFD\7f215001
69118 +Node: BFD outline\7f216456
69119 +Node: BFD information loss\7f217742
69120 +Node: Canonical format\7f220259
69121 +Node: Reporting Bugs\7f224616
69122 +Node: Bug Criteria\7f225310
69123 +Node: Bug Reporting\7f226009
69124 +Node: MRI\7f233034
69125 +Node: GNU Free Documentation License\7f237677
69126 +Node: Index\7f257391
69127 +=======
69128 +Node: Top\7f331
69129 +Node: Overview\7f1093
69130 +Node: Invocation\7f2207
69131 +Node: Options\7f2615
69132 +Node: Environment\7f77270
69133 +Node: Scripts\7f79030
69134 +Node: Basic Script Concepts\7f80764
69135 +Node: Script Format\7f83471
69136 +Node: Simple Example\7f84334
69137 +Node: Simple Commands\7f87430
69138 +Node: Entry Point\7f87881
69139 +Node: File Commands\7f88640
69140 +Node: Format Commands\7f92506
69141 +Node: Miscellaneous Commands\7f94472
69142 +Node: Assignments\7f96702
69143 +Node: Simple Assignments\7f97193
69144 +Node: PROVIDE\7f98929
69145 +Node: PROVIDE_HIDDEN\7f100134
69146 +Node: Source Code Reference\7f100378
69147 +Node: SECTIONS\7f103958
69148 +Node: Output Section Description\7f105849
69149 +Node: Output Section Name\7f106902
69150 +Node: Output Section Address\7f107778
69151 +Node: Input Section\7f109427
69152 +Node: Input Section Basics\7f110228
69153 +Node: Input Section Wildcards\7f112580
69154 +Node: Input Section Common\7f117313
69155 +Node: Input Section Keep\7f118795
69156 +Node: Input Section Example\7f119285
69157 +Node: Output Section Data\7f120253
69158 +Node: Output Section Keywords\7f123030
69159 +Node: Output Section Discarding\7f126599
69160 +Node: Output Section Attributes\7f127555
69161 +Node: Output Section Type\7f128559
69162 +Node: Output Section LMA\7f129713
69163 +Node: Forced Output Alignment\7f131984
69164 +Node: Forced Input Alignment\7f132252
69165 +Node: Output Section Region\7f132637
69166 +Node: Output Section Phdr\7f133067
69167 +Node: Output Section Fill\7f133731
69168 +Node: Overlay Description\7f134873
69169 +Node: MEMORY\7f139121
69170 +Node: PHDRS\7f143321
69171 +Node: VERSION\7f148360
69172 +Node: Expressions\7f156151
69173 +Node: Constants\7f157029
69174 +Node: Symbols\7f157590
69175 +Node: Orphan Sections\7f158328
69176 +Node: Location Counter\7f159091
69177 +Node: Operators\7f163395
69178 +Node: Evaluation\7f164317
69179 +Node: Expression Section\7f165681
69180 +Node: Builtin Functions\7f167170
69181 +Node: Implicit Linker Scripts\7f174662
69182 +Node: Machine Dependent\7f175437
69183 +Node: H8/300\7f176357
69184 +Node: i960\7f177982
69185 +Node: ARM\7f179667
69186 +Node: AVR32\7f182578
69187 +Node: HPPA ELF32\7f183526
69188 +Node: MMIX\7f185151
69189 +Node: MSP430\7f186368
69190 +Node: PowerPC ELF32\7f187416
69191 +Node: PowerPC64 ELF64\7f189707
69192 +Node: TI COFF\7f194121
69193 +Node: WIN32\7f194655
69194 +Node: Xtensa\7f212729
69195 +Node: BFD\7f215851
69196 +Node: BFD outline\7f217306
69197 +Node: BFD information loss\7f218592
69198 +Node: Canonical format\7f221109
69199 +Node: Reporting Bugs\7f225466
69200 +Node: Bug Criteria\7f226160
69201 +Node: Bug Reporting\7f226859
69202 +Node: MRI\7f233884
69203 +Node: GNU Free Documentation License\7f238527
69204 +Node: Index\7f258241
69205 +>>>>>>> .r31496
69206 \1f
69207 End Tag Table
69208 --- /dev/null
69209 +++ b/ld/ld.info.mine
69210 @@ -0,0 +1,6693 @@
69211 +This is
69212 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.info,
69213 +produced by makeinfo version 4.8 from
69214 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.texinfo.
69215 +
69216 +START-INFO-DIR-ENTRY
69217 +* Ld: (ld). The GNU linker.
69218 +END-INFO-DIR-ENTRY
69219 +
69220 + This file documents the GNU linker LD version 2.17.
69221 +
69222 + Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001,
69223 +2002, 2003, 2004 Free Software Foundation, Inc.
69224 +
69225 +\1f
69226 +File: ld.info, Node: Top, Next: Overview, Up: (dir)
69227 +
69228 +Using ld
69229 +********
69230 +
69231 +This file documents the GNU linker ld version 2.17.
69232 +
69233 + This document is distributed under the terms of the GNU Free
69234 +Documentation License. A copy of the license is included in the
69235 +section entitled "GNU Free Documentation License".
69236 +
69237 +* Menu:
69238 +
69239 +* Overview:: Overview
69240 +* Invocation:: Invocation
69241 +* Scripts:: Linker Scripts
69242 +
69243 +* Machine Dependent:: Machine Dependent Features
69244 +
69245 +* BFD:: BFD
69246 +
69247 +* Reporting Bugs:: Reporting Bugs
69248 +* MRI:: MRI Compatible Script Files
69249 +* GNU Free Documentation License:: GNU Free Documentation License
69250 +* Index:: Index
69251 +
69252 +\1f
69253 +File: ld.info, Node: Overview, Next: Invocation, Prev: Top, Up: Top
69254 +
69255 +1 Overview
69256 +**********
69257 +
69258 +`ld' combines a number of object and archive files, relocates their
69259 +data and ties up symbol references. Usually the last step in compiling
69260 +a program is to run `ld'.
69261 +
69262 + `ld' accepts Linker Command Language files written in a superset of
69263 +AT&T's Link Editor Command Language syntax, to provide explicit and
69264 +total control over the linking process.
69265 +
69266 + This version of `ld' uses the general purpose BFD libraries to
69267 +operate on object files. This allows `ld' to read, combine, and write
69268 +object files in many different formats--for example, COFF or `a.out'.
69269 +Different formats may be linked together to produce any available kind
69270 +of object file. *Note BFD::, for more information.
69271 +
69272 + Aside from its flexibility, the GNU linker is more helpful than other
69273 +linkers in providing diagnostic information. Many linkers abandon
69274 +execution immediately upon encountering an error; whenever possible,
69275 +`ld' continues executing, allowing you to identify other errors (or, in
69276 +some cases, to get an output file in spite of the error).
69277 +
69278 +\1f
69279 +File: ld.info, Node: Invocation, Next: Scripts, Prev: Overview, Up: Top
69280 +
69281 +2 Invocation
69282 +************
69283 +
69284 +The GNU linker `ld' is meant to cover a broad range of situations, and
69285 +to be as compatible as possible with other linkers. As a result, you
69286 +have many choices to control its behavior.
69287 +
69288 +* Menu:
69289 +
69290 +* Options:: Command Line Options
69291 +* Environment:: Environment Variables
69292 +
69293 +\1f
69294 +File: ld.info, Node: Options, Next: Environment, Up: Invocation
69295 +
69296 +2.1 Command Line Options
69297 +========================
69298 +
69299 + The linker supports a plethora of command-line options, but in actual
69300 +practice few of them are used in any particular context. For instance,
69301 +a frequent use of `ld' is to link standard Unix object files on a
69302 +standard, supported Unix system. On such a system, to link a file
69303 +`hello.o':
69304 +
69305 + ld -o OUTPUT /lib/crt0.o hello.o -lc
69306 +
69307 + This tells `ld' to produce a file called OUTPUT as the result of
69308 +linking the file `/lib/crt0.o' with `hello.o' and the library `libc.a',
69309 +which will come from the standard search directories. (See the
69310 +discussion of the `-l' option below.)
69311 +
69312 + Some of the command-line options to `ld' may be specified at any
69313 +point in the command line. However, options which refer to files, such
69314 +as `-l' or `-T', cause the file to be read at the point at which the
69315 +option appears in the command line, relative to the object files and
69316 +other file options. Repeating non-file options with a different
69317 +argument will either have no further effect, or override prior
69318 +occurrences (those further to the left on the command line) of that
69319 +option. Options which may be meaningfully specified more than once are
69320 +noted in the descriptions below.
69321 +
69322 + Non-option arguments are object files or archives which are to be
69323 +linked together. They may follow, precede, or be mixed in with
69324 +command-line options, except that an object file argument may not be
69325 +placed between an option and its argument.
69326 +
69327 + Usually the linker is invoked with at least one object file, but you
69328 +can specify other forms of binary input files using `-l', `-R', and the
69329 +script command language. If _no_ binary input files at all are
69330 +specified, the linker does not produce any output, and issues the
69331 +message `No input files'.
69332 +
69333 + If the linker cannot recognize the format of an object file, it will
69334 +assume that it is a linker script. A script specified in this way
69335 +augments the main linker script used for the link (either the default
69336 +linker script or the one specified by using `-T'). This feature
69337 +permits the linker to link against a file which appears to be an object
69338 +or an archive, but actually merely defines some symbol values, or uses
69339 +`INPUT' or `GROUP' to load other objects. Note that specifying a
69340 +script in this way merely augments the main linker script; use the `-T'
69341 +option to replace the default linker script entirely. *Note Scripts::.
69342 +
69343 + For options whose names are a single letter, option arguments must
69344 +either follow the option letter without intervening whitespace, or be
69345 +given as separate arguments immediately following the option that
69346 +requires them.
69347 +
69348 + For options whose names are multiple letters, either one dash or two
69349 +can precede the option name; for example, `-trace-symbol' and
69350 +`--trace-symbol' are equivalent. Note--there is one exception to this
69351 +rule. Multiple letter options that start with a lower case 'o' can
69352 +only be preceeded by two dashes. This is to reduce confusion with the
69353 +`-o' option. So for example `-omagic' sets the output file name to
69354 +`magic' whereas `--omagic' sets the NMAGIC flag on the output.
69355 +
69356 + Arguments to multiple-letter options must either be separated from
69357 +the option name by an equals sign, or be given as separate arguments
69358 +immediately following the option that requires them. For example,
69359 +`--trace-symbol foo' and `--trace-symbol=foo' are equivalent. Unique
69360 +abbreviations of the names of multiple-letter options are accepted.
69361 +
69362 + Note--if the linker is being invoked indirectly, via a compiler
69363 +driver (e.g. `gcc') then all the linker command line options should be
69364 +prefixed by `-Wl,' (or whatever is appropriate for the particular
69365 +compiler driver) like this:
69366 +
69367 + gcc -Wl,--startgroup foo.o bar.o -Wl,--endgroup
69368 +
69369 + This is important, because otherwise the compiler driver program may
69370 +silently drop the linker options, resulting in a bad link.
69371 +
69372 + Here is a table of the generic command line switches accepted by the
69373 +GNU linker:
69374 +
69375 +`@FILE'
69376 + Read command-line options from FILE. The options read are
69377 + inserted in place of the original @FILE option. If FILE does not
69378 + exist, or cannot be read, then the option will be treated
69379 + literally, and not removed.
69380 +
69381 + Options in FILE are separated by whitespace. A whitespace
69382 + character may be included in an option by surrounding the entire
69383 + option in either single or double quotes. Any character
69384 + (including a backslash) may be included by prefixing the character
69385 + to be included with a backslash. The FILE may itself contain
69386 + additional @FILE options; any such options will be processed
69387 + recursively.
69388 +
69389 +`-aKEYWORD'
69390 + This option is supported for HP/UX compatibility. The KEYWORD
69391 + argument must be one of the strings `archive', `shared', or
69392 + `default'. `-aarchive' is functionally equivalent to `-Bstatic',
69393 + and the other two keywords are functionally equivalent to
69394 + `-Bdynamic'. This option may be used any number of times.
69395 +
69396 +`-AARCHITECTURE'
69397 +`--architecture=ARCHITECTURE'
69398 + In the current release of `ld', this option is useful only for the
69399 + Intel 960 family of architectures. In that `ld' configuration, the
69400 + ARCHITECTURE argument identifies the particular architecture in
69401 + the 960 family, enabling some safeguards and modifying the
69402 + archive-library search path. *Note `ld' and the Intel 960 family:
69403 + i960, for details.
69404 +
69405 + Future releases of `ld' may support similar functionality for
69406 + other architecture families.
69407 +
69408 +`-b INPUT-FORMAT'
69409 +`--format=INPUT-FORMAT'
69410 + `ld' may be configured to support more than one kind of object
69411 + file. If your `ld' is configured this way, you can use the `-b'
69412 + option to specify the binary format for input object files that
69413 + follow this option on the command line. Even when `ld' is
69414 + configured to support alternative object formats, you don't
69415 + usually need to specify this, as `ld' should be configured to
69416 + expect as a default input format the most usual format on each
69417 + machine. INPUT-FORMAT is a text string, the name of a particular
69418 + format supported by the BFD libraries. (You can list the
69419 + available binary formats with `objdump -i'.) *Note BFD::.
69420 +
69421 + You may want to use this option if you are linking files with an
69422 + unusual binary format. You can also use `-b' to switch formats
69423 + explicitly (when linking object files of different formats), by
69424 + including `-b INPUT-FORMAT' before each group of object files in a
69425 + particular format.
69426 +
69427 + The default format is taken from the environment variable
69428 + `GNUTARGET'. *Note Environment::. You can also define the input
69429 + format from a script, using the command `TARGET'; see *Note Format
69430 + Commands::.
69431 +
69432 +`-c MRI-COMMANDFILE'
69433 +`--mri-script=MRI-COMMANDFILE'
69434 + For compatibility with linkers produced by MRI, `ld' accepts script
69435 + files written in an alternate, restricted command language,
69436 + described in *Note MRI Compatible Script Files: MRI. Introduce
69437 + MRI script files with the option `-c'; use the `-T' option to run
69438 + linker scripts written in the general-purpose `ld' scripting
69439 + language. If MRI-CMDFILE does not exist, `ld' looks for it in the
69440 + directories specified by any `-L' options.
69441 +
69442 +`-d'
69443 +`-dc'
69444 +`-dp'
69445 + These three options are equivalent; multiple forms are supported
69446 + for compatibility with other linkers. They assign space to common
69447 + symbols even if a relocatable output file is specified (with
69448 + `-r'). The script command `FORCE_COMMON_ALLOCATION' has the same
69449 + effect. *Note Miscellaneous Commands::.
69450 +
69451 +`-e ENTRY'
69452 +`--entry=ENTRY'
69453 + Use ENTRY as the explicit symbol for beginning execution of your
69454 + program, rather than the default entry point. If there is no
69455 + symbol named ENTRY, the linker will try to parse ENTRY as a number,
69456 + and use that as the entry address (the number will be interpreted
69457 + in base 10; you may use a leading `0x' for base 16, or a leading
69458 + `0' for base 8). *Note Entry Point::, for a discussion of defaults
69459 + and other ways of specifying the entry point.
69460 +
69461 +`--exclude-libs LIB,LIB,...'
69462 + Specifies a list of archive libraries from which symbols should
69463 + not be automatically exported. The library names may be delimited
69464 + by commas or colons. Specifying `--exclude-libs ALL' excludes
69465 + symbols in all archive libraries from automatic export. This
69466 + option is available only for the i386 PE targeted port of the
69467 + linker and for ELF targeted ports. For i386 PE, symbols
69468 + explicitly listed in a .def file are still exported, regardless of
69469 + this option. For ELF targeted ports, symbols affected by this
69470 + option will be treated as hidden.
69471 +
69472 +`-E'
69473 +`--export-dynamic'
69474 + When creating a dynamically linked executable, add all symbols to
69475 + the dynamic symbol table. The dynamic symbol table is the set of
69476 + symbols which are visible from dynamic objects at run time.
69477 +
69478 + If you do not use this option, the dynamic symbol table will
69479 + normally contain only those symbols which are referenced by some
69480 + dynamic object mentioned in the link.
69481 +
69482 + If you use `dlopen' to load a dynamic object which needs to refer
69483 + back to the symbols defined by the program, rather than some other
69484 + dynamic object, then you will probably need to use this option when
69485 + linking the program itself.
69486 +
69487 + You can also use the version script to control what symbols should
69488 + be added to the dynamic symbol table if the output format supports
69489 + it. See the description of `--version-script' in *Note VERSION::.
69490 +
69491 +`-EB'
69492 + Link big-endian objects. This affects the default output format.
69493 +
69494 +`-EL'
69495 + Link little-endian objects. This affects the default output
69496 + format.
69497 +
69498 +`-f'
69499 +`--auxiliary NAME'
69500 + When creating an ELF shared object, set the internal DT_AUXILIARY
69501 + field to the specified name. This tells the dynamic linker that
69502 + the symbol table of the shared object should be used as an
69503 + auxiliary filter on the symbol table of the shared object NAME.
69504 +
69505 + If you later link a program against this filter object, then, when
69506 + you run the program, the dynamic linker will see the DT_AUXILIARY
69507 + field. If the dynamic linker resolves any symbols from the filter
69508 + object, it will first check whether there is a definition in the
69509 + shared object NAME. If there is one, it will be used instead of
69510 + the definition in the filter object. The shared object NAME need
69511 + not exist. Thus the shared object NAME may be used to provide an
69512 + alternative implementation of certain functions, perhaps for
69513 + debugging or for machine specific performance.
69514 +
69515 + This option may be specified more than once. The DT_AUXILIARY
69516 + entries will be created in the order in which they appear on the
69517 + command line.
69518 +
69519 +`-F NAME'
69520 +`--filter NAME'
69521 + When creating an ELF shared object, set the internal DT_FILTER
69522 + field to the specified name. This tells the dynamic linker that
69523 + the symbol table of the shared object which is being created
69524 + should be used as a filter on the symbol table of the shared
69525 + object NAME.
69526 +
69527 + If you later link a program against this filter object, then, when
69528 + you run the program, the dynamic linker will see the DT_FILTER
69529 + field. The dynamic linker will resolve symbols according to the
69530 + symbol table of the filter object as usual, but it will actually
69531 + link to the definitions found in the shared object NAME. Thus the
69532 + filter object can be used to select a subset of the symbols
69533 + provided by the object NAME.
69534 +
69535 + Some older linkers used the `-F' option throughout a compilation
69536 + toolchain for specifying object-file format for both input and
69537 + output object files. The GNU linker uses other mechanisms for
69538 + this purpose: the `-b', `--format', `--oformat' options, the
69539 + `TARGET' command in linker scripts, and the `GNUTARGET'
69540 + environment variable. The GNU linker will ignore the `-F' option
69541 + when not creating an ELF shared object.
69542 +
69543 +`-fini NAME'
69544 + When creating an ELF executable or shared object, call NAME when
69545 + the executable or shared object is unloaded, by setting DT_FINI to
69546 + the address of the function. By default, the linker uses `_fini'
69547 + as the function to call.
69548 +
69549 +`-g'
69550 + Ignored. Provided for compatibility with other tools.
69551 +
69552 +`-GVALUE'
69553 +`--gpsize=VALUE'
69554 + Set the maximum size of objects to be optimized using the GP
69555 + register to SIZE. This is only meaningful for object file formats
69556 + such as MIPS ECOFF which supports putting large and small objects
69557 + into different sections. This is ignored for other object file
69558 + formats.
69559 +
69560 +`-hNAME'
69561 +`-soname=NAME'
69562 + When creating an ELF shared object, set the internal DT_SONAME
69563 + field to the specified name. When an executable is linked with a
69564 + shared object which has a DT_SONAME field, then when the
69565 + executable is run the dynamic linker will attempt to load the
69566 + shared object specified by the DT_SONAME field rather than the
69567 + using the file name given to the linker.
69568 +
69569 +`-i'
69570 + Perform an incremental link (same as option `-r').
69571 +
69572 +`-init NAME'
69573 + When creating an ELF executable or shared object, call NAME when
69574 + the executable or shared object is loaded, by setting DT_INIT to
69575 + the address of the function. By default, the linker uses `_init'
69576 + as the function to call.
69577 +
69578 +`-lARCHIVE'
69579 +`--library=ARCHIVE'
69580 + Add archive file ARCHIVE to the list of files to link. This
69581 + option may be used any number of times. `ld' will search its
69582 + path-list for occurrences of `libARCHIVE.a' for every ARCHIVE
69583 + specified.
69584 +
69585 + On systems which support shared libraries, `ld' may also search for
69586 + libraries with extensions other than `.a'. Specifically, on ELF
69587 + and SunOS systems, `ld' will search a directory for a library with
69588 + an extension of `.so' before searching for one with an extension of
69589 + `.a'. By convention, a `.so' extension indicates a shared library.
69590 +
69591 + The linker will search an archive only once, at the location where
69592 + it is specified on the command line. If the archive defines a
69593 + symbol which was undefined in some object which appeared before
69594 + the archive on the command line, the linker will include the
69595 + appropriate file(s) from the archive. However, an undefined
69596 + symbol in an object appearing later on the command line will not
69597 + cause the linker to search the archive again.
69598 +
69599 + See the `-(' option for a way to force the linker to search
69600 + archives multiple times.
69601 +
69602 + You may list the same archive multiple times on the command line.
69603 +
69604 + This type of archive searching is standard for Unix linkers.
69605 + However, if you are using `ld' on AIX, note that it is different
69606 + from the behaviour of the AIX linker.
69607 +
69608 +`-LSEARCHDIR'
69609 +`--library-path=SEARCHDIR'
69610 + Add path SEARCHDIR to the list of paths that `ld' will search for
69611 + archive libraries and `ld' control scripts. You may use this
69612 + option any number of times. The directories are searched in the
69613 + order in which they are specified on the command line.
69614 + Directories specified on the command line are searched before the
69615 + default directories. All `-L' options apply to all `-l' options,
69616 + regardless of the order in which the options appear.
69617 +
69618 + If SEARCHDIR begins with `=', then the `=' will be replaced by the
69619 + "sysroot prefix", a path specified when the linker is configured.
69620 +
69621 + The default set of paths searched (without being specified with
69622 + `-L') depends on which emulation mode `ld' is using, and in some
69623 + cases also on how it was configured. *Note Environment::.
69624 +
69625 + The paths can also be specified in a link script with the
69626 + `SEARCH_DIR' command. Directories specified this way are searched
69627 + at the point in which the linker script appears in the command
69628 + line.
69629 +
69630 +`-mEMULATION'
69631 + Emulate the EMULATION linker. You can list the available
69632 + emulations with the `--verbose' or `-V' options.
69633 +
69634 + If the `-m' option is not used, the emulation is taken from the
69635 + `LDEMULATION' environment variable, if that is defined.
69636 +
69637 + Otherwise, the default emulation depends upon how the linker was
69638 + configured.
69639 +
69640 +`-M'
69641 +`--print-map'
69642 + Print a link map to the standard output. A link map provides
69643 + information about the link, including the following:
69644 +
69645 + * Where object files are mapped into memory.
69646 +
69647 + * How common symbols are allocated.
69648 +
69649 + * All archive members included in the link, with a mention of
69650 + the symbol which caused the archive member to be brought in.
69651 +
69652 + * The values assigned to symbols.
69653 +
69654 + Note - symbols whose values are computed by an expression
69655 + which involves a reference to a previous value of the same
69656 + symbol may not have correct result displayed in the link map.
69657 + This is because the linker discards intermediate results and
69658 + only retains the final value of an expression. Under such
69659 + circumstances the linker will display the final value
69660 + enclosed by square brackets. Thus for example a linker
69661 + script containing:
69662 +
69663 + foo = 1
69664 + foo = foo * 4
69665 + foo = foo + 8
69666 +
69667 + will produce the following output in the link map if the `-M'
69668 + option is used:
69669 +
69670 + 0x00000001 foo = 0x1
69671 + [0x0000000c] foo = (foo * 0x4)
69672 + [0x0000000c] foo = (foo + 0x8)
69673 +
69674 + See *Note Expressions:: for more information about
69675 + expressions in linker scripts.
69676 +
69677 +`-n'
69678 +`--nmagic'
69679 + Turn off page alignment of sections, and mark the output as
69680 + `NMAGIC' if possible.
69681 +
69682 +`-N'
69683 +`--omagic'
69684 + Set the text and data sections to be readable and writable. Also,
69685 + do not page-align the data segment, and disable linking against
69686 + shared libraries. If the output format supports Unix style magic
69687 + numbers, mark the output as `OMAGIC'. Note: Although a writable
69688 + text section is allowed for PE-COFF targets, it does not conform
69689 + to the format specification published by Microsoft.
69690 +
69691 +`--no-omagic'
69692 + This option negates most of the effects of the `-N' option. It
69693 + sets the text section to be read-only, and forces the data segment
69694 + to be page-aligned. Note - this option does not enable linking
69695 + against shared libraries. Use `-Bdynamic' for this.
69696 +
69697 +`-o OUTPUT'
69698 +`--output=OUTPUT'
69699 + Use OUTPUT as the name for the program produced by `ld'; if this
69700 + option is not specified, the name `a.out' is used by default. The
69701 + script command `OUTPUT' can also specify the output file name.
69702 +
69703 +`-O LEVEL'
69704 + If LEVEL is a numeric values greater than zero `ld' optimizes the
69705 + output. This might take significantly longer and therefore
69706 + probably should only be enabled for the final binary.
69707 +
69708 +`-q'
69709 +`--emit-relocs'
69710 + Leave relocation sections and contents in fully linked
69711 + exececutables. Post link analysis and optimization tools may need
69712 + this information in order to perform correct modifications of
69713 + executables. This results in larger executables.
69714 +
69715 + This option is currently only supported on ELF platforms.
69716 +
69717 +`--force-dynamic'
69718 + Force the output file to have dynamic sections. This option is
69719 + specific to VxWorks targets.
69720 +
69721 +`-r'
69722 +`--relocatable'
69723 + Generate relocatable output--i.e., generate an output file that
69724 + can in turn serve as input to `ld'. This is often called "partial
69725 + linking". As a side effect, in environments that support standard
69726 + Unix magic numbers, this option also sets the output file's magic
69727 + number to `OMAGIC'. If this option is not specified, an absolute
69728 + file is produced. When linking C++ programs, this option _will
69729 + not_ resolve references to constructors; to do that, use `-Ur'.
69730 +
69731 + When an input file does not have the same format as the output
69732 + file, partial linking is only supported if that input file does
69733 + not contain any relocations. Different output formats can have
69734 + further restrictions; for example some `a.out'-based formats do
69735 + not support partial linking with input files in other formats at
69736 + all.
69737 +
69738 + This option does the same thing as `-i'.
69739 +
69740 +`-R FILENAME'
69741 +`--just-symbols=FILENAME'
69742 + Read symbol names and their addresses from FILENAME, but do not
69743 + relocate it or include it in the output. This allows your output
69744 + file to refer symbolically to absolute locations of memory defined
69745 + in other programs. You may use this option more than once.
69746 +
69747 + For compatibility with other ELF linkers, if the `-R' option is
69748 + followed by a directory name, rather than a file name, it is
69749 + treated as the `-rpath' option.
69750 +
69751 +`-s'
69752 +`--strip-all'
69753 + Omit all symbol information from the output file.
69754 +
69755 +`-S'
69756 +`--strip-debug'
69757 + Omit debugger symbol information (but not all symbols) from the
69758 + output file.
69759 +
69760 +`-t'
69761 +`--trace'
69762 + Print the names of the input files as `ld' processes them.
69763 +
69764 +`-T SCRIPTFILE'
69765 +`--script=SCRIPTFILE'
69766 + Use SCRIPTFILE as the linker script. This script replaces `ld''s
69767 + default linker script (rather than adding to it), so COMMANDFILE
69768 + must specify everything necessary to describe the output file.
69769 + *Note Scripts::. If SCRIPTFILE does not exist in the current
69770 + directory, `ld' looks for it in the directories specified by any
69771 + preceding `-L' options. Multiple `-T' options accumulate.
69772 +
69773 +`-u SYMBOL'
69774 +`--undefined=SYMBOL'
69775 + Force SYMBOL to be entered in the output file as an undefined
69776 + symbol. Doing this may, for example, trigger linking of additional
69777 + modules from standard libraries. `-u' may be repeated with
69778 + different option arguments to enter additional undefined symbols.
69779 + This option is equivalent to the `EXTERN' linker script command.
69780 +
69781 +`-Ur'
69782 + For anything other than C++ programs, this option is equivalent to
69783 + `-r': it generates relocatable output--i.e., an output file that
69784 + can in turn serve as input to `ld'. When linking C++ programs,
69785 + `-Ur' _does_ resolve references to constructors, unlike `-r'. It
69786 + does not work to use `-Ur' on files that were themselves linked
69787 + with `-Ur'; once the constructor table has been built, it cannot
69788 + be added to. Use `-Ur' only for the last partial link, and `-r'
69789 + for the others.
69790 +
69791 +`--unique[=SECTION]'
69792 + Creates a separate output section for every input section matching
69793 + SECTION, or if the optional wildcard SECTION argument is missing,
69794 + for every orphan input section. An orphan section is one not
69795 + specifically mentioned in a linker script. You may use this option
69796 + multiple times on the command line; It prevents the normal
69797 + merging of input sections with the same name, overriding output
69798 + section assignments in a linker script.
69799 +
69800 +`-v'
69801 +`--version'
69802 +`-V'
69803 + Display the version number for `ld'. The `-V' option also lists
69804 + the supported emulations.
69805 +
69806 +`-x'
69807 +`--discard-all'
69808 + Delete all local symbols.
69809 +
69810 +`-X'
69811 +`--discard-locals'
69812 + Delete all temporary local symbols. For most targets, this is all
69813 + local symbols whose names begin with `L'.
69814 +
69815 +`-y SYMBOL'
69816 +`--trace-symbol=SYMBOL'
69817 + Print the name of each linked file in which SYMBOL appears. This
69818 + option may be given any number of times. On many systems it is
69819 + necessary to prepend an underscore.
69820 +
69821 + This option is useful when you have an undefined symbol in your
69822 + link but don't know where the reference is coming from.
69823 +
69824 +`-Y PATH'
69825 + Add PATH to the default library search path. This option exists
69826 + for Solaris compatibility.
69827 +
69828 +`-z KEYWORD'
69829 + The recognized keywords are:
69830 + `combreloc'
69831 + Combines multiple reloc sections and sorts them to make
69832 + dynamic symbol lookup caching possible.
69833 +
69834 + `defs'
69835 + Disallows undefined symbols in object files. Undefined
69836 + symbols in shared libraries are still allowed.
69837 +
69838 + `execstack'
69839 + Marks the object as requiring executable stack.
69840 +
69841 + `initfirst'
69842 + This option is only meaningful when building a shared object.
69843 + It marks the object so that its runtime initialization will
69844 + occur before the runtime initialization of any other objects
69845 + brought into the process at the same time. Similarly the
69846 + runtime finalization of the object will occur after the
69847 + runtime finalization of any other objects.
69848 +
69849 + `interpose'
69850 + Marks the object that its symbol table interposes before all
69851 + symbols but the primary executable.
69852 +
69853 + `loadfltr'
69854 + Marks the object that its filters be processed immediately at
69855 + runtime.
69856 +
69857 + `muldefs'
69858 + Allows multiple definitions.
69859 +
69860 + `nocombreloc'
69861 + Disables multiple reloc sections combining.
69862 +
69863 + `nocopyreloc'
69864 + Disables production of copy relocs.
69865 +
69866 + `nodefaultlib'
69867 + Marks the object that the search for dependencies of this
69868 + object will ignore any default library search paths.
69869 +
69870 + `nodelete'
69871 + Marks the object shouldn't be unloaded at runtime.
69872 +
69873 + `nodlopen'
69874 + Marks the object not available to `dlopen'.
69875 +
69876 + `nodump'
69877 + Marks the object can not be dumped by `dldump'.
69878 +
69879 + `noexecstack'
69880 + Marks the object as not requiring executable stack.
69881 +
69882 + `norelro'
69883 + Don't create an ELF `PT_GNU_RELRO' segment header in the
69884 + object.
69885 +
69886 + `now'
69887 + When generating an executable or shared library, mark it to
69888 + tell the dynamic linker to resolve all symbols when the
69889 + program is started, or when the shared library is linked to
69890 + using dlopen, instead of deferring function call resolution
69891 + to the point when the function is first called.
69892 +
69893 + `origin'
69894 + Marks the object may contain $ORIGIN.
69895 +
69896 + `relro'
69897 + Create an ELF `PT_GNU_RELRO' segment header in the object.
69898 +
69899 +
69900 + Other keywords are ignored for Solaris compatibility.
69901 +
69902 +`-( ARCHIVES -)'
69903 +`--start-group ARCHIVES --end-group'
69904 + The ARCHIVES should be a list of archive files. They may be
69905 + either explicit file names, or `-l' options.
69906 +
69907 + The specified archives are searched repeatedly until no new
69908 + undefined references are created. Normally, an archive is
69909 + searched only once in the order that it is specified on the
69910 + command line. If a symbol in that archive is needed to resolve an
69911 + undefined symbol referred to by an object in an archive that
69912 + appears later on the command line, the linker would not be able to
69913 + resolve that reference. By grouping the archives, they all be
69914 + searched repeatedly until all possible references are resolved.
69915 +
69916 + Using this option has a significant performance cost. It is best
69917 + to use it only when there are unavoidable circular references
69918 + between two or more archives.
69919 +
69920 +`--accept-unknown-input-arch'
69921 +`--no-accept-unknown-input-arch'
69922 + Tells the linker to accept input files whose architecture cannot be
69923 + recognised. The assumption is that the user knows what they are
69924 + doing and deliberately wants to link in these unknown input files.
69925 + This was the default behaviour of the linker, before release
69926 + 2.14. The default behaviour from release 2.14 onwards is to
69927 + reject such input files, and so the `--accept-unknown-input-arch'
69928 + option has been added to restore the old behaviour.
69929 +
69930 +`--as-needed'
69931 +`--no-as-needed'
69932 + This option affects ELF DT_NEEDED tags for dynamic libraries
69933 + mentioned on the command line after the `--as-needed' option.
69934 + Normally, the linker will add a DT_NEEDED tag for each dynamic
69935 + library mentioned on the command line, regardless of whether the
69936 + library is actually needed. `--as-needed' causes DT_NEEDED tags
69937 + to only be emitted for libraries that satisfy some symbol
69938 + reference from regular objects which is undefined at the point
69939 + that the library was linked. `--no-as-needed' restores the
69940 + default behaviour.
69941 +
69942 +`--add-needed'
69943 +`--no-add-needed'
69944 + This option affects the treatment of dynamic libraries from ELF
69945 + DT_NEEDED tags in dynamic libraries mentioned on the command line
69946 + after the `--no-add-needed' option. Normally, the linker will add
69947 + a DT_NEEDED tag for each dynamic library from DT_NEEDED tags.
69948 + `--no-add-needed' causes DT_NEEDED tags will never be emitted for
69949 + those libraries from DT_NEEDED tags. `--add-needed' restores the
69950 + default behaviour.
69951 +
69952 +`-assert KEYWORD'
69953 + This option is ignored for SunOS compatibility.
69954 +
69955 +`-Bdynamic'
69956 +`-dy'
69957 +`-call_shared'
69958 + Link against dynamic libraries. This is only meaningful on
69959 + platforms for which shared libraries are supported. This option
69960 + is normally the default on such platforms. The different variants
69961 + of this option are for compatibility with various systems. You
69962 + may use this option multiple times on the command line: it affects
69963 + library searching for `-l' options which follow it.
69964 +
69965 +`-Bgroup'
69966 + Set the `DF_1_GROUP' flag in the `DT_FLAGS_1' entry in the dynamic
69967 + section. This causes the runtime linker to handle lookups in this
69968 + object and its dependencies to be performed only inside the group.
69969 + `--unresolved-symbols=report-all' is implied. This option is only
69970 + meaningful on ELF platforms which support shared libraries.
69971 +
69972 +`-Bstatic'
69973 +`-dn'
69974 +`-non_shared'
69975 +`-static'
69976 + Do not link against shared libraries. This is only meaningful on
69977 + platforms for which shared libraries are supported. The different
69978 + variants of this option are for compatibility with various
69979 + systems. You may use this option multiple times on the command
69980 + line: it affects library searching for `-l' options which follow
69981 + it. This option also implies `--unresolved-symbols=report-all'.
69982 + This option can be used with `-shared'. Doing so means that a
69983 + shared library is being created but that all of the library's
69984 + external references must be resolved by pulling in entries from
69985 + static libraries.
69986 +
69987 +`-Bsymbolic'
69988 + When creating a shared library, bind references to global symbols
69989 + to the definition within the shared library, if any. Normally, it
69990 + is possible for a program linked against a shared library to
69991 + override the definition within the shared library. This option is
69992 + only meaningful on ELF platforms which support shared libraries.
69993 +
69994 +`--check-sections'
69995 +`--no-check-sections'
69996 + Asks the linker _not_ to check section addresses after they have
69997 + been assigned to see if there are any overlaps. Normally the
69998 + linker will perform this check, and if it finds any overlaps it
69999 + will produce suitable error messages. The linker does know about,
70000 + and does make allowances for sections in overlays. The default
70001 + behaviour can be restored by using the command line switch
70002 + `--check-sections'.
70003 +
70004 +`--cref'
70005 + Output a cross reference table. If a linker map file is being
70006 + generated, the cross reference table is printed to the map file.
70007 + Otherwise, it is printed on the standard output.
70008 +
70009 + The format of the table is intentionally simple, so that it may be
70010 + easily processed by a script if necessary. The symbols are
70011 + printed out, sorted by name. For each symbol, a list of file
70012 + names is given. If the symbol is defined, the first file listed
70013 + is the location of the definition. The remaining files contain
70014 + references to the symbol.
70015 +
70016 +`--no-define-common'
70017 + This option inhibits the assignment of addresses to common symbols.
70018 + The script command `INHIBIT_COMMON_ALLOCATION' has the same effect.
70019 + *Note Miscellaneous Commands::.
70020 +
70021 + The `--no-define-common' option allows decoupling the decision to
70022 + assign addresses to Common symbols from the choice of the output
70023 + file type; otherwise a non-Relocatable output type forces
70024 + assigning addresses to Common symbols. Using `--no-define-common'
70025 + allows Common symbols that are referenced from a shared library to
70026 + be assigned addresses only in the main program. This eliminates
70027 + the unused duplicate space in the shared library, and also
70028 + prevents any possible confusion over resolving to the wrong
70029 + duplicate when there are many dynamic modules with specialized
70030 + search paths for runtime symbol resolution.
70031 +
70032 +`--defsym SYMBOL=EXPRESSION'
70033 + Create a global symbol in the output file, containing the absolute
70034 + address given by EXPRESSION. You may use this option as many
70035 + times as necessary to define multiple symbols in the command line.
70036 + A limited form of arithmetic is supported for the EXPRESSION in
70037 + this context: you may give a hexadecimal constant or the name of
70038 + an existing symbol, or use `+' and `-' to add or subtract
70039 + hexadecimal constants or symbols. If you need more elaborate
70040 + expressions, consider using the linker command language from a
70041 + script (*note Assignment: Symbol Definitions: Assignments.).
70042 + _Note:_ there should be no white space between SYMBOL, the equals
70043 + sign ("<=>"), and EXPRESSION.
70044 +
70045 +`--demangle[=STYLE]'
70046 +`--no-demangle'
70047 + These options control whether to demangle symbol names in error
70048 + messages and other output. When the linker is told to demangle,
70049 + it tries to present symbol names in a readable fashion: it strips
70050 + leading underscores if they are used by the object file format,
70051 + and converts C++ mangled symbol names into user readable names.
70052 + Different compilers have different mangling styles. The optional
70053 + demangling style argument can be used to choose an appropriate
70054 + demangling style for your compiler. The linker will demangle by
70055 + default unless the environment variable `COLLECT_NO_DEMANGLE' is
70056 + set. These options may be used to override the default.
70057 +
70058 +`--dynamic-linker FILE'
70059 + Set the name of the dynamic linker. This is only meaningful when
70060 + generating dynamically linked ELF executables. The default dynamic
70061 + linker is normally correct; don't use this unless you know what
70062 + you are doing.
70063 +
70064 +`--fatal-warnings'
70065 + Treat all warnings as errors.
70066 +
70067 +`--force-exe-suffix'
70068 + Make sure that an output file has a .exe suffix.
70069 +
70070 + If a successfully built fully linked output file does not have a
70071 + `.exe' or `.dll' suffix, this option forces the linker to copy the
70072 + output file to one of the same name with a `.exe' suffix. This
70073 + option is useful when using unmodified Unix makefiles on a
70074 + Microsoft Windows host, since some versions of Windows won't run
70075 + an image unless it ends in a `.exe' suffix.
70076 +
70077 +`--no-gc-sections'
70078 +`--gc-sections'
70079 + Enable garbage collection of unused input sections. It is ignored
70080 + on targets that do not support this option. This option is not
70081 + compatible with `-r'. The default behaviour (of not performing
70082 + this garbage collection) can be restored by specifying
70083 + `--no-gc-sections' on the command line.
70084 +
70085 +`--help'
70086 + Print a summary of the command-line options on the standard output
70087 + and exit.
70088 +
70089 +`--target-help'
70090 + Print a summary of all target specific options on the standard
70091 + output and exit.
70092 +
70093 +`-Map MAPFILE'
70094 + Print a link map to the file MAPFILE. See the description of the
70095 + `-M' option, above.
70096 +
70097 +`--no-keep-memory'
70098 + `ld' normally optimizes for speed over memory usage by caching the
70099 + symbol tables of input files in memory. This option tells `ld' to
70100 + instead optimize for memory usage, by rereading the symbol tables
70101 + as necessary. This may be required if `ld' runs out of memory
70102 + space while linking a large executable.
70103 +
70104 +`--no-undefined'
70105 +`-z defs'
70106 + Report unresolved symbol references from regular object files.
70107 + This is done even if the linker is creating a non-symbolic shared
70108 + library. The switch `--[no-]allow-shlib-undefined' controls the
70109 + behaviour for reporting unresolved references found in shared
70110 + libraries being linked in.
70111 +
70112 +`--allow-multiple-definition'
70113 +`-z muldefs'
70114 + Normally when a symbol is defined multiple times, the linker will
70115 + report a fatal error. These options allow multiple definitions and
70116 + the first definition will be used.
70117 +
70118 +`--allow-shlib-undefined'
70119 +`--no-allow-shlib-undefined'
70120 + Allows (the default) or disallows undefined symbols in shared
70121 + libraries. This switch is similar to `--no-undefined' except that
70122 + it determines the behaviour when the undefined symbols are in a
70123 + shared library rather than a regular object file. It does not
70124 + affect how undefined symbols in regular object files are handled.
70125 +
70126 + The reason that `--allow-shlib-undefined' is the default is that
70127 + the shared library being specified at link time may not be the
70128 + same as the one that is available at load time, so the symbols
70129 + might actually be resolvable at load time. Plus there are some
70130 + systems, (eg BeOS) where undefined symbols in shared libraries is
70131 + normal. (The kernel patches them at load time to select which
70132 + function is most appropriate for the current architecture. This
70133 + is used for example to dynamically select an appropriate memset
70134 + function). Apparently it is also normal for HPPA shared libraries
70135 + to have undefined symbols.
70136 +
70137 +`--no-undefined-version'
70138 + Normally when a symbol has an undefined version, the linker will
70139 + ignore it. This option disallows symbols with undefined version
70140 + and a fatal error will be issued instead.
70141 +
70142 +`--default-symver'
70143 + Create and use a default symbol version (the soname) for
70144 + unversioned exported symbols.
70145 +
70146 +`--default-imported-symver'
70147 + Create and use a default symbol version (the soname) for
70148 + unversioned imported symbols.
70149 +
70150 +`--no-warn-mismatch'
70151 + Normally `ld' will give an error if you try to link together input
70152 + files that are mismatched for some reason, perhaps because they
70153 + have been compiled for different processors or for different
70154 + endiannesses. This option tells `ld' that it should silently
70155 + permit such possible errors. This option should only be used with
70156 + care, in cases when you have taken some special action that
70157 + ensures that the linker errors are inappropriate.
70158 +
70159 +`--no-whole-archive'
70160 + Turn off the effect of the `--whole-archive' option for subsequent
70161 + archive files.
70162 +
70163 +`--noinhibit-exec'
70164 + Retain the executable output file whenever it is still usable.
70165 + Normally, the linker will not produce an output file if it
70166 + encounters errors during the link process; it exits without
70167 + writing an output file when it issues any error whatsoever.
70168 +
70169 +`-nostdlib'
70170 + Only search library directories explicitly specified on the
70171 + command line. Library directories specified in linker scripts
70172 + (including linker scripts specified on the command line) are
70173 + ignored.
70174 +
70175 +`--oformat OUTPUT-FORMAT'
70176 + `ld' may be configured to support more than one kind of object
70177 + file. If your `ld' is configured this way, you can use the
70178 + `--oformat' option to specify the binary format for the output
70179 + object file. Even when `ld' is configured to support alternative
70180 + object formats, you don't usually need to specify this, as `ld'
70181 + should be configured to produce as a default output format the most
70182 + usual format on each machine. OUTPUT-FORMAT is a text string, the
70183 + name of a particular format supported by the BFD libraries. (You
70184 + can list the available binary formats with `objdump -i'.) The
70185 + script command `OUTPUT_FORMAT' can also specify the output format,
70186 + but this option overrides it. *Note BFD::.
70187 +
70188 +`-pie'
70189 +`--pic-executable'
70190 + Create a position independent executable. This is currently only
70191 + supported on ELF platforms. Position independent executables are
70192 + similar to shared libraries in that they are relocated by the
70193 + dynamic linker to the virtual address the OS chooses for them
70194 + (which can vary between invocations). Like normal dynamically
70195 + linked executables they can be executed and symbols defined in the
70196 + executable cannot be overridden by shared libraries.
70197 +
70198 +`-qmagic'
70199 + This option is ignored for Linux compatibility.
70200 +
70201 +`-Qy'
70202 + This option is ignored for SVR4 compatibility.
70203 +
70204 +`--relax'
70205 + An option with machine dependent effects. This option is only
70206 + supported on a few targets. *Note `ld' and the H8/300: H8/300.
70207 + *Note `ld' and the Intel 960 family: i960. *Note `ld' and Xtensa
70208 + Processors: Xtensa. *Note `ld' and PowerPC 32-bit ELF Support:
70209 + PowerPC ELF32.
70210 +
70211 + On some platforms, the `--relax' option performs global
70212 + optimizations that become possible when the linker resolves
70213 + addressing in the program, such as relaxing address modes and
70214 + synthesizing new instructions in the output object file.
70215 +
70216 + On some platforms these link time global optimizations may make
70217 + symbolic debugging of the resulting executable impossible. This
70218 + is known to be the case for the Matsushita MN10200 and MN10300
70219 + family of processors.
70220 +
70221 + On platforms where this is not supported, `--relax' is accepted,
70222 + but ignored.
70223 +
70224 +`--retain-symbols-file FILENAME'
70225 + Retain _only_ the symbols listed in the file FILENAME, discarding
70226 + all others. FILENAME is simply a flat file, with one symbol name
70227 + per line. This option is especially useful in environments (such
70228 + as VxWorks) where a large global symbol table is accumulated
70229 + gradually, to conserve run-time memory.
70230 +
70231 + `--retain-symbols-file' does _not_ discard undefined symbols, or
70232 + symbols needed for relocations.
70233 +
70234 + You may only specify `--retain-symbols-file' once in the command
70235 + line. It overrides `-s' and `-S'.
70236 +
70237 +`-rpath DIR'
70238 + Add a directory to the runtime library search path. This is used
70239 + when linking an ELF executable with shared objects. All `-rpath'
70240 + arguments are concatenated and passed to the runtime linker, which
70241 + uses them to locate shared objects at runtime. The `-rpath'
70242 + option is also used when locating shared objects which are needed
70243 + by shared objects explicitly included in the link; see the
70244 + description of the `-rpath-link' option. If `-rpath' is not used
70245 + when linking an ELF executable, the contents of the environment
70246 + variable `LD_RUN_PATH' will be used if it is defined.
70247 +
70248 + The `-rpath' option may also be used on SunOS. By default, on
70249 + SunOS, the linker will form a runtime search patch out of all the
70250 + `-L' options it is given. If a `-rpath' option is used, the
70251 + runtime search path will be formed exclusively using the `-rpath'
70252 + options, ignoring the `-L' options. This can be useful when using
70253 + gcc, which adds many `-L' options which may be on NFS mounted
70254 + filesystems.
70255 +
70256 + For compatibility with other ELF linkers, if the `-R' option is
70257 + followed by a directory name, rather than a file name, it is
70258 + treated as the `-rpath' option.
70259 +
70260 +`-rpath-link DIR'
70261 + When using ELF or SunOS, one shared library may require another.
70262 + This happens when an `ld -shared' link includes a shared library
70263 + as one of the input files.
70264 +
70265 + When the linker encounters such a dependency when doing a
70266 + non-shared, non-relocatable link, it will automatically try to
70267 + locate the required shared library and include it in the link, if
70268 + it is not included explicitly. In such a case, the `-rpath-link'
70269 + option specifies the first set of directories to search. The
70270 + `-rpath-link' option may specify a sequence of directory names
70271 + either by specifying a list of names separated by colons, or by
70272 + appearing multiple times.
70273 +
70274 + This option should be used with caution as it overrides the search
70275 + path that may have been hard compiled into a shared library. In
70276 + such a case it is possible to use unintentionally a different
70277 + search path than the runtime linker would do.
70278 +
70279 + The linker uses the following search paths to locate required
70280 + shared libraries.
70281 + 1. Any directories specified by `-rpath-link' options.
70282 +
70283 + 2. Any directories specified by `-rpath' options. The difference
70284 + between `-rpath' and `-rpath-link' is that directories
70285 + specified by `-rpath' options are included in the executable
70286 + and used at runtime, whereas the `-rpath-link' option is only
70287 + effective at link time. It is for the native linker only.
70288 +
70289 + 3. On an ELF system, if the `-rpath' and `rpath-link' options
70290 + were not used, search the contents of the environment variable
70291 + `LD_RUN_PATH'. It is for the native linker only.
70292 +
70293 + 4. On SunOS, if the `-rpath' option was not used, search any
70294 + directories specified using `-L' options.
70295 +
70296 + 5. For a native linker, the contents of the environment variable
70297 + `LD_LIBRARY_PATH'.
70298 +
70299 + 6. For a native ELF linker, the directories in `DT_RUNPATH' or
70300 + `DT_RPATH' of a shared library are searched for shared
70301 + libraries needed by it. The `DT_RPATH' entries are ignored if
70302 + `DT_RUNPATH' entries exist.
70303 +
70304 + 7. The default directories, normally `/lib' and `/usr/lib'.
70305 +
70306 + 8. For a native linker on an ELF system, if the file
70307 + `/etc/ld.so.conf' exists, the list of directories found in
70308 + that file.
70309 +
70310 + If the required shared library is not found, the linker will issue
70311 + a warning and continue with the link.
70312 +
70313 +`-shared'
70314 +`-Bshareable'
70315 + Create a shared library. This is currently only supported on ELF,
70316 + XCOFF and SunOS platforms. On SunOS, the linker will
70317 + automatically create a shared library if the `-e' option is not
70318 + used and there are undefined symbols in the link.
70319 +
70320 +`--sort-common'
70321 + This option tells `ld' to sort the common symbols by size when it
70322 + places them in the appropriate output sections. First come all
70323 + the one byte symbols, then all the two byte, then all the four
70324 + byte, and then everything else. This is to prevent gaps between
70325 + symbols due to alignment constraints.
70326 +
70327 +`--sort-section name'
70328 + This option will apply `SORT_BY_NAME' to all wildcard section
70329 + patterns in the linker script.
70330 +
70331 +`--sort-section alignment'
70332 + This option will apply `SORT_BY_ALIGNMENT' to all wildcard section
70333 + patterns in the linker script.
70334 +
70335 +`--split-by-file [SIZE]'
70336 + Similar to `--split-by-reloc' but creates a new output section for
70337 + each input file when SIZE is reached. SIZE defaults to a size of
70338 + 1 if not given.
70339 +
70340 +`--split-by-reloc [COUNT]'
70341 + Tries to creates extra sections in the output file so that no
70342 + single output section in the file contains more than COUNT
70343 + relocations. This is useful when generating huge relocatable
70344 + files for downloading into certain real time kernels with the COFF
70345 + object file format; since COFF cannot represent more than 65535
70346 + relocations in a single section. Note that this will fail to work
70347 + with object file formats which do not support arbitrary sections.
70348 + The linker will not split up individual input sections for
70349 + redistribution, so if a single input section contains more than
70350 + COUNT relocations one output section will contain that many
70351 + relocations. COUNT defaults to a value of 32768.
70352 +
70353 +`--stats'
70354 + Compute and display statistics about the operation of the linker,
70355 + such as execution time and memory usage.
70356 +
70357 +`--sysroot=DIRECTORY'
70358 + Use DIRECTORY as the location of the sysroot, overriding the
70359 + configure-time default. This option is only supported by linkers
70360 + that were configured using `--with-sysroot'.
70361 +
70362 +`--traditional-format'
70363 + For some targets, the output of `ld' is different in some ways from
70364 + the output of some existing linker. This switch requests `ld' to
70365 + use the traditional format instead.
70366 +
70367 + For example, on SunOS, `ld' combines duplicate entries in the
70368 + symbol string table. This can reduce the size of an output file
70369 + with full debugging information by over 30 percent.
70370 + Unfortunately, the SunOS `dbx' program can not read the resulting
70371 + program (`gdb' has no trouble). The `--traditional-format' switch
70372 + tells `ld' to not combine duplicate entries.
70373 +
70374 +`--section-start SECTIONNAME=ORG'
70375 + Locate a section in the output file at the absolute address given
70376 + by ORG. You may use this option as many times as necessary to
70377 + locate multiple sections in the command line. ORG must be a
70378 + single hexadecimal integer; for compatibility with other linkers,
70379 + you may omit the leading `0x' usually associated with hexadecimal
70380 + values. _Note:_ there should be no white space between
70381 + SECTIONNAME, the equals sign ("<=>"), and ORG.
70382 +
70383 +`-Tbss ORG'
70384 +`-Tdata ORG'
70385 +`-Ttext ORG'
70386 + Same as -section-start, with `.bss', `.data' or `.text' as the
70387 + SECTIONNAME.
70388 +
70389 +`--unresolved-symbols=METHOD'
70390 + Determine how to handle unresolved symbols. There are four
70391 + possible values for `method':
70392 +
70393 + `ignore-all'
70394 + Do not report any unresolved symbols.
70395 +
70396 + `report-all'
70397 + Report all unresolved symbols. This is the default.
70398 +
70399 + `ignore-in-object-files'
70400 + Report unresolved symbols that are contained in shared
70401 + libraries, but ignore them if they come from regular object
70402 + files.
70403 +
70404 + `ignore-in-shared-libs'
70405 + Report unresolved symbols that come from regular object
70406 + files, but ignore them if they come from shared libraries.
70407 + This can be useful when creating a dynamic binary and it is
70408 + known that all the shared libraries that it should be
70409 + referencing are included on the linker's command line.
70410 +
70411 + The behaviour for shared libraries on their own can also be
70412 + controlled by the `--[no-]allow-shlib-undefined' option.
70413 +
70414 + Normally the linker will generate an error message for each
70415 + reported unresolved symbol but the option
70416 + `--warn-unresolved-symbols' can change this to a warning.
70417 +
70418 +`--dll-verbose'
70419 +`--verbose'
70420 + Display the version number for `ld' and list the linker emulations
70421 + supported. Display which input files can and cannot be opened.
70422 + Display the linker script being used by the linker.
70423 +
70424 +`--version-script=VERSION-SCRIPTFILE'
70425 + Specify the name of a version script to the linker. This is
70426 + typically used when creating shared libraries to specify
70427 + additional information about the version hierarchy for the library
70428 + being created. This option is only meaningful on ELF platforms
70429 + which support shared libraries. *Note VERSION::.
70430 +
70431 +`--warn-common'
70432 + Warn when a common symbol is combined with another common symbol
70433 + or with a symbol definition. Unix linkers allow this somewhat
70434 + sloppy practise, but linkers on some other operating systems do
70435 + not. This option allows you to find potential problems from
70436 + combining global symbols. Unfortunately, some C libraries use
70437 + this practise, so you may get some warnings about symbols in the
70438 + libraries as well as in your programs.
70439 +
70440 + There are three kinds of global symbols, illustrated here by C
70441 + examples:
70442 +
70443 + `int i = 1;'
70444 + A definition, which goes in the initialized data section of
70445 + the output file.
70446 +
70447 + `extern int i;'
70448 + An undefined reference, which does not allocate space. There
70449 + must be either a definition or a common symbol for the
70450 + variable somewhere.
70451 +
70452 + `int i;'
70453 + A common symbol. If there are only (one or more) common
70454 + symbols for a variable, it goes in the uninitialized data
70455 + area of the output file. The linker merges multiple common
70456 + symbols for the same variable into a single symbol. If they
70457 + are of different sizes, it picks the largest size. The
70458 + linker turns a common symbol into a declaration, if there is
70459 + a definition of the same variable.
70460 +
70461 + The `--warn-common' option can produce five kinds of warnings.
70462 + Each warning consists of a pair of lines: the first describes the
70463 + symbol just encountered, and the second describes the previous
70464 + symbol encountered with the same name. One or both of the two
70465 + symbols will be a common symbol.
70466 +
70467 + 1. Turning a common symbol into a reference, because there is
70468 + already a definition for the symbol.
70469 + FILE(SECTION): warning: common of `SYMBOL'
70470 + overridden by definition
70471 + FILE(SECTION): warning: defined here
70472 +
70473 + 2. Turning a common symbol into a reference, because a later
70474 + definition for the symbol is encountered. This is the same
70475 + as the previous case, except that the symbols are encountered
70476 + in a different order.
70477 + FILE(SECTION): warning: definition of `SYMBOL'
70478 + overriding common
70479 + FILE(SECTION): warning: common is here
70480 +
70481 + 3. Merging a common symbol with a previous same-sized common
70482 + symbol.
70483 + FILE(SECTION): warning: multiple common
70484 + of `SYMBOL'
70485 + FILE(SECTION): warning: previous common is here
70486 +
70487 + 4. Merging a common symbol with a previous larger common symbol.
70488 + FILE(SECTION): warning: common of `SYMBOL'
70489 + overridden by larger common
70490 + FILE(SECTION): warning: larger common is here
70491 +
70492 + 5. Merging a common symbol with a previous smaller common
70493 + symbol. This is the same as the previous case, except that
70494 + the symbols are encountered in a different order.
70495 + FILE(SECTION): warning: common of `SYMBOL'
70496 + overriding smaller common
70497 + FILE(SECTION): warning: smaller common is here
70498 +
70499 +`--warn-constructors'
70500 + Warn if any global constructors are used. This is only useful for
70501 + a few object file formats. For formats like COFF or ELF, the
70502 + linker can not detect the use of global constructors.
70503 +
70504 +`--warn-multiple-gp'
70505 + Warn if multiple global pointer values are required in the output
70506 + file. This is only meaningful for certain processors, such as the
70507 + Alpha. Specifically, some processors put large-valued constants
70508 + in a special section. A special register (the global pointer)
70509 + points into the middle of this section, so that constants can be
70510 + loaded efficiently via a base-register relative addressing mode.
70511 + Since the offset in base-register relative mode is fixed and
70512 + relatively small (e.g., 16 bits), this limits the maximum size of
70513 + the constant pool. Thus, in large programs, it is often necessary
70514 + to use multiple global pointer values in order to be able to
70515 + address all possible constants. This option causes a warning to
70516 + be issued whenever this case occurs.
70517 +
70518 +`--warn-once'
70519 + Only warn once for each undefined symbol, rather than once per
70520 + module which refers to it.
70521 +
70522 +`--warn-section-align'
70523 + Warn if the address of an output section is changed because of
70524 + alignment. Typically, the alignment will be set by an input
70525 + section. The address will only be changed if it not explicitly
70526 + specified; that is, if the `SECTIONS' command does not specify a
70527 + start address for the section (*note SECTIONS::).
70528 +
70529 +`--warn-shared-textrel'
70530 + Warn if the linker adds a DT_TEXTREL to a shared object.
70531 +
70532 +`--warn-unresolved-symbols'
70533 + If the linker is going to report an unresolved symbol (see the
70534 + option `--unresolved-symbols') it will normally generate an error.
70535 + This option makes it generate a warning instead.
70536 +
70537 +`--error-unresolved-symbols'
70538 + This restores the linker's default behaviour of generating errors
70539 + when it is reporting unresolved symbols.
70540 +
70541 +`--whole-archive'
70542 + For each archive mentioned on the command line after the
70543 + `--whole-archive' option, include every object file in the archive
70544 + in the link, rather than searching the archive for the required
70545 + object files. This is normally used to turn an archive file into
70546 + a shared library, forcing every object to be included in the
70547 + resulting shared library. This option may be used more than once.
70548 +
70549 + Two notes when using this option from gcc: First, gcc doesn't know
70550 + about this option, so you have to use `-Wl,-whole-archive'.
70551 + Second, don't forget to use `-Wl,-no-whole-archive' after your
70552 + list of archives, because gcc will add its own list of archives to
70553 + your link and you may not want this flag to affect those as well.
70554 +
70555 +`--wrap SYMBOL'
70556 + Use a wrapper function for SYMBOL. Any undefined reference to
70557 + SYMBOL will be resolved to `__wrap_SYMBOL'. Any undefined
70558 + reference to `__real_SYMBOL' will be resolved to SYMBOL.
70559 +
70560 + This can be used to provide a wrapper for a system function. The
70561 + wrapper function should be called `__wrap_SYMBOL'. If it wishes
70562 + to call the system function, it should call `__real_SYMBOL'.
70563 +
70564 + Here is a trivial example:
70565 +
70566 + void *
70567 + __wrap_malloc (size_t c)
70568 + {
70569 + printf ("malloc called with %zu\n", c);
70570 + return __real_malloc (c);
70571 + }
70572 +
70573 + If you link other code with this file using `--wrap malloc', then
70574 + all calls to `malloc' will call the function `__wrap_malloc'
70575 + instead. The call to `__real_malloc' in `__wrap_malloc' will call
70576 + the real `malloc' function.
70577 +
70578 + You may wish to provide a `__real_malloc' function as well, so that
70579 + links without the `--wrap' option will succeed. If you do this,
70580 + you should not put the definition of `__real_malloc' in the same
70581 + file as `__wrap_malloc'; if you do, the assembler may resolve the
70582 + call before the linker has a chance to wrap it to `malloc'.
70583 +
70584 +`--eh-frame-hdr'
70585 + Request creation of `.eh_frame_hdr' section and ELF
70586 + `PT_GNU_EH_FRAME' segment header.
70587 +
70588 +`--enable-new-dtags'
70589 +`--disable-new-dtags'
70590 + This linker can create the new dynamic tags in ELF. But the older
70591 + ELF systems may not understand them. If you specify
70592 + `--enable-new-dtags', the dynamic tags will be created as needed.
70593 + If you specify `--disable-new-dtags', no new dynamic tags will be
70594 + created. By default, the new dynamic tags are not created. Note
70595 + that those options are only available for ELF systems.
70596 +
70597 +`--hash-size=NUMBER'
70598 + Set the default size of the linker's hash tables to a prime number
70599 + close to NUMBER. Increasing this value can reduce the length of
70600 + time it takes the linker to perform its tasks, at the expense of
70601 + increasing the linker's memory requirements. Similarly reducing
70602 + this value can reduce the memory requirements at the expense of
70603 + speed.
70604 +
70605 +`--reduce-memory-overheads'
70606 + This option reduces memory requirements at ld runtime, at the
70607 + expense of linking speed. This was introduced to select the old
70608 + O(n^2) algorithm for link map file generation, rather than the new
70609 + O(n) algorithm which uses about 40% more memory for symbol storage.
70610 +
70611 + Another effect of the switch is to set the default hash table size
70612 + to 1021, which again saves memory at the cost of lengthening the
70613 + linker's run time. This is not done however if the `--hash-size'
70614 + switch has been used.
70615 +
70616 + The `--reduce-memory-overheads' switch may be also be used to
70617 + enable other tradeoffs in future versions of the linker.
70618 +
70619 +
70620 +2.1.1 Options Specific to i386 PE Targets
70621 +-----------------------------------------
70622 +
70623 +The i386 PE linker supports the `-shared' option, which causes the
70624 +output to be a dynamically linked library (DLL) instead of a normal
70625 +executable. You should name the output `*.dll' when you use this
70626 +option. In addition, the linker fully supports the standard `*.def'
70627 +files, which may be specified on the linker command line like an object
70628 +file (in fact, it should precede archives it exports symbols from, to
70629 +ensure that they get linked in, just like a normal object file).
70630 +
70631 + In addition to the options common to all targets, the i386 PE linker
70632 +support additional command line options that are specific to the i386
70633 +PE target. Options that take values may be separated from their values
70634 +by either a space or an equals sign.
70635 +
70636 +`--add-stdcall-alias'
70637 + If given, symbols with a stdcall suffix (@NN) will be exported
70638 + as-is and also with the suffix stripped. [This option is specific
70639 + to the i386 PE targeted port of the linker]
70640 +
70641 +`--base-file FILE'
70642 + Use FILE as the name of a file in which to save the base addresses
70643 + of all the relocations needed for generating DLLs with `dlltool'.
70644 + [This is an i386 PE specific option]
70645 +
70646 +`--dll'
70647 + Create a DLL instead of a regular executable. You may also use
70648 + `-shared' or specify a `LIBRARY' in a given `.def' file. [This
70649 + option is specific to the i386 PE targeted port of the linker]
70650 +
70651 +`--enable-stdcall-fixup'
70652 +`--disable-stdcall-fixup'
70653 + If the link finds a symbol that it cannot resolve, it will attempt
70654 + to do "fuzzy linking" by looking for another defined symbol that
70655 + differs only in the format of the symbol name (cdecl vs stdcall)
70656 + and will resolve that symbol by linking to the match. For
70657 + example, the undefined symbol `_foo' might be linked to the
70658 + function `_foo@12', or the undefined symbol `_bar@16' might be
70659 + linked to the function `_bar'. When the linker does this, it
70660 + prints a warning, since it normally should have failed to link,
70661 + but sometimes import libraries generated from third-party dlls may
70662 + need this feature to be usable. If you specify
70663 + `--enable-stdcall-fixup', this feature is fully enabled and
70664 + warnings are not printed. If you specify
70665 + `--disable-stdcall-fixup', this feature is disabled and such
70666 + mismatches are considered to be errors. [This option is specific
70667 + to the i386 PE targeted port of the linker]
70668 +
70669 +`--export-all-symbols'
70670 + If given, all global symbols in the objects used to build a DLL
70671 + will be exported by the DLL. Note that this is the default if
70672 + there otherwise wouldn't be any exported symbols. When symbols are
70673 + explicitly exported via DEF files or implicitly exported via
70674 + function attributes, the default is to not export anything else
70675 + unless this option is given. Note that the symbols `DllMain@12',
70676 + `DllEntryPoint@0', `DllMainCRTStartup@12', and `impure_ptr' will
70677 + not be automatically exported. Also, symbols imported from other
70678 + DLLs will not be re-exported, nor will symbols specifying the
70679 + DLL's internal layout such as those beginning with `_head_' or
70680 + ending with `_iname'. In addition, no symbols from `libgcc',
70681 + `libstd++', `libmingw32', or `crtX.o' will be exported. Symbols
70682 + whose names begin with `__rtti_' or `__builtin_' will not be
70683 + exported, to help with C++ DLLs. Finally, there is an extensive
70684 + list of cygwin-private symbols that are not exported (obviously,
70685 + this applies on when building DLLs for cygwin targets). These
70686 + cygwin-excludes are: `_cygwin_dll_entry@12',
70687 + `_cygwin_crt0_common@8', `_cygwin_noncygwin_dll_entry@12',
70688 + `_fmode', `_impure_ptr', `cygwin_attach_dll', `cygwin_premain0',
70689 + `cygwin_premain1', `cygwin_premain2', `cygwin_premain3', and
70690 + `environ'. [This option is specific to the i386 PE targeted port
70691 + of the linker]
70692 +
70693 +`--exclude-symbols SYMBOL,SYMBOL,...'
70694 + Specifies a list of symbols which should not be automatically
70695 + exported. The symbol names may be delimited by commas or colons.
70696 + [This option is specific to the i386 PE targeted port of the
70697 + linker]
70698 +
70699 +`--file-alignment'
70700 + Specify the file alignment. Sections in the file will always
70701 + begin at file offsets which are multiples of this number. This
70702 + defaults to 512. [This option is specific to the i386 PE targeted
70703 + port of the linker]
70704 +
70705 +`--heap RESERVE'
70706 +`--heap RESERVE,COMMIT'
70707 + Specify the amount of memory to reserve (and optionally commit) to
70708 + be used as heap for this program. The default is 1Mb reserved, 4K
70709 + committed. [This option is specific to the i386 PE targeted port
70710 + of the linker]
70711 +
70712 +`--image-base VALUE'
70713 + Use VALUE as the base address of your program or dll. This is the
70714 + lowest memory location that will be used when your program or dll
70715 + is loaded. To reduce the need to relocate and improve performance
70716 + of your dlls, each should have a unique base address and not
70717 + overlap any other dlls. The default is 0x400000 for executables,
70718 + and 0x10000000 for dlls. [This option is specific to the i386 PE
70719 + targeted port of the linker]
70720 +
70721 +`--kill-at'
70722 + If given, the stdcall suffixes (@NN) will be stripped from symbols
70723 + before they are exported. [This option is specific to the i386 PE
70724 + targeted port of the linker]
70725 +
70726 +`--large-address-aware'
70727 + If given, the appropriate bit in the "Charateristics" field of the
70728 + COFF header is set to indicate that this executable supports
70729 + virtual addresses greater than 2 gigabytes. This should be used
70730 + in conjuction with the /3GB or /USERVA=VALUE megabytes switch in
70731 + the "[operating systems]" section of the BOOT.INI. Otherwise,
70732 + this bit has no effect. [This option is specific to PE targeted
70733 + ports of the linker]
70734 +
70735 +`--major-image-version VALUE'
70736 + Sets the major number of the "image version". Defaults to 1.
70737 + [This option is specific to the i386 PE targeted port of the
70738 + linker]
70739 +
70740 +`--major-os-version VALUE'
70741 + Sets the major number of the "os version". Defaults to 4. [This
70742 + option is specific to the i386 PE targeted port of the linker]
70743 +
70744 +`--major-subsystem-version VALUE'
70745 + Sets the major number of the "subsystem version". Defaults to 4.
70746 + [This option is specific to the i386 PE targeted port of the
70747 + linker]
70748 +
70749 +`--minor-image-version VALUE'
70750 + Sets the minor number of the "image version". Defaults to 0.
70751 + [This option is specific to the i386 PE targeted port of the
70752 + linker]
70753 +
70754 +`--minor-os-version VALUE'
70755 + Sets the minor number of the "os version". Defaults to 0. [This
70756 + option is specific to the i386 PE targeted port of the linker]
70757 +
70758 +`--minor-subsystem-version VALUE'
70759 + Sets the minor number of the "subsystem version". Defaults to 0.
70760 + [This option is specific to the i386 PE targeted port of the
70761 + linker]
70762 +
70763 +`--output-def FILE'
70764 + The linker will create the file FILE which will contain a DEF file
70765 + corresponding to the DLL the linker is generating. This DEF file
70766 + (which should be called `*.def') may be used to create an import
70767 + library with `dlltool' or may be used as a reference to
70768 + automatically or implicitly exported symbols. [This option is
70769 + specific to the i386 PE targeted port of the linker]
70770 +
70771 +`--out-implib FILE'
70772 + The linker will create the file FILE which will contain an import
70773 + lib corresponding to the DLL the linker is generating. This import
70774 + lib (which should be called `*.dll.a' or `*.a' may be used to link
70775 + clients against the generated DLL; this behaviour makes it
70776 + possible to skip a separate `dlltool' import library creation step.
70777 + [This option is specific to the i386 PE targeted port of the
70778 + linker]
70779 +
70780 +`--enable-auto-image-base'
70781 + Automatically choose the image base for DLLs, unless one is
70782 + specified using the `--image-base' argument. By using a hash
70783 + generated from the dllname to create unique image bases for each
70784 + DLL, in-memory collisions and relocations which can delay program
70785 + execution are avoided. [This option is specific to the i386 PE
70786 + targeted port of the linker]
70787 +
70788 +`--disable-auto-image-base'
70789 + Do not automatically generate a unique image base. If there is no
70790 + user-specified image base (`--image-base') then use the platform
70791 + default. [This option is specific to the i386 PE targeted port of
70792 + the linker]
70793 +
70794 +`--dll-search-prefix STRING'
70795 + When linking dynamically to a dll without an import library,
70796 + search for `<string><basename>.dll' in preference to
70797 + `lib<basename>.dll'. This behaviour allows easy distinction
70798 + between DLLs built for the various "subplatforms": native, cygwin,
70799 + uwin, pw, etc. For instance, cygwin DLLs typically use
70800 + `--dll-search-prefix=cyg'. [This option is specific to the i386
70801 + PE targeted port of the linker]
70802 +
70803 +`--enable-auto-import'
70804 + Do sophisticated linking of `_symbol' to `__imp__symbol' for DATA
70805 + imports from DLLs, and create the necessary thunking symbols when
70806 + building the import libraries with those DATA exports. Note: Use
70807 + of the 'auto-import' extension will cause the text section of the
70808 + image file to be made writable. This does not conform to the
70809 + PE-COFF format specification published by Microsoft.
70810 +
70811 + Using 'auto-import' generally will 'just work' - but sometimes you
70812 + may see this message:
70813 +
70814 + "variable '<var>' can't be auto-imported. Please read the
70815 + documentation for ld's `--enable-auto-import' for details."
70816 +
70817 + This message occurs when some (sub)expression accesses an address
70818 + ultimately given by the sum of two constants (Win32 import tables
70819 + only allow one). Instances where this may occur include accesses
70820 + to member fields of struct variables imported from a DLL, as well
70821 + as using a constant index into an array variable imported from a
70822 + DLL. Any multiword variable (arrays, structs, long long, etc) may
70823 + trigger this error condition. However, regardless of the exact
70824 + data type of the offending exported variable, ld will always
70825 + detect it, issue the warning, and exit.
70826 +
70827 + There are several ways to address this difficulty, regardless of
70828 + the data type of the exported variable:
70829 +
70830 + One way is to use -enable-runtime-pseudo-reloc switch. This leaves
70831 + the task of adjusting references in your client code for runtime
70832 + environment, so this method works only when runtime environment
70833 + supports this feature.
70834 +
70835 + A second solution is to force one of the 'constants' to be a
70836 + variable - that is, unknown and un-optimizable at compile time.
70837 + For arrays, there are two possibilities: a) make the indexee (the
70838 + array's address) a variable, or b) make the 'constant' index a
70839 + variable. Thus:
70840 +
70841 + extern type extern_array[];
70842 + extern_array[1] -->
70843 + { volatile type *t=extern_array; t[1] }
70844 +
70845 + or
70846 +
70847 + extern type extern_array[];
70848 + extern_array[1] -->
70849 + { volatile int t=1; extern_array[t] }
70850 +
70851 + For structs (and most other multiword data types) the only option
70852 + is to make the struct itself (or the long long, or the ...)
70853 + variable:
70854 +
70855 + extern struct s extern_struct;
70856 + extern_struct.field -->
70857 + { volatile struct s *t=&extern_struct; t->field }
70858 +
70859 + or
70860 +
70861 + extern long long extern_ll;
70862 + extern_ll -->
70863 + { volatile long long * local_ll=&extern_ll; *local_ll }
70864 +
70865 + A third method of dealing with this difficulty is to abandon
70866 + 'auto-import' for the offending symbol and mark it with
70867 + `__declspec(dllimport)'. However, in practise that requires using
70868 + compile-time #defines to indicate whether you are building a DLL,
70869 + building client code that will link to the DLL, or merely
70870 + building/linking to a static library. In making the choice
70871 + between the various methods of resolving the 'direct address with
70872 + constant offset' problem, you should consider typical real-world
70873 + usage:
70874 +
70875 + Original:
70876 + --foo.h
70877 + extern int arr[];
70878 + --foo.c
70879 + #include "foo.h"
70880 + void main(int argc, char **argv){
70881 + printf("%d\n",arr[1]);
70882 + }
70883 +
70884 + Solution 1:
70885 + --foo.h
70886 + extern int arr[];
70887 + --foo.c
70888 + #include "foo.h"
70889 + void main(int argc, char **argv){
70890 + /* This workaround is for win32 and cygwin; do not "optimize" */
70891 + volatile int *parr = arr;
70892 + printf("%d\n",parr[1]);
70893 + }
70894 +
70895 + Solution 2:
70896 + --foo.h
70897 + /* Note: auto-export is assumed (no __declspec(dllexport)) */
70898 + #if (defined(_WIN32) || defined(__CYGWIN__)) && \
70899 + !(defined(FOO_BUILD_DLL) || defined(FOO_STATIC))
70900 + #define FOO_IMPORT __declspec(dllimport)
70901 + #else
70902 + #define FOO_IMPORT
70903 + #endif
70904 + extern FOO_IMPORT int arr[];
70905 + --foo.c
70906 + #include "foo.h"
70907 + void main(int argc, char **argv){
70908 + printf("%d\n",arr[1]);
70909 + }
70910 +
70911 + A fourth way to avoid this problem is to re-code your library to
70912 + use a functional interface rather than a data interface for the
70913 + offending variables (e.g. set_foo() and get_foo() accessor
70914 + functions). [This option is specific to the i386 PE targeted port
70915 + of the linker]
70916 +
70917 +`--disable-auto-import'
70918 + Do not attempt to do sophisticated linking of `_symbol' to
70919 + `__imp__symbol' for DATA imports from DLLs. [This option is
70920 + specific to the i386 PE targeted port of the linker]
70921 +
70922 +`--enable-runtime-pseudo-reloc'
70923 + If your code contains expressions described in -enable-auto-import
70924 + section, that is, DATA imports from DLL with non-zero offset, this
70925 + switch will create a vector of 'runtime pseudo relocations' which
70926 + can be used by runtime environment to adjust references to such
70927 + data in your client code. [This option is specific to the i386 PE
70928 + targeted port of the linker]
70929 +
70930 +`--disable-runtime-pseudo-reloc'
70931 + Do not create pseudo relocations for non-zero offset DATA imports
70932 + from DLLs. This is the default. [This option is specific to the
70933 + i386 PE targeted port of the linker]
70934 +
70935 +`--enable-extra-pe-debug'
70936 + Show additional debug info related to auto-import symbol thunking.
70937 + [This option is specific to the i386 PE targeted port of the
70938 + linker]
70939 +
70940 +`--section-alignment'
70941 + Sets the section alignment. Sections in memory will always begin
70942 + at addresses which are a multiple of this number. Defaults to
70943 + 0x1000. [This option is specific to the i386 PE targeted port of
70944 + the linker]
70945 +
70946 +`--stack RESERVE'
70947 +`--stack RESERVE,COMMIT'
70948 + Specify the amount of memory to reserve (and optionally commit) to
70949 + be used as stack for this program. The default is 2Mb reserved, 4K
70950 + committed. [This option is specific to the i386 PE targeted port
70951 + of the linker]
70952 +
70953 +`--subsystem WHICH'
70954 +`--subsystem WHICH:MAJOR'
70955 +`--subsystem WHICH:MAJOR.MINOR'
70956 + Specifies the subsystem under which your program will execute. The
70957 + legal values for WHICH are `native', `windows', `console',
70958 + `posix', and `xbox'. You may optionally set the subsystem version
70959 + also. Numeric values are also accepted for WHICH. [This option
70960 + is specific to the i386 PE targeted port of the linker]
70961 +
70962 +
70963 +\1f
70964 +File: ld.info, Node: Environment, Prev: Options, Up: Invocation
70965 +
70966 +2.2 Environment Variables
70967 +=========================
70968 +
70969 +You can change the behaviour of `ld' with the environment variables
70970 +`GNUTARGET', `LDEMULATION' and `COLLECT_NO_DEMANGLE'.
70971 +
70972 + `GNUTARGET' determines the input-file object format if you don't use
70973 +`-b' (or its synonym `--format'). Its value should be one of the BFD
70974 +names for an input format (*note BFD::). If there is no `GNUTARGET' in
70975 +the environment, `ld' uses the natural format of the target. If
70976 +`GNUTARGET' is set to `default' then BFD attempts to discover the input
70977 +format by examining binary input files; this method often succeeds, but
70978 +there are potential ambiguities, since there is no method of ensuring
70979 +that the magic number used to specify object-file formats is unique.
70980 +However, the configuration procedure for BFD on each system places the
70981 +conventional format for that system first in the search-list, so
70982 +ambiguities are resolved in favor of convention.
70983 +
70984 + `LDEMULATION' determines the default emulation if you don't use the
70985 +`-m' option. The emulation can affect various aspects of linker
70986 +behaviour, particularly the default linker script. You can list the
70987 +available emulations with the `--verbose' or `-V' options. If the `-m'
70988 +option is not used, and the `LDEMULATION' environment variable is not
70989 +defined, the default emulation depends upon how the linker was
70990 +configured.
70991 +
70992 + Normally, the linker will default to demangling symbols. However, if
70993 +`COLLECT_NO_DEMANGLE' is set in the environment, then it will default
70994 +to not demangling symbols. This environment variable is used in a
70995 +similar fashion by the `gcc' linker wrapper program. The default may
70996 +be overridden by the `--demangle' and `--no-demangle' options.
70997 +
70998 +\1f
70999 +File: ld.info, Node: Scripts, Next: Machine Dependent, Prev: Invocation, Up: Top
71000 +
71001 +3 Linker Scripts
71002 +****************
71003 +
71004 +Every link is controlled by a "linker script". This script is written
71005 +in the linker command language.
71006 +
71007 + The main purpose of the linker script is to describe how the
71008 +sections in the input files should be mapped into the output file, and
71009 +to control the memory layout of the output file. Most linker scripts
71010 +do nothing more than this. However, when necessary, the linker script
71011 +can also direct the linker to perform many other operations, using the
71012 +commands described below.
71013 +
71014 + The linker always uses a linker script. If you do not supply one
71015 +yourself, the linker will use a default script that is compiled into the
71016 +linker executable. You can use the `--verbose' command line option to
71017 +display the default linker script. Certain command line options, such
71018 +as `-r' or `-N', will affect the default linker script.
71019 +
71020 + You may supply your own linker script by using the `-T' command line
71021 +option. When you do this, your linker script will replace the default
71022 +linker script.
71023 +
71024 + You may also use linker scripts implicitly by naming them as input
71025 +files to the linker, as though they were files to be linked. *Note
71026 +Implicit Linker Scripts::.
71027 +
71028 +* Menu:
71029 +
71030 +* Basic Script Concepts:: Basic Linker Script Concepts
71031 +* Script Format:: Linker Script Format
71032 +* Simple Example:: Simple Linker Script Example
71033 +* Simple Commands:: Simple Linker Script Commands
71034 +* Assignments:: Assigning Values to Symbols
71035 +* SECTIONS:: SECTIONS Command
71036 +* MEMORY:: MEMORY Command
71037 +* PHDRS:: PHDRS Command
71038 +* VERSION:: VERSION Command
71039 +* Expressions:: Expressions in Linker Scripts
71040 +* Implicit Linker Scripts:: Implicit Linker Scripts
71041 +
71042 +\1f
71043 +File: ld.info, Node: Basic Script Concepts, Next: Script Format, Up: Scripts
71044 +
71045 +3.1 Basic Linker Script Concepts
71046 +================================
71047 +
71048 +We need to define some basic concepts and vocabulary in order to
71049 +describe the linker script language.
71050 +
71051 + The linker combines input files into a single output file. The
71052 +output file and each input file are in a special data format known as an
71053 +"object file format". Each file is called an "object file". The
71054 +output file is often called an "executable", but for our purposes we
71055 +will also call it an object file. Each object file has, among other
71056 +things, a list of "sections". We sometimes refer to a section in an
71057 +input file as an "input section"; similarly, a section in the output
71058 +file is an "output section".
71059 +
71060 + Each section in an object file has a name and a size. Most sections
71061 +also have an associated block of data, known as the "section contents".
71062 +A section may be marked as "loadable", which mean that the contents
71063 +should be loaded into memory when the output file is run. A section
71064 +with no contents may be "allocatable", which means that an area in
71065 +memory should be set aside, but nothing in particular should be loaded
71066 +there (in some cases this memory must be zeroed out). A section which
71067 +is neither loadable nor allocatable typically contains some sort of
71068 +debugging information.
71069 +
71070 + Every loadable or allocatable output section has two addresses. The
71071 +first is the "VMA", or virtual memory address. This is the address the
71072 +section will have when the output file is run. The second is the
71073 +"LMA", or load memory address. This is the address at which the
71074 +section will be loaded. In most cases the two addresses will be the
71075 +same. An example of when they might be different is when a data section
71076 +is loaded into ROM, and then copied into RAM when the program starts up
71077 +(this technique is often used to initialize global variables in a ROM
71078 +based system). In this case the ROM address would be the LMA, and the
71079 +RAM address would be the VMA.
71080 +
71081 + You can see the sections in an object file by using the `objdump'
71082 +program with the `-h' option.
71083 +
71084 + Every object file also has a list of "symbols", known as the "symbol
71085 +table". A symbol may be defined or undefined. Each symbol has a name,
71086 +and each defined symbol has an address, among other information. If
71087 +you compile a C or C++ program into an object file, you will get a
71088 +defined symbol for every defined function and global or static
71089 +variable. Every undefined function or global variable which is
71090 +referenced in the input file will become an undefined symbol.
71091 +
71092 + You can see the symbols in an object file by using the `nm' program,
71093 +or by using the `objdump' program with the `-t' option.
71094 +
71095 +\1f
71096 +File: ld.info, Node: Script Format, Next: Simple Example, Prev: Basic Script Concepts, Up: Scripts
71097 +
71098 +3.2 Linker Script Format
71099 +========================
71100 +
71101 +Linker scripts are text files.
71102 +
71103 + You write a linker script as a series of commands. Each command is
71104 +either a keyword, possibly followed by arguments, or an assignment to a
71105 +symbol. You may separate commands using semicolons. Whitespace is
71106 +generally ignored.
71107 +
71108 + Strings such as file or format names can normally be entered
71109 +directly. If the file name contains a character such as a comma which
71110 +would otherwise serve to separate file names, you may put the file name
71111 +in double quotes. There is no way to use a double quote character in a
71112 +file name.
71113 +
71114 + You may include comments in linker scripts just as in C, delimited by
71115 +`/*' and `*/'. As in C, comments are syntactically equivalent to
71116 +whitespace.
71117 +
71118 +\1f
71119 +File: ld.info, Node: Simple Example, Next: Simple Commands, Prev: Script Format, Up: Scripts
71120 +
71121 +3.3 Simple Linker Script Example
71122 +================================
71123 +
71124 +Many linker scripts are fairly simple.
71125 +
71126 + The simplest possible linker script has just one command:
71127 +`SECTIONS'. You use the `SECTIONS' command to describe the memory
71128 +layout of the output file.
71129 +
71130 + The `SECTIONS' command is a powerful command. Here we will describe
71131 +a simple use of it. Let's assume your program consists only of code,
71132 +initialized data, and uninitialized data. These will be in the
71133 +`.text', `.data', and `.bss' sections, respectively. Let's assume
71134 +further that these are the only sections which appear in your input
71135 +files.
71136 +
71137 + For this example, let's say that the code should be loaded at address
71138 +0x10000, and that the data should start at address 0x8000000. Here is a
71139 +linker script which will do that:
71140 + SECTIONS
71141 + {
71142 + . = 0x10000;
71143 + .text : { *(.text) }
71144 + . = 0x8000000;
71145 + .data : { *(.data) }
71146 + .bss : { *(.bss) }
71147 + }
71148 +
71149 + You write the `SECTIONS' command as the keyword `SECTIONS', followed
71150 +by a series of symbol assignments and output section descriptions
71151 +enclosed in curly braces.
71152 +
71153 + The first line inside the `SECTIONS' command of the above example
71154 +sets the value of the special symbol `.', which is the location
71155 +counter. If you do not specify the address of an output section in some
71156 +other way (other ways are described later), the address is set from the
71157 +current value of the location counter. The location counter is then
71158 +incremented by the size of the output section. At the start of the
71159 +`SECTIONS' command, the location counter has the value `0'.
71160 +
71161 + The second line defines an output section, `.text'. The colon is
71162 +required syntax which may be ignored for now. Within the curly braces
71163 +after the output section name, you list the names of the input sections
71164 +which should be placed into this output section. The `*' is a wildcard
71165 +which matches any file name. The expression `*(.text)' means all
71166 +`.text' input sections in all input files.
71167 +
71168 + Since the location counter is `0x10000' when the output section
71169 +`.text' is defined, the linker will set the address of the `.text'
71170 +section in the output file to be `0x10000'.
71171 +
71172 + The remaining lines define the `.data' and `.bss' sections in the
71173 +output file. The linker will place the `.data' output section at
71174 +address `0x8000000'. After the linker places the `.data' output
71175 +section, the value of the location counter will be `0x8000000' plus the
71176 +size of the `.data' output section. The effect is that the linker will
71177 +place the `.bss' output section immediately after the `.data' output
71178 +section in memory.
71179 +
71180 + The linker will ensure that each output section has the required
71181 +alignment, by increasing the location counter if necessary. In this
71182 +example, the specified addresses for the `.text' and `.data' sections
71183 +will probably satisfy any alignment constraints, but the linker may
71184 +have to create a small gap between the `.data' and `.bss' sections.
71185 +
71186 + That's it! That's a simple and complete linker script.
71187 +
71188 +\1f
71189 +File: ld.info, Node: Simple Commands, Next: Assignments, Prev: Simple Example, Up: Scripts
71190 +
71191 +3.4 Simple Linker Script Commands
71192 +=================================
71193 +
71194 +In this section we describe the simple linker script commands.
71195 +
71196 +* Menu:
71197 +
71198 +* Entry Point:: Setting the entry point
71199 +* File Commands:: Commands dealing with files
71200 +
71201 +* Format Commands:: Commands dealing with object file formats
71202 +
71203 +* Miscellaneous Commands:: Other linker script commands
71204 +
71205 +\1f
71206 +File: ld.info, Node: Entry Point, Next: File Commands, Up: Simple Commands
71207 +
71208 +3.4.1 Setting the Entry Point
71209 +-----------------------------
71210 +
71211 +The first instruction to execute in a program is called the "entry
71212 +point". You can use the `ENTRY' linker script command to set the entry
71213 +point. The argument is a symbol name:
71214 + ENTRY(SYMBOL)
71215 +
71216 + There are several ways to set the entry point. The linker will set
71217 +the entry point by trying each of the following methods in order, and
71218 +stopping when one of them succeeds:
71219 + * the `-e' ENTRY command-line option;
71220 +
71221 + * the `ENTRY(SYMBOL)' command in a linker script;
71222 +
71223 + * the value of the symbol `start', if defined;
71224 +
71225 + * the address of the first byte of the `.text' section, if present;
71226 +
71227 + * The address `0'.
71228 +
71229 +\1f
71230 +File: ld.info, Node: File Commands, Next: Format Commands, Prev: Entry Point, Up: Simple Commands
71231 +
71232 +3.4.2 Commands Dealing with Files
71233 +---------------------------------
71234 +
71235 +Several linker script commands deal with files.
71236 +
71237 +`INCLUDE FILENAME'
71238 + Include the linker script FILENAME at this point. The file will
71239 + be searched for in the current directory, and in any directory
71240 + specified with the `-L' option. You can nest calls to `INCLUDE'
71241 + up to 10 levels deep.
71242 +
71243 +`INPUT(FILE, FILE, ...)'
71244 +`INPUT(FILE FILE ...)'
71245 + The `INPUT' command directs the linker to include the named files
71246 + in the link, as though they were named on the command line.
71247 +
71248 + For example, if you always want to include `subr.o' any time you do
71249 + a link, but you can't be bothered to put it on every link command
71250 + line, then you can put `INPUT (subr.o)' in your linker script.
71251 +
71252 + In fact, if you like, you can list all of your input files in the
71253 + linker script, and then invoke the linker with nothing but a `-T'
71254 + option.
71255 +
71256 + In case a "sysroot prefix" is configured, and the filename starts
71257 + with the `/' character, and the script being processed was located
71258 + inside the "sysroot prefix", the filename will be looked for in
71259 + the "sysroot prefix". Otherwise, the linker will try to open the
71260 + file in the current directory. If it is not found, the linker
71261 + will search through the archive library search path. See the
71262 + description of `-L' in *Note Command Line Options: Options.
71263 +
71264 + If you use `INPUT (-lFILE)', `ld' will transform the name to
71265 + `libFILE.a', as with the command line argument `-l'.
71266 +
71267 + When you use the `INPUT' command in an implicit linker script, the
71268 + files will be included in the link at the point at which the linker
71269 + script file is included. This can affect archive searching.
71270 +
71271 +`GROUP(FILE, FILE, ...)'
71272 +`GROUP(FILE FILE ...)'
71273 + The `GROUP' command is like `INPUT', except that the named files
71274 + should all be archives, and they are searched repeatedly until no
71275 + new undefined references are created. See the description of `-('
71276 + in *Note Command Line Options: Options.
71277 +
71278 +`AS_NEEDED(FILE, FILE, ...)'
71279 +`AS_NEEDED(FILE FILE ...)'
71280 + This construct can appear only inside of the `INPUT' or `GROUP'
71281 + commands, among other filenames. The files listed will be handled
71282 + as if they appear directly in the `INPUT' or `GROUP' commands,
71283 + with the exception of ELF shared libraries, that will be added only
71284 + when they are actually needed. This construct essentially enables
71285 + `--as-needed' option for all the files listed inside of it and
71286 + restores previous `--as-needed' resp. `--no-as-needed' setting
71287 + afterwards.
71288 +
71289 +`OUTPUT(FILENAME)'
71290 + The `OUTPUT' command names the output file. Using
71291 + `OUTPUT(FILENAME)' in the linker script is exactly like using `-o
71292 + FILENAME' on the command line (*note Command Line Options:
71293 + Options.). If both are used, the command line option takes
71294 + precedence.
71295 +
71296 + You can use the `OUTPUT' command to define a default name for the
71297 + output file other than the usual default of `a.out'.
71298 +
71299 +`SEARCH_DIR(PATH)'
71300 + The `SEARCH_DIR' command adds PATH to the list of paths where `ld'
71301 + looks for archive libraries. Using `SEARCH_DIR(PATH)' is exactly
71302 + like using `-L PATH' on the command line (*note Command Line
71303 + Options: Options.). If both are used, then the linker will search
71304 + both paths. Paths specified using the command line option are
71305 + searched first.
71306 +
71307 +`STARTUP(FILENAME)'
71308 + The `STARTUP' command is just like the `INPUT' command, except
71309 + that FILENAME will become the first input file to be linked, as
71310 + though it were specified first on the command line. This may be
71311 + useful when using a system in which the entry point is always the
71312 + start of the first file.
71313 +
71314 +\1f
71315 +File: ld.info, Node: Format Commands, Next: Miscellaneous Commands, Prev: File Commands, Up: Simple Commands
71316 +
71317 +3.4.3 Commands Dealing with Object File Formats
71318 +-----------------------------------------------
71319 +
71320 +A couple of linker script commands deal with object file formats.
71321 +
71322 +`OUTPUT_FORMAT(BFDNAME)'
71323 +`OUTPUT_FORMAT(DEFAULT, BIG, LITTLE)'
71324 + The `OUTPUT_FORMAT' command names the BFD format to use for the
71325 + output file (*note BFD::). Using `OUTPUT_FORMAT(BFDNAME)' is
71326 + exactly like using `--oformat BFDNAME' on the command line (*note
71327 + Command Line Options: Options.). If both are used, the command
71328 + line option takes precedence.
71329 +
71330 + You can use `OUTPUT_FORMAT' with three arguments to use different
71331 + formats based on the `-EB' and `-EL' command line options. This
71332 + permits the linker script to set the output format based on the
71333 + desired endianness.
71334 +
71335 + If neither `-EB' nor `-EL' are used, then the output format will
71336 + be the first argument, DEFAULT. If `-EB' is used, the output
71337 + format will be the second argument, BIG. If `-EL' is used, the
71338 + output format will be the third argument, LITTLE.
71339 +
71340 + For example, the default linker script for the MIPS ELF target
71341 + uses this command:
71342 + OUTPUT_FORMAT(elf32-bigmips, elf32-bigmips, elf32-littlemips)
71343 + This says that the default format for the output file is
71344 + `elf32-bigmips', but if the user uses the `-EL' command line
71345 + option, the output file will be created in the `elf32-littlemips'
71346 + format.
71347 +
71348 +`TARGET(BFDNAME)'
71349 + The `TARGET' command names the BFD format to use when reading input
71350 + files. It affects subsequent `INPUT' and `GROUP' commands. This
71351 + command is like using `-b BFDNAME' on the command line (*note
71352 + Command Line Options: Options.). If the `TARGET' command is used
71353 + but `OUTPUT_FORMAT' is not, then the last `TARGET' command is also
71354 + used to set the format for the output file. *Note BFD::.
71355 +
71356 +\1f
71357 +File: ld.info, Node: Miscellaneous Commands, Prev: Format Commands, Up: Simple Commands
71358 +
71359 +3.4.4 Other Linker Script Commands
71360 +----------------------------------
71361 +
71362 +There are a few other linker scripts commands.
71363 +
71364 +`ASSERT(EXP, MESSAGE)'
71365 + Ensure that EXP is non-zero. If it is zero, then exit the linker
71366 + with an error code, and print MESSAGE.
71367 +
71368 +`EXTERN(SYMBOL SYMBOL ...)'
71369 + Force SYMBOL to be entered in the output file as an undefined
71370 + symbol. Doing this may, for example, trigger linking of additional
71371 + modules from standard libraries. You may list several SYMBOLs for
71372 + each `EXTERN', and you may use `EXTERN' multiple times. This
71373 + command has the same effect as the `-u' command-line option.
71374 +
71375 +`FORCE_COMMON_ALLOCATION'
71376 + This command has the same effect as the `-d' command-line option:
71377 + to make `ld' assign space to common symbols even if a relocatable
71378 + output file is specified (`-r').
71379 +
71380 +`INHIBIT_COMMON_ALLOCATION'
71381 + This command has the same effect as the `--no-define-common'
71382 + command-line option: to make `ld' omit the assignment of addresses
71383 + to common symbols even for a non-relocatable output file.
71384 +
71385 +`NOCROSSREFS(SECTION SECTION ...)'
71386 + This command may be used to tell `ld' to issue an error about any
71387 + references among certain output sections.
71388 +
71389 + In certain types of programs, particularly on embedded systems when
71390 + using overlays, when one section is loaded into memory, another
71391 + section will not be. Any direct references between the two
71392 + sections would be errors. For example, it would be an error if
71393 + code in one section called a function defined in the other section.
71394 +
71395 + The `NOCROSSREFS' command takes a list of output section names. If
71396 + `ld' detects any cross references between the sections, it reports
71397 + an error and returns a non-zero exit status. Note that the
71398 + `NOCROSSREFS' command uses output section names, not input section
71399 + names.
71400 +
71401 +`OUTPUT_ARCH(BFDARCH)'
71402 + Specify a particular output machine architecture. The argument is
71403 + one of the names used by the BFD library (*note BFD::). You can
71404 + see the architecture of an object file by using the `objdump'
71405 + program with the `-f' option.
71406 +
71407 +\1f
71408 +File: ld.info, Node: Assignments, Next: SECTIONS, Prev: Simple Commands, Up: Scripts
71409 +
71410 +3.5 Assigning Values to Symbols
71411 +===============================
71412 +
71413 +You may assign a value to a symbol in a linker script. This will define
71414 +the symbol and place it into the symbol table with a global scope.
71415 +
71416 +* Menu:
71417 +
71418 +* Simple Assignments:: Simple Assignments
71419 +* PROVIDE:: PROVIDE
71420 +* PROVIDE_HIDDEN:: PROVIDE_HIDDEN
71421 +* Source Code Reference:: How to use a linker script defined symbol in source code
71422 +
71423 +\1f
71424 +File: ld.info, Node: Simple Assignments, Next: PROVIDE, Up: Assignments
71425 +
71426 +3.5.1 Simple Assignments
71427 +------------------------
71428 +
71429 +You may assign to a symbol using any of the C assignment operators:
71430 +
71431 +`SYMBOL = EXPRESSION ;'
71432 +`SYMBOL += EXPRESSION ;'
71433 +`SYMBOL -= EXPRESSION ;'
71434 +`SYMBOL *= EXPRESSION ;'
71435 +`SYMBOL /= EXPRESSION ;'
71436 +`SYMBOL <<= EXPRESSION ;'
71437 +`SYMBOL >>= EXPRESSION ;'
71438 +`SYMBOL &= EXPRESSION ;'
71439 +`SYMBOL |= EXPRESSION ;'
71440 +
71441 + The first case will define SYMBOL to the value of EXPRESSION. In
71442 +the other cases, SYMBOL must already be defined, and the value will be
71443 +adjusted accordingly.
71444 +
71445 + The special symbol name `.' indicates the location counter. You may
71446 +only use this within a `SECTIONS' command. *Note Location Counter::.
71447 +
71448 + The semicolon after EXPRESSION is required.
71449 +
71450 + Expressions are defined below; see *Note Expressions::.
71451 +
71452 + You may write symbol assignments as commands in their own right, or
71453 +as statements within a `SECTIONS' command, or as part of an output
71454 +section description in a `SECTIONS' command.
71455 +
71456 + The section of the symbol will be set from the section of the
71457 +expression; for more information, see *Note Expression Section::.
71458 +
71459 + Here is an example showing the three different places that symbol
71460 +assignments may be used:
71461 +
71462 + floating_point = 0;
71463 + SECTIONS
71464 + {
71465 + .text :
71466 + {
71467 + *(.text)
71468 + _etext = .;
71469 + }
71470 + _bdata = (. + 3) & ~ 3;
71471 + .data : { *(.data) }
71472 + }
71473 + In this example, the symbol `floating_point' will be defined as
71474 +zero. The symbol `_etext' will be defined as the address following the
71475 +last `.text' input section. The symbol `_bdata' will be defined as the
71476 +address following the `.text' output section aligned upward to a 4 byte
71477 +boundary.
71478 +
71479 +\1f
71480 +File: ld.info, Node: PROVIDE, Next: PROVIDE_HIDDEN, Prev: Simple Assignments, Up: Assignments
71481 +
71482 +3.5.2 PROVIDE
71483 +-------------
71484 +
71485 +In some cases, it is desirable for a linker script to define a symbol
71486 +only if it is referenced and is not defined by any object included in
71487 +the link. For example, traditional linkers defined the symbol `etext'.
71488 +However, ANSI C requires that the user be able to use `etext' as a
71489 +function name without encountering an error. The `PROVIDE' keyword may
71490 +be used to define a symbol, such as `etext', only if it is referenced
71491 +but not defined. The syntax is `PROVIDE(SYMBOL = EXPRESSION)'.
71492 +
71493 + Here is an example of using `PROVIDE' to define `etext':
71494 + SECTIONS
71495 + {
71496 + .text :
71497 + {
71498 + *(.text)
71499 + _etext = .;
71500 + PROVIDE(etext = .);
71501 + }
71502 + }
71503 +
71504 + In this example, if the program defines `_etext' (with a leading
71505 +underscore), the linker will give a multiple definition error. If, on
71506 +the other hand, the program defines `etext' (with no leading
71507 +underscore), the linker will silently use the definition in the program.
71508 +If the program references `etext' but does not define it, the linker
71509 +will use the definition in the linker script.
71510 +
71511 +\1f
71512 +File: ld.info, Node: PROVIDE_HIDDEN, Next: Source Code Reference, Prev: PROVIDE, Up: Assignments
71513 +
71514 +3.5.3 PROVIDE_HIDDEN
71515 +--------------------
71516 +
71517 +Similar to `PROVIDE'. For ELF targeted ports, the symbol will be
71518 +hidden and won't be exported.
71519 +
71520 +\1f
71521 +File: ld.info, Node: Source Code Reference, Prev: PROVIDE_HIDDEN, Up: Assignments
71522 +
71523 +3.5.4 Source Code Reference
71524 +---------------------------
71525 +
71526 +Accessing a linker script defined variable from source code is not
71527 +intuitive. In particular a linker script symbol is not equivalent to a
71528 +variable declaration in a high level language, it is instead a symbol
71529 +that does not have a value.
71530 +
71531 + Before going further, it is important to note that compilers often
71532 +transform names in the source code into different names when they are
71533 +stored in the symbol table. For example, Fortran compilers commonly
71534 +prepend or append an underscore, and C++ performs extensive `name
71535 +mangling'. Therefore there might be a discrepancy between the name of
71536 +a variable as it is used in source code and the name of the same
71537 +variable as it is defined in a linker script. For example in C a
71538 +linker script variable might be referred to as:
71539 +
71540 + extern int foo;
71541 +
71542 + But in the linker script it might be defined as:
71543 +
71544 + _foo = 1000;
71545 +
71546 + In the remaining examples however it is assumed that no name
71547 +transformation has taken place.
71548 +
71549 + When a symbol is declared in a high level language such as C, two
71550 +things happen. The first is that the compiler reserves enough space in
71551 +the program's memory to hold the _value_ of the symbol. The second is
71552 +that the compiler creates an entry in the program's symbol table which
71553 +holds the symbol's _address_. ie the symbol table contains the address
71554 +of the block of memory holding the symbol's value. So for example the
71555 +following C declaration, at file scope:
71556 +
71557 + int foo = 1000;
71558 +
71559 + creates a entry called `foo' in the symbol table. This entry holds
71560 +the address of an `int' sized block of memory where the number 1000 is
71561 +initially stored.
71562 +
71563 + When a program references a symbol the compiler generates code that
71564 +first accesses the symbol table to find the address of the symbol's
71565 +memory block and then code to read the value from that memory block.
71566 +So:
71567 +
71568 + foo = 1;
71569 +
71570 + looks up the symbol `foo' in the symbol table, gets the address
71571 +associated with this symbol and then writes the value 1 into that
71572 +address. Whereas:
71573 +
71574 + int * a = & foo;
71575 +
71576 + looks up the symbol `foo' in the symbol table, gets it address and
71577 +then copies this address into the block of memory associated with the
71578 +variable `a'.
71579 +
71580 + Linker scripts symbol declarations, by contrast, create an entry in
71581 +the symbol table but do not assign any memory to them. Thus they are
71582 +an address without a value. So for example the linker script
71583 +definition:
71584 +
71585 + foo = 1000;
71586 +
71587 + creates an entry in the symbol table called `foo' which holds the
71588 +address of memory location 1000, but nothing special is stored at
71589 +address 1000. This means that you cannot access the _value_ of a
71590 +linker script defined symbol - it has no value - all you can do is
71591 +access the _address_ of a linker script defined symbol.
71592 +
71593 + Hence when you are using a linker script defined symbol in source
71594 +code you should always take the address of the symbol, and never
71595 +attempt to use its value. For example suppose you want to copy the
71596 +contents of a section of memory called .ROM into a section called
71597 +.FLASH and the linker script contains these declarations:
71598 +
71599 + start_of_ROM = .ROM;
71600 + end_of_ROM = .ROM + sizeof (.ROM) - 1;
71601 + start_of_FLASH = .FLASH;
71602 +
71603 + Then the C source code to perform the copy would be:
71604 +
71605 + extern char start_of_ROM, end_of_ROM, start_of_FLASH;
71606 +
71607 + memcpy (& start_of_FLASH, & start_of_ROM, & end_of_ROM - & start_of_ROM);
71608 +
71609 + Note the use of the `&' operators. These are correct.
71610 +
71611 +\1f
71612 +File: ld.info, Node: SECTIONS, Next: MEMORY, Prev: Assignments, Up: Scripts
71613 +
71614 +3.6 SECTIONS Command
71615 +====================
71616 +
71617 +The `SECTIONS' command tells the linker how to map input sections into
71618 +output sections, and how to place the output sections in memory.
71619 +
71620 + The format of the `SECTIONS' command is:
71621 + SECTIONS
71622 + {
71623 + SECTIONS-COMMAND
71624 + SECTIONS-COMMAND
71625 + ...
71626 + }
71627 +
71628 + Each SECTIONS-COMMAND may of be one of the following:
71629 +
71630 + * an `ENTRY' command (*note Entry command: Entry Point.)
71631 +
71632 + * a symbol assignment (*note Assignments::)
71633 +
71634 + * an output section description
71635 +
71636 + * an overlay description
71637 +
71638 + The `ENTRY' command and symbol assignments are permitted inside the
71639 +`SECTIONS' command for convenience in using the location counter in
71640 +those commands. This can also make the linker script easier to
71641 +understand because you can use those commands at meaningful points in
71642 +the layout of the output file.
71643 +
71644 + Output section descriptions and overlay descriptions are described
71645 +below.
71646 +
71647 + If you do not use a `SECTIONS' command in your linker script, the
71648 +linker will place each input section into an identically named output
71649 +section in the order that the sections are first encountered in the
71650 +input files. If all input sections are present in the first file, for
71651 +example, the order of sections in the output file will match the order
71652 +in the first input file. The first section will be at address zero.
71653 +
71654 +* Menu:
71655 +
71656 +* Output Section Description:: Output section description
71657 +* Output Section Name:: Output section name
71658 +* Output Section Address:: Output section address
71659 +* Input Section:: Input section description
71660 +* Output Section Data:: Output section data
71661 +* Output Section Keywords:: Output section keywords
71662 +* Output Section Discarding:: Output section discarding
71663 +* Output Section Attributes:: Output section attributes
71664 +* Overlay Description:: Overlay description
71665 +
71666 +\1f
71667 +File: ld.info, Node: Output Section Description, Next: Output Section Name, Up: SECTIONS
71668 +
71669 +3.6.1 Output Section Description
71670 +--------------------------------
71671 +
71672 +The full description of an output section looks like this:
71673 + SECTION [ADDRESS] [(TYPE)] :
71674 + [AT(LMA)] [ALIGN(SECTION_ALIGN)] [SUBALIGN(SUBSECTION_ALIGN)]
71675 + {
71676 + OUTPUT-SECTION-COMMAND
71677 + OUTPUT-SECTION-COMMAND
71678 + ...
71679 + } [>REGION] [AT>LMA_REGION] [:PHDR :PHDR ...] [=FILLEXP]
71680 +
71681 + Most output sections do not use most of the optional section
71682 +attributes.
71683 +
71684 + The whitespace around SECTION is required, so that the section name
71685 +is unambiguous. The colon and the curly braces are also required. The
71686 +line breaks and other white space are optional.
71687 +
71688 + Each OUTPUT-SECTION-COMMAND may be one of the following:
71689 +
71690 + * a symbol assignment (*note Assignments::)
71691 +
71692 + * an input section description (*note Input Section::)
71693 +
71694 + * data values to include directly (*note Output Section Data::)
71695 +
71696 + * a special output section keyword (*note Output Section Keywords::)
71697 +
71698 +\1f
71699 +File: ld.info, Node: Output Section Name, Next: Output Section Address, Prev: Output Section Description, Up: SECTIONS
71700 +
71701 +3.6.2 Output Section Name
71702 +-------------------------
71703 +
71704 +The name of the output section is SECTION. SECTION must meet the
71705 +constraints of your output format. In formats which only support a
71706 +limited number of sections, such as `a.out', the name must be one of
71707 +the names supported by the format (`a.out', for example, allows only
71708 +`.text', `.data' or `.bss'). If the output format supports any number
71709 +of sections, but with numbers and not names (as is the case for Oasys),
71710 +the name should be supplied as a quoted numeric string. A section name
71711 +may consist of any sequence of characters, but a name which contains
71712 +any unusual characters such as commas must be quoted.
71713 +
71714 + The output section name `/DISCARD/' is special; *Note Output Section
71715 +Discarding::.
71716 +
71717 +\1f
71718 +File: ld.info, Node: Output Section Address, Next: Input Section, Prev: Output Section Name, Up: SECTIONS
71719 +
71720 +3.6.3 Output Section Address
71721 +----------------------------
71722 +
71723 +The ADDRESS is an expression for the VMA (the virtual memory address)
71724 +of the output section. If you do not provide ADDRESS, the linker will
71725 +set it based on REGION if present, or otherwise based on the current
71726 +value of the location counter.
71727 +
71728 + If you provide ADDRESS, the address of the output section will be
71729 +set to precisely that. If you provide neither ADDRESS nor REGION, then
71730 +the address of the output section will be set to the current value of
71731 +the location counter aligned to the alignment requirements of the
71732 +output section. The alignment requirement of the output section is the
71733 +strictest alignment of any input section contained within the output
71734 +section.
71735 +
71736 + For example,
71737 + .text . : { *(.text) }
71738 + and
71739 + .text : { *(.text) }
71740 + are subtly different. The first will set the address of the `.text'
71741 +output section to the current value of the location counter. The
71742 +second will set it to the current value of the location counter aligned
71743 +to the strictest alignment of a `.text' input section.
71744 +
71745 + The ADDRESS may be an arbitrary expression; *Note Expressions::.
71746 +For example, if you want to align the section on a 0x10 byte boundary,
71747 +so that the lowest four bits of the section address are zero, you could
71748 +do something like this:
71749 + .text ALIGN(0x10) : { *(.text) }
71750 + This works because `ALIGN' returns the current location counter
71751 +aligned upward to the specified value.
71752 +
71753 + Specifying ADDRESS for a section will change the value of the
71754 +location counter.
71755 +
71756 +\1f
71757 +File: ld.info, Node: Input Section, Next: Output Section Data, Prev: Output Section Address, Up: SECTIONS
71758 +
71759 +3.6.4 Input Section Description
71760 +-------------------------------
71761 +
71762 +The most common output section command is an input section description.
71763 +
71764 + The input section description is the most basic linker script
71765 +operation. You use output sections to tell the linker how to lay out
71766 +your program in memory. You use input section descriptions to tell the
71767 +linker how to map the input files into your memory layout.
71768 +
71769 +* Menu:
71770 +
71771 +* Input Section Basics:: Input section basics
71772 +* Input Section Wildcards:: Input section wildcard patterns
71773 +* Input Section Common:: Input section for common symbols
71774 +* Input Section Keep:: Input section and garbage collection
71775 +* Input Section Example:: Input section example
71776 +
71777 +\1f
71778 +File: ld.info, Node: Input Section Basics, Next: Input Section Wildcards, Up: Input Section
71779 +
71780 +3.6.4.1 Input Section Basics
71781 +............................
71782 +
71783 +An input section description consists of a file name optionally followed
71784 +by a list of section names in parentheses.
71785 +
71786 + The file name and the section name may be wildcard patterns, which we
71787 +describe further below (*note Input Section Wildcards::).
71788 +
71789 + The most common input section description is to include all input
71790 +sections with a particular name in the output section. For example, to
71791 +include all input `.text' sections, you would write:
71792 + *(.text)
71793 + Here the `*' is a wildcard which matches any file name. To exclude
71794 +a list of files from matching the file name wildcard, EXCLUDE_FILE may
71795 +be used to match all files except the ones specified in the
71796 +EXCLUDE_FILE list. For example:
71797 + (*(EXCLUDE_FILE (*crtend.o *otherfile.o) .ctors))
71798 + will cause all .ctors sections from all files except `crtend.o' and
71799 +`otherfile.o' to be included.
71800 +
71801 + There are two ways to include more than one section:
71802 + *(.text .rdata)
71803 + *(.text) *(.rdata)
71804 + The difference between these is the order in which the `.text' and
71805 +`.rdata' input sections will appear in the output section. In the
71806 +first example, they will be intermingled, appearing in the same order as
71807 +they are found in the linker input. In the second example, all `.text'
71808 +input sections will appear first, followed by all `.rdata' input
71809 +sections.
71810 +
71811 + You can specify a file name to include sections from a particular
71812 +file. You would do this if one or more of your files contain special
71813 +data that needs to be at a particular location in memory. For example:
71814 + data.o(.data)
71815 +
71816 + If you use a file name without a list of sections, then all sections
71817 +in the input file will be included in the output section. This is not
71818 +commonly done, but it may by useful on occasion. For example:
71819 + data.o
71820 +
71821 + When you use a file name which does not contain any wild card
71822 +characters, the linker will first see if you also specified the file
71823 +name on the linker command line or in an `INPUT' command. If you did
71824 +not, the linker will attempt to open the file as an input file, as
71825 +though it appeared on the command line. Note that this differs from an
71826 +`INPUT' command, because the linker will not search for the file in the
71827 +archive search path.
71828 +
71829 +\1f
71830 +File: ld.info, Node: Input Section Wildcards, Next: Input Section Common, Prev: Input Section Basics, Up: Input Section
71831 +
71832 +3.6.4.2 Input Section Wildcard Patterns
71833 +.......................................
71834 +
71835 +In an input section description, either the file name or the section
71836 +name or both may be wildcard patterns.
71837 +
71838 + The file name of `*' seen in many examples is a simple wildcard
71839 +pattern for the file name.
71840 +
71841 + The wildcard patterns are like those used by the Unix shell.
71842 +
71843 +`*'
71844 + matches any number of characters
71845 +
71846 +`?'
71847 + matches any single character
71848 +
71849 +`[CHARS]'
71850 + matches a single instance of any of the CHARS; the `-' character
71851 + may be used to specify a range of characters, as in `[a-z]' to
71852 + match any lower case letter
71853 +
71854 +`\'
71855 + quotes the following character
71856 +
71857 + When a file name is matched with a wildcard, the wildcard characters
71858 +will not match a `/' character (used to separate directory names on
71859 +Unix). A pattern consisting of a single `*' character is an exception;
71860 +it will always match any file name, whether it contains a `/' or not.
71861 +In a section name, the wildcard characters will match a `/' character.
71862 +
71863 + File name wildcard patterns only match files which are explicitly
71864 +specified on the command line or in an `INPUT' command. The linker
71865 +does not search directories to expand wildcards.
71866 +
71867 + If a file name matches more than one wildcard pattern, or if a file
71868 +name appears explicitly and is also matched by a wildcard pattern, the
71869 +linker will use the first match in the linker script. For example, this
71870 +sequence of input section descriptions is probably in error, because the
71871 +`data.o' rule will not be used:
71872 + .data : { *(.data) }
71873 + .data1 : { data.o(.data) }
71874 +
71875 + Normally, the linker will place files and sections matched by
71876 +wildcards in the order in which they are seen during the link. You can
71877 +change this by using the `SORT_BY_NAME' keyword, which appears before a
71878 +wildcard pattern in parentheses (e.g., `SORT_BY_NAME(.text*)'). When
71879 +the `SORT_BY_NAME' keyword is used, the linker will sort the files or
71880 +sections into ascending order by name before placing them in the output
71881 +file.
71882 +
71883 + `SORT_BY_ALIGNMENT' is very similar to `SORT_BY_NAME'. The
71884 +difference is `SORT_BY_ALIGNMENT' will sort sections into ascending
71885 +order by alignment before placing them in the output file.
71886 +
71887 + `SORT' is an alias for `SORT_BY_NAME'.
71888 +
71889 + When there are nested section sorting commands in linker script,
71890 +there can be at most 1 level of nesting for section sorting commands.
71891 +
71892 + 1. `SORT_BY_NAME' (`SORT_BY_ALIGNMENT' (wildcard section pattern)).
71893 + It will sort the input sections by name first, then by alignment
71894 + if 2 sections have the same name.
71895 +
71896 + 2. `SORT_BY_ALIGNMENT' (`SORT_BY_NAME' (wildcard section pattern)).
71897 + It will sort the input sections by alignment first, then by name
71898 + if 2 sections have the same alignment.
71899 +
71900 + 3. `SORT_BY_NAME' (`SORT_BY_NAME' (wildcard section pattern)) is
71901 + treated the same as `SORT_BY_NAME' (wildcard section pattern).
71902 +
71903 + 4. `SORT_BY_ALIGNMENT' (`SORT_BY_ALIGNMENT' (wildcard section
71904 + pattern)) is treated the same as `SORT_BY_ALIGNMENT' (wildcard
71905 + section pattern).
71906 +
71907 + 5. All other nested section sorting commands are invalid.
71908 +
71909 + When both command line section sorting option and linker script
71910 +section sorting command are used, section sorting command always takes
71911 +precedence over the command line option.
71912 +
71913 + If the section sorting command in linker script isn't nested, the
71914 +command line option will make the section sorting command to be treated
71915 +as nested sorting command.
71916 +
71917 + 1. `SORT_BY_NAME' (wildcard section pattern ) with `--sort-sections
71918 + alignment' is equivalent to `SORT_BY_NAME' (`SORT_BY_ALIGNMENT'
71919 + (wildcard section pattern)).
71920 +
71921 + 2. `SORT_BY_ALIGNMENT' (wildcard section pattern) with
71922 + `--sort-section name' is equivalent to `SORT_BY_ALIGNMENT'
71923 + (`SORT_BY_NAME' (wildcard section pattern)).
71924 +
71925 + If the section sorting command in linker script is nested, the
71926 +command line option will be ignored.
71927 +
71928 + If you ever get confused about where input sections are going, use
71929 +the `-M' linker option to generate a map file. The map file shows
71930 +precisely how input sections are mapped to output sections.
71931 +
71932 + This example shows how wildcard patterns might be used to partition
71933 +files. This linker script directs the linker to place all `.text'
71934 +sections in `.text' and all `.bss' sections in `.bss'. The linker will
71935 +place the `.data' section from all files beginning with an upper case
71936 +character in `.DATA'; for all other files, the linker will place the
71937 +`.data' section in `.data'.
71938 + SECTIONS {
71939 + .text : { *(.text) }
71940 + .DATA : { [A-Z]*(.data) }
71941 + .data : { *(.data) }
71942 + .bss : { *(.bss) }
71943 + }
71944 +
71945 +\1f
71946 +File: ld.info, Node: Input Section Common, Next: Input Section Keep, Prev: Input Section Wildcards, Up: Input Section
71947 +
71948 +3.6.4.3 Input Section for Common Symbols
71949 +........................................
71950 +
71951 +A special notation is needed for common symbols, because in many object
71952 +file formats common symbols do not have a particular input section. The
71953 +linker treats common symbols as though they are in an input section
71954 +named `COMMON'.
71955 +
71956 + You may use file names with the `COMMON' section just as with any
71957 +other input sections. You can use this to place common symbols from a
71958 +particular input file in one section while common symbols from other
71959 +input files are placed in another section.
71960 +
71961 + In most cases, common symbols in input files will be placed in the
71962 +`.bss' section in the output file. For example:
71963 + .bss { *(.bss) *(COMMON) }
71964 +
71965 + Some object file formats have more than one type of common symbol.
71966 +For example, the MIPS ELF object file format distinguishes standard
71967 +common symbols and small common symbols. In this case, the linker will
71968 +use a different special section name for other types of common symbols.
71969 +In the case of MIPS ELF, the linker uses `COMMON' for standard common
71970 +symbols and `.scommon' for small common symbols. This permits you to
71971 +map the different types of common symbols into memory at different
71972 +locations.
71973 +
71974 + You will sometimes see `[COMMON]' in old linker scripts. This
71975 +notation is now considered obsolete. It is equivalent to `*(COMMON)'.
71976 +
71977 +\1f
71978 +File: ld.info, Node: Input Section Keep, Next: Input Section Example, Prev: Input Section Common, Up: Input Section
71979 +
71980 +3.6.4.4 Input Section and Garbage Collection
71981 +............................................
71982 +
71983 +When link-time garbage collection is in use (`--gc-sections'), it is
71984 +often useful to mark sections that should not be eliminated. This is
71985 +accomplished by surrounding an input section's wildcard entry with
71986 +`KEEP()', as in `KEEP(*(.init))' or `KEEP(SORT_BY_NAME(*)(.ctors))'.
71987 +
71988 +\1f
71989 +File: ld.info, Node: Input Section Example, Prev: Input Section Keep, Up: Input Section
71990 +
71991 +3.6.4.5 Input Section Example
71992 +.............................
71993 +
71994 +The following example is a complete linker script. It tells the linker
71995 +to read all of the sections from file `all.o' and place them at the
71996 +start of output section `outputa' which starts at location `0x10000'.
71997 +All of section `.input1' from file `foo.o' follows immediately, in the
71998 +same output section. All of section `.input2' from `foo.o' goes into
71999 +output section `outputb', followed by section `.input1' from `foo1.o'.
72000 +All of the remaining `.input1' and `.input2' sections from any files
72001 +are written to output section `outputc'.
72002 +
72003 + SECTIONS {
72004 + outputa 0x10000 :
72005 + {
72006 + all.o
72007 + foo.o (.input1)
72008 + }
72009 + outputb :
72010 + {
72011 + foo.o (.input2)
72012 + foo1.o (.input1)
72013 + }
72014 + outputc :
72015 + {
72016 + *(.input1)
72017 + *(.input2)
72018 + }
72019 + }
72020 +
72021 +\1f
72022 +File: ld.info, Node: Output Section Data, Next: Output Section Keywords, Prev: Input Section, Up: SECTIONS
72023 +
72024 +3.6.5 Output Section Data
72025 +-------------------------
72026 +
72027 +You can include explicit bytes of data in an output section by using
72028 +`BYTE', `SHORT', `LONG', `QUAD', or `SQUAD' as an output section
72029 +command. Each keyword is followed by an expression in parentheses
72030 +providing the value to store (*note Expressions::). The value of the
72031 +expression is stored at the current value of the location counter.
72032 +
72033 + The `BYTE', `SHORT', `LONG', and `QUAD' commands store one, two,
72034 +four, and eight bytes (respectively). After storing the bytes, the
72035 +location counter is incremented by the number of bytes stored.
72036 +
72037 + For example, this will store the byte 1 followed by the four byte
72038 +value of the symbol `addr':
72039 + BYTE(1)
72040 + LONG(addr)
72041 +
72042 + When using a 64 bit host or target, `QUAD' and `SQUAD' are the same;
72043 +they both store an 8 byte, or 64 bit, value. When both host and target
72044 +are 32 bits, an expression is computed as 32 bits. In this case `QUAD'
72045 +stores a 32 bit value zero extended to 64 bits, and `SQUAD' stores a 32
72046 +bit value sign extended to 64 bits.
72047 +
72048 + If the object file format of the output file has an explicit
72049 +endianness, which is the normal case, the value will be stored in that
72050 +endianness. When the object file format does not have an explicit
72051 +endianness, as is true of, for example, S-records, the value will be
72052 +stored in the endianness of the first input object file.
72053 +
72054 + Note--these commands only work inside a section description and not
72055 +between them, so the following will produce an error from the linker:
72056 + SECTIONS { .text : { *(.text) } LONG(1) .data : { *(.data) } }
72057 + whereas this will work:
72058 + SECTIONS { .text : { *(.text) ; LONG(1) } .data : { *(.data) } }
72059 +
72060 + You may use the `FILL' command to set the fill pattern for the
72061 +current section. It is followed by an expression in parentheses. Any
72062 +otherwise unspecified regions of memory within the section (for example,
72063 +gaps left due to the required alignment of input sections) are filled
72064 +with the value of the expression, repeated as necessary. A `FILL'
72065 +statement covers memory locations after the point at which it occurs in
72066 +the section definition; by including more than one `FILL' statement,
72067 +you can have different fill patterns in different parts of an output
72068 +section.
72069 +
72070 + This example shows how to fill unspecified regions of memory with the
72071 +value `0x90':
72072 + FILL(0x90909090)
72073 +
72074 + The `FILL' command is similar to the `=FILLEXP' output section
72075 +attribute, but it only affects the part of the section following the
72076 +`FILL' command, rather than the entire section. If both are used, the
72077 +`FILL' command takes precedence. *Note Output Section Fill::, for
72078 +details on the fill expression.
72079 +
72080 +\1f
72081 +File: ld.info, Node: Output Section Keywords, Next: Output Section Discarding, Prev: Output Section Data, Up: SECTIONS
72082 +
72083 +3.6.6 Output Section Keywords
72084 +-----------------------------
72085 +
72086 +There are a couple of keywords which can appear as output section
72087 +commands.
72088 +
72089 +`CREATE_OBJECT_SYMBOLS'
72090 + The command tells the linker to create a symbol for each input
72091 + file. The name of each symbol will be the name of the
72092 + corresponding input file. The section of each symbol will be the
72093 + output section in which the `CREATE_OBJECT_SYMBOLS' command
72094 + appears.
72095 +
72096 + This is conventional for the a.out object file format. It is not
72097 + normally used for any other object file format.
72098 +
72099 +`CONSTRUCTORS'
72100 + When linking using the a.out object file format, the linker uses an
72101 + unusual set construct to support C++ global constructors and
72102 + destructors. When linking object file formats which do not support
72103 + arbitrary sections, such as ECOFF and XCOFF, the linker will
72104 + automatically recognize C++ global constructors and destructors by
72105 + name. For these object file formats, the `CONSTRUCTORS' command
72106 + tells the linker to place constructor information in the output
72107 + section where the `CONSTRUCTORS' command appears. The
72108 + `CONSTRUCTORS' command is ignored for other object file formats.
72109 +
72110 + The symbol `__CTOR_LIST__' marks the start of the global
72111 + constructors, and the symbol `__CTOR_END__' marks the end.
72112 + Similarly, `__DTOR_LIST__' and `__DTOR_END__' mark the start and
72113 + end of the global destructors. The first word in the list is the
72114 + number of entries, followed by the address of each constructor or
72115 + destructor, followed by a zero word. The compiler must arrange to
72116 + actually run the code. For these object file formats GNU C++
72117 + normally calls constructors from a subroutine `__main'; a call to
72118 + `__main' is automatically inserted into the startup code for
72119 + `main'. GNU C++ normally runs destructors either by using
72120 + `atexit', or directly from the function `exit'.
72121 +
72122 + For object file formats such as `COFF' or `ELF' which support
72123 + arbitrary section names, GNU C++ will normally arrange to put the
72124 + addresses of global constructors and destructors into the `.ctors'
72125 + and `.dtors' sections. Placing the following sequence into your
72126 + linker script will build the sort of table which the GNU C++
72127 + runtime code expects to see.
72128 +
72129 + __CTOR_LIST__ = .;
72130 + LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
72131 + *(.ctors)
72132 + LONG(0)
72133 + __CTOR_END__ = .;
72134 + __DTOR_LIST__ = .;
72135 + LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
72136 + *(.dtors)
72137 + LONG(0)
72138 + __DTOR_END__ = .;
72139 +
72140 + If you are using the GNU C++ support for initialization priority,
72141 + which provides some control over the order in which global
72142 + constructors are run, you must sort the constructors at link time
72143 + to ensure that they are executed in the correct order. When using
72144 + the `CONSTRUCTORS' command, use `SORT_BY_NAME(CONSTRUCTORS)'
72145 + instead. When using the `.ctors' and `.dtors' sections, use
72146 + `*(SORT_BY_NAME(.ctors))' and `*(SORT_BY_NAME(.dtors))' instead of
72147 + just `*(.ctors)' and `*(.dtors)'.
72148 +
72149 + Normally the compiler and linker will handle these issues
72150 + automatically, and you will not need to concern yourself with
72151 + them. However, you may need to consider this if you are using C++
72152 + and writing your own linker scripts.
72153 +
72154 +
72155 +\1f
72156 +File: ld.info, Node: Output Section Discarding, Next: Output Section Attributes, Prev: Output Section Keywords, Up: SECTIONS
72157 +
72158 +3.6.7 Output Section Discarding
72159 +-------------------------------
72160 +
72161 +The linker will not create output section which do not have any
72162 +contents. This is for convenience when referring to input sections that
72163 +may or may not be present in any of the input files. For example:
72164 + .foo { *(.foo) }
72165 + will only create a `.foo' section in the output file if there is a
72166 +`.foo' section in at least one input file.
72167 +
72168 + If you use anything other than an input section description as an
72169 +output section command, such as a symbol assignment, then the output
72170 +section will always be created, even if there are no matching input
72171 +sections.
72172 +
72173 + The special output section name `/DISCARD/' may be used to discard
72174 +input sections. Any input sections which are assigned to an output
72175 +section named `/DISCARD/' are not included in the output file.
72176 +
72177 +\1f
72178 +File: ld.info, Node: Output Section Attributes, Next: Overlay Description, Prev: Output Section Discarding, Up: SECTIONS
72179 +
72180 +3.6.8 Output Section Attributes
72181 +-------------------------------
72182 +
72183 +We showed above that the full description of an output section looked
72184 +like this:
72185 + SECTION [ADDRESS] [(TYPE)] :
72186 + [AT(LMA)] [ALIGN(SECTION_ALIGN)] [SUBALIGN(SUBSECTION_ALIGN)]
72187 + {
72188 + OUTPUT-SECTION-COMMAND
72189 + OUTPUT-SECTION-COMMAND
72190 + ...
72191 + } [>REGION] [AT>LMA_REGION] [:PHDR :PHDR ...] [=FILLEXP]
72192 +We've already described SECTION, ADDRESS, and
72193 +OUTPUT-SECTION-COMMAND. In this section we will describe the remaining
72194 +section attributes.
72195 +
72196 +* Menu:
72197 +
72198 +* Output Section Type:: Output section type
72199 +* Output Section LMA:: Output section LMA
72200 +* Forced Output Alignment:: Forced Output Alignment
72201 +* Forced Input Alignment:: Forced Input Alignment
72202 +* Output Section Region:: Output section region
72203 +* Output Section Phdr:: Output section phdr
72204 +* Output Section Fill:: Output section fill
72205 +
72206 +\1f
72207 +File: ld.info, Node: Output Section Type, Next: Output Section LMA, Up: Output Section Attributes
72208 +
72209 +3.6.8.1 Output Section Type
72210 +...........................
72211 +
72212 +Each output section may have a type. The type is a keyword in
72213 +parentheses. The following types are defined:
72214 +
72215 +`NOLOAD'
72216 + The section should be marked as not loadable, so that it will not
72217 + be loaded into memory when the program is run.
72218 +
72219 +`DSECT'
72220 +`COPY'
72221 +`INFO'
72222 +`OVERLAY'
72223 + These type names are supported for backward compatibility, and are
72224 + rarely used. They all have the same effect: the section should be
72225 + marked as not allocatable, so that no memory is allocated for the
72226 + section when the program is run.
72227 +
72228 + The linker normally sets the attributes of an output section based on
72229 +the input sections which map into it. You can override this by using
72230 +the section type. For example, in the script sample below, the `ROM'
72231 +section is addressed at memory location `0' and does not need to be
72232 +loaded when the program is run. The contents of the `ROM' section will
72233 +appear in the linker output file as usual.
72234 + SECTIONS {
72235 + ROM 0 (NOLOAD) : { ... }
72236 + ...
72237 + }
72238 +
72239 +\1f
72240 +File: ld.info, Node: Output Section LMA, Next: Forced Output Alignment, Prev: Output Section Type, Up: Output Section Attributes
72241 +
72242 +3.6.8.2 Output Section LMA
72243 +..........................
72244 +
72245 +Every section has a virtual address (VMA) and a load address (LMA); see
72246 +*Note Basic Script Concepts::. The address expression which may appear
72247 +in an output section description sets the VMA (*note Output Section
72248 +Address::).
72249 +
72250 + The linker will normally set the LMA equal to the VMA. You can
72251 +change that by using the `AT' keyword. The expression LMA that follows
72252 +the `AT' keyword specifies the load address of the section.
72253 +
72254 + Alternatively, with `AT>LMA_REGION' expression, you may specify a
72255 +memory region for the section's load address. *Note MEMORY::. Note
72256 +that if the section has not had a VMA assigned to it then the linker
72257 +will use the LMA_REGION as the VMA region as well. *Note Output
72258 +Section Region::.
72259 +
72260 + This feature is designed to make it easy to build a ROM image. For
72261 +example, the following linker script creates three output sections: one
72262 +called `.text', which starts at `0x1000', one called `.mdata', which is
72263 +loaded at the end of the `.text' section even though its VMA is
72264 +`0x2000', and one called `.bss' to hold uninitialized data at address
72265 +`0x3000'. The symbol `_data' is defined with the value `0x2000', which
72266 +shows that the location counter holds the VMA value, not the LMA value.
72267 +
72268 + SECTIONS
72269 + {
72270 + .text 0x1000 : { *(.text) _etext = . ; }
72271 + .mdata 0x2000 :
72272 + AT ( ADDR (.text) + SIZEOF (.text) )
72273 + { _data = . ; *(.data); _edata = . ; }
72274 + .bss 0x3000 :
72275 + { _bstart = . ; *(.bss) *(COMMON) ; _bend = . ;}
72276 + }
72277 +
72278 + The run-time initialization code for use with a program generated
72279 +with this linker script would include something like the following, to
72280 +copy the initialized data from the ROM image to its runtime address.
72281 +Notice how this code takes advantage of the symbols defined by the
72282 +linker script.
72283 +
72284 + extern char _etext, _data, _edata, _bstart, _bend;
72285 + char *src = &_etext;
72286 + char *dst = &_data;
72287 +
72288 + /* ROM has data at end of text; copy it. */
72289 + while (dst < &_edata) {
72290 + *dst++ = *src++;
72291 + }
72292 +
72293 + /* Zero bss */
72294 + for (dst = &_bstart; dst< &_bend; dst++)
72295 + *dst = 0;
72296 +
72297 +\1f
72298 +File: ld.info, Node: Forced Output Alignment, Next: Forced Input Alignment, Prev: Output Section LMA, Up: Output Section Attributes
72299 +
72300 +3.6.8.3 Forced Output Alignment
72301 +...............................
72302 +
72303 +You can increase an output section's alignment by using ALIGN.
72304 +
72305 +\1f
72306 +File: ld.info, Node: Forced Input Alignment, Next: Output Section Region, Prev: Forced Output Alignment, Up: Output Section Attributes
72307 +
72308 +3.6.8.4 Forced Input Alignment
72309 +..............................
72310 +
72311 +You can force input section alignment within an output section by using
72312 +SUBALIGN. The value specified overrides any alignment given by input
72313 +sections, whether larger or smaller.
72314 +
72315 +\1f
72316 +File: ld.info, Node: Output Section Region, Next: Output Section Phdr, Prev: Forced Input Alignment, Up: Output Section Attributes
72317 +
72318 +3.6.8.5 Output Section Region
72319 +.............................
72320 +
72321 +You can assign a section to a previously defined region of memory by
72322 +using `>REGION'. *Note MEMORY::.
72323 +
72324 + Here is a simple example:
72325 + MEMORY { rom : ORIGIN = 0x1000, LENGTH = 0x1000 }
72326 + SECTIONS { ROM : { *(.text) } >rom }
72327 +
72328 +\1f
72329 +File: ld.info, Node: Output Section Phdr, Next: Output Section Fill, Prev: Output Section Region, Up: Output Section Attributes
72330 +
72331 +3.6.8.6 Output Section Phdr
72332 +...........................
72333 +
72334 +You can assign a section to a previously defined program segment by
72335 +using `:PHDR'. *Note PHDRS::. If a section is assigned to one or more
72336 +segments, then all subsequent allocated sections will be assigned to
72337 +those segments as well, unless they use an explicitly `:PHDR' modifier.
72338 +You can use `:NONE' to tell the linker to not put the section in any
72339 +segment at all.
72340 +
72341 + Here is a simple example:
72342 + PHDRS { text PT_LOAD ; }
72343 + SECTIONS { .text : { *(.text) } :text }
72344 +
72345 +\1f
72346 +File: ld.info, Node: Output Section Fill, Prev: Output Section Phdr, Up: Output Section Attributes
72347 +
72348 +3.6.8.7 Output Section Fill
72349 +...........................
72350 +
72351 +You can set the fill pattern for an entire section by using `=FILLEXP'.
72352 +FILLEXP is an expression (*note Expressions::). Any otherwise
72353 +unspecified regions of memory within the output section (for example,
72354 +gaps left due to the required alignment of input sections) will be
72355 +filled with the value, repeated as necessary. If the fill expression
72356 +is a simple hex number, ie. a string of hex digit starting with `0x'
72357 +and without a trailing `k' or `M', then an arbitrarily long sequence of
72358 +hex digits can be used to specify the fill pattern; Leading zeros
72359 +become part of the pattern too. For all other cases, including extra
72360 +parentheses or a unary `+', the fill pattern is the four least
72361 +significant bytes of the value of the expression. In all cases, the
72362 +number is big-endian.
72363 +
72364 + You can also change the fill value with a `FILL' command in the
72365 +output section commands; (*note Output Section Data::).
72366 +
72367 + Here is a simple example:
72368 + SECTIONS { .text : { *(.text) } =0x90909090 }
72369 +
72370 +\1f
72371 +File: ld.info, Node: Overlay Description, Prev: Output Section Attributes, Up: SECTIONS
72372 +
72373 +3.6.9 Overlay Description
72374 +-------------------------
72375 +
72376 +An overlay description provides an easy way to describe sections which
72377 +are to be loaded as part of a single memory image but are to be run at
72378 +the same memory address. At run time, some sort of overlay manager will
72379 +copy the overlaid sections in and out of the runtime memory address as
72380 +required, perhaps by simply manipulating addressing bits. This approach
72381 +can be useful, for example, when a certain region of memory is faster
72382 +than another.
72383 +
72384 + Overlays are described using the `OVERLAY' command. The `OVERLAY'
72385 +command is used within a `SECTIONS' command, like an output section
72386 +description. The full syntax of the `OVERLAY' command is as follows:
72387 + OVERLAY [START] : [NOCROSSREFS] [AT ( LDADDR )]
72388 + {
72389 + SECNAME1
72390 + {
72391 + OUTPUT-SECTION-COMMAND
72392 + OUTPUT-SECTION-COMMAND
72393 + ...
72394 + } [:PHDR...] [=FILL]
72395 + SECNAME2
72396 + {
72397 + OUTPUT-SECTION-COMMAND
72398 + OUTPUT-SECTION-COMMAND
72399 + ...
72400 + } [:PHDR...] [=FILL]
72401 + ...
72402 + } [>REGION] [:PHDR...] [=FILL]
72403 +
72404 + Everything is optional except `OVERLAY' (a keyword), and each
72405 +section must have a name (SECNAME1 and SECNAME2 above). The section
72406 +definitions within the `OVERLAY' construct are identical to those
72407 +within the general `SECTIONS' contruct (*note SECTIONS::), except that
72408 +no addresses and no memory regions may be defined for sections within
72409 +an `OVERLAY'.
72410 +
72411 + The sections are all defined with the same starting address. The
72412 +load addresses of the sections are arranged such that they are
72413 +consecutive in memory starting at the load address used for the
72414 +`OVERLAY' as a whole (as with normal section definitions, the load
72415 +address is optional, and defaults to the start address; the start
72416 +address is also optional, and defaults to the current value of the
72417 +location counter).
72418 +
72419 + If the `NOCROSSREFS' keyword is used, and there any references among
72420 +the sections, the linker will report an error. Since the sections all
72421 +run at the same address, it normally does not make sense for one
72422 +section to refer directly to another. *Note NOCROSSREFS: Miscellaneous
72423 +Commands.
72424 +
72425 + For each section within the `OVERLAY', the linker automatically
72426 +defines two symbols. The symbol `__load_start_SECNAME' is defined as
72427 +the starting load address of the section. The symbol
72428 +`__load_stop_SECNAME' is defined as the final load address of the
72429 +section. Any characters within SECNAME which are not legal within C
72430 +identifiers are removed. C (or assembler) code may use these symbols
72431 +to move the overlaid sections around as necessary.
72432 +
72433 + At the end of the overlay, the value of the location counter is set
72434 +to the start address of the overlay plus the size of the largest
72435 +section.
72436 +
72437 + Here is an example. Remember that this would appear inside a
72438 +`SECTIONS' construct.
72439 + OVERLAY 0x1000 : AT (0x4000)
72440 + {
72441 + .text0 { o1/*.o(.text) }
72442 + .text1 { o2/*.o(.text) }
72443 + }
72444 +This will define both `.text0' and `.text1' to start at address
72445 +0x1000. `.text0' will be loaded at address 0x4000, and `.text1' will
72446 +be loaded immediately after `.text0'. The following symbols will be
72447 +defined: `__load_start_text0', `__load_stop_text0',
72448 +`__load_start_text1', `__load_stop_text1'.
72449 +
72450 + C code to copy overlay `.text1' into the overlay area might look
72451 +like the following.
72452 +
72453 + extern char __load_start_text1, __load_stop_text1;
72454 + memcpy ((char *) 0x1000, &__load_start_text1,
72455 + &__load_stop_text1 - &__load_start_text1);
72456 +
72457 + Note that the `OVERLAY' command is just syntactic sugar, since
72458 +everything it does can be done using the more basic commands. The above
72459 +example could have been written identically as follows.
72460 +
72461 + .text0 0x1000 : AT (0x4000) { o1/*.o(.text) }
72462 + __load_start_text0 = LOADADDR (.text0);
72463 + __load_stop_text0 = LOADADDR (.text0) + SIZEOF (.text0);
72464 + .text1 0x1000 : AT (0x4000 + SIZEOF (.text0)) { o2/*.o(.text) }
72465 + __load_start_text1 = LOADADDR (.text1);
72466 + __load_stop_text1 = LOADADDR (.text1) + SIZEOF (.text1);
72467 + . = 0x1000 + MAX (SIZEOF (.text0), SIZEOF (.text1));
72468 +
72469 +\1f
72470 +File: ld.info, Node: MEMORY, Next: PHDRS, Prev: SECTIONS, Up: Scripts
72471 +
72472 +3.7 MEMORY Command
72473 +==================
72474 +
72475 +The linker's default configuration permits allocation of all available
72476 +memory. You can override this by using the `MEMORY' command.
72477 +
72478 + The `MEMORY' command describes the location and size of blocks of
72479 +memory in the target. You can use it to describe which memory regions
72480 +may be used by the linker, and which memory regions it must avoid. You
72481 +can then assign sections to particular memory regions. The linker will
72482 +set section addresses based on the memory regions, and will warn about
72483 +regions that become too full. The linker will not shuffle sections
72484 +around to fit into the available regions.
72485 +
72486 + A linker script may contain at most one use of the `MEMORY' command.
72487 +However, you can define as many blocks of memory within it as you
72488 +wish. The syntax is:
72489 + MEMORY
72490 + {
72491 + NAME [(ATTR)] : ORIGIN = ORIGIN, LENGTH = LEN
72492 + ...
72493 + }
72494 +
72495 + The NAME is a name used in the linker script to refer to the region.
72496 +The region name has no meaning outside of the linker script. Region
72497 +names are stored in a separate name space, and will not conflict with
72498 +symbol names, file names, or section names. Each memory region must
72499 +have a distinct name.
72500 +
72501 + The ATTR string is an optional list of attributes that specify
72502 +whether to use a particular memory region for an input section which is
72503 +not explicitly mapped in the linker script. As described in *Note
72504 +SECTIONS::, if you do not specify an output section for some input
72505 +section, the linker will create an output section with the same name as
72506 +the input section. If you define region attributes, the linker will use
72507 +them to select the memory region for the output section that it creates.
72508 +
72509 + The ATTR string must consist only of the following characters:
72510 +`R'
72511 + Read-only section
72512 +
72513 +`W'
72514 + Read/write section
72515 +
72516 +`X'
72517 + Executable section
72518 +
72519 +`A'
72520 + Allocatable section
72521 +
72522 +`I'
72523 + Initialized section
72524 +
72525 +`L'
72526 + Same as `I'
72527 +
72528 +`!'
72529 + Invert the sense of any of the preceding attributes
72530 +
72531 + If a unmapped section matches any of the listed attributes other than
72532 +`!', it will be placed in the memory region. The `!' attribute
72533 +reverses this test, so that an unmapped section will be placed in the
72534 +memory region only if it does not match any of the listed attributes.
72535 +
72536 + The ORIGIN is an numerical expression for the start address of the
72537 +memory region. The expression must evaluate to a constant and it
72538 +cannot involve any symbols. The keyword `ORIGIN' may be abbreviated to
72539 +`org' or `o' (but not, for example, `ORG').
72540 +
72541 + The LEN is an expression for the size in bytes of the memory region.
72542 +As with the ORIGIN expression, the expression must be numerical only
72543 +and must evaluate to a constant. The keyword `LENGTH' may be
72544 +abbreviated to `len' or `l'.
72545 +
72546 + In the following example, we specify that there are two memory
72547 +regions available for allocation: one starting at `0' for 256 kilobytes,
72548 +and the other starting at `0x40000000' for four megabytes. The linker
72549 +will place into the `rom' memory region every section which is not
72550 +explicitly mapped into a memory region, and is either read-only or
72551 +executable. The linker will place other sections which are not
72552 +explicitly mapped into a memory region into the `ram' memory region.
72553 +
72554 + MEMORY
72555 + {
72556 + rom (rx) : ORIGIN = 0, LENGTH = 256K
72557 + ram (!rx) : org = 0x40000000, l = 4M
72558 + }
72559 +
72560 + Once you define a memory region, you can direct the linker to place
72561 +specific output sections into that memory region by using the `>REGION'
72562 +output section attribute. For example, if you have a memory region
72563 +named `mem', you would use `>mem' in the output section definition.
72564 +*Note Output Section Region::. If no address was specified for the
72565 +output section, the linker will set the address to the next available
72566 +address within the memory region. If the combined output sections
72567 +directed to a memory region are too large for the region, the linker
72568 +will issue an error message.
72569 +
72570 + It is possible to access the origin and length of a memory in an
72571 +expression via the `ORIGIN(MEMORY)' and `LENGTH(MEMORY)' functions:
72572 +
72573 + _fstack = ORIGIN(ram) + LENGTH(ram) - 4;
72574 +
72575 +\1f
72576 +File: ld.info, Node: PHDRS, Next: VERSION, Prev: MEMORY, Up: Scripts
72577 +
72578 +3.8 PHDRS Command
72579 +=================
72580 +
72581 +The ELF object file format uses "program headers", also knows as
72582 +"segments". The program headers describe how the program should be
72583 +loaded into memory. You can print them out by using the `objdump'
72584 +program with the `-p' option.
72585 +
72586 + When you run an ELF program on a native ELF system, the system loader
72587 +reads the program headers in order to figure out how to load the
72588 +program. This will only work if the program headers are set correctly.
72589 +This manual does not describe the details of how the system loader
72590 +interprets program headers; for more information, see the ELF ABI.
72591 +
72592 + The linker will create reasonable program headers by default.
72593 +However, in some cases, you may need to specify the program headers more
72594 +precisely. You may use the `PHDRS' command for this purpose. When the
72595 +linker sees the `PHDRS' command in the linker script, it will not
72596 +create any program headers other than the ones specified.
72597 +
72598 + The linker only pays attention to the `PHDRS' command when
72599 +generating an ELF output file. In other cases, the linker will simply
72600 +ignore `PHDRS'.
72601 +
72602 + This is the syntax of the `PHDRS' command. The words `PHDRS',
72603 +`FILEHDR', `AT', and `FLAGS' are keywords.
72604 +
72605 + PHDRS
72606 + {
72607 + NAME TYPE [ FILEHDR ] [ PHDRS ] [ AT ( ADDRESS ) ]
72608 + [ FLAGS ( FLAGS ) ] ;
72609 + }
72610 +
72611 + The NAME is used only for reference in the `SECTIONS' command of the
72612 +linker script. It is not put into the output file. Program header
72613 +names are stored in a separate name space, and will not conflict with
72614 +symbol names, file names, or section names. Each program header must
72615 +have a distinct name.
72616 +
72617 + Certain program header types describe segments of memory which the
72618 +system loader will load from the file. In the linker script, you
72619 +specify the contents of these segments by placing allocatable output
72620 +sections in the segments. You use the `:PHDR' output section attribute
72621 +to place a section in a particular segment. *Note Output Section
72622 +Phdr::.
72623 +
72624 + It is normal to put certain sections in more than one segment. This
72625 +merely implies that one segment of memory contains another. You may
72626 +repeat `:PHDR', using it once for each segment which should contain the
72627 +section.
72628 +
72629 + If you place a section in one or more segments using `:PHDR', then
72630 +the linker will place all subsequent allocatable sections which do not
72631 +specify `:PHDR' in the same segments. This is for convenience, since
72632 +generally a whole set of contiguous sections will be placed in a single
72633 +segment. You can use `:NONE' to override the default segment and tell
72634 +the linker to not put the section in any segment at all.
72635 +
72636 + You may use the `FILEHDR' and `PHDRS' keywords appear after the
72637 +program header type to further describe the contents of the segment.
72638 +The `FILEHDR' keyword means that the segment should include the ELF
72639 +file header. The `PHDRS' keyword means that the segment should include
72640 +the ELF program headers themselves.
72641 +
72642 + The TYPE may be one of the following. The numbers indicate the
72643 +value of the keyword.
72644 +
72645 +`PT_NULL' (0)
72646 + Indicates an unused program header.
72647 +
72648 +`PT_LOAD' (1)
72649 + Indicates that this program header describes a segment to be
72650 + loaded from the file.
72651 +
72652 +`PT_DYNAMIC' (2)
72653 + Indicates a segment where dynamic linking information can be found.
72654 +
72655 +`PT_INTERP' (3)
72656 + Indicates a segment where the name of the program interpreter may
72657 + be found.
72658 +
72659 +`PT_NOTE' (4)
72660 + Indicates a segment holding note information.
72661 +
72662 +`PT_SHLIB' (5)
72663 + A reserved program header type, defined but not specified by the
72664 + ELF ABI.
72665 +
72666 +`PT_PHDR' (6)
72667 + Indicates a segment where the program headers may be found.
72668 +
72669 +EXPRESSION
72670 + An expression giving the numeric type of the program header. This
72671 + may be used for types not defined above.
72672 +
72673 + You can specify that a segment should be loaded at a particular
72674 +address in memory by using an `AT' expression. This is identical to the
72675 +`AT' command used as an output section attribute (*note Output Section
72676 +LMA::). The `AT' command for a program header overrides the output
72677 +section attribute.
72678 +
72679 + The linker will normally set the segment flags based on the sections
72680 +which comprise the segment. You may use the `FLAGS' keyword to
72681 +explicitly specify the segment flags. The value of FLAGS must be an
72682 +integer. It is used to set the `p_flags' field of the program header.
72683 +
72684 + Here is an example of `PHDRS'. This shows a typical set of program
72685 +headers used on a native ELF system.
72686 +
72687 + PHDRS
72688 + {
72689 + headers PT_PHDR PHDRS ;
72690 + interp PT_INTERP ;
72691 + text PT_LOAD FILEHDR PHDRS ;
72692 + data PT_LOAD ;
72693 + dynamic PT_DYNAMIC ;
72694 + }
72695 +
72696 + SECTIONS
72697 + {
72698 + . = SIZEOF_HEADERS;
72699 + .interp : { *(.interp) } :text :interp
72700 + .text : { *(.text) } :text
72701 + .rodata : { *(.rodata) } /* defaults to :text */
72702 + ...
72703 + . = . + 0x1000; /* move to a new page in memory */
72704 + .data : { *(.data) } :data
72705 + .dynamic : { *(.dynamic) } :data :dynamic
72706 + ...
72707 + }
72708 +
72709 +\1f
72710 +File: ld.info, Node: VERSION, Next: Expressions, Prev: PHDRS, Up: Scripts
72711 +
72712 +3.9 VERSION Command
72713 +===================
72714 +
72715 +The linker supports symbol versions when using ELF. Symbol versions are
72716 +only useful when using shared libraries. The dynamic linker can use
72717 +symbol versions to select a specific version of a function when it runs
72718 +a program that may have been linked against an earlier version of the
72719 +shared library.
72720 +
72721 + You can include a version script directly in the main linker script,
72722 +or you can supply the version script as an implicit linker script. You
72723 +can also use the `--version-script' linker option.
72724 +
72725 + The syntax of the `VERSION' command is simply
72726 + VERSION { version-script-commands }
72727 +
72728 + The format of the version script commands is identical to that used
72729 +by Sun's linker in Solaris 2.5. The version script defines a tree of
72730 +version nodes. You specify the node names and interdependencies in the
72731 +version script. You can specify which symbols are bound to which
72732 +version nodes, and you can reduce a specified set of symbols to local
72733 +scope so that they are not globally visible outside of the shared
72734 +library.
72735 +
72736 + The easiest way to demonstrate the version script language is with a
72737 +few examples.
72738 +
72739 + VERS_1.1 {
72740 + global:
72741 + foo1;
72742 + local:
72743 + old*;
72744 + original*;
72745 + new*;
72746 + };
72747 +
72748 + VERS_1.2 {
72749 + foo2;
72750 + } VERS_1.1;
72751 +
72752 + VERS_2.0 {
72753 + bar1; bar2;
72754 + extern "C++" {
72755 + ns::*;
72756 + "int f(int, double)";
72757 + }
72758 + } VERS_1.2;
72759 +
72760 + This example version script defines three version nodes. The first
72761 +version node defined is `VERS_1.1'; it has no other dependencies. The
72762 +script binds the symbol `foo1' to `VERS_1.1'. It reduces a number of
72763 +symbols to local scope so that they are not visible outside of the
72764 +shared library; this is done using wildcard patterns, so that any
72765 +symbol whose name begins with `old', `original', or `new' is matched.
72766 +The wildcard patterns available are the same as those used in the shell
72767 +when matching filenames (also known as "globbing"). However, if you
72768 +specify the symbol name inside double quotes, then the name is treated
72769 +as literal, rather than as a glob pattern.
72770 +
72771 + Next, the version script defines node `VERS_1.2'. This node depends
72772 +upon `VERS_1.1'. The script binds the symbol `foo2' to the version
72773 +node `VERS_1.2'.
72774 +
72775 + Finally, the version script defines node `VERS_2.0'. This node
72776 +depends upon `VERS_1.2'. The scripts binds the symbols `bar1' and
72777 +`bar2' are bound to the version node `VERS_2.0'.
72778 +
72779 + When the linker finds a symbol defined in a library which is not
72780 +specifically bound to a version node, it will effectively bind it to an
72781 +unspecified base version of the library. You can bind all otherwise
72782 +unspecified symbols to a given version node by using `global: *;'
72783 +somewhere in the version script.
72784 +
72785 + The names of the version nodes have no specific meaning other than
72786 +what they might suggest to the person reading them. The `2.0' version
72787 +could just as well have appeared in between `1.1' and `1.2'. However,
72788 +this would be a confusing way to write a version script.
72789 +
72790 + Node name can be omited, provided it is the only version node in the
72791 +version script. Such version script doesn't assign any versions to
72792 +symbols, only selects which symbols will be globally visible out and
72793 +which won't.
72794 +
72795 + { global: foo; bar; local: *; };
72796 +
72797 + When you link an application against a shared library that has
72798 +versioned symbols, the application itself knows which version of each
72799 +symbol it requires, and it also knows which version nodes it needs from
72800 +each shared library it is linked against. Thus at runtime, the dynamic
72801 +loader can make a quick check to make sure that the libraries you have
72802 +linked against do in fact supply all of the version nodes that the
72803 +application will need to resolve all of the dynamic symbols. In this
72804 +way it is possible for the dynamic linker to know with certainty that
72805 +all external symbols that it needs will be resolvable without having to
72806 +search for each symbol reference.
72807 +
72808 + The symbol versioning is in effect a much more sophisticated way of
72809 +doing minor version checking that SunOS does. The fundamental problem
72810 +that is being addressed here is that typically references to external
72811 +functions are bound on an as-needed basis, and are not all bound when
72812 +the application starts up. If a shared library is out of date, a
72813 +required interface may be missing; when the application tries to use
72814 +that interface, it may suddenly and unexpectedly fail. With symbol
72815 +versioning, the user will get a warning when they start their program if
72816 +the libraries being used with the application are too old.
72817 +
72818 + There are several GNU extensions to Sun's versioning approach. The
72819 +first of these is the ability to bind a symbol to a version node in the
72820 +source file where the symbol is defined instead of in the versioning
72821 +script. This was done mainly to reduce the burden on the library
72822 +maintainer. You can do this by putting something like:
72823 + __asm__(".symver original_foo,foo@VERS_1.1");
72824 + in the C source file. This renames the function `original_foo' to
72825 +be an alias for `foo' bound to the version node `VERS_1.1'. The
72826 +`local:' directive can be used to prevent the symbol `original_foo'
72827 +from being exported. A `.symver' directive takes precedence over a
72828 +version script.
72829 +
72830 + The second GNU extension is to allow multiple versions of the same
72831 +function to appear in a given shared library. In this way you can make
72832 +an incompatible change to an interface without increasing the major
72833 +version number of the shared library, while still allowing applications
72834 +linked against the old interface to continue to function.
72835 +
72836 + To do this, you must use multiple `.symver' directives in the source
72837 +file. Here is an example:
72838 +
72839 + __asm__(".symver original_foo,foo@");
72840 + __asm__(".symver old_foo,foo@VERS_1.1");
72841 + __asm__(".symver old_foo1,foo@VERS_1.2");
72842 + __asm__(".symver new_foo,foo@@VERS_2.0");
72843 +
72844 + In this example, `foo@' represents the symbol `foo' bound to the
72845 +unspecified base version of the symbol. The source file that contains
72846 +this example would define 4 C functions: `original_foo', `old_foo',
72847 +`old_foo1', and `new_foo'.
72848 +
72849 + When you have multiple definitions of a given symbol, there needs to
72850 +be some way to specify a default version to which external references to
72851 +this symbol will be bound. You can do this with the `foo@@VERS_2.0'
72852 +type of `.symver' directive. You can only declare one version of a
72853 +symbol as the default in this manner; otherwise you would effectively
72854 +have multiple definitions of the same symbol.
72855 +
72856 + If you wish to bind a reference to a specific version of the symbol
72857 +within the shared library, you can use the aliases of convenience
72858 +(i.e., `old_foo'), or you can use the `.symver' directive to
72859 +specifically bind to an external version of the function in question.
72860 +
72861 + You can also specify the language in the version script:
72862 +
72863 + VERSION extern "lang" { version-script-commands }
72864 +
72865 + The supported `lang's are `C', `C++', and `Java'. The linker will
72866 +iterate over the list of symbols at the link time and demangle them
72867 +according to `lang' before matching them to the patterns specified in
72868 +`version-script-commands'.
72869 +
72870 + Demangled names may contains spaces and other special characters. As
72871 +described above, you can use a glob pattern to match demangled names,
72872 +or you can use a double-quoted string to match the string exactly. In
72873 +the latter case, be aware that minor differences (such as differing
72874 +whitespace) between the version script and the demangler output will
72875 +cause a mismatch. As the exact string generated by the demangler might
72876 +change in the future, even if the mangled name does not, you should
72877 +check that all of your version directives are behaving as you expect
72878 +when you upgrade.
72879 +
72880 +\1f
72881 +File: ld.info, Node: Expressions, Next: Implicit Linker Scripts, Prev: VERSION, Up: Scripts
72882 +
72883 +3.10 Expressions in Linker Scripts
72884 +==================================
72885 +
72886 +The syntax for expressions in the linker script language is identical to
72887 +that of C expressions. All expressions are evaluated as integers. All
72888 +expressions are evaluated in the same size, which is 32 bits if both the
72889 +host and target are 32 bits, and is otherwise 64 bits.
72890 +
72891 + You can use and set symbol values in expressions.
72892 +
72893 + The linker defines several special purpose builtin functions for use
72894 +in expressions.
72895 +
72896 +* Menu:
72897 +
72898 +* Constants:: Constants
72899 +* Symbols:: Symbol Names
72900 +* Orphan Sections:: Orphan Sections
72901 +* Location Counter:: The Location Counter
72902 +* Operators:: Operators
72903 +* Evaluation:: Evaluation
72904 +* Expression Section:: The Section of an Expression
72905 +* Builtin Functions:: Builtin Functions
72906 +
72907 +\1f
72908 +File: ld.info, Node: Constants, Next: Symbols, Up: Expressions
72909 +
72910 +3.10.1 Constants
72911 +----------------
72912 +
72913 +All constants are integers.
72914 +
72915 + As in C, the linker considers an integer beginning with `0' to be
72916 +octal, and an integer beginning with `0x' or `0X' to be hexadecimal.
72917 +The linker considers other integers to be decimal.
72918 +
72919 + In addition, you can use the suffixes `K' and `M' to scale a
72920 +constant by `1024' or `1024*1024' respectively. For example, the
72921 +following all refer to the same quantity:
72922 + _fourk_1 = 4K;
72923 + _fourk_2 = 4096;
72924 + _fourk_3 = 0x1000;
72925 +
72926 +\1f
72927 +File: ld.info, Node: Symbols, Next: Orphan Sections, Prev: Constants, Up: Expressions
72928 +
72929 +3.10.2 Symbol Names
72930 +-------------------
72931 +
72932 +Unless quoted, symbol names start with a letter, underscore, or period
72933 +and may include letters, digits, underscores, periods, and hyphens.
72934 +Unquoted symbol names must not conflict with any keywords. You can
72935 +specify a symbol which contains odd characters or has the same name as a
72936 +keyword by surrounding the symbol name in double quotes:
72937 + "SECTION" = 9;
72938 + "with a space" = "also with a space" + 10;
72939 +
72940 + Since symbols can contain many non-alphabetic characters, it is
72941 +safest to delimit symbols with spaces. For example, `A-B' is one
72942 +symbol, whereas `A - B' is an expression involving subtraction.
72943 +
72944 +\1f
72945 +File: ld.info, Node: Orphan Sections, Next: Location Counter, Prev: Symbols, Up: Expressions
72946 +
72947 +3.10.3 Orphan Sections
72948 +----------------------
72949 +
72950 +Orphan sections are sections present in the input files which are not
72951 +explicitly placed into the output file by the linker script. The
72952 +linker will still copy these sections into the output file, but it has
72953 +to guess as to where they should be placed. The linker uses a simple
72954 +heuristic to do this. It attempts to place orphan sections after
72955 +non-orphan sections of the same attribute, such as code vs data,
72956 +loadable vs non-loadable, etc. If there is not enough room to do this
72957 +then it places at the end of the file.
72958 +
72959 + For ELF targets, the attribute of the section includes section type
72960 +as well as section flag.
72961 +
72962 +\1f
72963 +File: ld.info, Node: Location Counter, Next: Operators, Prev: Orphan Sections, Up: Expressions
72964 +
72965 +3.10.4 The Location Counter
72966 +---------------------------
72967 +
72968 +The special linker variable "dot" `.' always contains the current
72969 +output location counter. Since the `.' always refers to a location in
72970 +an output section, it may only appear in an expression within a
72971 +`SECTIONS' command. The `.' symbol may appear anywhere that an
72972 +ordinary symbol is allowed in an expression.
72973 +
72974 + Assigning a value to `.' will cause the location counter to be
72975 +moved. This may be used to create holes in the output section. The
72976 +location counter may never be moved backwards.
72977 +
72978 + SECTIONS
72979 + {
72980 + output :
72981 + {
72982 + file1(.text)
72983 + . = . + 1000;
72984 + file2(.text)
72985 + . += 1000;
72986 + file3(.text)
72987 + } = 0x12345678;
72988 + }
72989 + In the previous example, the `.text' section from `file1' is located
72990 +at the beginning of the output section `output'. It is followed by a
72991 +1000 byte gap. Then the `.text' section from `file2' appears, also
72992 +with a 1000 byte gap following before the `.text' section from `file3'.
72993 +The notation `= 0x12345678' specifies what data to write in the gaps
72994 +(*note Output Section Fill::).
72995 +
72996 + Note: `.' actually refers to the byte offset from the start of the
72997 +current containing object. Normally this is the `SECTIONS' statement,
72998 +whose start address is 0, hence `.' can be used as an absolute address.
72999 +If `.' is used inside a section description however, it refers to the
73000 +byte offset from the start of that section, not an absolute address.
73001 +Thus in a script like this:
73002 +
73003 + SECTIONS
73004 + {
73005 + . = 0x100
73006 + .text: {
73007 + *(.text)
73008 + . = 0x200
73009 + }
73010 + . = 0x500
73011 + .data: {
73012 + *(.data)
73013 + . += 0x600
73014 + }
73015 + }
73016 +
73017 + The `.text' section will be assigned a starting address of 0x100 and
73018 +a size of exactly 0x200 bytes, even if there is not enough data in the
73019 +`.text' input sections to fill this area. (If there is too much data,
73020 +an error will be produced because this would be an attempt to move `.'
73021 +backwards). The `.data' section will start at 0x500 and it will have
73022 +an extra 0x600 bytes worth of space after the end of the values from
73023 +the `.data' input sections and before the end of the `.data' output
73024 +section itself.
73025 +
73026 + Setting symbols to the value of the location counter outside of an
73027 +output section statement can result in unexpected values if the linker
73028 +needs to place orphan sections. For example, given the following:
73029 +
73030 + SECTIONS
73031 + {
73032 + start_of_text = . ;
73033 + .text: { *(.text) }
73034 + end_of_text = . ;
73035 +
73036 + start_of_data = . ;
73037 + .data: { *(.data) }
73038 + end_of_data = . ;
73039 + }
73040 +
73041 + If the linker needs to place some input section, e.g. `.rodata', not
73042 +mentioned in the script, it might choose to place that section between
73043 +`.text' and `.data'. You might think the linker should place `.rodata'
73044 +on the blank line in the above script, but blank lines are of no
73045 +particular significance to the linker. As well, the linker doesn't
73046 +associate the above symbol names with their sections. Instead, it
73047 +assumes that all assignments or other statements belong to the previous
73048 +output section, except for the special case of an assignment to `.'.
73049 +I.e., the linker will place the orphan `.rodata' section as if the
73050 +script was written as follows:
73051 +
73052 + SECTIONS
73053 + {
73054 + start_of_text = . ;
73055 + .text: { *(.text) }
73056 + end_of_text = . ;
73057 +
73058 + start_of_data = . ;
73059 + .rodata: { *(.rodata) }
73060 + .data: { *(.data) }
73061 + end_of_data = . ;
73062 + }
73063 +
73064 + This may or may not be the script author's intention for the value of
73065 +`start_of_data'. One way to influence the orphan section placement is
73066 +to assign the location counter to itself, as the linker assumes that an
73067 +assignment to `.' is setting the start address of a following output
73068 +section and thus should be grouped with that section. So you could
73069 +write:
73070 +
73071 + SECTIONS
73072 + {
73073 + start_of_text = . ;
73074 + .text: { *(.text) }
73075 + end_of_text = . ;
73076 +
73077 + . = . ;
73078 + start_of_data = . ;
73079 + .data: { *(.data) }
73080 + end_of_data = . ;
73081 + }
73082 +
73083 + Now, the orphan `.rodata' section will be placed between
73084 +`end_of_text' and `start_of_data'.
73085 +
73086 +\1f
73087 +File: ld.info, Node: Operators, Next: Evaluation, Prev: Location Counter, Up: Expressions
73088 +
73089 +3.10.5 Operators
73090 +----------------
73091 +
73092 +The linker recognizes the standard C set of arithmetic operators, with
73093 +the standard bindings and precedence levels:
73094 + precedence associativity Operators Notes
73095 + (highest)
73096 + 1 left ! - ~ (1)
73097 + 2 left * / %
73098 + 3 left + -
73099 + 4 left >> <<
73100 + 5 left == != > < <= >=
73101 + 6 left &
73102 + 7 left |
73103 + 8 left &&
73104 + 9 left ||
73105 + 10 right ? :
73106 + 11 right &= += -= *= /= (2)
73107 + (lowest)
73108 + Notes: (1) Prefix operators (2) *Note Assignments::.
73109 +
73110 +\1f
73111 +File: ld.info, Node: Evaluation, Next: Expression Section, Prev: Operators, Up: Expressions
73112 +
73113 +3.10.6 Evaluation
73114 +-----------------
73115 +
73116 +The linker evaluates expressions lazily. It only computes the value of
73117 +an expression when absolutely necessary.
73118 +
73119 + The linker needs some information, such as the value of the start
73120 +address of the first section, and the origins and lengths of memory
73121 +regions, in order to do any linking at all. These values are computed
73122 +as soon as possible when the linker reads in the linker script.
73123 +
73124 + However, other values (such as symbol values) are not known or needed
73125 +until after storage allocation. Such values are evaluated later, when
73126 +other information (such as the sizes of output sections) is available
73127 +for use in the symbol assignment expression.
73128 +
73129 + The sizes of sections cannot be known until after allocation, so
73130 +assignments dependent upon these are not performed until after
73131 +allocation.
73132 +
73133 + Some expressions, such as those depending upon the location counter
73134 +`.', must be evaluated during section allocation.
73135 +
73136 + If the result of an expression is required, but the value is not
73137 +available, then an error results. For example, a script like the
73138 +following
73139 + SECTIONS
73140 + {
73141 + .text 9+this_isnt_constant :
73142 + { *(.text) }
73143 + }
73144 +will cause the error message `non constant expression for initial
73145 +address'.
73146 +
73147 +\1f
73148 +File: ld.info, Node: Expression Section, Next: Builtin Functions, Prev: Evaluation, Up: Expressions
73149 +
73150 +3.10.7 The Section of an Expression
73151 +-----------------------------------
73152 +
73153 +When the linker evaluates an expression, the result is either absolute
73154 +or relative to some section. A relative expression is expressed as a
73155 +fixed offset from the base of a section.
73156 +
73157 + The position of the expression within the linker script determines
73158 +whether it is absolute or relative. An expression which appears within
73159 +an output section definition is relative to the base of the output
73160 +section. An expression which appears elsewhere will be absolute.
73161 +
73162 + A symbol set to a relative expression will be relocatable if you
73163 +request relocatable output using the `-r' option. That means that a
73164 +further link operation may change the value of the symbol. The symbol's
73165 +section will be the section of the relative expression.
73166 +
73167 + A symbol set to an absolute expression will retain the same value
73168 +through any further link operation. The symbol will be absolute, and
73169 +will not have any particular associated section.
73170 +
73171 + You can use the builtin function `ABSOLUTE' to force an expression
73172 +to be absolute when it would otherwise be relative. For example, to
73173 +create an absolute symbol set to the address of the end of the output
73174 +section `.data':
73175 + SECTIONS
73176 + {
73177 + .data : { *(.data) _edata = ABSOLUTE(.); }
73178 + }
73179 + If `ABSOLUTE' were not used, `_edata' would be relative to the
73180 +`.data' section.
73181 +
73182 +\1f
73183 +File: ld.info, Node: Builtin Functions, Prev: Expression Section, Up: Expressions
73184 +
73185 +3.10.8 Builtin Functions
73186 +------------------------
73187 +
73188 +The linker script language includes a number of builtin functions for
73189 +use in linker script expressions.
73190 +
73191 +`ABSOLUTE(EXP)'
73192 + Return the absolute (non-relocatable, as opposed to non-negative)
73193 + value of the expression EXP. Primarily useful to assign an
73194 + absolute value to a symbol within a section definition, where
73195 + symbol values are normally section relative. *Note Expression
73196 + Section::.
73197 +
73198 +`ADDR(SECTION)'
73199 + Return the absolute address (the VMA) of the named SECTION. Your
73200 + script must previously have defined the location of that section.
73201 + In the following example, `symbol_1' and `symbol_2' are assigned
73202 + identical values:
73203 + SECTIONS { ...
73204 + .output1 :
73205 + {
73206 + start_of_output_1 = ABSOLUTE(.);
73207 + ...
73208 + }
73209 + .output :
73210 + {
73211 + symbol_1 = ADDR(.output1);
73212 + symbol_2 = start_of_output_1;
73213 + }
73214 + ... }
73215 +
73216 +`ALIGN(ALIGN)'
73217 +`ALIGN(EXP,ALIGN)'
73218 + Return the location counter (`.') or arbitrary expression aligned
73219 + to the next ALIGN boundary. The single operand `ALIGN' doesn't
73220 + change the value of the location counter--it just does arithmetic
73221 + on it. The two operand `ALIGN' allows an arbitrary expression to
73222 + be aligned upwards (`ALIGN(ALIGN)' is equivalent to `ALIGN(.,
73223 + ALIGN)').
73224 +
73225 + Here is an example which aligns the output `.data' section to the
73226 + next `0x2000' byte boundary after the preceding section and sets a
73227 + variable within the section to the next `0x8000' boundary after the
73228 + input sections:
73229 + SECTIONS { ...
73230 + .data ALIGN(0x2000): {
73231 + *(.data)
73232 + variable = ALIGN(0x8000);
73233 + }
73234 + ... }
73235 + The first use of `ALIGN' in this example specifies the
73236 + location of a section because it is used as the optional ADDRESS
73237 + attribute of a section definition (*note Output Section
73238 + Address::). The second use of `ALIGN' is used to defines the
73239 + value of a symbol.
73240 +
73241 + The builtin function `NEXT' is closely related to `ALIGN'.
73242 +
73243 +`BLOCK(EXP)'
73244 + This is a synonym for `ALIGN', for compatibility with older linker
73245 + scripts. It is most often seen when setting the address of an
73246 + output section.
73247 +
73248 +`DATA_SEGMENT_ALIGN(MAXPAGESIZE, COMMONPAGESIZE)'
73249 + This is equivalent to either
73250 + (ALIGN(MAXPAGESIZE) + (. & (MAXPAGESIZE - 1)))
73251 + or
73252 + (ALIGN(MAXPAGESIZE) + (. & (MAXPAGESIZE - COMMONPAGESIZE)))
73253 + depending on whether the latter uses fewer COMMONPAGESIZE sized
73254 + pages for the data segment (area between the result of this
73255 + expression and `DATA_SEGMENT_END') than the former or not. If the
73256 + latter form is used, it means COMMONPAGESIZE bytes of runtime
73257 + memory will be saved at the expense of up to COMMONPAGESIZE wasted
73258 + bytes in the on-disk file.
73259 +
73260 + This expression can only be used directly in `SECTIONS' commands,
73261 + not in any output section descriptions and only once in the linker
73262 + script. COMMONPAGESIZE should be less or equal to MAXPAGESIZE and
73263 + should be the system page size the object wants to be optimized
73264 + for (while still working on system page sizes up to MAXPAGESIZE).
73265 +
73266 + Example:
73267 + . = DATA_SEGMENT_ALIGN(0x10000, 0x2000);
73268 +
73269 +`DATA_SEGMENT_END(EXP)'
73270 + This defines the end of data segment for `DATA_SEGMENT_ALIGN'
73271 + evaluation purposes.
73272 +
73273 + . = DATA_SEGMENT_END(.);
73274 +
73275 +`DATA_SEGMENT_RELRO_END(OFFSET, EXP)'
73276 + This defines the end of the `PT_GNU_RELRO' segment when `-z relro'
73277 + option is used. Second argument is returned. When `-z relro'
73278 + option is not present, `DATA_SEGMENT_RELRO_END' does nothing,
73279 + otherwise `DATA_SEGMENT_ALIGN' is padded so that EXP + OFFSET is
73280 + aligned to the most commonly used page boundary for particular
73281 + target. If present in the linker script, it must always come in
73282 + between `DATA_SEGMENT_ALIGN' and `DATA_SEGMENT_END'.
73283 +
73284 + . = DATA_SEGMENT_RELRO_END(24, .);
73285 +
73286 +`DEFINED(SYMBOL)'
73287 + Return 1 if SYMBOL is in the linker global symbol table and is
73288 + defined before the statement using DEFINED in the script, otherwise
73289 + return 0. You can use this function to provide default values for
73290 + symbols. For example, the following script fragment shows how to
73291 + set a global symbol `begin' to the first location in the `.text'
73292 + section--but if a symbol called `begin' already existed, its value
73293 + is preserved:
73294 +
73295 + SECTIONS { ...
73296 + .text : {
73297 + begin = DEFINED(begin) ? begin : . ;
73298 + ...
73299 + }
73300 + ...
73301 + }
73302 +
73303 +`LENGTH(MEMORY)'
73304 + Return the length of the memory region named MEMORY.
73305 +
73306 +`LOADADDR(SECTION)'
73307 + Return the absolute LMA of the named SECTION. This is normally
73308 + the same as `ADDR', but it may be different if the `AT' attribute
73309 + is used in the output section definition (*note Output Section
73310 + LMA::).
73311 +
73312 +`MAX(EXP1, EXP2)'
73313 + Returns the maximum of EXP1 and EXP2.
73314 +
73315 +`MIN(EXP1, EXP2)'
73316 + Returns the minimum of EXP1 and EXP2.
73317 +
73318 +`NEXT(EXP)'
73319 + Return the next unallocated address that is a multiple of EXP.
73320 + This function is closely related to `ALIGN(EXP)'; unless you use
73321 + the `MEMORY' command to define discontinuous memory for the output
73322 + file, the two functions are equivalent.
73323 +
73324 +`ORIGIN(MEMORY)'
73325 + Return the origin of the memory region named MEMORY.
73326 +
73327 +`SEGMENT_START(SEGMENT, DEFAULT)'
73328 + Return the base address of the named SEGMENT. If an explicit
73329 + value has been given for this segment (with a command-line `-T'
73330 + option) that value will be returned; otherwise the value will be
73331 + DEFAULT. At present, the `-T' command-line option can only be
73332 + used to set the base address for the "text", "data", and "bss"
73333 + sections, but you use `SEGMENT_START' with any segment name.
73334 +
73335 +`SIZEOF(SECTION)'
73336 + Return the size in bytes of the named SECTION, if that section has
73337 + been allocated. If the section has not been allocated when this is
73338 + evaluated, the linker will report an error. In the following
73339 + example, `symbol_1' and `symbol_2' are assigned identical values:
73340 + SECTIONS{ ...
73341 + .output {
73342 + .start = . ;
73343 + ...
73344 + .end = . ;
73345 + }
73346 + symbol_1 = .end - .start ;
73347 + symbol_2 = SIZEOF(.output);
73348 + ... }
73349 +
73350 +`SIZEOF_HEADERS'
73351 +`sizeof_headers'
73352 + Return the size in bytes of the output file's headers. This is
73353 + information which appears at the start of the output file. You
73354 + can use this number when setting the start address of the first
73355 + section, if you choose, to facilitate paging.
73356 +
73357 + When producing an ELF output file, if the linker script uses the
73358 + `SIZEOF_HEADERS' builtin function, the linker must compute the
73359 + number of program headers before it has determined all the section
73360 + addresses and sizes. If the linker later discovers that it needs
73361 + additional program headers, it will report an error `not enough
73362 + room for program headers'. To avoid this error, you must avoid
73363 + using the `SIZEOF_HEADERS' function, or you must rework your linker
73364 + script to avoid forcing the linker to use additional program
73365 + headers, or you must define the program headers yourself using the
73366 + `PHDRS' command (*note PHDRS::).
73367 +
73368 +\1f
73369 +File: ld.info, Node: Implicit Linker Scripts, Prev: Expressions, Up: Scripts
73370 +
73371 +3.11 Implicit Linker Scripts
73372 +============================
73373 +
73374 +If you specify a linker input file which the linker can not recognize as
73375 +an object file or an archive file, it will try to read the file as a
73376 +linker script. If the file can not be parsed as a linker script, the
73377 +linker will report an error.
73378 +
73379 + An implicit linker script will not replace the default linker script.
73380 +
73381 + Typically an implicit linker script would contain only symbol
73382 +assignments, or the `INPUT', `GROUP', or `VERSION' commands.
73383 +
73384 + Any input files read because of an implicit linker script will be
73385 +read at the position in the command line where the implicit linker
73386 +script was read. This can affect archive searching.
73387 +
73388 +\1f
73389 +File: ld.info, Node: Machine Dependent, Next: BFD, Prev: Scripts, Up: Top
73390 +
73391 +4 Machine Dependent Features
73392 +****************************
73393 +
73394 +`ld' has additional features on some platforms; the following sections
73395 +describe them. Machines where `ld' has no additional functionality are
73396 +not listed.
73397 +
73398 +* Menu:
73399 +
73400 +
73401 +* H8/300:: `ld' and the H8/300
73402 +
73403 +* i960:: `ld' and the Intel 960 family
73404 +
73405 +* ARM:: `ld' and the ARM family
73406 +
73407 +* HPPA ELF32:: `ld' and HPPA 32-bit ELF
73408 +
73409 +* MMIX:: `ld' and MMIX
73410 +
73411 +* MSP430:: `ld' and MSP430
73412 +
73413 +* PowerPC ELF32:: `ld' and PowerPC 32-bit ELF Support
73414 +
73415 +* PowerPC64 ELF64:: `ld' and PowerPC64 64-bit ELF Support
73416 +
73417 +* TI COFF:: `ld' and TI COFF
73418 +
73419 +* WIN32:: `ld' and WIN32 (cygwin/mingw)
73420 +
73421 +* Xtensa:: `ld' and Xtensa Processors
73422 +
73423 +\1f
73424 +File: ld.info, Node: H8/300, Next: i960, Up: Machine Dependent
73425 +
73426 +4.1 `ld' and the H8/300
73427 +=======================
73428 +
73429 +For the H8/300, `ld' can perform these global optimizations when you
73430 +specify the `--relax' command-line option.
73431 +
73432 +_relaxing address modes_
73433 + `ld' finds all `jsr' and `jmp' instructions whose targets are
73434 + within eight bits, and turns them into eight-bit program-counter
73435 + relative `bsr' and `bra' instructions, respectively.
73436 +
73437 +_synthesizing instructions_
73438 + `ld' finds all `mov.b' instructions which use the sixteen-bit
73439 + absolute address form, but refer to the top page of memory, and
73440 + changes them to use the eight-bit address form. (That is: the
73441 + linker turns `mov.b `@'AA:16' into `mov.b `@'AA:8' whenever the
73442 + address AA is in the top page of memory).
73443 +
73444 +_bit manipulation instructions_
73445 + `ld' finds all bit manipulation instructions like `band, bclr,
73446 + biand, bild, bior, bist, bixor, bld, bnot, bor, bset, bst, btst,
73447 + bxor' which use 32 bit and 16 bit absolute address form, but refer
73448 + to the top page of memory, and changes them to use the 8 bit
73449 + address form. (That is: the linker turns `bset #xx:3,`@'AA:32'
73450 + into `bset #xx:3,`@'AA:8' whenever the address AA is in the top
73451 + page of memory).
73452 +
73453 +_system control instructions_
73454 + `ld' finds all `ldc.w, stc.w' instrcutions which use the 32 bit
73455 + absolute address form, but refer to the top page of memory, and
73456 + changes them to use 16 bit address form. (That is: the linker
73457 + turns `ldc.w `@'AA:32,ccr' into `ldc.w `@'AA:16,ccr' whenever the
73458 + address AA is in the top page of memory).
73459 +
73460 +\1f
73461 +File: ld.info, Node: i960, Next: ARM, Prev: H8/300, Up: Machine Dependent
73462 +
73463 +4.2 `ld' and the Intel 960 Family
73464 +=================================
73465 +
73466 +You can use the `-AARCHITECTURE' command line option to specify one of
73467 +the two-letter names identifying members of the 960 family; the option
73468 +specifies the desired output target, and warns of any incompatible
73469 +instructions in the input files. It also modifies the linker's search
73470 +strategy for archive libraries, to support the use of libraries
73471 +specific to each particular architecture, by including in the search
73472 +loop names suffixed with the string identifying the architecture.
73473 +
73474 + For example, if your `ld' command line included `-ACA' as well as
73475 +`-ltry', the linker would look (in its built-in search paths, and in
73476 +any paths you specify with `-L') for a library with the names
73477 +
73478 + try
73479 + libtry.a
73480 + tryca
73481 + libtryca.a
73482 +
73483 +The first two possibilities would be considered in any event; the last
73484 +two are due to the use of `-ACA'.
73485 +
73486 + You can meaningfully use `-A' more than once on a command line, since
73487 +the 960 architecture family allows combination of target architectures;
73488 +each use will add another pair of name variants to search for when `-l'
73489 +specifies a library.
73490 +
73491 + `ld' supports the `--relax' option for the i960 family. If you
73492 +specify `--relax', `ld' finds all `balx' and `calx' instructions whose
73493 +targets are within 24 bits, and turns them into 24-bit program-counter
73494 +relative `bal' and `cal' instructions, respectively. `ld' also turns
73495 +`cal' instructions into `bal' instructions when it determines that the
73496 +target subroutine is a leaf routine (that is, the target subroutine does
73497 +not itself call any subroutines).
73498 +
73499 +\1f
73500 +File: ld.info, Node: ARM, Next: HPPA ELF32, Prev: i960, Up: Machine Dependent
73501 +
73502 +4.3 `ld' and the ARM family
73503 +===========================
73504 +
73505 +For the ARM, `ld' will generate code stubs to allow functions calls
73506 +betweem ARM and Thumb code. These stubs only work with code that has
73507 +been compiled and assembled with the `-mthumb-interwork' command line
73508 +option. If it is necessary to link with old ARM object files or
73509 +libraries, which have not been compiled with the -mthumb-interwork
73510 +option then the `--support-old-code' command line switch should be
73511 +given to the linker. This will make it generate larger stub functions
73512 +which will work with non-interworking aware ARM code. Note, however,
73513 +the linker does not support generating stubs for function calls to
73514 +non-interworking aware Thumb code.
73515 +
73516 + The `--thumb-entry' switch is a duplicate of the generic `--entry'
73517 +switch, in that it sets the program's starting address. But it also
73518 +sets the bottom bit of the address, so that it can be branched to using
73519 +a BX instruction, and the program will start executing in Thumb mode
73520 +straight away.
73521 +
73522 + The `--be8' switch instructs `ld' to generate BE8 format
73523 +executables. This option is only valid when linking big-endian objects.
73524 +The resulting image will contain big-endian data and little-endian code.
73525 +
73526 + The `R_ARM_TARGET1' relocation is typically used for entries in the
73527 +`.init_array' section. It is interpreted as either `R_ARM_REL32' or
73528 +`R_ARM_ABS32', depending on the target. The `--target1-rel' and
73529 +`--target1-abs' switches override the default.
73530 +
73531 + The `--target2=type' switch overrides the default definition of the
73532 +`R_ARM_TARGET2' relocation. Valid values for `type', their meanings,
73533 +and target defaults are as follows:
73534 +`rel'
73535 + `R_ARM_REL32' (arm*-*-elf, arm*-*-eabi)
73536 +
73537 +`abs'
73538 + `R_ARM_ABS32' (arm*-*-symbianelf)
73539 +
73540 +`got-rel'
73541 + `R_ARM_GOT_PREL' (arm*-*-linux, arm*-*-*bsd)
73542 +
73543 + The `R_ARM_V4BX' relocation (defined by the ARM AAELF specification)
73544 +enables objects compiled for the ARMv4 architecture to be
73545 +interworking-safe when linked with other objects compiled for ARMv4t,
73546 +but also allows pure ARMv4 binaries to be built from the same ARMv4
73547 +objects.
73548 +
73549 + In the latter case, the switch `--fix-v4bx' must be passed to the
73550 +linker, which causes v4t `BX rM' instructions to be rewritten as `MOV
73551 +PC,rM', since v4 processors do not have a `BX' instruction.
73552 +
73553 + In the former case, the switch should not be used, and `R_ARM_V4BX'
73554 +relocations are ignored.
73555 +
73556 + The `--use-blx' switch enables the linker to use ARM/Thumb BLX
73557 +instructions (available on ARMv5t and above) in various situations.
73558 +Currently it is used to perform calls via the PLT from Thumb code using
73559 +BLX rather than using BX and a mode-switching stub before each PLT
73560 +entry. This should lead to such calls executing slightly faster.
73561 +
73562 + This option is enabled implicitly for SymbianOS, so there is no need
73563 +to specify it if you are using that target.
73564 +
73565 +\1f
73566 +File: ld.info, Node: HPPA ELF32, Next: MMIX, Prev: ARM, Up: Machine Dependent
73567 +
73568 +4.4 `ld' and HPPA 32-bit ELF Support
73569 +====================================
73570 +
73571 +When generating a shared library, `ld' will by default generate import
73572 +stubs suitable for use with a single sub-space application. The
73573 +`--multi-subspace' switch causes `ld' to generate export stubs, and
73574 +different (larger) import stubs suitable for use with multiple
73575 +sub-spaces.
73576 +
73577 + Long branch stubs and import/export stubs are placed by `ld' in stub
73578 +sections located between groups of input sections. `--stub-group-size'
73579 +specifies the maximum size of a group of input sections handled by one
73580 +stub section. Since branch offsets are signed, a stub section may
73581 +serve two groups of input sections, one group before the stub section,
73582 +and one group after it. However, when using conditional branches that
73583 +require stubs, it may be better (for branch prediction) that stub
73584 +sections only serve one group of input sections. A negative value for
73585 +`N' chooses this scheme, ensuring that branches to stubs always use a
73586 +negative offset. Two special values of `N' are recognized, `1' and
73587 +`-1'. These both instruct `ld' to automatically size input section
73588 +groups for the branch types detected, with the same behaviour regarding
73589 +stub placement as other positive or negative values of `N' respectively.
73590 +
73591 + Note that `--stub-group-size' does not split input sections. A
73592 +single input section larger than the group size specified will of course
73593 +create a larger group (of one section). If input sections are too
73594 +large, it may not be possible for a branch to reach its stub.
73595 +
73596 +\1f
73597 +File: ld.info, Node: MMIX, Next: MSP430, Prev: HPPA ELF32, Up: Machine Dependent
73598 +
73599 +4.5 `ld' and MMIX
73600 +=================
73601 +
73602 +For MMIX, there is a choice of generating `ELF' object files or `mmo'
73603 +object files when linking. The simulator `mmix' understands the `mmo'
73604 +format. The binutils `objcopy' utility can translate between the two
73605 +formats.
73606 +
73607 + There is one special section, the `.MMIX.reg_contents' section.
73608 +Contents in this section is assumed to correspond to that of global
73609 +registers, and symbols referring to it are translated to special
73610 +symbols, equal to registers. In a final link, the start address of the
73611 +`.MMIX.reg_contents' section corresponds to the first allocated global
73612 +register multiplied by 8. Register `$255' is not included in this
73613 +section; it is always set to the program entry, which is at the symbol
73614 +`Main' for `mmo' files.
73615 +
73616 + Symbols with the prefix `__.MMIX.start.', for example
73617 +`__.MMIX.start..text' and `__.MMIX.start..data' are special; there must
73618 +be only one each, even if they are local. The default linker script
73619 +uses these to set the default start address of a section.
73620 +
73621 + Initial and trailing multiples of zero-valued 32-bit words in a
73622 +section, are left out from an mmo file.
73623 +
73624 +\1f
73625 +File: ld.info, Node: MSP430, Next: PowerPC ELF32, Prev: MMIX, Up: Machine Dependent
73626 +
73627 +4.6 `ld' and MSP430
73628 +===================
73629 +
73630 +For the MSP430 it is possible to select the MPU architecture. The flag
73631 +`-m [mpu type]' will select an appropriate linker script for selected
73632 +MPU type. (To get a list of known MPUs just pass `-m help' option to
73633 +the linker).
73634 +
73635 + The linker will recognize some extra sections which are MSP430
73636 +specific:
73637 +
73638 +``.vectors''
73639 + Defines a portion of ROM where interrupt vectors located.
73640 +
73641 +``.bootloader''
73642 + Defines the bootloader portion of the ROM (if applicable). Any
73643 + code in this section will be uploaded to the MPU.
73644 +
73645 +``.infomem''
73646 + Defines an information memory section (if applicable). Any code in
73647 + this section will be uploaded to the MPU.
73648 +
73649 +``.infomemnobits''
73650 + This is the same as the `.infomem' section except that any code in
73651 + this section will not be uploaded to the MPU.
73652 +
73653 +``.noinit''
73654 + Denotes a portion of RAM located above `.bss' section.
73655 +
73656 + The last two sections are used by gcc.
73657 +
73658 +\1f
73659 +File: ld.info, Node: PowerPC ELF32, Next: PowerPC64 ELF64, Prev: MSP430, Up: Machine Dependent
73660 +
73661 +4.7 `ld' and PowerPC 32-bit ELF Support
73662 +=======================================
73663 +
73664 +Branches on PowerPC processors are limited to a signed 26-bit
73665 +displacement, which may result in `ld' giving `relocation truncated to
73666 +fit' errors with very large programs. `--relax' enables the generation
73667 +of trampolines that can access the entire 32-bit address space. These
73668 +trampolines are inserted at section boundaries, so may not themselves
73669 +be reachable if an input section exceeds 33M in size.
73670 +
73671 +`--bss-plt'
73672 + Current PowerPC GCC accepts a `-msecure-plt' option that generates
73673 + code capable of using a newer PLT and GOT layout that has the
73674 + security advantage of no executable section ever needing to be
73675 + writable and no writable section ever being executable. PowerPC
73676 + `ld' will generate this layout, including stubs to access the PLT,
73677 + if all input files (including startup and static libraries) were
73678 + compiled with `-msecure-plt'. `--bss-plt' forces the old BSS PLT
73679 + (and GOT layout) which can give slightly better performance.
73680 +
73681 +`--sdata-got'
73682 + The new secure PLT and GOT are placed differently relative to other
73683 + sections compared to older BSS PLT and GOT placement. The
73684 + location of `.plt' must change because the new secure PLT is an
73685 + initialized section while the old PLT is uninitialized. The
73686 + reason for the `.got' change is more subtle: The new placement
73687 + allows `.got' to be read-only in applications linked with `-z
73688 + relro -z now'. However, this placement means that `.sdata' cannot
73689 + always be used in shared libraries, because the PowerPC ABI
73690 + accesses `.sdata' in shared libraries from the GOT pointer.
73691 + `--sdata-got' forces the old GOT placement. PowerPC GCC doesn't
73692 + use `.sdata' in shared libraries, so this option is really only
73693 + useful for other compilers that may do so.
73694 +
73695 +`--emit-stub-syms'
73696 + This option causes `ld' to label linker stubs with a local symbol
73697 + that encodes the stub type and destination.
73698 +
73699 +`--no-tls-optimize'
73700 + PowerPC `ld' normally performs some optimization of code sequences
73701 + used to access Thread-Local Storage. Use this option to disable
73702 + the optimization.
73703 +
73704 +\1f
73705 +File: ld.info, Node: PowerPC64 ELF64, Next: TI COFF, Prev: PowerPC ELF32, Up: Machine Dependent
73706 +
73707 +4.8 `ld' and PowerPC64 64-bit ELF Support
73708 +=========================================
73709 +
73710 +`--stub-group-size'
73711 + Long branch stubs, PLT call stubs and TOC adjusting stubs are
73712 + placed by `ld' in stub sections located between groups of input
73713 + sections. `--stub-group-size' specifies the maximum size of a
73714 + group of input sections handled by one stub section. Since branch
73715 + offsets are signed, a stub section may serve two groups of input
73716 + sections, one group before the stub section, and one group after
73717 + it. However, when using conditional branches that require stubs,
73718 + it may be better (for branch prediction) that stub sections only
73719 + serve one group of input sections. A negative value for `N'
73720 + chooses this scheme, ensuring that branches to stubs always use a
73721 + negative offset. Two special values of `N' are recognized, `1'
73722 + and `-1'. These both instruct `ld' to automatically size input
73723 + section groups for the branch types detected, with the same
73724 + behaviour regarding stub placement as other positive or negative
73725 + values of `N' respectively.
73726 +
73727 + Note that `--stub-group-size' does not split input sections. A
73728 + single input section larger than the group size specified will of
73729 + course create a larger group (of one section). If input sections
73730 + are too large, it may not be possible for a branch to reach its
73731 + stub.
73732 +
73733 +`--emit-stub-syms'
73734 + This option causes `ld' to label linker stubs with a local symbol
73735 + that encodes the stub type and destination.
73736 +
73737 +`--dotsyms, --no-dotsyms'
73738 + These two options control how `ld' interprets version patterns in
73739 + a version script. Older PowerPC64 compilers emitted both a
73740 + function descriptor symbol with the same name as the function, and
73741 + a code entry symbol with the name prefixed by a dot (`.'). To
73742 + properly version a function `foo', the version script thus needs
73743 + to control both `foo' and `.foo'. The option `--dotsyms', on by
73744 + default, automatically adds the required dot-prefixed patterns.
73745 + Use `--no-dotsyms' to disable this feature.
73746 +
73747 +`--no-tls-optimize'
73748 + PowerPC64 `ld' normally performs some optimization of code
73749 + sequences used to access Thread-Local Storage. Use this option to
73750 + disable the optimization.
73751 +
73752 +`--no-opd-optimize'
73753 + PowerPC64 `ld' normally removes `.opd' section entries
73754 + corresponding to deleted link-once functions, or functions removed
73755 + by the action of `--gc-sections' or linker scrip `/DISCARD/'. Use
73756 + this option to disable `.opd' optimization.
73757 +
73758 +`--non-overlapping-opd'
73759 + Some PowerPC64 compilers have an option to generate compressed
73760 + `.opd' entries spaced 16 bytes apart, overlapping the third word,
73761 + the static chain pointer (unused in C) with the first word of the
73762 + next entry. This option expands such entries to the full 24 bytes.
73763 +
73764 +`--no-toc-optimize'
73765 + PowerPC64 `ld' normally removes unused `.toc' section entries.
73766 + Such entries are detected by examining relocations that reference
73767 + the TOC in code sections. A reloc in a deleted code section marks
73768 + a TOC word as unneeded, while a reloc in a kept code section marks
73769 + a TOC word as needed. Since the TOC may reference itself, TOC
73770 + relocs are also examined. TOC words marked as both needed and
73771 + unneeded will of course be kept. TOC words without any referencing
73772 + reloc are assumed to be part of a multi-word entry, and are kept or
73773 + discarded as per the nearest marked preceding word. This works
73774 + reliably for compiler generated code, but may be incorrect if
73775 + assembly code is used to insert TOC entries. Use this option to
73776 + disable the optimization.
73777 +
73778 +`--no-multi-toc'
73779 + By default, PowerPC64 GCC generates code for a TOC model where TOC
73780 + entries are accessed with a 16-bit offset from r2. This limits the
73781 + total TOC size to 64K. PowerPC64 `ld' extends this limit by
73782 + grouping code sections such that each group uses less than 64K for
73783 + its TOC entries, then inserts r2 adjusting stubs between
73784 + inter-group calls. `ld' does not split apart input sections, so
73785 + cannot help if a single input file has a `.toc' section that
73786 + exceeds 64K, most likely from linking multiple files with `ld -r'.
73787 + Use this option to turn off this feature.
73788 +
73789 +\1f
73790 +File: ld.info, Node: TI COFF, Next: WIN32, Prev: PowerPC64 ELF64, Up: Machine Dependent
73791 +
73792 +4.9 `ld''s Support for Various TI COFF Versions
73793 +===============================================
73794 +
73795 +The `--format' switch allows selection of one of the various TI COFF
73796 +versions. The latest of this writing is 2; versions 0 and 1 are also
73797 +supported. The TI COFF versions also vary in header byte-order format;
73798 +`ld' will read any version or byte order, but the output header format
73799 +depends on the default specified by the specific target.
73800 +
73801 +\1f
73802 +File: ld.info, Node: WIN32, Next: Xtensa, Prev: TI COFF, Up: Machine Dependent
73803 +
73804 +4.10 `ld' and WIN32 (cygwin/mingw)
73805 +==================================
73806 +
73807 +This section describes some of the win32 specific `ld' issues. See
73808 +*Note Command Line Options: Options. for detailed decription of the
73809 +command line options mentioned here.
73810 +
73811 +_import libraries_
73812 + The standard Windows linker creates and uses so-called import
73813 + libraries, which contains information for linking to dll's. They
73814 + are regular static archives and are handled as any other static
73815 + archive. The cygwin and mingw ports of `ld' have specific support
73816 + for creating such libraries provided with the `--out-implib'
73817 + command line option.
73818 +
73819 +_exporting DLL symbols_
73820 + The cygwin/mingw `ld' has several ways to export symbols for dll's.
73821 +
73822 + _using auto-export functionality_
73823 + By default `ld' exports symbols with the auto-export
73824 + functionality, which is controlled by the following command
73825 + line options:
73826 +
73827 + * -export-all-symbols [This is the default]
73828 +
73829 + * -exclude-symbols
73830 +
73831 + * -exclude-libs
73832 +
73833 + If, however, `--export-all-symbols' is not given explicitly
73834 + on the command line, then the default auto-export behavior
73835 + will be _disabled_ if either of the following are true:
73836 +
73837 + * A DEF file is used.
73838 +
73839 + * Any symbol in any object file was marked with the
73840 + __declspec(dllexport) attribute.
73841 +
73842 + _using a DEF file_
73843 + Another way of exporting symbols is using a DEF file. A DEF
73844 + file is an ASCII file containing definitions of symbols which
73845 + should be exported when a dll is created. Usually it is
73846 + named `<dll name>.def' and is added as any other object file
73847 + to the linker's command line. The file's name must end in
73848 + `.def' or `.DEF'.
73849 +
73850 + gcc -o <output> <objectfiles> <dll name>.def
73851 +
73852 + Using a DEF file turns off the normal auto-export behavior,
73853 + unless the `--export-all-symbols' option is also used.
73854 +
73855 + Here is an example of a DEF file for a shared library called
73856 + `xyz.dll':
73857 +
73858 + LIBRARY "xyz.dll" BASE=0x20000000
73859 +
73860 + EXPORTS
73861 + foo
73862 + bar
73863 + _bar = bar
73864 + another_foo = abc.dll.afoo
73865 + var1 DATA
73866 +
73867 + This example defines a DLL with a non-default base address
73868 + and five symbols in the export table. The third exported
73869 + symbol `_bar' is an alias for the second. The fourth symbol,
73870 + `another_foo' is resolved by "forwarding" to another module
73871 + and treating it as an alias for `afoo' exported from the DLL
73872 + `abc.dll'. The final symbol `var1' is declared to be a data
73873 + object.
73874 +
73875 + The optional `LIBRARY <name>' command indicates the _internal_
73876 + name of the output DLL. If `<name>' does not include a suffix,
73877 + the default library suffix, `.DLL' is appended.
73878 +
73879 + When the .DEF file is used to build an application. rather
73880 + than a library, the `NAME <name>' command shoud be used
73881 + instead of `LIBRARY'. If `<name>' does not include a suffix,
73882 + the default executable suffix, `.EXE' is appended.
73883 +
73884 + With either `LIBRARY <name>' or `NAME <name>' the optional
73885 + specification `BASE = <number>' may be used to specify a
73886 + non-default base address for the image.
73887 +
73888 + If neither `LIBRARY <name>' nor `NAME <name>' is specified,
73889 + or they specify an empty string, the internal name is the
73890 + same as the filename specified on the command line.
73891 +
73892 + The complete specification of an export symbol is:
73893 +
73894 + EXPORTS
73895 + ( ( ( <name1> [ = <name2> ] )
73896 + | ( <name1> = <module-name> . <external-name>))
73897 + [ @ <integer> ] [NONAME] [DATA] [CONSTANT] [PRIVATE] ) *
73898 +
73899 + Declares `<name1>' as an exported symbol from the DLL, or
73900 + declares `<name1>' as an exported alias for `<name2>'; or
73901 + declares `<name1>' as a "forward" alias for the symbol
73902 + `<external-name>' in the DLL `<module-name>'. Optionally,
73903 + the symbol may be exported by the specified ordinal
73904 + `<integer>' alias.
73905 +
73906 + The optional keywords that follow the declaration indicate:
73907 +
73908 + `NONAME': Do not put the symbol name in the DLL's export
73909 + table. It will still be exported by its ordinal alias
73910 + (either the value specified by the .def specification or,
73911 + otherwise, the value assigned by the linker). The symbol
73912 + name, however, does remain visible in the import library (if
73913 + any), unless `PRIVATE' is also specified.
73914 +
73915 + `DATA': The symbol is a variable or object, rather than a
73916 + function. The import lib will export only an indirect
73917 + reference to `foo' as the symbol `_imp__foo' (ie, `foo' must
73918 + be resolved as `*_imp__foo').
73919 +
73920 + `CONSTANT': Like `DATA', but put the undecorated `foo' as
73921 + well as `_imp__foo' into the import library. Both refer to the
73922 + read-only import address table's pointer to the variable, not
73923 + to the variable itself. This can be dangerous. If the user
73924 + code fails to add the `dllimport' attribute and also fails to
73925 + explicitly add the extra indirection that the use of the
73926 + attribute enforces, the application will behave unexpectedly.
73927 +
73928 + `PRIVATE': Put the symbol in the DLL's export table, but do
73929 + not put it into the static import library used to resolve
73930 + imports at link time. The symbol can still be imported using
73931 + the `LoadLibrary/GetProcAddress' API at runtime or by by
73932 + using the GNU ld extension of linking directly to the DLL
73933 + without an import library.
73934 +
73935 + See ld/deffilep.y in the binutils sources for the full
73936 + specification of other DEF file statements
73937 +
73938 + While linking a shared dll, `ld' is able to create a DEF file
73939 + with the `--output-def <file>' command line option.
73940 +
73941 + _Using decorations_
73942 + Another way of marking symbols for export is to modify the
73943 + source code itself, so that when building the DLL each symbol
73944 + to be exported is declared as:
73945 +
73946 + __declspec(dllexport) int a_variable
73947 + __declspec(dllexport) void a_function(int with_args)
73948 +
73949 + All such symbols will be exported from the DLL. If, however,
73950 + any of the object files in the DLL contain symbols decorated
73951 + in this way, then the normal auto-export behavior is
73952 + disabled, unless the `--export-all-symbols' option is also
73953 + used.
73954 +
73955 + Note that object files that wish to access these symbols must
73956 + _not_ decorate them with dllexport. Instead, they should use
73957 + dllimport, instead:
73958 +
73959 + __declspec(dllimport) int a_variable
73960 + __declspec(dllimport) void a_function(int with_args)
73961 +
73962 + This complicates the structure of library header files,
73963 + because when included by the library itself the header must
73964 + declare the variables and functions as dllexport, but when
73965 + included by client code the header must declare them as
73966 + dllimport. There are a number of idioms that are typically
73967 + used to do this; often client code can omit the __declspec()
73968 + declaration completely. See `--enable-auto-import' and
73969 + `automatic data imports' for more imformation.
73970 +
73971 +_automatic data imports_
73972 + The standard Windows dll format supports data imports from dlls
73973 + only by adding special decorations (dllimport/dllexport), which
73974 + let the compiler produce specific assembler instructions to deal
73975 + with this issue. This increases the effort necessary to port
73976 + existing Un*x code to these platforms, especially for large c++
73977 + libraries and applications. The auto-import feature, which was
73978 + initially provided by Paul Sokolovsky, allows one to omit the
73979 + decorations to archieve a behavior that conforms to that on
73980 + POSIX/Un*x platforms. This feature is enabled with the
73981 + `--enable-auto-import' command-line option, although it is enabled
73982 + by default on cygwin/mingw. The `--enable-auto-import' option
73983 + itself now serves mainly to suppress any warnings that are
73984 + ordinarily emitted when linked objects trigger the feature's use.
73985 +
73986 + auto-import of variables does not always work flawlessly without
73987 + additional assistance. Sometimes, you will see this message
73988 +
73989 + "variable '<var>' can't be auto-imported. Please read the
73990 + documentation for ld's `--enable-auto-import' for details."
73991 +
73992 + The `--enable-auto-import' documentation explains why this error
73993 + occurs, and several methods that can be used to overcome this
73994 + difficulty. One of these methods is the _runtime pseudo-relocs_
73995 + feature, described below.
73996 +
73997 + For complex variables imported from DLLs (such as structs or
73998 + classes), object files typically contain a base address for the
73999 + variable and an offset (_addend_) within the variable-to specify a
74000 + particular field or public member, for instance. Unfortunately,
74001 + the runtime loader used in win32 environments is incapable of
74002 + fixing these references at runtime without the additional
74003 + information supplied by dllimport/dllexport decorations. The
74004 + standard auto-import feature described above is unable to resolve
74005 + these references.
74006 +
74007 + The `--enable-runtime-pseudo-relocs' switch allows these
74008 + references to be resolved without error, while leaving the task of
74009 + adjusting the references themselves (with their non-zero addends)
74010 + to specialized code provided by the runtime environment. Recent
74011 + versions of the cygwin and mingw environments and compilers
74012 + provide this runtime support; older versions do not. However, the
74013 + support is only necessary on the developer's platform; the
74014 + compiled result will run without error on an older system.
74015 +
74016 + `--enable-runtime-pseudo-relocs' is not the default; it must be
74017 + explicitly enabled as needed.
74018 +
74019 +_direct linking to a dll_
74020 + The cygwin/mingw ports of `ld' support the direct linking,
74021 + including data symbols, to a dll without the usage of any import
74022 + libraries. This is much faster and uses much less memory than
74023 + does the traditional import library method, expecially when
74024 + linking large libraries or applications. When `ld' creates an
74025 + import lib, each function or variable exported from the dll is
74026 + stored in its own bfd, even though a single bfd could contain many
74027 + exports. The overhead involved in storing, loading, and
74028 + processing so many bfd's is quite large, and explains the
74029 + tremendous time, memory, and storage needed to link against
74030 + particularly large or complex libraries when using import libs.
74031 +
74032 + Linking directly to a dll uses no extra command-line switches
74033 + other than `-L' and `-l', because `ld' already searches for a
74034 + number of names to match each library. All that is needed from
74035 + the developer's perspective is an understanding of this search, in
74036 + order to force ld to select the dll instead of an import library.
74037 +
74038 + For instance, when ld is called with the argument `-lxxx' it will
74039 + attempt to find, in the first directory of its search path,
74040 +
74041 + libxxx.dll.a
74042 + xxx.dll.a
74043 + libxxx.a
74044 + cygxxx.dll (*)
74045 + libxxx.dll
74046 + xxx.dll
74047 +
74048 + before moving on to the next directory in the search path.
74049 +
74050 + (*) Actually, this is not `cygxxx.dll' but in fact is
74051 + `<prefix>xxx.dll', where `<prefix>' is set by the `ld' option
74052 + `--dll-search-prefix=<prefix>'. In the case of cygwin, the
74053 + standard gcc spec file includes `--dll-search-prefix=cyg', so in
74054 + effect we actually search for `cygxxx.dll'.
74055 +
74056 + Other win32-based unix environments, such as mingw or pw32, may
74057 + use other `<prefix>'es, although at present only cygwin makes use
74058 + of this feature. It was originally intended to help avoid name
74059 + conflicts among dll's built for the various win32/un*x
74060 + environments, so that (for example) two versions of a zlib dll
74061 + could coexist on the same machine.
74062 +
74063 + The generic cygwin/mingw path layout uses a `bin' directory for
74064 + applications and dll's and a `lib' directory for the import
74065 + libraries (using cygwin nomenclature):
74066 +
74067 + bin/
74068 + cygxxx.dll
74069 + lib/
74070 + libxxx.dll.a (in case of dll's)
74071 + libxxx.a (in case of static archive)
74072 +
74073 + Linking directly to a dll without using the import library can be
74074 + done two ways:
74075 +
74076 + 1. Use the dll directly by adding the `bin' path to the link line
74077 + gcc -Wl,-verbose -o a.exe -L../bin/ -lxxx
74078 +
74079 + However, as the dll's often have version numbers appended to their
74080 + names (`cygncurses-5.dll') this will often fail, unless one
74081 + specifies `-L../bin -lncurses-5' to include the version. Import
74082 + libs are generally not versioned, and do not have this difficulty.
74083 +
74084 + 2. Create a symbolic link from the dll to a file in the `lib'
74085 + directory according to the above mentioned search pattern. This
74086 + should be used to avoid unwanted changes in the tools needed for
74087 + making the app/dll.
74088 +
74089 + ln -s bin/cygxxx.dll lib/[cyg|lib|]xxx.dll[.a]
74090 +
74091 + Then you can link without any make environment changes.
74092 +
74093 + gcc -Wl,-verbose -o a.exe -L../lib/ -lxxx
74094 +
74095 + This technique also avoids the version number problems, because
74096 + the following is perfectly legal
74097 +
74098 + bin/
74099 + cygxxx-5.dll
74100 + lib/
74101 + libxxx.dll.a -> ../bin/cygxxx-5.dll
74102 +
74103 + Linking directly to a dll without using an import lib will work
74104 + even when auto-import features are exercised, and even when
74105 + `--enable-runtime-pseudo-relocs' is used.
74106 +
74107 + Given the improvements in speed and memory usage, one might
74108 + justifiably wonder why import libraries are used at all. There
74109 + are two reasons:
74110 +
74111 + 1. Until recently, the link-directly-to-dll functionality did _not_
74112 + work with auto-imported data.
74113 +
74114 + 2. Sometimes it is necessary to include pure static objects within
74115 + the import library (which otherwise contains only bfd's for
74116 + indirection symbols that point to the exports of a dll). Again,
74117 + the import lib for the cygwin kernel makes use of this ability,
74118 + and it is not possible to do this without an import lib.
74119 +
74120 + So, import libs are not going away. But the ability to replace
74121 + true import libs with a simple symbolic link to (or a copy of) a
74122 + dll, in most cases, is a useful addition to the suite of tools
74123 + binutils makes available to the win32 developer. Given the
74124 + massive improvements in memory requirements during linking, storage
74125 + requirements, and linking speed, we expect that many developers
74126 + will soon begin to use this feature whenever possible.
74127 +
74128 +_symbol aliasing_
74129 +
74130 + _adding additional names_
74131 + Sometimes, it is useful to export symbols with additional
74132 + names. A symbol `foo' will be exported as `foo', but it can
74133 + also be exported as `_foo' by using special directives in the
74134 + DEF file when creating the dll. This will affect also the
74135 + optional created import library. Consider the following DEF
74136 + file:
74137 +
74138 + LIBRARY "xyz.dll" BASE=0x61000000
74139 +
74140 + EXPORTS
74141 + foo
74142 + _foo = foo
74143 +
74144 + The line `_foo = foo' maps the symbol `foo' to `_foo'.
74145 +
74146 + Another method for creating a symbol alias is to create it in
74147 + the source code using the "weak" attribute:
74148 +
74149 + void foo () { /* Do something. */; }
74150 + void _foo () __attribute__ ((weak, alias ("foo")));
74151 +
74152 + See the gcc manual for more information about attributes and
74153 + weak symbols.
74154 +
74155 + _renaming symbols_
74156 + Sometimes it is useful to rename exports. For instance, the
74157 + cygwin kernel does this regularly. A symbol `_foo' can be
74158 + exported as `foo' but not as `_foo' by using special
74159 + directives in the DEF file. (This will also affect the import
74160 + library, if it is created). In the following example:
74161 +
74162 + LIBRARY "xyz.dll" BASE=0x61000000
74163 +
74164 + EXPORTS
74165 + _foo = foo
74166 +
74167 + The line `_foo = foo' maps the exported symbol `foo' to
74168 + `_foo'.
74169 +
74170 + Note: using a DEF file disables the default auto-export behavior,
74171 + unless the `--export-all-symbols' command line option is used.
74172 + If, however, you are trying to rename symbols, then you should list
74173 + _all_ desired exports in the DEF file, including the symbols that
74174 + are not being renamed, and do _not_ use the `--export-all-symbols'
74175 + option. If you list only the renamed symbols in the DEF file, and
74176 + use `--export-all-symbols' to handle the other symbols, then the
74177 + both the new names _and_ the original names for the renamed
74178 + symbols will be exported. In effect, you'd be aliasing those
74179 + symbols, not renaming them, which is probably not what you wanted.
74180 +
74181 +_weak externals_
74182 + The Windows object format, PE, specifies a form of weak symbols
74183 + called weak externals. When a weak symbol is linked and the
74184 + symbol is not defined, the weak symbol becomes an alias for some
74185 + other symbol. There are three variants of weak externals:
74186 + * Definition is searched for in objects and libraries,
74187 + historically called lazy externals.
74188 +
74189 + * Definition is searched for only in other objects, not in
74190 + libraries. This form is not presently implemented.
74191 +
74192 + * No search; the symbol is an alias. This form is not presently
74193 + implemented.
74194 + As a GNU extension, weak symbols that do not specify an alternate
74195 + symbol are supported. If the symbol is undefined when linking,
74196 + the symbol uses a default value.
74197 +
74198 +\1f
74199 +File: ld.info, Node: Xtensa, Prev: WIN32, Up: Machine Dependent
74200 +
74201 +4.11 `ld' and Xtensa Processors
74202 +===============================
74203 +
74204 +The default `ld' behavior for Xtensa processors is to interpret
74205 +`SECTIONS' commands so that lists of explicitly named sections in a
74206 +specification with a wildcard file will be interleaved when necessary to
74207 +keep literal pools within the range of PC-relative load offsets. For
74208 +example, with the command:
74209 +
74210 + SECTIONS
74211 + {
74212 + .text : {
74213 + *(.literal .text)
74214 + }
74215 + }
74216 +
74217 +`ld' may interleave some of the `.literal' and `.text' sections from
74218 +different object files to ensure that the literal pools are within the
74219 +range of PC-relative load offsets. A valid interleaving might place
74220 +the `.literal' sections from an initial group of files followed by the
74221 +`.text' sections of that group of files. Then, the `.literal' sections
74222 +from the rest of the files and the `.text' sections from the rest of
74223 +the files would follow.
74224 +
74225 + Relaxation is enabled by default for the Xtensa version of `ld' and
74226 +provides two important link-time optimizations. The first optimization
74227 +is to combine identical literal values to reduce code size. A redundant
74228 +literal will be removed and all the `L32R' instructions that use it
74229 +will be changed to reference an identical literal, as long as the
74230 +location of the replacement literal is within the offset range of all
74231 +the `L32R' instructions. The second optimization is to remove
74232 +unnecessary overhead from assembler-generated "longcall" sequences of
74233 +`L32R'/`CALLXN' when the target functions are within range of direct
74234 +`CALLN' instructions.
74235 +
74236 + For each of these cases where an indirect call sequence can be
74237 +optimized to a direct call, the linker will change the `CALLXN'
74238 +instruction to a `CALLN' instruction, remove the `L32R' instruction,
74239 +and remove the literal referenced by the `L32R' instruction if it is
74240 +not used for anything else. Removing the `L32R' instruction always
74241 +reduces code size but can potentially hurt performance by changing the
74242 +alignment of subsequent branch targets. By default, the linker will
74243 +always preserve alignments, either by switching some instructions
74244 +between 24-bit encodings and the equivalent density instructions or by
74245 +inserting a no-op in place of the `L32R' instruction that was removed.
74246 +If code size is more important than performance, the `--size-opt'
74247 +option can be used to prevent the linker from widening density
74248 +instructions or inserting no-ops, except in a few cases where no-ops
74249 +are required for correctness.
74250 +
74251 + The following Xtensa-specific command-line options can be used to
74252 +control the linker:
74253 +
74254 +`--no-relax'
74255 + Since the Xtensa version of `ld' enables the `--relax' option by
74256 + default, the `--no-relax' option is provided to disable relaxation.
74257 +
74258 +`--size-opt'
74259 + When optimizing indirect calls to direct calls, optimize for code
74260 + size more than performance. With this option, the linker will not
74261 + insert no-ops or widen density instructions to preserve branch
74262 + target alignment. There may still be some cases where no-ops are
74263 + required to preserve the correctness of the code.
74264 +
74265 +\1f
74266 +File: ld.info, Node: BFD, Next: Reporting Bugs, Prev: Machine Dependent, Up: Top
74267 +
74268 +5 BFD
74269 +*****
74270 +
74271 +The linker accesses object and archive files using the BFD libraries.
74272 +These libraries allow the linker to use the same routines to operate on
74273 +object files whatever the object file format. A different object file
74274 +format can be supported simply by creating a new BFD back end and adding
74275 +it to the library. To conserve runtime memory, however, the linker and
74276 +associated tools are usually configured to support only a subset of the
74277 +object file formats available. You can use `objdump -i' (*note
74278 +objdump: (binutils.info)objdump.) to list all the formats available for
74279 +your configuration.
74280 +
74281 + As with most implementations, BFD is a compromise between several
74282 +conflicting requirements. The major factor influencing BFD design was
74283 +efficiency: any time used converting between formats is time which
74284 +would not have been spent had BFD not been involved. This is partly
74285 +offset by abstraction payback; since BFD simplifies applications and
74286 +back ends, more time and care may be spent optimizing algorithms for a
74287 +greater speed.
74288 +
74289 + One minor artifact of the BFD solution which you should bear in mind
74290 +is the potential for information loss. There are two places where
74291 +useful information can be lost using the BFD mechanism: during
74292 +conversion and during output. *Note BFD information loss::.
74293 +
74294 +* Menu:
74295 +
74296 +* BFD outline:: How it works: an outline of BFD
74297 +
74298 +\1f
74299 +File: ld.info, Node: BFD outline, Up: BFD
74300 +
74301 +5.1 How It Works: An Outline of BFD
74302 +===================================
74303 +
74304 +When an object file is opened, BFD subroutines automatically determine
74305 +the format of the input object file. They then build a descriptor in
74306 +memory with pointers to routines that will be used to access elements of
74307 +the object file's data structures.
74308 +
74309 + As different information from the object files is required, BFD
74310 +reads from different sections of the file and processes them. For
74311 +example, a very common operation for the linker is processing symbol
74312 +tables. Each BFD back end provides a routine for converting between
74313 +the object file's representation of symbols and an internal canonical
74314 +format. When the linker asks for the symbol table of an object file, it
74315 +calls through a memory pointer to the routine from the relevant BFD
74316 +back end which reads and converts the table into a canonical form. The
74317 +linker then operates upon the canonical form. When the link is finished
74318 +and the linker writes the output file's symbol table, another BFD back
74319 +end routine is called to take the newly created symbol table and
74320 +convert it into the chosen output format.
74321 +
74322 +* Menu:
74323 +
74324 +* BFD information loss:: Information Loss
74325 +* Canonical format:: The BFD canonical object-file format
74326 +
74327 +\1f
74328 +File: ld.info, Node: BFD information loss, Next: Canonical format, Up: BFD outline
74329 +
74330 +5.1.1 Information Loss
74331 +----------------------
74332 +
74333 +_Information can be lost during output._ The output formats supported
74334 +by BFD do not provide identical facilities, and information which can
74335 +be described in one form has nowhere to go in another format. One
74336 +example of this is alignment information in `b.out'. There is nowhere
74337 +in an `a.out' format file to store alignment information on the
74338 +contained data, so when a file is linked from `b.out' and an `a.out'
74339 +image is produced, alignment information will not propagate to the
74340 +output file. (The linker will still use the alignment information
74341 +internally, so the link is performed correctly).
74342 +
74343 + Another example is COFF section names. COFF files may contain an
74344 +unlimited number of sections, each one with a textual section name. If
74345 +the target of the link is a format which does not have many sections
74346 +(e.g., `a.out') or has sections without names (e.g., the Oasys format),
74347 +the link cannot be done simply. You can circumvent this problem by
74348 +describing the desired input-to-output section mapping with the linker
74349 +command language.
74350 +
74351 + _Information can be lost during canonicalization._ The BFD internal
74352 +canonical form of the external formats is not exhaustive; there are
74353 +structures in input formats for which there is no direct representation
74354 +internally. This means that the BFD back ends cannot maintain all
74355 +possible data richness through the transformation between external to
74356 +internal and back to external formats.
74357 +
74358 + This limitation is only a problem when an application reads one
74359 +format and writes another. Each BFD back end is responsible for
74360 +maintaining as much data as possible, and the internal BFD canonical
74361 +form has structures which are opaque to the BFD core, and exported only
74362 +to the back ends. When a file is read in one format, the canonical form
74363 +is generated for BFD and the application. At the same time, the back
74364 +end saves away any information which may otherwise be lost. If the data
74365 +is then written back in the same format, the back end routine will be
74366 +able to use the canonical form provided by the BFD core as well as the
74367 +information it prepared earlier. Since there is a great deal of
74368 +commonality between back ends, there is no information lost when
74369 +linking or copying big endian COFF to little endian COFF, or `a.out' to
74370 +`b.out'. When a mixture of formats is linked, the information is only
74371 +lost from the files whose format differs from the destination.
74372 +
74373 +\1f
74374 +File: ld.info, Node: Canonical format, Prev: BFD information loss, Up: BFD outline
74375 +
74376 +5.1.2 The BFD canonical object-file format
74377 +------------------------------------------
74378 +
74379 +The greatest potential for loss of information occurs when there is the
74380 +least overlap between the information provided by the source format,
74381 +that stored by the canonical format, and that needed by the destination
74382 +format. A brief description of the canonical form may help you
74383 +understand which kinds of data you can count on preserving across
74384 +conversions.
74385 +
74386 +_files_
74387 + Information stored on a per-file basis includes target machine
74388 + architecture, particular implementation format type, a demand
74389 + pageable bit, and a write protected bit. Information like Unix
74390 + magic numbers is not stored here--only the magic numbers' meaning,
74391 + so a `ZMAGIC' file would have both the demand pageable bit and the
74392 + write protected text bit set. The byte order of the target is
74393 + stored on a per-file basis, so that big- and little-endian object
74394 + files may be used with one another.
74395 +
74396 +_sections_
74397 + Each section in the input file contains the name of the section,
74398 + the section's original address in the object file, size and
74399 + alignment information, various flags, and pointers into other BFD
74400 + data structures.
74401 +
74402 +_symbols_
74403 + Each symbol contains a pointer to the information for the object
74404 + file which originally defined it, its name, its value, and various
74405 + flag bits. When a BFD back end reads in a symbol table, it
74406 + relocates all symbols to make them relative to the base of the
74407 + section where they were defined. Doing this ensures that each
74408 + symbol points to its containing section. Each symbol also has a
74409 + varying amount of hidden private data for the BFD back end. Since
74410 + the symbol points to the original file, the private data format
74411 + for that symbol is accessible. `ld' can operate on a collection
74412 + of symbols of wildly different formats without problems.
74413 +
74414 + Normal global and simple local symbols are maintained on output,
74415 + so an output file (no matter its format) will retain symbols
74416 + pointing to functions and to global, static, and common variables.
74417 + Some symbol information is not worth retaining; in `a.out', type
74418 + information is stored in the symbol table as long symbol names.
74419 + This information would be useless to most COFF debuggers; the
74420 + linker has command line switches to allow users to throw it away.
74421 +
74422 + There is one word of type information within the symbol, so if the
74423 + format supports symbol type information within symbols (for
74424 + example, COFF, IEEE, Oasys) and the type is simple enough to fit
74425 + within one word (nearly everything but aggregates), the
74426 + information will be preserved.
74427 +
74428 +_relocation level_
74429 + Each canonical BFD relocation record contains a pointer to the
74430 + symbol to relocate to, the offset of the data to relocate, the
74431 + section the data is in, and a pointer to a relocation type
74432 + descriptor. Relocation is performed by passing messages through
74433 + the relocation type descriptor and the symbol pointer. Therefore,
74434 + relocations can be performed on output data using a relocation
74435 + method that is only available in one of the input formats. For
74436 + instance, Oasys provides a byte relocation format. A relocation
74437 + record requesting this relocation type would point indirectly to a
74438 + routine to perform this, so the relocation may be performed on a
74439 + byte being written to a 68k COFF file, even though 68k COFF has no
74440 + such relocation type.
74441 +
74442 +_line numbers_
74443 + Object formats can contain, for debugging purposes, some form of
74444 + mapping between symbols, source line numbers, and addresses in the
74445 + output file. These addresses have to be relocated along with the
74446 + symbol information. Each symbol with an associated list of line
74447 + number records points to the first record of the list. The head
74448 + of a line number list consists of a pointer to the symbol, which
74449 + allows finding out the address of the function whose line number
74450 + is being described. The rest of the list is made up of pairs:
74451 + offsets into the section and line numbers. Any format which can
74452 + simply derive this information can pass it successfully between
74453 + formats (COFF, IEEE and Oasys).
74454 +
74455 +\1f
74456 +File: ld.info, Node: Reporting Bugs, Next: MRI, Prev: BFD, Up: Top
74457 +
74458 +6 Reporting Bugs
74459 +****************
74460 +
74461 +Your bug reports play an essential role in making `ld' reliable.
74462 +
74463 + Reporting a bug may help you by bringing a solution to your problem,
74464 +or it may not. But in any case the principal function of a bug report
74465 +is to help the entire community by making the next version of `ld' work
74466 +better. Bug reports are your contribution to the maintenance of `ld'.
74467 +
74468 + In order for a bug report to serve its purpose, you must include the
74469 +information that enables us to fix the bug.
74470 +
74471 +* Menu:
74472 +
74473 +* Bug Criteria:: Have you found a bug?
74474 +* Bug Reporting:: How to report bugs
74475 +
74476 +\1f
74477 +File: ld.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
74478 +
74479 +6.1 Have You Found a Bug?
74480 +=========================
74481 +
74482 +If you are not sure whether you have found a bug, here are some
74483 +guidelines:
74484 +
74485 + * If the linker gets a fatal signal, for any input whatever, that is
74486 + a `ld' bug. Reliable linkers never crash.
74487 +
74488 + * If `ld' produces an error message for valid input, that is a bug.
74489 +
74490 + * If `ld' does not produce an error message for invalid input, that
74491 + may be a bug. In the general case, the linker can not verify that
74492 + object files are correct.
74493 +
74494 + * If you are an experienced user of linkers, your suggestions for
74495 + improvement of `ld' are welcome in any case.
74496 +
74497 +\1f
74498 +File: ld.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
74499 +
74500 +6.2 How to Report Bugs
74501 +======================
74502 +
74503 +A number of companies and individuals offer support for GNU products.
74504 +If you obtained `ld' from a support organization, we recommend you
74505 +contact that organization first.
74506 +
74507 + You can find contact information for many support companies and
74508 +individuals in the file `etc/SERVICE' in the GNU Emacs distribution.
74509 +
74510 + Otherwise, send bug reports for `ld' to `bug-binutils@gnu.org'.
74511 +
74512 + The fundamental principle of reporting bugs usefully is this:
74513 +*report all the facts*. If you are not sure whether to state a fact or
74514 +leave it out, state it!
74515 +
74516 + Often people omit facts because they think they know what causes the
74517 +problem and assume that some details do not matter. Thus, you might
74518 +assume that the name of a symbol you use in an example does not matter.
74519 +Well, probably it does not, but one cannot be sure. Perhaps the bug
74520 +is a stray memory reference which happens to fetch from the location
74521 +where that name is stored in memory; perhaps, if the name were
74522 +different, the contents of that location would fool the linker into
74523 +doing the right thing despite the bug. Play it safe and give a
74524 +specific, complete example. That is the easiest thing for you to do,
74525 +and the most helpful.
74526 +
74527 + Keep in mind that the purpose of a bug report is to enable us to fix
74528 +the bug if it is new to us. Therefore, always write your bug reports
74529 +on the assumption that the bug has not been reported previously.
74530 +
74531 + Sometimes people give a few sketchy facts and ask, "Does this ring a
74532 +bell?" This cannot help us fix a bug, so it is basically useless. We
74533 +respond by asking for enough details to enable us to investigate. You
74534 +might as well expedite matters by sending them to begin with.
74535 +
74536 + To enable us to fix the bug, you should include all these things:
74537 +
74538 + * The version of `ld'. `ld' announces it if you start it with the
74539 + `--version' argument.
74540 +
74541 + Without this, we will not know whether there is any point in
74542 + looking for the bug in the current version of `ld'.
74543 +
74544 + * Any patches you may have applied to the `ld' source, including any
74545 + patches made to the `BFD' library.
74546 +
74547 + * The type of machine you are using, and the operating system name
74548 + and version number.
74549 +
74550 + * What compiler (and its version) was used to compile `ld'--e.g.
74551 + "`gcc-2.7'".
74552 +
74553 + * The command arguments you gave the linker to link your example and
74554 + observe the bug. To guarantee you will not omit something
74555 + important, list them all. A copy of the Makefile (or the output
74556 + from make) is sufficient.
74557 +
74558 + If we were to try to guess the arguments, we would probably guess
74559 + wrong and then we might not encounter the bug.
74560 +
74561 + * A complete input file, or set of input files, that will reproduce
74562 + the bug. It is generally most helpful to send the actual object
74563 + files provided that they are reasonably small. Say no more than
74564 + 10K. For bigger files you can either make them available by FTP
74565 + or HTTP or else state that you are willing to send the object
74566 + file(s) to whomever requests them. (Note - your email will be
74567 + going to a mailing list, so we do not want to clog it up with
74568 + large attachments). But small attachments are best.
74569 +
74570 + If the source files were assembled using `gas' or compiled using
74571 + `gcc', then it may be OK to send the source files rather than the
74572 + object files. In this case, be sure to say exactly what version of
74573 + `gas' or `gcc' was used to produce the object files. Also say how
74574 + `gas' or `gcc' were configured.
74575 +
74576 + * A description of what behavior you observe that you believe is
74577 + incorrect. For example, "It gets a fatal signal."
74578 +
74579 + Of course, if the bug is that `ld' gets a fatal signal, then we
74580 + will certainly notice it. But if the bug is incorrect output, we
74581 + might not notice unless it is glaringly wrong. You might as well
74582 + not give us a chance to make a mistake.
74583 +
74584 + Even if the problem you experience is a fatal signal, you should
74585 + still say so explicitly. Suppose something strange is going on,
74586 + such as, your copy of `ld' is out of synch, or you have
74587 + encountered a bug in the C library on your system. (This has
74588 + happened!) Your copy might crash and ours would not. If you told
74589 + us to expect a crash, then when ours fails to crash, we would know
74590 + that the bug was not happening for us. If you had not told us to
74591 + expect a crash, then we would not be able to draw any conclusion
74592 + from our observations.
74593 +
74594 + * If you wish to suggest changes to the `ld' source, send us context
74595 + diffs, as generated by `diff' with the `-u', `-c', or `-p' option.
74596 + Always send diffs from the old file to the new file. If you even
74597 + discuss something in the `ld' source, refer to it by context, not
74598 + by line number.
74599 +
74600 + The line numbers in our development sources will not match those
74601 + in your sources. Your line numbers would convey no useful
74602 + information to us.
74603 +
74604 + Here are some things that are not necessary:
74605 +
74606 + * A description of the envelope of the bug.
74607 +
74608 + Often people who encounter a bug spend a lot of time investigating
74609 + which changes to the input file will make the bug go away and which
74610 + changes will not affect it.
74611 +
74612 + This is often time consuming and not very useful, because the way
74613 + we will find the bug is by running a single example under the
74614 + debugger with breakpoints, not by pure deduction from a series of
74615 + examples. We recommend that you save your time for something else.
74616 +
74617 + Of course, if you can find a simpler example to report _instead_
74618 + of the original one, that is a convenience for us. Errors in the
74619 + output will be easier to spot, running under the debugger will take
74620 + less time, and so on.
74621 +
74622 + However, simplification is not vital; if you do not want to do
74623 + this, report the bug anyway and send us the entire test case you
74624 + used.
74625 +
74626 + * A patch for the bug.
74627 +
74628 + A patch for the bug does help us if it is a good one. But do not
74629 + omit the necessary information, such as the test case, on the
74630 + assumption that a patch is all we need. We might see problems
74631 + with your patch and decide to fix the problem another way, or we
74632 + might not understand it at all.
74633 +
74634 + Sometimes with a program as complicated as `ld' it is very hard to
74635 + construct an example that will make the program follow a certain
74636 + path through the code. If you do not send us the example, we will
74637 + not be able to construct one, so we will not be able to verify
74638 + that the bug is fixed.
74639 +
74640 + And if we cannot understand what bug you are trying to fix, or why
74641 + your patch should be an improvement, we will not install it. A
74642 + test case will help us to understand.
74643 +
74644 + * A guess about what the bug is or what it depends on.
74645 +
74646 + Such guesses are usually wrong. Even we cannot guess right about
74647 + such things without first using the debugger to find the facts.
74648 +
74649 +\1f
74650 +File: ld.info, Node: MRI, Next: GNU Free Documentation License, Prev: Reporting Bugs, Up: Top
74651 +
74652 +Appendix A MRI Compatible Script Files
74653 +**************************************
74654 +
74655 +To aid users making the transition to GNU `ld' from the MRI linker,
74656 +`ld' can use MRI compatible linker scripts as an alternative to the
74657 +more general-purpose linker scripting language described in *Note
74658 +Scripts::. MRI compatible linker scripts have a much simpler command
74659 +set than the scripting language otherwise used with `ld'. GNU `ld'
74660 +supports the most commonly used MRI linker commands; these commands are
74661 +described here.
74662 +
74663 + In general, MRI scripts aren't of much use with the `a.out' object
74664 +file format, since it only has three sections and MRI scripts lack some
74665 +features to make use of them.
74666 +
74667 + You can specify a file containing an MRI-compatible script using the
74668 +`-c' command-line option.
74669 +
74670 + Each command in an MRI-compatible script occupies its own line; each
74671 +command line starts with the keyword that identifies the command (though
74672 +blank lines are also allowed for punctuation). If a line of an
74673 +MRI-compatible script begins with an unrecognized keyword, `ld' issues
74674 +a warning message, but continues processing the script.
74675 +
74676 + Lines beginning with `*' are comments.
74677 +
74678 + You can write these commands using all upper-case letters, or all
74679 +lower case; for example, `chip' is the same as `CHIP'. The following
74680 +list shows only the upper-case form of each command.
74681 +
74682 +`ABSOLUTE SECNAME'
74683 +`ABSOLUTE SECNAME, SECNAME, ... SECNAME'
74684 + Normally, `ld' includes in the output file all sections from all
74685 + the input files. However, in an MRI-compatible script, you can
74686 + use the `ABSOLUTE' command to restrict the sections that will be
74687 + present in your output program. If the `ABSOLUTE' command is used
74688 + at all in a script, then only the sections named explicitly in
74689 + `ABSOLUTE' commands will appear in the linker output. You can
74690 + still use other input sections (whatever you select on the command
74691 + line, or using `LOAD') to resolve addresses in the output file.
74692 +
74693 +`ALIAS OUT-SECNAME, IN-SECNAME'
74694 + Use this command to place the data from input section IN-SECNAME
74695 + in a section called OUT-SECNAME in the linker output file.
74696 +
74697 + IN-SECNAME may be an integer.
74698 +
74699 +`ALIGN SECNAME = EXPRESSION'
74700 + Align the section called SECNAME to EXPRESSION. The EXPRESSION
74701 + should be a power of two.
74702 +
74703 +`BASE EXPRESSION'
74704 + Use the value of EXPRESSION as the lowest address (other than
74705 + absolute addresses) in the output file.
74706 +
74707 +`CHIP EXPRESSION'
74708 +`CHIP EXPRESSION, EXPRESSION'
74709 + This command does nothing; it is accepted only for compatibility.
74710 +
74711 +`END'
74712 + This command does nothing whatever; it's only accepted for
74713 + compatibility.
74714 +
74715 +`FORMAT OUTPUT-FORMAT'
74716 + Similar to the `OUTPUT_FORMAT' command in the more general linker
74717 + language, but restricted to one of these output formats:
74718 +
74719 + 1. S-records, if OUTPUT-FORMAT is `S'
74720 +
74721 + 2. IEEE, if OUTPUT-FORMAT is `IEEE'
74722 +
74723 + 3. COFF (the `coff-m68k' variant in BFD), if OUTPUT-FORMAT is
74724 + `COFF'
74725 +
74726 +`LIST ANYTHING...'
74727 + Print (to the standard output file) a link map, as produced by the
74728 + `ld' command-line option `-M'.
74729 +
74730 + The keyword `LIST' may be followed by anything on the same line,
74731 + with no change in its effect.
74732 +
74733 +`LOAD FILENAME'
74734 +`LOAD FILENAME, FILENAME, ... FILENAME'
74735 + Include one or more object file FILENAME in the link; this has the
74736 + same effect as specifying FILENAME directly on the `ld' command
74737 + line.
74738 +
74739 +`NAME OUTPUT-NAME'
74740 + OUTPUT-NAME is the name for the program produced by `ld'; the
74741 + MRI-compatible command `NAME' is equivalent to the command-line
74742 + option `-o' or the general script language command `OUTPUT'.
74743 +
74744 +`ORDER SECNAME, SECNAME, ... SECNAME'
74745 +`ORDER SECNAME SECNAME SECNAME'
74746 + Normally, `ld' orders the sections in its output file in the order
74747 + in which they first appear in the input files. In an
74748 + MRI-compatible script, you can override this ordering with the
74749 + `ORDER' command. The sections you list with `ORDER' will appear
74750 + first in your output file, in the order specified.
74751 +
74752 +`PUBLIC NAME=EXPRESSION'
74753 +`PUBLIC NAME,EXPRESSION'
74754 +`PUBLIC NAME EXPRESSION'
74755 + Supply a value (EXPRESSION) for external symbol NAME used in the
74756 + linker input files.
74757 +
74758 +`SECT SECNAME, EXPRESSION'
74759 +`SECT SECNAME=EXPRESSION'
74760 +`SECT SECNAME EXPRESSION'
74761 + You can use any of these three forms of the `SECT' command to
74762 + specify the start address (EXPRESSION) for section SECNAME. If
74763 + you have more than one `SECT' statement for the same SECNAME, only
74764 + the _first_ sets the start address.
74765 +
74766 +\1f
74767 +File: ld.info, Node: GNU Free Documentation License, Next: Index, Prev: MRI, Up: Top
74768 +
74769 +Appendix B GNU Free Documentation License
74770 +*****************************************
74771 +
74772 + Version 1.1, March 2000
74773 +
74774 + Copyright (C) 2000, 2003 Free Software Foundation, Inc.
74775 + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
74776 +
74777 + Everyone is permitted to copy and distribute verbatim copies
74778 + of this license document, but changing it is not allowed.
74779 +
74780 +
74781 + 0. PREAMBLE
74782 +
74783 + The purpose of this License is to make a manual, textbook, or other
74784 + written document "free" in the sense of freedom: to assure everyone
74785 + the effective freedom to copy and redistribute it, with or without
74786 + modifying it, either commercially or noncommercially. Secondarily,
74787 + this License preserves for the author and publisher a way to get
74788 + credit for their work, while not being considered responsible for
74789 + modifications made by others.
74790 +
74791 + This License is a kind of "copyleft", which means that derivative
74792 + works of the document must themselves be free in the same sense.
74793 + It complements the GNU General Public License, which is a copyleft
74794 + license designed for free software.
74795 +
74796 + We have designed this License in order to use it for manuals for
74797 + free software, because free software needs free documentation: a
74798 + free program should come with manuals providing the same freedoms
74799 + that the software does. But this License is not limited to
74800 + software manuals; it can be used for any textual work, regardless
74801 + of subject matter or whether it is published as a printed book.
74802 + We recommend this License principally for works whose purpose is
74803 + instruction or reference.
74804 +
74805 +
74806 + 1. APPLICABILITY AND DEFINITIONS
74807 +
74808 + This License applies to any manual or other work that contains a
74809 + notice placed by the copyright holder saying it can be distributed
74810 + under the terms of this License. The "Document", below, refers to
74811 + any such manual or work. Any member of the public is a licensee,
74812 + and is addressed as "you."
74813 +
74814 + A "Modified Version" of the Document means any work containing the
74815 + Document or a portion of it, either copied verbatim, or with
74816 + modifications and/or translated into another language.
74817 +
74818 + A "Secondary Section" is a named appendix or a front-matter
74819 + section of the Document that deals exclusively with the
74820 + relationship of the publishers or authors of the Document to the
74821 + Document's overall subject (or to related matters) and contains
74822 + nothing that could fall directly within that overall subject.
74823 + (For example, if the Document is in part a textbook of
74824 + mathematics, a Secondary Section may not explain any mathematics.)
74825 + The relationship could be a matter of historical connection with
74826 + the subject or with related matters, or of legal, commercial,
74827 + philosophical, ethical or political position regarding them.
74828 +
74829 + The "Invariant Sections" are certain Secondary Sections whose
74830 + titles are designated, as being those of Invariant Sections, in
74831 + the notice that says that the Document is released under this
74832 + License.
74833 +
74834 + The "Cover Texts" are certain short passages of text that are
74835 + listed, as Front-Cover Texts or Back-Cover Texts, in the notice
74836 + that says that the Document is released under this License.
74837 +
74838 + A "Transparent" copy of the Document means a machine-readable copy,
74839 + represented in a format whose specification is available to the
74840 + general public, whose contents can be viewed and edited directly
74841 + and straightforwardly with generic text editors or (for images
74842 + composed of pixels) generic paint programs or (for drawings) some
74843 + widely available drawing editor, and that is suitable for input to
74844 + text formatters or for automatic translation to a variety of
74845 + formats suitable for input to text formatters. A copy made in an
74846 + otherwise Transparent file format whose markup has been designed
74847 + to thwart or discourage subsequent modification by readers is not
74848 + Transparent. A copy that is not "Transparent" is called "Opaque."
74849 +
74850 + Examples of suitable formats for Transparent copies include plain
74851 + ASCII without markup, Texinfo input format, LaTeX input format,
74852 + SGML or XML using a publicly available DTD, and
74853 + standard-conforming simple HTML designed for human modification.
74854 + Opaque formats include PostScript, PDF, proprietary formats that
74855 + can be read and edited only by proprietary word processors, SGML
74856 + or XML for which the DTD and/or processing tools are not generally
74857 + available, and the machine-generated HTML produced by some word
74858 + processors for output purposes only.
74859 +
74860 + The "Title Page" means, for a printed book, the title page itself,
74861 + plus such following pages as are needed to hold, legibly, the
74862 + material this License requires to appear in the title page. For
74863 + works in formats which do not have any title page as such, "Title
74864 + Page" means the text near the most prominent appearance of the
74865 + work's title, preceding the beginning of the body of the text.
74866 +
74867 + 2. VERBATIM COPYING
74868 +
74869 + You may copy and distribute the Document in any medium, either
74870 + commercially or noncommercially, provided that this License, the
74871 + copyright notices, and the license notice saying this License
74872 + applies to the Document are reproduced in all copies, and that you
74873 + add no other conditions whatsoever to those of this License. You
74874 + may not use technical measures to obstruct or control the reading
74875 + or further copying of the copies you make or distribute. However,
74876 + you may accept compensation in exchange for copies. If you
74877 + distribute a large enough number of copies you must also follow
74878 + the conditions in section 3.
74879 +
74880 + You may also lend copies, under the same conditions stated above,
74881 + and you may publicly display copies.
74882 +
74883 + 3. COPYING IN QUANTITY
74884 +
74885 + If you publish printed copies of the Document numbering more than
74886 + 100, and the Document's license notice requires Cover Texts, you
74887 + must enclose the copies in covers that carry, clearly and legibly,
74888 + all these Cover Texts: Front-Cover Texts on the front cover, and
74889 + Back-Cover Texts on the back cover. Both covers must also clearly
74890 + and legibly identify you as the publisher of these copies. The
74891 + front cover must present the full title with all words of the
74892 + title equally prominent and visible. You may add other material
74893 + on the covers in addition. Copying with changes limited to the
74894 + covers, as long as they preserve the title of the Document and
74895 + satisfy these conditions, can be treated as verbatim copying in
74896 + other respects.
74897 +
74898 + If the required texts for either cover are too voluminous to fit
74899 + legibly, you should put the first ones listed (as many as fit
74900 + reasonably) on the actual cover, and continue the rest onto
74901 + adjacent pages.
74902 +
74903 + If you publish or distribute Opaque copies of the Document
74904 + numbering more than 100, you must either include a
74905 + machine-readable Transparent copy along with each Opaque copy, or
74906 + state in or with each Opaque copy a publicly-accessible
74907 + computer-network location containing a complete Transparent copy
74908 + of the Document, free of added material, which the general
74909 + network-using public has access to download anonymously at no
74910 + charge using public-standard network protocols. If you use the
74911 + latter option, you must take reasonably prudent steps, when you
74912 + begin distribution of Opaque copies in quantity, to ensure that
74913 + this Transparent copy will remain thus accessible at the stated
74914 + location until at least one year after the last time you
74915 + distribute an Opaque copy (directly or through your agents or
74916 + retailers) of that edition to the public.
74917 +
74918 + It is requested, but not required, that you contact the authors of
74919 + the Document well before redistributing any large number of
74920 + copies, to give them a chance to provide you with an updated
74921 + version of the Document.
74922 +
74923 + 4. MODIFICATIONS
74924 +
74925 + You may copy and distribute a Modified Version of the Document
74926 + under the conditions of sections 2 and 3 above, provided that you
74927 + release the Modified Version under precisely this License, with
74928 + the Modified Version filling the role of the Document, thus
74929 + licensing distribution and modification of the Modified Version to
74930 + whoever possesses a copy of it. In addition, you must do these
74931 + things in the Modified Version:
74932 +
74933 + A. Use in the Title Page (and on the covers, if any) a title
74934 + distinct from that of the Document, and from those of previous
74935 + versions (which should, if there were any, be listed in the
74936 + History section of the Document). You may use the same title
74937 + as a previous version if the original publisher of that version
74938 + gives permission.
74939 + B. List on the Title Page, as authors, one or more persons or
74940 + entities responsible for authorship of the modifications in the
74941 + Modified Version, together with at least five of the principal
74942 + authors of the Document (all of its principal authors, if it
74943 + has less than five).
74944 + C. State on the Title page the name of the publisher of the
74945 + Modified Version, as the publisher.
74946 + D. Preserve all the copyright notices of the Document.
74947 + E. Add an appropriate copyright notice for your modifications
74948 + adjacent to the other copyright notices.
74949 + F. Include, immediately after the copyright notices, a license
74950 + notice giving the public permission to use the Modified Version
74951 + under the terms of this License, in the form shown in the
74952 + Addendum below.
74953 + G. Preserve in that license notice the full lists of Invariant
74954 + Sections and required Cover Texts given in the Document's
74955 + license notice.
74956 + H. Include an unaltered copy of this License.
74957 + I. Preserve the section entitled "History", and its title, and add
74958 + to it an item stating at least the title, year, new authors, and
74959 + publisher of the Modified Version as given on the Title Page.
74960 + If there is no section entitled "History" in the Document,
74961 + create one stating the title, year, authors, and publisher of
74962 + the Document as given on its Title Page, then add an item
74963 + describing the Modified Version as stated in the previous
74964 + sentence.
74965 + J. Preserve the network location, if any, given in the Document for
74966 + public access to a Transparent copy of the Document, and
74967 + likewise the network locations given in the Document for
74968 + previous versions it was based on. These may be placed in the
74969 + "History" section. You may omit a network location for a work
74970 + that was published at least four years before the Document
74971 + itself, or if the original publisher of the version it refers
74972 + to gives permission.
74973 + K. In any section entitled "Acknowledgements" or "Dedications",
74974 + preserve the section's title, and preserve in the section all the
74975 + substance and tone of each of the contributor acknowledgements
74976 + and/or dedications given therein.
74977 + L. Preserve all the Invariant Sections of the Document,
74978 + unaltered in their text and in their titles. Section numbers
74979 + or the equivalent are not considered part of the section titles.
74980 + M. Delete any section entitled "Endorsements." Such a section
74981 + may not be included in the Modified Version.
74982 + N. Do not retitle any existing section as "Endorsements" or to
74983 + conflict in title with any Invariant Section.
74984 +
74985 + If the Modified Version includes new front-matter sections or
74986 + appendices that qualify as Secondary Sections and contain no
74987 + material copied from the Document, you may at your option
74988 + designate some or all of these sections as invariant. To do this,
74989 + add their titles to the list of Invariant Sections in the Modified
74990 + Version's license notice. These titles must be distinct from any
74991 + other section titles.
74992 +
74993 + You may add a section entitled "Endorsements", provided it contains
74994 + nothing but endorsements of your Modified Version by various
74995 + parties-for example, statements of peer review or that the text has
74996 + been approved by an organization as the authoritative definition
74997 + of a standard.
74998 +
74999 + You may add a passage of up to five words as a Front-Cover Text,
75000 + and a passage of up to 25 words as a Back-Cover Text, to the end
75001 + of the list of Cover Texts in the Modified Version. Only one
75002 + passage of Front-Cover Text and one of Back-Cover Text may be
75003 + added by (or through arrangements made by) any one entity. If the
75004 + Document already includes a cover text for the same cover,
75005 + previously added by you or by arrangement made by the same entity
75006 + you are acting on behalf of, you may not add another; but you may
75007 + replace the old one, on explicit permission from the previous
75008 + publisher that added the old one.
75009 +
75010 + The author(s) and publisher(s) of the Document do not by this
75011 + License give permission to use their names for publicity for or to
75012 + assert or imply endorsement of any Modified Version.
75013 +
75014 + 5. COMBINING DOCUMENTS
75015 +
75016 + You may combine the Document with other documents released under
75017 + this License, under the terms defined in section 4 above for
75018 + modified versions, provided that you include in the combination
75019 + all of the Invariant Sections of all of the original documents,
75020 + unmodified, and list them all as Invariant Sections of your
75021 + combined work in its license notice.
75022 +
75023 + The combined work need only contain one copy of this License, and
75024 + multiple identical Invariant Sections may be replaced with a single
75025 + copy. If there are multiple Invariant Sections with the same name
75026 + but different contents, make the title of each such section unique
75027 + by adding at the end of it, in parentheses, the name of the
75028 + original author or publisher of that section if known, or else a
75029 + unique number. Make the same adjustment to the section titles in
75030 + the list of Invariant Sections in the license notice of the
75031 + combined work.
75032 +
75033 + In the combination, you must combine any sections entitled
75034 + "History" in the various original documents, forming one section
75035 + entitled "History"; likewise combine any sections entitled
75036 + "Acknowledgements", and any sections entitled "Dedications." You
75037 + must delete all sections entitled "Endorsements."
75038 +
75039 + 6. COLLECTIONS OF DOCUMENTS
75040 +
75041 + You may make a collection consisting of the Document and other
75042 + documents released under this License, and replace the individual
75043 + copies of this License in the various documents with a single copy
75044 + that is included in the collection, provided that you follow the
75045 + rules of this License for verbatim copying of each of the
75046 + documents in all other respects.
75047 +
75048 + You may extract a single document from such a collection, and
75049 + distribute it individually under this License, provided you insert
75050 + a copy of this License into the extracted document, and follow
75051 + this License in all other respects regarding verbatim copying of
75052 + that document.
75053 +
75054 + 7. AGGREGATION WITH INDEPENDENT WORKS
75055 +
75056 + A compilation of the Document or its derivatives with other
75057 + separate and independent documents or works, in or on a volume of
75058 + a storage or distribution medium, does not as a whole count as a
75059 + Modified Version of the Document, provided no compilation
75060 + copyright is claimed for the compilation. Such a compilation is
75061 + called an "aggregate", and this License does not apply to the
75062 + other self-contained works thus compiled with the Document, on
75063 + account of their being thus compiled, if they are not themselves
75064 + derivative works of the Document.
75065 +
75066 + If the Cover Text requirement of section 3 is applicable to these
75067 + copies of the Document, then if the Document is less than one
75068 + quarter of the entire aggregate, the Document's Cover Texts may be
75069 + placed on covers that surround only the Document within the
75070 + aggregate. Otherwise they must appear on covers around the whole
75071 + aggregate.
75072 +
75073 + 8. TRANSLATION
75074 +
75075 + Translation is considered a kind of modification, so you may
75076 + distribute translations of the Document under the terms of section
75077 + 4. Replacing Invariant Sections with translations requires special
75078 + permission from their copyright holders, but you may include
75079 + translations of some or all Invariant Sections in addition to the
75080 + original versions of these Invariant Sections. You may include a
75081 + translation of this License provided that you also include the
75082 + original English version of this License. In case of a
75083 + disagreement between the translation and the original English
75084 + version of this License, the original English version will prevail.
75085 +
75086 + 9. TERMINATION
75087 +
75088 + You may not copy, modify, sublicense, or distribute the Document
75089 + except as expressly provided for under this License. Any other
75090 + attempt to copy, modify, sublicense or distribute the Document is
75091 + void, and will automatically terminate your rights under this
75092 + License. However, parties who have received copies, or rights,
75093 + from you under this License will not have their licenses
75094 + terminated so long as such parties remain in full compliance.
75095 +
75096 + 10. FUTURE REVISIONS OF THIS LICENSE
75097 +
75098 + The Free Software Foundation may publish new, revised versions of
75099 + the GNU Free Documentation License from time to time. Such new
75100 + versions will be similar in spirit to the present version, but may
75101 + differ in detail to address new problems or concerns. See
75102 + http://www.gnu.org/copyleft/.
75103 +
75104 + Each version of the License is given a distinguishing version
75105 + number. If the Document specifies that a particular numbered
75106 + version of this License "or any later version" applies to it, you
75107 + have the option of following the terms and conditions either of
75108 + that specified version or of any later version that has been
75109 + published (not as a draft) by the Free Software Foundation. If
75110 + the Document does not specify a version number of this License,
75111 + you may choose any version ever published (not as a draft) by the
75112 + Free Software Foundation.
75113 +
75114 +
75115 +ADDENDUM: How to use this License for your documents
75116 +====================================================
75117 +
75118 +To use this License in a document you have written, include a copy of
75119 +the License in the document and put the following copyright and license
75120 +notices just after the title page:
75121 +
75122 + Copyright (C) YEAR YOUR NAME.
75123 + Permission is granted to copy, distribute and/or modify this document
75124 + under the terms of the GNU Free Documentation License, Version 1.1
75125 + or any later version published by the Free Software Foundation;
75126 + with the Invariant Sections being LIST THEIR TITLES, with the
75127 + Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
75128 + A copy of the license is included in the section entitled "GNU
75129 + Free Documentation License."
75130 +
75131 + If you have no Invariant Sections, write "with no Invariant Sections"
75132 +instead of saying which ones are invariant. If you have no Front-Cover
75133 +Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being
75134 +LIST"; likewise for Back-Cover Texts.
75135 +
75136 + If your document contains nontrivial examples of program code, we
75137 +recommend releasing these examples in parallel under your choice of
75138 +free software license, such as the GNU General Public License, to
75139 +permit their use in free software.
75140 +
75141 +\1f
75142 +File: ld.info, Node: Index, Prev: GNU Free Documentation License, Up: Top
75143 +
75144 +Index
75145 +*****
75146 +
75147 +