OSDN Git Service

libcom_err: Use sem_post/sem_init to prevent race conditions
[android-x86/external-e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 E2FSPROGS_YEAR
654 E2FSPROGS_MONTH
655 E2FSPROGS_DAY
656 E2FSPROGS_VERSION
657 E2FSPROGS_PKGVER
658 build
659 build_cpu
660 build_vendor
661 build_os
662 host
663 host_cpu
664 host_vendor
665 host_os
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CPP
674 LD
675 GREP
676 EGREP
677 LINUX_INCLUDE
678 MAINTAINER_CMT
679 HTREE_CMT
680 ELF_CMT
681 BSDLIB_CMT
682 PROFILE_CMT
683 CHECKER_CMT
684 LIB_EXT
685 STATIC_LIB_EXT
686 PROFILED_LIB_EXT
687 LDFLAG_DYNAMIC
688 PRIVATE_LIBS_CMT
689 TEST_IO_CMT
690 DEBUGFS_CMT
691 IMAGER_CMT
692 RESIZER_CMT
693 FSCK_PROG
694 FSCK_MAN
695 E2INITRD_PROG
696 E2INITRD_MAN
697 UUIDD_CMT
698 GETTEXT_PACKAGE
699 PACKAGE
700 VERSION
701 SET_MAKE
702 INSTALL_PROGRAM
703 INSTALL_SCRIPT
704 INSTALL_DATA
705 MKINSTALLDIRS
706 USE_NLS
707 MSGFMT
708 GMSGFMT
709 XGETTEXT
710 MSGMERGE
711 RANLIB
712 ALLOCA
713 GLIBC21
714 HAVE_POSIX_PRINTF
715 HAVE_ASPRINTF
716 HAVE_SNPRINTF
717 HAVE_WPRINTF
718 LIBICONV
719 LTLIBICONV
720 INTLBISON
721 BUILD_INCLUDED_LIBINTL
722 USE_INCLUDED_LIBINTL
723 CATOBJEXT
724 DATADIRNAME
725 INSTOBJEXT
726 GENCAT
727 INTLOBJS
728 INTL_LIBTOOL_SUFFIX_PREFIX
729 INTLLIBS
730 LIBINTL
731 LTLIBINTL
732 POSUB
733 BINARY_TYPE
734 LN
735 LN_S
736 MV
737 CP
738 RM
739 CHMOD
740 AWK
741 SED
742 PERL
743 LDCONFIG
744 AR
745 STRIP
746 MAKEINFO
747 BUILD_CC
748 SIZEOF_SHORT
749 SIZEOF_INT
750 SIZEOF_LONG
751 SIZEOF_LONG_LONG
752 SOCKET_LIB
753 DLOPEN_LIB
754 SEM_INIT_LIB
755 UNI_DIFF_OPTS
756 LINUX_CMT
757 CYGWIN_CMT
758 UNIX_CMT
759 root_prefix
760 root_bindir
761 root_sbindir
762 root_libdir
763 root_sysconfdir
764 LDFLAG_STATIC
765 SS_DIR
766 ET_DIR
767 DO_TEST_SUITE
768 INTL_FLAGS
769 BUILD_CFLAGS
770 BUILD_LDFLAGS
771 LIBOBJS
772 LTLIBOBJS'
773 ac_subst_files='MCONFIG
774 MAKEFILE_ELF
775 MAKEFILE_BSDLIB
776 MAKEFILE_PROFILE
777 MAKEFILE_CHECKER
778 MAKEFILE_LIBRARY
779 ASM_TYPES_HEADER
780 PUBLIC_CONFIG_HEADER'
781       ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CPP'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842   # If the previous option needs an argument, assign it.
843   if test -n "$ac_prev"; then
844     eval $ac_prev=\$ac_option
845     ac_prev=
846     continue
847   fi
848
849   case $ac_option in
850   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851   *)    ac_optarg=yes ;;
852   esac
853
854   # Accept the important Cygnus configure options, so we can diagnose typos.
855
856   case $ac_dashdash$ac_option in
857   --)
858     ac_dashdash=yes ;;
859
860   -bindir | --bindir | --bindi | --bind | --bin | --bi)
861     ac_prev=bindir ;;
862   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863     bindir=$ac_optarg ;;
864
865   -build | --build | --buil | --bui | --bu)
866     ac_prev=build_alias ;;
867   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868     build_alias=$ac_optarg ;;
869
870   -cache-file | --cache-file | --cache-fil | --cache-fi \
871   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872     ac_prev=cache_file ;;
873   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875     cache_file=$ac_optarg ;;
876
877   --config-cache | -C)
878     cache_file=config.cache ;;
879
880   -datadir | --datadir | --datadi | --datad)
881     ac_prev=datadir ;;
882   -datadir=* | --datadir=* | --datadi=* | --datad=*)
883     datadir=$ac_optarg ;;
884
885   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886   | --dataroo | --dataro | --datar)
887     ac_prev=datarootdir ;;
888   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890     datarootdir=$ac_optarg ;;
891
892   -disable-* | --disable-*)
893     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894     # Reject names that are not valid shell variable names.
895     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
896       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897    { (exit 1); exit 1; }; }
898     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
899     eval enable_$ac_feature=no ;;
900
901   -docdir | --docdir | --docdi | --doc | --do)
902     ac_prev=docdir ;;
903   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904     docdir=$ac_optarg ;;
905
906   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907     ac_prev=dvidir ;;
908   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909     dvidir=$ac_optarg ;;
910
911   -enable-* | --enable-*)
912     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913     # Reject names that are not valid shell variable names.
914     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
915       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916    { (exit 1); exit 1; }; }
917     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
918     eval enable_$ac_feature=\$ac_optarg ;;
919
920   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922   | --exec | --exe | --ex)
923     ac_prev=exec_prefix ;;
924   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926   | --exec=* | --exe=* | --ex=*)
927     exec_prefix=$ac_optarg ;;
928
929   -gas | --gas | --ga | --g)
930     # Obsolete; use --with-gas.
931     with_gas=yes ;;
932
933   -help | --help | --hel | --he | -h)
934     ac_init_help=long ;;
935   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936     ac_init_help=recursive ;;
937   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938     ac_init_help=short ;;
939
940   -host | --host | --hos | --ho)
941     ac_prev=host_alias ;;
942   -host=* | --host=* | --hos=* | --ho=*)
943     host_alias=$ac_optarg ;;
944
945   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946     ac_prev=htmldir ;;
947   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948   | --ht=*)
949     htmldir=$ac_optarg ;;
950
951   -includedir | --includedir | --includedi | --included | --include \
952   | --includ | --inclu | --incl | --inc)
953     ac_prev=includedir ;;
954   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955   | --includ=* | --inclu=* | --incl=* | --inc=*)
956     includedir=$ac_optarg ;;
957
958   -infodir | --infodir | --infodi | --infod | --info | --inf)
959     ac_prev=infodir ;;
960   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961     infodir=$ac_optarg ;;
962
963   -libdir | --libdir | --libdi | --libd)
964     ac_prev=libdir ;;
965   -libdir=* | --libdir=* | --libdi=* | --libd=*)
966     libdir=$ac_optarg ;;
967
968   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969   | --libexe | --libex | --libe)
970     ac_prev=libexecdir ;;
971   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972   | --libexe=* | --libex=* | --libe=*)
973     libexecdir=$ac_optarg ;;
974
975   -localedir | --localedir | --localedi | --localed | --locale)
976     ac_prev=localedir ;;
977   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978     localedir=$ac_optarg ;;
979
980   -localstatedir | --localstatedir | --localstatedi | --localstated \
981   | --localstate | --localstat | --localsta | --localst | --locals)
982     ac_prev=localstatedir ;;
983   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985     localstatedir=$ac_optarg ;;
986
987   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988     ac_prev=mandir ;;
989   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990     mandir=$ac_optarg ;;
991
992   -nfp | --nfp | --nf)
993     # Obsolete; use --without-fp.
994     with_fp=no ;;
995
996   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997   | --no-cr | --no-c | -n)
998     no_create=yes ;;
999
1000   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002     no_recursion=yes ;;
1003
1004   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006   | --oldin | --oldi | --old | --ol | --o)
1007     ac_prev=oldincludedir ;;
1008   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011     oldincludedir=$ac_optarg ;;
1012
1013   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014     ac_prev=prefix ;;
1015   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016     prefix=$ac_optarg ;;
1017
1018   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019   | --program-pre | --program-pr | --program-p)
1020     ac_prev=program_prefix ;;
1021   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023     program_prefix=$ac_optarg ;;
1024
1025   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026   | --program-suf | --program-su | --program-s)
1027     ac_prev=program_suffix ;;
1028   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030     program_suffix=$ac_optarg ;;
1031
1032   -program-transform-name | --program-transform-name \
1033   | --program-transform-nam | --program-transform-na \
1034   | --program-transform-n | --program-transform- \
1035   | --program-transform | --program-transfor \
1036   | --program-transfo | --program-transf \
1037   | --program-trans | --program-tran \
1038   | --progr-tra | --program-tr | --program-t)
1039     ac_prev=program_transform_name ;;
1040   -program-transform-name=* | --program-transform-name=* \
1041   | --program-transform-nam=* | --program-transform-na=* \
1042   | --program-transform-n=* | --program-transform-=* \
1043   | --program-transform=* | --program-transfor=* \
1044   | --program-transfo=* | --program-transf=* \
1045   | --program-trans=* | --program-tran=* \
1046   | --progr-tra=* | --program-tr=* | --program-t=*)
1047     program_transform_name=$ac_optarg ;;
1048
1049   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050     ac_prev=pdfdir ;;
1051   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052     pdfdir=$ac_optarg ;;
1053
1054   -psdir | --psdir | --psdi | --psd | --ps)
1055     ac_prev=psdir ;;
1056   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057     psdir=$ac_optarg ;;
1058
1059   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060   | -silent | --silent | --silen | --sile | --sil)
1061     silent=yes ;;
1062
1063   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064     ac_prev=sbindir ;;
1065   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066   | --sbi=* | --sb=*)
1067     sbindir=$ac_optarg ;;
1068
1069   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071   | --sharedst | --shareds | --shared | --share | --shar \
1072   | --sha | --sh)
1073     ac_prev=sharedstatedir ;;
1074   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077   | --sha=* | --sh=*)
1078     sharedstatedir=$ac_optarg ;;
1079
1080   -site | --site | --sit)
1081     ac_prev=site ;;
1082   -site=* | --site=* | --sit=*)
1083     site=$ac_optarg ;;
1084
1085   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086     ac_prev=srcdir ;;
1087   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088     srcdir=$ac_optarg ;;
1089
1090   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091   | --syscon | --sysco | --sysc | --sys | --sy)
1092     ac_prev=sysconfdir ;;
1093   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095     sysconfdir=$ac_optarg ;;
1096
1097   -target | --target | --targe | --targ | --tar | --ta | --t)
1098     ac_prev=target_alias ;;
1099   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100     target_alias=$ac_optarg ;;
1101
1102   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103     verbose=yes ;;
1104
1105   -version | --version | --versio | --versi | --vers | -V)
1106     ac_init_version=: ;;
1107
1108   -with-* | --with-*)
1109     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112       { echo "$as_me: error: invalid package name: $ac_package" >&2
1113    { (exit 1); exit 1; }; }
1114     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115     eval with_$ac_package=\$ac_optarg ;;
1116
1117   -without-* | --without-*)
1118     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119     # Reject names that are not valid shell variable names.
1120     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121       { echo "$as_me: error: invalid package name: $ac_package" >&2
1122    { (exit 1); exit 1; }; }
1123     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124     eval with_$ac_package=no ;;
1125
1126   --x)
1127     # Obsolete; use --with-x.
1128     with_x=yes ;;
1129
1130   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131   | --x-incl | --x-inc | --x-in | --x-i)
1132     ac_prev=x_includes ;;
1133   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135     x_includes=$ac_optarg ;;
1136
1137   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139     ac_prev=x_libraries ;;
1140   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142     x_libraries=$ac_optarg ;;
1143
1144   -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146    { (exit 1); exit 1; }; }
1147     ;;
1148
1149   *=*)
1150     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154    { (exit 1); exit 1; }; }
1155     eval $ac_envvar=\$ac_optarg
1156     export $ac_envvar ;;
1157
1158   *)
1159     # FIXME: should be removed in autoconf 3.0.
1160     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1164     ;;
1165
1166   esac
1167 done
1168
1169 if test -n "$ac_prev"; then
1170   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171   { echo "$as_me: error: missing argument to $ac_option" >&2
1172    { (exit 1); exit 1; }; }
1173 fi
1174
1175 # Be sure to have absolute directory names.
1176 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177                 datadir sysconfdir sharedstatedir localstatedir includedir \
1178                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179                 libdir localedir mandir
1180 do
1181   eval ac_val=\$$ac_var
1182   case $ac_val in
1183     [\\/$]* | ?:[\\/]* )  continue;;
1184     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185   esac
1186   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187    { (exit 1); exit 1; }; }
1188 done
1189
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1196
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199   if test "x$build_alias" = x; then
1200     cross_compiling=maybe
1201     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202     If a cross compiler is detected then cross compile mode will be used." >&2
1203   elif test "x$build_alias" != "x$host_alias"; then
1204     cross_compiling=yes
1205   fi
1206 fi
1207
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
1211 test "$silent" = yes && exec 6>/dev/null
1212
1213
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217   { echo "$as_me: error: Working directory cannot be determined" >&2
1218    { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220   { echo "$as_me: error: pwd does not report name of working directory" >&2
1221    { (exit 1); exit 1; }; }
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226   ac_srcdir_defaulted=yes
1227   # Try the directory containing this script, then the parent directory.
1228   ac_confdir=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230          X"$0" : 'X\(//\)[^/]' \| \
1231          X"$0" : 'X\(//\)$' \| \
1232          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1233 echo X"$0" |
1234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235             s//\1/
1236             q
1237           }
1238           /^X\(\/\/\)[^/].*/{
1239             s//\1/
1240             q
1241           }
1242           /^X\(\/\/\)$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\).*/{
1247             s//\1/
1248             q
1249           }
1250           s/.*/./; q'`
1251   srcdir=$ac_confdir
1252   if test ! -r "$srcdir/$ac_unique_file"; then
1253     srcdir=..
1254   fi
1255 else
1256   ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261    { (exit 1); exit 1; }; }
1262 fi
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266    { (exit 1); exit 1; }; }
1267         pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270   srcdir=.
1271 fi
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280   eval ac_env_${ac_var}_value=\$${ac_var}
1281   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1284
1285 #
1286 # Report the --help message.
1287 #
1288 if test "$ac_init_help" = "long"; then
1289   # Omit some internal or obsolete options to make the list less imposing.
1290   # This message is too long to be a string in the A/UX 3.1 sh.
1291   cat <<_ACEOF
1292 \`configure' configures this package to adapt to many kinds of systems.
1293
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE.  See below for descriptions of some of the useful variables.
1298
1299 Defaults for the options are specified in brackets.
1300
1301 Configuration:
1302   -h, --help              display this help and exit
1303       --help=short        display options specific to this package
1304       --help=recursive    display the short help of all the included packages
1305   -V, --version           display version information and exit
1306   -q, --quiet, --silent   do not print \`checking...' messages
1307       --cache-file=FILE   cache test results in FILE [disabled]
1308   -C, --config-cache      alias for \`--cache-file=config.cache'
1309   -n, --no-create         do not create output files
1310       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1311
1312 Installation directories:
1313   --prefix=PREFIX         install architecture-independent files in PREFIX
1314                           [$ac_default_prefix]
1315   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1316                           [PREFIX]
1317
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1322
1323 For better control, use the options below.
1324
1325 Fine tuning of the installation directories:
1326   --bindir=DIR           user executables [EPREFIX/bin]
1327   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1328   --libexecdir=DIR       program executables [EPREFIX/libexec]
1329   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1330   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1331   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1332   --libdir=DIR           object code libraries [EPREFIX/lib]
1333   --includedir=DIR       C header files [PREFIX/include]
1334   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1335   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1336   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1337   --infodir=DIR          info documentation [DATAROOTDIR/info]
1338   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1339   --mandir=DIR           man documentation [DATAROOTDIR/man]
1340   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1341   --htmldir=DIR          html documentation [DOCDIR]
1342   --dvidir=DIR           dvi documentation [DOCDIR]
1343   --pdfdir=DIR           pdf documentation [DOCDIR]
1344   --psdir=DIR            ps documentation [DOCDIR]
1345 _ACEOF
1346
1347   cat <<\_ACEOF
1348
1349 System types:
1350   --build=BUILD     configure for building on BUILD [guessed]
1351   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1352 _ACEOF
1353 fi
1354
1355 if test -n "$ac_init_help"; then
1356
1357   cat <<\_ACEOF
1358
1359 Optional Features:
1360   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1361   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1362   --enable-maintainer-mode enable makefile rules useful for maintainers
1363   --enable-compression    enable EXPERIMENTAL compression support
1364   --enable-htree          enable EXPERIMENTAL htree directory support
1365   --enable-elf-shlibs     select ELF shared libraries
1366   --enable-bsd-shlibs     select BSD shared libraries
1367   --enable-profile        build profiling libraries
1368   --enable-checker        build checker libraries
1369   --enable-jbd-debug      enable journal debugging
1370   --enable-blkid-debug    enable blkid debugging
1371   --disable-testio-debug  disable the use of the test I/O manager for debugging
1372   --disable-debugfs       disable support of debugfs program
1373   --disable-imager        disable support of e2image program
1374   --disable-resizer       disable support of e2resize program
1375   --enable-fsck           build fsck wrapper program
1376   --enable-e2initrd-helper build e2initrd-helper program
1377   --disable-tls           disable use of thread local support
1378   --disable-uuidd         disable building the uuid daemon
1379   --disable-nls           do not use Native Language Support
1380   --disable-rpath         do not hardcode runtime library paths
1381
1382 Optional Packages:
1383   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1384   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1385   --with-diet-libc        use diet libc
1386   --with-cc=COMPILER      select compiler to use
1387   --with-linker=LINKER    select linker to use
1388   --with-ccopts=CCOPTS    select compiler command line options
1389   --with-ldopts=LDOPTS    select linker command line options
1390   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1391   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1392   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1393   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1394   --with-included-gettext use the GNU gettext library included here
1395   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1396   --without-libintl-prefix     don't search for libintl in includedir and libdir
1397
1398 Some influential environment variables:
1399   CC          C compiler command
1400   CFLAGS      C compiler flags
1401   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1402               nonstandard directory <lib dir>
1403   LIBS        libraries to pass to the linker, e.g. -l<library>
1404   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405               you have headers in a nonstandard directory <include dir>
1406   CPP         C preprocessor
1407
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1410
1411 _ACEOF
1412 ac_status=$?
1413 fi
1414
1415 if test "$ac_init_help" = "recursive"; then
1416   # If there are subdirs, report their specific --help.
1417   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418     test -d "$ac_dir" || continue
1419     ac_builddir=.
1420
1421 case "$ac_dir" in
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *)
1424   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1425   # A ".." for each directory in $ac_dir_suffix.
1426   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1427   case $ac_top_builddir_sub in
1428   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430   esac ;;
1431 esac
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1436
1437 case $srcdir in
1438   .)  # We are building in place.
1439     ac_srcdir=.
1440     ac_top_srcdir=$ac_top_builddir_sub
1441     ac_abs_top_srcdir=$ac_pwd ;;
1442   [\\/]* | ?:[\\/]* )  # Absolute name.
1443     ac_srcdir=$srcdir$ac_dir_suffix;
1444     ac_top_srcdir=$srcdir
1445     ac_abs_top_srcdir=$srcdir ;;
1446   *) # Relative name.
1447     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448     ac_top_srcdir=$ac_top_build_prefix$srcdir
1449     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 esac
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452
1453     cd "$ac_dir" || { ac_status=$?; continue; }
1454     # Check for guested configure.
1455     if test -f "$ac_srcdir/configure.gnu"; then
1456       echo &&
1457       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458     elif test -f "$ac_srcdir/configure"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure" --help=recursive
1461     else
1462       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463     fi || ac_status=$?
1464     cd "$ac_pwd" || { ac_status=$?; break; }
1465   done
1466 fi
1467
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1470   cat <<\_ACEOF
1471 configure
1472 generated by GNU Autoconf 2.61
1473
1474 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1475 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1478 _ACEOF
1479   exit
1480 fi
1481 cat >config.log <<_ACEOF
1482 This file contains any messages produced by compilers while
1483 running configure, to aid debugging if configure makes a mistake.
1484
1485 It was created by $as_me, which was
1486 generated by GNU Autoconf 2.61.  Invocation command line was
1487
1488   $ $0 $@
1489
1490 _ACEOF
1491 exec 5>>config.log
1492 {
1493 cat <<_ASUNAME
1494 ## --------- ##
1495 ## Platform. ##
1496 ## --------- ##
1497
1498 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1499 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1500 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1501 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1502 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1503
1504 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1505 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1506
1507 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1508 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1509 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1510 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1511 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1512 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1513 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1514
1515 _ASUNAME
1516
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 for as_dir in $PATH
1519 do
1520   IFS=$as_save_IFS
1521   test -z "$as_dir" && as_dir=.
1522   echo "PATH: $as_dir"
1523 done
1524 IFS=$as_save_IFS
1525
1526 } >&5
1527
1528 cat >&5 <<_ACEOF
1529
1530
1531 ## ----------- ##
1532 ## Core tests. ##
1533 ## ----------- ##
1534
1535 _ACEOF
1536
1537
1538 # Keep a trace of the command line.
1539 # Strip out --no-create and --no-recursion so they do not pile up.
1540 # Strip out --silent because we don't want to record it for future runs.
1541 # Also quote any args containing shell meta-characters.
1542 # Make two passes to allow for proper duplicate-argument suppression.
1543 ac_configure_args=
1544 ac_configure_args0=
1545 ac_configure_args1=
1546 ac_must_keep_next=false
1547 for ac_pass in 1 2
1548 do
1549   for ac_arg
1550   do
1551     case $ac_arg in
1552     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1553     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1554     | -silent | --silent | --silen | --sile | --sil)
1555       continue ;;
1556     *\'*)
1557       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1558     esac
1559     case $ac_pass in
1560     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1561     2)
1562       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1563       if test $ac_must_keep_next = true; then
1564         ac_must_keep_next=false # Got value, back to normal.
1565       else
1566         case $ac_arg in
1567           *=* | --config-cache | -C | -disable-* | --disable-* \
1568           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1569           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1570           | -with-* | --with-* | -without-* | --without-* | --x)
1571             case "$ac_configure_args0 " in
1572               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1573             esac
1574             ;;
1575           -* ) ac_must_keep_next=true ;;
1576         esac
1577       fi
1578       ac_configure_args="$ac_configure_args '$ac_arg'"
1579       ;;
1580     esac
1581   done
1582 done
1583 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1584 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1585
1586 # When interrupted or exit'd, cleanup temporary files, and complete
1587 # config.log.  We remove comments because anyway the quotes in there
1588 # would cause problems or look ugly.
1589 # WARNING: Use '\'' to represent an apostrophe within the trap.
1590 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1591 trap 'exit_status=$?
1592   # Save into config.log some information that might help in debugging.
1593   {
1594     echo
1595
1596     cat <<\_ASBOX
1597 ## ---------------- ##
1598 ## Cache variables. ##
1599 ## ---------------- ##
1600 _ASBOX
1601     echo
1602     # The following way of writing the cache mishandles newlines in values,
1603 (
1604   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1605     eval ac_val=\$$ac_var
1606     case $ac_val in #(
1607     *${as_nl}*)
1608       case $ac_var in #(
1609       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1610 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1611       esac
1612       case $ac_var in #(
1613       _ | IFS | as_nl) ;; #(
1614       *) $as_unset $ac_var ;;
1615       esac ;;
1616     esac
1617   done
1618   (set) 2>&1 |
1619     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1620     *${as_nl}ac_space=\ *)
1621       sed -n \
1622         "s/'\''/'\''\\\\'\'''\''/g;
1623           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1624       ;; #(
1625     *)
1626       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1627       ;;
1628     esac |
1629     sort
1630 )
1631     echo
1632
1633     cat <<\_ASBOX
1634 ## ----------------- ##
1635 ## Output variables. ##
1636 ## ----------------- ##
1637 _ASBOX
1638     echo
1639     for ac_var in $ac_subst_vars
1640     do
1641       eval ac_val=\$$ac_var
1642       case $ac_val in
1643       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644       esac
1645       echo "$ac_var='\''$ac_val'\''"
1646     done | sort
1647     echo
1648
1649     if test -n "$ac_subst_files"; then
1650       cat <<\_ASBOX
1651 ## ------------------- ##
1652 ## File substitutions. ##
1653 ## ------------------- ##
1654 _ASBOX
1655       echo
1656       for ac_var in $ac_subst_files
1657       do
1658         eval ac_val=\$$ac_var
1659         case $ac_val in
1660         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1661         esac
1662         echo "$ac_var='\''$ac_val'\''"
1663       done | sort
1664       echo
1665     fi
1666
1667     if test -s confdefs.h; then
1668       cat <<\_ASBOX
1669 ## ----------- ##
1670 ## confdefs.h. ##
1671 ## ----------- ##
1672 _ASBOX
1673       echo
1674       cat confdefs.h
1675       echo
1676     fi
1677     test "$ac_signal" != 0 &&
1678       echo "$as_me: caught signal $ac_signal"
1679     echo "$as_me: exit $exit_status"
1680   } >&5
1681   rm -f core *.core core.conftest.* &&
1682     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1683     exit $exit_status
1684 ' 0
1685 for ac_signal in 1 2 13 15; do
1686   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1687 done
1688 ac_signal=0
1689
1690 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1691 rm -f -r conftest* confdefs.h
1692
1693 # Predefined preprocessor variables.
1694
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_NAME "$PACKAGE_NAME"
1697 _ACEOF
1698
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1702 _ACEOF
1703
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_STRING "$PACKAGE_STRING"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1717 _ACEOF
1718
1719
1720 # Let the site file select an alternate cache file if it wants to.
1721 # Prefer explicitly selected file to automatically selected ones.
1722 if test -n "$CONFIG_SITE"; then
1723   set x "$CONFIG_SITE"
1724 elif test "x$prefix" != xNONE; then
1725   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1726 else
1727   set x "$ac_default_prefix/share/config.site" \
1728         "$ac_default_prefix/etc/config.site"
1729 fi
1730 shift
1731 for ac_site_file
1732 do
1733   if test -r "$ac_site_file"; then
1734     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1735 echo "$as_me: loading site script $ac_site_file" >&6;}
1736     sed 's/^/| /' "$ac_site_file" >&5
1737     . "$ac_site_file"
1738   fi
1739 done
1740
1741 if test -r "$cache_file"; then
1742   # Some versions of bash will fail to source /dev/null (special
1743   # files actually), so we avoid doing that.
1744   if test -f "$cache_file"; then
1745     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1746 echo "$as_me: loading cache $cache_file" >&6;}
1747     case $cache_file in
1748       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1749       *)                      . "./$cache_file";;
1750     esac
1751   fi
1752 else
1753   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1754 echo "$as_me: creating cache $cache_file" >&6;}
1755   >$cache_file
1756 fi
1757
1758 # Check that the precious variables saved in the cache have kept the same
1759 # value.
1760 ac_cache_corrupted=false
1761 for ac_var in $ac_precious_vars; do
1762   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1763   eval ac_new_set=\$ac_env_${ac_var}_set
1764   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1765   eval ac_new_val=\$ac_env_${ac_var}_value
1766   case $ac_old_set,$ac_new_set in
1767     set,)
1768       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1769 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1770       ac_cache_corrupted=: ;;
1771     ,set)
1772       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1774       ac_cache_corrupted=: ;;
1775     ,);;
1776     *)
1777       if test "x$ac_old_val" != "x$ac_new_val"; then
1778         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1779 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1780         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1781 echo "$as_me:   former value:  $ac_old_val" >&2;}
1782         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1783 echo "$as_me:   current value: $ac_new_val" >&2;}
1784         ac_cache_corrupted=:
1785       fi;;
1786   esac
1787   # Pass precious variables to config.status.
1788   if test "$ac_new_set" = set; then
1789     case $ac_new_val in
1790     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1791     *) ac_arg=$ac_var=$ac_new_val ;;
1792     esac
1793     case " $ac_configure_args " in
1794       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1795       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1796     esac
1797   fi
1798 done
1799 if $ac_cache_corrupted; then
1800   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804    { (exit 1); exit 1; }; }
1805 fi
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828
1829
1830
1831 ac_aux_dir=
1832 for ac_dir in config "$srcdir"/config; do
1833   if test -f "$ac_dir/install-sh"; then
1834     ac_aux_dir=$ac_dir
1835     ac_install_sh="$ac_aux_dir/install-sh -c"
1836     break
1837   elif test -f "$ac_dir/install.sh"; then
1838     ac_aux_dir=$ac_dir
1839     ac_install_sh="$ac_aux_dir/install.sh -c"
1840     break
1841   elif test -f "$ac_dir/shtool"; then
1842     ac_aux_dir=$ac_dir
1843     ac_install_sh="$ac_aux_dir/shtool install -c"
1844     break
1845   fi
1846 done
1847 if test -z "$ac_aux_dir"; then
1848   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1849 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1850    { (exit 1); exit 1; }; }
1851 fi
1852
1853 # These three variables are undocumented and unsupported,
1854 # and are intended to be withdrawn in a future Autoconf release.
1855 # They can cause serious problems if a builder's source tree is in a directory
1856 # whose full name contains unusual characters.
1857 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1858 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1859 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1860
1861
1862 MCONFIG=./MCONFIG
1863
1864 BINARY_TYPE=bin
1865 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1866         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1867 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1868         | tr \" " "`
1869 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1870 MONTH=`echo $DATE | awk -F- '{print $2}'`
1871 YEAR=`echo $DATE | awk -F- '{print $3}'`
1872
1873 if expr $YEAR ">" 1900 > /dev/null ; then
1874         E2FSPROGS_YEAR=$YEAR
1875 elif expr $YEAR ">" 90 >/dev/null ; then
1876         E2FSPROGS_YEAR=19$YEAR
1877 else
1878         E2FSPROGS_YEAR=20$YEAR
1879 fi
1880
1881 case $MONTH in
1882 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1883 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1884 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1885 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1886 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1887 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1888 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1889 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1890 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1891 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1892 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1893 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1894 *)      { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1895 echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
1896 esac
1897
1898 base_ver=`echo $E2FSPROGS_VERSION | \
1899                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1900
1901 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1902
1903 case $E2FSPROGS_VERSION in
1904 *-WIP|pre-*)
1905         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1906         ;;
1907 *)
1908         E2FSPROGS_PKGVER="$base_ver"
1909         ;;
1910 esac
1911
1912 unset DATE MONTH YEAR base_ver pre_vers date_spec
1913 { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1914 echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1915 { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1916 echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
1917
1918
1919
1920
1921
1922 # Make sure we can run config.sub.
1923 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1924   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1925 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1926    { (exit 1); exit 1; }; }
1927
1928 { echo "$as_me:$LINENO: checking build system type" >&5
1929 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1930 if test "${ac_cv_build+set}" = set; then
1931   echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933   ac_build_alias=$build_alias
1934 test "x$ac_build_alias" = x &&
1935   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1936 test "x$ac_build_alias" = x &&
1937   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1938 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1939    { (exit 1); exit 1; }; }
1940 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1941   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1942 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1943    { (exit 1); exit 1; }; }
1944
1945 fi
1946 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1947 echo "${ECHO_T}$ac_cv_build" >&6; }
1948 case $ac_cv_build in
1949 *-*-*) ;;
1950 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1951 echo "$as_me: error: invalid value of canonical build" >&2;}
1952    { (exit 1); exit 1; }; };;
1953 esac
1954 build=$ac_cv_build
1955 ac_save_IFS=$IFS; IFS='-'
1956 set x $ac_cv_build
1957 shift
1958 build_cpu=$1
1959 build_vendor=$2
1960 shift; shift
1961 # Remember, the first character of IFS is used to create $*,
1962 # except with old shells:
1963 build_os=$*
1964 IFS=$ac_save_IFS
1965 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1966
1967
1968 { echo "$as_me:$LINENO: checking host system type" >&5
1969 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_host+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   if test "x$host_alias" = x; then
1974   ac_cv_host=$ac_cv_build
1975 else
1976   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1977     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1978 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1979    { (exit 1); exit 1; }; }
1980 fi
1981
1982 fi
1983 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1984 echo "${ECHO_T}$ac_cv_host" >&6; }
1985 case $ac_cv_host in
1986 *-*-*) ;;
1987 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1988 echo "$as_me: error: invalid value of canonical host" >&2;}
1989    { (exit 1); exit 1; }; };;
1990 esac
1991 host=$ac_cv_host
1992 ac_save_IFS=$IFS; IFS='-'
1993 set x $ac_cv_host
1994 shift
1995 host_cpu=$1
1996 host_vendor=$2
1997 shift; shift
1998 # Remember, the first character of IFS is used to create $*,
1999 # except with old shells:
2000 host_os=$*
2001 IFS=$ac_save_IFS
2002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2003
2004
2005 WITH_DIET_LIBC=
2006
2007 # Check whether --with-diet-libc was given.
2008 if test "${with_diet_libc+set}" = set; then
2009   withval=$with_diet_libc; CC="diet cc -nostdinc"
2010 WITH_DIET_LIBC=yes
2011 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2012 echo "${ECHO_T}CC=$CC" >&6; }
2013 fi
2014
2015 # Check whether --with-cc was given.
2016 if test "${with_cc+set}" = set; then
2017   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2018 echo "${ECHO_T}CC=$withval" >&6; }
2019 CC=$withval
2020 else
2021   if test -z "$CC" ; then CC=cc; fi
2022 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2023 echo "${ECHO_T}CC defaults to $CC" >&6; }
2024 fi
2025 export CC
2026
2027 ac_ext=c
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 if test -n "$ac_tool_prefix"; then
2033   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   if test -n "$CC"; then
2041   ac_cv_prog_CC="$CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046   IFS=$as_save_IFS
2047   test -z "$as_dir" && as_dir=.
2048   for ac_exec_ext in '' $ac_executable_extensions; do
2049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2050     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052     break 2
2053   fi
2054 done
2055 done
2056 IFS=$as_save_IFS
2057
2058 fi
2059 fi
2060 CC=$ac_cv_prog_CC
2061 if test -n "$CC"; then
2062   { echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6; }
2064 else
2065   { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2067 fi
2068
2069
2070 fi
2071 if test -z "$ac_cv_prog_CC"; then
2072   ac_ct_CC=$CC
2073   # Extract the first word of "gcc", so it can be a program name with args.
2074 set dummy gcc; ac_word=$2
2075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test -n "$ac_ct_CC"; then
2081   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090     ac_cv_prog_ac_ct_CC="gcc"
2091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092     break 2
2093   fi
2094 done
2095 done
2096 IFS=$as_save_IFS
2097
2098 fi
2099 fi
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6; }
2104 else
2105   { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2107 fi
2108
2109   if test "x$ac_ct_CC" = x; then
2110     CC=""
2111   else
2112     case $cross_compiling:$ac_tool_warned in
2113 yes:)
2114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2115 whose name does not start with the host triplet.  If you think this
2116 configuration is useful to you, please write to autoconf@gnu.org." >&5
2117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet.  If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2120 ac_tool_warned=yes ;;
2121 esac
2122     CC=$ac_ct_CC
2123   fi
2124 else
2125   CC="$ac_cv_prog_CC"
2126 fi
2127
2128 if test -z "$CC"; then
2129           if test -n "$ac_tool_prefix"; then
2130     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}cc; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   if test -n "$CC"; then
2138   ac_cv_prog_CC="$CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145   for ac_exec_ext in '' $ac_executable_extensions; do
2146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147     ac_cv_prog_CC="${ac_tool_prefix}cc"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153 IFS=$as_save_IFS
2154
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159   { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2161 else
2162   { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2164 fi
2165
2166
2167   fi
2168 fi
2169 if test -z "$CC"; then
2170   # Extract the first word of "cc", so it can be a program name with args.
2171 set dummy cc; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   if test -n "$CC"; then
2178   ac_cv_prog_CC="$CC" # Let the user override the test.
2179 else
2180   ac_prog_rejected=no
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   for ac_exec_ext in '' $ac_executable_extensions; do
2187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189        ac_prog_rejected=yes
2190        continue
2191      fi
2192     ac_cv_prog_CC="cc"
2193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 if test $ac_prog_rejected = yes; then
2201   # We found a bogon in the path, so make sure we never use it.
2202   set dummy $ac_cv_prog_CC
2203   shift
2204   if test $# != 0; then
2205     # We chose a different compiler from the bogus one.
2206     # However, it has the same basename, so the bogon will be chosen
2207     # first if we set CC to just the basename; use the full file name.
2208     shift
2209     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2210   fi
2211 fi
2212 fi
2213 fi
2214 CC=$ac_cv_prog_CC
2215 if test -n "$CC"; then
2216   { echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6; }
2218 else
2219   { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2221 fi
2222
2223
2224 fi
2225 if test -z "$CC"; then
2226   if test -n "$ac_tool_prefix"; then
2227   for ac_prog in cl.exe
2228   do
2229     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   if test -n "$CC"; then
2237   ac_cv_prog_CC="$CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244   for ac_exec_ext in '' $ac_executable_extensions; do
2245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251 done
2252 IFS=$as_save_IFS
2253
2254 fi
2255 fi
2256 CC=$ac_cv_prog_CC
2257 if test -n "$CC"; then
2258   { echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6; }
2260 else
2261   { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2263 fi
2264
2265
2266     test -n "$CC" && break
2267   done
2268 fi
2269 if test -z "$CC"; then
2270   ac_ct_CC=$CC
2271   for ac_prog in cl.exe
2272 do
2273   # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   if test -n "$ac_ct_CC"; then
2281   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290     ac_cv_prog_ac_ct_CC="$ac_prog"
2291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292     break 2
2293   fi
2294 done
2295 done
2296 IFS=$as_save_IFS
2297
2298 fi
2299 fi
2300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301 if test -n "$ac_ct_CC"; then
2302   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303 echo "${ECHO_T}$ac_ct_CC" >&6; }
2304 else
2305   { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2307 fi
2308
2309
2310   test -n "$ac_ct_CC" && break
2311 done
2312
2313   if test "x$ac_ct_CC" = x; then
2314     CC=""
2315   else
2316     case $cross_compiling:$ac_tool_warned in
2317 yes:)
2318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2319 whose name does not start with the host triplet.  If you think this
2320 configuration is useful to you, please write to autoconf@gnu.org." >&5
2321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet.  If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2324 ac_tool_warned=yes ;;
2325 esac
2326     CC=$ac_ct_CC
2327   fi
2328 fi
2329
2330 fi
2331
2332
2333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: no acceptable C compiler found in \$PATH
2336 See \`config.log' for more details." >&2;}
2337    { (exit 1); exit 1; }; }
2338
2339 # Provide some information about the compiler.
2340 echo "$as_me:$LINENO: checking for C compiler version" >&5
2341 ac_compiler=`set X $ac_compile; echo $2`
2342 { (ac_try="$ac_compiler --version >&5"
2343 case "(($ac_try" in
2344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345   *) ac_try_echo=$ac_try;;
2346 esac
2347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348   (eval "$ac_compiler --version >&5") 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }
2352 { (ac_try="$ac_compiler -v >&5"
2353 case "(($ac_try" in
2354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355   *) ac_try_echo=$ac_try;;
2356 esac
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358   (eval "$ac_compiler -v >&5") 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }
2362 { (ac_try="$ac_compiler -V >&5"
2363 case "(($ac_try" in
2364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365   *) ac_try_echo=$ac_try;;
2366 esac
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368   (eval "$ac_compiler -V >&5") 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }
2372
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h.  */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h.  */
2379
2380 int
2381 main ()
2382 {
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 ac_clean_files_save=$ac_clean_files
2389 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2390 # Try to create an executable without -o first, disregard a.out.
2391 # It will help us diagnose broken compilers, and finding out an intuition
2392 # of exeext.
2393 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2394 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2395 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 #
2397 # List of possible output files, starting from the most likely.
2398 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2399 # only as a last resort.  b.out is created by i960 compilers.
2400 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2401 #
2402 # The IRIX 6 linker writes into existing files which may not be
2403 # executable, retaining their permissions.  Remove them first so a
2404 # subsequent execution test works.
2405 ac_rmfiles=
2406 for ac_file in $ac_files
2407 do
2408   case $ac_file in
2409     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2410     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2411   esac
2412 done
2413 rm -f $ac_rmfiles
2414
2415 if { (ac_try="$ac_link_default"
2416 case "(($ac_try" in
2417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418   *) ac_try_echo=$ac_try;;
2419 esac
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421   (eval "$ac_link_default") 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; then
2425   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2427 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2428 # so that the user can short-circuit this test for compilers unknown to
2429 # Autoconf.
2430 for ac_file in $ac_files ''
2431 do
2432   test -f "$ac_file" || continue
2433   case $ac_file in
2434     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2435         ;;
2436     [ab].out )
2437         # We found the default executable, but exeext='' is most
2438         # certainly right.
2439         break;;
2440     *.* )
2441         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2442         then :; else
2443            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444         fi
2445         # We set ac_cv_exeext here because the later test for it is not
2446         # safe: cross compilers may not add the suffix if given an `-o'
2447         # argument, so we may need to know it at that point already.
2448         # Even if this section looks crufty: it has the advantage of
2449         # actually working.
2450         break;;
2451     * )
2452         break;;
2453   esac
2454 done
2455 test "$ac_cv_exeext" = no && ac_cv_exeext=
2456
2457 else
2458   ac_file=''
2459 fi
2460
2461 { echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6; }
2463 if test -z "$ac_file"; then
2464   echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&2;}
2471    { (exit 77); exit 77; }; }
2472 fi
2473
2474 ac_exeext=$ac_cv_exeext
2475
2476 # Check that the compiler produces executables we can run.  If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2481 # If not cross compiling, check that we can run a simple program.
2482 if test "$cross_compiling" != yes; then
2483   if { ac_try='./$ac_file'
2484   { (case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489   (eval "$ac_try") 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; }; then
2493     cross_compiling=no
2494   else
2495     if test "$cross_compiling" = maybe; then
2496         cross_compiling=yes
2497     else
2498         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&2;}
2504    { (exit 1); exit 1; }; }
2505     fi
2506   fi
2507 fi
2508 { echo "$as_me:$LINENO: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6; }
2510
2511 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2512 ac_clean_files=$ac_clean_files_save
2513 # Check that the compiler produces executables we can run.  If not, either
2514 # the compiler is broken, or we cross compile.
2515 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2517 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518 echo "${ECHO_T}$cross_compiling" >&6; }
2519
2520 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2522 if { (ac_try="$ac_link"
2523 case "(($ac_try" in
2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525   *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528   (eval "$ac_link") 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; then
2532   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2533 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2534 # work properly (i.e., refer to `conftest.exe'), while it won't with
2535 # `rm'.
2536 for ac_file in conftest.exe conftest conftest.*; do
2537   test -f "$ac_file" || continue
2538   case $ac_file in
2539     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2540     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2541           break;;
2542     * ) break;;
2543   esac
2544 done
2545 else
2546   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2547 See \`config.log' for more details." >&5
2548 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details." >&2;}
2550    { (exit 1); exit 1; }; }
2551 fi
2552
2553 rm -f conftest$ac_cv_exeext
2554 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2555 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2556
2557 rm -f conftest.$ac_ext
2558 EXEEXT=$ac_cv_exeext
2559 ac_exeext=$EXEEXT
2560 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2561 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2562 if test "${ac_cv_objext+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 int
2573 main ()
2574 {
2575
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.o conftest.obj
2581 if { (ac_try="$ac_compile"
2582 case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_compile") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; then
2591   for ac_file in conftest.o conftest.obj conftest.*; do
2592   test -f "$ac_file" || continue;
2593   case $ac_file in
2594     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2595     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2596        break;;
2597   esac
2598 done
2599 else
2600   echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&2;}
2607    { (exit 1); exit 1; }; }
2608 fi
2609
2610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611 fi
2612 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613 echo "${ECHO_T}$ac_cv_objext" >&6; }
2614 OBJEXT=$ac_cv_objext
2615 ac_objext=$OBJEXT
2616 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627
2628 int
2629 main ()
2630 {
2631 #ifndef __GNUC__
2632        choke me
2633 #endif
2634
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (ac_try="$ac_compile"
2641 case "(($ac_try" in
2642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643   *) ac_try_echo=$ac_try;;
2644 esac
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646   (eval "$ac_compile") 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } && {
2653          test -z "$ac_c_werror_flag" ||
2654          test ! -s conftest.err
2655        } && test -s conftest.$ac_objext; then
2656   ac_compiler_gnu=yes
2657 else
2658   echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661         ac_compiler_gnu=no
2662 fi
2663
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2666
2667 fi
2668 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2670 GCC=`test $ac_compiler_gnu = yes && echo yes`
2671 ac_test_CFLAGS=${CFLAGS+set}
2672 ac_save_CFLAGS=$CFLAGS
2673 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_cc_g+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   ac_save_c_werror_flag=$ac_c_werror_flag
2679    ac_c_werror_flag=yes
2680    ac_cv_prog_cc_g=no
2681    CFLAGS="-g"
2682    cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_compile") 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } && {
2711          test -z "$ac_c_werror_flag" ||
2712          test ! -s conftest.err
2713        } && test -s conftest.$ac_objext; then
2714   ac_cv_prog_cc_g=yes
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719         CFLAGS=""
2720       cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726
2727 int
2728 main ()
2729 {
2730
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2737 case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742   (eval "$ac_compile") 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } && {
2749          test -z "$ac_c_werror_flag" ||
2750          test ! -s conftest.err
2751        } && test -s conftest.$ac_objext; then
2752   :
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757         ac_c_werror_flag=$ac_save_c_werror_flag
2758          CFLAGS="-g"
2759          cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765
2766 int
2767 main ()
2768 {
2769
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_compile") 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } && {
2788          test -z "$ac_c_werror_flag" ||
2789          test ! -s conftest.err
2790        } && test -s conftest.$ac_objext; then
2791   ac_cv_prog_cc_g=yes
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796
2797 fi
2798
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 fi
2801
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 fi
2804
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806    ac_c_werror_flag=$ac_save_c_werror_flag
2807 fi
2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2810 if test "$ac_test_CFLAGS" = set; then
2811   CFLAGS=$ac_save_CFLAGS
2812 elif test $ac_cv_prog_cc_g = yes; then
2813   if test "$GCC" = yes; then
2814     CFLAGS="-g -O2"
2815   else
2816     CFLAGS="-g"
2817   fi
2818 else
2819   if test "$GCC" = yes; then
2820     CFLAGS="-O2"
2821   else
2822     CFLAGS=
2823   fi
2824 fi
2825 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2826 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_cc_c89+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   ac_cv_prog_cc_c89=no
2831 ac_save_CC=$CC
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838 #include <stdarg.h>
2839 #include <stdio.h>
2840 #include <sys/types.h>
2841 #include <sys/stat.h>
2842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2843 struct buf { int x; };
2844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845 static char *e (p, i)
2846      char **p;
2847      int i;
2848 {
2849   return p[i];
2850 }
2851 static char *f (char * (*g) (char **, int), char **p, ...)
2852 {
2853   char *s;
2854   va_list v;
2855   va_start (v,p);
2856   s = g (p, va_arg (v,int));
2857   va_end (v);
2858   return s;
2859 }
2860
2861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2862    function prototypes and stuff, but not '\xHH' hex character constants.
2863    These don't provoke an error unfortunately, instead are silently treated
2864    as 'x'.  The following induces an error, until -std is added to get
2865    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2866    array size at least.  It's necessary to write '\x00'==0 to get something
2867    that's true only with -std.  */
2868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869
2870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2871    inside strings and character constants.  */
2872 #define FOO(x) 'x'
2873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874
2875 int test (int i, double x);
2876 struct s1 {int (*f) (int a);};
2877 struct s2 {int (*f) (double a);};
2878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2879 int argc;
2880 char **argv;
2881 int
2882 main ()
2883 {
2884 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2890         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 do
2892   CC="$ac_save_CC $ac_arg"
2893   rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compile") 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } && {
2907          test -z "$ac_c_werror_flag" ||
2908          test ! -s conftest.err
2909        } && test -s conftest.$ac_objext; then
2910   ac_cv_prog_cc_c89=$ac_arg
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915
2916 fi
2917
2918 rm -f core conftest.err conftest.$ac_objext
2919   test "x$ac_cv_prog_cc_c89" != "xno" && break
2920 done
2921 rm -f conftest.$ac_ext
2922 CC=$ac_save_CC
2923
2924 fi
2925 # AC_CACHE_VAL
2926 case "x$ac_cv_prog_cc_c89" in
2927   x)
2928     { echo "$as_me:$LINENO: result: none needed" >&5
2929 echo "${ECHO_T}none needed" >&6; } ;;
2930   xno)
2931     { echo "$as_me:$LINENO: result: unsupported" >&5
2932 echo "${ECHO_T}unsupported" >&6; } ;;
2933   *)
2934     CC="$CC $ac_cv_prog_cc_c89"
2935     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2937 esac
2938
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945
2946 ac_ext=c
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2952 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2953 # On Suns, sometimes $CPP names a directory.
2954 if test -n "$CPP" && test -d "$CPP"; then
2955   CPP=
2956 fi
2957 if test -z "$CPP"; then
2958   if test "${ac_cv_prog_CPP+set}" = set; then
2959   echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961       # Double quotes because CPP needs to be expanded
2962     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2963     do
2964       ac_preproc_ok=false
2965 for ac_c_preproc_warn_flag in '' yes
2966 do
2967   # Use a header file that comes with gcc, so configuring glibc
2968   # with a fresh cross-compiler works.
2969   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2970   # <limits.h> exists even on freestanding compilers.
2971   # On the NeXT, cc -E runs the code through the compiler's parser,
2972   # not just through cpp. "Syntax error" is here to catch this case.
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979 #ifdef __STDC__
2980 # include <limits.h>
2981 #else
2982 # include <assert.h>
2983 #endif
2984                      Syntax error
2985 _ACEOF
2986 if { (ac_try="$ac_cpp conftest.$ac_ext"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } >/dev/null && {
2999          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3000          test ! -s conftest.err
3001        }; then
3002   :
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007   # Broken: fails on valid input.
3008 continue
3009 fi
3010
3011 rm -f conftest.err conftest.$ac_ext
3012
3013   # OK, works on sane cases.  Now check whether nonexistent headers
3014   # can be detected and how.
3015   cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021 #include <ac_nonexistent.h>
3022 _ACEOF
3023 if { (ac_try="$ac_cpp conftest.$ac_ext"
3024 case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } >/dev/null && {
3036          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3037          test ! -s conftest.err
3038        }; then
3039   # Broken: success on invalid input.
3040 continue
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045   # Passes both tests.
3046 ac_preproc_ok=:
3047 break
3048 fi
3049
3050 rm -f conftest.err conftest.$ac_ext
3051
3052 done
3053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054 rm -f conftest.err conftest.$ac_ext
3055 if $ac_preproc_ok; then
3056   break
3057 fi
3058
3059     done
3060     ac_cv_prog_CPP=$CPP
3061
3062 fi
3063   CPP=$ac_cv_prog_CPP
3064 else
3065   ac_cv_prog_CPP=$CPP
3066 fi
3067 { echo "$as_me:$LINENO: result: $CPP" >&5
3068 echo "${ECHO_T}$CPP" >&6; }
3069 ac_preproc_ok=false
3070 for ac_c_preproc_warn_flag in '' yes
3071 do
3072   # Use a header file that comes with gcc, so configuring glibc
3073   # with a fresh cross-compiler works.
3074   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075   # <limits.h> exists even on freestanding compilers.
3076   # On the NeXT, cc -E runs the code through the compiler's parser,
3077   # not just through cpp. "Syntax error" is here to catch this case.
3078   cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084 #ifdef __STDC__
3085 # include <limits.h>
3086 #else
3087 # include <assert.h>
3088 #endif
3089                      Syntax error
3090 _ACEOF
3091 if { (ac_try="$ac_cpp conftest.$ac_ext"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } >/dev/null && {
3104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105          test ! -s conftest.err
3106        }; then
3107   :
3108 else
3109   echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112   # Broken: fails on valid input.
3113 continue
3114 fi
3115
3116 rm -f conftest.err conftest.$ac_ext
3117
3118   # OK, works on sane cases.  Now check whether nonexistent headers
3119   # can be detected and how.
3120   cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126 #include <ac_nonexistent.h>
3127 _ACEOF
3128 if { (ac_try="$ac_cpp conftest.$ac_ext"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } >/dev/null && {
3141          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142          test ! -s conftest.err
3143        }; then
3144   # Broken: success on invalid input.
3145 continue
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150   # Passes both tests.
3151 ac_preproc_ok=:
3152 break
3153 fi
3154
3155 rm -f conftest.err conftest.$ac_ext
3156
3157 done
3158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159 rm -f conftest.err conftest.$ac_ext
3160 if $ac_preproc_ok; then
3161   :
3162 else
3163   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3164 See \`config.log' for more details." >&5
3165 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&2;}
3167    { (exit 1); exit 1; }; }
3168 fi
3169
3170 ac_ext=c
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175
3176
3177 # Check whether --with-linker was given.
3178 if test "${with_linker+set}" = set; then
3179   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3180 echo "${ECHO_T}LD=$withval" >&6; }
3181 LD=$withval
3182 else
3183   if test -z "$LD" ; then LD=$CC; fi
3184 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3185 echo "${ECHO_T}LD defaults to $LD" >&6; }
3186 fi
3187 export LD
3188
3189
3190 # Check whether --with-ccopts was given.
3191 if test "${with_ccopts+set}" = set; then
3192   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3193 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3194 CFLAGS=$withval
3195 fi
3196
3197
3198 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3199 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3200 if test "${ac_cv_path_GREP+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   # Extract the first word of "grep ggrep" to use in msg output
3204 if test -z "$GREP"; then
3205 set dummy grep ggrep; ac_prog_name=$2
3206 if test "${ac_cv_path_GREP+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209   ac_path_GREP_found=false
3210 # Loop through the user's path and test for each of PROGNAME-LIST
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216   for ac_prog in grep ggrep; do
3217   for ac_exec_ext in '' $ac_executable_extensions; do
3218     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3219     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3220     # Check for GNU ac_path_GREP and select it if it is found.
3221   # Check for GNU $ac_path_GREP
3222 case `"$ac_path_GREP" --version 2>&1` in
3223 *GNU*)
3224   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3225 *)
3226   ac_count=0
3227   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3228   while :
3229   do
3230     cat "conftest.in" "conftest.in" >"conftest.tmp"
3231     mv "conftest.tmp" "conftest.in"
3232     cp "conftest.in" "conftest.nl"
3233     echo 'GREP' >> "conftest.nl"
3234     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3236     ac_count=`expr $ac_count + 1`
3237     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3238       # Best one so far, save it but keep looking for a better one
3239       ac_cv_path_GREP="$ac_path_GREP"
3240       ac_path_GREP_max=$ac_count
3241     fi
3242     # 10*(2^10) chars as input seems more than enough
3243     test $ac_count -gt 10 && break
3244   done
3245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3246 esac
3247
3248
3249     $ac_path_GREP_found && break 3
3250   done
3251 done
3252
3253 done
3254 IFS=$as_save_IFS
3255
3256
3257 fi
3258
3259 GREP="$ac_cv_path_GREP"
3260 if test -z "$GREP"; then
3261   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3263    { (exit 1); exit 1; }; }
3264 fi
3265
3266 else
3267   ac_cv_path_GREP=$GREP
3268 fi
3269
3270
3271 fi
3272 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3273 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3274  GREP="$ac_cv_path_GREP"
3275
3276
3277 { echo "$as_me:$LINENO: checking for egrep" >&5
3278 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3279 if test "${ac_cv_path_EGREP+set}" = set; then
3280   echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3283    then ac_cv_path_EGREP="$GREP -E"
3284    else
3285      # Extract the first word of "egrep" to use in msg output
3286 if test -z "$EGREP"; then
3287 set dummy egrep; ac_prog_name=$2
3288 if test "${ac_cv_path_EGREP+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   ac_path_EGREP_found=false
3292 # Loop through the user's path and test for each of PROGNAME-LIST
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298   for ac_prog in egrep; do
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3301     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3302     # Check for GNU ac_path_EGREP and select it if it is found.
3303   # Check for GNU $ac_path_EGREP
3304 case `"$ac_path_EGREP" --version 2>&1` in
3305 *GNU*)
3306   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3307 *)
3308   ac_count=0
3309   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3310   while :
3311   do
3312     cat "conftest.in" "conftest.in" >"conftest.tmp"
3313     mv "conftest.tmp" "conftest.in"
3314     cp "conftest.in" "conftest.nl"
3315     echo 'EGREP' >> "conftest.nl"
3316     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3318     ac_count=`expr $ac_count + 1`
3319     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3320       # Best one so far, save it but keep looking for a better one
3321       ac_cv_path_EGREP="$ac_path_EGREP"
3322       ac_path_EGREP_max=$ac_count
3323     fi
3324     # 10*(2^10) chars as input seems more than enough
3325     test $ac_count -gt 10 && break
3326   done
3327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3328 esac
3329
3330
3331     $ac_path_EGREP_found && break 3
3332   done
3333 done
3334
3335 done
3336 IFS=$as_save_IFS
3337
3338
3339 fi
3340
3341 EGREP="$ac_cv_path_EGREP"
3342 if test -z "$EGREP"; then
3343   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3344 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3345    { (exit 1); exit 1; }; }
3346 fi
3347
3348 else
3349   ac_cv_path_EGREP=$EGREP
3350 fi
3351
3352
3353    fi
3354 fi
3355 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3356 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3357  EGREP="$ac_cv_path_EGREP"
3358
3359
3360 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3362 if test "${ac_cv_header_stdc+set}" = set; then
3363   echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #include <stdlib.h>
3372 #include <stdarg.h>
3373 #include <string.h>
3374 #include <float.h>
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_compile") 2>conftest.er1
3392   ac_status=$?
3393   grep -v '^ *+' conftest.er1 >conftest.err
3394   rm -f conftest.er1
3395   cat conftest.err >&5
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); } && {
3398          test -z "$ac_c_werror_flag" ||
3399          test ! -s conftest.err
3400        } && test -s conftest.$ac_objext; then
3401   ac_cv_header_stdc=yes
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406         ac_cv_header_stdc=no
3407 fi
3408
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410
3411 if test $ac_cv_header_stdc = yes; then
3412   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3413   cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #include <string.h>
3420
3421 _ACEOF
3422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423   $EGREP "memchr" >/dev/null 2>&1; then
3424   :
3425 else
3426   ac_cv_header_stdc=no
3427 fi
3428 rm -f conftest*
3429
3430 fi
3431
3432 if test $ac_cv_header_stdc = yes; then
3433   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <stdlib.h>
3441
3442 _ACEOF
3443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444   $EGREP "free" >/dev/null 2>&1; then
3445   :
3446 else
3447   ac_cv_header_stdc=no
3448 fi
3449 rm -f conftest*
3450
3451 fi
3452
3453 if test $ac_cv_header_stdc = yes; then
3454   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3455   if test "$cross_compiling" = yes; then
3456   :
3457 else
3458   cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #include <ctype.h>
3465 #include <stdlib.h>
3466 #if ((' ' & 0x0FF) == 0x020)
3467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3469 #else
3470 # define ISLOWER(c) \
3471                    (('a' <= (c) && (c) <= 'i') \
3472                      || ('j' <= (c) && (c) <= 'r') \
3473                      || ('s' <= (c) && (c) <= 'z'))
3474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3475 #endif
3476
3477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3478 int
3479 main ()
3480 {
3481   int i;
3482   for (i = 0; i < 256; i++)
3483     if (XOR (islower (i), ISLOWER (i))
3484         || toupper (i) != TOUPPER (i))
3485       return 2;
3486   return 0;
3487 }
3488 _ACEOF
3489 rm -f conftest$ac_exeext
3490 if { (ac_try="$ac_link"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496   (eval "$ac_link") 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3500   { (case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505   (eval "$ac_try") 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); }; }; then
3509   :
3510 else
3511   echo "$as_me: program exited with status $ac_status" >&5
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 ( exit $ac_status )
3516 ac_cv_header_stdc=no
3517 fi
3518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3519 fi
3520
3521
3522 fi
3523 fi
3524 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3525 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3526 if test $ac_cv_header_stdc = yes; then
3527
3528 cat >>confdefs.h <<\_ACEOF
3529 #define STDC_HEADERS 1
3530 _ACEOF
3531
3532 fi
3533
3534 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3545                   inttypes.h stdint.h unistd.h
3546 do
3547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h.  */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h.  */
3559 $ac_includes_default
3560
3561 #include <$ac_header>
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570   (eval "$ac_compile") 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } && {
3577          test -z "$ac_c_werror_flag" ||
3578          test ! -s conftest.err
3579        } && test -s conftest.$ac_objext; then
3580   eval "$as_ac_Header=yes"
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585         eval "$as_ac_Header=no"
3586 fi
3587
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 fi
3590 ac_res=`eval echo '${'$as_ac_Header'}'`
3591                { echo "$as_me:$LINENO: result: $ac_res" >&5
3592 echo "${ECHO_T}$ac_res" >&6; }
3593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3594   cat >>confdefs.h <<_ACEOF
3595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3596 _ACEOF
3597
3598 fi
3599
3600 done
3601
3602
3603 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3604   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3605 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3606 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 fi
3609 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3610 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3611 else
3612   # Is the header compilable?
3613 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3614 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h.  */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h.  */
3621 $ac_includes_default
3622 #include <linux/fs.h>
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631   (eval "$ac_compile") 2>conftest.er1
3632   ac_status=$?
3633   grep -v '^ *+' conftest.er1 >conftest.err
3634   rm -f conftest.er1
3635   cat conftest.err >&5
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); } && {
3638          test -z "$ac_c_werror_flag" ||
3639          test ! -s conftest.err
3640        } && test -s conftest.$ac_objext; then
3641   ac_header_compiler=yes
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646         ac_header_compiler=no
3647 fi
3648
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3651 echo "${ECHO_T}$ac_header_compiler" >&6; }
3652
3653 # Is the header present?
3654 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3655 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3656 cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 #include <linux/fs.h>
3663 _ACEOF
3664 if { (ac_try="$ac_cpp conftest.$ac_ext"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3671   ac_status=$?
3672   grep -v '^ *+' conftest.er1 >conftest.err
3673   rm -f conftest.er1
3674   cat conftest.err >&5
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } >/dev/null && {
3677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3678          test ! -s conftest.err
3679        }; then
3680   ac_header_preproc=yes
3681 else
3682   echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685   ac_header_preproc=no
3686 fi
3687
3688 rm -f conftest.err conftest.$ac_ext
3689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3690 echo "${ECHO_T}$ac_header_preproc" >&6; }
3691
3692 # So?  What about this header?
3693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3694   yes:no: )
3695     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3696 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3697     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3698 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3699     ac_header_preproc=yes
3700     ;;
3701   no:yes:* )
3702     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3703 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3704     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3705 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3706     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3707 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3708     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3709 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3710     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3711 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3712     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3713 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3714
3715     ;;
3716 esac
3717 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3718 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3719 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   ac_cv_header_linux_fs_h=$ac_header_preproc
3723 fi
3724 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3725 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3726
3727 fi
3728 if test $ac_cv_header_linux_fs_h = yes; then
3729   linux_headers=yes
3730 else
3731   linux_headers=no
3732 fi
3733
3734
3735 if test "$linux_headers" != yes; then
3736   LINUX_INCLUDE='-I$(top_builddir)/include'
3737 fi
3738
3739 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3740 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3741 if test "$GCC" = yes
3742 then
3743     case "$host_cpu" in
3744         alpha)          addcflags="-mieee" ;;
3745     esac
3746 fi
3747 if test "x$addcflags" != x
3748 then
3749     { echo "$as_me:$LINENO: result: $addcflags" >&5
3750 echo "${ECHO_T}$addcflags" >&6; }
3751     CFLAGS="$addcflags $CFLAGS"
3752 else
3753     { echo "$as_me:$LINENO: result: (none)" >&5
3754 echo "${ECHO_T}(none)" >&6; }
3755 fi
3756 LIB_EXT=.a
3757 STATIC_LIB_EXT=.a
3758 PROFILE_LIB_EXT=.a
3759
3760 # Check whether --with-ldopts was given.
3761 if test "${with_ldopts+set}" = set; then
3762   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3763 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3764 LDFLAGS=$withval
3765 fi
3766
3767
3768 # Check whether --with-root-prefix was given.
3769 if test "${with_root_prefix+set}" = set; then
3770   withval=$with_root_prefix; root_prefix=$withval
3771 else
3772   root_prefix=NONE
3773 fi
3774 # Check whether --enable-maintainer-mode was given.
3775 if test "${enable_maintainer_mode+set}" = set; then
3776   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3777 then
3778         MAINTAINER_CMT=#
3779         { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3780 echo "${ECHO_T}Disabling maintainer mode" >&6; }
3781 else
3782         MAINTAINER_CMT=
3783         { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3784 echo "${ECHO_T}Enabling maintainer mode" >&6; }
3785 fi
3786
3787 else
3788   MAINTAINER_CMT=#
3789 { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3790 echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
3791
3792 fi
3793
3794
3795 # Check whether --enable-compression was given.
3796 if test "${enable_compression+set}" = set; then
3797   enableval=$enable_compression; if test "$enableval" = "no"
3798 then
3799         { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3800 echo "${ECHO_T}Disabling compression support" >&6; }
3801 else
3802         cat >>confdefs.h <<\_ACEOF
3803 #define ENABLE_COMPRESSION 1
3804 _ACEOF
3805
3806         { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3807 echo "${ECHO_T}Enabling compression support" >&6; }
3808         { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3809 echo "$as_me: WARNING: Compression support is experimental" >&2;}
3810 fi
3811
3812 else
3813   { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3814 echo "${ECHO_T}Disabling compression support by default" >&6; }
3815
3816 fi
3817
3818 # Check whether --enable-htree was given.
3819 if test "${enable_htree+set}" = set; then
3820   enableval=$enable_htree; if test "$enableval" = "no"
3821 then
3822         HTREE_CMT=#
3823         { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3824 echo "${ECHO_T}Disabling htree directory support" >&6; }
3825 else
3826         HTREE_CMT=
3827         cat >>confdefs.h <<\_ACEOF
3828 #define ENABLE_HTREE 1
3829 _ACEOF
3830
3831         { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3832 echo "${ECHO_T}Enabling htree directory support" >&6; }
3833 fi
3834
3835 else
3836   HTREE_CMT=
3837 cat >>confdefs.h <<\_ACEOF
3838 #define ENABLE_HTREE 1
3839 _ACEOF
3840
3841 { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3842 echo "${ECHO_T}Enabling htree directory support by default" >&6; }
3843
3844 fi
3845
3846
3847 E2_PKG_CONFIG_STATIC=--static
3848 LDFLAG_DYNAMIC=
3849 PRIVATE_LIBS_CMT=
3850 # Check whether --enable-elf-shlibs was given.
3851 if test "${enable_elf_shlibs+set}" = set; then
3852   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3853 then
3854         ELF_CMT=#
3855         MAKEFILE_ELF=/dev/null
3856         { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3857 echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
3858 else
3859         E2_PKG_CONFIG_STATIC=
3860         ELF_CMT=
3861         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3862         case "$host_os" in
3863         solaris2.*)
3864                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3865         ;;
3866         esac
3867         BINARY_TYPE=elfbin
3868         LIB_EXT=.so
3869         PRIVATE_LIBS_CMT=#
3870         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
3871         { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3872 echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
3873 fi
3874
3875 else
3876   MAKEFILE_ELF=/dev/null
3877 ELF_CMT=#
3878 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3879 echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
3880
3881 fi
3882
3883
3884
3885 # Check whether --enable-bsd-shlibs was given.
3886 if test "${enable_bsd_shlibs+set}" = set; then
3887   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3888 then
3889         BSDLIB_CMT=#
3890         MAKEFILE_BSDLIB=/dev/null
3891         { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3892 echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
3893 else
3894         E2_PKG_CONFIG_STATIC=
3895         BSDLIB_CMT=
3896         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3897         LIB_EXT=.so
3898         case "$host_os" in
3899         darwin*)
3900                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3901                 LIB_EXT=.dylib
3902         ;;
3903         esac
3904         { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3905 echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
3906 fi
3907
3908 else
3909   MAKEFILE_BSDLIB=/dev/null
3910 BSDLIB_CMT=#
3911 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3912 echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
3913
3914 fi
3915
3916
3917
3918 # Check whether --enable-profile was given.
3919 if test "${enable_profile+set}" = set; then
3920   enableval=$enable_profile; if test "$enableval" = "no"
3921 then
3922         PROFILE_CMT=#
3923         MAKEFILE_PROFILE=/dev/null
3924         { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3925 echo "${ECHO_T}Disabling profiling libraries" >&6; }
3926 else
3927         PROFILE_CMT=
3928         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3929         PROFILED_LIB_EXT=_p.a
3930         { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3931 echo "${ECHO_T}Building profiling libraries" >&6; }
3932 fi
3933
3934 else
3935   PROFILE_CMT=#
3936 MAKEFILE_PROFILE=/dev/null
3937 { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3938 echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
3939
3940 fi
3941
3942
3943
3944 # Check whether --enable-checker was given.
3945 if test "${enable_checker+set}" = set; then
3946   enableval=$enable_checker; if test "$enableval" = "no"
3947 then
3948         CHECKER_CMT=#
3949         MAKEFILE_CHECKER=/dev/null
3950         { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3951 echo "${ECHO_T}Disabling checker libraries" >&6; }
3952 else
3953         CHECKER_CMT=
3954         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3955         { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3956 echo "${ECHO_T}Building checker libraries" >&6; }
3957 fi
3958
3959 else
3960   CHECKER_CMT=#
3961 MAKEFILE_CHECKER=/dev/null
3962 { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3963 echo "${ECHO_T}Disabling checker libraries by default" >&6; }
3964
3965 fi
3966
3967
3968
3969
3970
3971
3972
3973
3974 # Check whether --enable-jbd-debug was given.
3975 if test "${enable_jbd_debug+set}" = set; then
3976   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3977 then
3978         { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3979 echo "${ECHO_T}Disabling journal debugging" >&6; }
3980 else
3981         cat >>confdefs.h <<\_ACEOF
3982 #define CONFIG_JBD_DEBUG 1
3983 _ACEOF
3984
3985         { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3986 echo "${ECHO_T}Enabling journal debugging" >&6; }
3987 fi
3988
3989 else
3990   { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3991 echo "${ECHO_T}Disabling journal debugging by default" >&6; }
3992
3993 fi
3994
3995 # Check whether --enable-blkid-debug was given.
3996 if test "${enable_blkid_debug+set}" = set; then
3997   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3998 then
3999         { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4000 echo "${ECHO_T}Disabling blkid debugging" >&6; }
4001 else
4002         cat >>confdefs.h <<\_ACEOF
4003 #define CONFIG_BLKID_DEBUG 1
4004 _ACEOF
4005
4006         { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4007 echo "${ECHO_T}Enabling blkid debugging" >&6; }
4008 fi
4009
4010 else
4011   { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4012 echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
4013
4014 fi
4015
4016 # Check whether --enable-testio-debug was given.
4017 if test "${enable_testio_debug+set}" = set; then
4018   enableval=$enable_testio_debug; if test "$enableval" = "no"
4019 then
4020         { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4021 echo "${ECHO_T}Disabling testio debugging" >&6; }
4022         TEST_IO_CMT="#"
4023 else
4024         TEST_IO_CMT=
4025         cat >>confdefs.h <<\_ACEOF
4026 #define CONFIG_TESTIO_DEBUG 1
4027 _ACEOF
4028
4029         { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4030 echo "${ECHO_T}Enabling testio debugging" >&6; }
4031 fi
4032
4033 else
4034   { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4035 echo "${ECHO_T}Enabling testio debugging by default" >&6; }
4036 cat >>confdefs.h <<\_ACEOF
4037 #define CONFIG_TESTIO_DEBUG 1
4038 _ACEOF
4039
4040 TEST_IO_CMT=
4041
4042 fi
4043
4044
4045 # Check whether --enable-debugfs was given.
4046 if test "${enable_debugfs+set}" = set; then
4047   enableval=$enable_debugfs; if test "$enableval" = "no"
4048 then
4049         { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4050 echo "${ECHO_T}Disabling debugfs support" >&6; }
4051         DEBUGFS_CMT="#"
4052 else
4053         DEBUGFS_CMT=
4054         { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4055 echo "${ECHO_T}Enabling debugfs support" >&6; }
4056 fi
4057
4058 else
4059   { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4060 echo "${ECHO_T}Enabling debugfs support by default" >&6; }
4061 DEBUGFS_CMT=
4062
4063 fi
4064
4065
4066 # Check whether --enable-imager was given.
4067 if test "${enable_imager+set}" = set; then
4068   enableval=$enable_imager; if test "$enableval" = "no"
4069 then
4070         { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4071 echo "${ECHO_T}Disabling e2image support" >&6; }
4072         IMAGER_CMT="#"
4073 else
4074         IMAGER_CMT=
4075         { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4076 echo "${ECHO_T}Enabling e2image support" >&6; }
4077 fi
4078
4079 else
4080   { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4081 echo "${ECHO_T}Enabling e2image support by default" >&6; }
4082 IMAGER_CMT=
4083
4084 fi
4085
4086
4087 # Check whether --enable-resizer was given.
4088 if test "${enable_resizer+set}" = set; then
4089   enableval=$enable_resizer; if test "$enableval" = "no"
4090 then
4091         { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4092 echo "${ECHO_T}Disabling e2resize support" >&6; }
4093         RESIZER_CMT="#"
4094 else
4095         RESIZER_CMT=
4096         { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4097 echo "${ECHO_T}Enabling e2resize support" >&6; }
4098 fi
4099
4100 else
4101   { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4102 echo "${ECHO_T}Enabling e2resize support by default" >&6; }
4103 RESIZER_CMT=
4104
4105 fi
4106
4107
4108 # Check whether --enable-fsck was given.
4109 if test "${enable_fsck+set}" = set; then
4110   enableval=$enable_fsck; if test "$enableval" = "no"
4111 then
4112         FSCK_PROG='' FSCK_MAN=''
4113         { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4114 echo "${ECHO_T}Not building fsck wrapper" >&6; }
4115 else
4116         FSCK_PROG=fsck FSCK_MAN=fsck.8
4117         { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4118 echo "${ECHO_T}Building fsck wrapper" >&6; }
4119 fi
4120
4121 else
4122   case "$host_os" in
4123   gnu*)
4124     FSCK_PROG='' FSCK_MAN=''
4125     { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4126 echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
4127     ;;
4128   *)
4129     FSCK_PROG=fsck FSCK_MAN=fsck.8
4130     { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4131 echo "${ECHO_T}Building fsck wrapper by default" >&6; }
4132 esac
4133
4134 fi
4135
4136
4137
4138 # Check whether --enable-e2initrd-helper was given.
4139 if test "${enable_e2initrd_helper+set}" = set; then
4140   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4141 then
4142         E2INITRD_PROG='' E2INITRD_MAN=''
4143         { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4144 echo "${ECHO_T}Not building e2initrd helper" >&6; }
4145 else
4146         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4147         { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4148 echo "${ECHO_T}Building e2initrd helper" >&6; }
4149 fi
4150
4151 else
4152   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4153 { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4154 echo "${ECHO_T}Building e2initrd helper by default" >&6; }
4155
4156 fi
4157
4158
4159
4160 # Check whether --enable-tls was given.
4161 if test "${enable_tls+set}" = set; then
4162   enableval=$enable_tls; if test "$enableval" = "no"
4163 then
4164         try_tls=""
4165         { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4166 echo "${ECHO_T}Disabling thread local support" >&6; }
4167 else
4168         try_tls="yes"
4169         { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4170 echo "${ECHO_T}Enabling thread local support" >&6; }
4171 fi
4172
4173 else
4174   if test -n "$WITH_DIET_LIBC"
4175 then
4176         try_tls=""
4177         { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4178 echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
4179 else
4180         try_tls="yes"
4181         { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4182 echo "${ECHO_T}Try using thread local support by default" >&6; }
4183 fi
4184
4185 fi
4186
4187 if test "$try_tls" = "yes"
4188 then
4189
4190   { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4191 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4192   if test "${ac_cv_tls+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195
4196     ax_tls_keywords="__thread __declspec(thread) none"
4197     for ax_tls_keyword in $ax_tls_keywords; do
4198        case $ax_tls_keyword in
4199           none) ac_cv_tls=none ; break ;;
4200           *)
4201              cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207 #include <stdlib.h>
4208                  static void
4209                  foo(void) {
4210                  static  $ax_tls_keyword  int bar;
4211                  exit(1);
4212                  }
4213 int
4214 main ()
4215 {
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4223 case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_compile") 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } && {
4235          test -z "$ac_c_werror_flag" ||
4236          test ! -s conftest.err
4237        } && test -s conftest.$ac_objext; then
4238   ac_cv_tls=$ax_tls_keyword ; break
4239 else
4240   echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243         ac_cv_tls=none
4244
4245 fi
4246
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248           esac
4249     done
4250
4251 fi
4252
4253
4254   if test "$ac_cv_tls" != "none"; then
4255
4256 cat >>confdefs.h <<_ACEOF
4257 #define TLS $ac_cv_tls
4258 _ACEOF
4259
4260   fi
4261   { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4262 echo "${ECHO_T}$ac_cv_tls" >&6; }
4263
4264 fi
4265 # Check whether --enable-uuidd was given.
4266 if test "${enable_uuidd+set}" = set; then
4267   enableval=$enable_uuidd; if test "$enableval" = "no"
4268 then
4269         { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4270 echo "${ECHO_T}Not building uuidd" >&6; }
4271         UUIDD_CMT="#"
4272 else
4273         cat >>confdefs.h <<\_ACEOF
4274 #define USE_UUIDD 1
4275 _ACEOF
4276
4277         UUIDD_CMT=""
4278         { echo "$as_me:$LINENO: result: Building uuidd" >&5
4279 echo "${ECHO_T}Building uuidd" >&6; }
4280 fi
4281
4282 else
4283   cat >>confdefs.h <<\_ACEOF
4284 #define USE_UUIDD 1
4285 _ACEOF
4286
4287 UUIDD_CMT=""
4288 { echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4289 echo "${ECHO_T}Building uuidd by default" >&6; }
4290
4291 fi
4292
4293
4294 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4295
4296 GETTEXT_PACKAGE=e2fsprogs
4297 PACKAGE=e2fsprogs
4298 VERSION="$E2FSPROGS_VERSION"
4299 VERSION=0.14.1
4300 cat >>confdefs.h <<_ACEOF
4301 #define PACKAGE "$PACKAGE"
4302 _ACEOF
4303
4304 cat >>confdefs.h <<_ACEOF
4305 #define VERSION "$VERSION"
4306 _ACEOF
4307
4308
4309
4310
4311
4312 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4313 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4314 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4315 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   cat >conftest.make <<\_ACEOF
4319 SHELL = /bin/sh
4320 all:
4321         @echo '@@@%%%=$(MAKE)=@@@%%%'
4322 _ACEOF
4323 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4324 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4325   *@@@%%%=?*=@@@%%%*)
4326     eval ac_cv_prog_make_${ac_make}_set=yes;;
4327   *)
4328     eval ac_cv_prog_make_${ac_make}_set=no;;
4329 esac
4330 rm -f conftest.make
4331 fi
4332 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4333   { echo "$as_me:$LINENO: result: yes" >&5
4334 echo "${ECHO_T}yes" >&6; }
4335   SET_MAKE=
4336 else
4337   { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4339   SET_MAKE="MAKE=${MAKE-make}"
4340 fi
4341
4342 # Find a good install program.  We prefer a C program (faster),
4343 # so one script is as good as another.  But avoid the broken or
4344 # incompatible versions:
4345 # SysV /etc/install, /usr/sbin/install
4346 # SunOS /usr/etc/install
4347 # IRIX /sbin/install
4348 # AIX /bin/install
4349 # AmigaOS /C/install, which installs bootblocks on floppy discs
4350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4353 # OS/2's system install, which has a completely different semantic
4354 # ./install, which can be erroneously created by make from ./install.sh.
4355 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4357 if test -z "$INSTALL"; then
4358 if test "${ac_cv_path_install+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4363 do
4364   IFS=$as_save_IFS
4365   test -z "$as_dir" && as_dir=.
4366   # Account for people who put trailing slashes in PATH elements.
4367 case $as_dir/ in
4368   ./ | .// | /cC/* | \
4369   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4370   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4371   /usr/ucb/* ) ;;
4372   *)
4373     # OSF1 and SCO ODT 3.0 have their own names for install.
4374     # Don't use installbsd from OSF since it installs stuff as root
4375     # by default.
4376     for ac_prog in ginstall scoinst install; do
4377       for ac_exec_ext in '' $ac_executable_extensions; do
4378         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4379           if test $ac_prog = install &&
4380             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4381             # AIX install.  It has an incompatible calling convention.
4382             :
4383           elif test $ac_prog = install &&
4384             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4385             # program-specific install script used by HP pwplus--don't use.
4386             :
4387           else
4388             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4389             break 3
4390           fi
4391         fi
4392       done
4393     done
4394     ;;
4395 esac
4396 done
4397 IFS=$as_save_IFS
4398
4399
4400 fi
4401   if test "${ac_cv_path_install+set}" = set; then
4402     INSTALL=$ac_cv_path_install
4403   else
4404     # As a last resort, use the slow shell script.  Don't cache a
4405     # value for INSTALL within a source directory, because that will
4406     # break other packages using the cache if that directory is
4407     # removed, or if the value is a relative name.
4408     INSTALL=$ac_install_sh
4409   fi
4410 fi
4411 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4412 echo "${ECHO_T}$INSTALL" >&6; }
4413
4414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4415 # It thinks the first close brace ends the variable substitution.
4416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4417
4418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4419
4420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4421
4422
4423         MKINSTALLDIRS=
4424   if test -n "$ac_aux_dir"; then
4425     case "$ac_aux_dir" in
4426       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4427       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4428     esac
4429   fi
4430   if test -z "$MKINSTALLDIRS"; then
4431     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4432   fi
4433
4434
4435
4436   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4437 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4438     # Check whether --enable-nls was given.
4439 if test "${enable_nls+set}" = set; then
4440   enableval=$enable_nls; USE_NLS=$enableval
4441 else
4442   USE_NLS=yes
4443 fi
4444
4445   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4446 echo "${ECHO_T}$USE_NLS" >&6; }
4447
4448
4449
4450
4451
4452
4453 # Prepare PATH_SEPARATOR.
4454 # The user is always right.
4455 if test "${PATH_SEPARATOR+set}" != set; then
4456   echo "#! /bin/sh" >conf$$.sh
4457   echo  "exit 0"   >>conf$$.sh
4458   chmod +x conf$$.sh
4459   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4460     PATH_SEPARATOR=';'
4461   else
4462     PATH_SEPARATOR=:
4463   fi
4464   rm -f conf$$.sh
4465 fi
4466
4467 # Find out how to test for executable files. Don't use a zero-byte file,
4468 # as systems may use methods other than mode bits to determine executability.
4469 cat >conf$$.file <<_ASEOF
4470 #! /bin/sh
4471 exit 0
4472 _ASEOF
4473 chmod +x conf$$.file
4474 if test -x conf$$.file >/dev/null 2>&1; then
4475   ac_executable_p="test -x"
4476 else
4477   ac_executable_p="test -f"
4478 fi
4479 rm -f conf$$.file
4480
4481 # Extract the first word of "msgfmt", so it can be a program name with args.
4482 set dummy msgfmt; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_path_MSGFMT+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   case "$MSGFMT" in
4489   [\\/]* | ?:[\\/]*)
4490     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4491     ;;
4492   *)
4493     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4494     for ac_dir in $PATH; do
4495       IFS="$ac_save_IFS"
4496       test -z "$ac_dir" && ac_dir=.
4497       for ac_exec_ext in '' $ac_executable_extensions; do
4498         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4499           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4500      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4501             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4502             break 2
4503           fi
4504         fi
4505       done
4506     done
4507     IFS="$ac_save_IFS"
4508   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4509     ;;
4510 esac
4511 fi
4512 MSGFMT="$ac_cv_path_MSGFMT"
4513 if test "$MSGFMT" != ":"; then
4514   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4515 echo "${ECHO_T}$MSGFMT" >&6; }
4516 else
4517   { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4519 fi
4520
4521   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4522 set dummy gmsgfmt; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   case $GMSGFMT in
4529   [\\/]* | ?:[\\/]*)
4530   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4531   ;;
4532   *)
4533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538   for ac_exec_ext in '' $ac_executable_extensions; do
4539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542     break 2
4543   fi
4544 done
4545 done
4546 IFS=$as_save_IFS
4547
4548   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4549   ;;
4550 esac
4551 fi
4552 GMSGFMT=$ac_cv_path_GMSGFMT
4553 if test -n "$GMSGFMT"; then
4554   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4555 echo "${ECHO_T}$GMSGFMT" >&6; }
4556 else
4557   { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4559 fi
4560
4561
4562
4563
4564 # Prepare PATH_SEPARATOR.
4565 # The user is always right.
4566 if test "${PATH_SEPARATOR+set}" != set; then
4567   echo "#! /bin/sh" >conf$$.sh
4568   echo  "exit 0"   >>conf$$.sh
4569   chmod +x conf$$.sh
4570   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4571     PATH_SEPARATOR=';'
4572   else
4573     PATH_SEPARATOR=:
4574   fi
4575   rm -f conf$$.sh
4576 fi
4577
4578 # Find out how to test for executable files. Don't use a zero-byte file,
4579 # as systems may use methods other than mode bits to determine executability.
4580 cat >conf$$.file <<_ASEOF
4581 #! /bin/sh
4582 exit 0
4583 _ASEOF
4584 chmod +x conf$$.file
4585 if test -x conf$$.file >/dev/null 2>&1; then
4586   ac_executable_p="test -x"
4587 else
4588   ac_executable_p="test -f"
4589 fi
4590 rm -f conf$$.file
4591
4592 # Extract the first word of "xgettext", so it can be a program name with args.
4593 set dummy xgettext; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   case "$XGETTEXT" in
4600   [\\/]* | ?:[\\/]*)
4601     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4602     ;;
4603   *)
4604     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4605     for ac_dir in $PATH; do
4606       IFS="$ac_save_IFS"
4607       test -z "$ac_dir" && ac_dir=.
4608       for ac_exec_ext in '' $ac_executable_extensions; do
4609         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4610           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4611      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4612             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4613             break 2
4614           fi
4615         fi
4616       done
4617     done
4618     IFS="$ac_save_IFS"
4619   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4620     ;;
4621 esac
4622 fi
4623 XGETTEXT="$ac_cv_path_XGETTEXT"
4624 if test "$XGETTEXT" != ":"; then
4625   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4626 echo "${ECHO_T}$XGETTEXT" >&6; }
4627 else
4628   { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4630 fi
4631
4632     rm -f messages.po
4633
4634
4635 # Prepare PATH_SEPARATOR.
4636 # The user is always right.
4637 if test "${PATH_SEPARATOR+set}" != set; then
4638   echo "#! /bin/sh" >conf$$.sh
4639   echo  "exit 0"   >>conf$$.sh
4640   chmod +x conf$$.sh
4641   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4642     PATH_SEPARATOR=';'
4643   else
4644     PATH_SEPARATOR=:
4645   fi
4646   rm -f conf$$.sh
4647 fi
4648
4649 # Find out how to test for executable files. Don't use a zero-byte file,
4650 # as systems may use methods other than mode bits to determine executability.
4651 cat >conf$$.file <<_ASEOF
4652 #! /bin/sh
4653 exit 0
4654 _ASEOF
4655 chmod +x conf$$.file
4656 if test -x conf$$.file >/dev/null 2>&1; then
4657   ac_executable_p="test -x"
4658 else
4659   ac_executable_p="test -f"
4660 fi
4661 rm -f conf$$.file
4662
4663 # Extract the first word of "msgmerge", so it can be a program name with args.
4664 set dummy msgmerge; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   case "$MSGMERGE" in
4671   [\\/]* | ?:[\\/]*)
4672     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4673     ;;
4674   *)
4675     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4676     for ac_dir in $PATH; do
4677       IFS="$ac_save_IFS"
4678       test -z "$ac_dir" && ac_dir=.
4679       for ac_exec_ext in '' $ac_executable_extensions; do
4680         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4681           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4682             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4683             break 2
4684           fi
4685         fi
4686       done
4687     done
4688     IFS="$ac_save_IFS"
4689   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4690     ;;
4691 esac
4692 fi
4693 MSGMERGE="$ac_cv_path_MSGMERGE"
4694 if test "$MSGMERGE" != ":"; then
4695   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4696 echo "${ECHO_T}$MSGMERGE" >&6; }
4697 else
4698   { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4700 fi
4701
4702
4703       if test "$GMSGFMT" != ":"; then
4704             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4705        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4706       : ;
4707     else
4708       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4709       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4710 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4711       GMSGFMT=":"
4712     fi
4713   fi
4714
4715       if test "$XGETTEXT" != ":"; then
4716             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4717        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4718       : ;
4719     else
4720       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4721 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4722       XGETTEXT=":"
4723     fi
4724         rm -f messages.po
4725   fi
4726
4727   ac_config_commands="$ac_config_commands default-1"
4728
4729
4730 if test -n "$ac_tool_prefix"; then
4731   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_RANLIB+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   if test -n "$RANLIB"; then
4739   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746   for ac_exec_ext in '' $ac_executable_extensions; do
4747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753 done
4754 IFS=$as_save_IFS
4755
4756 fi
4757 fi
4758 RANLIB=$ac_cv_prog_RANLIB
4759 if test -n "$RANLIB"; then
4760   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4761 echo "${ECHO_T}$RANLIB" >&6; }
4762 else
4763   { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4765 fi
4766
4767
4768 fi
4769 if test -z "$ac_cv_prog_RANLIB"; then
4770   ac_ct_RANLIB=$RANLIB
4771   # Extract the first word of "ranlib", so it can be a program name with args.
4772 set dummy ranlib; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   if test -n "$ac_ct_RANLIB"; then
4779   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786   for ac_exec_ext in '' $ac_executable_extensions; do
4787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788     ac_cv_prog_ac_ct_RANLIB="ranlib"
4789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793 done
4794 IFS=$as_save_IFS
4795
4796 fi
4797 fi
4798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4799 if test -n "$ac_ct_RANLIB"; then
4800   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4801 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4802 else
4803   { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4805 fi
4806
4807   if test "x$ac_ct_RANLIB" = x; then
4808     RANLIB=":"
4809   else
4810     case $cross_compiling:$ac_tool_warned in
4811 yes:)
4812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4813 whose name does not start with the host triplet.  If you think this
4814 configuration is useful to you, please write to autoconf@gnu.org." >&5
4815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4816 whose name does not start with the host triplet.  If you think this
4817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820     RANLIB=$ac_ct_RANLIB
4821   fi
4822 else
4823   RANLIB="$ac_cv_prog_RANLIB"
4824 fi
4825
4826
4827         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4828 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4829 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   ac_check_lib_save_LIBS=$LIBS
4833 LIBS="-lcposix  $LIBS"
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h.  */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h.  */
4840
4841 /* Override any GCC internal prototype to avoid an error.
4842    Use char because int might match the return type of a GCC
4843    builtin and then its argument prototype would still apply.  */
4844 #ifdef __cplusplus
4845 extern "C"
4846 #endif
4847 char strerror ();
4848 int
4849 main ()
4850 {
4851 return strerror ();
4852   ;
4853   return 0;
4854 }
4855 _ACEOF
4856 rm -f conftest.$ac_objext conftest$ac_exeext
4857 if { (ac_try="$ac_link"
4858 case "(($ac_try" in
4859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860   *) ac_try_echo=$ac_try;;
4861 esac
4862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863   (eval "$ac_link") 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } && {
4870          test -z "$ac_c_werror_flag" ||
4871          test ! -s conftest.err
4872        } && test -s conftest$ac_exeext &&
4873        $as_test_x conftest$ac_exeext; then
4874   ac_cv_lib_cposix_strerror=yes
4875 else
4876   echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4878
4879         ac_cv_lib_cposix_strerror=no
4880 fi
4881
4882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4883       conftest$ac_exeext conftest.$ac_ext
4884 LIBS=$ac_check_lib_save_LIBS
4885 fi
4886 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4887 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4888 if test $ac_cv_lib_cposix_strerror = yes; then
4889   LIBS="$LIBS -lcposix"
4890 fi
4891
4892
4893
4894 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4895 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4896 if test "${ac_cv_c_const+set}" = set; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899   cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h.  */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h.  */
4905
4906 int
4907 main ()
4908 {
4909 /* FIXME: Include the comments suggested by Paul. */
4910 #ifndef __cplusplus
4911   /* Ultrix mips cc rejects this.  */
4912   typedef int charset[2];
4913   const charset cs;
4914   /* SunOS 4.1.1 cc rejects this.  */
4915   char const *const *pcpcc;
4916   char **ppc;
4917   /* NEC SVR4.0.2 mips cc rejects this.  */
4918   struct point {int x, y;};
4919   static struct point const zero = {0,0};
4920   /* AIX XL C 1.02.0.0 rejects this.
4921      It does not let you subtract one const X* pointer from another in
4922      an arm of an if-expression whose if-part is not a constant
4923      expression */
4924   const char *g = "string";
4925   pcpcc = &g + (g ? g-g : 0);
4926   /* HPUX 7.0 cc rejects these. */
4927   ++pcpcc;
4928   ppc = (char**) pcpcc;
4929   pcpcc = (char const *const *) ppc;
4930   { /* SCO 3.2v4 cc rejects this.  */
4931     char *t;
4932     char const *s = 0 ? (char *) 0 : (char const *) 0;
4933
4934     *t++ = 0;
4935     if (s) return 0;
4936   }
4937   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4938     int x[] = {25, 17};
4939     const int *foo = &x[0];
4940     ++foo;
4941   }
4942   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4943     typedef const int *iptr;
4944     iptr p = 0;
4945     ++p;
4946   }
4947   { /* AIX XL C 1.02.0.0 rejects this saying
4948        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4949     struct s { int j; const int *ap[3]; };
4950     struct s *b; b->j = 5;
4951   }
4952   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4953     const int foo = 10;
4954     if (!foo) return 0;
4955   }
4956   return !cs[0] && !zero.x;
4957 #endif
4958
4959   ;
4960   return 0;
4961 }
4962 _ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4965 case "(($ac_try" in
4966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967   *) ac_try_echo=$ac_try;;
4968 esac
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970   (eval "$ac_compile") 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } && {
4977          test -z "$ac_c_werror_flag" ||
4978          test ! -s conftest.err
4979        } && test -s conftest.$ac_objext; then
4980   ac_cv_c_const=yes
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985         ac_cv_c_const=no
4986 fi
4987
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 fi
4990 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4991 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4992 if test $ac_cv_c_const = no; then
4993
4994 cat >>confdefs.h <<\_ACEOF
4995 #define const
4996 _ACEOF
4997
4998 fi
4999
5000
5001   { echo "$as_me:$LINENO: checking for signed" >&5
5002 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5003 if test "${bh_cv_c_signed+set}" = set; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012
5013 int
5014 main ()
5015 {
5016 signed char x;
5017   ;
5018   return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (ac_try="$ac_compile"
5023 case "(($ac_try" in
5024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025   *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028   (eval "$ac_compile") 2>conftest.er1
5029   ac_status=$?
5030   grep -v '^ *+' conftest.er1 >conftest.err
5031   rm -f conftest.er1
5032   cat conftest.err >&5
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } && {
5035          test -z "$ac_c_werror_flag" ||
5036          test ! -s conftest.err
5037        } && test -s conftest.$ac_objext; then
5038   bh_cv_c_signed=yes
5039 else
5040   echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5042
5043         bh_cv_c_signed=no
5044 fi
5045
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 fi
5048 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5049 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5050   if test $bh_cv_c_signed = no; then
5051
5052 cat >>confdefs.h <<\_ACEOF
5053 #define signed
5054 _ACEOF
5055
5056   fi
5057
5058 { echo "$as_me:$LINENO: checking for inline" >&5
5059 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5060 if test "${ac_cv_c_inline+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   ac_cv_c_inline=no
5064 for ac_kw in inline __inline__ __inline; do
5065   cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h.  */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h.  */
5071 #ifndef __cplusplus
5072 typedef int foo_t;
5073 static $ac_kw foo_t static_foo () {return 0; }
5074 $ac_kw foo_t foo () {return 0; }
5075 #endif
5076
5077 _ACEOF
5078 rm -f conftest.$ac_objext
5079 if { (ac_try="$ac_compile"
5080 case "(($ac_try" in
5081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082   *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085   (eval "$ac_compile") 2>conftest.er1
5086   ac_status=$?
5087   grep -v '^ *+' conftest.er1 >conftest.err
5088   rm -f conftest.er1
5089   cat conftest.err >&5
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); } && {
5092          test -z "$ac_c_werror_flag" ||
5093          test ! -s conftest.err
5094        } && test -s conftest.$ac_objext; then
5095   ac_cv_c_inline=$ac_kw
5096 else
5097   echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100
5101 fi
5102
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104   test "$ac_cv_c_inline" != no && break
5105 done
5106
5107 fi
5108 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5109 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5110
5111
5112 case $ac_cv_c_inline in
5113   inline | yes) ;;
5114   *)
5115     case $ac_cv_c_inline in
5116       no) ac_val=;;
5117       *) ac_val=$ac_cv_c_inline;;
5118     esac
5119     cat >>confdefs.h <<_ACEOF
5120 #ifndef __cplusplus
5121 #define inline $ac_val
5122 #endif
5123 _ACEOF
5124     ;;
5125 esac
5126
5127 { echo "$as_me:$LINENO: checking for off_t" >&5
5128 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5129 if test "${ac_cv_type_off_t+set}" = set; then
5130   echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132   cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h.  */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h.  */
5138 $ac_includes_default
5139 typedef off_t ac__type_new_;
5140 int
5141 main ()
5142 {
5143 if ((ac__type_new_ *) 0)
5144   return 0;
5145 if (sizeof (ac__type_new_))
5146   return 0;
5147   ;
5148   return 0;
5149 }
5150 _ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (ac_try="$ac_compile"
5153 case "(($ac_try" in
5154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155   *) ac_try_echo=$ac_try;;
5156 esac
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158   (eval "$ac_compile") 2>conftest.er1
5159   ac_status=$?
5160   grep -v '^ *+' conftest.er1 >conftest.err
5161   rm -f conftest.er1
5162   cat conftest.err >&5
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } && {
5165          test -z "$ac_c_werror_flag" ||
5166          test ! -s conftest.err
5167        } && test -s conftest.$ac_objext; then
5168   ac_cv_type_off_t=yes
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173         ac_cv_type_off_t=no
5174 fi
5175
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 fi
5178 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5179 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5180 if test $ac_cv_type_off_t = yes; then
5181   :
5182 else
5183
5184 cat >>confdefs.h <<_ACEOF
5185 #define off_t long int
5186 _ACEOF
5187
5188 fi
5189
5190 { echo "$as_me:$LINENO: checking for size_t" >&5
5191 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5192 if test "${ac_cv_type_size_t+set}" = set; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195   cat >conftest.$ac_ext <<_ACEOF
5196 /* confdefs.h.  */
5197 _ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h.  */
5201 $ac_includes_default
5202 typedef size_t ac__type_new_;
5203 int
5204 main ()
5205 {
5206 if ((ac__type_new_ *) 0)
5207   return 0;
5208 if (sizeof (ac__type_new_))
5209   return 0;
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 rm -f conftest.$ac_objext
5215 if { (ac_try="$ac_compile"
5216 case "(($ac_try" in
5217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218   *) ac_try_echo=$ac_try;;
5219 esac
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221   (eval "$ac_compile") 2>conftest.er1
5222   ac_status=$?
5223   grep -v '^ *+' conftest.er1 >conftest.err
5224   rm -f conftest.er1
5225   cat conftest.err >&5
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); } && {
5228          test -z "$ac_c_werror_flag" ||
5229          test ! -s conftest.err
5230        } && test -s conftest.$ac_objext; then
5231   ac_cv_type_size_t=yes
5232 else
5233   echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5235
5236         ac_cv_type_size_t=no
5237 fi
5238
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 fi
5241 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5242 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5243 if test $ac_cv_type_size_t = yes; then
5244   :
5245 else
5246
5247 cat >>confdefs.h <<_ACEOF
5248 #define size_t unsigned int
5249 _ACEOF
5250
5251 fi
5252
5253
5254   { echo "$as_me:$LINENO: checking for long long" >&5
5255 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5256 if test "${ac_cv_type_long_long+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265 long long ll = 1LL; int i = 63;
5266 int
5267 main ()
5268 {
5269 long long llmax = (long long) -1;
5270      return ll << i | ll >> i | llmax / ll | llmax % ll;
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext conftest$ac_exeext
5276 if { (ac_try="$ac_link"
5277 case "(($ac_try" in
5278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279   *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282   (eval "$ac_link") 2>conftest.er1
5283   ac_status=$?
5284   grep -v '^ *+' conftest.er1 >conftest.err
5285   rm -f conftest.er1
5286   cat conftest.err >&5
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } && {
5289          test -z "$ac_c_werror_flag" ||
5290          test ! -s conftest.err
5291        } && test -s conftest$ac_exeext &&
5292        $as_test_x conftest$ac_exeext; then
5293   ac_cv_type_long_long=yes
5294 else
5295   echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5297
5298         ac_cv_type_long_long=no
5299 fi
5300
5301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5302       conftest$ac_exeext conftest.$ac_ext
5303 fi
5304 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5305 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5306   if test $ac_cv_type_long_long = yes; then
5307
5308 cat >>confdefs.h <<\_ACEOF
5309 #define HAVE_LONG_LONG 1
5310 _ACEOF
5311
5312   fi
5313
5314
5315   { echo "$as_me:$LINENO: checking for long double" >&5
5316 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5317 if test "${gt_cv_c_long_double+set}" = set; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320   if test "$GCC" = yes; then
5321        gt_cv_c_long_double=yes
5322      else
5323        cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329
5330          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5331          long double foo = 0.0;
5332          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5333          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5334
5335 int
5336 main ()
5337 {
5338
5339   ;
5340   return 0;
5341 }
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (ac_try="$ac_compile"
5345 case "(($ac_try" in
5346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347   *) ac_try_echo=$ac_try;;
5348 esac
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350   (eval "$ac_compile") 2>conftest.er1
5351   ac_status=$?
5352   grep -v '^ *+' conftest.er1 >conftest.err
5353   rm -f conftest.er1
5354   cat conftest.err >&5
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); } && {
5357          test -z "$ac_c_werror_flag" ||
5358          test ! -s conftest.err
5359        } && test -s conftest.$ac_objext; then
5360   gt_cv_c_long_double=yes
5361 else
5362   echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365         gt_cv_c_long_double=no
5366 fi
5367
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369      fi
5370 fi
5371 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5372 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5373   if test $gt_cv_c_long_double = yes; then
5374
5375 cat >>confdefs.h <<\_ACEOF
5376 #define HAVE_LONG_DOUBLE 1
5377 _ACEOF
5378
5379   fi
5380
5381
5382   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5383 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5384 if test "${gt_cv_c_wchar_t+set}" = set; then
5385   echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387   cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h.  */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h.  */
5393 #include <stddef.h>
5394        wchar_t foo = (wchar_t)'\0';
5395 int
5396 main ()
5397 {
5398
5399   ;
5400   return 0;
5401 }
5402 _ACEOF
5403 rm -f conftest.$ac_objext
5404 if { (ac_try="$ac_compile"
5405 case "(($ac_try" in
5406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407   *) ac_try_echo=$ac_try;;
5408 esac
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410   (eval "$ac_compile") 2>conftest.er1
5411   ac_status=$?
5412   grep -v '^ *+' conftest.er1 >conftest.err
5413   rm -f conftest.er1
5414   cat conftest.err >&5
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } && {
5417          test -z "$ac_c_werror_flag" ||
5418          test ! -s conftest.err
5419        } && test -s conftest.$ac_objext; then
5420   gt_cv_c_wchar_t=yes
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425         gt_cv_c_wchar_t=no
5426 fi
5427
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 fi
5430 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5431 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5432   if test $gt_cv_c_wchar_t = yes; then
5433
5434 cat >>confdefs.h <<\_ACEOF
5435 #define HAVE_WCHAR_T 1
5436 _ACEOF
5437
5438   fi
5439
5440
5441   { echo "$as_me:$LINENO: checking for wint_t" >&5
5442 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5443 if test "${gt_cv_c_wint_t+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h.  */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h.  */
5452 #include <wchar.h>
5453        wint_t foo = (wchar_t)'\0';
5454 int
5455 main ()
5456 {
5457
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5464 case "(($ac_try" in
5465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466   *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469   (eval "$ac_compile") 2>conftest.er1
5470   ac_status=$?
5471   grep -v '^ *+' conftest.er1 >conftest.err
5472   rm -f conftest.er1
5473   cat conftest.err >&5
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); } && {
5476          test -z "$ac_c_werror_flag" ||
5477          test ! -s conftest.err
5478        } && test -s conftest.$ac_objext; then
5479   gt_cv_c_wint_t=yes
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484         gt_cv_c_wint_t=no
5485 fi
5486
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5490 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5491   if test $gt_cv_c_wint_t = yes; then
5492
5493 cat >>confdefs.h <<\_ACEOF
5494 #define HAVE_WINT_T 1
5495 _ACEOF
5496
5497   fi
5498
5499
5500   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5501 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5502 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5503   echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505   cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511 #include <sys/types.h>
5512 #include <inttypes.h>
5513 int
5514 main ()
5515 {
5516 uintmax_t i = (uintmax_t) -1;
5517   ;
5518   return 0;
5519 }
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5523 case "(($ac_try" in
5524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525   *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528   (eval "$ac_compile") 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } && {
5535          test -z "$ac_c_werror_flag" ||
5536          test ! -s conftest.err
5537        } && test -s conftest.$ac_objext; then
5538   jm_ac_cv_header_inttypes_h=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543         jm_ac_cv_header_inttypes_h=no
5544 fi
5545
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 fi
5548 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5549 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5550   if test $jm_ac_cv_header_inttypes_h = yes; then
5551
5552 cat >>confdefs.h <<_ACEOF
5553 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5554 _ACEOF
5555
5556   fi
5557
5558
5559   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5560 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5561 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5562   echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564   cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h.  */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h.  */
5570 #include <sys/types.h>
5571 #include <stdint.h>
5572 int
5573 main ()
5574 {
5575 uintmax_t i = (uintmax_t) -1;
5576   ;
5577   return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587   (eval "$ac_compile") 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } && {
5594          test -z "$ac_c_werror_flag" ||
5595          test ! -s conftest.err
5596        } && test -s conftest.$ac_objext; then
5597   jm_ac_cv_header_stdint_h=yes
5598 else
5599   echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5601
5602         jm_ac_cv_header_stdint_h=no
5603 fi
5604
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 fi
5607 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5608 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5609   if test $jm_ac_cv_header_stdint_h = yes; then
5610
5611 cat >>confdefs.h <<_ACEOF
5612 #define HAVE_STDINT_H_WITH_UINTMAX 1
5613 _ACEOF
5614
5615   fi
5616
5617
5618
5619
5620   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5621 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5622 if test "${gt_cv_c_intmax_t+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h.  */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h.  */
5631
5632 #include <stddef.h>
5633 #include <stdlib.h>
5634 #if HAVE_STDINT_H_WITH_UINTMAX
5635 #include <stdint.h>
5636 #endif
5637 #if HAVE_INTTYPES_H_WITH_UINTMAX
5638 #include <inttypes.h>
5639 #endif
5640
5641 int
5642 main ()
5643 {
5644 intmax_t x = -1;
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (ac_try="$ac_compile"
5651 case "(($ac_try" in
5652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653   *) ac_try_echo=$ac_try;;
5654 esac
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656   (eval "$ac_compile") 2>conftest.er1
5657   ac_status=$?
5658   grep -v '^ *+' conftest.er1 >conftest.err
5659   rm -f conftest.er1
5660   cat conftest.err >&5
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); } && {
5663          test -z "$ac_c_werror_flag" ||
5664          test ! -s conftest.err
5665        } && test -s conftest.$ac_objext; then
5666   gt_cv_c_intmax_t=yes
5667 else
5668   echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5670
5671         gt_cv_c_intmax_t=no
5672 fi
5673
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 fi
5676 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5677 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5678   if test $gt_cv_c_intmax_t = yes; then
5679
5680 cat >>confdefs.h <<\_ACEOF
5681 #define HAVE_INTMAX_T 1
5682 _ACEOF
5683
5684   fi
5685
5686
5687
5688   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5689 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5690 if test "${gt_cv_func_printf_posix+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693
5694       if test "$cross_compiling" = yes; then
5695
5696         cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h.  */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h.  */
5702
5703 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5704   notposix
5705 #endif
5706
5707 _ACEOF
5708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709   $EGREP "notposix" >/dev/null 2>&1; then
5710   gt_cv_func_printf_posix="guessing no"
5711 else
5712   gt_cv_func_printf_posix="guessing yes"
5713 fi
5714 rm -f conftest*
5715
5716
5717 else
5718   cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h.  */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h.  */
5724
5725 #include <stdio.h>
5726 #include <string.h>
5727 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5728    dollar expansion (possibly an autoconf bug).  */
5729 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5730 static char buf[100];
5731 int main ()
5732 {
5733   sprintf (buf, format, 33, 55);
5734   return (strcmp (buf, "55 33") != 0);
5735 }
5736 _ACEOF
5737 rm -f conftest$ac_exeext
5738 if { (ac_try="$ac_link"
5739 case "(($ac_try" in
5740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741   *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744   (eval "$ac_link") 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5748   { (case "(($ac_try" in
5749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750   *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753   (eval "$ac_try") 2>&5
5754   ac_status=$?
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); }; }; then
5757   gt_cv_func_printf_posix=yes
5758 else
5759   echo "$as_me: program exited with status $ac_status" >&5
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 ( exit $ac_status )
5764 gt_cv_func_printf_posix=no
5765 fi
5766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5767 fi
5768
5769
5770
5771 fi
5772 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5773 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5774   case $gt_cv_func_printf_posix in
5775     *yes)
5776
5777 cat >>confdefs.h <<\_ACEOF
5778 #define HAVE_POSIX_PRINTF 1
5779 _ACEOF
5780
5781       ;;
5782   esac
5783
5784 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5785 # for constant arguments.  Useless!
5786 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5787 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5788 if test "${ac_cv_working_alloca_h+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h.  */
5797 #include <alloca.h>
5798 int
5799 main ()
5800 {
5801 char *p = (char *) alloca (2 * sizeof (int));
5802                           if (p) return 0;
5803   ;
5804   return 0;
5805 }
5806 _ACEOF
5807 rm -f conftest.$ac_objext conftest$ac_exeext
5808 if { (ac_try="$ac_link"
5809 case "(($ac_try" in
5810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811   *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814   (eval "$ac_link") 2>conftest.er1
5815   ac_status=$?
5816   grep -v '^ *+' conftest.er1 >conftest.err
5817   rm -f conftest.er1
5818   cat conftest.err >&5
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); } && {
5821          test -z "$ac_c_werror_flag" ||
5822          test ! -s conftest.err
5823        } && test -s conftest$ac_exeext &&
5824        $as_test_x conftest$ac_exeext; then
5825   ac_cv_working_alloca_h=yes
5826 else
5827   echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830         ac_cv_working_alloca_h=no
5831 fi
5832
5833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5834       conftest$ac_exeext conftest.$ac_ext
5835 fi
5836 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5837 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5838 if test $ac_cv_working_alloca_h = yes; then
5839
5840 cat >>confdefs.h <<\_ACEOF
5841 #define HAVE_ALLOCA_H 1
5842 _ACEOF
5843
5844 fi
5845
5846 { echo "$as_me:$LINENO: checking for alloca" >&5
5847 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5848 if test "${ac_cv_func_alloca_works+set}" = set; then
5849   echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851   cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h.  */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h.  */
5857 #ifdef __GNUC__
5858 # define alloca __builtin_alloca
5859 #else
5860 # ifdef _MSC_VER
5861 #  include <malloc.h>
5862 #  define alloca _alloca
5863 # else
5864 #  ifdef HAVE_ALLOCA_H
5865 #   include <alloca.h>
5866 #  else
5867 #   ifdef _AIX
5868  #pragma alloca
5869 #   else
5870 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5871 char *alloca ();
5872 #    endif
5873 #   endif
5874 #  endif
5875 # endif
5876 #endif
5877
5878 int
5879 main ()
5880 {
5881 char *p = (char *) alloca (1);
5882                                     if (p) return 0;
5883   ;
5884   return 0;
5885 }
5886 _ACEOF
5887 rm -f conftest.$ac_objext conftest$ac_exeext
5888 if { (ac_try="$ac_link"
5889 case "(($ac_try" in
5890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891   *) ac_try_echo=$ac_try;;
5892 esac
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894   (eval "$ac_link") 2>conftest.er1
5895   ac_status=$?
5896   grep -v '^ *+' conftest.er1 >conftest.err
5897   rm -f conftest.er1
5898   cat conftest.err >&5
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); } && {
5901          test -z "$ac_c_werror_flag" ||
5902          test ! -s conftest.err
5903        } && test -s conftest$ac_exeext &&
5904        $as_test_x conftest$ac_exeext; then
5905   ac_cv_func_alloca_works=yes
5906 else
5907   echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910         ac_cv_func_alloca_works=no
5911 fi
5912
5913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5914       conftest$ac_exeext conftest.$ac_ext
5915 fi
5916 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5917 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5918
5919 if test $ac_cv_func_alloca_works = yes; then
5920
5921 cat >>confdefs.h <<\_ACEOF
5922 #define HAVE_ALLOCA 1
5923 _ACEOF
5924
5925 else
5926   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5927 # that cause trouble.  Some versions do not even contain alloca or
5928 # contain a buggy version.  If you still want to use their alloca,
5929 # use ar to extract alloca.o from them instead of compiling alloca.c.
5930
5931 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5932
5933 cat >>confdefs.h <<\_ACEOF
5934 #define C_ALLOCA 1
5935 _ACEOF
5936
5937
5938 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5939 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5940 if test "${ac_cv_os_cray+set}" = set; then
5941   echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943   cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h.  */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h.  */
5949 #if defined CRAY && ! defined CRAY2
5950 webecray
5951 #else
5952 wenotbecray
5953 #endif
5954
5955 _ACEOF
5956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5957   $EGREP "webecray" >/dev/null 2>&1; then
5958   ac_cv_os_cray=yes
5959 else
5960   ac_cv_os_cray=no
5961 fi
5962 rm -f conftest*
5963
5964 fi
5965 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5966 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5967 if test $ac_cv_os_cray = yes; then
5968   for ac_func in _getb67 GETB67 getb67; do
5969     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5983 #define $ac_func innocuous_$ac_func
5984
5985 /* System header to define __stub macros and hopefully few prototypes,
5986     which can conflict with char $ac_func (); below.
5987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988     <limits.h> exists even on freestanding compilers.  */
5989
5990 #ifdef __STDC__
5991 # include <limits.h>
5992 #else
5993 # include <assert.h>
5994 #endif
5995
5996 #undef $ac_func
5997
5998 /* Override any GCC internal prototype to avoid an error.
5999    Use char because int might match the return type of a GCC
6000    builtin and then its argument prototype would still apply.  */
6001 #ifdef __cplusplus
6002 extern "C"
6003 #endif
6004 char $ac_func ();
6005 /* The GNU C library defines this for functions which it implements
6006     to always fail with ENOSYS.  Some functions are actually named
6007     something starting with __ and the normal name is an alias.  */
6008 #if defined __stub_$ac_func || defined __stub___$ac_func
6009 choke me
6010 #endif
6011
6012 int
6013 main ()
6014 {
6015 return $ac_func ();
6016   ;
6017   return 0;
6018 }
6019 _ACEOF
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (ac_try="$ac_link"
6022 case "(($ac_try" in
6023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024   *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027   (eval "$ac_link") 2>conftest.er1
6028   ac_status=$?
6029   grep -v '^ *+' conftest.er1 >conftest.err
6030   rm -f conftest.er1
6031   cat conftest.err >&5
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); } && {
6034          test -z "$ac_c_werror_flag" ||
6035          test ! -s conftest.err
6036        } && test -s conftest$ac_exeext &&
6037        $as_test_x conftest$ac_exeext; then
6038   eval "$as_ac_var=yes"
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043         eval "$as_ac_var=no"
6044 fi
6045
6046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6047       conftest$ac_exeext conftest.$ac_ext
6048 fi
6049 ac_res=`eval echo '${'$as_ac_var'}'`
6050                { echo "$as_me:$LINENO: result: $ac_res" >&5
6051 echo "${ECHO_T}$ac_res" >&6; }
6052 if test `eval echo '${'$as_ac_var'}'` = yes; then
6053
6054 cat >>confdefs.h <<_ACEOF
6055 #define CRAY_STACKSEG_END $ac_func
6056 _ACEOF
6057
6058     break
6059 fi
6060
6061   done
6062 fi
6063
6064 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6065 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6066 if test "${ac_cv_c_stack_direction+set}" = set; then
6067   echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069   if test "$cross_compiling" = yes; then
6070   ac_cv_c_stack_direction=0
6071 else
6072   cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h.  */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h.  */
6078 $ac_includes_default
6079 int
6080 find_stack_direction ()
6081 {
6082   static char *addr = 0;
6083   auto char dummy;
6084   if (addr == 0)
6085     {
6086       addr = &dummy;
6087       return find_stack_direction ();
6088     }
6089   else
6090     return (&dummy > addr) ? 1 : -1;
6091 }
6092
6093 int
6094 main ()
6095 {
6096   return find_stack_direction () < 0;
6097 }
6098 _ACEOF
6099 rm -f conftest$ac_exeext
6100 if { (ac_try="$ac_link"
6101 case "(($ac_try" in
6102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103   *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106   (eval "$ac_link") 2>&5
6107   ac_status=$?
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6110   { (case "(($ac_try" in
6111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112   *) ac_try_echo=$ac_try;;
6113 esac
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115   (eval "$ac_try") 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }; }; then
6119   ac_cv_c_stack_direction=1
6120 else
6121   echo "$as_me: program exited with status $ac_status" >&5
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 ( exit $ac_status )
6126 ac_cv_c_stack_direction=-1
6127 fi
6128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6129 fi
6130
6131
6132 fi
6133 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6134 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6135
6136 cat >>confdefs.h <<_ACEOF
6137 #define STACK_DIRECTION $ac_cv_c_stack_direction
6138 _ACEOF
6139
6140
6141 fi
6142
6143
6144
6145 for ac_header in stdlib.h unistd.h
6146 do
6147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6149   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 fi
6154 ac_res=`eval echo '${'$as_ac_Header'}'`
6155                { echo "$as_me:$LINENO: result: $ac_res" >&5
6156 echo "${ECHO_T}$ac_res" >&6; }
6157 else
6158   # Is the header compilable?
6159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h.  */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h.  */
6167 $ac_includes_default
6168 #include <$ac_header>
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6172 case "(($ac_try" in
6173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174   *) ac_try_echo=$ac_try;;
6175 esac
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177   (eval "$ac_compile") 2>conftest.er1
6178   ac_status=$?
6179   grep -v '^ *+' conftest.er1 >conftest.err
6180   rm -f conftest.er1
6181   cat conftest.err >&5
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } && {
6184          test -z "$ac_c_werror_flag" ||
6185          test ! -s conftest.err
6186        } && test -s conftest.$ac_objext; then
6187   ac_header_compiler=yes
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192         ac_header_compiler=no
6193 fi
6194
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6197 echo "${ECHO_T}$ac_header_compiler" >&6; }
6198
6199 # Is the header present?
6200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h.  */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h.  */
6208 #include <$ac_header>
6209 _ACEOF
6210 if { (ac_try="$ac_cpp conftest.$ac_ext"
6211 case "(($ac_try" in
6212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213   *) ac_try_echo=$ac_try;;
6214 esac
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6217   ac_status=$?
6218   grep -v '^ *+' conftest.er1 >conftest.err
6219   rm -f conftest.er1
6220   cat conftest.err >&5
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); } >/dev/null && {
6223          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6224          test ! -s conftest.err
6225        }; then
6226   ac_header_preproc=yes
6227 else
6228   echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6230
6231   ac_header_preproc=no
6232 fi
6233
6234 rm -f conftest.err conftest.$ac_ext
6235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6236 echo "${ECHO_T}$ac_header_preproc" >&6; }
6237
6238 # So?  What about this header?
6239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6240   yes:no: )
6241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6245     ac_header_preproc=yes
6246     ;;
6247   no:yes:* )
6248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6260
6261     ;;
6262 esac
6263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6266   echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268   eval "$as_ac_Header=\$ac_header_preproc"
6269 fi
6270 ac_res=`eval echo '${'$as_ac_Header'}'`
6271                { echo "$as_me:$LINENO: result: $ac_res" >&5
6272 echo "${ECHO_T}$ac_res" >&6; }
6273
6274 fi
6275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6276   cat >>confdefs.h <<_ACEOF
6277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6278 _ACEOF
6279
6280 fi
6281
6282 done
6283
6284
6285 for ac_func in getpagesize
6286 do
6287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h.  */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h.  */
6299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6301 #define $ac_func innocuous_$ac_func
6302
6303 /* System header to define __stub macros and hopefully few prototypes,
6304     which can conflict with char $ac_func (); below.
6305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6306     <limits.h> exists even on freestanding compilers.  */
6307
6308 #ifdef __STDC__
6309 # include <limits.h>
6310 #else
6311 # include <assert.h>
6312 #endif
6313
6314 #undef $ac_func
6315
6316 /* Override any GCC internal prototype to avoid an error.
6317    Use char because int might match the return type of a GCC
6318    builtin and then its argument prototype would still apply.  */
6319 #ifdef __cplusplus
6320 extern "C"
6321 #endif
6322 char $ac_func ();
6323 /* The GNU C library defines this for functions which it implements
6324     to always fail with ENOSYS.  Some functions are actually named
6325     something starting with __ and the normal name is an alias.  */
6326 #if defined __stub_$ac_func || defined __stub___$ac_func
6327 choke me
6328 #endif
6329
6330 int
6331 main ()
6332 {
6333 return $ac_func ();
6334   ;
6335   return 0;
6336 }
6337 _ACEOF
6338 rm -f conftest.$ac_objext conftest$ac_exeext
6339 if { (ac_try="$ac_link"
6340 case "(($ac_try" in
6341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342   *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345   (eval "$ac_link") 2>conftest.er1
6346   ac_status=$?
6347   grep -v '^ *+' conftest.er1 >conftest.err
6348   rm -f conftest.er1
6349   cat conftest.err >&5
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } && {
6352          test -z "$ac_c_werror_flag" ||
6353          test ! -s conftest.err
6354        } && test -s conftest$ac_exeext &&
6355        $as_test_x conftest$ac_exeext; then
6356   eval "$as_ac_var=yes"
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361         eval "$as_ac_var=no"
6362 fi
6363
6364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6365       conftest$ac_exeext conftest.$ac_ext
6366 fi
6367 ac_res=`eval echo '${'$as_ac_var'}'`
6368                { echo "$as_me:$LINENO: result: $ac_res" >&5
6369 echo "${ECHO_T}$ac_res" >&6; }
6370 if test `eval echo '${'$as_ac_var'}'` = yes; then
6371   cat >>confdefs.h <<_ACEOF
6372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6373 _ACEOF
6374
6375 fi
6376 done
6377
6378 { echo "$as_me:$LINENO: checking for working mmap" >&5
6379 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6380 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6381   echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383   if test "$cross_compiling" = yes; then
6384   ac_cv_func_mmap_fixed_mapped=no
6385 else
6386   cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392 $ac_includes_default
6393 /* malloc might have been renamed as rpl_malloc. */
6394 #undef malloc
6395
6396 /* Thanks to Mike Haertel and Jim Avera for this test.
6397    Here is a matrix of mmap possibilities:
6398         mmap private not fixed
6399         mmap private fixed at somewhere currently unmapped
6400         mmap private fixed at somewhere already mapped
6401         mmap shared not fixed
6402         mmap shared fixed at somewhere currently unmapped
6403         mmap shared fixed at somewhere already mapped
6404    For private mappings, we should verify that changes cannot be read()
6405    back from the file, nor mmap's back from the file at a different
6406    address.  (There have been systems where private was not correctly
6407    implemented like the infamous i386 svr4.0, and systems where the
6408    VM page cache was not coherent with the file system buffer cache
6409    like early versions of FreeBSD and possibly contemporary NetBSD.)
6410    For shared mappings, we should conversely verify that changes get
6411    propagated back to all the places they're supposed to be.
6412
6413    Grep wants private fixed already mapped.
6414    The main things grep needs to know about mmap are:
6415    * does it exist and is it safe to write into the mmap'd area
6416    * how to use it (BSD variants)  */
6417
6418 #include <fcntl.h>
6419 #include <sys/mman.h>
6420
6421 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6422 char *malloc ();
6423 #endif
6424
6425 /* This mess was copied from the GNU getpagesize.h.  */
6426 #ifndef HAVE_GETPAGESIZE
6427 /* Assume that all systems that can run configure have sys/param.h.  */
6428 # ifndef HAVE_SYS_PARAM_H
6429 #  define HAVE_SYS_PARAM_H 1
6430 # endif
6431
6432 # ifdef _SC_PAGESIZE
6433 #  define getpagesize() sysconf(_SC_PAGESIZE)
6434 # else /* no _SC_PAGESIZE */
6435 #  ifdef HAVE_SYS_PARAM_H
6436 #   include <sys/param.h>
6437 #   ifdef EXEC_PAGESIZE
6438 #    define getpagesize() EXEC_PAGESIZE
6439 #   else /* no EXEC_PAGESIZE */
6440 #    ifdef NBPG
6441 #     define getpagesize() NBPG * CLSIZE
6442 #     ifndef CLSIZE
6443 #      define CLSIZE 1
6444 #     endif /* no CLSIZE */
6445 #    else /* no NBPG */
6446 #     ifdef NBPC
6447 #      define getpagesize() NBPC
6448 #     else /* no NBPC */
6449 #      ifdef PAGESIZE
6450 #       define getpagesize() PAGESIZE
6451 #      endif /* PAGESIZE */
6452 #     endif /* no NBPC */
6453 #    endif /* no NBPG */
6454 #   endif /* no EXEC_PAGESIZE */
6455 #  else /* no HAVE_SYS_PARAM_H */
6456 #   define getpagesize() 8192   /* punt totally */
6457 #  endif /* no HAVE_SYS_PARAM_H */
6458 # endif /* no _SC_PAGESIZE */
6459
6460 #endif /* no HAVE_GETPAGESIZE */
6461
6462 int
6463 main ()
6464 {
6465   char *data, *data2, *data3;
6466   int i, pagesize;
6467   int fd;
6468
6469   pagesize = getpagesize ();
6470
6471   /* First, make a file with some known garbage in it. */
6472   data = (char *) malloc (pagesize);
6473   if (!data)
6474     return 1;
6475   for (i = 0; i < pagesize; ++i)
6476     *(data + i) = rand ();
6477   umask (0);
6478   fd = creat ("conftest.mmap", 0600);
6479   if (fd < 0)
6480     return 1;
6481   if (write (fd, data, pagesize) != pagesize)
6482     return 1;
6483   close (fd);
6484
6485   /* Next, try to mmap the file at a fixed address which already has
6486      something else allocated at it.  If we can, also make sure that
6487      we see the same garbage.  */
6488   fd = open ("conftest.mmap", O_RDWR);
6489   if (fd < 0)
6490     return 1;
6491   data2 = (char *) malloc (2 * pagesize);
6492   if (!data2)
6493     return 1;
6494   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6495   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6496                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6497     return 1;
6498   for (i = 0; i < pagesize; ++i)
6499     if (*(data + i) != *(data2 + i))
6500       return 1;
6501
6502   /* Finally, make sure that changes to the mapped area do not
6503      percolate back to the file as seen by read().  (This is a bug on
6504      some variants of i386 svr4.0.)  */
6505   for (i = 0; i < pagesize; ++i)
6506     *(data2 + i) = *(data2 + i) + 1;
6507   data3 = (char *) malloc (pagesize);
6508   if (!data3)
6509     return 1;
6510   if (read (fd, data3, pagesize) != pagesize)
6511     return 1;
6512   for (i = 0; i < pagesize; ++i)
6513     if (*(data + i) != *(data3 + i))
6514       return 1;
6515   close (fd);
6516   return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest$ac_exeext
6520 if { (ac_try="$ac_link"
6521 case "(($ac_try" in
6522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523   *) ac_try_echo=$ac_try;;
6524 esac
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526   (eval "$ac_link") 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6530   { (case "(($ac_try" in
6531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532   *) ac_try_echo=$ac_try;;
6533 esac
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535   (eval "$ac_try") 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); }; }; then
6539   ac_cv_func_mmap_fixed_mapped=yes
6540 else
6541   echo "$as_me: program exited with status $ac_status" >&5
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ( exit $ac_status )
6546 ac_cv_func_mmap_fixed_mapped=no
6547 fi
6548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6549 fi
6550
6551
6552 fi
6553 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6554 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6555 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6556
6557 cat >>confdefs.h <<\_ACEOF
6558 #define HAVE_MMAP 1
6559 _ACEOF
6560
6561 fi
6562 rm -f conftest.mmap
6563
6564
6565     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6566 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6567 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h.  */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h.  */
6576
6577 #include <features.h>
6578 #ifdef __GNU_LIBRARY__
6579  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6580   Lucky GNU user
6581  #endif
6582 #endif
6583
6584 _ACEOF
6585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6586   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6587   ac_cv_gnu_library_2_1=yes
6588 else
6589   ac_cv_gnu_library_2_1=no
6590 fi
6591 rm -f conftest*
6592
6593
6594
6595 fi
6596 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6597 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6598
6599     GLIBC21="$ac_cv_gnu_library_2_1"
6600
6601
6602
6603
6604   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6605 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6606 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6607   echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609
6610       if test "$cross_compiling" = yes; then
6611
6612           # Guess based on the CPU.
6613           case "$host_cpu" in
6614             alpha* | i3456786 | m68k | s390*)
6615               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6616             *)
6617               gt_cv_int_divbyzero_sigfpe="guessing no";;
6618           esac
6619
6620 else
6621   cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627
6628 #include <stdlib.h>
6629 #include <signal.h>
6630
6631 static void
6632 #ifdef __cplusplus
6633 sigfpe_handler (int sig)
6634 #else
6635 sigfpe_handler (sig) int sig;
6636 #endif
6637 {
6638   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6639   exit (sig != SIGFPE);
6640 }
6641
6642 int x = 1;
6643 int y = 0;
6644 int z;
6645 int nan;
6646
6647 int main ()
6648 {
6649   signal (SIGFPE, sigfpe_handler);
6650 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6651 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6652   signal (SIGTRAP, sigfpe_handler);
6653 #endif
6654 /* Linux/SPARC yields signal SIGILL.  */
6655 #if defined (__sparc__) && defined (__linux__)
6656   signal (SIGILL, sigfpe_handler);
6657 #endif
6658
6659   z = x / y;
6660   nan = y / y;
6661   exit (1);
6662 }
6663
6664 _ACEOF
6665 rm -f conftest$ac_exeext
6666 if { (ac_try="$ac_link"
6667 case "(($ac_try" in
6668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669   *) ac_try_echo=$ac_try;;
6670 esac
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672   (eval "$ac_link") 2>&5
6673   ac_status=$?
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6676   { (case "(($ac_try" in
6677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678   *) ac_try_echo=$ac_try;;
6679 esac
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681   (eval "$ac_try") 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); }; }; then
6685   gt_cv_int_divbyzero_sigfpe=yes
6686 else
6687   echo "$as_me: program exited with status $ac_status" >&5
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691 ( exit $ac_status )
6692 gt_cv_int_divbyzero_sigfpe=no
6693 fi
6694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6695 fi
6696
6697
6698
6699 fi
6700 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6701 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6702   case "$gt_cv_int_divbyzero_sigfpe" in
6703     *yes) value=1;;
6704     *) value=0;;
6705   esac
6706
6707 cat >>confdefs.h <<_ACEOF
6708 #define INTDIV0_RAISES_SIGFPE $value
6709 _ACEOF
6710
6711
6712
6713   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6714 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6715 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 unsigned long long ull = 1ULL; int i = 63;
6725 int
6726 main ()
6727 {
6728 unsigned long long ullmax = (unsigned long long) -1;
6729      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6730   ;
6731   return 0;
6732 }
6733 _ACEOF
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (ac_try="$ac_link"
6736 case "(($ac_try" in
6737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738   *) ac_try_echo=$ac_try;;
6739 esac
6740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741   (eval "$ac_link") 2>conftest.er1
6742   ac_status=$?
6743   grep -v '^ *+' conftest.er1 >conftest.err
6744   rm -f conftest.er1
6745   cat conftest.err >&5
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); } && {
6748          test -z "$ac_c_werror_flag" ||
6749          test ! -s conftest.err
6750        } && test -s conftest$ac_exeext &&
6751        $as_test_x conftest$ac_exeext; then
6752   ac_cv_type_unsigned_long_long=yes
6753 else
6754   echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6756
6757         ac_cv_type_unsigned_long_long=no
6758 fi
6759
6760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6761       conftest$ac_exeext conftest.$ac_ext
6762 fi
6763 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6764 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6765   if test $ac_cv_type_unsigned_long_long = yes; then
6766
6767 cat >>confdefs.h <<\_ACEOF
6768 #define HAVE_UNSIGNED_LONG_LONG 1
6769 _ACEOF
6770
6771   fi
6772
6773
6774
6775
6776   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6777
6778     test $ac_cv_type_unsigned_long_long = yes \
6779       && ac_type='unsigned long long' \
6780       || ac_type='unsigned long'
6781
6782 cat >>confdefs.h <<_ACEOF
6783 #define uintmax_t $ac_type
6784 _ACEOF
6785
6786   else
6787
6788 cat >>confdefs.h <<\_ACEOF
6789 #define HAVE_UINTMAX_T 1
6790 _ACEOF
6791
6792   fi
6793
6794
6795   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6796 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6797 if test "${gt_cv_header_inttypes_h+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800
6801     cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807 #include <sys/types.h>
6808 #include <inttypes.h>
6809 int
6810 main ()
6811 {
6812
6813   ;
6814   return 0;
6815 }
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (ac_try="$ac_compile"
6819 case "(($ac_try" in
6820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821   *) ac_try_echo=$ac_try;;
6822 esac
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824   (eval "$ac_compile") 2>conftest.er1
6825   ac_status=$?
6826   grep -v '^ *+' conftest.er1 >conftest.err
6827   rm -f conftest.er1
6828   cat conftest.err >&5
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); } && {
6831          test -z "$ac_c_werror_flag" ||
6832          test ! -s conftest.err
6833        } && test -s conftest.$ac_objext; then
6834   gt_cv_header_inttypes_h=yes
6835 else
6836   echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6838
6839         gt_cv_header_inttypes_h=no
6840 fi
6841
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843
6844 fi
6845 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6846 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6847   if test $gt_cv_header_inttypes_h = yes; then
6848
6849 cat >>confdefs.h <<_ACEOF
6850 #define HAVE_INTTYPES_H 1
6851 _ACEOF
6852
6853   fi
6854
6855
6856
6857   if test $gt_cv_header_inttypes_h = yes; then
6858     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6859 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6860 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863
6864         cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870 #include <inttypes.h>
6871 #ifdef PRId32
6872 char *p = PRId32;
6873 #endif
6874
6875 int
6876 main ()
6877 {
6878
6879   ;
6880   return 0;
6881 }
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887   *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890   (eval "$ac_compile") 2>conftest.er1
6891   ac_status=$?
6892   grep -v '^ *+' conftest.er1 >conftest.err
6893   rm -f conftest.er1
6894   cat conftest.err >&5
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } && {
6897          test -z "$ac_c_werror_flag" ||
6898          test ! -s conftest.err
6899        } && test -s conftest.$ac_objext; then
6900   gt_cv_inttypes_pri_broken=no
6901 else
6902   echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905         gt_cv_inttypes_pri_broken=yes
6906 fi
6907
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909
6910 fi
6911 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6912 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6913   fi
6914   if test "$gt_cv_inttypes_pri_broken" = yes; then
6915
6916 cat >>confdefs.h <<_ACEOF
6917 #define PRI_MACROS_BROKEN 1
6918 _ACEOF
6919
6920   fi
6921
6922
6923
6924 for ac_header in stdint.h
6925 do
6926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6928   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 fi
6933 ac_res=`eval echo '${'$as_ac_Header'}'`
6934                { echo "$as_me:$LINENO: result: $ac_res" >&5
6935 echo "${ECHO_T}$ac_res" >&6; }
6936 else
6937   # Is the header compilable?
6938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6940 cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946 $ac_includes_default
6947 #include <$ac_header>
6948 _ACEOF
6949 rm -f conftest.$ac_objext
6950 if { (ac_try="$ac_compile"
6951 case "(($ac_try" in
6952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953   *) ac_try_echo=$ac_try;;
6954 esac
6955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6956   (eval "$ac_compile") 2>conftest.er1
6957   ac_status=$?
6958   grep -v '^ *+' conftest.er1 >conftest.err
6959   rm -f conftest.er1
6960   cat conftest.err >&5
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); } && {
6963          test -z "$ac_c_werror_flag" ||
6964          test ! -s conftest.err
6965        } && test -s conftest.$ac_objext; then
6966   ac_header_compiler=yes
6967 else
6968   echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971         ac_header_compiler=no
6972 fi
6973
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6976 echo "${ECHO_T}$ac_header_compiler" >&6; }
6977
6978 # Is the header present?
6979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987 #include <$ac_header>
6988 _ACEOF
6989 if { (ac_try="$ac_cpp conftest.$ac_ext"
6990 case "(($ac_try" in
6991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992   *) ac_try_echo=$ac_try;;
6993 esac
6994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6996   ac_status=$?
6997   grep -v '^ *+' conftest.er1 >conftest.err
6998   rm -f conftest.er1
6999   cat conftest.err >&5
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); } >/dev/null && {
7002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7003          test ! -s conftest.err
7004        }; then
7005   ac_header_preproc=yes
7006 else
7007   echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7009
7010   ac_header_preproc=no
7011 fi
7012
7013 rm -f conftest.err conftest.$ac_ext
7014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7015 echo "${ECHO_T}$ac_header_preproc" >&6; }
7016
7017 # So?  What about this header?
7018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7019   yes:no: )
7020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7024     ac_header_preproc=yes
7025     ;;
7026   no:yes:* )
7027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7039
7040     ;;
7041 esac
7042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   eval "$as_ac_Header=\$ac_header_preproc"
7048 fi
7049 ac_res=`eval echo '${'$as_ac_Header'}'`
7050                { echo "$as_me:$LINENO: result: $ac_res" >&5
7051 echo "${ECHO_T}$ac_res" >&6; }
7052
7053 fi
7054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7055   cat >>confdefs.h <<_ACEOF
7056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7057 _ACEOF
7058
7059 fi
7060
7061 done
7062
7063     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7064 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7065   result=
7066   cat >conftest.$ac_ext <<_ACEOF
7067 /* confdefs.h.  */
7068 _ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h.  */
7072
7073 #include <limits.h>
7074 #if HAVE_STDINT_H
7075 #include <stdint.h>
7076 #endif
7077 #ifdef SIZE_MAX
7078 Found it
7079 #endif
7080
7081 _ACEOF
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083   $EGREP "Found it" >/dev/null 2>&1; then
7084   result=yes
7085 fi
7086 rm -f conftest*
7087
7088   if test -z "$result"; then
7089                     if test "$cross_compiling" = yes; then
7090   # Depending upon the size, compute the lo and hi bounds.
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h.  */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h.  */
7097 #include <stddef.h>
7098 int
7099 main ()
7100 {
7101 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7102 test_array [0] = 0
7103
7104   ;
7105   return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112   *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115   (eval "$ac_compile") 2>conftest.er1
7116   ac_status=$?
7117   grep -v '^ *+' conftest.er1 >conftest.err
7118   rm -f conftest.er1
7119   cat conftest.err >&5
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } && {
7122          test -z "$ac_c_werror_flag" ||
7123          test ! -s conftest.err
7124        } && test -s conftest.$ac_objext; then
7125   ac_lo=0 ac_mid=0
7126   while :; do
7127     cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h.  */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h.  */
7133 #include <stddef.h>
7134 int
7135 main ()
7136 {
7137 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7138 test_array [0] = 0
7139
7140   ;
7141   return 0;
7142 }
7143 _ACEOF
7144 rm -f conftest.$ac_objext
7145 if { (ac_try="$ac_compile"
7146 case "(($ac_try" in
7147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148   *) ac_try_echo=$ac_try;;
7149 esac
7150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151   (eval "$ac_compile") 2>conftest.er1
7152   ac_status=$?
7153   grep -v '^ *+' conftest.er1 >conftest.err
7154   rm -f conftest.er1
7155   cat conftest.err >&5
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); } && {
7158          test -z "$ac_c_werror_flag" ||
7159          test ! -s conftest.err
7160        } && test -s conftest.$ac_objext; then
7161   ac_hi=$ac_mid; break
7162 else
7163   echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166         ac_lo=`expr $ac_mid + 1`
7167                         if test $ac_lo -le $ac_mid; then
7168                           ac_lo= ac_hi=
7169                           break
7170                         fi
7171                         ac_mid=`expr 2 '*' $ac_mid + 1`
7172 fi
7173
7174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175   done
7176 else
7177   echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180         cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h.  */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h.  */
7186 #include <stddef.h>
7187 int
7188 main ()
7189 {
7190 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7191 test_array [0] = 0
7192
7193   ;
7194   return 0;
7195 }
7196 _ACEOF
7197 rm -f conftest.$ac_objext
7198 if { (ac_try="$ac_compile"
7199 case "(($ac_try" in
7200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201   *) ac_try_echo=$ac_try;;
7202 esac
7203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204   (eval "$ac_compile") 2>conftest.er1
7205   ac_status=$?
7206   grep -v '^ *+' conftest.er1 >conftest.err
7207   rm -f conftest.er1
7208   cat conftest.err >&5
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); } && {
7211          test -z "$ac_c_werror_flag" ||
7212          test ! -s conftest.err
7213        } && test -s conftest.$ac_objext; then
7214   ac_hi=-1 ac_mid=-1
7215   while :; do
7216     cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222 #include <stddef.h>
7223 int
7224 main ()
7225 {
7226 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7227 test_array [0] = 0
7228
7229   ;
7230   return 0;
7231 }
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (ac_try="$ac_compile"
7235 case "(($ac_try" in
7236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237   *) ac_try_echo=$ac_try;;
7238 esac
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240   (eval "$ac_compile") 2>conftest.er1
7241   ac_status=$?
7242   grep -v '^ *+' conftest.er1 >conftest.err
7243   rm -f conftest.er1
7244   cat conftest.err >&5
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); } && {
7247          test -z "$ac_c_werror_flag" ||
7248          test ! -s conftest.err
7249        } && test -s conftest.$ac_objext; then
7250   ac_lo=$ac_mid; break
7251 else
7252   echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255         ac_hi=`expr '(' $ac_mid ')' - 1`
7256                         if test $ac_mid -le $ac_hi; then
7257                           ac_lo= ac_hi=
7258                           break
7259                         fi
7260                         ac_mid=`expr 2 '*' $ac_mid`
7261 fi
7262
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264   done
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269         ac_lo= ac_hi=
7270 fi
7271
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 fi
7274
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 # Binary search between lo and hi bounds.
7277 while test "x$ac_lo" != "x$ac_hi"; do
7278   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7279   cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h.  */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h.  */
7285 #include <stddef.h>
7286 int
7287 main ()
7288 {
7289 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7290 test_array [0] = 0
7291
7292   ;
7293   return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7298 case "(($ac_try" in
7299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300   *) ac_try_echo=$ac_try;;
7301 esac
7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303   (eval "$ac_compile") 2>conftest.er1
7304   ac_status=$?
7305   grep -v '^ *+' conftest.er1 >conftest.err
7306   rm -f conftest.er1
7307   cat conftest.err >&5
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); } && {
7310          test -z "$ac_c_werror_flag" ||
7311          test ! -s conftest.err
7312        } && test -s conftest.$ac_objext; then
7313   ac_hi=$ac_mid
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318         ac_lo=`expr '(' $ac_mid ')' + 1`
7319 fi
7320
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 done
7323 case $ac_lo in
7324 ?*) res_hi=$ac_lo;;
7325 '') result=? ;;
7326 esac
7327 else
7328   cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h.  */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h.  */
7334 #include <stddef.h>
7335 static long int longval () { return ~(size_t)0 / 10; }
7336 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7337 #include <stdio.h>
7338 #include <stdlib.h>
7339 int
7340 main ()
7341 {
7342
7343   FILE *f = fopen ("conftest.val", "w");
7344   if (! f)
7345     return 1;
7346   if ((~(size_t)0 / 10) < 0)
7347     {
7348       long int i = longval ();
7349       if (i != (~(size_t)0 / 10))
7350         return 1;
7351       fprintf (f, "%ld\n", i);
7352     }
7353   else
7354     {
7355       unsigned long int i = ulongval ();
7356       if (i != (~(size_t)0 / 10))
7357         return 1;
7358       fprintf (f, "%lu\n", i);
7359     }
7360   return ferror (f) || fclose (f) != 0;
7361
7362   ;
7363   return 0;
7364 }
7365 _ACEOF
7366 rm -f conftest$ac_exeext
7367 if { (ac_try="$ac_link"
7368 case "(($ac_try" in
7369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370   *) ac_try_echo=$ac_try;;
7371 esac
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373   (eval "$ac_link") 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7377   { (case "(($ac_try" in
7378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379   *) ac_try_echo=$ac_try;;
7380 esac
7381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382   (eval "$ac_try") 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); }; }; then
7386   res_hi=`cat conftest.val`
7387 else
7388   echo "$as_me: program exited with status $ac_status" >&5
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7391
7392 ( exit $ac_status )
7393 result=?
7394 fi
7395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7396 fi
7397 rm -f conftest.val
7398
7399     if test "$cross_compiling" = yes; then
7400   # Depending upon the size, compute the lo and hi bounds.
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h.  */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h.  */
7407 #include <stddef.h>
7408 int
7409 main ()
7410 {
7411 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7412 test_array [0] = 0
7413
7414   ;
7415   return 0;
7416 }
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7420 case "(($ac_try" in
7421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422   *) ac_try_echo=$ac_try;;
7423 esac
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425   (eval "$ac_compile") 2>conftest.er1
7426   ac_status=$?
7427   grep -v '^ *+' conftest.er1 >conftest.err
7428   rm -f conftest.er1
7429   cat conftest.err >&5
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } && {
7432          test -z "$ac_c_werror_flag" ||
7433          test ! -s conftest.err
7434        } && test -s conftest.$ac_objext; then
7435   ac_lo=0 ac_mid=0
7436   while :; do
7437     cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h.  */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h.  */
7443 #include <stddef.h>
7444 int
7445 main ()
7446 {
7447 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7448 test_array [0] = 0
7449
7450   ;
7451   return 0;
7452 }
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (ac_try="$ac_compile"
7456 case "(($ac_try" in
7457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458   *) ac_try_echo=$ac_try;;
7459 esac
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461   (eval "$ac_compile") 2>conftest.er1
7462   ac_status=$?
7463   grep -v '^ *+' conftest.er1 >conftest.err
7464   rm -f conftest.er1
7465   cat conftest.err >&5
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } && {
7468          test -z "$ac_c_werror_flag" ||
7469          test ! -s conftest.err
7470        } && test -s conftest.$ac_objext; then
7471   ac_hi=$ac_mid; break
7472 else
7473   echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7475
7476         ac_lo=`expr $ac_mid + 1`
7477                         if test $ac_lo -le $ac_mid; then
7478                           ac_lo= ac_hi=
7479                           break
7480                         fi
7481                         ac_mid=`expr 2 '*' $ac_mid + 1`
7482 fi
7483
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485   done
7486 else
7487   echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490         cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h.  */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h.  */
7496 #include <stddef.h>
7497 int
7498 main ()
7499 {
7500 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7501 test_array [0] = 0
7502
7503   ;
7504   return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext
7508 if { (ac_try="$ac_compile"
7509 case "(($ac_try" in
7510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7511   *) ac_try_echo=$ac_try;;
7512 esac
7513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7514   (eval "$ac_compile") 2>conftest.er1
7515   ac_status=$?
7516   grep -v '^ *+' conftest.er1 >conftest.err
7517   rm -f conftest.er1
7518   cat conftest.err >&5
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); } && {
7521          test -z "$ac_c_werror_flag" ||
7522          test ! -s conftest.err
7523        } && test -s conftest.$ac_objext; then
7524   ac_hi=-1 ac_mid=-1
7525   while :; do
7526     cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h.  */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h.  */
7532 #include <stddef.h>
7533 int
7534 main ()
7535 {
7536 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7537 test_array [0] = 0
7538
7539   ;
7540   return 0;
7541 }
7542 _ACEOF
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7545 case "(($ac_try" in
7546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547   *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550   (eval "$ac_compile") 2>conftest.er1
7551   ac_status=$?
7552   grep -v '^ *+' conftest.er1 >conftest.err
7553   rm -f conftest.er1
7554   cat conftest.err >&5
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } && {
7557          test -z "$ac_c_werror_flag" ||
7558          test ! -s conftest.err
7559        } && test -s conftest.$ac_objext; then
7560   ac_lo=$ac_mid; break
7561 else
7562   echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7564
7565         ac_hi=`expr '(' $ac_mid ')' - 1`
7566                         if test $ac_mid -le $ac_hi; then
7567                           ac_lo= ac_hi=
7568                           break
7569                         fi
7570                         ac_mid=`expr 2 '*' $ac_mid`
7571 fi
7572
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574   done
7575 else
7576   echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7578
7579         ac_lo= ac_hi=
7580 fi
7581
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 fi
7584
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 # Binary search between lo and hi bounds.
7587 while test "x$ac_lo" != "x$ac_hi"; do
7588   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7589   cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h.  */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h.  */
7595 #include <stddef.h>
7596 int
7597 main ()
7598 {
7599 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7600 test_array [0] = 0
7601
7602   ;
7603   return 0;
7604 }
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7614   ac_status=$?
7615   grep -v '^ *+' conftest.er1 >conftest.err
7616   rm -f conftest.er1
7617   cat conftest.err >&5
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); } && {
7620          test -z "$ac_c_werror_flag" ||
7621          test ! -s conftest.err
7622        } && test -s conftest.$ac_objext; then
7623   ac_hi=$ac_mid
7624 else
7625   echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7627
7628         ac_lo=`expr '(' $ac_mid ')' + 1`
7629 fi
7630
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632 done
7633 case $ac_lo in
7634 ?*) res_lo=$ac_lo;;
7635 '') result=? ;;
7636 esac
7637 else
7638   cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644 #include <stddef.h>
7645 static long int longval () { return ~(size_t)0 % 10; }
7646 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7647 #include <stdio.h>
7648 #include <stdlib.h>
7649 int
7650 main ()
7651 {
7652
7653   FILE *f = fopen ("conftest.val", "w");
7654   if (! f)
7655     return 1;
7656   if ((~(size_t)0 % 10) < 0)
7657     {
7658       long int i = longval ();
7659       if (i != (~(size_t)0 % 10))
7660         return 1;
7661       fprintf (f, "%ld\n", i);
7662     }
7663   else
7664     {
7665       unsigned long int i = ulongval ();
7666       if (i != (~(size_t)0 % 10))
7667         return 1;
7668       fprintf (f, "%lu\n", i);
7669     }
7670   return ferror (f) || fclose (f) != 0;
7671
7672   ;
7673   return 0;
7674 }
7675 _ACEOF
7676 rm -f conftest$ac_exeext
7677 if { (ac_try="$ac_link"
7678 case "(($ac_try" in
7679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680   *) ac_try_echo=$ac_try;;
7681 esac
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683   (eval "$ac_link") 2>&5
7684   ac_status=$?
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7687   { (case "(($ac_try" in
7688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689   *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692   (eval "$ac_try") 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696   res_lo=`cat conftest.val`
7697 else
7698   echo "$as_me: program exited with status $ac_status" >&5
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7701
7702 ( exit $ac_status )
7703 result=?
7704 fi
7705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7706 fi
7707 rm -f conftest.val
7708
7709     if test "$cross_compiling" = yes; then
7710   # Depending upon the size, compute the lo and hi bounds.
7711 cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717 #include <stddef.h>
7718 int
7719 main ()
7720 {
7721 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7722 test_array [0] = 0
7723
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732   *) ac_try_echo=$ac_try;;
7733 esac
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735   (eval "$ac_compile") 2>conftest.er1
7736   ac_status=$?
7737   grep -v '^ *+' conftest.er1 >conftest.err
7738   rm -f conftest.er1
7739   cat conftest.err >&5
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); } && {
7742          test -z "$ac_c_werror_flag" ||
7743          test ! -s conftest.err
7744        } && test -s conftest.$ac_objext; then
7745   ac_lo=0 ac_mid=0
7746   while :; do
7747     cat >conftest.$ac_ext <<_ACEOF
7748 /* confdefs.h.  */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h.  */
7753 #include <stddef.h>
7754 int
7755 main ()
7756 {
7757 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7758 test_array [0] = 0
7759
7760   ;
7761   return 0;
7762 }
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7766 case "(($ac_try" in
7767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768   *) ac_try_echo=$ac_try;;
7769 esac
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771   (eval "$ac_compile") 2>conftest.er1
7772   ac_status=$?
7773   grep -v '^ *+' conftest.er1 >conftest.err
7774   rm -f conftest.er1
7775   cat conftest.err >&5
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); } && {
7778          test -z "$ac_c_werror_flag" ||
7779          test ! -s conftest.err
7780        } && test -s conftest.$ac_objext; then
7781   ac_hi=$ac_mid; break
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786         ac_lo=`expr $ac_mid + 1`
7787                         if test $ac_lo -le $ac_mid; then
7788                           ac_lo= ac_hi=
7789                           break
7790                         fi
7791                         ac_mid=`expr 2 '*' $ac_mid + 1`
7792 fi
7793
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795   done
7796 else
7797   echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7799
7800         cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h.  */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h.  */
7806 #include <stddef.h>
7807 int
7808 main ()
7809 {
7810 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7811 test_array [0] = 0
7812
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 rm -f conftest.$ac_objext
7818 if { (ac_try="$ac_compile"
7819 case "(($ac_try" in
7820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821   *) ac_try_echo=$ac_try;;
7822 esac
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824   (eval "$ac_compile") 2>conftest.er1
7825   ac_status=$?
7826   grep -v '^ *+' conftest.er1 >conftest.err
7827   rm -f conftest.er1
7828   cat conftest.err >&5
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } && {
7831          test -z "$ac_c_werror_flag" ||
7832          test ! -s conftest.err
7833        } && test -s conftest.$ac_objext; then
7834   ac_hi=-1 ac_mid=-1
7835   while :; do
7836     cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842 #include <stddef.h>
7843 int
7844 main ()
7845 {
7846 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7847 test_array [0] = 0
7848
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7855 case "(($ac_try" in
7856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857   *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860   (eval "$ac_compile") 2>conftest.er1
7861   ac_status=$?
7862   grep -v '^ *+' conftest.er1 >conftest.err
7863   rm -f conftest.er1
7864   cat conftest.err >&5
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); } && {
7867          test -z "$ac_c_werror_flag" ||
7868          test ! -s conftest.err
7869        } && test -s conftest.$ac_objext; then
7870   ac_lo=$ac_mid; break
7871 else
7872   echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7874
7875         ac_hi=`expr '(' $ac_mid ')' - 1`
7876                         if test $ac_mid -le $ac_hi; then
7877                           ac_lo= ac_hi=
7878                           break
7879                         fi
7880                         ac_mid=`expr 2 '*' $ac_mid`
7881 fi
7882
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884   done
7885 else
7886   echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7888
7889         ac_lo= ac_hi=
7890 fi
7891
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 fi
7894
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 # Binary search between lo and hi bounds.
7897 while test "x$ac_lo" != "x$ac_hi"; do
7898   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905 #include <stddef.h>
7906 int
7907 main ()
7908 {
7909 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7910 test_array [0] = 0
7911
7912   ;
7913   return 0;
7914 }
7915 _ACEOF
7916 rm -f conftest.$ac_objext
7917 if { (ac_try="$ac_compile"
7918 case "(($ac_try" in
7919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920   *) ac_try_echo=$ac_try;;
7921 esac
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923   (eval "$ac_compile") 2>conftest.er1
7924   ac_status=$?
7925   grep -v '^ *+' conftest.er1 >conftest.err
7926   rm -f conftest.er1
7927   cat conftest.err >&5
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); } && {
7930          test -z "$ac_c_werror_flag" ||
7931          test ! -s conftest.err
7932        } && test -s conftest.$ac_objext; then
7933   ac_hi=$ac_mid
7934 else
7935   echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938         ac_lo=`expr '(' $ac_mid ')' + 1`
7939 fi
7940
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 done
7943 case $ac_lo in
7944 ?*) fits_in_uint=$ac_lo;;
7945 '') result=? ;;
7946 esac
7947 else
7948   cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954 #include <stddef.h>
7955 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7956 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7957 #include <stdio.h>
7958 #include <stdlib.h>
7959 int
7960 main ()
7961 {
7962
7963   FILE *f = fopen ("conftest.val", "w");
7964   if (! f)
7965     return 1;
7966   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7967     {
7968       long int i = longval ();
7969       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7970         return 1;
7971       fprintf (f, "%ld\n", i);
7972     }
7973   else
7974     {
7975       unsigned long int i = ulongval ();
7976       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7977         return 1;
7978       fprintf (f, "%lu\n", i);
7979     }
7980   return ferror (f) || fclose (f) != 0;
7981
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest$ac_exeext
7987 if { (ac_try="$ac_link"
7988 case "(($ac_try" in
7989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990   *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993   (eval "$ac_link") 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7997   { (case "(($ac_try" in
7998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999   *) ac_try_echo=$ac_try;;
8000 esac
8001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002   (eval "$ac_try") 2>&5
8003   ac_status=$?
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); }; }; then
8006   fits_in_uint=`cat conftest.val`
8007 else
8008   echo "$as_me: program exited with status $ac_status" >&5
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8011
8012 ( exit $ac_status )
8013 result=?
8014 fi
8015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8016 fi
8017 rm -f conftest.val
8018
8019     if test "$fits_in_uint" = 1; then
8020                   cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026 #include <stddef.h>
8027         extern size_t foo;
8028         extern unsigned long foo;
8029
8030 int
8031 main ()
8032 {
8033
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8040 case "(($ac_try" in
8041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042   *) ac_try_echo=$ac_try;;
8043 esac
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045   (eval "$ac_compile") 2>conftest.er1
8046   ac_status=$?
8047   grep -v '^ *+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } && {
8052          test -z "$ac_c_werror_flag" ||
8053          test ! -s conftest.err
8054        } && test -s conftest.$ac_objext; then
8055   fits_in_uint=0
8056 else
8057   echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060
8061 fi
8062
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064     fi
8065     if test -z "$result"; then
8066       if test "$fits_in_uint" = 1; then
8067         result="$res_hi$res_lo"U
8068       else
8069         result="$res_hi$res_lo"UL
8070       fi
8071     else
8072             result='~(size_t)0'
8073     fi
8074   fi
8075   { echo "$as_me:$LINENO: result: $result" >&5
8076 echo "${ECHO_T}$result" >&6; }
8077   if test "$result" != yes; then
8078
8079 cat >>confdefs.h <<_ACEOF
8080 #define SIZE_MAX $result
8081 _ACEOF
8082
8083   fi
8084
8085
8086
8087
8088 for ac_header in stdint.h
8089 do
8090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8092   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 fi
8097 ac_res=`eval echo '${'$as_ac_Header'}'`
8098                { echo "$as_me:$LINENO: result: $ac_res" >&5
8099 echo "${ECHO_T}$ac_res" >&6; }
8100 else
8101   # Is the header compilable?
8102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8104 cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 $ac_includes_default
8111 #include <$ac_header>
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8115 case "(($ac_try" in
8116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117   *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120   (eval "$ac_compile") 2>conftest.er1
8121   ac_status=$?
8122   grep -v '^ *+' conftest.er1 >conftest.err
8123   rm -f conftest.er1
8124   cat conftest.err >&5
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); } && {
8127          test -z "$ac_c_werror_flag" ||
8128          test ! -s conftest.err
8129        } && test -s conftest.$ac_objext; then
8130   ac_header_compiler=yes
8131 else
8132   echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135         ac_header_compiler=no
8136 fi
8137
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8140 echo "${ECHO_T}$ac_header_compiler" >&6; }
8141
8142 # Is the header present?
8143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h.  */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h.  */
8151 #include <$ac_header>
8152 _ACEOF
8153 if { (ac_try="$ac_cpp conftest.$ac_ext"
8154 case "(($ac_try" in
8155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156   *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8160   ac_status=$?
8161   grep -v '^ *+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } >/dev/null && {
8166          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8167          test ! -s conftest.err
8168        }; then
8169   ac_header_preproc=yes
8170 else
8171   echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174   ac_header_preproc=no
8175 fi
8176
8177 rm -f conftest.err conftest.$ac_ext
8178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8179 echo "${ECHO_T}$ac_header_preproc" >&6; }
8180
8181 # So?  What about this header?
8182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8183   yes:no: )
8184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8188     ac_header_preproc=yes
8189     ;;
8190   no:yes:* )
8191     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8193     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8194 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8195     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8197     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8198 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8201     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8203
8204     ;;
8205 esac
8206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   eval "$as_ac_Header=\$ac_header_preproc"
8212 fi
8213 ac_res=`eval echo '${'$as_ac_Header'}'`
8214                { echo "$as_me:$LINENO: result: $ac_res" >&5
8215 echo "${ECHO_T}$ac_res" >&6; }
8216
8217 fi
8218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8219   cat >>confdefs.h <<_ACEOF
8220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8221 _ACEOF
8222
8223 fi
8224
8225 done
8226
8227
8228
8229       if test "X$prefix" = "XNONE"; then
8230     acl_final_prefix="$ac_default_prefix"
8231   else
8232     acl_final_prefix="$prefix"
8233   fi
8234   if test "X$exec_prefix" = "XNONE"; then
8235     acl_final_exec_prefix='${prefix}'
8236   else
8237     acl_final_exec_prefix="$exec_prefix"
8238   fi
8239   acl_save_prefix="$prefix"
8240   prefix="$acl_final_prefix"
8241   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8242   prefix="$acl_save_prefix"
8243
8244
8245 # Check whether --with-gnu-ld was given.
8246 if test "${with_gnu_ld+set}" = set; then
8247   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8248 else
8249   with_gnu_ld=no
8250 fi
8251
8252 # Prepare PATH_SEPARATOR.
8253 # The user is always right.
8254 if test "${PATH_SEPARATOR+set}" != set; then
8255   echo "#! /bin/sh" >conf$$.sh
8256   echo  "exit 0"   >>conf$$.sh
8257   chmod +x conf$$.sh
8258   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8259     PATH_SEPARATOR=';'
8260   else
8261     PATH_SEPARATOR=:
8262   fi
8263   rm -f conf$$.sh
8264 fi
8265 ac_prog=ld
8266 if test "$GCC" = yes; then
8267   # Check if gcc -print-prog-name=ld gives a path.
8268   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8269 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8270   case $host in
8271   *-*-mingw*)
8272     # gcc leaves a trailing carriage return which upsets mingw
8273     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8274   *)
8275     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8276   esac
8277   case $ac_prog in
8278     # Accept absolute paths.
8279     [\\/]* | [A-Za-z]:[\\/]*)
8280       re_direlt='/[^/][^/]*/\.\./'
8281       # Canonicalize the path of ld
8282       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8283       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8284         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8285       done
8286       test -z "$LD" && LD="$ac_prog"
8287       ;;
8288   "")
8289     # If it fails, then pretend we aren't using GCC.
8290     ac_prog=ld
8291     ;;
8292   *)
8293     # If it is relative, then search for the first ld in PATH.
8294     with_gnu_ld=unknown
8295     ;;
8296   esac
8297 elif test "$with_gnu_ld" = yes; then
8298   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8300 else
8301   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8303 fi
8304 if test "${acl_cv_path_LD+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   if test -z "$LD"; then
8308   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8309   for ac_dir in $PATH; do
8310     test -z "$ac_dir" && ac_dir=.
8311     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8312       acl_cv_path_LD="$ac_dir/$ac_prog"
8313       # Check to see if the program is GNU ld.  I'd rather use --version,
8314       # but apparently some GNU ld's only accept -v.
8315       # Break only if it was the GNU/non-GNU ld that we prefer.
8316       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8317       *GNU* | *'with BFD'*)
8318         test "$with_gnu_ld" != no && break ;;
8319       *)
8320         test "$with_gnu_ld" != yes && break ;;
8321       esac
8322     fi
8323   done
8324   IFS="$ac_save_ifs"
8325 else
8326   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8327 fi
8328 fi
8329
8330 LD="$acl_cv_path_LD"
8331 if test -n "$LD"; then
8332   { echo "$as_me:$LINENO: result: $LD" >&5
8333 echo "${ECHO_T}$LD" >&6; }
8334 else
8335   { echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6; }
8337 fi
8338 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8339 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8340    { (exit 1); exit 1; }; }
8341 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8342 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8343 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8347 case `$LD -v 2>&1 </dev/null` in
8348 *GNU* | *'with BFD'*)
8349   acl_cv_prog_gnu_ld=yes ;;
8350 *)
8351   acl_cv_prog_gnu_ld=no ;;
8352 esac
8353 fi
8354 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8355 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8356 with_gnu_ld=$acl_cv_prog_gnu_ld
8357
8358
8359
8360                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8361 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8362 if test "${acl_cv_rpath+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365
8366     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8367     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8368     . ./conftest.sh
8369     rm -f ./conftest.sh
8370     acl_cv_rpath=done
8371
8372 fi
8373 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8374 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8375   wl="$acl_cv_wl"
8376   libext="$acl_cv_libext"
8377   shlibext="$acl_cv_shlibext"
8378   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8379   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8380   hardcode_direct="$acl_cv_hardcode_direct"
8381   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8382     # Check whether --enable-rpath was given.
8383 if test "${enable_rpath+set}" = set; then
8384   enableval=$enable_rpath; :
8385 else
8386   enable_rpath=yes
8387 fi
8388
8389
8390
8391
8392
8393
8394
8395
8396     use_additional=yes
8397
8398   acl_save_prefix="$prefix"
8399   prefix="$acl_final_prefix"
8400   acl_save_exec_prefix="$exec_prefix"
8401   exec_prefix="$acl_final_exec_prefix"
8402
8403     eval additional_includedir=\"$includedir\"
8404     eval additional_libdir=\"$libdir\"
8405
8406   exec_prefix="$acl_save_exec_prefix"
8407   prefix="$acl_save_prefix"
8408
8409
8410 # Check whether --with-libiconv-prefix was given.
8411 if test "${with_libiconv_prefix+set}" = set; then
8412   withval=$with_libiconv_prefix;
8413     if test "X$withval" = "Xno"; then
8414       use_additional=no
8415     else
8416       if test "X$withval" = "X"; then
8417
8418   acl_save_prefix="$prefix"
8419   prefix="$acl_final_prefix"
8420   acl_save_exec_prefix="$exec_prefix"
8421   exec_prefix="$acl_final_exec_prefix"
8422
8423           eval additional_includedir=\"$includedir\"
8424           eval additional_libdir=\"$libdir\"
8425
8426   exec_prefix="$acl_save_exec_prefix"
8427   prefix="$acl_save_prefix"
8428
8429       else
8430         additional_includedir="$withval/include"
8431         additional_libdir="$withval/lib"
8432       fi
8433     fi
8434
8435 fi
8436
8437       LIBICONV=
8438   LTLIBICONV=
8439   INCICONV=
8440   rpathdirs=
8441   ltrpathdirs=
8442   names_already_handled=
8443   names_next_round='iconv '
8444   while test -n "$names_next_round"; do
8445     names_this_round="$names_next_round"
8446     names_next_round=
8447     for name in $names_this_round; do
8448       already_handled=
8449       for n in $names_already_handled; do
8450         if test "$n" = "$name"; then
8451           already_handled=yes
8452           break
8453         fi
8454       done
8455       if test -z "$already_handled"; then
8456         names_already_handled="$names_already_handled $name"
8457                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8458         eval value=\"\$HAVE_LIB$uppername\"
8459         if test -n "$value"; then
8460           if test "$value" = yes; then
8461             eval value=\"\$LIB$uppername\"
8462             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8463             eval value=\"\$LTLIB$uppername\"
8464             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8465           else
8466                                     :
8467           fi
8468         else
8469                               found_dir=
8470           found_la=
8471           found_so=
8472           found_a=
8473           if test $use_additional = yes; then
8474             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8475               found_dir="$additional_libdir"
8476               found_so="$additional_libdir/lib$name.$shlibext"
8477               if test -f "$additional_libdir/lib$name.la"; then
8478                 found_la="$additional_libdir/lib$name.la"
8479               fi
8480             else
8481               if test -f "$additional_libdir/lib$name.$libext"; then
8482                 found_dir="$additional_libdir"
8483                 found_a="$additional_libdir/lib$name.$libext"
8484                 if test -f "$additional_libdir/lib$name.la"; then
8485                   found_la="$additional_libdir/lib$name.la"
8486                 fi
8487               fi
8488             fi
8489           fi
8490           if test "X$found_dir" = "X"; then
8491             for x in $LDFLAGS $LTLIBICONV; do
8492
8493   acl_save_prefix="$prefix"
8494   prefix="$acl_final_prefix"
8495   acl_save_exec_prefix="$exec_prefix"
8496   exec_prefix="$acl_final_exec_prefix"
8497   eval x=\"$x\"
8498   exec_prefix="$acl_save_exec_prefix"
8499   prefix="$acl_save_prefix"
8500
8501               case "$x" in
8502                 -L*)
8503                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8504                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8505                     found_dir="$dir"
8506                     found_so="$dir/lib$name.$shlibext"
8507                     if test -f "$dir/lib$name.la"; then
8508                       found_la="$dir/lib$name.la"
8509                     fi
8510                   else
8511                     if test -f "$dir/lib$name.$libext"; then
8512                       found_dir="$dir"
8513                       found_a="$dir/lib$name.$libext"
8514                       if test -f "$dir/lib$name.la"; then
8515                         found_la="$dir/lib$name.la"
8516                       fi
8517                     fi
8518                   fi
8519                   ;;
8520               esac
8521               if test "X$found_dir" != "X"; then
8522                 break
8523               fi
8524             done
8525           fi
8526           if test "X$found_dir" != "X"; then
8527                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8528             if test "X$found_so" != "X"; then
8529                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8530                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8531               else
8532                                                                                 haveit=
8533                 for x in $ltrpathdirs; do
8534                   if test "X$x" = "X$found_dir"; then
8535                     haveit=yes
8536                     break
8537                   fi
8538                 done
8539                 if test -z "$haveit"; then
8540                   ltrpathdirs="$ltrpathdirs $found_dir"
8541                 fi
8542                                 if test "$hardcode_direct" = yes; then
8543                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8544                 else
8545                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8546                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8547                                                             haveit=
8548                     for x in $rpathdirs; do
8549                       if test "X$x" = "X$found_dir"; then
8550                         haveit=yes
8551                         break
8552                       fi
8553                     done
8554                     if test -z "$haveit"; then
8555                       rpathdirs="$rpathdirs $found_dir"
8556                     fi
8557                   else
8558                                                                                 haveit=
8559                     for x in $LDFLAGS $LIBICONV; do
8560
8561   acl_save_prefix="$prefix"
8562   prefix="$acl_final_prefix"
8563   acl_save_exec_prefix="$exec_prefix"
8564   exec_prefix="$acl_final_exec_prefix"
8565   eval x=\"$x\"
8566   exec_prefix="$acl_save_exec_prefix"
8567   prefix="$acl_save_prefix"
8568
8569                       if test "X$x" = "X-L$found_dir"; then
8570                         haveit=yes
8571                         break
8572                       fi
8573                     done
8574                     if test -z "$haveit"; then
8575                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8576                     fi
8577                     if test "$hardcode_minus_L" != no; then
8578                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8579                     else
8580                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8581                     fi
8582                   fi
8583                 fi
8584               fi
8585             else
8586               if test "X$found_a" != "X"; then
8587                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8588               else
8589                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8590               fi
8591             fi
8592                         additional_includedir=
8593             case "$found_dir" in
8594               */lib | */lib/)
8595                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8596                 additional_includedir="$basedir/include"
8597                 ;;
8598             esac
8599             if test "X$additional_includedir" != "X"; then
8600                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8601                 haveit=
8602                 if test "X$additional_includedir" = "X/usr/local/include"; then
8603                   if test -n "$GCC"; then
8604                     case $host_os in
8605                       linux*) haveit=yes;;
8606                     esac
8607                   fi
8608                 fi
8609                 if test -z "$haveit"; then
8610                   for x in $CPPFLAGS $INCICONV; do
8611
8612   acl_save_prefix="$prefix"
8613   prefix="$acl_final_prefix"
8614   acl_save_exec_prefix="$exec_prefix"
8615   exec_prefix="$acl_final_exec_prefix"
8616   eval x=\"$x\"
8617   exec_prefix="$acl_save_exec_prefix"
8618   prefix="$acl_save_prefix"
8619
8620                     if test "X$x" = "X-I$additional_includedir"; then
8621                       haveit=yes
8622                       break
8623                     fi
8624                   done
8625                   if test -z "$haveit"; then
8626                     if test -d "$additional_includedir"; then
8627                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8628                     fi
8629                   fi
8630                 fi
8631               fi
8632             fi
8633                         if test -n "$found_la"; then
8634                                                         save_libdir="$libdir"
8635               case "$found_la" in
8636                 */* | *\\*) . "$found_la" ;;
8637                 *) . "./$found_la" ;;
8638               esac
8639               libdir="$save_libdir"
8640                             for dep in $dependency_libs; do
8641                 case "$dep" in
8642                   -L*)
8643                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8644                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8645                       haveit=
8646                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8647                         if test -n "$GCC"; then
8648                           case $host_os in
8649                             linux*) haveit=yes;;
8650                           esac
8651                         fi
8652                       fi
8653                       if test -z "$haveit"; then
8654                         haveit=
8655                         for x in $LDFLAGS $LIBICONV; do
8656
8657   acl_save_prefix="$prefix"
8658   prefix="$acl_final_prefix"
8659   acl_save_exec_prefix="$exec_prefix"
8660   exec_prefix="$acl_final_exec_prefix"
8661   eval x=\"$x\"
8662   exec_prefix="$acl_save_exec_prefix"
8663   prefix="$acl_save_prefix"
8664
8665                           if test "X$x" = "X-L$additional_libdir"; then
8666                             haveit=yes
8667                             break
8668                           fi
8669                         done
8670                         if test -z "$haveit"; then
8671                           if test -d "$additional_libdir"; then
8672                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8673                           fi
8674                         fi
8675                         haveit=
8676                         for x in $LDFLAGS $LTLIBICONV; do
8677
8678   acl_save_prefix="$prefix"
8679   prefix="$acl_final_prefix"
8680   acl_save_exec_prefix="$exec_prefix"
8681   exec_prefix="$acl_final_exec_prefix"
8682   eval x=\"$x\"
8683   exec_prefix="$acl_save_exec_prefix"
8684   prefix="$acl_save_prefix"
8685
8686                           if test "X$x" = "X-L$additional_libdir"; then
8687                             haveit=yes
8688                             break
8689                           fi
8690                         done
8691                         if test -z "$haveit"; then
8692                           if test -d "$additional_libdir"; then
8693                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8694                           fi
8695                         fi
8696                       fi
8697                     fi
8698                     ;;
8699                   -R*)
8700                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8701                     if test "$enable_rpath" != no; then
8702                                                                   haveit=
8703                       for x in $rpathdirs; do
8704                         if test "X$x" = "X$dir"; then
8705                           haveit=yes
8706                           break
8707                         fi
8708                       done
8709                       if test -z "$haveit"; then
8710                         rpathdirs="$rpathdirs $dir"
8711                       fi
8712                                                                   haveit=
8713                       for x in $ltrpathdirs; do
8714                         if test "X$x" = "X$dir"; then
8715                           haveit=yes
8716                           break
8717                         fi
8718                       done
8719                       if test -z "$haveit"; then
8720                         ltrpathdirs="$ltrpathdirs $dir"
8721                       fi
8722                     fi
8723                     ;;
8724                   -l*)
8725                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8726                     ;;
8727                   *.la)
8728                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8729                     ;;
8730                   *)
8731                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8732                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8733                     ;;
8734                 esac
8735               done
8736             fi
8737           else
8738                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8739             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8740           fi
8741         fi
8742       fi
8743     done
8744   done
8745   if test "X$rpathdirs" != "X"; then
8746     if test -n "$hardcode_libdir_separator"; then
8747                         alldirs=
8748       for found_dir in $rpathdirs; do
8749         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8750       done
8751             acl_save_libdir="$libdir"
8752       libdir="$alldirs"
8753       eval flag=\"$hardcode_libdir_flag_spec\"
8754       libdir="$acl_save_libdir"
8755       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8756     else
8757             for found_dir in $rpathdirs; do
8758         acl_save_libdir="$libdir"
8759         libdir="$found_dir"
8760         eval flag=\"$hardcode_libdir_flag_spec\"
8761         libdir="$acl_save_libdir"
8762         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8763       done
8764     fi
8765   fi
8766   if test "X$ltrpathdirs" != "X"; then
8767             for found_dir in $ltrpathdirs; do
8768       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8769     done
8770   fi
8771
8772
8773
8774
8775
8776
8777
8778
8779   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8780 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8781 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8782   echo $ECHO_N "(cached) $ECHO_C" >&6
8783 else
8784   cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h.  */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h.  */
8790 $ac_includes_default
8791 typedef ptrdiff_t ac__type_new_;
8792 int
8793 main ()
8794 {
8795 if ((ac__type_new_ *) 0)
8796   return 0;
8797 if (sizeof (ac__type_new_))
8798   return 0;
8799   ;
8800   return 0;
8801 }
8802 _ACEOF
8803 rm -f conftest.$ac_objext
8804 if { (ac_try="$ac_compile"
8805 case "(($ac_try" in
8806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807   *) ac_try_echo=$ac_try;;
8808 esac
8809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810   (eval "$ac_compile") 2>conftest.er1
8811   ac_status=$?
8812   grep -v '^ *+' conftest.er1 >conftest.err
8813   rm -f conftest.er1
8814   cat conftest.err >&5
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); } && {
8817          test -z "$ac_c_werror_flag" ||
8818          test ! -s conftest.err
8819        } && test -s conftest.$ac_objext; then
8820   ac_cv_type_ptrdiff_t=yes
8821 else
8822   echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8824
8825         ac_cv_type_ptrdiff_t=no
8826 fi
8827
8828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 fi
8830 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8831 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8832 if test $ac_cv_type_ptrdiff_t = yes; then
8833   :
8834 else
8835
8836 cat >>confdefs.h <<\_ACEOF
8837 #define ptrdiff_t long
8838 _ACEOF
8839
8840
8841 fi
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8854 stdlib.h string.h unistd.h sys/param.h
8855 do
8856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8858   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 fi
8863 ac_res=`eval echo '${'$as_ac_Header'}'`
8864                { echo "$as_me:$LINENO: result: $ac_res" >&5
8865 echo "${ECHO_T}$ac_res" >&6; }
8866 else
8867   # Is the header compilable?
8868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8870 cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h.  */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h.  */
8876 $ac_includes_default
8877 #include <$ac_header>
8878 _ACEOF
8879 rm -f conftest.$ac_objext
8880 if { (ac_try="$ac_compile"
8881 case "(($ac_try" in
8882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883   *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886   (eval "$ac_compile") 2>conftest.er1
8887   ac_status=$?
8888   grep -v '^ *+' conftest.er1 >conftest.err
8889   rm -f conftest.er1
8890   cat conftest.err >&5
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); } && {
8893          test -z "$ac_c_werror_flag" ||
8894          test ! -s conftest.err
8895        } && test -s conftest.$ac_objext; then
8896   ac_header_compiler=yes
8897 else
8898   echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8900
8901         ac_header_compiler=no
8902 fi
8903
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8906 echo "${ECHO_T}$ac_header_compiler" >&6; }
8907
8908 # Is the header present?
8909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h.  */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h.  */
8917 #include <$ac_header>
8918 _ACEOF
8919 if { (ac_try="$ac_cpp conftest.$ac_ext"
8920 case "(($ac_try" in
8921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922   *) ac_try_echo=$ac_try;;
8923 esac
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8926   ac_status=$?
8927   grep -v '^ *+' conftest.er1 >conftest.err
8928   rm -f conftest.er1
8929   cat conftest.err >&5
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); } >/dev/null && {
8932          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8933          test ! -s conftest.err
8934        }; then
8935   ac_header_preproc=yes
8936 else
8937   echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8939
8940   ac_header_preproc=no
8941 fi
8942
8943 rm -f conftest.err conftest.$ac_ext
8944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8945 echo "${ECHO_T}$ac_header_preproc" >&6; }
8946
8947 # So?  What about this header?
8948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8949   yes:no: )
8950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8954     ac_header_preproc=yes
8955     ;;
8956   no:yes:* )
8957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8969
8970     ;;
8971 esac
8972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8975   echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977   eval "$as_ac_Header=\$ac_header_preproc"
8978 fi
8979 ac_res=`eval echo '${'$as_ac_Header'}'`
8980                { echo "$as_me:$LINENO: result: $ac_res" >&5
8981 echo "${ECHO_T}$ac_res" >&6; }
8982
8983 fi
8984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8985   cat >>confdefs.h <<_ACEOF
8986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8987 _ACEOF
8988
8989 fi
8990
8991 done
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9017 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9018 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9019 __fsetlocking
9020 do
9021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9035 #define $ac_func innocuous_$ac_func
9036
9037 /* System header to define __stub macros and hopefully few prototypes,
9038     which can conflict with char $ac_func (); below.
9039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040     <limits.h> exists even on freestanding compilers.  */
9041
9042 #ifdef __STDC__
9043 # include <limits.h>
9044 #else
9045 # include <assert.h>
9046 #endif
9047
9048 #undef $ac_func
9049
9050 /* Override any GCC internal prototype to avoid an error.
9051    Use char because int might match the return type of a GCC
9052    builtin and then its argument prototype would still apply.  */
9053 #ifdef __cplusplus
9054 extern "C"
9055 #endif
9056 char $ac_func ();
9057 /* The GNU C library defines this for functions which it implements
9058     to always fail with ENOSYS.  Some functions are actually named
9059     something starting with __ and the normal name is an alias.  */
9060 #if defined __stub_$ac_func || defined __stub___$ac_func
9061 choke me
9062 #endif
9063
9064 int
9065 main ()
9066 {
9067 return $ac_func ();
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9074 case "(($ac_try" in
9075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076   *) ac_try_echo=$ac_try;;
9077 esac
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079   (eval "$ac_link") 2>conftest.er1
9080   ac_status=$?
9081   grep -v '^ *+' conftest.er1 >conftest.err
9082   rm -f conftest.er1
9083   cat conftest.err >&5
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } && {
9086          test -z "$ac_c_werror_flag" ||
9087          test ! -s conftest.err
9088        } && test -s conftest$ac_exeext &&
9089        $as_test_x conftest$ac_exeext; then
9090   eval "$as_ac_var=yes"
9091 else
9092   echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9094
9095         eval "$as_ac_var=no"
9096 fi
9097
9098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9099       conftest$ac_exeext conftest.$ac_ext
9100 fi
9101 ac_res=`eval echo '${'$as_ac_var'}'`
9102                { echo "$as_me:$LINENO: result: $ac_res" >&5
9103 echo "${ECHO_T}$ac_res" >&6; }
9104 if test `eval echo '${'$as_ac_var'}'` = yes; then
9105   cat >>confdefs.h <<_ACEOF
9106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9107 _ACEOF
9108
9109 fi
9110 done
9111
9112
9113
9114   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9115 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9116 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h.  */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h.  */
9125 #include <stdio.h>
9126 int
9127 main ()
9128 {
9129
9130 #ifndef _snprintf
9131   char *p = (char *) _snprintf;
9132 #endif
9133
9134   ;
9135   return 0;
9136 }
9137 _ACEOF
9138 rm -f conftest.$ac_objext
9139 if { (ac_try="$ac_compile"
9140 case "(($ac_try" in
9141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142   *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145   (eval "$ac_compile") 2>conftest.er1
9146   ac_status=$?
9147   grep -v '^ *+' conftest.er1 >conftest.err
9148   rm -f conftest.er1
9149   cat conftest.err >&5
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } && {
9152          test -z "$ac_c_werror_flag" ||
9153          test ! -s conftest.err
9154        } && test -s conftest.$ac_objext; then
9155   ac_cv_have_decl__snprintf=yes
9156 else
9157   echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9159
9160         ac_cv_have_decl__snprintf=no
9161 fi
9162
9163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9164 fi
9165 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9166 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9167   if test $ac_cv_have_decl__snprintf = yes; then
9168     gt_value=1
9169   else
9170     gt_value=0
9171   fi
9172
9173 cat >>confdefs.h <<_ACEOF
9174 #define HAVE_DECL__SNPRINTF $gt_value
9175 _ACEOF
9176
9177
9178
9179   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9180 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9181 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h.  */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h.  */
9190 #include <stdio.h>
9191 int
9192 main ()
9193 {
9194
9195 #ifndef _snwprintf
9196   char *p = (char *) _snwprintf;
9197 #endif
9198
9199   ;
9200   return 0;
9201 }
9202 _ACEOF
9203 rm -f conftest.$ac_objext
9204 if { (ac_try="$ac_compile"
9205 case "(($ac_try" in
9206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207   *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210   (eval "$ac_compile") 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } && {
9217          test -z "$ac_c_werror_flag" ||
9218          test ! -s conftest.err
9219        } && test -s conftest.$ac_objext; then
9220   ac_cv_have_decl__snwprintf=yes
9221 else
9222   echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9224
9225         ac_cv_have_decl__snwprintf=no
9226 fi
9227
9228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 fi
9230 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9231 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9232   if test $ac_cv_have_decl__snwprintf = yes; then
9233     gt_value=1
9234   else
9235     gt_value=0
9236   fi
9237
9238 cat >>confdefs.h <<_ACEOF
9239 #define HAVE_DECL__SNWPRINTF $gt_value
9240 _ACEOF
9241
9242
9243
9244
9245   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9246 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9247 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9248   echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250   cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h.  */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h.  */
9256 #include <stdio.h>
9257 int
9258 main ()
9259 {
9260
9261 #ifndef feof_unlocked
9262   char *p = (char *) feof_unlocked;
9263 #endif
9264
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 rm -f conftest.$ac_objext
9270 if { (ac_try="$ac_compile"
9271 case "(($ac_try" in
9272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273   *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276   (eval "$ac_compile") 2>conftest.er1
9277   ac_status=$?
9278   grep -v '^ *+' conftest.er1 >conftest.err
9279   rm -f conftest.er1
9280   cat conftest.err >&5
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); } && {
9283          test -z "$ac_c_werror_flag" ||
9284          test ! -s conftest.err
9285        } && test -s conftest.$ac_objext; then
9286   ac_cv_have_decl_feof_unlocked=yes
9287 else
9288   echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9290
9291         ac_cv_have_decl_feof_unlocked=no
9292 fi
9293
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 fi
9296 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9297 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9298   if test $ac_cv_have_decl_feof_unlocked = yes; then
9299     gt_value=1
9300   else
9301     gt_value=0
9302   fi
9303
9304 cat >>confdefs.h <<_ACEOF
9305 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9306 _ACEOF
9307
9308
9309
9310   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9311 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9312 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315   cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h.  */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h.  */
9321 #include <stdio.h>
9322 int
9323 main ()
9324 {
9325
9326 #ifndef fgets_unlocked
9327   char *p = (char *) fgets_unlocked;
9328 #endif
9329
9330   ;
9331   return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9336 case "(($ac_try" in
9337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338   *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341   (eval "$ac_compile") 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } && {
9348          test -z "$ac_c_werror_flag" ||
9349          test ! -s conftest.err
9350        } && test -s conftest.$ac_objext; then
9351   ac_cv_have_decl_fgets_unlocked=yes
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356         ac_cv_have_decl_fgets_unlocked=no
9357 fi
9358
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 fi
9361 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9362 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9363   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9364     gt_value=1
9365   else
9366     gt_value=0
9367   fi
9368
9369 cat >>confdefs.h <<_ACEOF
9370 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9371 _ACEOF
9372
9373
9374
9375   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9376 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9377 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386 #include <stdio.h>
9387 int
9388 main ()
9389 {
9390
9391 #ifndef getc_unlocked
9392   char *p = (char *) getc_unlocked;
9393 #endif
9394
9395   ;
9396   return 0;
9397 }
9398 _ACEOF
9399 rm -f conftest.$ac_objext
9400 if { (ac_try="$ac_compile"
9401 case "(($ac_try" in
9402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403   *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406   (eval "$ac_compile") 2>conftest.er1
9407   ac_status=$?
9408   grep -v '^ *+' conftest.er1 >conftest.err
9409   rm -f conftest.er1
9410   cat conftest.err >&5
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } && {
9413          test -z "$ac_c_werror_flag" ||
9414          test ! -s conftest.err
9415        } && test -s conftest.$ac_objext; then
9416   ac_cv_have_decl_getc_unlocked=yes
9417 else
9418   echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9420
9421         ac_cv_have_decl_getc_unlocked=no
9422 fi
9423
9424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 fi
9426 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9427 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9428   if test $ac_cv_have_decl_getc_unlocked = yes; then
9429     gt_value=1
9430   else
9431     gt_value=0
9432   fi
9433
9434 cat >>confdefs.h <<_ACEOF
9435 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9436 _ACEOF
9437
9438
9439
9440   case $gt_cv_func_printf_posix in
9441     *yes) HAVE_POSIX_PRINTF=1 ;;
9442     *) HAVE_POSIX_PRINTF=0 ;;
9443   esac
9444
9445   if test "$ac_cv_func_asprintf" = yes; then
9446     HAVE_ASPRINTF=1
9447   else
9448     HAVE_ASPRINTF=0
9449   fi
9450
9451   if test "$ac_cv_func_snprintf" = yes; then
9452     HAVE_SNPRINTF=1
9453   else
9454     HAVE_SNPRINTF=0
9455   fi
9456
9457   if test "$ac_cv_func_wprintf" = yes; then
9458     HAVE_WPRINTF=1
9459   else
9460     HAVE_WPRINTF=0
9461   fi
9462
9463
9464
9465
9466
9467
9468
9469           am_save_CPPFLAGS="$CPPFLAGS"
9470
9471   for element in $INCICONV; do
9472     haveit=
9473     for x in $CPPFLAGS; do
9474
9475   acl_save_prefix="$prefix"
9476   prefix="$acl_final_prefix"
9477   acl_save_exec_prefix="$exec_prefix"
9478   exec_prefix="$acl_final_exec_prefix"
9479   eval x=\"$x\"
9480   exec_prefix="$acl_save_exec_prefix"
9481   prefix="$acl_save_prefix"
9482
9483       if test "X$x" = "X$element"; then
9484         haveit=yes
9485         break
9486       fi
9487     done
9488     if test -z "$haveit"; then
9489       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9490     fi
9491   done
9492
9493
9494   { echo "$as_me:$LINENO: checking for iconv" >&5
9495 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9496 if test "${am_cv_func_iconv+set}" = set; then
9497   echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499
9500     am_cv_func_iconv="no, consider installing GNU libiconv"
9501     am_cv_lib_iconv=no
9502     cat >conftest.$ac_ext <<_ACEOF
9503 /* confdefs.h.  */
9504 _ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h.  */
9508 #include <stdlib.h>
9509 #include <iconv.h>
9510 int
9511 main ()
9512 {
9513 iconv_t cd = iconv_open("","");
9514        iconv(cd,NULL,NULL,NULL,NULL);
9515        iconv_close(cd);
9516   ;
9517   return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext conftest$ac_exeext
9521 if { (ac_try="$ac_link"
9522 case "(($ac_try" in
9523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524   *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527   (eval "$ac_link") 2>conftest.er1
9528   ac_status=$?
9529   grep -v '^ *+' conftest.er1 >conftest.err
9530   rm -f conftest.er1
9531   cat conftest.err >&5
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); } && {
9534          test -z "$ac_c_werror_flag" ||
9535          test ! -s conftest.err
9536        } && test -s conftest$ac_exeext &&
9537        $as_test_x conftest$ac_exeext; then
9538   am_cv_func_iconv=yes
9539 else
9540   echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543
9544 fi
9545
9546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9547       conftest$ac_exeext conftest.$ac_ext
9548     if test "$am_cv_func_iconv" != yes; then
9549       am_save_LIBS="$LIBS"
9550       LIBS="$LIBS $LIBICONV"
9551       cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557 #include <stdlib.h>
9558 #include <iconv.h>
9559 int
9560 main ()
9561 {
9562 iconv_t cd = iconv_open("","");
9563          iconv(cd,NULL,NULL,NULL,NULL);
9564          iconv_close(cd);
9565   ;
9566   return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (ac_try="$ac_link"
9571 case "(($ac_try" in
9572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573   *) ac_try_echo=$ac_try;;
9574 esac
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576   (eval "$ac_link") 2>conftest.er1
9577   ac_status=$?
9578   grep -v '^ *+' conftest.er1 >conftest.err
9579   rm -f conftest.er1
9580   cat conftest.err >&5
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); } && {
9583          test -z "$ac_c_werror_flag" ||
9584          test ! -s conftest.err
9585        } && test -s conftest$ac_exeext &&
9586        $as_test_x conftest$ac_exeext; then
9587   am_cv_lib_iconv=yes
9588         am_cv_func_iconv=yes
9589 else
9590   echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593
9594 fi
9595
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597       conftest$ac_exeext conftest.$ac_ext
9598       LIBS="$am_save_LIBS"
9599     fi
9600
9601 fi
9602 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9603 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9604   if test "$am_cv_func_iconv" = yes; then
9605
9606 cat >>confdefs.h <<\_ACEOF
9607 #define HAVE_ICONV 1
9608 _ACEOF
9609
9610   fi
9611   if test "$am_cv_lib_iconv" = yes; then
9612     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9613 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9614     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9615 echo "${ECHO_T}$LIBICONV" >&6; }
9616   else
9617             CPPFLAGS="$am_save_CPPFLAGS"
9618     LIBICONV=
9619     LTLIBICONV=
9620   fi
9621
9622
9623
9624   if test "$am_cv_func_iconv" = yes; then
9625     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9626 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9627     if test "${am_cv_proto_iconv+set}" = set; then
9628   echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630
9631       cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h.  */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h.  */
9637
9638 #include <stdlib.h>
9639 #include <iconv.h>
9640 extern
9641 #ifdef __cplusplus
9642 "C"
9643 #endif
9644 #if defined(__STDC__) || defined(__cplusplus)
9645 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9646 #else
9647 size_t iconv();
9648 #endif
9649
9650 int
9651 main ()
9652 {
9653
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext
9659 if { (ac_try="$ac_compile"
9660 case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_compile") 2>conftest.er1
9666   ac_status=$?
9667   grep -v '^ *+' conftest.er1 >conftest.err
9668   rm -f conftest.er1
9669   cat conftest.err >&5
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); } && {
9672          test -z "$ac_c_werror_flag" ||
9673          test ! -s conftest.err
9674        } && test -s conftest.$ac_objext; then
9675   am_cv_proto_iconv_arg1=""
9676 else
9677   echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680         am_cv_proto_iconv_arg1="const"
9681 fi
9682
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9685 fi
9686
9687     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9688     { echo "$as_me:$LINENO: result: ${ac_t:-
9689          }$am_cv_proto_iconv" >&5
9690 echo "${ECHO_T}${ac_t:-
9691          }$am_cv_proto_iconv" >&6; }
9692
9693 cat >>confdefs.h <<_ACEOF
9694 #define ICONV_CONST $am_cv_proto_iconv_arg1
9695 _ACEOF
9696
9697   fi
9698
9699
9700   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9701 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9702 if test "${am_cv_langinfo_codeset+set}" = set; then
9703   echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705   cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h.  */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h.  */
9711 #include <langinfo.h>
9712 int
9713 main ()
9714 {
9715 char* cs = nl_langinfo(CODESET);
9716   ;
9717   return 0;
9718 }
9719 _ACEOF
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9722 case "(($ac_try" in
9723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724   *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727   (eval "$ac_link") 2>conftest.er1
9728   ac_status=$?
9729   grep -v '^ *+' conftest.er1 >conftest.err
9730   rm -f conftest.er1
9731   cat conftest.err >&5
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); } && {
9734          test -z "$ac_c_werror_flag" ||
9735          test ! -s conftest.err
9736        } && test -s conftest$ac_exeext &&
9737        $as_test_x conftest$ac_exeext; then
9738   am_cv_langinfo_codeset=yes
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743         am_cv_langinfo_codeset=no
9744 fi
9745
9746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747       conftest$ac_exeext conftest.$ac_ext
9748
9749 fi
9750 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9751 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9752   if test $am_cv_langinfo_codeset = yes; then
9753
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_LANGINFO_CODESET 1
9756 _ACEOF
9757
9758   fi
9759
9760   if test $ac_cv_header_locale_h = yes; then
9761
9762   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9763 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9764 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9765   echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767   cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773 #include <locale.h>
9774 int
9775 main ()
9776 {
9777 return LC_MESSAGES
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9784 case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_link") 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } && {
9796          test -z "$ac_c_werror_flag" ||
9797          test ! -s conftest.err
9798        } && test -s conftest$ac_exeext &&
9799        $as_test_x conftest$ac_exeext; then
9800   am_cv_val_LC_MESSAGES=yes
9801 else
9802   echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805         am_cv_val_LC_MESSAGES=no
9806 fi
9807
9808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9809       conftest$ac_exeext conftest.$ac_ext
9810 fi
9811 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9812 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9813   if test $am_cv_val_LC_MESSAGES = yes; then
9814
9815 cat >>confdefs.h <<\_ACEOF
9816 #define HAVE_LC_MESSAGES 1
9817 _ACEOF
9818
9819   fi
9820
9821   fi
9822
9823                       for ac_prog in bison
9824 do
9825   # Extract the first word of "$ac_prog", so it can be a program name with args.
9826 set dummy $ac_prog; ac_word=$2
9827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9829 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832   if test -n "$INTLBISON"; then
9833   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9834 else
9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836 for as_dir in $PATH
9837 do
9838   IFS=$as_save_IFS
9839   test -z "$as_dir" && as_dir=.
9840   for ac_exec_ext in '' $ac_executable_extensions; do
9841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9842     ac_cv_prog_INTLBISON="$ac_prog"
9843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9844     break 2
9845   fi
9846 done
9847 done
9848 IFS=$as_save_IFS
9849
9850 fi
9851 fi
9852 INTLBISON=$ac_cv_prog_INTLBISON
9853 if test -n "$INTLBISON"; then
9854   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9855 echo "${ECHO_T}$INTLBISON" >&6; }
9856 else
9857   { echo "$as_me:$LINENO: result: no" >&5
9858 echo "${ECHO_T}no" >&6; }
9859 fi
9860
9861
9862   test -n "$INTLBISON" && break
9863 done
9864
9865   if test -z "$INTLBISON"; then
9866     ac_verc_fail=yes
9867   else
9868         { echo "$as_me:$LINENO: checking version of bison" >&5
9869 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9870     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9871     case $ac_prog_version in
9872       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9873       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9874          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9875       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9876     esac
9877     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9878 echo "${ECHO_T}$ac_prog_version" >&6; }
9879   fi
9880   if test $ac_verc_fail = yes; then
9881     INTLBISON=:
9882   fi
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9900 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9901     # Check whether --enable-nls was given.
9902 if test "${enable_nls+set}" = set; then
9903   enableval=$enable_nls; USE_NLS=$enableval
9904 else
9905   USE_NLS=yes
9906 fi
9907
9908   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9909 echo "${ECHO_T}$USE_NLS" >&6; }
9910
9911
9912
9913
9914     BUILD_INCLUDED_LIBINTL=no
9915     USE_INCLUDED_LIBINTL=no
9916
9917   LIBINTL=
9918   LTLIBINTL=
9919   POSUB=
9920
9921     if test "$USE_NLS" = "yes"; then
9922     gt_use_preinstalled_gnugettext=no
9923
9924       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9925 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
9926
9927 # Check whether --with-included-gettext was given.
9928 if test "${with_included_gettext+set}" = set; then
9929   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9930 else
9931   nls_cv_force_use_gnu_gettext=no
9932 fi
9933
9934       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9935 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
9936
9937       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9938       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9939
9940
9941
9942
9943
9944
9945         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9946 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
9947 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950   cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h.  */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h.  */
9956 #include <libintl.h>
9957 extern int _nl_msg_cat_cntr;
9958 extern int *_nl_domain_bindings;
9959 int
9960 main ()
9961 {
9962 bindtextdomain ("", "");
9963 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9970 case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975   (eval "$ac_link") 2>conftest.er1
9976   ac_status=$?
9977   grep -v '^ *+' conftest.er1 >conftest.err
9978   rm -f conftest.er1
9979   cat conftest.err >&5
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); } && {
9982          test -z "$ac_c_werror_flag" ||
9983          test ! -s conftest.err
9984        } && test -s conftest$ac_exeext &&
9985        $as_test_x conftest$ac_exeext; then
9986   gt_cv_func_gnugettext1_libc=yes
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991         gt_cv_func_gnugettext1_libc=no
9992 fi
9993
9994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9995       conftest$ac_exeext conftest.$ac_ext
9996 fi
9997 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9998 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
9999
10000         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10001
10002
10003
10004     use_additional=yes
10005
10006   acl_save_prefix="$prefix"
10007   prefix="$acl_final_prefix"
10008   acl_save_exec_prefix="$exec_prefix"
10009   exec_prefix="$acl_final_exec_prefix"
10010
10011     eval additional_includedir=\"$includedir\"
10012     eval additional_libdir=\"$libdir\"
10013
10014   exec_prefix="$acl_save_exec_prefix"
10015   prefix="$acl_save_prefix"
10016
10017
10018 # Check whether --with-libintl-prefix was given.
10019 if test "${with_libintl_prefix+set}" = set; then
10020   withval=$with_libintl_prefix;
10021     if test "X$withval" = "Xno"; then
10022       use_additional=no
10023     else
10024       if test "X$withval" = "X"; then
10025
10026   acl_save_prefix="$prefix"
10027   prefix="$acl_final_prefix"
10028   acl_save_exec_prefix="$exec_prefix"
10029   exec_prefix="$acl_final_exec_prefix"
10030
10031           eval additional_includedir=\"$includedir\"
10032           eval additional_libdir=\"$libdir\"
10033
10034   exec_prefix="$acl_save_exec_prefix"
10035   prefix="$acl_save_prefix"
10036
10037       else
10038         additional_includedir="$withval/include"
10039         additional_libdir="$withval/lib"
10040       fi
10041     fi
10042
10043 fi
10044
10045       LIBINTL=
10046   LTLIBINTL=
10047   INCINTL=
10048   rpathdirs=
10049   ltrpathdirs=
10050   names_already_handled=
10051   names_next_round='intl '
10052   while test -n "$names_next_round"; do
10053     names_this_round="$names_next_round"
10054     names_next_round=
10055     for name in $names_this_round; do
10056       already_handled=
10057       for n in $names_already_handled; do
10058         if test "$n" = "$name"; then
10059           already_handled=yes
10060           break
10061         fi
10062       done
10063       if test -z "$already_handled"; then
10064         names_already_handled="$names_already_handled $name"
10065                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10066         eval value=\"\$HAVE_LIB$uppername\"
10067         if test -n "$value"; then
10068           if test "$value" = yes; then
10069             eval value=\"\$LIB$uppername\"
10070             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10071             eval value=\"\$LTLIB$uppername\"
10072             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10073           else
10074                                     :
10075           fi
10076         else
10077                               found_dir=
10078           found_la=
10079           found_so=
10080           found_a=
10081           if test $use_additional = yes; then
10082             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10083               found_dir="$additional_libdir"
10084               found_so="$additional_libdir/lib$name.$shlibext"
10085               if test -f "$additional_libdir/lib$name.la"; then
10086                 found_la="$additional_libdir/lib$name.la"
10087               fi
10088             else
10089               if test -f "$additional_libdir/lib$name.$libext"; then
10090                 found_dir="$additional_libdir"
10091                 found_a="$additional_libdir/lib$name.$libext"
10092                 if test -f "$additional_libdir/lib$name.la"; then
10093                   found_la="$additional_libdir/lib$name.la"
10094                 fi
10095               fi
10096             fi
10097           fi
10098           if test "X$found_dir" = "X"; then
10099             for x in $LDFLAGS $LTLIBINTL; do
10100
10101   acl_save_prefix="$prefix"
10102   prefix="$acl_final_prefix"
10103   acl_save_exec_prefix="$exec_prefix"
10104   exec_prefix="$acl_final_exec_prefix"
10105   eval x=\"$x\"
10106   exec_prefix="$acl_save_exec_prefix"
10107   prefix="$acl_save_prefix"
10108
10109               case "$x" in
10110                 -L*)
10111                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10112                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10113                     found_dir="$dir"
10114                     found_so="$dir/lib$name.$shlibext"
10115                     if test -f "$dir/lib$name.la"; then
10116                       found_la="$dir/lib$name.la"
10117                     fi
10118                   else
10119                     if test -f "$dir/lib$name.$libext"; then
10120                       found_dir="$dir"
10121                       found_a="$dir/lib$name.$libext"
10122                       if test -f "$dir/lib$name.la"; then
10123                         found_la="$dir/lib$name.la"
10124                       fi
10125                     fi
10126                   fi
10127                   ;;
10128               esac
10129               if test "X$found_dir" != "X"; then
10130                 break
10131               fi
10132             done
10133           fi
10134           if test "X$found_dir" != "X"; then
10135                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10136             if test "X$found_so" != "X"; then
10137                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10138                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10139               else
10140                                                                                 haveit=
10141                 for x in $ltrpathdirs; do
10142                   if test "X$x" = "X$found_dir"; then
10143                     haveit=yes
10144                     break
10145                   fi
10146                 done
10147                 if test -z "$haveit"; then
10148                   ltrpathdirs="$ltrpathdirs $found_dir"
10149                 fi
10150                                 if test "$hardcode_direct" = yes; then
10151                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10152                 else
10153                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10154                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10155                                                             haveit=
10156                     for x in $rpathdirs; do
10157                       if test "X$x" = "X$found_dir"; then
10158                         haveit=yes
10159                         break
10160                       fi
10161                     done
10162                     if test -z "$haveit"; then
10163                       rpathdirs="$rpathdirs $found_dir"
10164                     fi
10165                   else
10166                                                                                 haveit=
10167                     for x in $LDFLAGS $LIBINTL; do
10168
10169   acl_save_prefix="$prefix"
10170   prefix="$acl_final_prefix"
10171   acl_save_exec_prefix="$exec_prefix"
10172   exec_prefix="$acl_final_exec_prefix"
10173   eval x=\"$x\"
10174   exec_prefix="$acl_save_exec_prefix"
10175   prefix="$acl_save_prefix"
10176
10177                       if test "X$x" = "X-L$found_dir"; then
10178                         haveit=yes
10179                         break
10180                       fi
10181                     done
10182                     if test -z "$haveit"; then
10183                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10184                     fi
10185                     if test "$hardcode_minus_L" != no; then
10186                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10187                     else
10188                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10189                     fi
10190                   fi
10191                 fi
10192               fi
10193             else
10194               if test "X$found_a" != "X"; then
10195                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10196               else
10197                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10198               fi
10199             fi
10200                         additional_includedir=
10201             case "$found_dir" in
10202               */lib | */lib/)
10203                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10204                 additional_includedir="$basedir/include"
10205                 ;;
10206             esac
10207             if test "X$additional_includedir" != "X"; then
10208                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10209                 haveit=
10210                 if test "X$additional_includedir" = "X/usr/local/include"; then
10211                   if test -n "$GCC"; then
10212                     case $host_os in
10213                       linux*) haveit=yes;;
10214                     esac
10215                   fi
10216                 fi
10217                 if test -z "$haveit"; then
10218                   for x in $CPPFLAGS $INCINTL; do
10219
10220   acl_save_prefix="$prefix"
10221   prefix="$acl_final_prefix"
10222   acl_save_exec_prefix="$exec_prefix"
10223   exec_prefix="$acl_final_exec_prefix"
10224   eval x=\"$x\"
10225   exec_prefix="$acl_save_exec_prefix"
10226   prefix="$acl_save_prefix"
10227
10228                     if test "X$x" = "X-I$additional_includedir"; then
10229                       haveit=yes
10230                       break
10231                     fi
10232                   done
10233                   if test -z "$haveit"; then
10234                     if test -d "$additional_includedir"; then
10235                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10236                     fi
10237                   fi
10238                 fi
10239               fi
10240             fi
10241                         if test -n "$found_la"; then
10242                                                         save_libdir="$libdir"
10243               case "$found_la" in
10244                 */* | *\\*) . "$found_la" ;;
10245                 *) . "./$found_la" ;;
10246               esac
10247               libdir="$save_libdir"
10248                             for dep in $dependency_libs; do
10249                 case "$dep" in
10250                   -L*)
10251                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10252                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10253                       haveit=
10254                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10255                         if test -n "$GCC"; then
10256                           case $host_os in
10257                             linux*) haveit=yes;;
10258                           esac
10259                         fi
10260                       fi
10261                       if test -z "$haveit"; then
10262                         haveit=
10263                         for x in $LDFLAGS $LIBINTL; do
10264
10265   acl_save_prefix="$prefix"
10266   prefix="$acl_final_prefix"
10267   acl_save_exec_prefix="$exec_prefix"
10268   exec_prefix="$acl_final_exec_prefix"
10269   eval x=\"$x\"
10270   exec_prefix="$acl_save_exec_prefix"
10271   prefix="$acl_save_prefix"
10272
10273                           if test "X$x" = "X-L$additional_libdir"; then
10274                             haveit=yes
10275                             break
10276                           fi
10277                         done
10278                         if test -z "$haveit"; then
10279                           if test -d "$additional_libdir"; then
10280                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10281                           fi
10282                         fi
10283                         haveit=
10284                         for x in $LDFLAGS $LTLIBINTL; do
10285
10286   acl_save_prefix="$prefix"
10287   prefix="$acl_final_prefix"
10288   acl_save_exec_prefix="$exec_prefix"
10289   exec_prefix="$acl_final_exec_prefix"
10290   eval x=\"$x\"
10291   exec_prefix="$acl_save_exec_prefix"
10292   prefix="$acl_save_prefix"
10293
10294                           if test "X$x" = "X-L$additional_libdir"; then
10295                             haveit=yes
10296                             break
10297                           fi
10298                         done
10299                         if test -z "$haveit"; then
10300                           if test -d "$additional_libdir"; then
10301                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10302                           fi
10303                         fi
10304                       fi
10305                     fi
10306                     ;;
10307                   -R*)
10308                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10309                     if test "$enable_rpath" != no; then
10310                                                                   haveit=
10311                       for x in $rpathdirs; do
10312                         if test "X$x" = "X$dir"; then
10313                           haveit=yes
10314                           break
10315                         fi
10316                       done
10317                       if test -z "$haveit"; then
10318                         rpathdirs="$rpathdirs $dir"
10319                       fi
10320                                                                   haveit=
10321                       for x in $ltrpathdirs; do
10322                         if test "X$x" = "X$dir"; then
10323                           haveit=yes
10324                           break
10325                         fi
10326                       done
10327                       if test -z "$haveit"; then
10328                         ltrpathdirs="$ltrpathdirs $dir"
10329                       fi
10330                     fi
10331                     ;;
10332                   -l*)
10333                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10334                     ;;
10335                   *.la)
10336                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10337                     ;;
10338                   *)
10339                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10340                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10341                     ;;
10342                 esac
10343               done
10344             fi
10345           else
10346                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10347             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10348           fi
10349         fi
10350       fi
10351     done
10352   done
10353   if test "X$rpathdirs" != "X"; then
10354     if test -n "$hardcode_libdir_separator"; then
10355                         alldirs=
10356       for found_dir in $rpathdirs; do
10357         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10358       done
10359             acl_save_libdir="$libdir"
10360       libdir="$alldirs"
10361       eval flag=\"$hardcode_libdir_flag_spec\"
10362       libdir="$acl_save_libdir"
10363       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10364     else
10365             for found_dir in $rpathdirs; do
10366         acl_save_libdir="$libdir"
10367         libdir="$found_dir"
10368         eval flag=\"$hardcode_libdir_flag_spec\"
10369         libdir="$acl_save_libdir"
10370         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10371       done
10372     fi
10373   fi
10374   if test "X$ltrpathdirs" != "X"; then
10375             for found_dir in $ltrpathdirs; do
10376       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10377     done
10378   fi
10379
10380           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10381 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10382 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385   gt_save_CPPFLAGS="$CPPFLAGS"
10386             CPPFLAGS="$CPPFLAGS $INCINTL"
10387             gt_save_LIBS="$LIBS"
10388             LIBS="$LIBS $LIBINTL"
10389                         cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395 #include <libintl.h>
10396 extern int _nl_msg_cat_cntr;
10397 extern
10398 #ifdef __cplusplus
10399 "C"
10400 #endif
10401 const char *_nl_expand_alias ();
10402 int
10403 main ()
10404 {
10405 bindtextdomain ("", "");
10406 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10407   ;
10408   return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418   (eval "$ac_link") 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } && {
10425          test -z "$ac_c_werror_flag" ||
10426          test ! -s conftest.err
10427        } && test -s conftest$ac_exeext &&
10428        $as_test_x conftest$ac_exeext; then
10429   gt_cv_func_gnugettext1_libintl=yes
10430 else
10431   echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434         gt_cv_func_gnugettext1_libintl=no
10435 fi
10436
10437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10438       conftest$ac_exeext conftest.$ac_ext
10439                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10440               LIBS="$LIBS $LIBICONV"
10441               cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h.  */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h.  */
10447 #include <libintl.h>
10448 extern int _nl_msg_cat_cntr;
10449 extern
10450 #ifdef __cplusplus
10451 "C"
10452 #endif
10453 const char *_nl_expand_alias ();
10454 int
10455 main ()
10456 {
10457 bindtextdomain ("", "");
10458 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10459   ;
10460   return 0;
10461 }
10462 _ACEOF
10463 rm -f conftest.$ac_objext conftest$ac_exeext
10464 if { (ac_try="$ac_link"
10465 case "(($ac_try" in
10466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467   *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470   (eval "$ac_link") 2>conftest.er1
10471   ac_status=$?
10472   grep -v '^ *+' conftest.er1 >conftest.err
10473   rm -f conftest.er1
10474   cat conftest.err >&5
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); } && {
10477          test -z "$ac_c_werror_flag" ||
10478          test ! -s conftest.err
10479        } && test -s conftest$ac_exeext &&
10480        $as_test_x conftest$ac_exeext; then
10481   LIBINTL="$LIBINTL $LIBICONV"
10482                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10483                 gt_cv_func_gnugettext1_libintl=yes
10484
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489
10490 fi
10491
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493       conftest$ac_exeext conftest.$ac_ext
10494             fi
10495             CPPFLAGS="$gt_save_CPPFLAGS"
10496             LIBS="$gt_save_LIBS"
10497 fi
10498 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10499 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10500         fi
10501
10502                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10503            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10504                 && test "$PACKAGE" != gettext-runtime \
10505                 && test "$PACKAGE" != gettext-tools; }; then
10506           gt_use_preinstalled_gnugettext=yes
10507         else
10508                     LIBINTL=
10509           LTLIBINTL=
10510           INCINTL=
10511         fi
10512
10513
10514         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10515                               nls_cv_use_gnu_gettext=yes
10516         fi
10517       fi
10518
10519       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10520                 BUILD_INCLUDED_LIBINTL=yes
10521         USE_INCLUDED_LIBINTL=yes
10522         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10523         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10524         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10525       fi
10526
10527       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10528          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10529                 CATOBJEXT=.gmo
10530       fi
10531
10532
10533     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10534        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10535
10536 cat >>confdefs.h <<\_ACEOF
10537 #define ENABLE_NLS 1
10538 _ACEOF
10539
10540     else
10541       USE_NLS=no
10542     fi
10543   fi
10544
10545   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10546 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10547   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10548 echo "${ECHO_T}$USE_NLS" >&6; }
10549   if test "$USE_NLS" = "yes"; then
10550     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10551 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10552     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10553       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10554         gt_source="external libintl"
10555       else
10556         gt_source="libc"
10557       fi
10558     else
10559       gt_source="included intl directory"
10560     fi
10561     { echo "$as_me:$LINENO: result: $gt_source" >&5
10562 echo "${ECHO_T}$gt_source" >&6; }
10563   fi
10564
10565   if test "$USE_NLS" = "yes"; then
10566
10567     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10568       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10569         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10570 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10571         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10572 echo "${ECHO_T}$LIBINTL" >&6; }
10573
10574   for element in $INCINTL; do
10575     haveit=
10576     for x in $CPPFLAGS; do
10577
10578   acl_save_prefix="$prefix"
10579   prefix="$acl_final_prefix"
10580   acl_save_exec_prefix="$exec_prefix"
10581   exec_prefix="$acl_final_exec_prefix"
10582   eval x=\"$x\"
10583   exec_prefix="$acl_save_exec_prefix"
10584   prefix="$acl_save_prefix"
10585
10586       if test "X$x" = "X$element"; then
10587         haveit=yes
10588         break
10589       fi
10590     done
10591     if test -z "$haveit"; then
10592       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10593     fi
10594   done
10595
10596       fi
10597
10598
10599 cat >>confdefs.h <<\_ACEOF
10600 #define HAVE_GETTEXT 1
10601 _ACEOF
10602
10603
10604 cat >>confdefs.h <<\_ACEOF
10605 #define HAVE_DCGETTEXT 1
10606 _ACEOF
10607
10608     fi
10609
10610         POSUB=po
10611   fi
10612
10613
10614             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10615       BUILD_INCLUDED_LIBINTL=yes
10616     fi
10617
10618
10619
10620
10621
10622         nls_cv_header_intl=
10623     nls_cv_header_libgt=
10624
10625         DATADIRNAME=share
10626
10627
10628         INSTOBJEXT=.mo
10629
10630
10631         GENCAT=gencat
10632
10633
10634         if test "$USE_INCLUDED_LIBINTL" = yes; then
10635       INTLOBJS="\$(GETTOBJS)"
10636     fi
10637
10638
10639         INTL_LIBTOOL_SUFFIX_PREFIX=
10640
10641
10642
10643     INTLLIBS="$LIBINTL"
10644
10645
10646
10647
10648
10649
10650
10651 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10652 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10653 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10654 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10655   echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657   cat >conftest.make <<\_ACEOF
10658 SHELL = /bin/sh
10659 all:
10660         @echo '@@@%%%=$(MAKE)=@@@%%%'
10661 _ACEOF
10662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10664   *@@@%%%=?*=@@@%%%*)
10665     eval ac_cv_prog_make_${ac_make}_set=yes;;
10666   *)
10667     eval ac_cv_prog_make_${ac_make}_set=no;;
10668 esac
10669 rm -f conftest.make
10670 fi
10671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10672   { echo "$as_me:$LINENO: result: yes" >&5
10673 echo "${ECHO_T}yes" >&6; }
10674   SET_MAKE=
10675 else
10676   { echo "$as_me:$LINENO: result: no" >&5
10677 echo "${ECHO_T}no" >&6; }
10678   SET_MAKE="MAKE=${MAKE-make}"
10679 fi
10680
10681 # Extract the first word of "ln", so it can be a program name with args.
10682 set dummy ln; ac_word=$2
10683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10685 if test "${ac_cv_path_LN+set}" = set; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688   case $LN in
10689   [\\/]* | ?:[\\/]*)
10690   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10691   ;;
10692   *)
10693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694 for as_dir in $PATH
10695 do
10696   IFS=$as_save_IFS
10697   test -z "$as_dir" && as_dir=.
10698   for ac_exec_ext in '' $ac_executable_extensions; do
10699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10700     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10702     break 2
10703   fi
10704 done
10705 done
10706 IFS=$as_save_IFS
10707
10708   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10709   ;;
10710 esac
10711 fi
10712 LN=$ac_cv_path_LN
10713 if test -n "$LN"; then
10714   { echo "$as_me:$LINENO: result: $LN" >&5
10715 echo "${ECHO_T}$LN" >&6; }
10716 else
10717   { echo "$as_me:$LINENO: result: no" >&5
10718 echo "${ECHO_T}no" >&6; }
10719 fi
10720
10721
10722 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10723 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10724 LN_S=$as_ln_s
10725 if test "$LN_S" = "ln -s"; then
10726   { echo "$as_me:$LINENO: result: yes" >&5
10727 echo "${ECHO_T}yes" >&6; }
10728 else
10729   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10730 echo "${ECHO_T}no, using $LN_S" >&6; }
10731 fi
10732
10733 # Extract the first word of "mv", so it can be a program name with args.
10734 set dummy mv; ac_word=$2
10735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10737 if test "${ac_cv_path_MV+set}" = set; then
10738   echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740   case $MV in
10741   [\\/]* | ?:[\\/]*)
10742   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10743   ;;
10744   *)
10745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $PATH
10747 do
10748   IFS=$as_save_IFS
10749   test -z "$as_dir" && as_dir=.
10750   for ac_exec_ext in '' $ac_executable_extensions; do
10751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10752     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10754     break 2
10755   fi
10756 done
10757 done
10758 IFS=$as_save_IFS
10759
10760   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10761   ;;
10762 esac
10763 fi
10764 MV=$ac_cv_path_MV
10765 if test -n "$MV"; then
10766   { echo "$as_me:$LINENO: result: $MV" >&5
10767 echo "${ECHO_T}$MV" >&6; }
10768 else
10769   { echo "$as_me:$LINENO: result: no" >&5
10770 echo "${ECHO_T}no" >&6; }
10771 fi
10772
10773
10774 # Extract the first word of "cp", so it can be a program name with args.
10775 set dummy cp; ac_word=$2
10776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10778 if test "${ac_cv_path_CP+set}" = set; then
10779   echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781   case $CP in
10782   [\\/]* | ?:[\\/]*)
10783   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10784   ;;
10785   *)
10786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in $PATH
10788 do
10789   IFS=$as_save_IFS
10790   test -z "$as_dir" && as_dir=.
10791   for ac_exec_ext in '' $ac_executable_extensions; do
10792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10793     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10795     break 2
10796   fi
10797 done
10798 done
10799 IFS=$as_save_IFS
10800
10801   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10802   ;;
10803 esac
10804 fi
10805 CP=$ac_cv_path_CP
10806 if test -n "$CP"; then
10807   { echo "$as_me:$LINENO: result: $CP" >&5
10808 echo "${ECHO_T}$CP" >&6; }
10809 else
10810   { echo "$as_me:$LINENO: result: no" >&5
10811 echo "${ECHO_T}no" >&6; }
10812 fi
10813
10814
10815 # Extract the first word of "rm", so it can be a program name with args.
10816 set dummy rm; ac_word=$2
10817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10819 if test "${ac_cv_path_RM+set}" = set; then
10820   echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822   case $RM in
10823   [\\/]* | ?:[\\/]*)
10824   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10825   ;;
10826   *)
10827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10829 do
10830   IFS=$as_save_IFS
10831   test -z "$as_dir" && as_dir=.
10832   for ac_exec_ext in '' $ac_executable_extensions; do
10833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10834     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10836     break 2
10837   fi
10838 done
10839 done
10840 IFS=$as_save_IFS
10841
10842   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10843   ;;
10844 esac
10845 fi
10846 RM=$ac_cv_path_RM
10847 if test -n "$RM"; then
10848   { echo "$as_me:$LINENO: result: $RM" >&5
10849 echo "${ECHO_T}$RM" >&6; }
10850 else
10851   { echo "$as_me:$LINENO: result: no" >&5
10852 echo "${ECHO_T}no" >&6; }
10853 fi
10854
10855
10856 # Extract the first word of "chmod", so it can be a program name with args.
10857 set dummy chmod; ac_word=$2
10858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10860 if test "${ac_cv_path_CHMOD+set}" = set; then
10861   echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863   case $CHMOD in
10864   [\\/]* | ?:[\\/]*)
10865   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10866   ;;
10867   *)
10868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10870 do
10871   IFS=$as_save_IFS
10872   test -z "$as_dir" && as_dir=.
10873   for ac_exec_ext in '' $ac_executable_extensions; do
10874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10877     break 2
10878   fi
10879 done
10880 done
10881 IFS=$as_save_IFS
10882
10883   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10884   ;;
10885 esac
10886 fi
10887 CHMOD=$ac_cv_path_CHMOD
10888 if test -n "$CHMOD"; then
10889   { echo "$as_me:$LINENO: result: $CHMOD" >&5
10890 echo "${ECHO_T}$CHMOD" >&6; }
10891 else
10892   { echo "$as_me:$LINENO: result: no" >&5
10893 echo "${ECHO_T}no" >&6; }
10894 fi
10895
10896
10897 for ac_prog in gawk mawk nawk awk
10898 do
10899   # Extract the first word of "$ac_prog", so it can be a program name with args.
10900 set dummy $ac_prog; ac_word=$2
10901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10903 if test "${ac_cv_prog_AWK+set}" = set; then
10904   echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906   if test -n "$AWK"; then
10907   ac_cv_prog_AWK="$AWK" # Let the user override the test.
10908 else
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $PATH
10911 do
10912   IFS=$as_save_IFS
10913   test -z "$as_dir" && as_dir=.
10914   for ac_exec_ext in '' $ac_executable_extensions; do
10915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10916     ac_cv_prog_AWK="$ac_prog"
10917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10918     break 2
10919   fi
10920 done
10921 done
10922 IFS=$as_save_IFS
10923
10924 fi
10925 fi
10926 AWK=$ac_cv_prog_AWK
10927 if test -n "$AWK"; then
10928   { echo "$as_me:$LINENO: result: $AWK" >&5
10929 echo "${ECHO_T}$AWK" >&6; }
10930 else
10931   { echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6; }
10933 fi
10934
10935
10936   test -n "$AWK" && break
10937 done
10938
10939 { echo "$as_me:$LINENO: checking for egrep" >&5
10940 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10941 if test "${ac_cv_path_EGREP+set}" = set; then
10942   echo $ECHO_N "(cached) $ECHO_C" >&6
10943 else
10944   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10945    then ac_cv_path_EGREP="$GREP -E"
10946    else
10947      # Extract the first word of "egrep" to use in msg output
10948 if test -z "$EGREP"; then
10949 set dummy egrep; ac_prog_name=$2
10950 if test "${ac_cv_path_EGREP+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953   ac_path_EGREP_found=false
10954 # Loop through the user's path and test for each of PROGNAME-LIST
10955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10957 do
10958   IFS=$as_save_IFS
10959   test -z "$as_dir" && as_dir=.
10960   for ac_prog in egrep; do
10961   for ac_exec_ext in '' $ac_executable_extensions; do
10962     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10963     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10964     # Check for GNU ac_path_EGREP and select it if it is found.
10965   # Check for GNU $ac_path_EGREP
10966 case `"$ac_path_EGREP" --version 2>&1` in
10967 *GNU*)
10968   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10969 *)
10970   ac_count=0
10971   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10972   while :
10973   do
10974     cat "conftest.in" "conftest.in" >"conftest.tmp"
10975     mv "conftest.tmp" "conftest.in"
10976     cp "conftest.in" "conftest.nl"
10977     echo 'EGREP' >> "conftest.nl"
10978     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10979     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10980     ac_count=`expr $ac_count + 1`
10981     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10982       # Best one so far, save it but keep looking for a better one
10983       ac_cv_path_EGREP="$ac_path_EGREP"
10984       ac_path_EGREP_max=$ac_count
10985     fi
10986     # 10*(2^10) chars as input seems more than enough
10987     test $ac_count -gt 10 && break
10988   done
10989   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10990 esac
10991
10992
10993     $ac_path_EGREP_found && break 3
10994   done
10995 done
10996
10997 done
10998 IFS=$as_save_IFS
10999
11000
11001 fi
11002
11003 EGREP="$ac_cv_path_EGREP"
11004 if test -z "$EGREP"; then
11005   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11006 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11007    { (exit 1); exit 1; }; }
11008 fi
11009
11010 else
11011   ac_cv_path_EGREP=$EGREP
11012 fi
11013
11014
11015    fi
11016 fi
11017 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11018 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11019  EGREP="$ac_cv_path_EGREP"
11020
11021
11022 # Extract the first word of "sed", so it can be a program name with args.
11023 set dummy sed; ac_word=$2
11024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11026 if test "${ac_cv_path_SED+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   case $SED in
11030   [\\/]* | ?:[\\/]*)
11031   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11032   ;;
11033   *)
11034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11036 do
11037   IFS=$as_save_IFS
11038   test -z "$as_dir" && as_dir=.
11039   for ac_exec_ext in '' $ac_executable_extensions; do
11040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11041     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11043     break 2
11044   fi
11045 done
11046 done
11047 IFS=$as_save_IFS
11048
11049   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11050   ;;
11051 esac
11052 fi
11053 SED=$ac_cv_path_SED
11054 if test -n "$SED"; then
11055   { echo "$as_me:$LINENO: result: $SED" >&5
11056 echo "${ECHO_T}$SED" >&6; }
11057 else
11058   { echo "$as_me:$LINENO: result: no" >&5
11059 echo "${ECHO_T}no" >&6; }
11060 fi
11061
11062
11063 # Extract the first word of "perl", so it can be a program name with args.
11064 set dummy perl; ac_word=$2
11065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11067 if test "${ac_cv_path_PERL+set}" = set; then
11068   echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070   case $PERL in
11071   [\\/]* | ?:[\\/]*)
11072   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11073   ;;
11074   *)
11075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11077 do
11078   IFS=$as_save_IFS
11079   test -z "$as_dir" && as_dir=.
11080   for ac_exec_ext in '' $ac_executable_extensions; do
11081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11084     break 2
11085   fi
11086 done
11087 done
11088 IFS=$as_save_IFS
11089
11090   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11091   ;;
11092 esac
11093 fi
11094 PERL=$ac_cv_path_PERL
11095 if test -n "$PERL"; then
11096   { echo "$as_me:$LINENO: result: $PERL" >&5
11097 echo "${ECHO_T}$PERL" >&6; }
11098 else
11099   { echo "$as_me:$LINENO: result: no" >&5
11100 echo "${ECHO_T}no" >&6; }
11101 fi
11102
11103
11104 # Extract the first word of "ldconfig", so it can be a program name with args.
11105 set dummy ldconfig; ac_word=$2
11106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11108 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111   case $LDCONFIG in
11112   [\\/]* | ?:[\\/]*)
11113   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11114   ;;
11115   *)
11116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119   IFS=$as_save_IFS
11120   test -z "$as_dir" && as_dir=.
11121   for ac_exec_ext in '' $ac_executable_extensions; do
11122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11125     break 2
11126   fi
11127 done
11128 done
11129 IFS=$as_save_IFS
11130
11131   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11132   ;;
11133 esac
11134 fi
11135 LDCONFIG=$ac_cv_path_LDCONFIG
11136 if test -n "$LDCONFIG"; then
11137   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11138 echo "${ECHO_T}$LDCONFIG" >&6; }
11139 else
11140   { echo "$as_me:$LINENO: result: no" >&5
11141 echo "${ECHO_T}no" >&6; }
11142 fi
11143
11144
11145 if test -n "$ac_tool_prefix"; then
11146   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11147 set dummy ${ac_tool_prefix}ar; ac_word=$2
11148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11150 if test "${ac_cv_prog_AR+set}" = set; then
11151   echo $ECHO_N "(cached) $ECHO_C" >&6
11152 else
11153   if test -n "$AR"; then
11154   ac_cv_prog_AR="$AR" # Let the user override the test.
11155 else
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $PATH
11158 do
11159   IFS=$as_save_IFS
11160   test -z "$as_dir" && as_dir=.
11161   for ac_exec_ext in '' $ac_executable_extensions; do
11162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11163     ac_cv_prog_AR="${ac_tool_prefix}ar"
11164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11165     break 2
11166   fi
11167 done
11168 done
11169 IFS=$as_save_IFS
11170
11171 fi
11172 fi
11173 AR=$ac_cv_prog_AR
11174 if test -n "$AR"; then
11175   { echo "$as_me:$LINENO: result: $AR" >&5
11176 echo "${ECHO_T}$AR" >&6; }
11177 else
11178   { echo "$as_me:$LINENO: result: no" >&5
11179 echo "${ECHO_T}no" >&6; }
11180 fi
11181
11182
11183 fi
11184 if test -z "$ac_cv_prog_AR"; then
11185   ac_ct_AR=$AR
11186   # Extract the first word of "ar", so it can be a program name with args.
11187 set dummy ar; ac_word=$2
11188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11190 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11191   echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193   if test -n "$ac_ct_AR"; then
11194   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11195 else
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11198 do
11199   IFS=$as_save_IFS
11200   test -z "$as_dir" && as_dir=.
11201   for ac_exec_ext in '' $ac_executable_extensions; do
11202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203     ac_cv_prog_ac_ct_AR="ar"
11204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11205     break 2
11206   fi
11207 done
11208 done
11209 IFS=$as_save_IFS
11210
11211 fi
11212 fi
11213 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11214 if test -n "$ac_ct_AR"; then
11215   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11216 echo "${ECHO_T}$ac_ct_AR" >&6; }
11217 else
11218   { echo "$as_me:$LINENO: result: no" >&5
11219 echo "${ECHO_T}no" >&6; }
11220 fi
11221
11222   if test "x$ac_ct_AR" = x; then
11223     AR="ar"
11224   else
11225     case $cross_compiling:$ac_tool_warned in
11226 yes:)
11227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11228 whose name does not start with the host triplet.  If you think this
11229 configuration is useful to you, please write to autoconf@gnu.org." >&5
11230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11231 whose name does not start with the host triplet.  If you think this
11232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11233 ac_tool_warned=yes ;;
11234 esac
11235     AR=$ac_ct_AR
11236   fi
11237 else
11238   AR="$ac_cv_prog_AR"
11239 fi
11240
11241 if test -n "$ac_tool_prefix"; then
11242   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11243 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11246 if test "${ac_cv_prog_RANLIB+set}" = set; then
11247   echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249   if test -n "$RANLIB"; then
11250   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11251 else
11252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253 for as_dir in $PATH
11254 do
11255   IFS=$as_save_IFS
11256   test -z "$as_dir" && as_dir=.
11257   for ac_exec_ext in '' $ac_executable_extensions; do
11258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11259     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11261     break 2
11262   fi
11263 done
11264 done
11265 IFS=$as_save_IFS
11266
11267 fi
11268 fi
11269 RANLIB=$ac_cv_prog_RANLIB
11270 if test -n "$RANLIB"; then
11271   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11272 echo "${ECHO_T}$RANLIB" >&6; }
11273 else
11274   { echo "$as_me:$LINENO: result: no" >&5
11275 echo "${ECHO_T}no" >&6; }
11276 fi
11277
11278
11279 fi
11280 if test -z "$ac_cv_prog_RANLIB"; then
11281   ac_ct_RANLIB=$RANLIB
11282   # Extract the first word of "ranlib", so it can be a program name with args.
11283 set dummy ranlib; ac_word=$2
11284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11286 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11287   echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289   if test -n "$ac_ct_RANLIB"; then
11290   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11291 else
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11294 do
11295   IFS=$as_save_IFS
11296   test -z "$as_dir" && as_dir=.
11297   for ac_exec_ext in '' $ac_executable_extensions; do
11298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299     ac_cv_prog_ac_ct_RANLIB="ranlib"
11300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11301     break 2
11302   fi
11303 done
11304 done
11305 IFS=$as_save_IFS
11306
11307 fi
11308 fi
11309 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11310 if test -n "$ac_ct_RANLIB"; then
11311   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11312 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11313 else
11314   { echo "$as_me:$LINENO: result: no" >&5
11315 echo "${ECHO_T}no" >&6; }
11316 fi
11317
11318   if test "x$ac_ct_RANLIB" = x; then
11319     RANLIB=":"
11320   else
11321     case $cross_compiling:$ac_tool_warned in
11322 yes:)
11323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11324 whose name does not start with the host triplet.  If you think this
11325 configuration is useful to you, please write to autoconf@gnu.org." >&5
11326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11327 whose name does not start with the host triplet.  If you think this
11328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11329 ac_tool_warned=yes ;;
11330 esac
11331     RANLIB=$ac_ct_RANLIB
11332   fi
11333 else
11334   RANLIB="$ac_cv_prog_RANLIB"
11335 fi
11336
11337 if test -n "$ac_tool_prefix"; then
11338   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11339 set dummy ${ac_tool_prefix}strip; ac_word=$2
11340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11342 if test "${ac_cv_prog_STRIP+set}" = set; then
11343   echo $ECHO_N "(cached) $ECHO_C" >&6
11344 else
11345   if test -n "$STRIP"; then
11346   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11347 else
11348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349 for as_dir in $PATH
11350 do
11351   IFS=$as_save_IFS
11352   test -z "$as_dir" && as_dir=.
11353   for ac_exec_ext in '' $ac_executable_extensions; do
11354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11355     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11357     break 2
11358   fi
11359 done
11360 done
11361 IFS=$as_save_IFS
11362
11363 fi
11364 fi
11365 STRIP=$ac_cv_prog_STRIP
11366 if test -n "$STRIP"; then
11367   { echo "$as_me:$LINENO: result: $STRIP" >&5
11368 echo "${ECHO_T}$STRIP" >&6; }
11369 else
11370   { echo "$as_me:$LINENO: result: no" >&5
11371 echo "${ECHO_T}no" >&6; }
11372 fi
11373
11374
11375 fi
11376 if test -z "$ac_cv_prog_STRIP"; then
11377   ac_ct_STRIP=$STRIP
11378   # Extract the first word of "strip", so it can be a program name with args.
11379 set dummy strip; ac_word=$2
11380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11382 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11383   echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385   if test -n "$ac_ct_STRIP"; then
11386   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11387 else
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11390 do
11391   IFS=$as_save_IFS
11392   test -z "$as_dir" && as_dir=.
11393   for ac_exec_ext in '' $ac_executable_extensions; do
11394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11395     ac_cv_prog_ac_ct_STRIP="strip"
11396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397     break 2
11398   fi
11399 done
11400 done
11401 IFS=$as_save_IFS
11402
11403 fi
11404 fi
11405 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11406 if test -n "$ac_ct_STRIP"; then
11407   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11408 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11409 else
11410   { echo "$as_me:$LINENO: result: no" >&5
11411 echo "${ECHO_T}no" >&6; }
11412 fi
11413
11414   if test "x$ac_ct_STRIP" = x; then
11415     STRIP=":"
11416   else
11417     case $cross_compiling:$ac_tool_warned in
11418 yes:)
11419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11420 whose name does not start with the host triplet.  If you think this
11421 configuration is useful to you, please write to autoconf@gnu.org." >&5
11422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11423 whose name does not start with the host triplet.  If you think this
11424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11425 ac_tool_warned=yes ;;
11426 esac
11427     STRIP=$ac_ct_STRIP
11428   fi
11429 else
11430   STRIP="$ac_cv_prog_STRIP"
11431 fi
11432
11433 # Extract the first word of "makeinfo", so it can be a program name with args.
11434 set dummy makeinfo; ac_word=$2
11435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11437 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440   if test -n "$MAKEINFO"; then
11441   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11442 else
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11445 do
11446   IFS=$as_save_IFS
11447   test -z "$as_dir" && as_dir=.
11448   for ac_exec_ext in '' $ac_executable_extensions; do
11449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450     ac_cv_prog_MAKEINFO="makeinfo"
11451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11452     break 2
11453   fi
11454 done
11455 done
11456 IFS=$as_save_IFS
11457
11458 fi
11459 fi
11460 MAKEINFO=$ac_cv_prog_MAKEINFO
11461 if test -n "$MAKEINFO"; then
11462   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11463 echo "${ECHO_T}$MAKEINFO" >&6; }
11464 else
11465   { echo "$as_me:$LINENO: result: no" >&5
11466 echo "${ECHO_T}no" >&6; }
11467 fi
11468
11469
11470 if test "_$MAKEINFO" = "_"; then
11471     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11472 else
11473     case "$MAKEINFO" in
11474       */missing.*)
11475         { echo "$as_me:$LINENO: WARNING:
11476 *** Makeinfo is missing. Info documentation will not be built." >&5
11477 echo "$as_me: WARNING:
11478 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11479         ;;
11480       *)
11481         ;;
11482     esac
11483 fi
11484
11485 # Find a good install program.  We prefer a C program (faster),
11486 # so one script is as good as another.  But avoid the broken or
11487 # incompatible versions:
11488 # SysV /etc/install, /usr/sbin/install
11489 # SunOS /usr/etc/install
11490 # IRIX /sbin/install
11491 # AIX /bin/install
11492 # AmigaOS /C/install, which installs bootblocks on floppy discs
11493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11496 # OS/2's system install, which has a completely different semantic
11497 # ./install, which can be erroneously created by make from ./install.sh.
11498 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11500 if test -z "$INSTALL"; then
11501 if test "${ac_cv_path_install+set}" = set; then
11502   echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11506 do
11507   IFS=$as_save_IFS
11508   test -z "$as_dir" && as_dir=.
11509   # Account for people who put trailing slashes in PATH elements.
11510 case $as_dir/ in
11511   ./ | .// | /cC/* | \
11512   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11513   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11514   /usr/ucb/* ) ;;
11515   *)
11516     # OSF1 and SCO ODT 3.0 have their own names for install.
11517     # Don't use installbsd from OSF since it installs stuff as root
11518     # by default.
11519     for ac_prog in ginstall scoinst install; do
11520       for ac_exec_ext in '' $ac_executable_extensions; do
11521         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11522           if test $ac_prog = install &&
11523             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11524             # AIX install.  It has an incompatible calling convention.
11525             :
11526           elif test $ac_prog = install &&
11527             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11528             # program-specific install script used by HP pwplus--don't use.
11529             :
11530           else
11531             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11532             break 3
11533           fi
11534         fi
11535       done
11536     done
11537     ;;
11538 esac
11539 done
11540 IFS=$as_save_IFS
11541
11542
11543 fi
11544   if test "${ac_cv_path_install+set}" = set; then
11545     INSTALL=$ac_cv_path_install
11546   else
11547     # As a last resort, use the slow shell script.  Don't cache a
11548     # value for INSTALL within a source directory, because that will
11549     # break other packages using the cache if that directory is
11550     # removed, or if the value is a relative name.
11551     INSTALL=$ac_install_sh
11552   fi
11553 fi
11554 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11555 echo "${ECHO_T}$INSTALL" >&6; }
11556
11557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11558 # It thinks the first close brace ends the variable substitution.
11559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11560
11561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11562
11563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11564
11565 # See if we need a separate native compiler.
11566 if test $cross_compiling = no; then
11567   BUILD_CC="$CC"
11568
11569 else
11570   for ac_prog in gcc cc
11571 do
11572   # Extract the first word of "$ac_prog", so it can be a program name with args.
11573 set dummy $ac_prog; ac_word=$2
11574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11576 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579   if test -n "$BUILD_CC"; then
11580   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11581 else
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11584 do
11585   IFS=$as_save_IFS
11586   test -z "$as_dir" && as_dir=.
11587   for ac_exec_ext in '' $ac_executable_extensions; do
11588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589     ac_cv_prog_BUILD_CC="$ac_prog"
11590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11591     break 2
11592   fi
11593 done
11594 done
11595 IFS=$as_save_IFS
11596
11597 fi
11598 fi
11599 BUILD_CC=$ac_cv_prog_BUILD_CC
11600 if test -n "$BUILD_CC"; then
11601   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11602 echo "${ECHO_T}$BUILD_CC" >&6; }
11603 else
11604   { echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6; }
11606 fi
11607
11608
11609   test -n "$BUILD_CC" && break
11610 done
11611
11612 fi
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11652 do
11653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11655   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658   echo $ECHO_N "(cached) $ECHO_C" >&6
11659 fi
11660 ac_res=`eval echo '${'$as_ac_Header'}'`
11661                { echo "$as_me:$LINENO: result: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11663 else
11664   # Is the header compilable?
11665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11667 cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h.  */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h.  */
11673 $ac_includes_default
11674 #include <$ac_header>
11675 _ACEOF
11676 rm -f conftest.$ac_objext
11677 if { (ac_try="$ac_compile"
11678 case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_compile") 2>conftest.er1
11684   ac_status=$?
11685   grep -v '^ *+' conftest.er1 >conftest.err
11686   rm -f conftest.er1
11687   cat conftest.err >&5
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); } && {
11690          test -z "$ac_c_werror_flag" ||
11691          test ! -s conftest.err
11692        } && test -s conftest.$ac_objext; then
11693   ac_header_compiler=yes
11694 else
11695   echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698         ac_header_compiler=no
11699 fi
11700
11701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703 echo "${ECHO_T}$ac_header_compiler" >&6; }
11704
11705 # Is the header present?
11706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h.  */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h.  */
11714 #include <$ac_header>
11715 _ACEOF
11716 if { (ac_try="$ac_cpp conftest.$ac_ext"
11717 case "(($ac_try" in
11718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719   *) ac_try_echo=$ac_try;;
11720 esac
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11723   ac_status=$?
11724   grep -v '^ *+' conftest.er1 >conftest.err
11725   rm -f conftest.er1
11726   cat conftest.err >&5
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } >/dev/null && {
11729          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11730          test ! -s conftest.err
11731        }; then
11732   ac_header_preproc=yes
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737   ac_header_preproc=no
11738 fi
11739
11740 rm -f conftest.err conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11742 echo "${ECHO_T}$ac_header_preproc" >&6; }
11743
11744 # So?  What about this header?
11745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11746   yes:no: )
11747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11751     ac_header_preproc=yes
11752     ;;
11753   no:yes:* )
11754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11766
11767     ;;
11768 esac
11769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774   eval "$as_ac_Header=\$ac_header_preproc"
11775 fi
11776 ac_res=`eval echo '${'$as_ac_Header'}'`
11777                { echo "$as_me:$LINENO: result: $ac_res" >&5
11778 echo "${ECHO_T}$ac_res" >&6; }
11779
11780 fi
11781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11782   cat >>confdefs.h <<_ACEOF
11783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11784 _ACEOF
11785
11786 fi
11787
11788 done
11789
11790
11791
11792 for ac_header in sys/disk.h sys/mount.h
11793 do
11794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798   echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800   cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806
11807 #if HAVE_SYS_QUEUE_H
11808 #include <sys/queue.h>
11809 #endif
11810
11811
11812 #include <$ac_header>
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (ac_try="$ac_compile"
11816 case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_compile") 2>conftest.er1
11822   ac_status=$?
11823   grep -v '^ *+' conftest.er1 >conftest.err
11824   rm -f conftest.er1
11825   cat conftest.err >&5
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } && {
11828          test -z "$ac_c_werror_flag" ||
11829          test ! -s conftest.err
11830        } && test -s conftest.$ac_objext; then
11831   eval "$as_ac_Header=yes"
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836         eval "$as_ac_Header=no"
11837 fi
11838
11839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11840 fi
11841 ac_res=`eval echo '${'$as_ac_Header'}'`
11842                { echo "$as_me:$LINENO: result: $ac_res" >&5
11843 echo "${ECHO_T}$ac_res" >&6; }
11844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11845   cat >>confdefs.h <<_ACEOF
11846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11847 _ACEOF
11848
11849 fi
11850
11851 done
11852
11853
11854 for ac_header in net/if.h
11855 do
11856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11860   echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862   cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h.  */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h.  */
11868
11869 #if HAVE_SYS_TYPES_H
11870 #include <sys/types.h>
11871 #endif
11872 #if HAVE_SYS_SOCKET
11873 #include <sys/socket.h>
11874 #endif
11875
11876
11877 #include <$ac_header>
11878 _ACEOF
11879 rm -f conftest.$ac_objext
11880 if { (ac_try="$ac_compile"
11881 case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_compile") 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } && {
11893          test -z "$ac_c_werror_flag" ||
11894          test ! -s conftest.err
11895        } && test -s conftest.$ac_objext; then
11896   eval "$as_ac_Header=yes"
11897 else
11898   echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901         eval "$as_ac_Header=no"
11902 fi
11903
11904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11905 fi
11906 ac_res=`eval echo '${'$as_ac_Header'}'`
11907                { echo "$as_me:$LINENO: result: $ac_res" >&5
11908 echo "${ECHO_T}$ac_res" >&6; }
11909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11910   cat >>confdefs.h <<_ACEOF
11911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11912 _ACEOF
11913
11914 fi
11915
11916 done
11917
11918
11919 for ac_func in vprintf
11920 do
11921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11925   echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927   cat >conftest.$ac_ext <<_ACEOF
11928 /* confdefs.h.  */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h.  */
11933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11935 #define $ac_func innocuous_$ac_func
11936
11937 /* System header to define __stub macros and hopefully few prototypes,
11938     which can conflict with char $ac_func (); below.
11939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11940     <limits.h> exists even on freestanding compilers.  */
11941
11942 #ifdef __STDC__
11943 # include <limits.h>
11944 #else
11945 # include <assert.h>
11946 #endif
11947
11948 #undef $ac_func
11949
11950 /* Override any GCC internal prototype to avoid an error.
11951    Use char because int might match the return type of a GCC
11952    builtin and then its argument prototype would still apply.  */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char $ac_func ();
11957 /* The GNU C library defines this for functions which it implements
11958     to always fail with ENOSYS.  Some functions are actually named
11959     something starting with __ and the normal name is an alias.  */
11960 #if defined __stub_$ac_func || defined __stub___$ac_func
11961 choke me
11962 #endif
11963
11964 int
11965 main ()
11966 {
11967 return $ac_func ();
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (ac_try="$ac_link"
11974 case "(($ac_try" in
11975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976   *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979   (eval "$ac_link") 2>conftest.er1
11980   ac_status=$?
11981   grep -v '^ *+' conftest.er1 >conftest.err
11982   rm -f conftest.er1
11983   cat conftest.err >&5
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); } && {
11986          test -z "$ac_c_werror_flag" ||
11987          test ! -s conftest.err
11988        } && test -s conftest$ac_exeext &&
11989        $as_test_x conftest$ac_exeext; then
11990   eval "$as_ac_var=yes"
11991 else
11992   echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11994
11995         eval "$as_ac_var=no"
11996 fi
11997
11998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11999       conftest$ac_exeext conftest.$ac_ext
12000 fi
12001 ac_res=`eval echo '${'$as_ac_var'}'`
12002                { echo "$as_me:$LINENO: result: $ac_res" >&5
12003 echo "${ECHO_T}$ac_res" >&6; }
12004 if test `eval echo '${'$as_ac_var'}'` = yes; then
12005   cat >>confdefs.h <<_ACEOF
12006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12007 _ACEOF
12008
12009 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12010 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12011 if test "${ac_cv_func__doprnt+set}" = set; then
12012   echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014   cat >conftest.$ac_ext <<_ACEOF
12015 /* confdefs.h.  */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h.  */
12020 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12021    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12022 #define _doprnt innocuous__doprnt
12023
12024 /* System header to define __stub macros and hopefully few prototypes,
12025     which can conflict with char _doprnt (); below.
12026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12027     <limits.h> exists even on freestanding compilers.  */
12028
12029 #ifdef __STDC__
12030 # include <limits.h>
12031 #else
12032 # include <assert.h>
12033 #endif
12034
12035 #undef _doprnt
12036
12037 /* Override any GCC internal prototype to avoid an error.
12038    Use char because int might match the return type of a GCC
12039    builtin and then its argument prototype would still apply.  */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 char _doprnt ();
12044 /* The GNU C library defines this for functions which it implements
12045     to always fail with ENOSYS.  Some functions are actually named
12046     something starting with __ and the normal name is an alias.  */
12047 #if defined __stub__doprnt || defined __stub____doprnt
12048 choke me
12049 #endif
12050
12051 int
12052 main ()
12053 {
12054 return _doprnt ();
12055   ;
12056   return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (ac_try="$ac_link"
12061 case "(($ac_try" in
12062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063   *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066   (eval "$ac_link") 2>conftest.er1
12067   ac_status=$?
12068   grep -v '^ *+' conftest.er1 >conftest.err
12069   rm -f conftest.er1
12070   cat conftest.err >&5
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); } && {
12073          test -z "$ac_c_werror_flag" ||
12074          test ! -s conftest.err
12075        } && test -s conftest$ac_exeext &&
12076        $as_test_x conftest$ac_exeext; then
12077   ac_cv_func__doprnt=yes
12078 else
12079   echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082         ac_cv_func__doprnt=no
12083 fi
12084
12085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12086       conftest$ac_exeext conftest.$ac_ext
12087 fi
12088 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12089 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12090 if test $ac_cv_func__doprnt = yes; then
12091
12092 cat >>confdefs.h <<\_ACEOF
12093 #define HAVE_DOPRNT 1
12094 _ACEOF
12095
12096 fi
12097
12098 fi
12099 done
12100
12101
12102 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12103 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12104 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12105   echo $ECHO_N "(cached) $ECHO_C" >&6
12106 else
12107   cat >conftest.$ac_ext <<_ACEOF
12108 /* confdefs.h.  */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h.  */
12113 #include <dirent.h>
12114
12115 int
12116 main ()
12117 {
12118 static struct dirent ac_aggr;
12119 if (ac_aggr.d_reclen)
12120 return 0;
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 rm -f conftest.$ac_objext
12126 if { (ac_try="$ac_compile"
12127 case "(($ac_try" in
12128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129   *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132   (eval "$ac_compile") 2>conftest.er1
12133   ac_status=$?
12134   grep -v '^ *+' conftest.er1 >conftest.err
12135   rm -f conftest.er1
12136   cat conftest.err >&5
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } && {
12139          test -z "$ac_c_werror_flag" ||
12140          test ! -s conftest.err
12141        } && test -s conftest.$ac_objext; then
12142   ac_cv_member_struct_dirent_d_reclen=yes
12143 else
12144   echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12146
12147         cat >conftest.$ac_ext <<_ACEOF
12148 /* confdefs.h.  */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h.  */
12153 #include <dirent.h>
12154
12155 int
12156 main ()
12157 {
12158 static struct dirent ac_aggr;
12159 if (sizeof ac_aggr.d_reclen)
12160 return 0;
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext
12166 if { (ac_try="$ac_compile"
12167 case "(($ac_try" in
12168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169   *) ac_try_echo=$ac_try;;
12170 esac
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172   (eval "$ac_compile") 2>conftest.er1
12173   ac_status=$?
12174   grep -v '^ *+' conftest.er1 >conftest.err
12175   rm -f conftest.er1
12176   cat conftest.err >&5
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } && {
12179          test -z "$ac_c_werror_flag" ||
12180          test ! -s conftest.err
12181        } && test -s conftest.$ac_objext; then
12182   ac_cv_member_struct_dirent_d_reclen=yes
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187         ac_cv_member_struct_dirent_d_reclen=no
12188 fi
12189
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 fi
12192
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 fi
12195 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12196 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12197 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12198   cat >>confdefs.h <<\_ACEOF
12199 #define HAVE_RECLEN_DIRENT 1
12200 _ACEOF
12201
12202 fi
12203
12204 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12205 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12206 if test "${ac_cv_type_ssize_t+set}" = set; then
12207   echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209   cat >conftest.$ac_ext <<_ACEOF
12210 /* confdefs.h.  */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h.  */
12215 #include <sys/types.h>
12216
12217 typedef ssize_t ac__type_new_;
12218 int
12219 main ()
12220 {
12221 if ((ac__type_new_ *) 0)
12222   return 0;
12223 if (sizeof (ac__type_new_))
12224   return 0;
12225   ;
12226   return 0;
12227 }
12228 _ACEOF
12229 rm -f conftest.$ac_objext
12230 if { (ac_try="$ac_compile"
12231 case "(($ac_try" in
12232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233   *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236   (eval "$ac_compile") 2>conftest.er1
12237   ac_status=$?
12238   grep -v '^ *+' conftest.er1 >conftest.err
12239   rm -f conftest.er1
12240   cat conftest.err >&5
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); } && {
12243          test -z "$ac_c_werror_flag" ||
12244          test ! -s conftest.err
12245        } && test -s conftest.$ac_objext; then
12246   ac_cv_type_ssize_t=yes
12247 else
12248   echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12250
12251         ac_cv_type_ssize_t=no
12252 fi
12253
12254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 fi
12256 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12257 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12258 if test $ac_cv_type_ssize_t = yes; then
12259   cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_TYPE_SSIZE_T 1
12261 _ACEOF
12262
12263 fi
12264
12265 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12266 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12267 if test "${ac_cv_have_decl_llseek+set}" = set; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270   cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276 #include <unistd.h>
12277
12278 int
12279 main ()
12280 {
12281 #ifndef llseek
12282   (void) llseek;
12283 #endif
12284
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_compile") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } && {
12303          test -z "$ac_c_werror_flag" ||
12304          test ! -s conftest.err
12305        } && test -s conftest.$ac_objext; then
12306   ac_cv_have_decl_llseek=yes
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311         ac_cv_have_decl_llseek=no
12312 fi
12313
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315 fi
12316 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12317 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12318 if test $ac_cv_have_decl_llseek = yes; then
12319   cat >>confdefs.h <<\_ACEOF
12320 #define HAVE_LLSEEK_PROTOTYPE 1
12321 _ACEOF
12322
12323 fi
12324
12325 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12326 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12327 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12328   echo $ECHO_N "(cached) $ECHO_C" >&6
12329 else
12330   cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336 #define _LARGEFILE_SOURCE
12337                  #define _LARGEFILE64_SOURCE
12338                  #include <unistd.h>
12339
12340 int
12341 main ()
12342 {
12343 #ifndef lseek64
12344   (void) lseek64;
12345 #endif
12346
12347   ;
12348   return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext
12352 if { (ac_try="$ac_compile"
12353 case "(($ac_try" in
12354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355   *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358   (eval "$ac_compile") 2>conftest.er1
12359   ac_status=$?
12360   grep -v '^ *+' conftest.er1 >conftest.err
12361   rm -f conftest.er1
12362   cat conftest.err >&5
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); } && {
12365          test -z "$ac_c_werror_flag" ||
12366          test ! -s conftest.err
12367        } && test -s conftest.$ac_objext; then
12368   ac_cv_have_decl_lseek64=yes
12369 else
12370   echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12372
12373         ac_cv_have_decl_lseek64=no
12374 fi
12375
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 fi
12378 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12379 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12380 if test $ac_cv_have_decl_lseek64 = yes; then
12381   cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_LSEEK64_PROTOTYPE 1
12383 _ACEOF
12384
12385 fi
12386
12387 { echo "$as_me:$LINENO: checking for short" >&5
12388 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12389 if test "${ac_cv_type_short+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398 $ac_includes_default
12399 typedef short ac__type_new_;
12400 int
12401 main ()
12402 {
12403 if ((ac__type_new_ *) 0)
12404   return 0;
12405 if (sizeof (ac__type_new_))
12406   return 0;
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (ac_try="$ac_compile"
12413 case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_compile") 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } && {
12425          test -z "$ac_c_werror_flag" ||
12426          test ! -s conftest.err
12427        } && test -s conftest.$ac_objext; then
12428   ac_cv_type_short=yes
12429 else
12430   echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433         ac_cv_type_short=no
12434 fi
12435
12436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437 fi
12438 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12439 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12440
12441 # The cast to long int works around a bug in the HP C Compiler
12442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12444 # This bug is HP SR number 8606223364.
12445 { echo "$as_me:$LINENO: checking size of short" >&5
12446 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12447 if test "${ac_cv_sizeof_short+set}" = set; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450   if test "$cross_compiling" = yes; then
12451   # Depending upon the size, compute the lo and hi bounds.
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h.  */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h.  */
12458 $ac_includes_default
12459    typedef short ac__type_sizeof_;
12460 int
12461 main ()
12462 {
12463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12464 test_array [0] = 0
12465
12466   ;
12467   return 0;
12468 }
12469 _ACEOF
12470 rm -f conftest.$ac_objext
12471 if { (ac_try="$ac_compile"
12472 case "(($ac_try" in
12473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474   *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477   (eval "$ac_compile") 2>conftest.er1
12478   ac_status=$?
12479   grep -v '^ *+' conftest.er1 >conftest.err
12480   rm -f conftest.er1
12481   cat conftest.err >&5
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); } && {
12484          test -z "$ac_c_werror_flag" ||
12485          test ! -s conftest.err
12486        } && test -s conftest.$ac_objext; then
12487   ac_lo=0 ac_mid=0
12488   while :; do
12489     cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495 $ac_includes_default
12496    typedef short ac__type_sizeof_;
12497 int
12498 main ()
12499 {
12500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12501 test_array [0] = 0
12502
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 rm -f conftest.$ac_objext
12508 if { (ac_try="$ac_compile"
12509 case "(($ac_try" in
12510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511   *) ac_try_echo=$ac_try;;
12512 esac
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514   (eval "$ac_compile") 2>conftest.er1
12515   ac_status=$?
12516   grep -v '^ *+' conftest.er1 >conftest.err
12517   rm -f conftest.er1
12518   cat conftest.err >&5
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); } && {
12521          test -z "$ac_c_werror_flag" ||
12522          test ! -s conftest.err
12523        } && test -s conftest.$ac_objext; then
12524   ac_hi=$ac_mid; break
12525 else
12526   echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529         ac_lo=`expr $ac_mid + 1`
12530                         if test $ac_lo -le $ac_mid; then
12531                           ac_lo= ac_hi=
12532                           break
12533                         fi
12534                         ac_mid=`expr 2 '*' $ac_mid + 1`
12535 fi
12536
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538   done
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543         cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549 $ac_includes_default
12550    typedef short ac__type_sizeof_;
12551 int
12552 main ()
12553 {
12554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12555 test_array [0] = 0
12556
12557   ;
12558   return 0;
12559 }
12560 _ACEOF
12561 rm -f conftest.$ac_objext
12562 if { (ac_try="$ac_compile"
12563 case "(($ac_try" in
12564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565   *) ac_try_echo=$ac_try;;
12566 esac
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568   (eval "$ac_compile") 2>conftest.er1
12569   ac_status=$?
12570   grep -v '^ *+' conftest.er1 >conftest.err
12571   rm -f conftest.er1
12572   cat conftest.err >&5
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); } && {
12575          test -z "$ac_c_werror_flag" ||
12576          test ! -s conftest.err
12577        } && test -s conftest.$ac_objext; then
12578   ac_hi=-1 ac_mid=-1
12579   while :; do
12580     cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h.  */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h.  */
12586 $ac_includes_default
12587    typedef short ac__type_sizeof_;
12588 int
12589 main ()
12590 {
12591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12592 test_array [0] = 0
12593
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext
12599 if { (ac_try="$ac_compile"
12600 case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_compile") 2>conftest.er1
12606   ac_status=$?
12607   grep -v '^ *+' conftest.er1 >conftest.err
12608   rm -f conftest.er1
12609   cat conftest.err >&5
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } && {
12612          test -z "$ac_c_werror_flag" ||
12613          test ! -s conftest.err
12614        } && test -s conftest.$ac_objext; then
12615   ac_lo=$ac_mid; break
12616 else
12617   echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620         ac_hi=`expr '(' $ac_mid ')' - 1`
12621                         if test $ac_mid -le $ac_hi; then
12622                           ac_lo= ac_hi=
12623                           break
12624                         fi
12625                         ac_mid=`expr 2 '*' $ac_mid`
12626 fi
12627
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629   done
12630 else
12631   echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634         ac_lo= ac_hi=
12635 fi
12636
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 fi
12639
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12641 # Binary search between lo and hi bounds.
12642 while test "x$ac_lo" != "x$ac_hi"; do
12643   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12644   cat >conftest.$ac_ext <<_ACEOF
12645 /* confdefs.h.  */
12646 _ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h.  */
12650 $ac_includes_default
12651    typedef short ac__type_sizeof_;
12652 int
12653 main ()
12654 {
12655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12656 test_array [0] = 0
12657
12658   ;
12659   return 0;
12660 }
12661 _ACEOF
12662 rm -f conftest.$ac_objext
12663 if { (ac_try="$ac_compile"
12664 case "(($ac_try" in
12665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666   *) ac_try_echo=$ac_try;;
12667 esac
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669   (eval "$ac_compile") 2>conftest.er1
12670   ac_status=$?
12671   grep -v '^ *+' conftest.er1 >conftest.err
12672   rm -f conftest.er1
12673   cat conftest.err >&5
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); } && {
12676          test -z "$ac_c_werror_flag" ||
12677          test ! -s conftest.err
12678        } && test -s conftest.$ac_objext; then
12679   ac_hi=$ac_mid
12680 else
12681   echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12683
12684         ac_lo=`expr '(' $ac_mid ')' + 1`
12685 fi
12686
12687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 done
12689 case $ac_lo in
12690 ?*) ac_cv_sizeof_short=$ac_lo;;
12691 '') if test "$ac_cv_type_short" = yes; then
12692      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12693 See \`config.log' for more details." >&5
12694 echo "$as_me: error: cannot compute sizeof (short)
12695 See \`config.log' for more details." >&2;}
12696    { (exit 77); exit 77; }; }
12697    else
12698      ac_cv_sizeof_short=0
12699    fi ;;
12700 esac
12701 else
12702   cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h.  */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h.  */
12708 $ac_includes_default
12709    typedef short ac__type_sizeof_;
12710 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12711 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12712 #include <stdio.h>
12713 #include <stdlib.h>
12714 int
12715 main ()
12716 {
12717
12718   FILE *f = fopen ("conftest.val", "w");
12719   if (! f)
12720     return 1;
12721   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12722     {
12723       long int i = longval ();
12724       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12725         return 1;
12726       fprintf (f, "%ld\n", i);
12727     }
12728   else
12729     {
12730       unsigned long int i = ulongval ();
12731       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12732         return 1;
12733       fprintf (f, "%lu\n", i);
12734     }
12735   return ferror (f) || fclose (f) != 0;
12736
12737   ;
12738   return 0;
12739 }
12740 _ACEOF
12741 rm -f conftest$ac_exeext
12742 if { (ac_try="$ac_link"
12743 case "(($ac_try" in
12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745   *) ac_try_echo=$ac_try;;
12746 esac
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748   (eval "$ac_link") 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12752   { (case "(($ac_try" in
12753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754   *) ac_try_echo=$ac_try;;
12755 esac
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757   (eval "$ac_try") 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); }; }; then
12761   ac_cv_sizeof_short=`cat conftest.val`
12762 else
12763   echo "$as_me: program exited with status $ac_status" >&5
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767 ( exit $ac_status )
12768 if test "$ac_cv_type_short" = yes; then
12769      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12770 See \`config.log' for more details." >&5
12771 echo "$as_me: error: cannot compute sizeof (short)
12772 See \`config.log' for more details." >&2;}
12773    { (exit 77); exit 77; }; }
12774    else
12775      ac_cv_sizeof_short=0
12776    fi
12777 fi
12778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12779 fi
12780 rm -f conftest.val
12781 fi
12782 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12783 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12784
12785
12786
12787 cat >>confdefs.h <<_ACEOF
12788 #define SIZEOF_SHORT $ac_cv_sizeof_short
12789 _ACEOF
12790
12791
12792 { echo "$as_me:$LINENO: checking for int" >&5
12793 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12794 if test "${ac_cv_type_int+set}" = set; then
12795   echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
12797   cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h.  */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h.  */
12803 $ac_includes_default
12804 typedef int ac__type_new_;
12805 int
12806 main ()
12807 {
12808 if ((ac__type_new_ *) 0)
12809   return 0;
12810 if (sizeof (ac__type_new_))
12811   return 0;
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 rm -f conftest.$ac_objext
12817 if { (ac_try="$ac_compile"
12818 case "(($ac_try" in
12819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820   *) ac_try_echo=$ac_try;;
12821 esac
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823   (eval "$ac_compile") 2>conftest.er1
12824   ac_status=$?
12825   grep -v '^ *+' conftest.er1 >conftest.err
12826   rm -f conftest.er1
12827   cat conftest.err >&5
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); } && {
12830          test -z "$ac_c_werror_flag" ||
12831          test ! -s conftest.err
12832        } && test -s conftest.$ac_objext; then
12833   ac_cv_type_int=yes
12834 else
12835   echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838         ac_cv_type_int=no
12839 fi
12840
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 fi
12843 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12844 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12845
12846 # The cast to long int works around a bug in the HP C Compiler
12847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12849 # This bug is HP SR number 8606223364.
12850 { echo "$as_me:$LINENO: checking size of int" >&5
12851 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12852 if test "${ac_cv_sizeof_int+set}" = set; then
12853   echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855   if test "$cross_compiling" = yes; then
12856   # Depending upon the size, compute the lo and hi bounds.
12857 cat >conftest.$ac_ext <<_ACEOF
12858 /* confdefs.h.  */
12859 _ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h.  */
12863 $ac_includes_default
12864    typedef int ac__type_sizeof_;
12865 int
12866 main ()
12867 {
12868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12869 test_array [0] = 0
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 rm -f conftest.$ac_objext
12876 if { (ac_try="$ac_compile"
12877 case "(($ac_try" in
12878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879   *) ac_try_echo=$ac_try;;
12880 esac
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882   (eval "$ac_compile") 2>conftest.er1
12883   ac_status=$?
12884   grep -v '^ *+' conftest.er1 >conftest.err
12885   rm -f conftest.er1
12886   cat conftest.err >&5
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } && {
12889          test -z "$ac_c_werror_flag" ||
12890          test ! -s conftest.err
12891        } && test -s conftest.$ac_objext; then
12892   ac_lo=0 ac_mid=0
12893   while :; do
12894     cat >conftest.$ac_ext <<_ACEOF
12895 /* confdefs.h.  */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h.  */
12900 $ac_includes_default
12901    typedef int ac__type_sizeof_;
12902 int
12903 main ()
12904 {
12905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12906 test_array [0] = 0
12907
12908   ;
12909   return 0;
12910 }
12911 _ACEOF
12912 rm -f conftest.$ac_objext
12913 if { (ac_try="$ac_compile"
12914 case "(($ac_try" in
12915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916   *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919   (eval "$ac_compile") 2>conftest.er1
12920   ac_status=$?
12921   grep -v '^ *+' conftest.er1 >conftest.err
12922   rm -f conftest.er1
12923   cat conftest.err >&5
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); } && {
12926          test -z "$ac_c_werror_flag" ||
12927          test ! -s conftest.err
12928        } && test -s conftest.$ac_objext; then
12929   ac_hi=$ac_mid; break
12930 else
12931   echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12933
12934         ac_lo=`expr $ac_mid + 1`
12935                         if test $ac_lo -le $ac_mid; then
12936                           ac_lo= ac_hi=
12937                           break
12938                         fi
12939                         ac_mid=`expr 2 '*' $ac_mid + 1`
12940 fi
12941
12942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12943   done
12944 else
12945   echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948         cat >conftest.$ac_ext <<_ACEOF
12949 /* confdefs.h.  */
12950 _ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h.  */
12954 $ac_includes_default
12955    typedef int ac__type_sizeof_;
12956 int
12957 main ()
12958 {
12959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12960 test_array [0] = 0
12961
12962   ;
12963   return 0;
12964 }
12965 _ACEOF
12966 rm -f conftest.$ac_objext
12967 if { (ac_try="$ac_compile"
12968 case "(($ac_try" in
12969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970   *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973   (eval "$ac_compile") 2>conftest.er1
12974   ac_status=$?
12975   grep -v '^ *+' conftest.er1 >conftest.err
12976   rm -f conftest.er1
12977   cat conftest.err >&5
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); } && {
12980          test -z "$ac_c_werror_flag" ||
12981          test ! -s conftest.err
12982        } && test -s conftest.$ac_objext; then
12983   ac_hi=-1 ac_mid=-1
12984   while :; do
12985     cat >conftest.$ac_ext <<_ACEOF
12986 /* confdefs.h.  */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h.  */
12991 $ac_includes_default
12992    typedef int ac__type_sizeof_;
12993 int
12994 main ()
12995 {
12996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12997 test_array [0] = 0
12998
12999   ;
13000   return 0;
13001 }
13002 _ACEOF
13003 rm -f conftest.$ac_objext
13004 if { (ac_try="$ac_compile"
13005 case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010   (eval "$ac_compile") 2>conftest.er1
13011   ac_status=$?
13012   grep -v '^ *+' conftest.er1 >conftest.err
13013   rm -f conftest.er1
13014   cat conftest.err >&5
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); } && {
13017          test -z "$ac_c_werror_flag" ||
13018          test ! -s conftest.err
13019        } && test -s conftest.$ac_objext; then
13020   ac_lo=$ac_mid; break
13021 else
13022   echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13024
13025         ac_hi=`expr '(' $ac_mid ')' - 1`
13026                         if test $ac_mid -le $ac_hi; then
13027                           ac_lo= ac_hi=
13028                           break
13029                         fi
13030                         ac_mid=`expr 2 '*' $ac_mid`
13031 fi
13032
13033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034   done
13035 else
13036   echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039         ac_lo= ac_hi=
13040 fi
13041
13042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043 fi
13044
13045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13046 # Binary search between lo and hi bounds.
13047 while test "x$ac_lo" != "x$ac_hi"; do
13048   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13049   cat >conftest.$ac_ext <<_ACEOF
13050 /* confdefs.h.  */
13051 _ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h.  */
13055 $ac_includes_default
13056    typedef int ac__type_sizeof_;
13057 int
13058 main ()
13059 {
13060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13061 test_array [0] = 0
13062
13063   ;
13064   return 0;
13065 }
13066 _ACEOF
13067 rm -f conftest.$ac_objext
13068 if { (ac_try="$ac_compile"
13069 case "(($ac_try" in
13070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071   *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074   (eval "$ac_compile") 2>conftest.er1
13075   ac_status=$?
13076   grep -v '^ *+' conftest.er1 >conftest.err
13077   rm -f conftest.er1
13078   cat conftest.err >&5
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } && {
13081          test -z "$ac_c_werror_flag" ||
13082          test ! -s conftest.err
13083        } && test -s conftest.$ac_objext; then
13084   ac_hi=$ac_mid
13085 else
13086   echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089         ac_lo=`expr '(' $ac_mid ')' + 1`
13090 fi
13091
13092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13093 done
13094 case $ac_lo in
13095 ?*) ac_cv_sizeof_int=$ac_lo;;
13096 '') if test "$ac_cv_type_int" = yes; then
13097      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13098 See \`config.log' for more details." >&5
13099 echo "$as_me: error: cannot compute sizeof (int)
13100 See \`config.log' for more details." >&2;}
13101    { (exit 77); exit 77; }; }
13102    else
13103      ac_cv_sizeof_int=0
13104    fi ;;
13105 esac
13106 else
13107   cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h.  */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h.  */
13113 $ac_includes_default
13114    typedef int ac__type_sizeof_;
13115 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13116 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13117 #include <stdio.h>
13118 #include <stdlib.h>
13119 int
13120 main ()
13121 {
13122
13123   FILE *f = fopen ("conftest.val", "w");
13124   if (! f)
13125     return 1;
13126   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13127     {
13128       long int i = longval ();
13129       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13130         return 1;
13131       fprintf (f, "%ld\n", i);
13132     }
13133   else
13134     {
13135       unsigned long int i = ulongval ();
13136       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13137         return 1;
13138       fprintf (f, "%lu\n", i);
13139     }
13140   return ferror (f) || fclose (f) != 0;
13141
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146 rm -f conftest$ac_exeext
13147 if { (ac_try="$ac_link"
13148 case "(($ac_try" in
13149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150   *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153   (eval "$ac_link") 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13157   { (case "(($ac_try" in
13158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159   *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162   (eval "$ac_try") 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); }; }; then
13166   ac_cv_sizeof_int=`cat conftest.val`
13167 else
13168   echo "$as_me: program exited with status $ac_status" >&5
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13171
13172 ( exit $ac_status )
13173 if test "$ac_cv_type_int" = yes; then
13174      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13175 See \`config.log' for more details." >&5
13176 echo "$as_me: error: cannot compute sizeof (int)
13177 See \`config.log' for more details." >&2;}
13178    { (exit 77); exit 77; }; }
13179    else
13180      ac_cv_sizeof_int=0
13181    fi
13182 fi
13183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13184 fi
13185 rm -f conftest.val
13186 fi
13187 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13188 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13189
13190
13191
13192 cat >>confdefs.h <<_ACEOF
13193 #define SIZEOF_INT $ac_cv_sizeof_int
13194 _ACEOF
13195
13196
13197 { echo "$as_me:$LINENO: checking for long" >&5
13198 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13199 if test "${ac_cv_type_long+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202   cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208 $ac_includes_default
13209 typedef long ac__type_new_;
13210 int
13211 main ()
13212 {
13213 if ((ac__type_new_ *) 0)
13214   return 0;
13215 if (sizeof (ac__type_new_))
13216   return 0;
13217   ;
13218   return 0;
13219 }
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225   *) ac_try_echo=$ac_try;;
13226 esac
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228   (eval "$ac_compile") 2>conftest.er1
13229   ac_status=$?
13230   grep -v '^ *+' conftest.er1 >conftest.err
13231   rm -f conftest.er1
13232   cat conftest.err >&5
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); } && {
13235          test -z "$ac_c_werror_flag" ||
13236          test ! -s conftest.err
13237        } && test -s conftest.$ac_objext; then
13238   ac_cv_type_long=yes
13239 else
13240   echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13242
13243         ac_cv_type_long=no
13244 fi
13245
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247 fi
13248 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13249 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13250
13251 # The cast to long int works around a bug in the HP C Compiler
13252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13254 # This bug is HP SR number 8606223364.
13255 { echo "$as_me:$LINENO: checking size of long" >&5
13256 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13257 if test "${ac_cv_sizeof_long+set}" = set; then
13258   echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260   if test "$cross_compiling" = yes; then
13261   # Depending upon the size, compute the lo and hi bounds.
13262 cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h.  */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h.  */
13268 $ac_includes_default
13269    typedef long ac__type_sizeof_;
13270 int
13271 main ()
13272 {
13273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13274 test_array [0] = 0
13275
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 rm -f conftest.$ac_objext
13281 if { (ac_try="$ac_compile"
13282 case "(($ac_try" in
13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284   *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287   (eval "$ac_compile") 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } && {
13294          test -z "$ac_c_werror_flag" ||
13295          test ! -s conftest.err
13296        } && test -s conftest.$ac_objext; then
13297   ac_lo=0 ac_mid=0
13298   while :; do
13299     cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h.  */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h.  */
13305 $ac_includes_default
13306    typedef long ac__type_sizeof_;
13307 int
13308 main ()
13309 {
13310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13311 test_array [0] = 0
13312
13313   ;
13314   return 0;
13315 }
13316 _ACEOF
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321   *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324   (eval "$ac_compile") 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } && {
13331          test -z "$ac_c_werror_flag" ||
13332          test ! -s conftest.err
13333        } && test -s conftest.$ac_objext; then
13334   ac_hi=$ac_mid; break
13335 else
13336   echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339         ac_lo=`expr $ac_mid + 1`
13340                         if test $ac_lo -le $ac_mid; then
13341                           ac_lo= ac_hi=
13342                           break
13343                         fi
13344                         ac_mid=`expr 2 '*' $ac_mid + 1`
13345 fi
13346
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348   done
13349 else
13350   echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353         cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h.  */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h.  */
13359 $ac_includes_default
13360    typedef long ac__type_sizeof_;
13361 int
13362 main ()
13363 {
13364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13365 test_array [0] = 0
13366
13367   ;
13368   return 0;
13369 }
13370 _ACEOF
13371 rm -f conftest.$ac_objext
13372 if { (ac_try="$ac_compile"
13373 case "(($ac_try" in
13374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375   *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378   (eval "$ac_compile") 2>conftest.er1
13379   ac_status=$?
13380   grep -v '^ *+' conftest.er1 >conftest.err
13381   rm -f conftest.er1
13382   cat conftest.err >&5
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); } && {
13385          test -z "$ac_c_werror_flag" ||
13386          test ! -s conftest.err
13387        } && test -s conftest.$ac_objext; then
13388   ac_hi=-1 ac_mid=-1
13389   while :; do
13390     cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h.  */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h.  */
13396 $ac_includes_default
13397    typedef long ac__type_sizeof_;
13398 int
13399 main ()
13400 {
13401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13402 test_array [0] = 0
13403
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412   *) ac_try_echo=$ac_try;;
13413 esac
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415   (eval "$ac_compile") 2>conftest.er1
13416   ac_status=$?
13417   grep -v '^ *+' conftest.er1 >conftest.err
13418   rm -f conftest.er1
13419   cat conftest.err >&5
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } && {
13422          test -z "$ac_c_werror_flag" ||
13423          test ! -s conftest.err
13424        } && test -s conftest.$ac_objext; then
13425   ac_lo=$ac_mid; break
13426 else
13427   echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430         ac_hi=`expr '(' $ac_mid ')' - 1`
13431                         if test $ac_mid -le $ac_hi; then
13432                           ac_lo= ac_hi=
13433                           break
13434                         fi
13435                         ac_mid=`expr 2 '*' $ac_mid`
13436 fi
13437
13438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439   done
13440 else
13441   echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13443
13444         ac_lo= ac_hi=
13445 fi
13446
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 fi
13449
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 # Binary search between lo and hi bounds.
13452 while test "x$ac_lo" != "x$ac_hi"; do
13453   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13454   cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h.  */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h.  */
13460 $ac_includes_default
13461    typedef long ac__type_sizeof_;
13462 int
13463 main ()
13464 {
13465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13466 test_array [0] = 0
13467
13468   ;
13469   return 0;
13470 }
13471 _ACEOF
13472 rm -f conftest.$ac_objext
13473 if { (ac_try="$ac_compile"
13474 case "(($ac_try" in
13475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476   *) ac_try_echo=$ac_try;;
13477 esac
13478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479   (eval "$ac_compile") 2>conftest.er1
13480   ac_status=$?
13481   grep -v '^ *+' conftest.er1 >conftest.err
13482   rm -f conftest.er1
13483   cat conftest.err >&5
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); } && {
13486          test -z "$ac_c_werror_flag" ||
13487          test ! -s conftest.err
13488        } && test -s conftest.$ac_objext; then
13489   ac_hi=$ac_mid
13490 else
13491   echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13493
13494         ac_lo=`expr '(' $ac_mid ')' + 1`
13495 fi
13496
13497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498 done
13499 case $ac_lo in
13500 ?*) ac_cv_sizeof_long=$ac_lo;;
13501 '') if test "$ac_cv_type_long" = yes; then
13502      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13503 See \`config.log' for more details." >&5
13504 echo "$as_me: error: cannot compute sizeof (long)
13505 See \`config.log' for more details." >&2;}
13506    { (exit 77); exit 77; }; }
13507    else
13508      ac_cv_sizeof_long=0
13509    fi ;;
13510 esac
13511 else
13512   cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h.  */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h.  */
13518 $ac_includes_default
13519    typedef long ac__type_sizeof_;
13520 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13521 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13522 #include <stdio.h>
13523 #include <stdlib.h>
13524 int
13525 main ()
13526 {
13527
13528   FILE *f = fopen ("conftest.val", "w");
13529   if (! f)
13530     return 1;
13531   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13532     {
13533       long int i = longval ();
13534       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13535         return 1;
13536       fprintf (f, "%ld\n", i);
13537     }
13538   else
13539     {
13540       unsigned long int i = ulongval ();
13541       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13542         return 1;
13543       fprintf (f, "%lu\n", i);
13544     }
13545   return ferror (f) || fclose (f) != 0;
13546
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 rm -f conftest$ac_exeext
13552 if { (ac_try="$ac_link"
13553 case "(($ac_try" in
13554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555   *) ac_try_echo=$ac_try;;
13556 esac
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558   (eval "$ac_link") 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13562   { (case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567   (eval "$ac_try") 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); }; }; then
13571   ac_cv_sizeof_long=`cat conftest.val`
13572 else
13573   echo "$as_me: program exited with status $ac_status" >&5
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 ( exit $ac_status )
13578 if test "$ac_cv_type_long" = yes; then
13579      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13580 See \`config.log' for more details." >&5
13581 echo "$as_me: error: cannot compute sizeof (long)
13582 See \`config.log' for more details." >&2;}
13583    { (exit 77); exit 77; }; }
13584    else
13585      ac_cv_sizeof_long=0
13586    fi
13587 fi
13588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13589 fi
13590 rm -f conftest.val
13591 fi
13592 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13593 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13594
13595
13596
13597 cat >>confdefs.h <<_ACEOF
13598 #define SIZEOF_LONG $ac_cv_sizeof_long
13599 _ACEOF
13600
13601
13602 { echo "$as_me:$LINENO: checking for long long" >&5
13603 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13604 if test "${ac_cv_type_long_long+set}" = set; then
13605   echo $ECHO_N "(cached) $ECHO_C" >&6
13606 else
13607   cat >conftest.$ac_ext <<_ACEOF
13608 /* confdefs.h.  */
13609 _ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h.  */
13613 $ac_includes_default
13614 typedef long long ac__type_new_;
13615 int
13616 main ()
13617 {
13618 if ((ac__type_new_ *) 0)
13619   return 0;
13620 if (sizeof (ac__type_new_))
13621   return 0;
13622   ;
13623   return 0;
13624 }
13625 _ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630   *) ac_try_echo=$ac_try;;
13631 esac
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633   (eval "$ac_compile") 2>conftest.er1
13634   ac_status=$?
13635   grep -v '^ *+' conftest.er1 >conftest.err
13636   rm -f conftest.er1
13637   cat conftest.err >&5
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } && {
13640          test -z "$ac_c_werror_flag" ||
13641          test ! -s conftest.err
13642        } && test -s conftest.$ac_objext; then
13643   ac_cv_type_long_long=yes
13644 else
13645   echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13647
13648         ac_cv_type_long_long=no
13649 fi
13650
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652 fi
13653 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13654 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13655
13656 # The cast to long int works around a bug in the HP C Compiler
13657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13659 # This bug is HP SR number 8606223364.
13660 { echo "$as_me:$LINENO: checking size of long long" >&5
13661 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13662 if test "${ac_cv_sizeof_long_long+set}" = set; then
13663   echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665   if test "$cross_compiling" = yes; then
13666   # Depending upon the size, compute the lo and hi bounds.
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673 $ac_includes_default
13674    typedef long long ac__type_sizeof_;
13675 int
13676 main ()
13677 {
13678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13679 test_array [0] = 0
13680
13681   ;
13682   return 0;
13683 }
13684 _ACEOF
13685 rm -f conftest.$ac_objext
13686 if { (ac_try="$ac_compile"
13687 case "(($ac_try" in
13688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689   *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692   (eval "$ac_compile") 2>conftest.er1
13693   ac_status=$?
13694   grep -v '^ *+' conftest.er1 >conftest.err
13695   rm -f conftest.er1
13696   cat conftest.err >&5
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); } && {
13699          test -z "$ac_c_werror_flag" ||
13700          test ! -s conftest.err
13701        } && test -s conftest.$ac_objext; then
13702   ac_lo=0 ac_mid=0
13703   while :; do
13704     cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h.  */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h.  */
13710 $ac_includes_default
13711    typedef long long ac__type_sizeof_;
13712 int
13713 main ()
13714 {
13715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13716 test_array [0] = 0
13717
13718   ;
13719   return 0;
13720 }
13721 _ACEOF
13722 rm -f conftest.$ac_objext
13723 if { (ac_try="$ac_compile"
13724 case "(($ac_try" in
13725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726   *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729   (eval "$ac_compile") 2>conftest.er1
13730   ac_status=$?
13731   grep -v '^ *+' conftest.er1 >conftest.err
13732   rm -f conftest.er1
13733   cat conftest.err >&5
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); } && {
13736          test -z "$ac_c_werror_flag" ||
13737          test ! -s conftest.err
13738        } && test -s conftest.$ac_objext; then
13739   ac_hi=$ac_mid; break
13740 else
13741   echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13743
13744         ac_lo=`expr $ac_mid + 1`
13745                         if test $ac_lo -le $ac_mid; then
13746                           ac_lo= ac_hi=
13747                           break
13748                         fi
13749                         ac_mid=`expr 2 '*' $ac_mid + 1`
13750 fi
13751
13752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753   done
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758         cat >conftest.$ac_ext <<_ACEOF
13759 /* confdefs.h.  */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h.  */
13764 $ac_includes_default
13765    typedef long long ac__type_sizeof_;
13766 int
13767 main ()
13768 {
13769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13770 test_array [0] = 0
13771
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext
13777 if { (ac_try="$ac_compile"
13778 case "(($ac_try" in
13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780   *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783   (eval "$ac_compile") 2>conftest.er1
13784   ac_status=$?
13785   grep -v '^ *+' conftest.er1 >conftest.err
13786   rm -f conftest.er1
13787   cat conftest.err >&5
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); } && {
13790          test -z "$ac_c_werror_flag" ||
13791          test ! -s conftest.err
13792        } && test -s conftest.$ac_objext; then
13793   ac_hi=-1 ac_mid=-1
13794   while :; do
13795     cat >conftest.$ac_ext <<_ACEOF
13796 /* confdefs.h.  */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h.  */
13801 $ac_includes_default
13802    typedef long long ac__type_sizeof_;
13803 int
13804 main ()
13805 {
13806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13807 test_array [0] = 0
13808
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 rm -f conftest.$ac_objext
13814 if { (ac_try="$ac_compile"
13815 case "(($ac_try" in
13816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817   *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820   (eval "$ac_compile") 2>conftest.er1
13821   ac_status=$?
13822   grep -v '^ *+' conftest.er1 >conftest.err
13823   rm -f conftest.er1
13824   cat conftest.err >&5
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); } && {
13827          test -z "$ac_c_werror_flag" ||
13828          test ! -s conftest.err
13829        } && test -s conftest.$ac_objext; then
13830   ac_lo=$ac_mid; break
13831 else
13832   echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13834
13835         ac_hi=`expr '(' $ac_mid ')' - 1`
13836                         if test $ac_mid -le $ac_hi; then
13837                           ac_lo= ac_hi=
13838                           break
13839                         fi
13840                         ac_mid=`expr 2 '*' $ac_mid`
13841 fi
13842
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844   done
13845 else
13846   echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13848
13849         ac_lo= ac_hi=
13850 fi
13851
13852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853 fi
13854
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 # Binary search between lo and hi bounds.
13857 while test "x$ac_lo" != "x$ac_hi"; do
13858   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13859   cat >conftest.$ac_ext <<_ACEOF
13860 /* confdefs.h.  */
13861 _ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h.  */
13865 $ac_includes_default
13866    typedef long long ac__type_sizeof_;
13867 int
13868 main ()
13869 {
13870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13871 test_array [0] = 0
13872
13873   ;
13874   return 0;
13875 }
13876 _ACEOF
13877 rm -f conftest.$ac_objext
13878 if { (ac_try="$ac_compile"
13879 case "(($ac_try" in
13880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881   *) ac_try_echo=$ac_try;;
13882 esac
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884   (eval "$ac_compile") 2>conftest.er1
13885   ac_status=$?
13886   grep -v '^ *+' conftest.er1 >conftest.err
13887   rm -f conftest.er1
13888   cat conftest.err >&5
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } && {
13891          test -z "$ac_c_werror_flag" ||
13892          test ! -s conftest.err
13893        } && test -s conftest.$ac_objext; then
13894   ac_hi=$ac_mid
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899         ac_lo=`expr '(' $ac_mid ')' + 1`
13900 fi
13901
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903 done
13904 case $ac_lo in
13905 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13906 '') if test "$ac_cv_type_long_long" = yes; then
13907      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13908 See \`config.log' for more details." >&5
13909 echo "$as_me: error: cannot compute sizeof (long long)
13910 See \`config.log' for more details." >&2;}
13911    { (exit 77); exit 77; }; }
13912    else
13913      ac_cv_sizeof_long_long=0
13914    fi ;;
13915 esac
13916 else
13917   cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h.  */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h.  */
13923 $ac_includes_default
13924    typedef long long ac__type_sizeof_;
13925 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13926 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13927 #include <stdio.h>
13928 #include <stdlib.h>
13929 int
13930 main ()
13931 {
13932
13933   FILE *f = fopen ("conftest.val", "w");
13934   if (! f)
13935     return 1;
13936   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13937     {
13938       long int i = longval ();
13939       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13940         return 1;
13941       fprintf (f, "%ld\n", i);
13942     }
13943   else
13944     {
13945       unsigned long int i = ulongval ();
13946       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13947         return 1;
13948       fprintf (f, "%lu\n", i);
13949     }
13950   return ferror (f) || fclose (f) != 0;
13951
13952   ;
13953   return 0;
13954 }
13955 _ACEOF
13956 rm -f conftest$ac_exeext
13957 if { (ac_try="$ac_link"
13958 case "(($ac_try" in
13959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960   *) ac_try_echo=$ac_try;;
13961 esac
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963   (eval "$ac_link") 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13967   { (case "(($ac_try" in
13968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969   *) ac_try_echo=$ac_try;;
13970 esac
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972   (eval "$ac_try") 2>&5
13973   ac_status=$?
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); }; }; then
13976   ac_cv_sizeof_long_long=`cat conftest.val`
13977 else
13978   echo "$as_me: program exited with status $ac_status" >&5
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13981
13982 ( exit $ac_status )
13983 if test "$ac_cv_type_long_long" = yes; then
13984      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13985 See \`config.log' for more details." >&5
13986 echo "$as_me: error: cannot compute sizeof (long long)
13987 See \`config.log' for more details." >&2;}
13988    { (exit 77); exit 77; }; }
13989    else
13990      ac_cv_sizeof_long_long=0
13991    fi
13992 fi
13993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13994 fi
13995 rm -f conftest.val
13996 fi
13997 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13998 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
13999
14000
14001
14002 cat >>confdefs.h <<_ACEOF
14003 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14004 _ACEOF
14005
14006
14007 SIZEOF_SHORT=$ac_cv_sizeof_short
14008 SIZEOF_INT=$ac_cv_sizeof_int
14009 SIZEOF_LONG=$ac_cv_sizeof_long
14010 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14011
14012
14013
14014
14015 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14016 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14017 if test "${ac_cv_c_bigendian+set}" = set; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020   # See if sys/param.h defines the BYTE_ORDER macro.
14021 cat >conftest.$ac_ext <<_ACEOF
14022 /* confdefs.h.  */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h.  */
14027 #include <sys/types.h>
14028 #include <sys/param.h>
14029
14030 int
14031 main ()
14032 {
14033 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14034         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14035  bogus endian macros
14036 #endif
14037
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext
14043 if { (ac_try="$ac_compile"
14044 case "(($ac_try" in
14045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046   *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049   (eval "$ac_compile") 2>conftest.er1
14050   ac_status=$?
14051   grep -v '^ *+' conftest.er1 >conftest.err
14052   rm -f conftest.er1
14053   cat conftest.err >&5
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } && {
14056          test -z "$ac_c_werror_flag" ||
14057          test ! -s conftest.err
14058        } && test -s conftest.$ac_objext; then
14059   # It does; now see whether it defined to BIG_ENDIAN or not.
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h.  */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h.  */
14066 #include <sys/types.h>
14067 #include <sys/param.h>
14068
14069 int
14070 main ()
14071 {
14072 #if BYTE_ORDER != BIG_ENDIAN
14073  not big endian
14074 #endif
14075
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest.$ac_objext
14081 if { (ac_try="$ac_compile"
14082 case "(($ac_try" in
14083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084   *) ac_try_echo=$ac_try;;
14085 esac
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087   (eval "$ac_compile") 2>conftest.er1
14088   ac_status=$?
14089   grep -v '^ *+' conftest.er1 >conftest.err
14090   rm -f conftest.er1
14091   cat conftest.err >&5
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); } && {
14094          test -z "$ac_c_werror_flag" ||
14095          test ! -s conftest.err
14096        } && test -s conftest.$ac_objext; then
14097   ac_cv_c_bigendian=yes
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102         ac_cv_c_bigendian=no
14103 fi
14104
14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14106 else
14107   echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110         # It does not; compile a test program.
14111 if test "$cross_compiling" = yes; then
14112   # try to guess the endianness by grepping values into an object file
14113   ac_cv_c_bigendian=unknown
14114   cat >conftest.$ac_ext <<_ACEOF
14115 /* confdefs.h.  */
14116 _ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h.  */
14120 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14121 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14122 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14123 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14124 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14125 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14126 int
14127 main ()
14128 {
14129  _ascii (); _ebcdic ();
14130   ;
14131   return 0;
14132 }
14133 _ACEOF
14134 rm -f conftest.$ac_objext
14135 if { (ac_try="$ac_compile"
14136 case "(($ac_try" in
14137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138   *) ac_try_echo=$ac_try;;
14139 esac
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141   (eval "$ac_compile") 2>conftest.er1
14142   ac_status=$?
14143   grep -v '^ *+' conftest.er1 >conftest.err
14144   rm -f conftest.er1
14145   cat conftest.err >&5
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } && {
14148          test -z "$ac_c_werror_flag" ||
14149          test ! -s conftest.err
14150        } && test -s conftest.$ac_objext; then
14151   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14152   ac_cv_c_bigendian=yes
14153 fi
14154 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14155   if test "$ac_cv_c_bigendian" = unknown; then
14156     ac_cv_c_bigendian=no
14157   else
14158     # finding both strings is unlikely to happen, but who knows?
14159     ac_cv_c_bigendian=unknown
14160   fi
14161 fi
14162 else
14163   echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166
14167 fi
14168
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 else
14171   cat >conftest.$ac_ext <<_ACEOF
14172 /* confdefs.h.  */
14173 _ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h.  */
14177 $ac_includes_default
14178 int
14179 main ()
14180 {
14181
14182   /* Are we little or big endian?  From Harbison&Steele.  */
14183   union
14184   {
14185     long int l;
14186     char c[sizeof (long int)];
14187   } u;
14188   u.l = 1;
14189   return u.c[sizeof (long int) - 1] == 1;
14190
14191   ;
14192   return 0;
14193 }
14194 _ACEOF
14195 rm -f conftest$ac_exeext
14196 if { (ac_try="$ac_link"
14197 case "(($ac_try" in
14198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199   *) ac_try_echo=$ac_try;;
14200 esac
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202   (eval "$ac_link") 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14206   { (case "(($ac_try" in
14207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208   *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211   (eval "$ac_try") 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; }; then
14215   ac_cv_c_bigendian=no
14216 else
14217   echo "$as_me: program exited with status $ac_status" >&5
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14220
14221 ( exit $ac_status )
14222 ac_cv_c_bigendian=yes
14223 fi
14224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14225 fi
14226
14227
14228 fi
14229
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 fi
14232 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14233 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14234 case $ac_cv_c_bigendian in
14235   yes)
14236
14237 cat >>confdefs.h <<\_ACEOF
14238 #define WORDS_BIGENDIAN 1
14239 _ACEOF
14240  ;;
14241   no)
14242      ;;
14243   *)
14244     { { echo "$as_me:$LINENO: error: unknown endianness
14245 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14246 echo "$as_me: error: unknown endianness
14247 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14248    { (exit 1); exit 1; }; } ;;
14249 esac
14250
14251 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14252 ASM_TYPES_HEADER=./asm_types.h
14253
14254 echo "/* These defines are needed for the public ext2fs.h header file */" \
14255      > public_config.h
14256 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14257   uniq tmp_config.$$ >> public_config.h
14258 else
14259   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14260 fi
14261 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14262   uniq tmp_config.$$ >> public_config.h
14263 else
14264   echo "#undef WORDS_BIGENDIAN" >> public_config.h
14265 fi
14266 rm -f tmp_config.$$
14267 PUBLIC_CONFIG_HEADER=./public_config.h
14268
14269
14270 for ac_header in inttypes.h
14271 do
14272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14274   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 fi
14279 ac_res=`eval echo '${'$as_ac_Header'}'`
14280                { echo "$as_me:$LINENO: result: $ac_res" >&5
14281 echo "${ECHO_T}$ac_res" >&6; }
14282 else
14283   # Is the header compilable?
14284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14286 cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292 $ac_includes_default
14293 #include <$ac_header>
14294 _ACEOF
14295 rm -f conftest.$ac_objext
14296 if { (ac_try="$ac_compile"
14297 case "(($ac_try" in
14298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299   *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302   (eval "$ac_compile") 2>conftest.er1
14303   ac_status=$?
14304   grep -v '^ *+' conftest.er1 >conftest.err
14305   rm -f conftest.er1
14306   cat conftest.err >&5
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); } && {
14309          test -z "$ac_c_werror_flag" ||
14310          test ! -s conftest.err
14311        } && test -s conftest.$ac_objext; then
14312   ac_header_compiler=yes
14313 else
14314   echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14316
14317         ac_header_compiler=no
14318 fi
14319
14320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14322 echo "${ECHO_T}$ac_header_compiler" >&6; }
14323
14324 # Is the header present?
14325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14327 cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h.  */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h.  */
14333 #include <$ac_header>
14334 _ACEOF
14335 if { (ac_try="$ac_cpp conftest.$ac_ext"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } >/dev/null && {
14348          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14349          test ! -s conftest.err
14350        }; then
14351   ac_header_preproc=yes
14352 else
14353   echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14355
14356   ac_header_preproc=no
14357 fi
14358
14359 rm -f conftest.err conftest.$ac_ext
14360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14361 echo "${ECHO_T}$ac_header_preproc" >&6; }
14362
14363 # So?  What about this header?
14364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14365   yes:no: )
14366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14370     ac_header_preproc=yes
14371     ;;
14372   no:yes:* )
14373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14385
14386     ;;
14387 esac
14388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14391   echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393   eval "$as_ac_Header=\$ac_header_preproc"
14394 fi
14395 ac_res=`eval echo '${'$as_ac_Header'}'`
14396                { echo "$as_me:$LINENO: result: $ac_res" >&5
14397 echo "${ECHO_T}$ac_res" >&6; }
14398
14399 fi
14400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14401   cat >>confdefs.h <<_ACEOF
14402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14403 _ACEOF
14404
14405 fi
14406
14407 done
14408
14409 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14410 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14411 if test "${ac_cv_type_intptr_t+set}" = set; then
14412   echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414   cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420 $ac_includes_default
14421 typedef intptr_t ac__type_new_;
14422 int
14423 main ()
14424 {
14425 if ((ac__type_new_ *) 0)
14426   return 0;
14427 if (sizeof (ac__type_new_))
14428   return 0;
14429   ;
14430   return 0;
14431 }
14432 _ACEOF
14433 rm -f conftest.$ac_objext
14434 if { (ac_try="$ac_compile"
14435 case "(($ac_try" in
14436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437   *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440   (eval "$ac_compile") 2>conftest.er1
14441   ac_status=$?
14442   grep -v '^ *+' conftest.er1 >conftest.err
14443   rm -f conftest.er1
14444   cat conftest.err >&5
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } && {
14447          test -z "$ac_c_werror_flag" ||
14448          test ! -s conftest.err
14449        } && test -s conftest.$ac_objext; then
14450   ac_cv_type_intptr_t=yes
14451 else
14452   echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14454
14455         ac_cv_type_intptr_t=no
14456 fi
14457
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14459 fi
14460 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14461 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14462 if test $ac_cv_type_intptr_t = yes; then
14463
14464 cat >>confdefs.h <<_ACEOF
14465 #define HAVE_INTPTR_T 1
14466 _ACEOF
14467
14468
14469 fi
14470
14471 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14472 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14473 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14474   echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476   cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h.  */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h.  */
14482 #include <sys/stat.h>
14483 int
14484 main ()
14485 {
14486 struct stat stat; stat.st_flags = 0;
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (ac_try="$ac_compile"
14493 case "(($ac_try" in
14494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495   *) ac_try_echo=$ac_try;;
14496 esac
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498   (eval "$ac_compile") 2>conftest.er1
14499   ac_status=$?
14500   grep -v '^ *+' conftest.er1 >conftest.err
14501   rm -f conftest.er1
14502   cat conftest.err >&5
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); } && {
14505          test -z "$ac_c_werror_flag" ||
14506          test ! -s conftest.err
14507        } && test -s conftest.$ac_objext; then
14508   e2fsprogs_cv_struct_st_flags=yes
14509 else
14510   echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513         e2fsprogs_cv_struct_st_flags=no
14514 fi
14515
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 fi
14518
14519 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14520 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14521 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14522   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14523 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14524   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14525   echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527   cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533 #include <sys/stat.h>
14534 int
14535 main ()
14536 {
14537 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542 rm -f conftest.$ac_objext
14543 if { (ac_try="$ac_compile"
14544 case "(($ac_try" in
14545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546   *) ac_try_echo=$ac_try;;
14547 esac
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549   (eval "$ac_compile") 2>conftest.er1
14550   ac_status=$?
14551   grep -v '^ *+' conftest.er1 >conftest.err
14552   rm -f conftest.er1
14553   cat conftest.err >&5
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); } && {
14556          test -z "$ac_c_werror_flag" ||
14557          test ! -s conftest.err
14558        } && test -s conftest.$ac_objext; then
14559   e2fsprogs_cv_struct_st_flags_immut=yes
14560 else
14561   echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564         e2fsprogs_cv_struct_st_flags_immut=no
14565 fi
14566
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 fi
14569
14570   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14571 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14572   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14573           cat >>confdefs.h <<\_ACEOF
14574 #define HAVE_STAT_FLAGS 1
14575 _ACEOF
14576
14577   fi
14578 fi
14579 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14580 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14581 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584   cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590 #include <sys/types.h>
14591          #include <sys/socket.h>
14592
14593 int
14594 main ()
14595 {
14596 static struct sockaddr ac_aggr;
14597 if (ac_aggr.sa_len)
14598 return 0;
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext
14604 if { (ac_try="$ac_compile"
14605 case "(($ac_try" in
14606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607   *) ac_try_echo=$ac_try;;
14608 esac
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610   (eval "$ac_compile") 2>conftest.er1
14611   ac_status=$?
14612   grep -v '^ *+' conftest.er1 >conftest.err
14613   rm -f conftest.er1
14614   cat conftest.err >&5
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } && {
14617          test -z "$ac_c_werror_flag" ||
14618          test ! -s conftest.err
14619        } && test -s conftest.$ac_objext; then
14620   ac_cv_member_struct_sockaddr_sa_len=yes
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625         cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h.  */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h.  */
14631 #include <sys/types.h>
14632          #include <sys/socket.h>
14633
14634 int
14635 main ()
14636 {
14637 static struct sockaddr ac_aggr;
14638 if (sizeof ac_aggr.sa_len)
14639 return 0;
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext
14645 if { (ac_try="$ac_compile"
14646 case "(($ac_try" in
14647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648   *) ac_try_echo=$ac_try;;
14649 esac
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651   (eval "$ac_compile") 2>conftest.er1
14652   ac_status=$?
14653   grep -v '^ *+' conftest.er1 >conftest.err
14654   rm -f conftest.er1
14655   cat conftest.err >&5
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); } && {
14658          test -z "$ac_c_werror_flag" ||
14659          test ! -s conftest.err
14660        } && test -s conftest.$ac_objext; then
14661   ac_cv_member_struct_sockaddr_sa_len=yes
14662 else
14663   echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14665
14666         ac_cv_member_struct_sockaddr_sa_len=no
14667 fi
14668
14669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 fi
14671
14672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14673 fi
14674 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14675 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14676 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14677
14678 cat >>confdefs.h <<_ACEOF
14679 #define HAVE_SA_LEN 1
14680 _ACEOF
14681
14682 fi
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep
14716 do
14717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14721   echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723   cat >conftest.$ac_ext <<_ACEOF
14724 /* confdefs.h.  */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h.  */
14729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14731 #define $ac_func innocuous_$ac_func
14732
14733 /* System header to define __stub macros and hopefully few prototypes,
14734     which can conflict with char $ac_func (); below.
14735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14736     <limits.h> exists even on freestanding compilers.  */
14737
14738 #ifdef __STDC__
14739 # include <limits.h>
14740 #else
14741 # include <assert.h>
14742 #endif
14743
14744 #undef $ac_func
14745
14746 /* Override any GCC internal prototype to avoid an error.
14747    Use char because int might match the return type of a GCC
14748    builtin and then its argument prototype would still apply.  */
14749 #ifdef __cplusplus
14750 extern "C"
14751 #endif
14752 char $ac_func ();
14753 /* The GNU C library defines this for functions which it implements
14754     to always fail with ENOSYS.  Some functions are actually named
14755     something starting with __ and the normal name is an alias.  */
14756 #if defined __stub_$ac_func || defined __stub___$ac_func
14757 choke me
14758 #endif
14759
14760 int
14761 main ()
14762 {
14763 return $ac_func ();
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (ac_try="$ac_link"
14770 case "(($ac_try" in
14771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772   *) ac_try_echo=$ac_try;;
14773 esac
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775   (eval "$ac_link") 2>conftest.er1
14776   ac_status=$?
14777   grep -v '^ *+' conftest.er1 >conftest.err
14778   rm -f conftest.er1
14779   cat conftest.err >&5
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); } && {
14782          test -z "$ac_c_werror_flag" ||
14783          test ! -s conftest.err
14784        } && test -s conftest$ac_exeext &&
14785        $as_test_x conftest$ac_exeext; then
14786   eval "$as_ac_var=yes"
14787 else
14788   echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14790
14791         eval "$as_ac_var=no"
14792 fi
14793
14794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14795       conftest$ac_exeext conftest.$ac_ext
14796 fi
14797 ac_res=`eval echo '${'$as_ac_var'}'`
14798                { echo "$as_me:$LINENO: result: $ac_res" >&5
14799 echo "${ECHO_T}$ac_res" >&6; }
14800 if test `eval echo '${'$as_ac_var'}'` = yes; then
14801   cat >>confdefs.h <<_ACEOF
14802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14803 _ACEOF
14804
14805 fi
14806 done
14807
14808 SOCKET_LIB=''
14809 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14810 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14811 if test "${ac_cv_lib_socket_socket+set}" = set; then
14812   echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814   ac_check_lib_save_LIBS=$LIBS
14815 LIBS="-lsocket  $LIBS"
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h.  */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h.  */
14822
14823 /* Override any GCC internal prototype to avoid an error.
14824    Use char because int might match the return type of a GCC
14825    builtin and then its argument prototype would still apply.  */
14826 #ifdef __cplusplus
14827 extern "C"
14828 #endif
14829 char socket ();
14830 int
14831 main ()
14832 {
14833 return socket ();
14834   ;
14835   return 0;
14836 }
14837 _ACEOF
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (ac_try="$ac_link"
14840 case "(($ac_try" in
14841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842   *) ac_try_echo=$ac_try;;
14843 esac
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845   (eval "$ac_link") 2>conftest.er1
14846   ac_status=$?
14847   grep -v '^ *+' conftest.er1 >conftest.err
14848   rm -f conftest.er1
14849   cat conftest.err >&5
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); } && {
14852          test -z "$ac_c_werror_flag" ||
14853          test ! -s conftest.err
14854        } && test -s conftest$ac_exeext &&
14855        $as_test_x conftest$ac_exeext; then
14856   ac_cv_lib_socket_socket=yes
14857 else
14858   echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861         ac_cv_lib_socket_socket=no
14862 fi
14863
14864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14865       conftest$ac_exeext conftest.$ac_ext
14866 LIBS=$ac_check_lib_save_LIBS
14867 fi
14868 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14869 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14870 if test $ac_cv_lib_socket_socket = yes; then
14871   SOCKET_LIB=-lsocket
14872 fi
14873
14874
14875 DLOPEN_LIB=''
14876 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14877 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14879   echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881   ac_check_lib_save_LIBS=$LIBS
14882 LIBS="-ldl  $LIBS"
14883 cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h.  */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h.  */
14889
14890 /* Override any GCC internal prototype to avoid an error.
14891    Use char because int might match the return type of a GCC
14892    builtin and then its argument prototype would still apply.  */
14893 #ifdef __cplusplus
14894 extern "C"
14895 #endif
14896 char dlopen ();
14897 int
14898 main ()
14899 {
14900 return dlopen ();
14901   ;
14902   return 0;
14903 }
14904 _ACEOF
14905 rm -f conftest.$ac_objext conftest$ac_exeext
14906 if { (ac_try="$ac_link"
14907 case "(($ac_try" in
14908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909   *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912   (eval "$ac_link") 2>conftest.er1
14913   ac_status=$?
14914   grep -v '^ *+' conftest.er1 >conftest.err
14915   rm -f conftest.er1
14916   cat conftest.err >&5
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); } && {
14919          test -z "$ac_c_werror_flag" ||
14920          test ! -s conftest.err
14921        } && test -s conftest$ac_exeext &&
14922        $as_test_x conftest$ac_exeext; then
14923   ac_cv_lib_dl_dlopen=yes
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928         ac_cv_lib_dl_dlopen=no
14929 fi
14930
14931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14932       conftest$ac_exeext conftest.$ac_ext
14933 LIBS=$ac_check_lib_save_LIBS
14934 fi
14935 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14936 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14937 if test $ac_cv_lib_dl_dlopen = yes; then
14938   DLOPEN_LIB=-ldl
14939 cat >>confdefs.h <<\_ACEOF
14940 #define HAVE_DLOPEN 1
14941 _ACEOF
14942
14943 fi
14944
14945
14946 { echo "$as_me:$LINENO: checking for optreset" >&5
14947 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
14948 if test "${ac_cv_have_optreset+set}" = set; then
14949   echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951   cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h.  */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h.  */
14957 #include <unistd.h>
14958
14959 _ACEOF
14960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14961   $EGREP "optreset" >/dev/null 2>&1; then
14962   ac_cv_have_optreset=yes
14963 else
14964   ac_cv_have_optreset=no
14965 fi
14966 rm -f conftest*
14967
14968 fi
14969 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14970 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
14971 if test $ac_cv_have_optreset = yes; then
14972   cat >>confdefs.h <<\_ACEOF
14973 #define HAVE_OPTRESET 1
14974 _ACEOF
14975
14976 fi
14977 SEM_INIT_LIB=''
14978 { echo "$as_me:$LINENO: checking for sem_init" >&5
14979 echo $ECHO_N "checking for sem_init... $ECHO_C" >&6; }
14980 if test "${ac_cv_func_sem_init+set}" = set; then
14981   echo $ECHO_N "(cached) $ECHO_C" >&6
14982 else
14983   cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h.  */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h.  */
14989 /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
14990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14991 #define sem_init innocuous_sem_init
14992
14993 /* System header to define __stub macros and hopefully few prototypes,
14994     which can conflict with char sem_init (); below.
14995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14996     <limits.h> exists even on freestanding compilers.  */
14997
14998 #ifdef __STDC__
14999 # include <limits.h>
15000 #else
15001 # include <assert.h>
15002 #endif
15003
15004 #undef sem_init
15005
15006 /* Override any GCC internal prototype to avoid an error.
15007    Use char because int might match the return type of a GCC
15008    builtin and then its argument prototype would still apply.  */
15009 #ifdef __cplusplus
15010 extern "C"
15011 #endif
15012 char sem_init ();
15013 /* The GNU C library defines this for functions which it implements
15014     to always fail with ENOSYS.  Some functions are actually named
15015     something starting with __ and the normal name is an alias.  */
15016 #if defined __stub_sem_init || defined __stub___sem_init
15017 choke me
15018 #endif
15019
15020 int
15021 main ()
15022 {
15023 return sem_init ();
15024   ;
15025   return 0;
15026 }
15027 _ACEOF
15028 rm -f conftest.$ac_objext conftest$ac_exeext
15029 if { (ac_try="$ac_link"
15030 case "(($ac_try" in
15031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032   *) ac_try_echo=$ac_try;;
15033 esac
15034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035   (eval "$ac_link") 2>conftest.er1
15036   ac_status=$?
15037   grep -v '^ *+' conftest.er1 >conftest.err
15038   rm -f conftest.er1
15039   cat conftest.err >&5
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); } && {
15042          test -z "$ac_c_werror_flag" ||
15043          test ! -s conftest.err
15044        } && test -s conftest$ac_exeext &&
15045        $as_test_x conftest$ac_exeext; then
15046   ac_cv_func_sem_init=yes
15047 else
15048   echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050
15051         ac_cv_func_sem_init=no
15052 fi
15053
15054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15055       conftest$ac_exeext conftest.$ac_ext
15056 fi
15057 { echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
15058 echo "${ECHO_T}$ac_cv_func_sem_init" >&6; }
15059 if test $ac_cv_func_sem_init = yes; then
15060   :
15061 else
15062   { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
15063 echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
15064 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
15065   echo $ECHO_N "(cached) $ECHO_C" >&6
15066 else
15067   ac_check_lib_save_LIBS=$LIBS
15068 LIBS="-lpthread  $LIBS"
15069 cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h.  */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h.  */
15075
15076 /* Override any GCC internal prototype to avoid an error.
15077    Use char because int might match the return type of a GCC
15078    builtin and then its argument prototype would still apply.  */
15079 #ifdef __cplusplus
15080 extern "C"
15081 #endif
15082 char sem_init ();
15083 int
15084 main ()
15085 {
15086 return sem_init ();
15087   ;
15088   return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest.$ac_objext conftest$ac_exeext
15092 if { (ac_try="$ac_link"
15093 case "(($ac_try" in
15094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095   *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098   (eval "$ac_link") 2>conftest.er1
15099   ac_status=$?
15100   grep -v '^ *+' conftest.er1 >conftest.err
15101   rm -f conftest.er1
15102   cat conftest.err >&5
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } && {
15105          test -z "$ac_c_werror_flag" ||
15106          test ! -s conftest.err
15107        } && test -s conftest$ac_exeext &&
15108        $as_test_x conftest$ac_exeext; then
15109   ac_cv_lib_pthread_sem_init=yes
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114         ac_cv_lib_pthread_sem_init=no
15115 fi
15116
15117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15118       conftest$ac_exeext conftest.$ac_ext
15119 LIBS=$ac_check_lib_save_LIBS
15120 fi
15121 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
15122 echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
15123 if test $ac_cv_lib_pthread_sem_init = yes; then
15124   cat >>confdefs.h <<\_ACEOF
15125 #define HAVE_SEM_INIT 1
15126 _ACEOF
15127
15128         SEM_INIT_LIB=-lpthread
15129 else
15130   { echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
15131 echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6; }
15132 if test "${ac_cv_lib_rt_sem_init+set}" = set; then
15133   echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135   ac_check_lib_save_LIBS=$LIBS
15136 LIBS="-lrt  $LIBS"
15137 cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h.  */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h.  */
15143
15144 /* Override any GCC internal prototype to avoid an error.
15145    Use char because int might match the return type of a GCC
15146    builtin and then its argument prototype would still apply.  */
15147 #ifdef __cplusplus
15148 extern "C"
15149 #endif
15150 char sem_init ();
15151 int
15152 main ()
15153 {
15154 return sem_init ();
15155   ;
15156   return 0;
15157 }
15158 _ACEOF
15159 rm -f conftest.$ac_objext conftest$ac_exeext
15160 if { (ac_try="$ac_link"
15161 case "(($ac_try" in
15162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163   *) ac_try_echo=$ac_try;;
15164 esac
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166   (eval "$ac_link") 2>conftest.er1
15167   ac_status=$?
15168   grep -v '^ *+' conftest.er1 >conftest.err
15169   rm -f conftest.er1
15170   cat conftest.err >&5
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } && {
15173          test -z "$ac_c_werror_flag" ||
15174          test ! -s conftest.err
15175        } && test -s conftest$ac_exeext &&
15176        $as_test_x conftest$ac_exeext; then
15177   ac_cv_lib_rt_sem_init=yes
15178 else
15179   echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15181
15182         ac_cv_lib_rt_sem_init=no
15183 fi
15184
15185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15186       conftest$ac_exeext conftest.$ac_ext
15187 LIBS=$ac_check_lib_save_LIBS
15188 fi
15189 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
15190 echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6; }
15191 if test $ac_cv_lib_rt_sem_init = yes; then
15192   cat >>confdefs.h <<\_ACEOF
15193 #define HAVE_SEM_INIT 1
15194 _ACEOF
15195
15196         SEM_INIT_LIB=-lrt
15197 else
15198   { echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
15199 echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6; }
15200 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
15201   echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203   ac_check_lib_save_LIBS=$LIBS
15204 LIBS="-lposix4  $LIBS"
15205 cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h.  */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h.  */
15211
15212 /* Override any GCC internal prototype to avoid an error.
15213    Use char because int might match the return type of a GCC
15214    builtin and then its argument prototype would still apply.  */
15215 #ifdef __cplusplus
15216 extern "C"
15217 #endif
15218 char sem_init ();
15219 int
15220 main ()
15221 {
15222 return sem_init ();
15223   ;
15224   return 0;
15225 }
15226 _ACEOF
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (ac_try="$ac_link"
15229 case "(($ac_try" in
15230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231   *) ac_try_echo=$ac_try;;
15232 esac
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234   (eval "$ac_link") 2>conftest.er1
15235   ac_status=$?
15236   grep -v '^ *+' conftest.er1 >conftest.err
15237   rm -f conftest.er1
15238   cat conftest.err >&5
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); } && {
15241          test -z "$ac_c_werror_flag" ||
15242          test ! -s conftest.err
15243        } && test -s conftest$ac_exeext &&
15244        $as_test_x conftest$ac_exeext; then
15245   ac_cv_lib_posix4_sem_init=yes
15246 else
15247   echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15249
15250         ac_cv_lib_posix4_sem_init=no
15251 fi
15252
15253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15254       conftest$ac_exeext conftest.$ac_ext
15255 LIBS=$ac_check_lib_save_LIBS
15256 fi
15257 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
15258 echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6; }
15259 if test $ac_cv_lib_posix4_sem_init = yes; then
15260   cat >>confdefs.h <<\_ACEOF
15261 #define HAVE_SEM_INIT 1
15262 _ACEOF
15263
15264         SEM_INIT_LIB=-lposix4
15265 fi
15266
15267 fi
15268
15269 fi
15270
15271 fi
15272
15273 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15274 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15275 if diff -u $0 $0 > /dev/null 2>&1 ; then
15276    UNI_DIFF_OPTS=-u
15277 else
15278    UNI_DIFF_OPTS=-c
15279 fi
15280 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15281 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15282
15283 case "$host_os" in
15284 linux*)
15285         cat >>confdefs.h <<\_ACEOF
15286 #define HAVE_EXT2_IOCTLS 1
15287 _ACEOF
15288
15289         ;;
15290 esac
15291 LINUX_CMT="#"
15292 CYGWIN_CMT="#"
15293 UNIX_CMT=
15294 case "$host_os" in
15295 linux*)
15296         LINUX_CMT=
15297         ;;
15298 cygwin)
15299         CYGWIN_CMT=
15300         UNIX_CMT="#"
15301         ;;
15302 esac
15303
15304
15305
15306 case "$host_os" in
15307 linux* | gnu* | k*bsd*-gnu)
15308         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15309                 root_prefix="";
15310                 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15311 echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
15312         fi
15313         ;;
15314 esac
15315 case "$host_os" in
15316 linux* | gnu* | k*bsd*-gnu)
15317         if test "$prefix" = NONE ; then
15318                 prefix="/usr";
15319                 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15320 echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
15321                 if test "$mandir" = '${prefix}/man' ; then
15322                         { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15323 echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
15324                         mandir=/usr/share/man
15325                 fi
15326         fi
15327 ;;
15328 esac
15329 if test "$root_prefix" = NONE ; then
15330         if test "$prefix" = NONE ; then
15331                 root_prefix="$ac_default_prefix"
15332         else
15333                 root_prefix="$prefix"
15334         fi
15335         root_bindir=$bindir
15336         root_sbindir=$sbindir
15337         root_libdir=$libdir
15338         root_sysconfdir=$sysconfdir
15339 else
15340         root_bindir='${root_prefix}/bin'
15341         root_sbindir='${root_prefix}/sbin'
15342         root_libdir='${root_prefix}/lib'
15343         root_sysconfdir='${root_prefix}/etc'
15344 fi
15345 if test "$bindir" != '${exec_prefix}/bin'; then
15346     root_bindir=$bindir
15347     { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15348 echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
15349 fi
15350 if test "$sbindir" != '${exec_prefix}/sbin'; then
15351     root_sbindir=$sbindir
15352     { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15353 echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
15354 fi
15355 if test "$libdir" != '${exec_prefix}/lib'; then
15356     root_libdir=$libdir
15357     { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15358 echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
15359 fi
15360 if test "$sysconfdir" != '${prefix}/etc'; then
15361     root_sysconfdir=$sysconfdir
15362     { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15363 echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
15364 fi
15365
15366
15367
15368
15369
15370 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15371 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15372 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h.  */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h.  */
15382 #include <stdio.h>
15383 int
15384 main ()
15385 {
15386 fflush(stdout);
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (ac_try="$ac_link"
15393 case "(($ac_try" in
15394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395   *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398   (eval "$ac_link") 2>conftest.er1
15399   ac_status=$?
15400   grep -v '^ *+' conftest.er1 >conftest.err
15401   rm -f conftest.er1
15402   cat conftest.err >&5
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); } && {
15405          test -z "$ac_c_werror_flag" ||
15406          test ! -s conftest.err
15407        } && test -s conftest$ac_exeext &&
15408        $as_test_x conftest$ac_exeext; then
15409   ac_cv_e2fsprogs_use_static=yes
15410 else
15411   echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414         ac_cv_e2fsprogs_use_static=no
15415 fi
15416
15417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15418       conftest$ac_exeext conftest.$ac_ext
15419 LDFLAGS=$SAVE_LDFLAGS
15420 fi
15421
15422 case "$host_os" in
15423 solaris2.*)
15424         ac_cv_e2fsprogs_use_static=no
15425 ;;
15426 esac
15427 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15428 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15429 LDFLAG_STATIC=
15430 if test $ac_cv_e2fsprogs_use_static = yes; then
15431         LDFLAG_STATIC=-static
15432 fi
15433
15434 case "$host_os" in
15435 darwin*)
15436         { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15437 echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
15438         cat >>confdefs.h <<\_ACEOF
15439 #define _INTL_REDIRECT_MACROS 1
15440 _ACEOF
15441
15442         ;;
15443 esac
15444 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15445 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15446
15447
15448 if test "$cross_compiling" = yes ; then
15449   DO_TEST_SUITE=
15450 else
15451   DO_TEST_SUITE=check
15452 fi
15453
15454 INTL_FLAGS=
15455 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15456         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15457 fi
15458
15459 if test $cross_compiling = no; then
15460    BUILD_CFLAGS="$CFLAGS"
15461    BUILD_LDFLAGS="$LDFLAGS"
15462 else
15463    BUILD_CFLAGS=
15464    BUILD_LDFLAGS=
15465 fi
15466
15467
15468 test -d lib || mkdir lib
15469 test -d include || mkdir include
15470 test -d include/linux || mkdir include/linux
15471 test -d include/asm || mkdir include/asm
15472 for i in MCONFIG Makefile e2fsprogs.spec \
15473         util/Makefile util/subst.conf util/gen-tarball \
15474         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15475         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15476         lib/uuid/Makefile lib/uuid/uuid_types.h \
15477         lib/blkid/Makefile lib/blkid/blkid_types.h \
15478         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15479         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15480         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15481         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15482         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15483         if test -d `dirname ${srcdir}/$i` ; then
15484                 outlist="$outlist $i"
15485         fi
15486 done
15487 ac_config_files="$ac_config_files $outlist"
15488
15489 cat >confcache <<\_ACEOF
15490 # This file is a shell script that caches the results of configure
15491 # tests run on this system so they can be shared between configure
15492 # scripts and configure runs, see configure's option --config-cache.
15493 # It is not useful on other systems.  If it contains results you don't
15494 # want to keep, you may remove or edit it.
15495 #
15496 # config.status only pays attention to the cache file if you give it
15497 # the --recheck option to rerun configure.
15498 #
15499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15501 # following values.
15502
15503 _ACEOF
15504
15505 # The following way of writing the cache mishandles newlines in values,
15506 # but we know of no workaround that is simple, portable, and efficient.
15507 # So, we kill variables containing newlines.
15508 # Ultrix sh set writes to stderr and can't be redirected directly,
15509 # and sets the high bit in the cache file unless we assign to the vars.
15510 (
15511   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15512     eval ac_val=\$$ac_var
15513     case $ac_val in #(
15514     *${as_nl}*)
15515       case $ac_var in #(
15516       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15517 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15518       esac
15519       case $ac_var in #(
15520       _ | IFS | as_nl) ;; #(
15521       *) $as_unset $ac_var ;;
15522       esac ;;
15523     esac
15524   done
15525
15526   (set) 2>&1 |
15527     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15528     *${as_nl}ac_space=\ *)
15529       # `set' does not quote correctly, so add quotes (double-quote
15530       # substitution turns \\\\ into \\, and sed turns \\ into \).
15531       sed -n \
15532         "s/'/'\\\\''/g;
15533           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15534       ;; #(
15535     *)
15536       # `set' quotes correctly as required by POSIX, so do not add quotes.
15537       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15538       ;;
15539     esac |
15540     sort
15541 ) |
15542   sed '
15543      /^ac_cv_env_/b end
15544      t clear
15545      :clear
15546      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15547      t end
15548      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15549      :end' >>confcache
15550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15551   if test -w "$cache_file"; then
15552     test "x$cache_file" != "x/dev/null" &&
15553       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15554 echo "$as_me: updating cache $cache_file" >&6;}
15555     cat confcache >$cache_file
15556   else
15557     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15558 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15559   fi
15560 fi
15561 rm -f confcache
15562
15563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15564 # Let make expand exec_prefix.
15565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15566
15567 # Transform confdefs.h into DEFS.
15568 # Protect against shell expansion while executing Makefile rules.
15569 # Protect against Makefile macro expansion.
15570 #
15571 # If the first sed substitution is executed (which looks for macros that
15572 # take arguments), then branch to the quote section.  Otherwise,
15573 # look for a macro that doesn't take arguments.
15574 ac_script='
15575 t clear
15576 :clear
15577 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15578 t quote
15579 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15580 t quote
15581 b any
15582 :quote
15583 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15584 s/\[/\\&/g
15585 s/\]/\\&/g
15586 s/\$/$$/g
15587 H
15588 :any
15589 ${
15590         g
15591         s/^\n//
15592         s/\n/ /g
15593         p
15594 }
15595 '
15596 DEFS=`sed -n "$ac_script" confdefs.h`
15597
15598
15599 ac_libobjs=
15600 ac_ltlibobjs=
15601 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15602   # 1. Remove the extension, and $U if already installed.
15603   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15604   ac_i=`echo "$ac_i" | sed "$ac_script"`
15605   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15606   #    will be set to the directory where LIBOBJS objects are built.
15607   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15608   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15609 done
15610 LIBOBJS=$ac_libobjs
15611
15612 LTLIBOBJS=$ac_ltlibobjs
15613
15614
15615
15616 : ${CONFIG_STATUS=./config.status}
15617 ac_clean_files_save=$ac_clean_files
15618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15619 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15620 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15621 cat >$CONFIG_STATUS <<_ACEOF
15622 #! $SHELL
15623 # Generated by $as_me.
15624 # Run this file to recreate the current configuration.
15625 # Compiler output produced by configure, useful for debugging
15626 # configure, is in config.log if it exists.
15627
15628 debug=false
15629 ac_cs_recheck=false
15630 ac_cs_silent=false
15631 SHELL=\${CONFIG_SHELL-$SHELL}
15632 _ACEOF
15633
15634 cat >>$CONFIG_STATUS <<\_ACEOF
15635 ## --------------------- ##
15636 ## M4sh Initialization.  ##
15637 ## --------------------- ##
15638
15639 # Be more Bourne compatible
15640 DUALCASE=1; export DUALCASE # for MKS sh
15641 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15642   emulate sh
15643   NULLCMD=:
15644   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15645   # is contrary to our usage.  Disable this feature.
15646   alias -g '${1+"$@"}'='"$@"'
15647   setopt NO_GLOB_SUBST
15648 else
15649   case `(set -o) 2>/dev/null` in
15650   *posix*) set -o posix ;;
15651 esac
15652
15653 fi
15654
15655
15656
15657
15658 # PATH needs CR
15659 # Avoid depending upon Character Ranges.
15660 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15661 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15662 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15663 as_cr_digits='0123456789'
15664 as_cr_alnum=$as_cr_Letters$as_cr_digits
15665
15666 # The user is always right.
15667 if test "${PATH_SEPARATOR+set}" != set; then
15668   echo "#! /bin/sh" >conf$$.sh
15669   echo  "exit 0"   >>conf$$.sh
15670   chmod +x conf$$.sh
15671   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15672     PATH_SEPARATOR=';'
15673   else
15674     PATH_SEPARATOR=:
15675   fi
15676   rm -f conf$$.sh
15677 fi
15678
15679 # Support unset when possible.
15680 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15681   as_unset=unset
15682 else
15683   as_unset=false
15684 fi
15685
15686
15687 # IFS
15688 # We need space, tab and new line, in precisely that order.  Quoting is
15689 # there to prevent editors from complaining about space-tab.
15690 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15691 # splitting by setting IFS to empty value.)
15692 as_nl='
15693 '
15694 IFS=" ""        $as_nl"
15695
15696 # Find who we are.  Look in the path if we contain no directory separator.
15697 case $0 in
15698   *[\\/]* ) as_myself=$0 ;;
15699   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700 for as_dir in $PATH
15701 do
15702   IFS=$as_save_IFS
15703   test -z "$as_dir" && as_dir=.
15704   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15705 done
15706 IFS=$as_save_IFS
15707
15708      ;;
15709 esac
15710 # We did not find ourselves, most probably we were run as `sh COMMAND'
15711 # in which case we are not to be found in the path.
15712 if test "x$as_myself" = x; then
15713   as_myself=$0
15714 fi
15715 if test ! -f "$as_myself"; then
15716   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15717   { (exit 1); exit 1; }
15718 fi
15719
15720 # Work around bugs in pre-3.0 UWIN ksh.
15721 for as_var in ENV MAIL MAILPATH
15722 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15723 done
15724 PS1='$ '
15725 PS2='> '
15726 PS4='+ '
15727
15728 # NLS nuisances.
15729 for as_var in \
15730   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15731   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15732   LC_TELEPHONE LC_TIME
15733 do
15734   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15735     eval $as_var=C; export $as_var
15736   else
15737     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15738   fi
15739 done
15740
15741 # Required to use basename.
15742 if expr a : '\(a\)' >/dev/null 2>&1 &&
15743    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15744   as_expr=expr
15745 else
15746   as_expr=false
15747 fi
15748
15749 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15750   as_basename=basename
15751 else
15752   as_basename=false
15753 fi
15754
15755
15756 # Name of the executable.
15757 as_me=`$as_basename -- "$0" ||
15758 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15759          X"$0" : 'X\(//\)$' \| \
15760          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15761 echo X/"$0" |
15762     sed '/^.*\/\([^/][^/]*\)\/*$/{
15763             s//\1/
15764             q
15765           }
15766           /^X\/\(\/\/\)$/{
15767             s//\1/
15768             q
15769           }
15770           /^X\/\(\/\).*/{
15771             s//\1/
15772             q
15773           }
15774           s/.*/./; q'`
15775
15776 # CDPATH.
15777 $as_unset CDPATH
15778
15779
15780
15781   as_lineno_1=$LINENO
15782   as_lineno_2=$LINENO
15783   test "x$as_lineno_1" != "x$as_lineno_2" &&
15784   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15785
15786   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15787   # uniformly replaced by the line number.  The first 'sed' inserts a
15788   # line-number line after each line using $LINENO; the second 'sed'
15789   # does the real work.  The second script uses 'N' to pair each
15790   # line-number line with the line containing $LINENO, and appends
15791   # trailing '-' during substitution so that $LINENO is not a special
15792   # case at line end.
15793   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15794   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15795   # E. McMahon (1931-1989) for sed's syntax.  :-)
15796   sed -n '
15797     p
15798     /[$]LINENO/=
15799   ' <$as_myself |
15800     sed '
15801       s/[$]LINENO.*/&-/
15802       t lineno
15803       b
15804       :lineno
15805       N
15806       :loop
15807       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15808       t loop
15809       s/-\n.*//
15810     ' >$as_me.lineno &&
15811   chmod +x "$as_me.lineno" ||
15812     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15813    { (exit 1); exit 1; }; }
15814
15815   # Don't try to exec as it changes $[0], causing all sort of problems
15816   # (the dirname of $[0] is not the place where we might find the
15817   # original and so on.  Autoconf is especially sensitive to this).
15818   . "./$as_me.lineno"
15819   # Exit status is that of the last command.
15820   exit
15821 }
15822
15823
15824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15825   as_dirname=dirname
15826 else
15827   as_dirname=false
15828 fi
15829
15830 ECHO_C= ECHO_N= ECHO_T=
15831 case `echo -n x` in
15832 -n*)
15833   case `echo 'x\c'` in
15834   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15835   *)   ECHO_C='\c';;
15836   esac;;
15837 *)
15838   ECHO_N='-n';;
15839 esac
15840
15841 if expr a : '\(a\)' >/dev/null 2>&1 &&
15842    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15843   as_expr=expr
15844 else
15845   as_expr=false
15846 fi
15847
15848 rm -f conf$$ conf$$.exe conf$$.file
15849 if test -d conf$$.dir; then
15850   rm -f conf$$.dir/conf$$.file
15851 else
15852   rm -f conf$$.dir
15853   mkdir conf$$.dir
15854 fi
15855 echo >conf$$.file
15856 if ln -s conf$$.file conf$$ 2>/dev/null; then
15857   as_ln_s='ln -s'
15858   # ... but there are two gotchas:
15859   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15860   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15861   # In both cases, we have to default to `cp -p'.
15862   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15863     as_ln_s='cp -p'
15864 elif ln conf$$.file conf$$ 2>/dev/null; then
15865   as_ln_s=ln
15866 else
15867   as_ln_s='cp -p'
15868 fi
15869 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15870 rmdir conf$$.dir 2>/dev/null
15871
15872 if mkdir -p . 2>/dev/null; then
15873   as_mkdir_p=:
15874 else
15875   test -d ./-p && rmdir ./-p
15876   as_mkdir_p=false
15877 fi
15878
15879 if test -x / >/dev/null 2>&1; then
15880   as_test_x='test -x'
15881 else
15882   if ls -dL / >/dev/null 2>&1; then
15883     as_ls_L_option=L
15884   else
15885     as_ls_L_option=
15886   fi
15887   as_test_x='
15888     eval sh -c '\''
15889       if test -d "$1"; then
15890         test -d "$1/.";
15891       else
15892         case $1 in
15893         -*)set "./$1";;
15894         esac;
15895         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15896         ???[sx]*):;;*)false;;esac;fi
15897     '\'' sh
15898   '
15899 fi
15900 as_executable_p=$as_test_x
15901
15902 # Sed expression to map a string onto a valid CPP name.
15903 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15904
15905 # Sed expression to map a string onto a valid variable name.
15906 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15907
15908
15909 exec 6>&1
15910
15911 # Save the log message, to keep $[0] and so on meaningful, and to
15912 # report actual input values of CONFIG_FILES etc. instead of their
15913 # values after options handling.
15914 ac_log="
15915 This file was extended by $as_me, which was
15916 generated by GNU Autoconf 2.61.  Invocation command line was
15917
15918   CONFIG_FILES    = $CONFIG_FILES
15919   CONFIG_HEADERS  = $CONFIG_HEADERS
15920   CONFIG_LINKS    = $CONFIG_LINKS
15921   CONFIG_COMMANDS = $CONFIG_COMMANDS
15922   $ $0 $@
15923
15924 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15925 "
15926
15927 _ACEOF
15928
15929 cat >>$CONFIG_STATUS <<_ACEOF
15930 # Files that config.status was made for.
15931 config_files="$ac_config_files"
15932 config_commands="$ac_config_commands"
15933
15934 _ACEOF
15935
15936 cat >>$CONFIG_STATUS <<\_ACEOF
15937 ac_cs_usage="\
15938 \`$as_me' instantiates files from templates according to the
15939 current configuration.
15940
15941 Usage: $0 [OPTIONS] [FILE]...
15942
15943   -h, --help       print this help, then exit
15944   -V, --version    print version number and configuration settings, then exit
15945   -q, --quiet      do not print progress messages
15946   -d, --debug      don't remove temporary files
15947       --recheck    update $as_me by reconfiguring in the same conditions
15948   --file=FILE[:TEMPLATE]
15949                    instantiate the configuration file FILE
15950
15951 Configuration files:
15952 $config_files
15953
15954 Configuration commands:
15955 $config_commands
15956
15957 Report bugs to <bug-autoconf@gnu.org>."
15958
15959 _ACEOF
15960 cat >>$CONFIG_STATUS <<_ACEOF
15961 ac_cs_version="\\
15962 config.status
15963 configured by $0, generated by GNU Autoconf 2.61,
15964   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15965
15966 Copyright (C) 2006 Free Software Foundation, Inc.
15967 This config.status script is free software; the Free Software Foundation
15968 gives unlimited permission to copy, distribute and modify it."
15969
15970 ac_pwd='$ac_pwd'
15971 srcdir='$srcdir'
15972 INSTALL='$INSTALL'
15973 _ACEOF
15974
15975 cat >>$CONFIG_STATUS <<\_ACEOF
15976 # If no file are specified by the user, then we need to provide default
15977 # value.  By we need to know if files were specified by the user.
15978 ac_need_defaults=:
15979 while test $# != 0
15980 do
15981   case $1 in
15982   --*=*)
15983     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15984     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15985     ac_shift=:
15986     ;;
15987   *)
15988     ac_option=$1
15989     ac_optarg=$2
15990     ac_shift=shift
15991     ;;
15992   esac
15993
15994   case $ac_option in
15995   # Handling of the options.
15996   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15997     ac_cs_recheck=: ;;
15998   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15999     echo "$ac_cs_version"; exit ;;
16000   --debug | --debu | --deb | --de | --d | -d )
16001     debug=: ;;
16002   --file | --fil | --fi | --f )
16003     $ac_shift
16004     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16005     ac_need_defaults=false;;
16006   --he | --h |  --help | --hel | -h )
16007     echo "$ac_cs_usage"; exit ;;
16008   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16009   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16010     ac_cs_silent=: ;;
16011
16012   # This is an error.
16013   -*) { echo "$as_me: error: unrecognized option: $1
16014 Try \`$0 --help' for more information." >&2
16015    { (exit 1); exit 1; }; } ;;
16016
16017   *) ac_config_targets="$ac_config_targets $1"
16018      ac_need_defaults=false ;;
16019
16020   esac
16021   shift
16022 done
16023
16024 ac_configure_extra_args=
16025
16026 if $ac_cs_silent; then
16027   exec 6>/dev/null
16028   ac_configure_extra_args="$ac_configure_extra_args --silent"
16029 fi
16030
16031 _ACEOF
16032 cat >>$CONFIG_STATUS <<_ACEOF
16033 if \$ac_cs_recheck; then
16034   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16035   CONFIG_SHELL=$SHELL
16036   export CONFIG_SHELL
16037   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16038 fi
16039
16040 _ACEOF
16041 cat >>$CONFIG_STATUS <<\_ACEOF
16042 exec 5>>config.log
16043 {
16044   echo
16045   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16046 ## Running $as_me. ##
16047 _ASBOX
16048   echo "$ac_log"
16049 } >&5
16050
16051 _ACEOF
16052 cat >>$CONFIG_STATUS <<_ACEOF
16053 #
16054 # INIT-COMMANDS
16055 #
16056 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16057     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16058     # from automake.
16059     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16060     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16061     LINGUAS="${LINGUAS-%UNSET%}"
16062
16063
16064 _ACEOF
16065
16066 cat >>$CONFIG_STATUS <<\_ACEOF
16067
16068 # Handling of arguments.
16069 for ac_config_target in $ac_config_targets
16070 do
16071   case $ac_config_target in
16072     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16073     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16074
16075   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16077    { (exit 1); exit 1; }; };;
16078   esac
16079 done
16080
16081
16082 # If the user did not use the arguments to specify the items to instantiate,
16083 # then the envvar interface is used.  Set only those that are not.
16084 # We use the long form for the default assignment because of an extremely
16085 # bizarre bug on SunOS 4.1.3.
16086 if $ac_need_defaults; then
16087   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16088   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16089 fi
16090
16091 # Have a temporary directory for convenience.  Make it in the build tree
16092 # simply because there is no reason against having it here, and in addition,
16093 # creating and moving files from /tmp can sometimes cause problems.
16094 # Hook for its removal unless debugging.
16095 # Note that there is a small window in which the directory will not be cleaned:
16096 # after its creation but before its name has been assigned to `$tmp'.
16097 $debug ||
16098 {
16099   tmp=
16100   trap 'exit_status=$?
16101   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16102 ' 0
16103   trap '{ (exit 1); exit 1; }' 1 2 13 15
16104 }
16105 # Create a (secure) tmp directory for tmp files.
16106
16107 {
16108   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16109   test -n "$tmp" && test -d "$tmp"
16110 }  ||
16111 {
16112   tmp=./conf$$-$RANDOM
16113   (umask 077 && mkdir "$tmp")
16114 } ||
16115 {
16116    echo "$me: cannot create a temporary directory in ." >&2
16117    { (exit 1); exit 1; }
16118 }
16119
16120 #
16121 # Set up the sed scripts for CONFIG_FILES section.
16122 #
16123
16124 # No need to generate the scripts if there are no CONFIG_FILES.
16125 # This happens for instance when ./config.status config.h
16126 if test -n "$CONFIG_FILES"; then
16127
16128 _ACEOF
16129
16130 # Create sed commands to just substitute file output variables.
16131
16132 # Remaining file output variables are in a fragment that also has non-file
16133 # output varibles.
16134
16135
16136
16137 ac_delim='%!_!# '
16138 for ac_last_try in false false false false false :; do
16139   cat >conf$$subs.sed <<_ACEOF
16140 SHELL!$SHELL$ac_delim
16141 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16142 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16143 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16144 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16145 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16146 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16147 exec_prefix!$exec_prefix$ac_delim
16148 prefix!$prefix$ac_delim
16149 program_transform_name!$program_transform_name$ac_delim
16150 bindir!$bindir$ac_delim
16151 sbindir!$sbindir$ac_delim
16152 libexecdir!$libexecdir$ac_delim
16153 datarootdir!$datarootdir$ac_delim
16154 datadir!$datadir$ac_delim
16155 sysconfdir!$sysconfdir$ac_delim
16156 sharedstatedir!$sharedstatedir$ac_delim
16157 localstatedir!$localstatedir$ac_delim
16158 includedir!$includedir$ac_delim
16159 oldincludedir!$oldincludedir$ac_delim
16160 docdir!$docdir$ac_delim
16161 infodir!$infodir$ac_delim
16162 htmldir!$htmldir$ac_delim
16163 dvidir!$dvidir$ac_delim
16164 pdfdir!$pdfdir$ac_delim
16165 psdir!$psdir$ac_delim
16166 libdir!$libdir$ac_delim
16167 localedir!$localedir$ac_delim
16168 mandir!$mandir$ac_delim
16169 DEFS!$DEFS$ac_delim
16170 ECHO_C!$ECHO_C$ac_delim
16171 ECHO_N!$ECHO_N$ac_delim
16172 ECHO_T!$ECHO_T$ac_delim
16173 LIBS!$LIBS$ac_delim
16174 build_alias!$build_alias$ac_delim
16175 host_alias!$host_alias$ac_delim
16176 target_alias!$target_alias$ac_delim
16177 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16178 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16179 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16180 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16181 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16182 build!$build$ac_delim
16183 build_cpu!$build_cpu$ac_delim
16184 build_vendor!$build_vendor$ac_delim
16185 build_os!$build_os$ac_delim
16186 host!$host$ac_delim
16187 host_cpu!$host_cpu$ac_delim
16188 host_vendor!$host_vendor$ac_delim
16189 host_os!$host_os$ac_delim
16190 CC!$CC$ac_delim
16191 CFLAGS!$CFLAGS$ac_delim
16192 LDFLAGS!$LDFLAGS$ac_delim
16193 CPPFLAGS!$CPPFLAGS$ac_delim
16194 ac_ct_CC!$ac_ct_CC$ac_delim
16195 EXEEXT!$EXEEXT$ac_delim
16196 OBJEXT!$OBJEXT$ac_delim
16197 CPP!$CPP$ac_delim
16198 LD!$LD$ac_delim
16199 GREP!$GREP$ac_delim
16200 EGREP!$EGREP$ac_delim
16201 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16202 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16203 HTREE_CMT!$HTREE_CMT$ac_delim
16204 ELF_CMT!$ELF_CMT$ac_delim
16205 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16206 PROFILE_CMT!$PROFILE_CMT$ac_delim
16207 CHECKER_CMT!$CHECKER_CMT$ac_delim
16208 LIB_EXT!$LIB_EXT$ac_delim
16209 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16210 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16211 LDFLAG_DYNAMIC!$LDFLAG_DYNAMIC$ac_delim
16212 PRIVATE_LIBS_CMT!$PRIVATE_LIBS_CMT$ac_delim
16213 _ACEOF
16214
16215   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16216     break
16217   elif $ac_last_try; then
16218     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16219 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16220    { (exit 1); exit 1; }; }
16221   else
16222     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16223   fi
16224 done
16225
16226 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16227 if test -n "$ac_eof"; then
16228   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16229   ac_eof=`expr $ac_eof + 1`
16230 fi
16231
16232 cat >>$CONFIG_STATUS <<_ACEOF
16233 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16235 /^[      ]*@MCONFIG@[    ]*$/{
16236 r $MCONFIG
16237 d
16238 }
16239 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
16240 r $MAKEFILE_ELF
16241 d
16242 }
16243 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
16244 r $MAKEFILE_BSDLIB
16245 d
16246 }
16247 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
16248 r $MAKEFILE_PROFILE
16249 d
16250 }
16251 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
16252 r $MAKEFILE_CHECKER
16253 d
16254 }
16255 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
16256 r $MAKEFILE_LIBRARY
16257 d
16258 }
16259 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
16260 r $ASM_TYPES_HEADER
16261 d
16262 }
16263 /^[      ]*@PUBLIC_CONFIG_HEADER@[       ]*$/{
16264 r $PUBLIC_CONFIG_HEADER
16265 d
16266 }
16267 _ACEOF
16268 sed '
16269 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16270 s/^/s,@/; s/!/@,|#_!!_#|/
16271 :n
16272 t n
16273 s/'"$ac_delim"'$/,g/; t
16274 s/$/\\/; p
16275 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16276 ' >>$CONFIG_STATUS <conf$$subs.sed
16277 rm -f conf$$subs.sed
16278 cat >>$CONFIG_STATUS <<_ACEOF
16279 CEOF$ac_eof
16280 _ACEOF
16281
16282
16283 ac_delim='%!_!# '
16284 for ac_last_try in false false false false false :; do
16285   cat >conf$$subs.sed <<_ACEOF
16286 TEST_IO_CMT!$TEST_IO_CMT$ac_delim
16287 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16288 IMAGER_CMT!$IMAGER_CMT$ac_delim
16289 RESIZER_CMT!$RESIZER_CMT$ac_delim
16290 FSCK_PROG!$FSCK_PROG$ac_delim
16291 FSCK_MAN!$FSCK_MAN$ac_delim
16292 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16293 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16294 UUIDD_CMT!$UUIDD_CMT$ac_delim
16295 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16296 PACKAGE!$PACKAGE$ac_delim
16297 VERSION!$VERSION$ac_delim
16298 SET_MAKE!$SET_MAKE$ac_delim
16299 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16300 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16301 INSTALL_DATA!$INSTALL_DATA$ac_delim
16302 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16303 USE_NLS!$USE_NLS$ac_delim
16304 MSGFMT!$MSGFMT$ac_delim
16305 GMSGFMT!$GMSGFMT$ac_delim
16306 XGETTEXT!$XGETTEXT$ac_delim
16307 MSGMERGE!$MSGMERGE$ac_delim
16308 RANLIB!$RANLIB$ac_delim
16309 ALLOCA!$ALLOCA$ac_delim
16310 GLIBC21!$GLIBC21$ac_delim
16311 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16312 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16313 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16314 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16315 LIBICONV!$LIBICONV$ac_delim
16316 LTLIBICONV!$LTLIBICONV$ac_delim
16317 INTLBISON!$INTLBISON$ac_delim
16318 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16319 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16320 CATOBJEXT!$CATOBJEXT$ac_delim
16321 DATADIRNAME!$DATADIRNAME$ac_delim
16322 INSTOBJEXT!$INSTOBJEXT$ac_delim
16323 GENCAT!$GENCAT$ac_delim
16324 INTLOBJS!$INTLOBJS$ac_delim
16325 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16326 INTLLIBS!$INTLLIBS$ac_delim
16327 LIBINTL!$LIBINTL$ac_delim
16328 LTLIBINTL!$LTLIBINTL$ac_delim
16329 POSUB!$POSUB$ac_delim
16330 BINARY_TYPE!$BINARY_TYPE$ac_delim
16331 LN!$LN$ac_delim
16332 LN_S!$LN_S$ac_delim
16333 MV!$MV$ac_delim
16334 CP!$CP$ac_delim
16335 RM!$RM$ac_delim
16336 CHMOD!$CHMOD$ac_delim
16337 AWK!$AWK$ac_delim
16338 SED!$SED$ac_delim
16339 PERL!$PERL$ac_delim
16340 LDCONFIG!$LDCONFIG$ac_delim
16341 AR!$AR$ac_delim
16342 STRIP!$STRIP$ac_delim
16343 MAKEINFO!$MAKEINFO$ac_delim
16344 BUILD_CC!$BUILD_CC$ac_delim
16345 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16346 SIZEOF_INT!$SIZEOF_INT$ac_delim
16347 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16348 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16349 SOCKET_LIB!$SOCKET_LIB$ac_delim
16350 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16351 SEM_INIT_LIB!$SEM_INIT_LIB$ac_delim
16352 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16353 LINUX_CMT!$LINUX_CMT$ac_delim
16354 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16355 UNIX_CMT!$UNIX_CMT$ac_delim
16356 root_prefix!$root_prefix$ac_delim
16357 root_bindir!$root_bindir$ac_delim
16358 root_sbindir!$root_sbindir$ac_delim
16359 root_libdir!$root_libdir$ac_delim
16360 root_sysconfdir!$root_sysconfdir$ac_delim
16361 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16362 SS_DIR!$SS_DIR$ac_delim
16363 ET_DIR!$ET_DIR$ac_delim
16364 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16365 INTL_FLAGS!$INTL_FLAGS$ac_delim
16366 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16367 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16368 LIBOBJS!$LIBOBJS$ac_delim
16369 LTLIBOBJS!$LTLIBOBJS$ac_delim
16370 _ACEOF
16371
16372   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
16373     break
16374   elif $ac_last_try; then
16375     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16376 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16377    { (exit 1); exit 1; }; }
16378   else
16379     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16380   fi
16381 done
16382
16383 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16384 if test -n "$ac_eof"; then
16385   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16386   ac_eof=`expr $ac_eof + 1`
16387 fi
16388
16389 cat >>$CONFIG_STATUS <<_ACEOF
16390 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16392 _ACEOF
16393 sed '
16394 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16395 s/^/s,@/; s/!/@,|#_!!_#|/
16396 :n
16397 t n
16398 s/'"$ac_delim"'$/,g/; t
16399 s/$/\\/; p
16400 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16401 ' >>$CONFIG_STATUS <conf$$subs.sed
16402 rm -f conf$$subs.sed
16403 cat >>$CONFIG_STATUS <<_ACEOF
16404 :end
16405 s/|#_!!_#|//g
16406 CEOF$ac_eof
16407 _ACEOF
16408
16409
16410 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16411 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16412 # trailing colons and then remove the whole line if VPATH becomes empty
16413 # (actually we leave an empty line to preserve line numbers).
16414 if test "x$srcdir" = x.; then
16415   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16416 s/:*\$(srcdir):*/:/
16417 s/:*\${srcdir}:*/:/
16418 s/:*@srcdir@:*/:/
16419 s/^\([^=]*=[     ]*\):*/\1/
16420 s/:*$//
16421 s/^[^=]*=[       ]*$//
16422 }'
16423 fi
16424
16425 cat >>$CONFIG_STATUS <<\_ACEOF
16426 fi # test -n "$CONFIG_FILES"
16427
16428
16429 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
16430 do
16431   case $ac_tag in
16432   :[FHLC]) ac_mode=$ac_tag; continue;;
16433   esac
16434   case $ac_mode$ac_tag in
16435   :[FHL]*:*);;
16436   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16437 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16438    { (exit 1); exit 1; }; };;
16439   :[FH]-) ac_tag=-:-;;
16440   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16441   esac
16442   ac_save_IFS=$IFS
16443   IFS=:
16444   set x $ac_tag
16445   IFS=$ac_save_IFS
16446   shift
16447   ac_file=$1
16448   shift
16449
16450   case $ac_mode in
16451   :L) ac_source=$1;;
16452   :[FH])
16453     ac_file_inputs=
16454     for ac_f
16455     do
16456       case $ac_f in
16457       -) ac_f="$tmp/stdin";;
16458       *) # Look for the file first in the build tree, then in the source tree
16459          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16460          # because $ac_f cannot contain `:'.
16461          test -f "$ac_f" ||
16462            case $ac_f in
16463            [\\/$]*) false;;
16464            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16465            esac ||
16466            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16467 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16468    { (exit 1); exit 1; }; };;
16469       esac
16470       ac_file_inputs="$ac_file_inputs $ac_f"
16471     done
16472
16473     # Let's still pretend it is `configure' which instantiates (i.e., don't
16474     # use $as_me), people would be surprised to read:
16475     #    /* config.h.  Generated by config.status.  */
16476     configure_input="Generated from "`IFS=:
16477           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16478     if test x"$ac_file" != x-; then
16479       configure_input="$ac_file.  $configure_input"
16480       { echo "$as_me:$LINENO: creating $ac_file" >&5
16481 echo "$as_me: creating $ac_file" >&6;}
16482     fi
16483
16484     case $ac_tag in
16485     *:-:* | *:-) cat >"$tmp/stdin";;
16486     esac
16487     ;;
16488   esac
16489
16490   ac_dir=`$as_dirname -- "$ac_file" ||
16491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16492          X"$ac_file" : 'X\(//\)[^/]' \| \
16493          X"$ac_file" : 'X\(//\)$' \| \
16494          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16495 echo X"$ac_file" |
16496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16497             s//\1/
16498             q
16499           }
16500           /^X\(\/\/\)[^/].*/{
16501             s//\1/
16502             q
16503           }
16504           /^X\(\/\/\)$/{
16505             s//\1/
16506             q
16507           }
16508           /^X\(\/\).*/{
16509             s//\1/
16510             q
16511           }
16512           s/.*/./; q'`
16513   { as_dir="$ac_dir"
16514   case $as_dir in #(
16515   -*) as_dir=./$as_dir;;
16516   esac
16517   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16518     as_dirs=
16519     while :; do
16520       case $as_dir in #(
16521       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16522       *) as_qdir=$as_dir;;
16523       esac
16524       as_dirs="'$as_qdir' $as_dirs"
16525       as_dir=`$as_dirname -- "$as_dir" ||
16526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16527          X"$as_dir" : 'X\(//\)[^/]' \| \
16528          X"$as_dir" : 'X\(//\)$' \| \
16529          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16530 echo X"$as_dir" |
16531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16532             s//\1/
16533             q
16534           }
16535           /^X\(\/\/\)[^/].*/{
16536             s//\1/
16537             q
16538           }
16539           /^X\(\/\/\)$/{
16540             s//\1/
16541             q
16542           }
16543           /^X\(\/\).*/{
16544             s//\1/
16545             q
16546           }
16547           s/.*/./; q'`
16548       test -d "$as_dir" && break
16549     done
16550     test -z "$as_dirs" || eval "mkdir $as_dirs"
16551   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16552 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16553    { (exit 1); exit 1; }; }; }
16554   ac_builddir=.
16555
16556 case "$ac_dir" in
16557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16558 *)
16559   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16560   # A ".." for each directory in $ac_dir_suffix.
16561   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16562   case $ac_top_builddir_sub in
16563   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16564   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16565   esac ;;
16566 esac
16567 ac_abs_top_builddir=$ac_pwd
16568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16569 # for backward compatibility:
16570 ac_top_builddir=$ac_top_build_prefix
16571
16572 case $srcdir in
16573   .)  # We are building in place.
16574     ac_srcdir=.
16575     ac_top_srcdir=$ac_top_builddir_sub
16576     ac_abs_top_srcdir=$ac_pwd ;;
16577   [\\/]* | ?:[\\/]* )  # Absolute name.
16578     ac_srcdir=$srcdir$ac_dir_suffix;
16579     ac_top_srcdir=$srcdir
16580     ac_abs_top_srcdir=$srcdir ;;
16581   *) # Relative name.
16582     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16583     ac_top_srcdir=$ac_top_build_prefix$srcdir
16584     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16585 esac
16586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16587
16588
16589   case $ac_mode in
16590   :F)
16591   #
16592   # CONFIG_FILE
16593   #
16594
16595   case $INSTALL in
16596   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16597   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16598   esac
16599 _ACEOF
16600
16601 cat >>$CONFIG_STATUS <<\_ACEOF
16602 # If the template does not know about datarootdir, expand it.
16603 # FIXME: This hack should be removed a few years after 2.60.
16604 ac_datarootdir_hack=; ac_datarootdir_seen=
16605
16606 case `sed -n '/datarootdir/ {
16607   p
16608   q
16609 }
16610 /@datadir@/p
16611 /@docdir@/p
16612 /@infodir@/p
16613 /@localedir@/p
16614 /@mandir@/p
16615 ' $ac_file_inputs` in
16616 *datarootdir*) ac_datarootdir_seen=yes;;
16617 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16618   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16619 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16620 _ACEOF
16621 cat >>$CONFIG_STATUS <<_ACEOF
16622   ac_datarootdir_hack='
16623   s&@datadir@&$datadir&g
16624   s&@docdir@&$docdir&g
16625   s&@infodir@&$infodir&g
16626   s&@localedir@&$localedir&g
16627   s&@mandir@&$mandir&g
16628     s&\\\${datarootdir}&$datarootdir&g' ;;
16629 esac
16630 _ACEOF
16631
16632 # Neutralize VPATH when `$srcdir' = `.'.
16633 # Shell code in configure.ac might set extrasub.
16634 # FIXME: do we really want to maintain this feature?
16635 cat >>$CONFIG_STATUS <<_ACEOF
16636   sed "$ac_vpsub
16637 $extrasub
16638 _ACEOF
16639 cat >>$CONFIG_STATUS <<\_ACEOF
16640 :t
16641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16642 s&@configure_input@&$configure_input&;t t
16643 s&@top_builddir@&$ac_top_builddir_sub&;t t
16644 s&@srcdir@&$ac_srcdir&;t t
16645 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16646 s&@top_srcdir@&$ac_top_srcdir&;t t
16647 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16648 s&@builddir@&$ac_builddir&;t t
16649 s&@abs_builddir@&$ac_abs_builddir&;t t
16650 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16651 s&@INSTALL@&$ac_INSTALL&;t t
16652 $ac_datarootdir_hack
16653 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16654
16655 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16656   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16657   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16658   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16659 which seems to be undefined.  Please make sure it is defined." >&5
16660 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16661 which seems to be undefined.  Please make sure it is defined." >&2;}
16662
16663   rm -f "$tmp/stdin"
16664   case $ac_file in
16665   -) cat "$tmp/out"; rm -f "$tmp/out";;
16666   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16667   esac
16668  ;;
16669
16670
16671   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16672 echo "$as_me: executing $ac_file commands" >&6;}
16673  ;;
16674   esac
16675
16676
16677   case $ac_file$ac_mode in
16678     "default-1":C)
16679     for ac_file in $CONFIG_FILES; do
16680       # Support "outfile[:infile[:infile...]]"
16681       case "$ac_file" in
16682         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16683       esac
16684       # PO directories have a Makefile.in generated from Makefile.in.in.
16685       case "$ac_file" in */Makefile.in)
16686         # Adjust a relative srcdir.
16687         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16688         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16689         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16690         # In autoconf-2.13 it is called $ac_given_srcdir.
16691         # In autoconf-2.50 it is called $srcdir.
16692         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16693         case "$ac_given_srcdir" in
16694           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16695           /*) top_srcdir="$ac_given_srcdir" ;;
16696           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16697         esac
16698         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16699           rm -f "$ac_dir/POTFILES"
16700           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16701           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16702           POMAKEFILEDEPS="POTFILES.in"
16703           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16704           # on $ac_dir but don't depend on user-specified configuration
16705           # parameters.
16706           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16707             # The LINGUAS file contains the set of available languages.
16708             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16709               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16710             fi
16711             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16712             # Hide the ALL_LINGUAS assigment from automake.
16713             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16714             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16715           else
16716             # The set of available languages was given in configure.in.
16717             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16718           fi
16719           # Compute POFILES
16720           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16721           # Compute UPDATEPOFILES
16722           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16723           # Compute DUMMYPOFILES
16724           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16725           # Compute GMOFILES
16726           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16727           case "$ac_given_srcdir" in
16728             .) srcdirpre= ;;
16729             *) srcdirpre='$(srcdir)/' ;;
16730           esac
16731           POFILES=
16732           UPDATEPOFILES=
16733           DUMMYPOFILES=
16734           GMOFILES=
16735           for lang in $ALL_LINGUAS; do
16736             POFILES="$POFILES $srcdirpre$lang.po"
16737             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16738             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16739             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16740           done
16741           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16742           # environment variable.
16743           INST_LINGUAS=
16744           if test -n "$ALL_LINGUAS"; then
16745             for presentlang in $ALL_LINGUAS; do
16746               useit=no
16747               if test "%UNSET%" != "$LINGUAS"; then
16748                 desiredlanguages="$LINGUAS"
16749               else
16750                 desiredlanguages="$ALL_LINGUAS"
16751               fi
16752               for desiredlang in $desiredlanguages; do
16753                 # Use the presentlang catalog if desiredlang is
16754                 #   a. equal to presentlang, or
16755                 #   b. a variant of presentlang (because in this case,
16756                 #      presentlang can be used as a fallback for messages
16757                 #      which are not translated in the desiredlang catalog).
16758                 case "$desiredlang" in
16759                   "$presentlang"*) useit=yes;;
16760                 esac
16761               done
16762               if test $useit = yes; then
16763                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16764               fi
16765             done
16766           fi
16767           CATALOGS=
16768           if test -n "$INST_LINGUAS"; then
16769             for lang in $INST_LINGUAS; do
16770               CATALOGS="$CATALOGS $lang.gmo"
16771             done
16772           fi
16773           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16774           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16775           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16776             if test -f "$f"; then
16777               case "$f" in
16778                 *.orig | *.bak | *~) ;;
16779                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16780               esac
16781             fi
16782           done
16783         fi
16784         ;;
16785       esac
16786     done ;;
16787
16788   esac
16789 done # for ac_tag
16790
16791
16792 { (exit 0); exit 0; }
16793 _ACEOF
16794 chmod +x $CONFIG_STATUS
16795 ac_clean_files=$ac_clean_files_save
16796
16797
16798 # configure is writing to config.log, and then calls config.status.
16799 # config.status does its own redirection, appending to config.log.
16800 # Unfortunately, on DOS this fails, as config.log is still kept open
16801 # by configure, so config.status won't be able to write to it; its
16802 # output is simply discarded.  So we exec the FD to /dev/null,
16803 # effectively closing config.log, so it can be properly (re)opened and
16804 # appended to by config.status.  When coming back to configure, we
16805 # need to make the FD available again.
16806 if test "$no_create" != yes; then
16807   ac_cs_success=:
16808   ac_config_status_args=
16809   test "$silent" = yes &&
16810     ac_config_status_args="$ac_config_status_args --quiet"
16811   exec 5>/dev/null
16812   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16813   exec 5>>config.log
16814   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16815   # would make configure fail if this is the last instruction.
16816   $ac_cs_success || { (exit 1); exit 1; }
16817 fi
16818
16819 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi