Whamcloud - gitweb
Remove default sizeof sizes in configure script when cross-compiling
[tools/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 SWAPFS_CMT
688 DEBUGFS_CMT
689 IMAGER_CMT
690 RESIZER_CMT
691 FSCK_PROG
692 FSCK_MAN
693 E2INITRD_PROG
694 E2INITRD_MAN
695 PKG_CONFIG
696 DEVMAPPER_REQ
697 DEVMAPPER_PC_LIBS
698 DEVMAPPER_LIBS
699 STATIC_DEVMAPPER_LIBS
700 STATIC_BLKID_DEVMAPPER_LIBS
701 UUIDD_CMT
702 GETTEXT_PACKAGE
703 PACKAGE
704 VERSION
705 SET_MAKE
706 INSTALL_PROGRAM
707 INSTALL_SCRIPT
708 INSTALL_DATA
709 MKINSTALLDIRS
710 USE_NLS
711 MSGFMT
712 GMSGFMT
713 XGETTEXT
714 MSGMERGE
715 RANLIB
716 ALLOCA
717 GLIBC21
718 HAVE_POSIX_PRINTF
719 HAVE_ASPRINTF
720 HAVE_SNPRINTF
721 HAVE_WPRINTF
722 LIBICONV
723 LTLIBICONV
724 INTLBISON
725 BUILD_INCLUDED_LIBINTL
726 USE_INCLUDED_LIBINTL
727 CATOBJEXT
728 DATADIRNAME
729 INSTOBJEXT
730 GENCAT
731 INTLOBJS
732 INTL_LIBTOOL_SUFFIX_PREFIX
733 INTLLIBS
734 LIBINTL
735 LTLIBINTL
736 POSUB
737 BINARY_TYPE
738 LN
739 LN_S
740 MV
741 CP
742 RM
743 CHMOD
744 AWK
745 SED
746 PERL
747 LDCONFIG
748 AR
749 STRIP
750 MAKEINFO
751 BUILD_CC
752 SIZEOF_SHORT
753 SIZEOF_INT
754 SIZEOF_LONG
755 SIZEOF_LONG_LONG
756 SOCKET_LIB
757 DLOPEN_LIB
758 UNI_DIFF_OPTS
759 LINUX_CMT
760 CYGWIN_CMT
761 UNIX_CMT
762 root_prefix
763 root_bindir
764 root_sbindir
765 root_libdir
766 root_sysconfdir
767 LDFLAG_STATIC
768 SS_DIR
769 ET_DIR
770 DO_TEST_SUITE
771 INTL_FLAGS
772 BUILD_CFLAGS
773 BUILD_LDFLAGS
774 LIBOBJS
775 LTLIBOBJS'
776 ac_subst_files='MCONFIG
777 MAKEFILE_ELF
778 MAKEFILE_BSDLIB
779 MAKEFILE_PROFILE
780 MAKEFILE_CHECKER
781 MAKEFILE_LIBRARY
782 ASM_TYPES_HEADER'
783       ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP
792 PKG_CONFIG'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845   # If the previous option needs an argument, assign it.
846   if test -n "$ac_prev"; then
847     eval $ac_prev=\$ac_option
848     ac_prev=
849     continue
850   fi
851
852   case $ac_option in
853   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854   *)    ac_optarg=yes ;;
855   esac
856
857   # Accept the important Cygnus configure options, so we can diagnose typos.
858
859   case $ac_dashdash$ac_option in
860   --)
861     ac_dashdash=yes ;;
862
863   -bindir | --bindir | --bindi | --bind | --bin | --bi)
864     ac_prev=bindir ;;
865   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866     bindir=$ac_optarg ;;
867
868   -build | --build | --buil | --bui | --bu)
869     ac_prev=build_alias ;;
870   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871     build_alias=$ac_optarg ;;
872
873   -cache-file | --cache-file | --cache-fil | --cache-fi \
874   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875     ac_prev=cache_file ;;
876   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878     cache_file=$ac_optarg ;;
879
880   --config-cache | -C)
881     cache_file=config.cache ;;
882
883   -datadir | --datadir | --datadi | --datad)
884     ac_prev=datadir ;;
885   -datadir=* | --datadir=* | --datadi=* | --datad=*)
886     datadir=$ac_optarg ;;
887
888   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889   | --dataroo | --dataro | --datar)
890     ac_prev=datarootdir ;;
891   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893     datarootdir=$ac_optarg ;;
894
895   -disable-* | --disable-*)
896     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897     # Reject names that are not valid shell variable names.
898     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900    { (exit 1); exit 1; }; }
901     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902     eval enable_$ac_feature=no ;;
903
904   -docdir | --docdir | --docdi | --doc | --do)
905     ac_prev=docdir ;;
906   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907     docdir=$ac_optarg ;;
908
909   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910     ac_prev=dvidir ;;
911   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912     dvidir=$ac_optarg ;;
913
914   -enable-* | --enable-*)
915     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916     # Reject names that are not valid shell variable names.
917     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919    { (exit 1); exit 1; }; }
920     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921     eval enable_$ac_feature=\$ac_optarg ;;
922
923   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925   | --exec | --exe | --ex)
926     ac_prev=exec_prefix ;;
927   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929   | --exec=* | --exe=* | --ex=*)
930     exec_prefix=$ac_optarg ;;
931
932   -gas | --gas | --ga | --g)
933     # Obsolete; use --with-gas.
934     with_gas=yes ;;
935
936   -help | --help | --hel | --he | -h)
937     ac_init_help=long ;;
938   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939     ac_init_help=recursive ;;
940   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941     ac_init_help=short ;;
942
943   -host | --host | --hos | --ho)
944     ac_prev=host_alias ;;
945   -host=* | --host=* | --hos=* | --ho=*)
946     host_alias=$ac_optarg ;;
947
948   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949     ac_prev=htmldir ;;
950   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951   | --ht=*)
952     htmldir=$ac_optarg ;;
953
954   -includedir | --includedir | --includedi | --included | --include \
955   | --includ | --inclu | --incl | --inc)
956     ac_prev=includedir ;;
957   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958   | --includ=* | --inclu=* | --incl=* | --inc=*)
959     includedir=$ac_optarg ;;
960
961   -infodir | --infodir | --infodi | --infod | --info | --inf)
962     ac_prev=infodir ;;
963   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964     infodir=$ac_optarg ;;
965
966   -libdir | --libdir | --libdi | --libd)
967     ac_prev=libdir ;;
968   -libdir=* | --libdir=* | --libdi=* | --libd=*)
969     libdir=$ac_optarg ;;
970
971   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972   | --libexe | --libex | --libe)
973     ac_prev=libexecdir ;;
974   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975   | --libexe=* | --libex=* | --libe=*)
976     libexecdir=$ac_optarg ;;
977
978   -localedir | --localedir | --localedi | --localed | --locale)
979     ac_prev=localedir ;;
980   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981     localedir=$ac_optarg ;;
982
983   -localstatedir | --localstatedir | --localstatedi | --localstated \
984   | --localstate | --localstat | --localsta | --localst | --locals)
985     ac_prev=localstatedir ;;
986   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988     localstatedir=$ac_optarg ;;
989
990   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991     ac_prev=mandir ;;
992   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993     mandir=$ac_optarg ;;
994
995   -nfp | --nfp | --nf)
996     # Obsolete; use --without-fp.
997     with_fp=no ;;
998
999   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000   | --no-cr | --no-c | -n)
1001     no_create=yes ;;
1002
1003   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005     no_recursion=yes ;;
1006
1007   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009   | --oldin | --oldi | --old | --ol | --o)
1010     ac_prev=oldincludedir ;;
1011   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014     oldincludedir=$ac_optarg ;;
1015
1016   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017     ac_prev=prefix ;;
1018   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019     prefix=$ac_optarg ;;
1020
1021   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022   | --program-pre | --program-pr | --program-p)
1023     ac_prev=program_prefix ;;
1024   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026     program_prefix=$ac_optarg ;;
1027
1028   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029   | --program-suf | --program-su | --program-s)
1030     ac_prev=program_suffix ;;
1031   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033     program_suffix=$ac_optarg ;;
1034
1035   -program-transform-name | --program-transform-name \
1036   | --program-transform-nam | --program-transform-na \
1037   | --program-transform-n | --program-transform- \
1038   | --program-transform | --program-transfor \
1039   | --program-transfo | --program-transf \
1040   | --program-trans | --program-tran \
1041   | --progr-tra | --program-tr | --program-t)
1042     ac_prev=program_transform_name ;;
1043   -program-transform-name=* | --program-transform-name=* \
1044   | --program-transform-nam=* | --program-transform-na=* \
1045   | --program-transform-n=* | --program-transform-=* \
1046   | --program-transform=* | --program-transfor=* \
1047   | --program-transfo=* | --program-transf=* \
1048   | --program-trans=* | --program-tran=* \
1049   | --progr-tra=* | --program-tr=* | --program-t=*)
1050     program_transform_name=$ac_optarg ;;
1051
1052   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053     ac_prev=pdfdir ;;
1054   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055     pdfdir=$ac_optarg ;;
1056
1057   -psdir | --psdir | --psdi | --psd | --ps)
1058     ac_prev=psdir ;;
1059   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060     psdir=$ac_optarg ;;
1061
1062   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063   | -silent | --silent | --silen | --sile | --sil)
1064     silent=yes ;;
1065
1066   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067     ac_prev=sbindir ;;
1068   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069   | --sbi=* | --sb=*)
1070     sbindir=$ac_optarg ;;
1071
1072   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074   | --sharedst | --shareds | --shared | --share | --shar \
1075   | --sha | --sh)
1076     ac_prev=sharedstatedir ;;
1077   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080   | --sha=* | --sh=*)
1081     sharedstatedir=$ac_optarg ;;
1082
1083   -site | --site | --sit)
1084     ac_prev=site ;;
1085   -site=* | --site=* | --sit=*)
1086     site=$ac_optarg ;;
1087
1088   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089     ac_prev=srcdir ;;
1090   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091     srcdir=$ac_optarg ;;
1092
1093   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094   | --syscon | --sysco | --sysc | --sys | --sy)
1095     ac_prev=sysconfdir ;;
1096   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098     sysconfdir=$ac_optarg ;;
1099
1100   -target | --target | --targe | --targ | --tar | --ta | --t)
1101     ac_prev=target_alias ;;
1102   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103     target_alias=$ac_optarg ;;
1104
1105   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106     verbose=yes ;;
1107
1108   -version | --version | --versio | --versi | --vers | -V)
1109     ac_init_version=: ;;
1110
1111   -with-* | --with-*)
1112     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115       { echo "$as_me: error: invalid package name: $ac_package" >&2
1116    { (exit 1); exit 1; }; }
1117     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118     eval with_$ac_package=\$ac_optarg ;;
1119
1120   -without-* | --without-*)
1121     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127     eval with_$ac_package=no ;;
1128
1129   --x)
1130     # Obsolete; use --with-x.
1131     with_x=yes ;;
1132
1133   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134   | --x-incl | --x-inc | --x-in | --x-i)
1135     ac_prev=x_includes ;;
1136   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138     x_includes=$ac_optarg ;;
1139
1140   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142     ac_prev=x_libraries ;;
1143   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145     x_libraries=$ac_optarg ;;
1146
1147   -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149    { (exit 1); exit 1; }; }
1150     ;;
1151
1152   *=*)
1153     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157    { (exit 1); exit 1; }; }
1158     eval $ac_envvar=\$ac_optarg
1159     export $ac_envvar ;;
1160
1161   *)
1162     # FIXME: should be removed in autoconf 3.0.
1163     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167     ;;
1168
1169   esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174   { echo "$as_me: error: missing argument to $ac_option" >&2
1175    { (exit 1); exit 1; }; }
1176 fi
1177
1178 # Be sure to have absolute directory names.
1179 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180                 datadir sysconfdir sharedstatedir localstatedir includedir \
1181                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182                 libdir localedir mandir
1183 do
1184   eval ac_val=\$$ac_var
1185   case $ac_val in
1186     [\\/$]* | ?:[\\/]* )  continue;;
1187     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188   esac
1189   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190    { (exit 1); exit 1; }; }
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202   if test "x$build_alias" = x; then
1203     cross_compiling=maybe
1204     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205     If a cross compiler is detected then cross compile mode will be used." >&2
1206   elif test "x$build_alias" != "x$host_alias"; then
1207     cross_compiling=yes
1208   fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220   { echo "$as_me: error: Working directory cannot be determined" >&2
1221    { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223   { echo "$as_me: error: pwd does not report name of working directory" >&2
1224    { (exit 1); exit 1; }; }
1225
1226
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229   ac_srcdir_defaulted=yes
1230   # Try the directory containing this script, then the parent directory.
1231   ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233          X"$0" : 'X\(//\)[^/]' \| \
1234          X"$0" : 'X\(//\)$' \| \
1235          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1236 echo X"$0" |
1237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238             s//\1/
1239             q
1240           }
1241           /^X\(\/\/\)[^/].*/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\/\)$/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\).*/{
1250             s//\1/
1251             q
1252           }
1253           s/.*/./; q'`
1254   srcdir=$ac_confdir
1255   if test ! -r "$srcdir/$ac_unique_file"; then
1256     srcdir=..
1257   fi
1258 else
1259   ac_srcdir_defaulted=no
1260 fi
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264    { (exit 1); exit 1; }; }
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269    { (exit 1); exit 1; }; }
1270         pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273   srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283   eval ac_env_${ac_var}_value=\$${ac_var}
1284   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292   # Omit some internal or obsolete options to make the list less imposing.
1293   # This message is too long to be a string in the A/UX 3.1 sh.
1294   cat <<_ACEOF
1295 \`configure' configures this package to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE.  See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305   -h, --help              display this help and exit
1306       --help=short        display options specific to this package
1307       --help=recursive    display the short help of all the included packages
1308   -V, --version           display version information and exit
1309   -q, --quiet, --silent   do not print \`checking...' messages
1310       --cache-file=FILE   cache test results in FILE [disabled]
1311   -C, --config-cache      alias for \`--cache-file=config.cache'
1312   -n, --no-create         do not create output files
1313       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316   --prefix=PREFIX         install architecture-independent files in PREFIX
1317                           [$ac_default_prefix]
1318   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1319                           [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329   --bindir=DIR           user executables [EPREFIX/bin]
1330   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1331   --libexecdir=DIR       program executables [EPREFIX/libexec]
1332   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1333   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1334   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1335   --libdir=DIR           object code libraries [EPREFIX/lib]
1336   --includedir=DIR       C header files [PREFIX/include]
1337   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1338   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1339   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1340   --infodir=DIR          info documentation [DATAROOTDIR/info]
1341   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1342   --mandir=DIR           man documentation [DATAROOTDIR/man]
1343   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1344   --htmldir=DIR          html documentation [DOCDIR]
1345   --dvidir=DIR           dvi documentation [DOCDIR]
1346   --pdfdir=DIR           pdf documentation [DOCDIR]
1347   --psdir=DIR            ps documentation [DOCDIR]
1348 _ACEOF
1349
1350   cat <<\_ACEOF
1351
1352 System types:
1353   --build=BUILD     configure for building on BUILD [guessed]
1354   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1355 _ACEOF
1356 fi
1357
1358 if test -n "$ac_init_help"; then
1359
1360   cat <<\_ACEOF
1361
1362 Optional Features:
1363   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1364   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1365   --enable-maintainer-mode enable makefile rules useful for maintainers
1366   --enable-compression    enable EXPERIMENTAL compression support
1367   --enable-htree          enable EXPERIMENTAL htree directory support
1368   --enable-elf-shlibs     select ELF shared libraries
1369   --enable-bsd-shlibs     select BSD shared libraries
1370   --enable-profile        build profiling libraries
1371   --enable-checker        build checker libraries
1372   --enable-jbd-debug      enable journal debugging
1373   --enable-blkid-debug    enable blkid debugging
1374   --enable-testio-debug   enable the use of the test I/O manager for debugging
1375   --disable-swapfs        disable support of legacy byte-swapped filesystems
1376   --disable-debugfs       disable support of debugfs program
1377   --disable-imager        disable support of e2image program
1378   --disable-resizer       disable support of e2resize program
1379   --enable-fsck           build fsck wrapper program
1380   --enable-e2initrd-helper build e2initrd-helper program
1381   --enable-blkid-devmapper  build with device-mapper support
1382   --disable-tls           disable use of thread local support
1383   --disable-uuidd         disable building the uuid daemon
1384   --disable-nls           do not use Native Language Support
1385   --disable-rpath         do not hardcode runtime library paths
1386
1387 Optional Packages:
1388   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1389   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1390   --with-diet-libc        use diet libc
1391   --with-cc=COMPILER      select compiler to use
1392   --with-linker=LINKER    select linker to use
1393   --with-ccopts=CCOPTS    select compiler command line options
1394   --with-ldopts=LDOPTS    select linker command line options
1395   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1396   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1397   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1398   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1399   --with-included-gettext use the GNU gettext library included here
1400   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1401   --without-libintl-prefix     don't search for libintl in includedir and libdir
1402
1403 Some influential environment variables:
1404   CC          C compiler command
1405   CFLAGS      C compiler flags
1406   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1407               nonstandard directory <lib dir>
1408   LIBS        libraries to pass to the linker, e.g. -l<library>
1409   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410               you have headers in a nonstandard directory <include dir>
1411   CPP         C preprocessor
1412   PKG_CONFIG  path to pkg-config utility
1413
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1416
1417 _ACEOF
1418 ac_status=$?
1419 fi
1420
1421 if test "$ac_init_help" = "recursive"; then
1422   # If there are subdirs, report their specific --help.
1423   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424     test -d "$ac_dir" || continue
1425     ac_builddir=.
1426
1427 case "$ac_dir" in
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *)
1430   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1431   # A ".." for each directory in $ac_dir_suffix.
1432   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1433   case $ac_top_builddir_sub in
1434   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436   esac ;;
1437 esac
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1442
1443 case $srcdir in
1444   .)  # We are building in place.
1445     ac_srcdir=.
1446     ac_top_srcdir=$ac_top_builddir_sub
1447     ac_abs_top_srcdir=$ac_pwd ;;
1448   [\\/]* | ?:[\\/]* )  # Absolute name.
1449     ac_srcdir=$srcdir$ac_dir_suffix;
1450     ac_top_srcdir=$srcdir
1451     ac_abs_top_srcdir=$srcdir ;;
1452   *) # Relative name.
1453     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454     ac_top_srcdir=$ac_top_build_prefix$srcdir
1455     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 esac
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458
1459     cd "$ac_dir" || { ac_status=$?; continue; }
1460     # Check for guested configure.
1461     if test -f "$ac_srcdir/configure.gnu"; then
1462       echo &&
1463       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464     elif test -f "$ac_srcdir/configure"; then
1465       echo &&
1466       $SHELL "$ac_srcdir/configure" --help=recursive
1467     else
1468       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469     fi || ac_status=$?
1470     cd "$ac_pwd" || { ac_status=$?; break; }
1471   done
1472 fi
1473
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1476   cat <<\_ACEOF
1477 configure
1478 generated by GNU Autoconf 2.61
1479
1480 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1481 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485   exit
1486 fi
1487 cat >config.log <<_ACEOF
1488 This file contains any messages produced by compilers while
1489 running configure, to aid debugging if configure makes a mistake.
1490
1491 It was created by $as_me, which was
1492 generated by GNU Autoconf 2.61.  Invocation command line was
1493
1494   $ $0 $@
1495
1496 _ACEOF
1497 exec 5>>config.log
1498 {
1499 cat <<_ASUNAME
1500 ## --------- ##
1501 ## Platform. ##
1502 ## --------- ##
1503
1504 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1505 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1506 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1507 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1508 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509
1510 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1511 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1512
1513 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1514 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1515 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1516 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1517 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1518 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1519 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1520
1521 _ASUNAME
1522
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1525 do
1526   IFS=$as_save_IFS
1527   test -z "$as_dir" && as_dir=.
1528   echo "PATH: $as_dir"
1529 done
1530 IFS=$as_save_IFS
1531
1532 } >&5
1533
1534 cat >&5 <<_ACEOF
1535
1536
1537 ## ----------- ##
1538 ## Core tests. ##
1539 ## ----------- ##
1540
1541 _ACEOF
1542
1543
1544 # Keep a trace of the command line.
1545 # Strip out --no-create and --no-recursion so they do not pile up.
1546 # Strip out --silent because we don't want to record it for future runs.
1547 # Also quote any args containing shell meta-characters.
1548 # Make two passes to allow for proper duplicate-argument suppression.
1549 ac_configure_args=
1550 ac_configure_args0=
1551 ac_configure_args1=
1552 ac_must_keep_next=false
1553 for ac_pass in 1 2
1554 do
1555   for ac_arg
1556   do
1557     case $ac_arg in
1558     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1559     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1560     | -silent | --silent | --silen | --sile | --sil)
1561       continue ;;
1562     *\'*)
1563       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1564     esac
1565     case $ac_pass in
1566     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567     2)
1568       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1569       if test $ac_must_keep_next = true; then
1570         ac_must_keep_next=false # Got value, back to normal.
1571       else
1572         case $ac_arg in
1573           *=* | --config-cache | -C | -disable-* | --disable-* \
1574           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1575           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1576           | -with-* | --with-* | -without-* | --without-* | --x)
1577             case "$ac_configure_args0 " in
1578               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1579             esac
1580             ;;
1581           -* ) ac_must_keep_next=true ;;
1582         esac
1583       fi
1584       ac_configure_args="$ac_configure_args '$ac_arg'"
1585       ;;
1586     esac
1587   done
1588 done
1589 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1590 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591
1592 # When interrupted or exit'd, cleanup temporary files, and complete
1593 # config.log.  We remove comments because anyway the quotes in there
1594 # would cause problems or look ugly.
1595 # WARNING: Use '\'' to represent an apostrophe within the trap.
1596 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1597 trap 'exit_status=$?
1598   # Save into config.log some information that might help in debugging.
1599   {
1600     echo
1601
1602     cat <<\_ASBOX
1603 ## ---------------- ##
1604 ## Cache variables. ##
1605 ## ---------------- ##
1606 _ASBOX
1607     echo
1608     # The following way of writing the cache mishandles newlines in values,
1609 (
1610   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1611     eval ac_val=\$$ac_var
1612     case $ac_val in #(
1613     *${as_nl}*)
1614       case $ac_var in #(
1615       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1616 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1617       esac
1618       case $ac_var in #(
1619       _ | IFS | as_nl) ;; #(
1620       *) $as_unset $ac_var ;;
1621       esac ;;
1622     esac
1623   done
1624   (set) 2>&1 |
1625     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1626     *${as_nl}ac_space=\ *)
1627       sed -n \
1628         "s/'\''/'\''\\\\'\'''\''/g;
1629           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630       ;; #(
1631     *)
1632       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1633       ;;
1634     esac |
1635     sort
1636 )
1637     echo
1638
1639     cat <<\_ASBOX
1640 ## ----------------- ##
1641 ## Output variables. ##
1642 ## ----------------- ##
1643 _ASBOX
1644     echo
1645     for ac_var in $ac_subst_vars
1646     do
1647       eval ac_val=\$$ac_var
1648       case $ac_val in
1649       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650       esac
1651       echo "$ac_var='\''$ac_val'\''"
1652     done | sort
1653     echo
1654
1655     if test -n "$ac_subst_files"; then
1656       cat <<\_ASBOX
1657 ## ------------------- ##
1658 ## File substitutions. ##
1659 ## ------------------- ##
1660 _ASBOX
1661       echo
1662       for ac_var in $ac_subst_files
1663       do
1664         eval ac_val=\$$ac_var
1665         case $ac_val in
1666         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667         esac
1668         echo "$ac_var='\''$ac_val'\''"
1669       done | sort
1670       echo
1671     fi
1672
1673     if test -s confdefs.h; then
1674       cat <<\_ASBOX
1675 ## ----------- ##
1676 ## confdefs.h. ##
1677 ## ----------- ##
1678 _ASBOX
1679       echo
1680       cat confdefs.h
1681       echo
1682     fi
1683     test "$ac_signal" != 0 &&
1684       echo "$as_me: caught signal $ac_signal"
1685     echo "$as_me: exit $exit_status"
1686   } >&5
1687   rm -f core *.core core.conftest.* &&
1688     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1689     exit $exit_status
1690 ' 0
1691 for ac_signal in 1 2 13 15; do
1692   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1693 done
1694 ac_signal=0
1695
1696 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1697 rm -f -r conftest* confdefs.h
1698
1699 # Predefined preprocessor variables.
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_NAME "$PACKAGE_NAME"
1703 _ACEOF
1704
1705
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1708 _ACEOF
1709
1710
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1713 _ACEOF
1714
1715
1716 cat >>confdefs.h <<_ACEOF
1717 #define PACKAGE_STRING "$PACKAGE_STRING"
1718 _ACEOF
1719
1720
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1723 _ACEOF
1724
1725
1726 # Let the site file select an alternate cache file if it wants to.
1727 # Prefer explicitly selected file to automatically selected ones.
1728 if test -n "$CONFIG_SITE"; then
1729   set x "$CONFIG_SITE"
1730 elif test "x$prefix" != xNONE; then
1731   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732 else
1733   set x "$ac_default_prefix/share/config.site" \
1734         "$ac_default_prefix/etc/config.site"
1735 fi
1736 shift
1737 for ac_site_file
1738 do
1739   if test -r "$ac_site_file"; then
1740     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1741 echo "$as_me: loading site script $ac_site_file" >&6;}
1742     sed 's/^/| /' "$ac_site_file" >&5
1743     . "$ac_site_file"
1744   fi
1745 done
1746
1747 if test -r "$cache_file"; then
1748   # Some versions of bash will fail to source /dev/null (special
1749   # files actually), so we avoid doing that.
1750   if test -f "$cache_file"; then
1751     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1752 echo "$as_me: loading cache $cache_file" >&6;}
1753     case $cache_file in
1754       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1755       *)                      . "./$cache_file";;
1756     esac
1757   fi
1758 else
1759   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1760 echo "$as_me: creating cache $cache_file" >&6;}
1761   >$cache_file
1762 fi
1763
1764 # Check that the precious variables saved in the cache have kept the same
1765 # value.
1766 ac_cache_corrupted=false
1767 for ac_var in $ac_precious_vars; do
1768   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1769   eval ac_new_set=\$ac_env_${ac_var}_set
1770   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1771   eval ac_new_val=\$ac_env_${ac_var}_value
1772   case $ac_old_set,$ac_new_set in
1773     set,)
1774       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1775 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1776       ac_cache_corrupted=: ;;
1777     ,set)
1778       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1779 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1780       ac_cache_corrupted=: ;;
1781     ,);;
1782     *)
1783       if test "x$ac_old_val" != "x$ac_new_val"; then
1784         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1785 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1786         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1787 echo "$as_me:   former value:  $ac_old_val" >&2;}
1788         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1789 echo "$as_me:   current value: $ac_new_val" >&2;}
1790         ac_cache_corrupted=:
1791       fi;;
1792   esac
1793   # Pass precious variables to config.status.
1794   if test "$ac_new_set" = set; then
1795     case $ac_new_val in
1796     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1797     *) ac_arg=$ac_var=$ac_new_val ;;
1798     esac
1799     case " $ac_configure_args " in
1800       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1801       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802     esac
1803   fi
1804 done
1805 if $ac_cache_corrupted; then
1806   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1807 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1808   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1809 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1810    { (exit 1); exit 1; }; }
1811 fi
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829 ac_ext=c
1830 ac_cpp='$CPP $CPPFLAGS'
1831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834
1835
1836
1837 ac_aux_dir=
1838 for ac_dir in config "$srcdir"/config; do
1839   if test -f "$ac_dir/install-sh"; then
1840     ac_aux_dir=$ac_dir
1841     ac_install_sh="$ac_aux_dir/install-sh -c"
1842     break
1843   elif test -f "$ac_dir/install.sh"; then
1844     ac_aux_dir=$ac_dir
1845     ac_install_sh="$ac_aux_dir/install.sh -c"
1846     break
1847   elif test -f "$ac_dir/shtool"; then
1848     ac_aux_dir=$ac_dir
1849     ac_install_sh="$ac_aux_dir/shtool install -c"
1850     break
1851   fi
1852 done
1853 if test -z "$ac_aux_dir"; then
1854   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1855 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1856    { (exit 1); exit 1; }; }
1857 fi
1858
1859 # These three variables are undocumented and unsupported,
1860 # and are intended to be withdrawn in a future Autoconf release.
1861 # They can cause serious problems if a builder's source tree is in a directory
1862 # whose full name contains unusual characters.
1863 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1864 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1865 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1866
1867
1868 MCONFIG=./MCONFIG
1869
1870 BINARY_TYPE=bin
1871 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1872         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1873 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1874         | tr \" " "`
1875 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1876 MONTH=`echo $DATE | awk -F- '{print $2}'`
1877 YEAR=`echo $DATE | awk -F- '{print $3}'`
1878
1879 if expr $YEAR ">" 1900 > /dev/null ; then
1880         E2FSPROGS_YEAR=$YEAR
1881 elif expr $YEAR ">" 90 >/dev/null ; then
1882         E2FSPROGS_YEAR=19$YEAR
1883 else
1884         E2FSPROGS_YEAR=20$YEAR
1885 fi
1886
1887 case $MONTH in
1888 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1889 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1890 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1891 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1892 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1893 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1894 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1895 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1896 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1897 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1898 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1899 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1900 *)      echo "Unknown month $MONTH??" ;;
1901 esac
1902
1903 base_ver=`echo $E2FSPROGS_VERSION | \
1904                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1905
1906 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1907
1908 case $E2FSPROGS_VERSION in
1909 *-WIP|pre-*)
1910         pre_vers=`echo $base_ver 0.01 - p | dc`
1911         E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1912         ;;
1913 *)
1914         E2FSPROGS_PKGVER="$base_ver"
1915         ;;
1916 esac
1917
1918 unset DATE MONTH YEAR base_ver pre_vers date_spec
1919 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1920 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1921
1922
1923
1924
1925
1926 # Make sure we can run config.sub.
1927 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1928   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1929 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1930    { (exit 1); exit 1; }; }
1931
1932 { echo "$as_me:$LINENO: checking build system type" >&5
1933 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1934 if test "${ac_cv_build+set}" = set; then
1935   echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937   ac_build_alias=$build_alias
1938 test "x$ac_build_alias" = x &&
1939   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1940 test "x$ac_build_alias" = x &&
1941   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1942 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1943    { (exit 1); exit 1; }; }
1944 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1945   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1946 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1947    { (exit 1); exit 1; }; }
1948
1949 fi
1950 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1951 echo "${ECHO_T}$ac_cv_build" >&6; }
1952 case $ac_cv_build in
1953 *-*-*) ;;
1954 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1955 echo "$as_me: error: invalid value of canonical build" >&2;}
1956    { (exit 1); exit 1; }; };;
1957 esac
1958 build=$ac_cv_build
1959 ac_save_IFS=$IFS; IFS='-'
1960 set x $ac_cv_build
1961 shift
1962 build_cpu=$1
1963 build_vendor=$2
1964 shift; shift
1965 # Remember, the first character of IFS is used to create $*,
1966 # except with old shells:
1967 build_os=$*
1968 IFS=$ac_save_IFS
1969 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1970
1971
1972 { echo "$as_me:$LINENO: checking host system type" >&5
1973 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1974 if test "${ac_cv_host+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   if test "x$host_alias" = x; then
1978   ac_cv_host=$ac_cv_build
1979 else
1980   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1981     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1983    { (exit 1); exit 1; }; }
1984 fi
1985
1986 fi
1987 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1988 echo "${ECHO_T}$ac_cv_host" >&6; }
1989 case $ac_cv_host in
1990 *-*-*) ;;
1991 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1992 echo "$as_me: error: invalid value of canonical host" >&2;}
1993    { (exit 1); exit 1; }; };;
1994 esac
1995 host=$ac_cv_host
1996 ac_save_IFS=$IFS; IFS='-'
1997 set x $ac_cv_host
1998 shift
1999 host_cpu=$1
2000 host_vendor=$2
2001 shift; shift
2002 # Remember, the first character of IFS is used to create $*,
2003 # except with old shells:
2004 host_os=$*
2005 IFS=$ac_save_IFS
2006 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2007
2008
2009
2010 # Check whether --with-diet-libc was given.
2011 if test "${with_diet_libc+set}" = set; then
2012   withval=$with_diet_libc; CC="diet cc -nostdinc"
2013 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2014 echo "${ECHO_T}CC=$CC" >&6; }
2015 fi
2016
2017 # Check whether --with-cc was given.
2018 if test "${with_cc+set}" = set; then
2019   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2020 echo "${ECHO_T}CC=$withval" >&6; }
2021 CC=$withval
2022 else
2023   if test -z "$CC" ; then CC=cc; fi
2024 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2025 echo "${ECHO_T}CC defaults to $CC" >&6; }
2026 fi
2027 export CC
2028
2029 ac_ext=c
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 if test -n "$ac_tool_prefix"; then
2035   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test -n "$CC"; then
2043   ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2052     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058 IFS=$as_save_IFS
2059
2060 fi
2061 fi
2062 CC=$ac_cv_prog_CC
2063 if test -n "$CC"; then
2064   { echo "$as_me:$LINENO: result: $CC" >&5
2065 echo "${ECHO_T}$CC" >&6; }
2066 else
2067   { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2069 fi
2070
2071
2072 fi
2073 if test -z "$ac_cv_prog_CC"; then
2074   ac_ct_CC=$CC
2075   # Extract the first word of "gcc", so it can be a program name with args.
2076 set dummy gcc; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   if test -n "$ac_ct_CC"; then
2083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088   IFS=$as_save_IFS
2089   test -z "$as_dir" && as_dir=.
2090   for ac_exec_ext in '' $ac_executable_extensions; do
2091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092     ac_cv_prog_ac_ct_CC="gcc"
2093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094     break 2
2095   fi
2096 done
2097 done
2098 IFS=$as_save_IFS
2099
2100 fi
2101 fi
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6; }
2106 else
2107   { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2109 fi
2110
2111   if test "x$ac_ct_CC" = x; then
2112     CC=""
2113   else
2114     case $cross_compiling:$ac_tool_warned in
2115 yes:)
2116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2117 whose name does not start with the host triplet.  If you think this
2118 configuration is useful to you, please write to autoconf@gnu.org." >&5
2119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2120 whose name does not start with the host triplet.  If you think this
2121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2122 ac_tool_warned=yes ;;
2123 esac
2124     CC=$ac_ct_CC
2125   fi
2126 else
2127   CC="$ac_cv_prog_CC"
2128 fi
2129
2130 if test -z "$CC"; then
2131           if test -n "$ac_tool_prefix"; then
2132     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2133 set dummy ${ac_tool_prefix}cc; ac_word=$2
2134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137   echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139   if test -n "$CC"; then
2140   ac_cv_prog_CC="$CC" # Let the user override the test.
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145   IFS=$as_save_IFS
2146   test -z "$as_dir" && as_dir=.
2147   for ac_exec_ext in '' $ac_executable_extensions; do
2148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149     ac_cv_prog_CC="${ac_tool_prefix}cc"
2150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151     break 2
2152   fi
2153 done
2154 done
2155 IFS=$as_save_IFS
2156
2157 fi
2158 fi
2159 CC=$ac_cv_prog_CC
2160 if test -n "$CC"; then
2161   { echo "$as_me:$LINENO: result: $CC" >&5
2162 echo "${ECHO_T}$CC" >&6; }
2163 else
2164   { echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6; }
2166 fi
2167
2168
2169   fi
2170 fi
2171 if test -z "$CC"; then
2172   # Extract the first word of "cc", so it can be a program name with args.
2173 set dummy cc; ac_word=$2
2174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   if test -n "$CC"; then
2180   ac_cv_prog_CC="$CC" # Let the user override the test.
2181 else
2182   ac_prog_rejected=no
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186   IFS=$as_save_IFS
2187   test -z "$as_dir" && as_dir=.
2188   for ac_exec_ext in '' $ac_executable_extensions; do
2189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2191        ac_prog_rejected=yes
2192        continue
2193      fi
2194     ac_cv_prog_CC="cc"
2195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196     break 2
2197   fi
2198 done
2199 done
2200 IFS=$as_save_IFS
2201
2202 if test $ac_prog_rejected = yes; then
2203   # We found a bogon in the path, so make sure we never use it.
2204   set dummy $ac_cv_prog_CC
2205   shift
2206   if test $# != 0; then
2207     # We chose a different compiler from the bogus one.
2208     # However, it has the same basename, so the bogon will be chosen
2209     # first if we set CC to just the basename; use the full file name.
2210     shift
2211     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212   fi
2213 fi
2214 fi
2215 fi
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218   { echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6; }
2220 else
2221   { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2223 fi
2224
2225
2226 fi
2227 if test -z "$CC"; then
2228   if test -n "$ac_tool_prefix"; then
2229   for ac_prog in cl.exe
2230   do
2231     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2235 if test "${ac_cv_prog_CC+set}" = set; then
2236   echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238   if test -n "$CC"; then
2239   ac_cv_prog_CC="$CC" # Let the user override the test.
2240 else
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   for ac_exec_ext in '' $ac_executable_extensions; do
2247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254 IFS=$as_save_IFS
2255
2256 fi
2257 fi
2258 CC=$ac_cv_prog_CC
2259 if test -n "$CC"; then
2260   { echo "$as_me:$LINENO: result: $CC" >&5
2261 echo "${ECHO_T}$CC" >&6; }
2262 else
2263   { echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6; }
2265 fi
2266
2267
2268     test -n "$CC" && break
2269   done
2270 fi
2271 if test -z "$CC"; then
2272   ac_ct_CC=$CC
2273   for ac_prog in cl.exe
2274 do
2275   # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   if test -n "$ac_ct_CC"; then
2283   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290   for ac_exec_ext in '' $ac_executable_extensions; do
2291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292     ac_cv_prog_ac_ct_CC="$ac_prog"
2293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294     break 2
2295   fi
2296 done
2297 done
2298 IFS=$as_save_IFS
2299
2300 fi
2301 fi
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305 echo "${ECHO_T}$ac_ct_CC" >&6; }
2306 else
2307   { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2309 fi
2310
2311
2312   test -n "$ac_ct_CC" && break
2313 done
2314
2315   if test "x$ac_ct_CC" = x; then
2316     CC=""
2317   else
2318     case $cross_compiling:$ac_tool_warned in
2319 yes:)
2320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet.  If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&5
2323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2324 whose name does not start with the host triplet.  If you think this
2325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2326 ac_tool_warned=yes ;;
2327 esac
2328     CC=$ac_ct_CC
2329   fi
2330 fi
2331
2332 fi
2333
2334
2335 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: no acceptable C compiler found in \$PATH
2338 See \`config.log' for more details." >&2;}
2339    { (exit 1); exit 1; }; }
2340
2341 # Provide some information about the compiler.
2342 echo "$as_me:$LINENO: checking for C compiler version" >&5
2343 ac_compiler=`set X $ac_compile; echo $2`
2344 { (ac_try="$ac_compiler --version >&5"
2345 case "(($ac_try" in
2346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347   *) ac_try_echo=$ac_try;;
2348 esac
2349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350   (eval "$ac_compiler --version >&5") 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }
2354 { (ac_try="$ac_compiler -v >&5"
2355 case "(($ac_try" in
2356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357   *) ac_try_echo=$ac_try;;
2358 esac
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360   (eval "$ac_compiler -v >&5") 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }
2364 { (ac_try="$ac_compiler -V >&5"
2365 case "(($ac_try" in
2366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367   *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370   (eval "$ac_compiler -V >&5") 2>&5
2371   ac_status=$?
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); }
2374
2375 cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h.  */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h.  */
2381
2382 int
2383 main ()
2384 {
2385
2386   ;
2387   return 0;
2388 }
2389 _ACEOF
2390 ac_clean_files_save=$ac_clean_files
2391 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2392 # Try to create an executable without -o first, disregard a.out.
2393 # It will help us diagnose broken compilers, and finding out an intuition
2394 # of exeext.
2395 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2396 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2397 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2398 #
2399 # List of possible output files, starting from the most likely.
2400 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2401 # only as a last resort.  b.out is created by i960 compilers.
2402 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2403 #
2404 # The IRIX 6 linker writes into existing files which may not be
2405 # executable, retaining their permissions.  Remove them first so a
2406 # subsequent execution test works.
2407 ac_rmfiles=
2408 for ac_file in $ac_files
2409 do
2410   case $ac_file in
2411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2412     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2413   esac
2414 done
2415 rm -f $ac_rmfiles
2416
2417 if { (ac_try="$ac_link_default"
2418 case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423   (eval "$ac_link_default") 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; then
2427   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2428 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2429 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2430 # so that the user can short-circuit this test for compilers unknown to
2431 # Autoconf.
2432 for ac_file in $ac_files ''
2433 do
2434   test -f "$ac_file" || continue
2435   case $ac_file in
2436     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2437         ;;
2438     [ab].out )
2439         # We found the default executable, but exeext='' is most
2440         # certainly right.
2441         break;;
2442     *.* )
2443         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2444         then :; else
2445            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2446         fi
2447         # We set ac_cv_exeext here because the later test for it is not
2448         # safe: cross compilers may not add the suffix if given an `-o'
2449         # argument, so we may need to know it at that point already.
2450         # Even if this section looks crufty: it has the advantage of
2451         # actually working.
2452         break;;
2453     * )
2454         break;;
2455   esac
2456 done
2457 test "$ac_cv_exeext" = no && ac_cv_exeext=
2458
2459 else
2460   ac_file=''
2461 fi
2462
2463 { echo "$as_me:$LINENO: result: $ac_file" >&5
2464 echo "${ECHO_T}$ac_file" >&6; }
2465 if test -z "$ac_file"; then
2466   echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2468
2469 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: C compiler cannot create executables
2472 See \`config.log' for more details." >&2;}
2473    { (exit 77); exit 77; }; }
2474 fi
2475
2476 ac_exeext=$ac_cv_exeext
2477
2478 # Check that the compiler produces executables we can run.  If not, either
2479 # the compiler is broken, or we cross compile.
2480 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2481 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2482 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2483 # If not cross compiling, check that we can run a simple program.
2484 if test "$cross_compiling" != yes; then
2485   if { ac_try='./$ac_file'
2486   { (case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_try") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; }; then
2495     cross_compiling=no
2496   else
2497     if test "$cross_compiling" = maybe; then
2498         cross_compiling=yes
2499     else
2500         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2501 If you meant to cross compile, use \`--host'.
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: cannot run C compiled programs.
2504 If you meant to cross compile, use \`--host'.
2505 See \`config.log' for more details." >&2;}
2506    { (exit 1); exit 1; }; }
2507     fi
2508   fi
2509 fi
2510 { echo "$as_me:$LINENO: result: yes" >&5
2511 echo "${ECHO_T}yes" >&6; }
2512
2513 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2514 ac_clean_files=$ac_clean_files_save
2515 # Check that the compiler produces executables we can run.  If not, either
2516 # the compiler is broken, or we cross compile.
2517 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2518 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2519 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2520 echo "${ECHO_T}$cross_compiling" >&6; }
2521
2522 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2523 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2524 if { (ac_try="$ac_link"
2525 case "(($ac_try" in
2526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527   *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530   (eval "$ac_link") 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; then
2534   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2535 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2536 # work properly (i.e., refer to `conftest.exe'), while it won't with
2537 # `rm'.
2538 for ac_file in conftest.exe conftest conftest.*; do
2539   test -f "$ac_file" || continue
2540   case $ac_file in
2541     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2542     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2543           break;;
2544     * ) break;;
2545   esac
2546 done
2547 else
2548   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details." >&5
2550 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2551 See \`config.log' for more details." >&2;}
2552    { (exit 1); exit 1; }; }
2553 fi
2554
2555 rm -f conftest$ac_cv_exeext
2556 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2557 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2558
2559 rm -f conftest.$ac_ext
2560 EXEEXT=$ac_cv_exeext
2561 ac_exeext=$EXEEXT
2562 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2563 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2564 if test "${ac_cv_objext+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h.  */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h.  */
2573
2574 int
2575 main ()
2576 {
2577
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.o conftest.obj
2583 if { (ac_try="$ac_compile"
2584 case "(($ac_try" in
2585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586   *) ac_try_echo=$ac_try;;
2587 esac
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589   (eval "$ac_compile") 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; then
2593   for ac_file in conftest.o conftest.obj conftest.*; do
2594   test -f "$ac_file" || continue;
2595   case $ac_file in
2596     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2597     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2598        break;;
2599   esac
2600 done
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&2;}
2609    { (exit 1); exit 1; }; }
2610 fi
2611
2612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613 fi
2614 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615 echo "${ECHO_T}$ac_cv_objext" >&6; }
2616 OBJEXT=$ac_cv_objext
2617 ac_objext=$OBJEXT
2618 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629
2630 int
2631 main ()
2632 {
2633 #ifndef __GNUC__
2634        choke me
2635 #endif
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (ac_try="$ac_compile"
2643 case "(($ac_try" in
2644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645   *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648   (eval "$ac_compile") 2>conftest.er1
2649   ac_status=$?
2650   grep -v '^ *+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } && {
2655          test -z "$ac_c_werror_flag" ||
2656          test ! -s conftest.err
2657        } && test -s conftest.$ac_objext; then
2658   ac_compiler_gnu=yes
2659 else
2660   echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663         ac_compiler_gnu=no
2664 fi
2665
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2668
2669 fi
2670 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2671 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2672 GCC=`test $ac_compiler_gnu = yes && echo yes`
2673 ac_test_CFLAGS=${CFLAGS+set}
2674 ac_save_CFLAGS=$CFLAGS
2675 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2676 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_cc_g+set}" = set; then
2678   echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680   ac_save_c_werror_flag=$ac_c_werror_flag
2681    ac_c_werror_flag=yes
2682    ac_cv_prog_cc_g=no
2683    CFLAGS="-g"
2684    cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h.  */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h.  */
2690
2691 int
2692 main ()
2693 {
2694
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (ac_try="$ac_compile"
2701 case "(($ac_try" in
2702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703   *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706   (eval "$ac_compile") 2>conftest.er1
2707   ac_status=$?
2708   grep -v '^ *+' conftest.er1 >conftest.err
2709   rm -f conftest.er1
2710   cat conftest.err >&5
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } && {
2713          test -z "$ac_c_werror_flag" ||
2714          test ! -s conftest.err
2715        } && test -s conftest.$ac_objext; then
2716   ac_cv_prog_cc_g=yes
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721         CFLAGS=""
2722       cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728
2729 int
2730 main ()
2731 {
2732
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_compile") 2>conftest.er1
2745   ac_status=$?
2746   grep -v '^ *+' conftest.er1 >conftest.err
2747   rm -f conftest.er1
2748   cat conftest.err >&5
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); } && {
2751          test -z "$ac_c_werror_flag" ||
2752          test ! -s conftest.err
2753        } && test -s conftest.$ac_objext; then
2754   :
2755 else
2756   echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759         ac_c_werror_flag=$ac_save_c_werror_flag
2760          CFLAGS="-g"
2761          cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h.  */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h.  */
2767
2768 int
2769 main ()
2770 {
2771
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (ac_try="$ac_compile"
2778 case "(($ac_try" in
2779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780   *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783   (eval "$ac_compile") 2>conftest.er1
2784   ac_status=$?
2785   grep -v '^ *+' conftest.er1 >conftest.err
2786   rm -f conftest.er1
2787   cat conftest.err >&5
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } && {
2790          test -z "$ac_c_werror_flag" ||
2791          test ! -s conftest.err
2792        } && test -s conftest.$ac_objext; then
2793   ac_cv_prog_cc_g=yes
2794 else
2795   echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798
2799 fi
2800
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 fi
2803
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 fi
2806
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808    ac_c_werror_flag=$ac_save_c_werror_flag
2809 fi
2810 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2812 if test "$ac_test_CFLAGS" = set; then
2813   CFLAGS=$ac_save_CFLAGS
2814 elif test $ac_cv_prog_cc_g = yes; then
2815   if test "$GCC" = yes; then
2816     CFLAGS="-g -O2"
2817   else
2818     CFLAGS="-g"
2819   fi
2820 else
2821   if test "$GCC" = yes; then
2822     CFLAGS="-O2"
2823   else
2824     CFLAGS=
2825   fi
2826 fi
2827 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2828 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_cc_c89+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   ac_cv_prog_cc_c89=no
2833 ac_save_CC=$CC
2834 cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h.  */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h.  */
2840 #include <stdarg.h>
2841 #include <stdio.h>
2842 #include <sys/types.h>
2843 #include <sys/stat.h>
2844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2845 struct buf { int x; };
2846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847 static char *e (p, i)
2848      char **p;
2849      int i;
2850 {
2851   return p[i];
2852 }
2853 static char *f (char * (*g) (char **, int), char **p, ...)
2854 {
2855   char *s;
2856   va_list v;
2857   va_start (v,p);
2858   s = g (p, va_arg (v,int));
2859   va_end (v);
2860   return s;
2861 }
2862
2863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2864    function prototypes and stuff, but not '\xHH' hex character constants.
2865    These don't provoke an error unfortunately, instead are silently treated
2866    as 'x'.  The following induces an error, until -std is added to get
2867    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2868    array size at least.  It's necessary to write '\x00'==0 to get something
2869    that's true only with -std.  */
2870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871
2872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2873    inside strings and character constants.  */
2874 #define FOO(x) 'x'
2875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2876
2877 int test (int i, double x);
2878 struct s1 {int (*f) (int a);};
2879 struct s2 {int (*f) (double a);};
2880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881 int argc;
2882 char **argv;
2883 int
2884 main ()
2885 {
2886 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2887   ;
2888   return 0;
2889 }
2890 _ACEOF
2891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2892         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 do
2894   CC="$ac_save_CC $ac_arg"
2895   rm -f conftest.$ac_objext
2896 if { (ac_try="$ac_compile"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compile") 2>conftest.er1
2903   ac_status=$?
2904   grep -v '^ *+' conftest.er1 >conftest.err
2905   rm -f conftest.er1
2906   cat conftest.err >&5
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); } && {
2909          test -z "$ac_c_werror_flag" ||
2910          test ! -s conftest.err
2911        } && test -s conftest.$ac_objext; then
2912   ac_cv_prog_cc_c89=$ac_arg
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917
2918 fi
2919
2920 rm -f core conftest.err conftest.$ac_objext
2921   test "x$ac_cv_prog_cc_c89" != "xno" && break
2922 done
2923 rm -f conftest.$ac_ext
2924 CC=$ac_save_CC
2925
2926 fi
2927 # AC_CACHE_VAL
2928 case "x$ac_cv_prog_cc_c89" in
2929   x)
2930     { echo "$as_me:$LINENO: result: none needed" >&5
2931 echo "${ECHO_T}none needed" >&6; } ;;
2932   xno)
2933     { echo "$as_me:$LINENO: result: unsupported" >&5
2934 echo "${ECHO_T}unsupported" >&6; } ;;
2935   *)
2936     CC="$CC $ac_cv_prog_cc_c89"
2937     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2939 esac
2940
2941
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
2948 ac_ext=c
2949 ac_cpp='$CPP $CPPFLAGS'
2950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2954 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2955 # On Suns, sometimes $CPP names a directory.
2956 if test -n "$CPP" && test -d "$CPP"; then
2957   CPP=
2958 fi
2959 if test -z "$CPP"; then
2960   if test "${ac_cv_prog_CPP+set}" = set; then
2961   echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963       # Double quotes because CPP needs to be expanded
2964     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2965     do
2966       ac_preproc_ok=false
2967 for ac_c_preproc_warn_flag in '' yes
2968 do
2969   # Use a header file that comes with gcc, so configuring glibc
2970   # with a fresh cross-compiler works.
2971   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2972   # <limits.h> exists even on freestanding compilers.
2973   # On the NeXT, cc -E runs the code through the compiler's parser,
2974   # not just through cpp. "Syntax error" is here to catch this case.
2975   cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981 #ifdef __STDC__
2982 # include <limits.h>
2983 #else
2984 # include <assert.h>
2985 #endif
2986                      Syntax error
2987 _ACEOF
2988 if { (ac_try="$ac_cpp conftest.$ac_ext"
2989 case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } >/dev/null && {
3001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3002          test ! -s conftest.err
3003        }; then
3004   :
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009   # Broken: fails on valid input.
3010 continue
3011 fi
3012
3013 rm -f conftest.err conftest.$ac_ext
3014
3015   # OK, works on sane cases.  Now check whether nonexistent headers
3016   # can be detected and how.
3017   cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023 #include <ac_nonexistent.h>
3024 _ACEOF
3025 if { (ac_try="$ac_cpp conftest.$ac_ext"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } >/dev/null && {
3038          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3039          test ! -s conftest.err
3040        }; then
3041   # Broken: success on invalid input.
3042 continue
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047   # Passes both tests.
3048 ac_preproc_ok=:
3049 break
3050 fi
3051
3052 rm -f conftest.err conftest.$ac_ext
3053
3054 done
3055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056 rm -f conftest.err conftest.$ac_ext
3057 if $ac_preproc_ok; then
3058   break
3059 fi
3060
3061     done
3062     ac_cv_prog_CPP=$CPP
3063
3064 fi
3065   CPP=$ac_cv_prog_CPP
3066 else
3067   ac_cv_prog_CPP=$CPP
3068 fi
3069 { echo "$as_me:$LINENO: result: $CPP" >&5
3070 echo "${ECHO_T}$CPP" >&6; }
3071 ac_preproc_ok=false
3072 for ac_c_preproc_warn_flag in '' yes
3073 do
3074   # Use a header file that comes with gcc, so configuring glibc
3075   # with a fresh cross-compiler works.
3076   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077   # <limits.h> exists even on freestanding compilers.
3078   # On the NeXT, cc -E runs the code through the compiler's parser,
3079   # not just through cpp. "Syntax error" is here to catch this case.
3080   cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086 #ifdef __STDC__
3087 # include <limits.h>
3088 #else
3089 # include <assert.h>
3090 #endif
3091                      Syntax error
3092 _ACEOF
3093 if { (ac_try="$ac_cpp conftest.$ac_ext"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100   ac_status=$?
3101   grep -v '^ *+' conftest.er1 >conftest.err
3102   rm -f conftest.er1
3103   cat conftest.err >&5
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } >/dev/null && {
3106          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107          test ! -s conftest.err
3108        }; then
3109   :
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114   # Broken: fails on valid input.
3115 continue
3116 fi
3117
3118 rm -f conftest.err conftest.$ac_ext
3119
3120   # OK, works on sane cases.  Now check whether nonexistent headers
3121   # can be detected and how.
3122   cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128 #include <ac_nonexistent.h>
3129 _ACEOF
3130 if { (ac_try="$ac_cpp conftest.$ac_ext"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } >/dev/null && {
3143          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144          test ! -s conftest.err
3145        }; then
3146   # Broken: success on invalid input.
3147 continue
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152   # Passes both tests.
3153 ac_preproc_ok=:
3154 break
3155 fi
3156
3157 rm -f conftest.err conftest.$ac_ext
3158
3159 done
3160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161 rm -f conftest.err conftest.$ac_ext
3162 if $ac_preproc_ok; then
3163   :
3164 else
3165   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&5
3167 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3168 See \`config.log' for more details." >&2;}
3169    { (exit 1); exit 1; }; }
3170 fi
3171
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
3178
3179 # Check whether --with-linker was given.
3180 if test "${with_linker+set}" = set; then
3181   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3182 echo "${ECHO_T}LD=$withval" >&6; }
3183 LD=$withval
3184 else
3185   if test -z "$LD" ; then LD=$CC; fi
3186 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3187 echo "${ECHO_T}LD defaults to $LD" >&6; }
3188 fi
3189 export LD
3190
3191
3192 # Check whether --with-ccopts was given.
3193 if test "${with_ccopts+set}" = set; then
3194   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3195 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3196 CFLAGS=$withval
3197 fi
3198
3199
3200 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3201 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3202 if test "${ac_cv_path_GREP+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   # Extract the first word of "grep ggrep" to use in msg output
3206 if test -z "$GREP"; then
3207 set dummy grep ggrep; ac_prog_name=$2
3208 if test "${ac_cv_path_GREP+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   ac_path_GREP_found=false
3212 # Loop through the user's path and test for each of PROGNAME-LIST
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218   for ac_prog in grep ggrep; do
3219   for ac_exec_ext in '' $ac_executable_extensions; do
3220     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3221     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3222     # Check for GNU ac_path_GREP and select it if it is found.
3223   # Check for GNU $ac_path_GREP
3224 case `"$ac_path_GREP" --version 2>&1` in
3225 *GNU*)
3226   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3227 *)
3228   ac_count=0
3229   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3230   while :
3231   do
3232     cat "conftest.in" "conftest.in" >"conftest.tmp"
3233     mv "conftest.tmp" "conftest.in"
3234     cp "conftest.in" "conftest.nl"
3235     echo 'GREP' >> "conftest.nl"
3236     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3237     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3238     ac_count=`expr $ac_count + 1`
3239     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3240       # Best one so far, save it but keep looking for a better one
3241       ac_cv_path_GREP="$ac_path_GREP"
3242       ac_path_GREP_max=$ac_count
3243     fi
3244     # 10*(2^10) chars as input seems more than enough
3245     test $ac_count -gt 10 && break
3246   done
3247   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3248 esac
3249
3250
3251     $ac_path_GREP_found && break 3
3252   done
3253 done
3254
3255 done
3256 IFS=$as_save_IFS
3257
3258
3259 fi
3260
3261 GREP="$ac_cv_path_GREP"
3262 if test -z "$GREP"; then
3263   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3264 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3265    { (exit 1); exit 1; }; }
3266 fi
3267
3268 else
3269   ac_cv_path_GREP=$GREP
3270 fi
3271
3272
3273 fi
3274 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3275 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3276  GREP="$ac_cv_path_GREP"
3277
3278
3279 { echo "$as_me:$LINENO: checking for egrep" >&5
3280 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3281 if test "${ac_cv_path_EGREP+set}" = set; then
3282   echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3285    then ac_cv_path_EGREP="$GREP -E"
3286    else
3287      # Extract the first word of "egrep" to use in msg output
3288 if test -z "$EGREP"; then
3289 set dummy egrep; ac_prog_name=$2
3290 if test "${ac_cv_path_EGREP+set}" = set; then
3291   echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293   ac_path_EGREP_found=false
3294 # Loop through the user's path and test for each of PROGNAME-LIST
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300   for ac_prog in egrep; do
3301   for ac_exec_ext in '' $ac_executable_extensions; do
3302     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3303     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3304     # Check for GNU ac_path_EGREP and select it if it is found.
3305   # Check for GNU $ac_path_EGREP
3306 case `"$ac_path_EGREP" --version 2>&1` in
3307 *GNU*)
3308   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3309 *)
3310   ac_count=0
3311   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3312   while :
3313   do
3314     cat "conftest.in" "conftest.in" >"conftest.tmp"
3315     mv "conftest.tmp" "conftest.in"
3316     cp "conftest.in" "conftest.nl"
3317     echo 'EGREP' >> "conftest.nl"
3318     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320     ac_count=`expr $ac_count + 1`
3321     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3322       # Best one so far, save it but keep looking for a better one
3323       ac_cv_path_EGREP="$ac_path_EGREP"
3324       ac_path_EGREP_max=$ac_count
3325     fi
3326     # 10*(2^10) chars as input seems more than enough
3327     test $ac_count -gt 10 && break
3328   done
3329   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330 esac
3331
3332
3333     $ac_path_EGREP_found && break 3
3334   done
3335 done
3336
3337 done
3338 IFS=$as_save_IFS
3339
3340
3341 fi
3342
3343 EGREP="$ac_cv_path_EGREP"
3344 if test -z "$EGREP"; then
3345   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3347    { (exit 1); exit 1; }; }
3348 fi
3349
3350 else
3351   ac_cv_path_EGREP=$EGREP
3352 fi
3353
3354
3355    fi
3356 fi
3357 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3358 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3359  EGREP="$ac_cv_path_EGREP"
3360
3361
3362 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3363 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3364 if test "${ac_cv_header_stdc+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h.  */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h.  */
3373 #include <stdlib.h>
3374 #include <stdarg.h>
3375 #include <string.h>
3376 #include <float.h>
3377
3378 int
3379 main ()
3380 {
3381
3382   ;
3383   return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393   (eval "$ac_compile") 2>conftest.er1
3394   ac_status=$?
3395   grep -v '^ *+' conftest.er1 >conftest.err
3396   rm -f conftest.er1
3397   cat conftest.err >&5
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); } && {
3400          test -z "$ac_c_werror_flag" ||
3401          test ! -s conftest.err
3402        } && test -s conftest.$ac_objext; then
3403   ac_cv_header_stdc=yes
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408         ac_cv_header_stdc=no
3409 fi
3410
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412
3413 if test $ac_cv_header_stdc = yes; then
3414   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3415   cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421 #include <string.h>
3422
3423 _ACEOF
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425   $EGREP "memchr" >/dev/null 2>&1; then
3426   :
3427 else
3428   ac_cv_header_stdc=no
3429 fi
3430 rm -f conftest*
3431
3432 fi
3433
3434 if test $ac_cv_header_stdc = yes; then
3435   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3436   cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h.  */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h.  */
3442 #include <stdlib.h>
3443
3444 _ACEOF
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446   $EGREP "free" >/dev/null 2>&1; then
3447   :
3448 else
3449   ac_cv_header_stdc=no
3450 fi
3451 rm -f conftest*
3452
3453 fi
3454
3455 if test $ac_cv_header_stdc = yes; then
3456   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3457   if test "$cross_compiling" = yes; then
3458   :
3459 else
3460   cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466 #include <ctype.h>
3467 #include <stdlib.h>
3468 #if ((' ' & 0x0FF) == 0x020)
3469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3471 #else
3472 # define ISLOWER(c) \
3473                    (('a' <= (c) && (c) <= 'i') \
3474                      || ('j' <= (c) && (c) <= 'r') \
3475                      || ('s' <= (c) && (c) <= 'z'))
3476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3477 #endif
3478
3479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3480 int
3481 main ()
3482 {
3483   int i;
3484   for (i = 0; i < 256; i++)
3485     if (XOR (islower (i), ISLOWER (i))
3486         || toupper (i) != TOUPPER (i))
3487       return 2;
3488   return 0;
3489 }
3490 _ACEOF
3491 rm -f conftest$ac_exeext
3492 if { (ac_try="$ac_link"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498   (eval "$ac_link") 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3502   { (case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507   (eval "$ac_try") 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); }; }; then
3511   :
3512 else
3513   echo "$as_me: program exited with status $ac_status" >&5
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 ( exit $ac_status )
3518 ac_cv_header_stdc=no
3519 fi
3520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3521 fi
3522
3523
3524 fi
3525 fi
3526 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3527 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3528 if test $ac_cv_header_stdc = yes; then
3529
3530 cat >>confdefs.h <<\_ACEOF
3531 #define STDC_HEADERS 1
3532 _ACEOF
3533
3534 fi
3535
3536 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3547                   inttypes.h stdint.h unistd.h
3548 do
3549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h.  */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h.  */
3561 $ac_includes_default
3562
3563 #include <$ac_header>
3564 _ACEOF
3565 rm -f conftest.$ac_objext
3566 if { (ac_try="$ac_compile"
3567 case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572   (eval "$ac_compile") 2>conftest.er1
3573   ac_status=$?
3574   grep -v '^ *+' conftest.er1 >conftest.err
3575   rm -f conftest.er1
3576   cat conftest.err >&5
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); } && {
3579          test -z "$ac_c_werror_flag" ||
3580          test ! -s conftest.err
3581        } && test -s conftest.$ac_objext; then
3582   eval "$as_ac_Header=yes"
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587         eval "$as_ac_Header=no"
3588 fi
3589
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 fi
3592 ac_res=`eval echo '${'$as_ac_Header'}'`
3593                { echo "$as_me:$LINENO: result: $ac_res" >&5
3594 echo "${ECHO_T}$ac_res" >&6; }
3595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596   cat >>confdefs.h <<_ACEOF
3597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598 _ACEOF
3599
3600 fi
3601
3602 done
3603
3604
3605 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3606   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3607 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3608 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 fi
3611 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3612 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3613 else
3614   # Is the header compilable?
3615 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3616 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h.  */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h.  */
3623 $ac_includes_default
3624 #include <linux/fs.h>
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (ac_try="$ac_compile"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633   (eval "$ac_compile") 2>conftest.er1
3634   ac_status=$?
3635   grep -v '^ *+' conftest.er1 >conftest.err
3636   rm -f conftest.er1
3637   cat conftest.err >&5
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); } && {
3640          test -z "$ac_c_werror_flag" ||
3641          test ! -s conftest.err
3642        } && test -s conftest.$ac_objext; then
3643   ac_header_compiler=yes
3644 else
3645   echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648         ac_header_compiler=no
3649 fi
3650
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3653 echo "${ECHO_T}$ac_header_compiler" >&6; }
3654
3655 # Is the header present?
3656 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3657 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3658 cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h.  */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h.  */
3664 #include <linux/fs.h>
3665 _ACEOF
3666 if { (ac_try="$ac_cpp conftest.$ac_ext"
3667 case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3673   ac_status=$?
3674   grep -v '^ *+' conftest.er1 >conftest.err
3675   rm -f conftest.er1
3676   cat conftest.err >&5
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); } >/dev/null && {
3679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3680          test ! -s conftest.err
3681        }; then
3682   ac_header_preproc=yes
3683 else
3684   echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687   ac_header_preproc=no
3688 fi
3689
3690 rm -f conftest.err conftest.$ac_ext
3691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3692 echo "${ECHO_T}$ac_header_preproc" >&6; }
3693
3694 # So?  What about this header?
3695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3696   yes:no: )
3697     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3698 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3699     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3700 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3701     ac_header_preproc=yes
3702     ;;
3703   no:yes:* )
3704     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3705 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3706     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3707 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3708     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3709 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3710     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3711 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3712     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3713 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3714     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3715 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3716
3717     ;;
3718 esac
3719 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3720 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3721 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   ac_cv_header_linux_fs_h=$ac_header_preproc
3725 fi
3726 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3727 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3728
3729 fi
3730 if test $ac_cv_header_linux_fs_h = yes; then
3731   linux_headers=yes
3732 else
3733   linux_headers=no
3734 fi
3735
3736
3737 if test "$linux_headers" != yes; then
3738   LINUX_INCLUDE='-I$(top_builddir)/include'
3739 fi
3740
3741 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3742 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3743 if test "$GCC" = yes
3744 then
3745     case "$host_cpu" in
3746         alpha)          addcflags="-mieee" ;;
3747     esac
3748 fi
3749 if test "x$addcflags" != x
3750 then
3751     { echo "$as_me:$LINENO: result: $addcflags" >&5
3752 echo "${ECHO_T}$addcflags" >&6; }
3753     CFLAGS="$addcflags $CFLAGS"
3754 else
3755     { echo "$as_me:$LINENO: result: (none)" >&5
3756 echo "${ECHO_T}(none)" >&6; }
3757 fi
3758 LIB_EXT=.a
3759 STATIC_LIB_EXT=.a
3760 PROFILE_LIB_EXT=.a
3761
3762 # Check whether --with-ldopts was given.
3763 if test "${with_ldopts+set}" = set; then
3764   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3765 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3766 LDFLAGS=$withval
3767 else
3768   LDFLAGS=
3769 fi
3770
3771
3772 # Check whether --with-root-prefix was given.
3773 if test "${with_root_prefix+set}" = set; then
3774   withval=$with_root_prefix; root_prefix=$withval
3775 else
3776   root_prefix=NONE
3777 fi
3778 # Check whether --enable-maintainer-mode was given.
3779 if test "${enable_maintainer_mode+set}" = set; then
3780   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3781 then
3782         MAINTAINER_CMT=#
3783         echo "Disabling maintainer mode"
3784 else
3785         MAINTAINER_CMT=
3786         echo "Enabling maintainer mode"
3787 fi
3788
3789 else
3790   MAINTAINER_CMT=#
3791 echo "Disabling maintainer mode by default"
3792
3793 fi
3794
3795
3796 # Check whether --enable-compression was given.
3797 if test "${enable_compression+set}" = set; then
3798   enableval=$enable_compression; if test "$enableval" = "no"
3799 then
3800         echo "Disabling compression support"
3801 else
3802         cat >>confdefs.h <<\_ACEOF
3803 #define ENABLE_COMPRESSION 1
3804 _ACEOF
3805
3806         echo "Enabling compression support"
3807         echo "WARNING: Compression support is experimental"
3808 fi
3809
3810 else
3811   echo "Disabling compression support by default"
3812
3813 fi
3814
3815 # Check whether --enable-htree was given.
3816 if test "${enable_htree+set}" = set; then
3817   enableval=$enable_htree; if test "$enableval" = "no"
3818 then
3819         HTREE_CMT=#
3820         echo "Disabling htree directory support"
3821 else
3822         HTREE_CMT=
3823         cat >>confdefs.h <<\_ACEOF
3824 #define ENABLE_HTREE 1
3825 _ACEOF
3826
3827         echo "Enabling htree directory support"
3828 fi
3829
3830 else
3831   HTREE_CMT=
3832 cat >>confdefs.h <<\_ACEOF
3833 #define ENABLE_HTREE 1
3834 _ACEOF
3835
3836 echo "Enabling htree directory support by default"
3837
3838 fi
3839
3840
3841 E2_PKG_CONFIG_STATIC=--static
3842 # Check whether --enable-elf-shlibs was given.
3843 if test "${enable_elf_shlibs+set}" = set; then
3844   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3845 then
3846         ELF_CMT=#
3847         MAKEFILE_ELF=/dev/null
3848         echo "Disabling ELF shared libraries"
3849 else
3850         E2_PKG_CONFIG_STATIC=
3851         ELF_CMT=
3852         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3853         case "$host_os" in
3854         solaris2.*)
3855                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3856         ;;
3857         esac
3858         BINARY_TYPE=elfbin
3859         LIB_EXT=.so
3860         echo "Enabling ELF shared libraries"
3861 fi
3862
3863 else
3864   MAKEFILE_ELF=/dev/null
3865 ELF_CMT=#
3866 echo "Disabling ELF shared libraries by default"
3867
3868 fi
3869
3870
3871
3872 # Check whether --enable-bsd-shlibs was given.
3873 if test "${enable_bsd_shlibs+set}" = set; then
3874   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3875 then
3876         BSDLIB_CMT=#
3877         MAKEFILE_BSDLIB=/dev/null
3878         echo "Disabling BSD shared libraries"
3879 else
3880         E2_PKG_CONFIG_STATIC=
3881         BSDLIB_CMT=
3882         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3883         LIB_EXT=.so
3884         case "$host_os" in
3885         darwin*)
3886                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3887                 LIB_EXT=.dylib
3888         ;;
3889         esac
3890         echo "Enabling BSD shared libraries"
3891 fi
3892
3893 else
3894   MAKEFILE_BSDLIB=/dev/null
3895 BSDLIB_CMT=#
3896 echo "Disabling BSD shared libraries by default"
3897
3898 fi
3899
3900
3901
3902 # Check whether --enable-profile was given.
3903 if test "${enable_profile+set}" = set; then
3904   enableval=$enable_profile; if test "$enableval" = "no"
3905 then
3906         PROFILE_CMT=#
3907         MAKEFILE_PROFILE=/dev/null
3908         echo "Disabling profiling libraries"
3909 else
3910         PROFILE_CMT=
3911         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3912         PROFILED_LIB_EXT=_p.a
3913         echo "Building profiling libraries"
3914 fi
3915
3916 else
3917   PROFILE_CMT=#
3918 MAKEFILE_PROFILE=/dev/null
3919 echo "Disabling profiling libraries by default"
3920
3921 fi
3922
3923
3924
3925 # Check whether --enable-checker was given.
3926 if test "${enable_checker+set}" = set; then
3927   enableval=$enable_checker; if test "$enableval" = "no"
3928 then
3929         CHECKER_CMT=#
3930         MAKEFILE_CHECKER=/dev/null
3931         echo "Disabling checker libraries"
3932 else
3933         CHECKER_CMT=
3934         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3935         echo "Building checker libraries"
3936 fi
3937
3938 else
3939   CHECKER_CMT=#
3940 MAKEFILE_CHECKER=/dev/null
3941 echo "Disabling checker libraries by default"
3942
3943 fi
3944
3945
3946
3947
3948
3949
3950 # Check whether --enable-jbd-debug was given.
3951 if test "${enable_jbd_debug+set}" = set; then
3952   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3953 then
3954         echo "Disabling journal debugging"
3955 else
3956         cat >>confdefs.h <<\_ACEOF
3957 #define CONFIG_JBD_DEBUG 1
3958 _ACEOF
3959
3960         echo "Enabling journal debugging"
3961 fi
3962
3963 else
3964   echo "Disabling journal debugging by default"
3965
3966 fi
3967
3968 # Check whether --enable-blkid-debug was given.
3969 if test "${enable_blkid_debug+set}" = set; then
3970   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3971 then
3972         echo "Disabling blkid debugging"
3973 else
3974         cat >>confdefs.h <<\_ACEOF
3975 #define CONFIG_BLKID_DEBUG 1
3976 _ACEOF
3977
3978         echo "Enabling blkid debugging"
3979 fi
3980
3981 else
3982   echo "Disabling blkid debugging by default"
3983
3984 fi
3985
3986 # Check whether --enable-testio-debug was given.
3987 if test "${enable_testio_debug+set}" = set; then
3988   enableval=$enable_testio_debug; if test "$enableval" = "no"
3989 then
3990         echo "Disabling testio debugging"
3991 else
3992         cat >>confdefs.h <<\_ACEOF
3993 #define CONFIG_TESTIO_DEBUG 1
3994 _ACEOF
3995
3996         echo "Enabling testio debugging"
3997 fi
3998
3999 else
4000   echo "Disabling testio debugging by default"
4001
4002 fi
4003
4004 # Check whether --enable-swapfs was given.
4005 if test "${enable_swapfs+set}" = set; then
4006   enableval=$enable_swapfs; if test "$enableval" = "no"
4007 then
4008         SWAPFS_CMT=#
4009         echo "Disabling swapfs support"
4010 else
4011         SWAPFS_CMT=
4012         cat >>confdefs.h <<\_ACEOF
4013 #define ENABLE_SWAPFS 1
4014 _ACEOF
4015
4016         echo "Enabling swapfs support"
4017 fi
4018
4019 else
4020   SWAPFS_CMT=
4021 echo "Enabling swapfs support by default"
4022 cat >>confdefs.h <<\_ACEOF
4023 #define ENABLE_SWAPFS 1
4024 _ACEOF
4025
4026
4027 fi
4028
4029
4030 # Check whether --enable-debugfs was given.
4031 if test "${enable_debugfs+set}" = set; then
4032   enableval=$enable_debugfs; if test "$enableval" = "no"
4033 then
4034         echo "Disabling debugfs support"
4035         DEBUGFS_CMT="#"
4036 else
4037         DEBUGFS_CMT=
4038         echo "Enabling debugfs support"
4039 fi
4040
4041 else
4042   echo "Enabling debugfs support by default"
4043 DEBUGFS_CMT=
4044
4045 fi
4046
4047
4048 # Check whether --enable-imager was given.
4049 if test "${enable_imager+set}" = set; then
4050   enableval=$enable_imager; if test "$enableval" = "no"
4051 then
4052         echo "Disabling e2image support"
4053         IMAGER_CMT="#"
4054 else
4055         IMAGER_CMT=
4056         echo "Enabling e2image support"
4057 fi
4058
4059 else
4060   echo "Enabling e2image support by default"
4061 IMAGER_CMT=
4062
4063 fi
4064
4065
4066 # Check whether --enable-resizer was given.
4067 if test "${enable_resizer+set}" = set; then
4068   enableval=$enable_resizer; if test "$enableval" = "no"
4069 then
4070         echo "Disabling e2resize support"
4071         RESIZER_CMT="#"
4072 else
4073         RESIZER_CMT=
4074         echo "Enabling e2resize support"
4075 fi
4076
4077 else
4078   echo "Enabling e2resize support by default"
4079 RESIZER_CMT=
4080
4081 fi
4082
4083
4084 # Check whether --enable-fsck was given.
4085 if test "${enable_fsck+set}" = set; then
4086   enableval=$enable_fsck; if test "$enableval" = "no"
4087 then
4088         FSCK_PROG='' FSCK_MAN=''
4089         echo "Not building fsck wrapper"
4090 else
4091         FSCK_PROG=fsck FSCK_MAN=fsck.8
4092         echo "Building fsck wrapper"
4093 fi
4094
4095 else
4096   case "$host_os" in
4097   gnu*)
4098     FSCK_PROG='' FSCK_MAN=''
4099     echo "Not building fsck wrapper by default"
4100     ;;
4101   *)
4102     FSCK_PROG=fsck FSCK_MAN=fsck.8
4103     echo "Building fsck wrapper by default"
4104 esac
4105
4106 fi
4107
4108
4109
4110 # Check whether --enable-e2initrd-helper was given.
4111 if test "${enable_e2initrd_helper+set}" = set; then
4112   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4113 then
4114         E2INITRD_PROG='' E2INITRD_MAN=''
4115         echo "Not building e2initrd helper"
4116 else
4117         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4118         echo "Building e2initrd helper"
4119 fi
4120
4121 else
4122   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4123 echo "Building e2initrd helper by default"
4124
4125 fi
4126
4127
4128
4129 STATIC_BLKID_DEVMAPPER_LIBS=''
4130 # Check whether --enable-blkid-devmapper was given.
4131 if test "${enable_blkid_devmapper+set}" = set; then
4132   enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4133 then
4134         echo "Disabling device-mapper support"
4135         DEVMAPPER_REQ=''
4136         DEVMAPPER_LIBS=''
4137         STATIC_DEVMAPPER_LIBS=''
4138 else
4139         cat >>confdefs.h <<\_ACEOF
4140 #define HAVE_DEVMAPPER 1
4141 _ACEOF
4142
4143         echo "Enabling device-mapper support"
4144
4145
4146
4147 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4148         if test -n "$ac_tool_prefix"; then
4149   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   case $PKG_CONFIG in
4157   [\\/]* | ?:[\\/]*)
4158   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4159   ;;
4160   *)
4161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164   IFS=$as_save_IFS
4165   test -z "$as_dir" && as_dir=.
4166   for ac_exec_ext in '' $ac_executable_extensions; do
4167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170     break 2
4171   fi
4172 done
4173 done
4174 IFS=$as_save_IFS
4175
4176   ;;
4177 esac
4178 fi
4179 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4180 if test -n "$PKG_CONFIG"; then
4181   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4182 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4183 else
4184   { echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6; }
4186 fi
4187
4188
4189 fi
4190 if test -z "$ac_cv_path_PKG_CONFIG"; then
4191   ac_pt_PKG_CONFIG=$PKG_CONFIG
4192   # Extract the first word of "pkg-config", so it can be a program name with args.
4193 set dummy pkg-config; ac_word=$2
4194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4196 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4197   echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199   case $ac_pt_PKG_CONFIG in
4200   [\\/]* | ?:[\\/]*)
4201   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4202   ;;
4203   *)
4204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207   IFS=$as_save_IFS
4208   test -z "$as_dir" && as_dir=.
4209   for ac_exec_ext in '' $ac_executable_extensions; do
4210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213     break 2
4214   fi
4215 done
4216 done
4217 IFS=$as_save_IFS
4218
4219   ;;
4220 esac
4221 fi
4222 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4223 if test -n "$ac_pt_PKG_CONFIG"; then
4224   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4225 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4226 else
4227   { echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6; }
4229 fi
4230
4231   if test "x$ac_pt_PKG_CONFIG" = x; then
4232     PKG_CONFIG=""
4233   else
4234     case $cross_compiling:$ac_tool_warned in
4235 yes:)
4236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4237 whose name does not start with the host triplet.  If you think this
4238 configuration is useful to you, please write to autoconf@gnu.org." >&5
4239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4240 whose name does not start with the host triplet.  If you think this
4241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4242 ac_tool_warned=yes ;;
4243 esac
4244     PKG_CONFIG=$ac_pt_PKG_CONFIG
4245   fi
4246 else
4247   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4248 fi
4249
4250 fi
4251 if test -n "$PKG_CONFIG"; then
4252         _pkg_min_version=0.9.0
4253         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4254 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4255         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4256                 { echo "$as_me:$LINENO: result: yes" >&5
4257 echo "${ECHO_T}yes" >&6; }
4258         else
4259                 { echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6; }
4261                 PKG_CONFIG=""
4262         fi
4263
4264 fi
4265
4266         if test -z "$PKG_CONFIG"; then
4267                 echo "pkg-config not installed; please install it."
4268                 exit 1;
4269         fi
4270
4271         { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4272 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4273 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   ac_check_lib_save_LIBS=$LIBS
4277 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4278 cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284
4285 /* Override any GCC internal prototype to avoid an error.
4286    Use char because int might match the return type of a GCC
4287    builtin and then its argument prototype would still apply.  */
4288 #ifdef __cplusplus
4289 extern "C"
4290 #endif
4291 char dm_tree_create ();
4292 int
4293 main ()
4294 {
4295 return dm_tree_create ();
4296   ;
4297   return 0;
4298 }
4299 _ACEOF
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (ac_try="$ac_link"
4302 case "(($ac_try" in
4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304   *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307   (eval "$ac_link") 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } && {
4314          test -z "$ac_c_werror_flag" ||
4315          test ! -s conftest.err
4316        } && test -s conftest$ac_exeext &&
4317        $as_test_x conftest$ac_exeext; then
4318   ac_cv_lib_devmapper_dm_tree_create=yes
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323         ac_cv_lib_devmapper_dm_tree_create=no
4324 fi
4325
4326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4327       conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_check_lib_save_LIBS
4329 fi
4330 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4331 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4332 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4333   DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4334                  STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4335                  DEVMAPPER_REQ="devmapper";
4336                  DEVMAPPER_PC_LIBS="-ldevmapper"
4337 else
4338   { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4339 echo "$as_me: error: device-mapper library not found" >&2;}
4340    { (exit 1); exit 1; }; }
4341 fi
4342
4343         # work around stupid devmapper.pc bug in Debian
4344         case "$STATIC_DEVMAPPER_LIBS" in
4345         *pthread*)
4346             ;;
4347         *)
4348             echo "Working around Debian bug #390243..."
4349             STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4350             ;;
4351         esac
4352         if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4353             DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4354             STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4355         fi
4356 fi
4357
4358 else
4359   echo "Disabling device-mapper support by default"
4360
4361 fi
4362
4363
4364
4365
4366
4367
4368 # Check whether --enable-tls was given.
4369 if test "${enable_tls+set}" = set; then
4370   enableval=$enable_tls; if test "$enableval" = "no"
4371 then
4372         try_tls=""
4373         echo "Disabling thread local support"
4374 else
4375         try_tls="yes"
4376         echo "Enabling thread local support"
4377 fi
4378
4379 else
4380   try_tls="yes"
4381 echo "Try using thread local support by default"
4382
4383 fi
4384
4385 if test "$try_tls" = "yes"
4386 then
4387
4388   { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4389 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4390   if test "${ac_cv_tls+set}" = set; then
4391   echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393
4394     ax_tls_keywords="__thread __declspec(thread) none"
4395     for ax_tls_keyword in $ax_tls_keywords; do
4396        case $ax_tls_keyword in
4397           none) ac_cv_tls=none ; break ;;
4398           *)
4399              cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405 #include <stdlib.h>
4406                  static void
4407                  foo(void) {
4408                  static  $ax_tls_keyword  int bar;
4409                  exit(1);
4410                  }
4411 int
4412 main ()
4413 {
4414
4415   ;
4416   return 0;
4417 }
4418 _ACEOF
4419 rm -f conftest.$ac_objext
4420 if { (ac_try="$ac_compile"
4421 case "(($ac_try" in
4422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423   *) ac_try_echo=$ac_try;;
4424 esac
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426   (eval "$ac_compile") 2>conftest.er1
4427   ac_status=$?
4428   grep -v '^ *+' conftest.er1 >conftest.err
4429   rm -f conftest.er1
4430   cat conftest.err >&5
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } && {
4433          test -z "$ac_c_werror_flag" ||
4434          test ! -s conftest.err
4435        } && test -s conftest.$ac_objext; then
4436   ac_cv_tls=$ax_tls_keyword ; break
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441         ac_cv_tls=none
4442
4443 fi
4444
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446           esac
4447     done
4448
4449 fi
4450
4451
4452   if test "$ac_cv_tls" != "none"; then
4453
4454 cat >>confdefs.h <<_ACEOF
4455 #define TLS $ac_cv_tls
4456 _ACEOF
4457
4458   fi
4459   { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4460 echo "${ECHO_T}$ac_cv_tls" >&6; }
4461
4462 fi
4463 # Check whether --enable-uuidd was given.
4464 if test "${enable_uuidd+set}" = set; then
4465   enableval=$enable_uuidd; if test "$enableval" = "no"
4466 then
4467         echo "Not building uuidd"
4468         UUIDD_CMT="#"
4469 else
4470         cat >>confdefs.h <<\_ACEOF
4471 #define USE_UUIDD 1
4472 _ACEOF
4473
4474         UUIDD_CMT=""
4475         echo "Building uuidd"
4476 fi
4477
4478 else
4479   cat >>confdefs.h <<\_ACEOF
4480 #define USE_UUIDD 1
4481 _ACEOF
4482
4483 UUIDD_CMT=""
4484 echo "Building uuidd by default"
4485
4486 fi
4487
4488
4489 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4490
4491 GETTEXT_PACKAGE=e2fsprogs
4492 PACKAGE=e2fsprogs
4493 VERSION="$E2FSPROGS_VERSION"
4494 VERSION=0.14.1
4495 cat >>confdefs.h <<_ACEOF
4496 #define PACKAGE "$PACKAGE"
4497 _ACEOF
4498
4499 cat >>confdefs.h <<_ACEOF
4500 #define VERSION "$VERSION"
4501 _ACEOF
4502
4503
4504
4505
4506
4507 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4508 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4509 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4510 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   cat >conftest.make <<\_ACEOF
4514 SHELL = /bin/sh
4515 all:
4516         @echo '@@@%%%=$(MAKE)=@@@%%%'
4517 _ACEOF
4518 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4519 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4520   *@@@%%%=?*=@@@%%%*)
4521     eval ac_cv_prog_make_${ac_make}_set=yes;;
4522   *)
4523     eval ac_cv_prog_make_${ac_make}_set=no;;
4524 esac
4525 rm -f conftest.make
4526 fi
4527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4528   { echo "$as_me:$LINENO: result: yes" >&5
4529 echo "${ECHO_T}yes" >&6; }
4530   SET_MAKE=
4531 else
4532   { echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6; }
4534   SET_MAKE="MAKE=${MAKE-make}"
4535 fi
4536
4537 # Find a good install program.  We prefer a C program (faster),
4538 # so one script is as good as another.  But avoid the broken or
4539 # incompatible versions:
4540 # SysV /etc/install, /usr/sbin/install
4541 # SunOS /usr/etc/install
4542 # IRIX /sbin/install
4543 # AIX /bin/install
4544 # AmigaOS /C/install, which installs bootblocks on floppy discs
4545 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4546 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4547 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4548 # OS/2's system install, which has a completely different semantic
4549 # ./install, which can be erroneously created by make from ./install.sh.
4550 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4551 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4552 if test -z "$INSTALL"; then
4553 if test "${ac_cv_path_install+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561   # Account for people who put trailing slashes in PATH elements.
4562 case $as_dir/ in
4563   ./ | .// | /cC/* | \
4564   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4565   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4566   /usr/ucb/* ) ;;
4567   *)
4568     # OSF1 and SCO ODT 3.0 have their own names for install.
4569     # Don't use installbsd from OSF since it installs stuff as root
4570     # by default.
4571     for ac_prog in ginstall scoinst install; do
4572       for ac_exec_ext in '' $ac_executable_extensions; do
4573         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4574           if test $ac_prog = install &&
4575             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4576             # AIX install.  It has an incompatible calling convention.
4577             :
4578           elif test $ac_prog = install &&
4579             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4580             # program-specific install script used by HP pwplus--don't use.
4581             :
4582           else
4583             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4584             break 3
4585           fi
4586         fi
4587       done
4588     done
4589     ;;
4590 esac
4591 done
4592 IFS=$as_save_IFS
4593
4594
4595 fi
4596   if test "${ac_cv_path_install+set}" = set; then
4597     INSTALL=$ac_cv_path_install
4598   else
4599     # As a last resort, use the slow shell script.  Don't cache a
4600     # value for INSTALL within a source directory, because that will
4601     # break other packages using the cache if that directory is
4602     # removed, or if the value is a relative name.
4603     INSTALL=$ac_install_sh
4604   fi
4605 fi
4606 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4607 echo "${ECHO_T}$INSTALL" >&6; }
4608
4609 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4610 # It thinks the first close brace ends the variable substitution.
4611 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4612
4613 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4614
4615 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4616
4617
4618         MKINSTALLDIRS=
4619   if test -n "$ac_aux_dir"; then
4620     case "$ac_aux_dir" in
4621       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4622       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4623     esac
4624   fi
4625   if test -z "$MKINSTALLDIRS"; then
4626     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4627   fi
4628
4629
4630
4631   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4632 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4633     # Check whether --enable-nls was given.
4634 if test "${enable_nls+set}" = set; then
4635   enableval=$enable_nls; USE_NLS=$enableval
4636 else
4637   USE_NLS=yes
4638 fi
4639
4640   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4641 echo "${ECHO_T}$USE_NLS" >&6; }
4642
4643
4644
4645
4646
4647
4648 # Prepare PATH_SEPARATOR.
4649 # The user is always right.
4650 if test "${PATH_SEPARATOR+set}" != set; then
4651   echo "#! /bin/sh" >conf$$.sh
4652   echo  "exit 0"   >>conf$$.sh
4653   chmod +x conf$$.sh
4654   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4655     PATH_SEPARATOR=';'
4656   else
4657     PATH_SEPARATOR=:
4658   fi
4659   rm -f conf$$.sh
4660 fi
4661
4662 # Find out how to test for executable files. Don't use a zero-byte file,
4663 # as systems may use methods other than mode bits to determine executability.
4664 cat >conf$$.file <<_ASEOF
4665 #! /bin/sh
4666 exit 0
4667 _ASEOF
4668 chmod +x conf$$.file
4669 if test -x conf$$.file >/dev/null 2>&1; then
4670   ac_executable_p="test -x"
4671 else
4672   ac_executable_p="test -f"
4673 fi
4674 rm -f conf$$.file
4675
4676 # Extract the first word of "msgfmt", so it can be a program name with args.
4677 set dummy msgfmt; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_path_MSGFMT+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   case "$MSGFMT" in
4684   [\\/]* | ?:[\\/]*)
4685     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4686     ;;
4687   *)
4688     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4689     for ac_dir in $PATH; do
4690       IFS="$ac_save_IFS"
4691       test -z "$ac_dir" && ac_dir=.
4692       for ac_exec_ext in '' $ac_executable_extensions; do
4693         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4694           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4695      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4696             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4697             break 2
4698           fi
4699         fi
4700       done
4701     done
4702     IFS="$ac_save_IFS"
4703   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4704     ;;
4705 esac
4706 fi
4707 MSGFMT="$ac_cv_path_MSGFMT"
4708 if test "$MSGFMT" != ":"; then
4709   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4710 echo "${ECHO_T}$MSGFMT" >&6; }
4711 else
4712   { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4714 fi
4715
4716   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4717 set dummy gmsgfmt; ac_word=$2
4718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   case $GMSGFMT in
4724   [\\/]* | ?:[\\/]*)
4725   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4726   ;;
4727   *)
4728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731   IFS=$as_save_IFS
4732   test -z "$as_dir" && as_dir=.
4733   for ac_exec_ext in '' $ac_executable_extensions; do
4734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737     break 2
4738   fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4744   ;;
4745 esac
4746 fi
4747 GMSGFMT=$ac_cv_path_GMSGFMT
4748 if test -n "$GMSGFMT"; then
4749   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4750 echo "${ECHO_T}$GMSGFMT" >&6; }
4751 else
4752   { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4754 fi
4755
4756
4757
4758
4759 # Prepare PATH_SEPARATOR.
4760 # The user is always right.
4761 if test "${PATH_SEPARATOR+set}" != set; then
4762   echo "#! /bin/sh" >conf$$.sh
4763   echo  "exit 0"   >>conf$$.sh
4764   chmod +x conf$$.sh
4765   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4766     PATH_SEPARATOR=';'
4767   else
4768     PATH_SEPARATOR=:
4769   fi
4770   rm -f conf$$.sh
4771 fi
4772
4773 # Find out how to test for executable files. Don't use a zero-byte file,
4774 # as systems may use methods other than mode bits to determine executability.
4775 cat >conf$$.file <<_ASEOF
4776 #! /bin/sh
4777 exit 0
4778 _ASEOF
4779 chmod +x conf$$.file
4780 if test -x conf$$.file >/dev/null 2>&1; then
4781   ac_executable_p="test -x"
4782 else
4783   ac_executable_p="test -f"
4784 fi
4785 rm -f conf$$.file
4786
4787 # Extract the first word of "xgettext", so it can be a program name with args.
4788 set dummy xgettext; ac_word=$2
4789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4791 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4792   echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794   case "$XGETTEXT" in
4795   [\\/]* | ?:[\\/]*)
4796     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4797     ;;
4798   *)
4799     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4800     for ac_dir in $PATH; do
4801       IFS="$ac_save_IFS"
4802       test -z "$ac_dir" && ac_dir=.
4803       for ac_exec_ext in '' $ac_executable_extensions; do
4804         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4805           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4806      (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
4807             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4808             break 2
4809           fi
4810         fi
4811       done
4812     done
4813     IFS="$ac_save_IFS"
4814   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4815     ;;
4816 esac
4817 fi
4818 XGETTEXT="$ac_cv_path_XGETTEXT"
4819 if test "$XGETTEXT" != ":"; then
4820   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4821 echo "${ECHO_T}$XGETTEXT" >&6; }
4822 else
4823   { echo "$as_me:$LINENO: result: no" >&5
4824 echo "${ECHO_T}no" >&6; }
4825 fi
4826
4827     rm -f messages.po
4828
4829
4830 # Prepare PATH_SEPARATOR.
4831 # The user is always right.
4832 if test "${PATH_SEPARATOR+set}" != set; then
4833   echo "#! /bin/sh" >conf$$.sh
4834   echo  "exit 0"   >>conf$$.sh
4835   chmod +x conf$$.sh
4836   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4837     PATH_SEPARATOR=';'
4838   else
4839     PATH_SEPARATOR=:
4840   fi
4841   rm -f conf$$.sh
4842 fi
4843
4844 # Find out how to test for executable files. Don't use a zero-byte file,
4845 # as systems may use methods other than mode bits to determine executability.
4846 cat >conf$$.file <<_ASEOF
4847 #! /bin/sh
4848 exit 0
4849 _ASEOF
4850 chmod +x conf$$.file
4851 if test -x conf$$.file >/dev/null 2>&1; then
4852   ac_executable_p="test -x"
4853 else
4854   ac_executable_p="test -f"
4855 fi
4856 rm -f conf$$.file
4857
4858 # Extract the first word of "msgmerge", so it can be a program name with args.
4859 set dummy msgmerge; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   case "$MSGMERGE" in
4866   [\\/]* | ?:[\\/]*)
4867     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4868     ;;
4869   *)
4870     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4871     for ac_dir in $PATH; do
4872       IFS="$ac_save_IFS"
4873       test -z "$ac_dir" && ac_dir=.
4874       for ac_exec_ext in '' $ac_executable_extensions; do
4875         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4876           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4877             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4878             break 2
4879           fi
4880         fi
4881       done
4882     done
4883     IFS="$ac_save_IFS"
4884   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4885     ;;
4886 esac
4887 fi
4888 MSGMERGE="$ac_cv_path_MSGMERGE"
4889 if test "$MSGMERGE" != ":"; then
4890   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4891 echo "${ECHO_T}$MSGMERGE" >&6; }
4892 else
4893   { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898       if test "$GMSGFMT" != ":"; then
4899             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4900        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4901       : ;
4902     else
4903       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4904       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4905 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4906       GMSGFMT=":"
4907     fi
4908   fi
4909
4910       if test "$XGETTEXT" != ":"; then
4911             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4912        (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
4913       : ;
4914     else
4915       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4916 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4917       XGETTEXT=":"
4918     fi
4919         rm -f messages.po
4920   fi
4921
4922   ac_config_commands="$ac_config_commands default-1"
4923
4924
4925 if test -n "$ac_tool_prefix"; then
4926   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4930 if test "${ac_cv_prog_RANLIB+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933   if test -n "$RANLIB"; then
4934   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941   for ac_exec_ext in '' $ac_executable_extensions; do
4942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 RANLIB=$ac_cv_prog_RANLIB
4954 if test -n "$RANLIB"; then
4955   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4956 echo "${ECHO_T}$RANLIB" >&6; }
4957 else
4958   { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4960 fi
4961
4962
4963 fi
4964 if test -z "$ac_cv_prog_RANLIB"; then
4965   ac_ct_RANLIB=$RANLIB
4966   # Extract the first word of "ranlib", so it can be a program name with args.
4967 set dummy ranlib; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973   if test -n "$ac_ct_RANLIB"; then
4974   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981   for ac_exec_ext in '' $ac_executable_extensions; do
4982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983     ac_cv_prog_ac_ct_RANLIB="ranlib"
4984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4994 if test -n "$ac_ct_RANLIB"; then
4995   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4996 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4997 else
4998   { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5000 fi
5001
5002   if test "x$ac_ct_RANLIB" = x; then
5003     RANLIB=":"
5004   else
5005     case $cross_compiling:$ac_tool_warned in
5006 yes:)
5007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5008 whose name does not start with the host triplet.  If you think this
5009 configuration is useful to you, please write to autoconf@gnu.org." >&5
5010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5011 whose name does not start with the host triplet.  If you think this
5012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5013 ac_tool_warned=yes ;;
5014 esac
5015     RANLIB=$ac_ct_RANLIB
5016   fi
5017 else
5018   RANLIB="$ac_cv_prog_RANLIB"
5019 fi
5020
5021
5022         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5023 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5024 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   ac_check_lib_save_LIBS=$LIBS
5028 LIBS="-lcposix  $LIBS"
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h.  */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h.  */
5035
5036 /* Override any GCC internal prototype to avoid an error.
5037    Use char because int might match the return type of a GCC
5038    builtin and then its argument prototype would still apply.  */
5039 #ifdef __cplusplus
5040 extern "C"
5041 #endif
5042 char strerror ();
5043 int
5044 main ()
5045 {
5046 return strerror ();
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5053 case "(($ac_try" in
5054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055   *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058   (eval "$ac_link") 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } && {
5065          test -z "$ac_c_werror_flag" ||
5066          test ! -s conftest.err
5067        } && test -s conftest$ac_exeext &&
5068        $as_test_x conftest$ac_exeext; then
5069   ac_cv_lib_cposix_strerror=yes
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074         ac_cv_lib_cposix_strerror=no
5075 fi
5076
5077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5078       conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5080 fi
5081 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5082 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5083 if test $ac_cv_lib_cposix_strerror = yes; then
5084   LIBS="$LIBS -lcposix"
5085 fi
5086
5087
5088
5089 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5090 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5091 if test "${ac_cv_c_const+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h.  */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h.  */
5100
5101 int
5102 main ()
5103 {
5104 /* FIXME: Include the comments suggested by Paul. */
5105 #ifndef __cplusplus
5106   /* Ultrix mips cc rejects this.  */
5107   typedef int charset[2];
5108   const charset cs;
5109   /* SunOS 4.1.1 cc rejects this.  */
5110   char const *const *pcpcc;
5111   char **ppc;
5112   /* NEC SVR4.0.2 mips cc rejects this.  */
5113   struct point {int x, y;};
5114   static struct point const zero = {0,0};
5115   /* AIX XL C 1.02.0.0 rejects this.
5116      It does not let you subtract one const X* pointer from another in
5117      an arm of an if-expression whose if-part is not a constant
5118      expression */
5119   const char *g = "string";
5120   pcpcc = &g + (g ? g-g : 0);
5121   /* HPUX 7.0 cc rejects these. */
5122   ++pcpcc;
5123   ppc = (char**) pcpcc;
5124   pcpcc = (char const *const *) ppc;
5125   { /* SCO 3.2v4 cc rejects this.  */
5126     char *t;
5127     char const *s = 0 ? (char *) 0 : (char const *) 0;
5128
5129     *t++ = 0;
5130     if (s) return 0;
5131   }
5132   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5133     int x[] = {25, 17};
5134     const int *foo = &x[0];
5135     ++foo;
5136   }
5137   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5138     typedef const int *iptr;
5139     iptr p = 0;
5140     ++p;
5141   }
5142   { /* AIX XL C 1.02.0.0 rejects this saying
5143        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5144     struct s { int j; const int *ap[3]; };
5145     struct s *b; b->j = 5;
5146   }
5147   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5148     const int foo = 10;
5149     if (!foo) return 0;
5150   }
5151   return !cs[0] && !zero.x;
5152 #endif
5153
5154   ;
5155   return 0;
5156 }
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5160 case "(($ac_try" in
5161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162   *) ac_try_echo=$ac_try;;
5163 esac
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165   (eval "$ac_compile") 2>conftest.er1
5166   ac_status=$?
5167   grep -v '^ *+' conftest.er1 >conftest.err
5168   rm -f conftest.er1
5169   cat conftest.err >&5
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); } && {
5172          test -z "$ac_c_werror_flag" ||
5173          test ! -s conftest.err
5174        } && test -s conftest.$ac_objext; then
5175   ac_cv_c_const=yes
5176 else
5177   echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180         ac_cv_c_const=no
5181 fi
5182
5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 fi
5185 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5186 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5187 if test $ac_cv_c_const = no; then
5188
5189 cat >>confdefs.h <<\_ACEOF
5190 #define const
5191 _ACEOF
5192
5193 fi
5194
5195
5196   { echo "$as_me:$LINENO: checking for signed" >&5
5197 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5198 if test "${bh_cv_c_signed+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h.  */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h.  */
5207
5208 int
5209 main ()
5210 {
5211 signed char x;
5212   ;
5213   return 0;
5214 }
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (ac_try="$ac_compile"
5218 case "(($ac_try" in
5219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220   *) ac_try_echo=$ac_try;;
5221 esac
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223   (eval "$ac_compile") 2>conftest.er1
5224   ac_status=$?
5225   grep -v '^ *+' conftest.er1 >conftest.err
5226   rm -f conftest.er1
5227   cat conftest.err >&5
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } && {
5230          test -z "$ac_c_werror_flag" ||
5231          test ! -s conftest.err
5232        } && test -s conftest.$ac_objext; then
5233   bh_cv_c_signed=yes
5234 else
5235   echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238         bh_cv_c_signed=no
5239 fi
5240
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 fi
5243 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5244 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5245   if test $bh_cv_c_signed = no; then
5246
5247 cat >>confdefs.h <<\_ACEOF
5248 #define signed
5249 _ACEOF
5250
5251   fi
5252
5253 { echo "$as_me:$LINENO: checking for inline" >&5
5254 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5255 if test "${ac_cv_c_inline+set}" = set; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   ac_cv_c_inline=no
5259 for ac_kw in inline __inline__ __inline; do
5260   cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h.  */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h.  */
5266 #ifndef __cplusplus
5267 typedef int foo_t;
5268 static $ac_kw foo_t static_foo () {return 0; }
5269 $ac_kw foo_t foo () {return 0; }
5270 #endif
5271
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (ac_try="$ac_compile"
5275 case "(($ac_try" in
5276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277   *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280   (eval "$ac_compile") 2>conftest.er1
5281   ac_status=$?
5282   grep -v '^ *+' conftest.er1 >conftest.err
5283   rm -f conftest.er1
5284   cat conftest.err >&5
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } && {
5287          test -z "$ac_c_werror_flag" ||
5288          test ! -s conftest.err
5289        } && test -s conftest.$ac_objext; then
5290   ac_cv_c_inline=$ac_kw
5291 else
5292   echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295
5296 fi
5297
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299   test "$ac_cv_c_inline" != no && break
5300 done
5301
5302 fi
5303 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5304 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5305
5306
5307 case $ac_cv_c_inline in
5308   inline | yes) ;;
5309   *)
5310     case $ac_cv_c_inline in
5311       no) ac_val=;;
5312       *) ac_val=$ac_cv_c_inline;;
5313     esac
5314     cat >>confdefs.h <<_ACEOF
5315 #ifndef __cplusplus
5316 #define inline $ac_val
5317 #endif
5318 _ACEOF
5319     ;;
5320 esac
5321
5322 { echo "$as_me:$LINENO: checking for off_t" >&5
5323 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5324 if test "${ac_cv_type_off_t+set}" = set; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333 $ac_includes_default
5334 typedef off_t ac__type_new_;
5335 int
5336 main ()
5337 {
5338 if ((ac__type_new_ *) 0)
5339   return 0;
5340 if (sizeof (ac__type_new_))
5341   return 0;
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350   *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353   (eval "$ac_compile") 2>conftest.er1
5354   ac_status=$?
5355   grep -v '^ *+' conftest.er1 >conftest.err
5356   rm -f conftest.er1
5357   cat conftest.err >&5
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } && {
5360          test -z "$ac_c_werror_flag" ||
5361          test ! -s conftest.err
5362        } && test -s conftest.$ac_objext; then
5363   ac_cv_type_off_t=yes
5364 else
5365   echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368         ac_cv_type_off_t=no
5369 fi
5370
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 fi
5373 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5374 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5375 if test $ac_cv_type_off_t = yes; then
5376   :
5377 else
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define off_t long int
5381 _ACEOF
5382
5383 fi
5384
5385 { echo "$as_me:$LINENO: checking for size_t" >&5
5386 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5387 if test "${ac_cv_type_size_t+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390   cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h.  */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h.  */
5396 $ac_includes_default
5397 typedef size_t ac__type_new_;
5398 int
5399 main ()
5400 {
5401 if ((ac__type_new_ *) 0)
5402   return 0;
5403 if (sizeof (ac__type_new_))
5404   return 0;
5405   ;
5406   return 0;
5407 }
5408 _ACEOF
5409 rm -f conftest.$ac_objext
5410 if { (ac_try="$ac_compile"
5411 case "(($ac_try" in
5412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413   *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416   (eval "$ac_compile") 2>conftest.er1
5417   ac_status=$?
5418   grep -v '^ *+' conftest.er1 >conftest.err
5419   rm -f conftest.er1
5420   cat conftest.err >&5
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } && {
5423          test -z "$ac_c_werror_flag" ||
5424          test ! -s conftest.err
5425        } && test -s conftest.$ac_objext; then
5426   ac_cv_type_size_t=yes
5427 else
5428   echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5430
5431         ac_cv_type_size_t=no
5432 fi
5433
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 fi
5436 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5437 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5438 if test $ac_cv_type_size_t = yes; then
5439   :
5440 else
5441
5442 cat >>confdefs.h <<_ACEOF
5443 #define size_t unsigned int
5444 _ACEOF
5445
5446 fi
5447
5448
5449   { echo "$as_me:$LINENO: checking for long long" >&5
5450 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5451 if test "${ac_cv_type_long_long+set}" = set; then
5452   echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454   cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h.  */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h.  */
5460 long long ll = 1LL; int i = 63;
5461 int
5462 main ()
5463 {
5464 long long llmax = (long long) -1;
5465      return ll << i | ll >> i | llmax / ll | llmax % ll;
5466   ;
5467   return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (ac_try="$ac_link"
5472 case "(($ac_try" in
5473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474   *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477   (eval "$ac_link") 2>conftest.er1
5478   ac_status=$?
5479   grep -v '^ *+' conftest.er1 >conftest.err
5480   rm -f conftest.er1
5481   cat conftest.err >&5
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } && {
5484          test -z "$ac_c_werror_flag" ||
5485          test ! -s conftest.err
5486        } && test -s conftest$ac_exeext &&
5487        $as_test_x conftest$ac_exeext; then
5488   ac_cv_type_long_long=yes
5489 else
5490   echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493         ac_cv_type_long_long=no
5494 fi
5495
5496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5497       conftest$ac_exeext conftest.$ac_ext
5498 fi
5499 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5500 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5501   if test $ac_cv_type_long_long = yes; then
5502
5503 cat >>confdefs.h <<\_ACEOF
5504 #define HAVE_LONG_LONG 1
5505 _ACEOF
5506
5507   fi
5508
5509
5510   { echo "$as_me:$LINENO: checking for long double" >&5
5511 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5512 if test "${gt_cv_c_long_double+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   if test "$GCC" = yes; then
5516        gt_cv_c_long_double=yes
5517      else
5518        cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524
5525          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5526          long double foo = 0.0;
5527          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5528          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5529
5530 int
5531 main ()
5532 {
5533
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5540 case "(($ac_try" in
5541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542   *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545   (eval "$ac_compile") 2>conftest.er1
5546   ac_status=$?
5547   grep -v '^ *+' conftest.er1 >conftest.err
5548   rm -f conftest.er1
5549   cat conftest.err >&5
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); } && {
5552          test -z "$ac_c_werror_flag" ||
5553          test ! -s conftest.err
5554        } && test -s conftest.$ac_objext; then
5555   gt_cv_c_long_double=yes
5556 else
5557   echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560         gt_cv_c_long_double=no
5561 fi
5562
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564      fi
5565 fi
5566 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5567 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5568   if test $gt_cv_c_long_double = yes; then
5569
5570 cat >>confdefs.h <<\_ACEOF
5571 #define HAVE_LONG_DOUBLE 1
5572 _ACEOF
5573
5574   fi
5575
5576
5577   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5578 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5579 if test "${gt_cv_c_wchar_t+set}" = set; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588 #include <stddef.h>
5589        wchar_t foo = (wchar_t)'\0';
5590 int
5591 main ()
5592 {
5593
5594   ;
5595   return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5600 case "(($ac_try" in
5601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602   *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605   (eval "$ac_compile") 2>conftest.er1
5606   ac_status=$?
5607   grep -v '^ *+' conftest.er1 >conftest.err
5608   rm -f conftest.er1
5609   cat conftest.err >&5
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } && {
5612          test -z "$ac_c_werror_flag" ||
5613          test ! -s conftest.err
5614        } && test -s conftest.$ac_objext; then
5615   gt_cv_c_wchar_t=yes
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620         gt_cv_c_wchar_t=no
5621 fi
5622
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5626 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5627   if test $gt_cv_c_wchar_t = yes; then
5628
5629 cat >>confdefs.h <<\_ACEOF
5630 #define HAVE_WCHAR_T 1
5631 _ACEOF
5632
5633   fi
5634
5635
5636   { echo "$as_me:$LINENO: checking for wint_t" >&5
5637 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5638 if test "${gt_cv_c_wint_t+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647 #include <wchar.h>
5648        wint_t foo = (wchar_t)'\0';
5649 int
5650 main ()
5651 {
5652
5653   ;
5654   return 0;
5655 }
5656 _ACEOF
5657 rm -f conftest.$ac_objext
5658 if { (ac_try="$ac_compile"
5659 case "(($ac_try" in
5660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661   *) ac_try_echo=$ac_try;;
5662 esac
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664   (eval "$ac_compile") 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } && {
5671          test -z "$ac_c_werror_flag" ||
5672          test ! -s conftest.err
5673        } && test -s conftest.$ac_objext; then
5674   gt_cv_c_wint_t=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679         gt_cv_c_wint_t=no
5680 fi
5681
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 fi
5684 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5685 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5686   if test $gt_cv_c_wint_t = yes; then
5687
5688 cat >>confdefs.h <<\_ACEOF
5689 #define HAVE_WINT_T 1
5690 _ACEOF
5691
5692   fi
5693
5694
5695   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5696 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5697 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706 #include <sys/types.h>
5707 #include <inttypes.h>
5708 int
5709 main ()
5710 {
5711 uintmax_t i = (uintmax_t) -1;
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5718 case "(($ac_try" in
5719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720   *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723   (eval "$ac_compile") 2>conftest.er1
5724   ac_status=$?
5725   grep -v '^ *+' conftest.er1 >conftest.err
5726   rm -f conftest.er1
5727   cat conftest.err >&5
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); } && {
5730          test -z "$ac_c_werror_flag" ||
5731          test ! -s conftest.err
5732        } && test -s conftest.$ac_objext; then
5733   jm_ac_cv_header_inttypes_h=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738         jm_ac_cv_header_inttypes_h=no
5739 fi
5740
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 fi
5743 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5744 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5745   if test $jm_ac_cv_header_inttypes_h = yes; then
5746
5747 cat >>confdefs.h <<_ACEOF
5748 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5749 _ACEOF
5750
5751   fi
5752
5753
5754   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5755 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5756 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h.  */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h.  */
5765 #include <sys/types.h>
5766 #include <stdint.h>
5767 int
5768 main ()
5769 {
5770 uintmax_t i = (uintmax_t) -1;
5771   ;
5772   return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_compile") 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } && {
5789          test -z "$ac_c_werror_flag" ||
5790          test ! -s conftest.err
5791        } && test -s conftest.$ac_objext; then
5792   jm_ac_cv_header_stdint_h=yes
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797         jm_ac_cv_header_stdint_h=no
5798 fi
5799
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 fi
5802 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5803 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5804   if test $jm_ac_cv_header_stdint_h = yes; then
5805
5806 cat >>confdefs.h <<_ACEOF
5807 #define HAVE_STDINT_H_WITH_UINTMAX 1
5808 _ACEOF
5809
5810   fi
5811
5812
5813
5814
5815   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5816 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5817 if test "${gt_cv_c_intmax_t+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h.  */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h.  */
5826
5827 #include <stddef.h>
5828 #include <stdlib.h>
5829 #if HAVE_STDINT_H_WITH_UINTMAX
5830 #include <stdint.h>
5831 #endif
5832 #if HAVE_INTTYPES_H_WITH_UINTMAX
5833 #include <inttypes.h>
5834 #endif
5835
5836 int
5837 main ()
5838 {
5839 intmax_t x = -1;
5840   ;
5841   return 0;
5842 }
5843 _ACEOF
5844 rm -f conftest.$ac_objext
5845 if { (ac_try="$ac_compile"
5846 case "(($ac_try" in
5847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848   *) ac_try_echo=$ac_try;;
5849 esac
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851   (eval "$ac_compile") 2>conftest.er1
5852   ac_status=$?
5853   grep -v '^ *+' conftest.er1 >conftest.err
5854   rm -f conftest.er1
5855   cat conftest.err >&5
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); } && {
5858          test -z "$ac_c_werror_flag" ||
5859          test ! -s conftest.err
5860        } && test -s conftest.$ac_objext; then
5861   gt_cv_c_intmax_t=yes
5862 else
5863   echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5865
5866         gt_cv_c_intmax_t=no
5867 fi
5868
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 fi
5871 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5872 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5873   if test $gt_cv_c_intmax_t = yes; then
5874
5875 cat >>confdefs.h <<\_ACEOF
5876 #define HAVE_INTMAX_T 1
5877 _ACEOF
5878
5879   fi
5880
5881
5882
5883   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5884 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5885 if test "${gt_cv_func_printf_posix+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888
5889       if test "$cross_compiling" = yes; then
5890
5891         cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897
5898 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5899   notposix
5900 #endif
5901
5902 _ACEOF
5903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904   $EGREP "notposix" >/dev/null 2>&1; then
5905   gt_cv_func_printf_posix="guessing no"
5906 else
5907   gt_cv_func_printf_posix="guessing yes"
5908 fi
5909 rm -f conftest*
5910
5911
5912 else
5913   cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h.  */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h.  */
5919
5920 #include <stdio.h>
5921 #include <string.h>
5922 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5923    dollar expansion (possibly an autoconf bug).  */
5924 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5925 static char buf[100];
5926 int main ()
5927 {
5928   sprintf (buf, format, 33, 55);
5929   return (strcmp (buf, "55 33") != 0);
5930 }
5931 _ACEOF
5932 rm -f conftest$ac_exeext
5933 if { (ac_try="$ac_link"
5934 case "(($ac_try" in
5935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936   *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939   (eval "$ac_link") 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5943   { (case "(($ac_try" in
5944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945   *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948   (eval "$ac_try") 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; }; then
5952   gt_cv_func_printf_posix=yes
5953 else
5954   echo "$as_me: program exited with status $ac_status" >&5
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ( exit $ac_status )
5959 gt_cv_func_printf_posix=no
5960 fi
5961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5962 fi
5963
5964
5965
5966 fi
5967 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5968 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5969   case $gt_cv_func_printf_posix in
5970     *yes)
5971
5972 cat >>confdefs.h <<\_ACEOF
5973 #define HAVE_POSIX_PRINTF 1
5974 _ACEOF
5975
5976       ;;
5977   esac
5978
5979 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5980 # for constant arguments.  Useless!
5981 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5982 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5983 if test "${ac_cv_working_alloca_h+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986   cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 #include <alloca.h>
5993 int
5994 main ()
5995 {
5996 char *p = (char *) alloca (2 * sizeof (int));
5997                           if (p) return 0;
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
6002 rm -f conftest.$ac_objext conftest$ac_exeext
6003 if { (ac_try="$ac_link"
6004 case "(($ac_try" in
6005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006   *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009   (eval "$ac_link") 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } && {
6016          test -z "$ac_c_werror_flag" ||
6017          test ! -s conftest.err
6018        } && test -s conftest$ac_exeext &&
6019        $as_test_x conftest$ac_exeext; then
6020   ac_cv_working_alloca_h=yes
6021 else
6022   echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025         ac_cv_working_alloca_h=no
6026 fi
6027
6028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6029       conftest$ac_exeext conftest.$ac_ext
6030 fi
6031 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6032 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6033 if test $ac_cv_working_alloca_h = yes; then
6034
6035 cat >>confdefs.h <<\_ACEOF
6036 #define HAVE_ALLOCA_H 1
6037 _ACEOF
6038
6039 fi
6040
6041 { echo "$as_me:$LINENO: checking for alloca" >&5
6042 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6043 if test "${ac_cv_func_alloca_works+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h.  */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h.  */
6052 #ifdef __GNUC__
6053 # define alloca __builtin_alloca
6054 #else
6055 # ifdef _MSC_VER
6056 #  include <malloc.h>
6057 #  define alloca _alloca
6058 # else
6059 #  ifdef HAVE_ALLOCA_H
6060 #   include <alloca.h>
6061 #  else
6062 #   ifdef _AIX
6063  #pragma alloca
6064 #   else
6065 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6066 char *alloca ();
6067 #    endif
6068 #   endif
6069 #  endif
6070 # endif
6071 #endif
6072
6073 int
6074 main ()
6075 {
6076 char *p = (char *) alloca (1);
6077                                     if (p) return 0;
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (ac_try="$ac_link"
6084 case "(($ac_try" in
6085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086   *) ac_try_echo=$ac_try;;
6087 esac
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089   (eval "$ac_link") 2>conftest.er1
6090   ac_status=$?
6091   grep -v '^ *+' conftest.er1 >conftest.err
6092   rm -f conftest.er1
6093   cat conftest.err >&5
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); } && {
6096          test -z "$ac_c_werror_flag" ||
6097          test ! -s conftest.err
6098        } && test -s conftest$ac_exeext &&
6099        $as_test_x conftest$ac_exeext; then
6100   ac_cv_func_alloca_works=yes
6101 else
6102   echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105         ac_cv_func_alloca_works=no
6106 fi
6107
6108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6109       conftest$ac_exeext conftest.$ac_ext
6110 fi
6111 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6112 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6113
6114 if test $ac_cv_func_alloca_works = yes; then
6115
6116 cat >>confdefs.h <<\_ACEOF
6117 #define HAVE_ALLOCA 1
6118 _ACEOF
6119
6120 else
6121   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6122 # that cause trouble.  Some versions do not even contain alloca or
6123 # contain a buggy version.  If you still want to use their alloca,
6124 # use ar to extract alloca.o from them instead of compiling alloca.c.
6125
6126 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6127
6128 cat >>confdefs.h <<\_ACEOF
6129 #define C_ALLOCA 1
6130 _ACEOF
6131
6132
6133 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6134 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6135 if test "${ac_cv_os_cray+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144 #if defined CRAY && ! defined CRAY2
6145 webecray
6146 #else
6147 wenotbecray
6148 #endif
6149
6150 _ACEOF
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152   $EGREP "webecray" >/dev/null 2>&1; then
6153   ac_cv_os_cray=yes
6154 else
6155   ac_cv_os_cray=no
6156 fi
6157 rm -f conftest*
6158
6159 fi
6160 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6161 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6162 if test $ac_cv_os_cray = yes; then
6163   for ac_func in _getb67 GETB67 getb67; do
6164     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6178 #define $ac_func innocuous_$ac_func
6179
6180 /* System header to define __stub macros and hopefully few prototypes,
6181     which can conflict with char $ac_func (); below.
6182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183     <limits.h> exists even on freestanding compilers.  */
6184
6185 #ifdef __STDC__
6186 # include <limits.h>
6187 #else
6188 # include <assert.h>
6189 #endif
6190
6191 #undef $ac_func
6192
6193 /* Override any GCC internal prototype to avoid an error.
6194    Use char because int might match the return type of a GCC
6195    builtin and then its argument prototype would still apply.  */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 char $ac_func ();
6200 /* The GNU C library defines this for functions which it implements
6201     to always fail with ENOSYS.  Some functions are actually named
6202     something starting with __ and the normal name is an alias.  */
6203 #if defined __stub_$ac_func || defined __stub___$ac_func
6204 choke me
6205 #endif
6206
6207 int
6208 main ()
6209 {
6210 return $ac_func ();
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (ac_try="$ac_link"
6217 case "(($ac_try" in
6218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219   *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222   (eval "$ac_link") 2>conftest.er1
6223   ac_status=$?
6224   grep -v '^ *+' conftest.er1 >conftest.err
6225   rm -f conftest.er1
6226   cat conftest.err >&5
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); } && {
6229          test -z "$ac_c_werror_flag" ||
6230          test ! -s conftest.err
6231        } && test -s conftest$ac_exeext &&
6232        $as_test_x conftest$ac_exeext; then
6233   eval "$as_ac_var=yes"
6234 else
6235   echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6237
6238         eval "$as_ac_var=no"
6239 fi
6240
6241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6242       conftest$ac_exeext conftest.$ac_ext
6243 fi
6244 ac_res=`eval echo '${'$as_ac_var'}'`
6245                { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_var'}'` = yes; then
6248
6249 cat >>confdefs.h <<_ACEOF
6250 #define CRAY_STACKSEG_END $ac_func
6251 _ACEOF
6252
6253     break
6254 fi
6255
6256   done
6257 fi
6258
6259 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6260 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6261 if test "${ac_cv_c_stack_direction+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   if test "$cross_compiling" = yes; then
6265   ac_cv_c_stack_direction=0
6266 else
6267   cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h.  */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h.  */
6273 $ac_includes_default
6274 int
6275 find_stack_direction ()
6276 {
6277   static char *addr = 0;
6278   auto char dummy;
6279   if (addr == 0)
6280     {
6281       addr = &dummy;
6282       return find_stack_direction ();
6283     }
6284   else
6285     return (&dummy > addr) ? 1 : -1;
6286 }
6287
6288 int
6289 main ()
6290 {
6291   return find_stack_direction () < 0;
6292 }
6293 _ACEOF
6294 rm -f conftest$ac_exeext
6295 if { (ac_try="$ac_link"
6296 case "(($ac_try" in
6297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298   *) ac_try_echo=$ac_try;;
6299 esac
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301   (eval "$ac_link") 2>&5
6302   ac_status=$?
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6305   { (case "(($ac_try" in
6306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307   *) ac_try_echo=$ac_try;;
6308 esac
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310   (eval "$ac_try") 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); }; }; then
6314   ac_cv_c_stack_direction=1
6315 else
6316   echo "$as_me: program exited with status $ac_status" >&5
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ( exit $ac_status )
6321 ac_cv_c_stack_direction=-1
6322 fi
6323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6324 fi
6325
6326
6327 fi
6328 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6329 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6330
6331 cat >>confdefs.h <<_ACEOF
6332 #define STACK_DIRECTION $ac_cv_c_stack_direction
6333 _ACEOF
6334
6335
6336 fi
6337
6338
6339
6340 for ac_header in stdlib.h unistd.h
6341 do
6342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6344   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 fi
6349 ac_res=`eval echo '${'$as_ac_Header'}'`
6350                { echo "$as_me:$LINENO: result: $ac_res" >&5
6351 echo "${ECHO_T}$ac_res" >&6; }
6352 else
6353   # Is the header compilable?
6354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6356 cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h.  */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h.  */
6362 $ac_includes_default
6363 #include <$ac_header>
6364 _ACEOF
6365 rm -f conftest.$ac_objext
6366 if { (ac_try="$ac_compile"
6367 case "(($ac_try" in
6368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369   *) ac_try_echo=$ac_try;;
6370 esac
6371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372   (eval "$ac_compile") 2>conftest.er1
6373   ac_status=$?
6374   grep -v '^ *+' conftest.er1 >conftest.err
6375   rm -f conftest.er1
6376   cat conftest.err >&5
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); } && {
6379          test -z "$ac_c_werror_flag" ||
6380          test ! -s conftest.err
6381        } && test -s conftest.$ac_objext; then
6382   ac_header_compiler=yes
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387         ac_header_compiler=no
6388 fi
6389
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6392 echo "${ECHO_T}$ac_header_compiler" >&6; }
6393
6394 # Is the header present?
6395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h.  */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h.  */
6403 #include <$ac_header>
6404 _ACEOF
6405 if { (ac_try="$ac_cpp conftest.$ac_ext"
6406 case "(($ac_try" in
6407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408   *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6412   ac_status=$?
6413   grep -v '^ *+' conftest.er1 >conftest.err
6414   rm -f conftest.er1
6415   cat conftest.err >&5
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); } >/dev/null && {
6418          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6419          test ! -s conftest.err
6420        }; then
6421   ac_header_preproc=yes
6422 else
6423   echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426   ac_header_preproc=no
6427 fi
6428
6429 rm -f conftest.err conftest.$ac_ext
6430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6431 echo "${ECHO_T}$ac_header_preproc" >&6; }
6432
6433 # So?  What about this header?
6434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6435   yes:no: )
6436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6440     ac_header_preproc=yes
6441     ;;
6442   no:yes:* )
6443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6455
6456     ;;
6457 esac
6458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   eval "$as_ac_Header=\$ac_header_preproc"
6464 fi
6465 ac_res=`eval echo '${'$as_ac_Header'}'`
6466                { echo "$as_me:$LINENO: result: $ac_res" >&5
6467 echo "${ECHO_T}$ac_res" >&6; }
6468
6469 fi
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471   cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473 _ACEOF
6474
6475 fi
6476
6477 done
6478
6479
6480 for ac_func in getpagesize
6481 do
6482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6486   echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488   cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6496 #define $ac_func innocuous_$ac_func
6497
6498 /* System header to define __stub macros and hopefully few prototypes,
6499     which can conflict with char $ac_func (); below.
6500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6501     <limits.h> exists even on freestanding compilers.  */
6502
6503 #ifdef __STDC__
6504 # include <limits.h>
6505 #else
6506 # include <assert.h>
6507 #endif
6508
6509 #undef $ac_func
6510
6511 /* Override any GCC internal prototype to avoid an error.
6512    Use char because int might match the return type of a GCC
6513    builtin and then its argument prototype would still apply.  */
6514 #ifdef __cplusplus
6515 extern "C"
6516 #endif
6517 char $ac_func ();
6518 /* The GNU C library defines this for functions which it implements
6519     to always fail with ENOSYS.  Some functions are actually named
6520     something starting with __ and the normal name is an alias.  */
6521 #if defined __stub_$ac_func || defined __stub___$ac_func
6522 choke me
6523 #endif
6524
6525 int
6526 main ()
6527 {
6528 return $ac_func ();
6529   ;
6530   return 0;
6531 }
6532 _ACEOF
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (ac_try="$ac_link"
6535 case "(($ac_try" in
6536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537   *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540   (eval "$ac_link") 2>conftest.er1
6541   ac_status=$?
6542   grep -v '^ *+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
6544   cat conftest.err >&5
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } && {
6547          test -z "$ac_c_werror_flag" ||
6548          test ! -s conftest.err
6549        } && test -s conftest$ac_exeext &&
6550        $as_test_x conftest$ac_exeext; then
6551   eval "$as_ac_var=yes"
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556         eval "$as_ac_var=no"
6557 fi
6558
6559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6560       conftest$ac_exeext conftest.$ac_ext
6561 fi
6562 ac_res=`eval echo '${'$as_ac_var'}'`
6563                { echo "$as_me:$LINENO: result: $ac_res" >&5
6564 echo "${ECHO_T}$ac_res" >&6; }
6565 if test `eval echo '${'$as_ac_var'}'` = yes; then
6566   cat >>confdefs.h <<_ACEOF
6567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6568 _ACEOF
6569
6570 fi
6571 done
6572
6573 { echo "$as_me:$LINENO: checking for working mmap" >&5
6574 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6575 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   if test "$cross_compiling" = yes; then
6579   ac_cv_func_mmap_fixed_mapped=no
6580 else
6581   cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h.  */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h.  */
6587 $ac_includes_default
6588 /* malloc might have been renamed as rpl_malloc. */
6589 #undef malloc
6590
6591 /* Thanks to Mike Haertel and Jim Avera for this test.
6592    Here is a matrix of mmap possibilities:
6593         mmap private not fixed
6594         mmap private fixed at somewhere currently unmapped
6595         mmap private fixed at somewhere already mapped
6596         mmap shared not fixed
6597         mmap shared fixed at somewhere currently unmapped
6598         mmap shared fixed at somewhere already mapped
6599    For private mappings, we should verify that changes cannot be read()
6600    back from the file, nor mmap's back from the file at a different
6601    address.  (There have been systems where private was not correctly
6602    implemented like the infamous i386 svr4.0, and systems where the
6603    VM page cache was not coherent with the file system buffer cache
6604    like early versions of FreeBSD and possibly contemporary NetBSD.)
6605    For shared mappings, we should conversely verify that changes get
6606    propagated back to all the places they're supposed to be.
6607
6608    Grep wants private fixed already mapped.
6609    The main things grep needs to know about mmap are:
6610    * does it exist and is it safe to write into the mmap'd area
6611    * how to use it (BSD variants)  */
6612
6613 #include <fcntl.h>
6614 #include <sys/mman.h>
6615
6616 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6617 char *malloc ();
6618 #endif
6619
6620 /* This mess was copied from the GNU getpagesize.h.  */
6621 #ifndef HAVE_GETPAGESIZE
6622 /* Assume that all systems that can run configure have sys/param.h.  */
6623 # ifndef HAVE_SYS_PARAM_H
6624 #  define HAVE_SYS_PARAM_H 1
6625 # endif
6626
6627 # ifdef _SC_PAGESIZE
6628 #  define getpagesize() sysconf(_SC_PAGESIZE)
6629 # else /* no _SC_PAGESIZE */
6630 #  ifdef HAVE_SYS_PARAM_H
6631 #   include <sys/param.h>
6632 #   ifdef EXEC_PAGESIZE
6633 #    define getpagesize() EXEC_PAGESIZE
6634 #   else /* no EXEC_PAGESIZE */
6635 #    ifdef NBPG
6636 #     define getpagesize() NBPG * CLSIZE
6637 #     ifndef CLSIZE
6638 #      define CLSIZE 1
6639 #     endif /* no CLSIZE */
6640 #    else /* no NBPG */
6641 #     ifdef NBPC
6642 #      define getpagesize() NBPC
6643 #     else /* no NBPC */
6644 #      ifdef PAGESIZE
6645 #       define getpagesize() PAGESIZE
6646 #      endif /* PAGESIZE */
6647 #     endif /* no NBPC */
6648 #    endif /* no NBPG */
6649 #   endif /* no EXEC_PAGESIZE */
6650 #  else /* no HAVE_SYS_PARAM_H */
6651 #   define getpagesize() 8192   /* punt totally */
6652 #  endif /* no HAVE_SYS_PARAM_H */
6653 # endif /* no _SC_PAGESIZE */
6654
6655 #endif /* no HAVE_GETPAGESIZE */
6656
6657 int
6658 main ()
6659 {
6660   char *data, *data2, *data3;
6661   int i, pagesize;
6662   int fd;
6663
6664   pagesize = getpagesize ();
6665
6666   /* First, make a file with some known garbage in it. */
6667   data = (char *) malloc (pagesize);
6668   if (!data)
6669     return 1;
6670   for (i = 0; i < pagesize; ++i)
6671     *(data + i) = rand ();
6672   umask (0);
6673   fd = creat ("conftest.mmap", 0600);
6674   if (fd < 0)
6675     return 1;
6676   if (write (fd, data, pagesize) != pagesize)
6677     return 1;
6678   close (fd);
6679
6680   /* Next, try to mmap the file at a fixed address which already has
6681      something else allocated at it.  If we can, also make sure that
6682      we see the same garbage.  */
6683   fd = open ("conftest.mmap", O_RDWR);
6684   if (fd < 0)
6685     return 1;
6686   data2 = (char *) malloc (2 * pagesize);
6687   if (!data2)
6688     return 1;
6689   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6690   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6691                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6692     return 1;
6693   for (i = 0; i < pagesize; ++i)
6694     if (*(data + i) != *(data2 + i))
6695       return 1;
6696
6697   /* Finally, make sure that changes to the mapped area do not
6698      percolate back to the file as seen by read().  (This is a bug on
6699      some variants of i386 svr4.0.)  */
6700   for (i = 0; i < pagesize; ++i)
6701     *(data2 + i) = *(data2 + i) + 1;
6702   data3 = (char *) malloc (pagesize);
6703   if (!data3)
6704     return 1;
6705   if (read (fd, data3, pagesize) != pagesize)
6706     return 1;
6707   for (i = 0; i < pagesize; ++i)
6708     if (*(data + i) != *(data3 + i))
6709       return 1;
6710   close (fd);
6711   return 0;
6712 }
6713 _ACEOF
6714 rm -f conftest$ac_exeext
6715 if { (ac_try="$ac_link"
6716 case "(($ac_try" in
6717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718   *) ac_try_echo=$ac_try;;
6719 esac
6720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721   (eval "$ac_link") 2>&5
6722   ac_status=$?
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6725   { (case "(($ac_try" in
6726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727   *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730   (eval "$ac_try") 2>&5
6731   ac_status=$?
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); }; }; then
6734   ac_cv_func_mmap_fixed_mapped=yes
6735 else
6736   echo "$as_me: program exited with status $ac_status" >&5
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6739
6740 ( exit $ac_status )
6741 ac_cv_func_mmap_fixed_mapped=no
6742 fi
6743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6744 fi
6745
6746
6747 fi
6748 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6749 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6750 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6751
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_MMAP 1
6754 _ACEOF
6755
6756 fi
6757 rm -f conftest.mmap
6758
6759
6760     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6761 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6762 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h.  */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h.  */
6771
6772 #include <features.h>
6773 #ifdef __GNU_LIBRARY__
6774  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6775   Lucky GNU user
6776  #endif
6777 #endif
6778
6779 _ACEOF
6780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6781   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6782   ac_cv_gnu_library_2_1=yes
6783 else
6784   ac_cv_gnu_library_2_1=no
6785 fi
6786 rm -f conftest*
6787
6788
6789
6790 fi
6791 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6792 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6793
6794     GLIBC21="$ac_cv_gnu_library_2_1"
6795
6796
6797
6798
6799   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6800 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6801 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6802   echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804
6805       if test "$cross_compiling" = yes; then
6806
6807           # Guess based on the CPU.
6808           case "$host_cpu" in
6809             alpha* | i3456786 | m68k | s390*)
6810               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6811             *)
6812               gt_cv_int_divbyzero_sigfpe="guessing no";;
6813           esac
6814
6815 else
6816   cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h.  */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h.  */
6822
6823 #include <stdlib.h>
6824 #include <signal.h>
6825
6826 static void
6827 #ifdef __cplusplus
6828 sigfpe_handler (int sig)
6829 #else
6830 sigfpe_handler (sig) int sig;
6831 #endif
6832 {
6833   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6834   exit (sig != SIGFPE);
6835 }
6836
6837 int x = 1;
6838 int y = 0;
6839 int z;
6840 int nan;
6841
6842 int main ()
6843 {
6844   signal (SIGFPE, sigfpe_handler);
6845 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6846 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6847   signal (SIGTRAP, sigfpe_handler);
6848 #endif
6849 /* Linux/SPARC yields signal SIGILL.  */
6850 #if defined (__sparc__) && defined (__linux__)
6851   signal (SIGILL, sigfpe_handler);
6852 #endif
6853
6854   z = x / y;
6855   nan = y / y;
6856   exit (1);
6857 }
6858
6859 _ACEOF
6860 rm -f conftest$ac_exeext
6861 if { (ac_try="$ac_link"
6862 case "(($ac_try" in
6863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864   *) ac_try_echo=$ac_try;;
6865 esac
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867   (eval "$ac_link") 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6871   { (case "(($ac_try" in
6872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873   *) ac_try_echo=$ac_try;;
6874 esac
6875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876   (eval "$ac_try") 2>&5
6877   ac_status=$?
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); }; }; then
6880   gt_cv_int_divbyzero_sigfpe=yes
6881 else
6882   echo "$as_me: program exited with status $ac_status" >&5
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6885
6886 ( exit $ac_status )
6887 gt_cv_int_divbyzero_sigfpe=no
6888 fi
6889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6890 fi
6891
6892
6893
6894 fi
6895 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6896 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6897   case "$gt_cv_int_divbyzero_sigfpe" in
6898     *yes) value=1;;
6899     *) value=0;;
6900   esac
6901
6902 cat >>confdefs.h <<_ACEOF
6903 #define INTDIV0_RAISES_SIGFPE $value
6904 _ACEOF
6905
6906
6907
6908   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6909 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6910 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6911   echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913   cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h.  */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h.  */
6919 unsigned long long ull = 1ULL; int i = 63;
6920 int
6921 main ()
6922 {
6923 unsigned long long ullmax = (unsigned long long) -1;
6924      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6925   ;
6926   return 0;
6927 }
6928 _ACEOF
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6931 case "(($ac_try" in
6932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933   *) ac_try_echo=$ac_try;;
6934 esac
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936   (eval "$ac_link") 2>conftest.er1
6937   ac_status=$?
6938   grep -v '^ *+' conftest.er1 >conftest.err
6939   rm -f conftest.er1
6940   cat conftest.err >&5
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } && {
6943          test -z "$ac_c_werror_flag" ||
6944          test ! -s conftest.err
6945        } && test -s conftest$ac_exeext &&
6946        $as_test_x conftest$ac_exeext; then
6947   ac_cv_type_unsigned_long_long=yes
6948 else
6949   echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952         ac_cv_type_unsigned_long_long=no
6953 fi
6954
6955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6956       conftest$ac_exeext conftest.$ac_ext
6957 fi
6958 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6959 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6960   if test $ac_cv_type_unsigned_long_long = yes; then
6961
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_UNSIGNED_LONG_LONG 1
6964 _ACEOF
6965
6966   fi
6967
6968
6969
6970
6971   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6972
6973     test $ac_cv_type_unsigned_long_long = yes \
6974       && ac_type='unsigned long long' \
6975       || ac_type='unsigned long'
6976
6977 cat >>confdefs.h <<_ACEOF
6978 #define uintmax_t $ac_type
6979 _ACEOF
6980
6981   else
6982
6983 cat >>confdefs.h <<\_ACEOF
6984 #define HAVE_UINTMAX_T 1
6985 _ACEOF
6986
6987   fi
6988
6989
6990   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6991 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6992 if test "${gt_cv_header_inttypes_h+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995
6996     cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002 #include <sys/types.h>
7003 #include <inttypes.h>
7004 int
7005 main ()
7006 {
7007
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7014 case "(($ac_try" in
7015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016   *) ac_try_echo=$ac_try;;
7017 esac
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019   (eval "$ac_compile") 2>conftest.er1
7020   ac_status=$?
7021   grep -v '^ *+' conftest.er1 >conftest.err
7022   rm -f conftest.er1
7023   cat conftest.err >&5
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); } && {
7026          test -z "$ac_c_werror_flag" ||
7027          test ! -s conftest.err
7028        } && test -s conftest.$ac_objext; then
7029   gt_cv_header_inttypes_h=yes
7030 else
7031   echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034         gt_cv_header_inttypes_h=no
7035 fi
7036
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038
7039 fi
7040 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7041 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7042   if test $gt_cv_header_inttypes_h = yes; then
7043
7044 cat >>confdefs.h <<_ACEOF
7045 #define HAVE_INTTYPES_H 1
7046 _ACEOF
7047
7048   fi
7049
7050
7051
7052   if test $gt_cv_header_inttypes_h = yes; then
7053     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7054 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7055 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058
7059         cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h.  */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h.  */
7065 #include <inttypes.h>
7066 #ifdef PRId32
7067 char *p = PRId32;
7068 #endif
7069
7070 int
7071 main ()
7072 {
7073
7074   ;
7075   return 0;
7076 }
7077 _ACEOF
7078 rm -f conftest.$ac_objext
7079 if { (ac_try="$ac_compile"
7080 case "(($ac_try" in
7081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082   *) ac_try_echo=$ac_try;;
7083 esac
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085   (eval "$ac_compile") 2>conftest.er1
7086   ac_status=$?
7087   grep -v '^ *+' conftest.er1 >conftest.err
7088   rm -f conftest.er1
7089   cat conftest.err >&5
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); } && {
7092          test -z "$ac_c_werror_flag" ||
7093          test ! -s conftest.err
7094        } && test -s conftest.$ac_objext; then
7095   gt_cv_inttypes_pri_broken=no
7096 else
7097   echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100         gt_cv_inttypes_pri_broken=yes
7101 fi
7102
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104
7105 fi
7106 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7107 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7108   fi
7109   if test "$gt_cv_inttypes_pri_broken" = yes; then
7110
7111 cat >>confdefs.h <<_ACEOF
7112 #define PRI_MACROS_BROKEN 1
7113 _ACEOF
7114
7115   fi
7116
7117
7118
7119 for ac_header in stdint.h
7120 do
7121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7123   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 fi
7128 ac_res=`eval echo '${'$as_ac_Header'}'`
7129                { echo "$as_me:$LINENO: result: $ac_res" >&5
7130 echo "${ECHO_T}$ac_res" >&6; }
7131 else
7132   # Is the header compilable?
7133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141 $ac_includes_default
7142 #include <$ac_header>
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_header_compiler=yes
7162 else
7163   echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166         ac_header_compiler=no
7167 fi
7168
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7171 echo "${ECHO_T}$ac_header_compiler" >&6; }
7172
7173 # Is the header present?
7174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h.  */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h.  */
7182 #include <$ac_header>
7183 _ACEOF
7184 if { (ac_try="$ac_cpp conftest.$ac_ext"
7185 case "(($ac_try" in
7186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187   *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7191   ac_status=$?
7192   grep -v '^ *+' conftest.er1 >conftest.err
7193   rm -f conftest.er1
7194   cat conftest.err >&5
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); } >/dev/null && {
7197          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7198          test ! -s conftest.err
7199        }; then
7200   ac_header_preproc=yes
7201 else
7202   echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205   ac_header_preproc=no
7206 fi
7207
7208 rm -f conftest.err conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7210 echo "${ECHO_T}$ac_header_preproc" >&6; }
7211
7212 # So?  What about this header?
7213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7214   yes:no: )
7215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7219     ac_header_preproc=yes
7220     ;;
7221   no:yes:* )
7222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7234
7235     ;;
7236 esac
7237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   eval "$as_ac_Header=\$ac_header_preproc"
7243 fi
7244 ac_res=`eval echo '${'$as_ac_Header'}'`
7245                { echo "$as_me:$LINENO: result: $ac_res" >&5
7246 echo "${ECHO_T}$ac_res" >&6; }
7247
7248 fi
7249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7250   cat >>confdefs.h <<_ACEOF
7251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7252 _ACEOF
7253
7254 fi
7255
7256 done
7257
7258     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7259 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7260   result=
7261   cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h.  */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h.  */
7267
7268 #include <limits.h>
7269 #if HAVE_STDINT_H
7270 #include <stdint.h>
7271 #endif
7272 #ifdef SIZE_MAX
7273 Found it
7274 #endif
7275
7276 _ACEOF
7277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278   $EGREP "Found it" >/dev/null 2>&1; then
7279   result=yes
7280 fi
7281 rm -f conftest*
7282
7283   if test -z "$result"; then
7284                     if test "$cross_compiling" = yes; then
7285   # Depending upon the size, compute the lo and hi bounds.
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h.  */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h.  */
7292 #include <stddef.h>
7293 int
7294 main ()
7295 {
7296 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7297 test_array [0] = 0
7298
7299   ;
7300   return 0;
7301 }
7302 _ACEOF
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7305 case "(($ac_try" in
7306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307   *) ac_try_echo=$ac_try;;
7308 esac
7309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310   (eval "$ac_compile") 2>conftest.er1
7311   ac_status=$?
7312   grep -v '^ *+' conftest.er1 >conftest.err
7313   rm -f conftest.er1
7314   cat conftest.err >&5
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); } && {
7317          test -z "$ac_c_werror_flag" ||
7318          test ! -s conftest.err
7319        } && test -s conftest.$ac_objext; then
7320   ac_lo=0 ac_mid=0
7321   while :; do
7322     cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h.  */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h.  */
7328 #include <stddef.h>
7329 int
7330 main ()
7331 {
7332 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7333 test_array [0] = 0
7334
7335   ;
7336   return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (ac_try="$ac_compile"
7341 case "(($ac_try" in
7342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343   *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346   (eval "$ac_compile") 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } && {
7353          test -z "$ac_c_werror_flag" ||
7354          test ! -s conftest.err
7355        } && test -s conftest.$ac_objext; then
7356   ac_hi=$ac_mid; break
7357 else
7358   echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361         ac_lo=`expr $ac_mid + 1`
7362                         if test $ac_lo -le $ac_mid; then
7363                           ac_lo= ac_hi=
7364                           break
7365                         fi
7366                         ac_mid=`expr 2 '*' $ac_mid + 1`
7367 fi
7368
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370   done
7371 else
7372   echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375         cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h.  */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h.  */
7381 #include <stddef.h>
7382 int
7383 main ()
7384 {
7385 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7386 test_array [0] = 0
7387
7388   ;
7389   return 0;
7390 }
7391 _ACEOF
7392 rm -f conftest.$ac_objext
7393 if { (ac_try="$ac_compile"
7394 case "(($ac_try" in
7395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396   *) ac_try_echo=$ac_try;;
7397 esac
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399   (eval "$ac_compile") 2>conftest.er1
7400   ac_status=$?
7401   grep -v '^ *+' conftest.er1 >conftest.err
7402   rm -f conftest.er1
7403   cat conftest.err >&5
7404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405   (exit $ac_status); } && {
7406          test -z "$ac_c_werror_flag" ||
7407          test ! -s conftest.err
7408        } && test -s conftest.$ac_objext; then
7409   ac_hi=-1 ac_mid=-1
7410   while :; do
7411     cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h.  */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h.  */
7417 #include <stddef.h>
7418 int
7419 main ()
7420 {
7421 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7422 test_array [0] = 0
7423
7424   ;
7425   return 0;
7426 }
7427 _ACEOF
7428 rm -f conftest.$ac_objext
7429 if { (ac_try="$ac_compile"
7430 case "(($ac_try" in
7431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432   *) ac_try_echo=$ac_try;;
7433 esac
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435   (eval "$ac_compile") 2>conftest.er1
7436   ac_status=$?
7437   grep -v '^ *+' conftest.er1 >conftest.err
7438   rm -f conftest.er1
7439   cat conftest.err >&5
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); } && {
7442          test -z "$ac_c_werror_flag" ||
7443          test ! -s conftest.err
7444        } && test -s conftest.$ac_objext; then
7445   ac_lo=$ac_mid; break
7446 else
7447   echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7449
7450         ac_hi=`expr '(' $ac_mid ')' - 1`
7451                         if test $ac_mid -le $ac_hi; then
7452                           ac_lo= ac_hi=
7453                           break
7454                         fi
7455                         ac_mid=`expr 2 '*' $ac_mid`
7456 fi
7457
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459   done
7460 else
7461   echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464         ac_lo= ac_hi=
7465 fi
7466
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 fi
7469
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 # Binary search between lo and hi bounds.
7472 while test "x$ac_lo" != "x$ac_hi"; do
7473   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7474   cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h.  */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h.  */
7480 #include <stddef.h>
7481 int
7482 main ()
7483 {
7484 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7485 test_array [0] = 0
7486
7487   ;
7488   return 0;
7489 }
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7493 case "(($ac_try" in
7494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495   *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498   (eval "$ac_compile") 2>conftest.er1
7499   ac_status=$?
7500   grep -v '^ *+' conftest.er1 >conftest.err
7501   rm -f conftest.er1
7502   cat conftest.err >&5
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); } && {
7505          test -z "$ac_c_werror_flag" ||
7506          test ! -s conftest.err
7507        } && test -s conftest.$ac_objext; then
7508   ac_hi=$ac_mid
7509 else
7510   echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7512
7513         ac_lo=`expr '(' $ac_mid ')' + 1`
7514 fi
7515
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 done
7518 case $ac_lo in
7519 ?*) res_hi=$ac_lo;;
7520 '') result=? ;;
7521 esac
7522 else
7523   cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h.  */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h.  */
7529 #include <stddef.h>
7530 static long int longval () { return ~(size_t)0 / 10; }
7531 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7532 #include <stdio.h>
7533 #include <stdlib.h>
7534 int
7535 main ()
7536 {
7537
7538   FILE *f = fopen ("conftest.val", "w");
7539   if (! f)
7540     return 1;
7541   if ((~(size_t)0 / 10) < 0)
7542     {
7543       long int i = longval ();
7544       if (i != (~(size_t)0 / 10))
7545         return 1;
7546       fprintf (f, "%ld\n", i);
7547     }
7548   else
7549     {
7550       unsigned long int i = ulongval ();
7551       if (i != (~(size_t)0 / 10))
7552         return 1;
7553       fprintf (f, "%lu\n", i);
7554     }
7555   return ferror (f) || fclose (f) != 0;
7556
7557   ;
7558   return 0;
7559 }
7560 _ACEOF
7561 rm -f conftest$ac_exeext
7562 if { (ac_try="$ac_link"
7563 case "(($ac_try" in
7564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565   *) ac_try_echo=$ac_try;;
7566 esac
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568   (eval "$ac_link") 2>&5
7569   ac_status=$?
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7572   { (case "(($ac_try" in
7573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574   *) ac_try_echo=$ac_try;;
7575 esac
7576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577   (eval "$ac_try") 2>&5
7578   ac_status=$?
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); }; }; then
7581   res_hi=`cat conftest.val`
7582 else
7583   echo "$as_me: program exited with status $ac_status" >&5
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587 ( exit $ac_status )
7588 result=?
7589 fi
7590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7591 fi
7592 rm -f conftest.val
7593
7594     if test "$cross_compiling" = yes; then
7595   # Depending upon the size, compute the lo and hi bounds.
7596 cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h.  */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h.  */
7602 #include <stddef.h>
7603 int
7604 main ()
7605 {
7606 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7607 test_array [0] = 0
7608
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 rm -f conftest.$ac_objext
7614 if { (ac_try="$ac_compile"
7615 case "(($ac_try" in
7616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617   *) ac_try_echo=$ac_try;;
7618 esac
7619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620   (eval "$ac_compile") 2>conftest.er1
7621   ac_status=$?
7622   grep -v '^ *+' conftest.er1 >conftest.err
7623   rm -f conftest.er1
7624   cat conftest.err >&5
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); } && {
7627          test -z "$ac_c_werror_flag" ||
7628          test ! -s conftest.err
7629        } && test -s conftest.$ac_objext; then
7630   ac_lo=0 ac_mid=0
7631   while :; do
7632     cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h.  */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h.  */
7638 #include <stddef.h>
7639 int
7640 main ()
7641 {
7642 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7643 test_array [0] = 0
7644
7645   ;
7646   return 0;
7647 }
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (ac_try="$ac_compile"
7651 case "(($ac_try" in
7652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653   *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656   (eval "$ac_compile") 2>conftest.er1
7657   ac_status=$?
7658   grep -v '^ *+' conftest.er1 >conftest.err
7659   rm -f conftest.er1
7660   cat conftest.err >&5
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } && {
7663          test -z "$ac_c_werror_flag" ||
7664          test ! -s conftest.err
7665        } && test -s conftest.$ac_objext; then
7666   ac_hi=$ac_mid; break
7667 else
7668   echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671         ac_lo=`expr $ac_mid + 1`
7672                         if test $ac_lo -le $ac_mid; then
7673                           ac_lo= ac_hi=
7674                           break
7675                         fi
7676                         ac_mid=`expr 2 '*' $ac_mid + 1`
7677 fi
7678
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680   done
7681 else
7682   echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7684
7685         cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h.  */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h.  */
7691 #include <stddef.h>
7692 int
7693 main ()
7694 {
7695 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7696 test_array [0] = 0
7697
7698   ;
7699   return 0;
7700 }
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7704 case "(($ac_try" in
7705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706   *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709   (eval "$ac_compile") 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } && {
7716          test -z "$ac_c_werror_flag" ||
7717          test ! -s conftest.err
7718        } && test -s conftest.$ac_objext; then
7719   ac_hi=-1 ac_mid=-1
7720   while :; do
7721     cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h.  */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h.  */
7727 #include <stddef.h>
7728 int
7729 main ()
7730 {
7731 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7732 test_array [0] = 0
7733
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext
7739 if { (ac_try="$ac_compile"
7740 case "(($ac_try" in
7741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742   *) ac_try_echo=$ac_try;;
7743 esac
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745   (eval "$ac_compile") 2>conftest.er1
7746   ac_status=$?
7747   grep -v '^ *+' conftest.er1 >conftest.err
7748   rm -f conftest.er1
7749   cat conftest.err >&5
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } && {
7752          test -z "$ac_c_werror_flag" ||
7753          test ! -s conftest.err
7754        } && test -s conftest.$ac_objext; then
7755   ac_lo=$ac_mid; break
7756 else
7757   echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760         ac_hi=`expr '(' $ac_mid ')' - 1`
7761                         if test $ac_mid -le $ac_hi; then
7762                           ac_lo= ac_hi=
7763                           break
7764                         fi
7765                         ac_mid=`expr 2 '*' $ac_mid`
7766 fi
7767
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769   done
7770 else
7771   echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774         ac_lo= ac_hi=
7775 fi
7776
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 fi
7779
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 # Binary search between lo and hi bounds.
7782 while test "x$ac_lo" != "x$ac_hi"; do
7783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7784   cat >conftest.$ac_ext <<_ACEOF
7785 /* confdefs.h.  */
7786 _ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h.  */
7790 #include <stddef.h>
7791 int
7792 main ()
7793 {
7794 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7795 test_array [0] = 0
7796
7797   ;
7798   return 0;
7799 }
7800 _ACEOF
7801 rm -f conftest.$ac_objext
7802 if { (ac_try="$ac_compile"
7803 case "(($ac_try" in
7804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805   *) ac_try_echo=$ac_try;;
7806 esac
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808   (eval "$ac_compile") 2>conftest.er1
7809   ac_status=$?
7810   grep -v '^ *+' conftest.er1 >conftest.err
7811   rm -f conftest.er1
7812   cat conftest.err >&5
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); } && {
7815          test -z "$ac_c_werror_flag" ||
7816          test ! -s conftest.err
7817        } && test -s conftest.$ac_objext; then
7818   ac_hi=$ac_mid
7819 else
7820   echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823         ac_lo=`expr '(' $ac_mid ')' + 1`
7824 fi
7825
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 done
7828 case $ac_lo in
7829 ?*) res_lo=$ac_lo;;
7830 '') result=? ;;
7831 esac
7832 else
7833   cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h.  */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h.  */
7839 #include <stddef.h>
7840 static long int longval () { return ~(size_t)0 % 10; }
7841 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7842 #include <stdio.h>
7843 #include <stdlib.h>
7844 int
7845 main ()
7846 {
7847
7848   FILE *f = fopen ("conftest.val", "w");
7849   if (! f)
7850     return 1;
7851   if ((~(size_t)0 % 10) < 0)
7852     {
7853       long int i = longval ();
7854       if (i != (~(size_t)0 % 10))
7855         return 1;
7856       fprintf (f, "%ld\n", i);
7857     }
7858   else
7859     {
7860       unsigned long int i = ulongval ();
7861       if (i != (~(size_t)0 % 10))
7862         return 1;
7863       fprintf (f, "%lu\n", i);
7864     }
7865   return ferror (f) || fclose (f) != 0;
7866
7867   ;
7868   return 0;
7869 }
7870 _ACEOF
7871 rm -f conftest$ac_exeext
7872 if { (ac_try="$ac_link"
7873 case "(($ac_try" in
7874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875   *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878   (eval "$ac_link") 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7882   { (case "(($ac_try" in
7883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884   *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887   (eval "$ac_try") 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }; }; then
7891   res_lo=`cat conftest.val`
7892 else
7893   echo "$as_me: program exited with status $ac_status" >&5
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897 ( exit $ac_status )
7898 result=?
7899 fi
7900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7901 fi
7902 rm -f conftest.val
7903
7904     if test "$cross_compiling" = yes; then
7905   # Depending upon the size, compute the lo and hi bounds.
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912 #include <stddef.h>
7913 int
7914 main ()
7915 {
7916 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7917 test_array [0] = 0
7918
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 rm -f conftest.$ac_objext
7924 if { (ac_try="$ac_compile"
7925 case "(($ac_try" in
7926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927   *) ac_try_echo=$ac_try;;
7928 esac
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930   (eval "$ac_compile") 2>conftest.er1
7931   ac_status=$?
7932   grep -v '^ *+' conftest.er1 >conftest.err
7933   rm -f conftest.er1
7934   cat conftest.err >&5
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); } && {
7937          test -z "$ac_c_werror_flag" ||
7938          test ! -s conftest.err
7939        } && test -s conftest.$ac_objext; then
7940   ac_lo=0 ac_mid=0
7941   while :; do
7942     cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948 #include <stddef.h>
7949 int
7950 main ()
7951 {
7952 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7953 test_array [0] = 0
7954
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (ac_try="$ac_compile"
7961 case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_compile") 2>conftest.er1
7967   ac_status=$?
7968   grep -v '^ *+' conftest.er1 >conftest.err
7969   rm -f conftest.er1
7970   cat conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } && {
7973          test -z "$ac_c_werror_flag" ||
7974          test ! -s conftest.err
7975        } && test -s conftest.$ac_objext; then
7976   ac_hi=$ac_mid; break
7977 else
7978   echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981         ac_lo=`expr $ac_mid + 1`
7982                         if test $ac_lo -le $ac_mid; then
7983                           ac_lo= ac_hi=
7984                           break
7985                         fi
7986                         ac_mid=`expr 2 '*' $ac_mid + 1`
7987 fi
7988
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990   done
7991 else
7992   echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995         cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h.  */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h.  */
8001 #include <stddef.h>
8002 int
8003 main ()
8004 {
8005 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8006 test_array [0] = 0
8007
8008   ;
8009   return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016   *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019   (eval "$ac_compile") 2>conftest.er1
8020   ac_status=$?
8021   grep -v '^ *+' conftest.er1 >conftest.err
8022   rm -f conftest.er1
8023   cat conftest.err >&5
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } && {
8026          test -z "$ac_c_werror_flag" ||
8027          test ! -s conftest.err
8028        } && test -s conftest.$ac_objext; then
8029   ac_hi=-1 ac_mid=-1
8030   while :; do
8031     cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h.  */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h.  */
8037 #include <stddef.h>
8038 int
8039 main ()
8040 {
8041 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8042 test_array [0] = 0
8043
8044   ;
8045   return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8050 case "(($ac_try" in
8051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052   *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055   (eval "$ac_compile") 2>conftest.er1
8056   ac_status=$?
8057   grep -v '^ *+' conftest.er1 >conftest.err
8058   rm -f conftest.er1
8059   cat conftest.err >&5
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } && {
8062          test -z "$ac_c_werror_flag" ||
8063          test ! -s conftest.err
8064        } && test -s conftest.$ac_objext; then
8065   ac_lo=$ac_mid; break
8066 else
8067   echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070         ac_hi=`expr '(' $ac_mid ')' - 1`
8071                         if test $ac_mid -le $ac_hi; then
8072                           ac_lo= ac_hi=
8073                           break
8074                         fi
8075                         ac_mid=`expr 2 '*' $ac_mid`
8076 fi
8077
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079   done
8080 else
8081   echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084         ac_lo= ac_hi=
8085 fi
8086
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 # Binary search between lo and hi bounds.
8092 while test "x$ac_lo" != "x$ac_hi"; do
8093   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8094   cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h.  */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h.  */
8100 #include <stddef.h>
8101 int
8102 main ()
8103 {
8104 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8105 test_array [0] = 0
8106
8107   ;
8108   return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext
8112 if { (ac_try="$ac_compile"
8113 case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118   (eval "$ac_compile") 2>conftest.er1
8119   ac_status=$?
8120   grep -v '^ *+' conftest.er1 >conftest.err
8121   rm -f conftest.er1
8122   cat conftest.err >&5
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } && {
8125          test -z "$ac_c_werror_flag" ||
8126          test ! -s conftest.err
8127        } && test -s conftest.$ac_objext; then
8128   ac_hi=$ac_mid
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133         ac_lo=`expr '(' $ac_mid ')' + 1`
8134 fi
8135
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 done
8138 case $ac_lo in
8139 ?*) fits_in_uint=$ac_lo;;
8140 '') result=? ;;
8141 esac
8142 else
8143   cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 #include <stddef.h>
8150 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8151 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8152 #include <stdio.h>
8153 #include <stdlib.h>
8154 int
8155 main ()
8156 {
8157
8158   FILE *f = fopen ("conftest.val", "w");
8159   if (! f)
8160     return 1;
8161   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8162     {
8163       long int i = longval ();
8164       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8165         return 1;
8166       fprintf (f, "%ld\n", i);
8167     }
8168   else
8169     {
8170       unsigned long int i = ulongval ();
8171       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8172         return 1;
8173       fprintf (f, "%lu\n", i);
8174     }
8175   return ferror (f) || fclose (f) != 0;
8176
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest$ac_exeext
8182 if { (ac_try="$ac_link"
8183 case "(($ac_try" in
8184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185   *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188   (eval "$ac_link") 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8192   { (case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197   (eval "$ac_try") 2>&5
8198   ac_status=$?
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); }; }; then
8201   fits_in_uint=`cat conftest.val`
8202 else
8203   echo "$as_me: program exited with status $ac_status" >&5
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 ( exit $ac_status )
8208 result=?
8209 fi
8210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 rm -f conftest.val
8213
8214     if test "$fits_in_uint" = 1; then
8215                   cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h.  */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h.  */
8221 #include <stddef.h>
8222         extern size_t foo;
8223         extern unsigned long foo;
8224
8225 int
8226 main ()
8227 {
8228
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8235 case "(($ac_try" in
8236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237   *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240   (eval "$ac_compile") 2>conftest.er1
8241   ac_status=$?
8242   grep -v '^ *+' conftest.er1 >conftest.err
8243   rm -f conftest.er1
8244   cat conftest.err >&5
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); } && {
8247          test -z "$ac_c_werror_flag" ||
8248          test ! -s conftest.err
8249        } && test -s conftest.$ac_objext; then
8250   fits_in_uint=0
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255
8256 fi
8257
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259     fi
8260     if test -z "$result"; then
8261       if test "$fits_in_uint" = 1; then
8262         result="$res_hi$res_lo"U
8263       else
8264         result="$res_hi$res_lo"UL
8265       fi
8266     else
8267             result='~(size_t)0'
8268     fi
8269   fi
8270   { echo "$as_me:$LINENO: result: $result" >&5
8271 echo "${ECHO_T}$result" >&6; }
8272   if test "$result" != yes; then
8273
8274 cat >>confdefs.h <<_ACEOF
8275 #define SIZE_MAX $result
8276 _ACEOF
8277
8278   fi
8279
8280
8281
8282
8283 for ac_header in stdint.h
8284 do
8285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8287   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 fi
8292 ac_res=`eval echo '${'$as_ac_Header'}'`
8293                { echo "$as_me:$LINENO: result: $ac_res" >&5
8294 echo "${ECHO_T}$ac_res" >&6; }
8295 else
8296   # Is the header compilable?
8297 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8299 cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h.  */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h.  */
8305 $ac_includes_default
8306 #include <$ac_header>
8307 _ACEOF
8308 rm -f conftest.$ac_objext
8309 if { (ac_try="$ac_compile"
8310 case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315   (eval "$ac_compile") 2>conftest.er1
8316   ac_status=$?
8317   grep -v '^ *+' conftest.er1 >conftest.err
8318   rm -f conftest.er1
8319   cat conftest.err >&5
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); } && {
8322          test -z "$ac_c_werror_flag" ||
8323          test ! -s conftest.err
8324        } && test -s conftest.$ac_objext; then
8325   ac_header_compiler=yes
8326 else
8327   echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330         ac_header_compiler=no
8331 fi
8332
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8335 echo "${ECHO_T}$ac_header_compiler" >&6; }
8336
8337 # Is the header present?
8338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8340 cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346 #include <$ac_header>
8347 _ACEOF
8348 if { (ac_try="$ac_cpp conftest.$ac_ext"
8349 case "(($ac_try" in
8350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351   *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8355   ac_status=$?
8356   grep -v '^ *+' conftest.er1 >conftest.err
8357   rm -f conftest.er1
8358   cat conftest.err >&5
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } >/dev/null && {
8361          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8362          test ! -s conftest.err
8363        }; then
8364   ac_header_preproc=yes
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369   ac_header_preproc=no
8370 fi
8371
8372 rm -f conftest.err conftest.$ac_ext
8373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8374 echo "${ECHO_T}$ac_header_preproc" >&6; }
8375
8376 # So?  What about this header?
8377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8378   yes:no: )
8379     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8383     ac_header_preproc=yes
8384     ;;
8385   no:yes:* )
8386     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8388     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8389 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8390     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8392     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8393 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8396     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8398
8399     ;;
8400 esac
8401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   eval "$as_ac_Header=\$ac_header_preproc"
8407 fi
8408 ac_res=`eval echo '${'$as_ac_Header'}'`
8409                { echo "$as_me:$LINENO: result: $ac_res" >&5
8410 echo "${ECHO_T}$ac_res" >&6; }
8411
8412 fi
8413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8414   cat >>confdefs.h <<_ACEOF
8415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8416 _ACEOF
8417
8418 fi
8419
8420 done
8421
8422
8423
8424       if test "X$prefix" = "XNONE"; then
8425     acl_final_prefix="$ac_default_prefix"
8426   else
8427     acl_final_prefix="$prefix"
8428   fi
8429   if test "X$exec_prefix" = "XNONE"; then
8430     acl_final_exec_prefix='${prefix}'
8431   else
8432     acl_final_exec_prefix="$exec_prefix"
8433   fi
8434   acl_save_prefix="$prefix"
8435   prefix="$acl_final_prefix"
8436   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8437   prefix="$acl_save_prefix"
8438
8439
8440 # Check whether --with-gnu-ld was given.
8441 if test "${with_gnu_ld+set}" = set; then
8442   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8443 else
8444   with_gnu_ld=no
8445 fi
8446
8447 # Prepare PATH_SEPARATOR.
8448 # The user is always right.
8449 if test "${PATH_SEPARATOR+set}" != set; then
8450   echo "#! /bin/sh" >conf$$.sh
8451   echo  "exit 0"   >>conf$$.sh
8452   chmod +x conf$$.sh
8453   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8454     PATH_SEPARATOR=';'
8455   else
8456     PATH_SEPARATOR=:
8457   fi
8458   rm -f conf$$.sh
8459 fi
8460 ac_prog=ld
8461 if test "$GCC" = yes; then
8462   # Check if gcc -print-prog-name=ld gives a path.
8463   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8464 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8465   case $host in
8466   *-*-mingw*)
8467     # gcc leaves a trailing carriage return which upsets mingw
8468     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8469   *)
8470     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8471   esac
8472   case $ac_prog in
8473     # Accept absolute paths.
8474     [\\/]* | [A-Za-z]:[\\/]*)
8475       re_direlt='/[^/][^/]*/\.\./'
8476       # Canonicalize the path of ld
8477       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8478       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8479         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8480       done
8481       test -z "$LD" && LD="$ac_prog"
8482       ;;
8483   "")
8484     # If it fails, then pretend we aren't using GCC.
8485     ac_prog=ld
8486     ;;
8487   *)
8488     # If it is relative, then search for the first ld in PATH.
8489     with_gnu_ld=unknown
8490     ;;
8491   esac
8492 elif test "$with_gnu_ld" = yes; then
8493   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8494 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8495 else
8496   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8497 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8498 fi
8499 if test "${acl_cv_path_LD+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   if test -z "$LD"; then
8503   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8504   for ac_dir in $PATH; do
8505     test -z "$ac_dir" && ac_dir=.
8506     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8507       acl_cv_path_LD="$ac_dir/$ac_prog"
8508       # Check to see if the program is GNU ld.  I'd rather use --version,
8509       # but apparently some GNU ld's only accept -v.
8510       # Break only if it was the GNU/non-GNU ld that we prefer.
8511       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8512       *GNU* | *'with BFD'*)
8513         test "$with_gnu_ld" != no && break ;;
8514       *)
8515         test "$with_gnu_ld" != yes && break ;;
8516       esac
8517     fi
8518   done
8519   IFS="$ac_save_ifs"
8520 else
8521   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8522 fi
8523 fi
8524
8525 LD="$acl_cv_path_LD"
8526 if test -n "$LD"; then
8527   { echo "$as_me:$LINENO: result: $LD" >&5
8528 echo "${ECHO_T}$LD" >&6; }
8529 else
8530   { echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6; }
8532 fi
8533 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8534 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8535    { (exit 1); exit 1; }; }
8536 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8537 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8538 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8542 case `$LD -v 2>&1 </dev/null` in
8543 *GNU* | *'with BFD'*)
8544   acl_cv_prog_gnu_ld=yes ;;
8545 *)
8546   acl_cv_prog_gnu_ld=no ;;
8547 esac
8548 fi
8549 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8550 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8551 with_gnu_ld=$acl_cv_prog_gnu_ld
8552
8553
8554
8555                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8556 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8557 if test "${acl_cv_rpath+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560
8561     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8562     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8563     . ./conftest.sh
8564     rm -f ./conftest.sh
8565     acl_cv_rpath=done
8566
8567 fi
8568 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8569 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8570   wl="$acl_cv_wl"
8571   libext="$acl_cv_libext"
8572   shlibext="$acl_cv_shlibext"
8573   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8574   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8575   hardcode_direct="$acl_cv_hardcode_direct"
8576   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8577     # Check whether --enable-rpath was given.
8578 if test "${enable_rpath+set}" = set; then
8579   enableval=$enable_rpath; :
8580 else
8581   enable_rpath=yes
8582 fi
8583
8584
8585
8586
8587
8588
8589
8590
8591     use_additional=yes
8592
8593   acl_save_prefix="$prefix"
8594   prefix="$acl_final_prefix"
8595   acl_save_exec_prefix="$exec_prefix"
8596   exec_prefix="$acl_final_exec_prefix"
8597
8598     eval additional_includedir=\"$includedir\"
8599     eval additional_libdir=\"$libdir\"
8600
8601   exec_prefix="$acl_save_exec_prefix"
8602   prefix="$acl_save_prefix"
8603
8604
8605 # Check whether --with-libiconv-prefix was given.
8606 if test "${with_libiconv_prefix+set}" = set; then
8607   withval=$with_libiconv_prefix;
8608     if test "X$withval" = "Xno"; then
8609       use_additional=no
8610     else
8611       if test "X$withval" = "X"; then
8612
8613   acl_save_prefix="$prefix"
8614   prefix="$acl_final_prefix"
8615   acl_save_exec_prefix="$exec_prefix"
8616   exec_prefix="$acl_final_exec_prefix"
8617
8618           eval additional_includedir=\"$includedir\"
8619           eval additional_libdir=\"$libdir\"
8620
8621   exec_prefix="$acl_save_exec_prefix"
8622   prefix="$acl_save_prefix"
8623
8624       else
8625         additional_includedir="$withval/include"
8626         additional_libdir="$withval/lib"
8627       fi
8628     fi
8629
8630 fi
8631
8632       LIBICONV=
8633   LTLIBICONV=
8634   INCICONV=
8635   rpathdirs=
8636   ltrpathdirs=
8637   names_already_handled=
8638   names_next_round='iconv '
8639   while test -n "$names_next_round"; do
8640     names_this_round="$names_next_round"
8641     names_next_round=
8642     for name in $names_this_round; do
8643       already_handled=
8644       for n in $names_already_handled; do
8645         if test "$n" = "$name"; then
8646           already_handled=yes
8647           break
8648         fi
8649       done
8650       if test -z "$already_handled"; then
8651         names_already_handled="$names_already_handled $name"
8652                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8653         eval value=\"\$HAVE_LIB$uppername\"
8654         if test -n "$value"; then
8655           if test "$value" = yes; then
8656             eval value=\"\$LIB$uppername\"
8657             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8658             eval value=\"\$LTLIB$uppername\"
8659             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8660           else
8661                                     :
8662           fi
8663         else
8664                               found_dir=
8665           found_la=
8666           found_so=
8667           found_a=
8668           if test $use_additional = yes; then
8669             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8670               found_dir="$additional_libdir"
8671               found_so="$additional_libdir/lib$name.$shlibext"
8672               if test -f "$additional_libdir/lib$name.la"; then
8673                 found_la="$additional_libdir/lib$name.la"
8674               fi
8675             else
8676               if test -f "$additional_libdir/lib$name.$libext"; then
8677                 found_dir="$additional_libdir"
8678                 found_a="$additional_libdir/lib$name.$libext"
8679                 if test -f "$additional_libdir/lib$name.la"; then
8680                   found_la="$additional_libdir/lib$name.la"
8681                 fi
8682               fi
8683             fi
8684           fi
8685           if test "X$found_dir" = "X"; then
8686             for x in $LDFLAGS $LTLIBICONV; do
8687
8688   acl_save_prefix="$prefix"
8689   prefix="$acl_final_prefix"
8690   acl_save_exec_prefix="$exec_prefix"
8691   exec_prefix="$acl_final_exec_prefix"
8692   eval x=\"$x\"
8693   exec_prefix="$acl_save_exec_prefix"
8694   prefix="$acl_save_prefix"
8695
8696               case "$x" in
8697                 -L*)
8698                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8699                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8700                     found_dir="$dir"
8701                     found_so="$dir/lib$name.$shlibext"
8702                     if test -f "$dir/lib$name.la"; then
8703                       found_la="$dir/lib$name.la"
8704                     fi
8705                   else
8706                     if test -f "$dir/lib$name.$libext"; then
8707                       found_dir="$dir"
8708                       found_a="$dir/lib$name.$libext"
8709                       if test -f "$dir/lib$name.la"; then
8710                         found_la="$dir/lib$name.la"
8711                       fi
8712                     fi
8713                   fi
8714                   ;;
8715               esac
8716               if test "X$found_dir" != "X"; then
8717                 break
8718               fi
8719             done
8720           fi
8721           if test "X$found_dir" != "X"; then
8722                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8723             if test "X$found_so" != "X"; then
8724                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8725                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8726               else
8727                                                                                 haveit=
8728                 for x in $ltrpathdirs; do
8729                   if test "X$x" = "X$found_dir"; then
8730                     haveit=yes
8731                     break
8732                   fi
8733                 done
8734                 if test -z "$haveit"; then
8735                   ltrpathdirs="$ltrpathdirs $found_dir"
8736                 fi
8737                                 if test "$hardcode_direct" = yes; then
8738                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8739                 else
8740                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8741                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8742                                                             haveit=
8743                     for x in $rpathdirs; do
8744                       if test "X$x" = "X$found_dir"; then
8745                         haveit=yes
8746                         break
8747                       fi
8748                     done
8749                     if test -z "$haveit"; then
8750                       rpathdirs="$rpathdirs $found_dir"
8751                     fi
8752                   else
8753                                                                                 haveit=
8754                     for x in $LDFLAGS $LIBICONV; do
8755
8756   acl_save_prefix="$prefix"
8757   prefix="$acl_final_prefix"
8758   acl_save_exec_prefix="$exec_prefix"
8759   exec_prefix="$acl_final_exec_prefix"
8760   eval x=\"$x\"
8761   exec_prefix="$acl_save_exec_prefix"
8762   prefix="$acl_save_prefix"
8763
8764                       if test "X$x" = "X-L$found_dir"; then
8765                         haveit=yes
8766                         break
8767                       fi
8768                     done
8769                     if test -z "$haveit"; then
8770                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8771                     fi
8772                     if test "$hardcode_minus_L" != no; then
8773                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8774                     else
8775                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8776                     fi
8777                   fi
8778                 fi
8779               fi
8780             else
8781               if test "X$found_a" != "X"; then
8782                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8783               else
8784                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8785               fi
8786             fi
8787                         additional_includedir=
8788             case "$found_dir" in
8789               */lib | */lib/)
8790                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8791                 additional_includedir="$basedir/include"
8792                 ;;
8793             esac
8794             if test "X$additional_includedir" != "X"; then
8795                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8796                 haveit=
8797                 if test "X$additional_includedir" = "X/usr/local/include"; then
8798                   if test -n "$GCC"; then
8799                     case $host_os in
8800                       linux*) haveit=yes;;
8801                     esac
8802                   fi
8803                 fi
8804                 if test -z "$haveit"; then
8805                   for x in $CPPFLAGS $INCICONV; do
8806
8807   acl_save_prefix="$prefix"
8808   prefix="$acl_final_prefix"
8809   acl_save_exec_prefix="$exec_prefix"
8810   exec_prefix="$acl_final_exec_prefix"
8811   eval x=\"$x\"
8812   exec_prefix="$acl_save_exec_prefix"
8813   prefix="$acl_save_prefix"
8814
8815                     if test "X$x" = "X-I$additional_includedir"; then
8816                       haveit=yes
8817                       break
8818                     fi
8819                   done
8820                   if test -z "$haveit"; then
8821                     if test -d "$additional_includedir"; then
8822                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8823                     fi
8824                   fi
8825                 fi
8826               fi
8827             fi
8828                         if test -n "$found_la"; then
8829                                                         save_libdir="$libdir"
8830               case "$found_la" in
8831                 */* | *\\*) . "$found_la" ;;
8832                 *) . "./$found_la" ;;
8833               esac
8834               libdir="$save_libdir"
8835                             for dep in $dependency_libs; do
8836                 case "$dep" in
8837                   -L*)
8838                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8839                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8840                       haveit=
8841                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8842                         if test -n "$GCC"; then
8843                           case $host_os in
8844                             linux*) haveit=yes;;
8845                           esac
8846                         fi
8847                       fi
8848                       if test -z "$haveit"; then
8849                         haveit=
8850                         for x in $LDFLAGS $LIBICONV; do
8851
8852   acl_save_prefix="$prefix"
8853   prefix="$acl_final_prefix"
8854   acl_save_exec_prefix="$exec_prefix"
8855   exec_prefix="$acl_final_exec_prefix"
8856   eval x=\"$x\"
8857   exec_prefix="$acl_save_exec_prefix"
8858   prefix="$acl_save_prefix"
8859
8860                           if test "X$x" = "X-L$additional_libdir"; then
8861                             haveit=yes
8862                             break
8863                           fi
8864                         done
8865                         if test -z "$haveit"; then
8866                           if test -d "$additional_libdir"; then
8867                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8868                           fi
8869                         fi
8870                         haveit=
8871                         for x in $LDFLAGS $LTLIBICONV; do
8872
8873   acl_save_prefix="$prefix"
8874   prefix="$acl_final_prefix"
8875   acl_save_exec_prefix="$exec_prefix"
8876   exec_prefix="$acl_final_exec_prefix"
8877   eval x=\"$x\"
8878   exec_prefix="$acl_save_exec_prefix"
8879   prefix="$acl_save_prefix"
8880
8881                           if test "X$x" = "X-L$additional_libdir"; then
8882                             haveit=yes
8883                             break
8884                           fi
8885                         done
8886                         if test -z "$haveit"; then
8887                           if test -d "$additional_libdir"; then
8888                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8889                           fi
8890                         fi
8891                       fi
8892                     fi
8893                     ;;
8894                   -R*)
8895                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8896                     if test "$enable_rpath" != no; then
8897                                                                   haveit=
8898                       for x in $rpathdirs; do
8899                         if test "X$x" = "X$dir"; then
8900                           haveit=yes
8901                           break
8902                         fi
8903                       done
8904                       if test -z "$haveit"; then
8905                         rpathdirs="$rpathdirs $dir"
8906                       fi
8907                                                                   haveit=
8908                       for x in $ltrpathdirs; do
8909                         if test "X$x" = "X$dir"; then
8910                           haveit=yes
8911                           break
8912                         fi
8913                       done
8914                       if test -z "$haveit"; then
8915                         ltrpathdirs="$ltrpathdirs $dir"
8916                       fi
8917                     fi
8918                     ;;
8919                   -l*)
8920                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8921                     ;;
8922                   *.la)
8923                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8924                     ;;
8925                   *)
8926                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8927                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8928                     ;;
8929                 esac
8930               done
8931             fi
8932           else
8933                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8934             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8935           fi
8936         fi
8937       fi
8938     done
8939   done
8940   if test "X$rpathdirs" != "X"; then
8941     if test -n "$hardcode_libdir_separator"; then
8942                         alldirs=
8943       for found_dir in $rpathdirs; do
8944         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8945       done
8946             acl_save_libdir="$libdir"
8947       libdir="$alldirs"
8948       eval flag=\"$hardcode_libdir_flag_spec\"
8949       libdir="$acl_save_libdir"
8950       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8951     else
8952             for found_dir in $rpathdirs; do
8953         acl_save_libdir="$libdir"
8954         libdir="$found_dir"
8955         eval flag=\"$hardcode_libdir_flag_spec\"
8956         libdir="$acl_save_libdir"
8957         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8958       done
8959     fi
8960   fi
8961   if test "X$ltrpathdirs" != "X"; then
8962             for found_dir in $ltrpathdirs; do
8963       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8964     done
8965   fi
8966
8967
8968
8969
8970
8971
8972
8973
8974   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8975 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8976 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8977   echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979   cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h.  */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h.  */
8985 $ac_includes_default
8986 typedef ptrdiff_t ac__type_new_;
8987 int
8988 main ()
8989 {
8990 if ((ac__type_new_ *) 0)
8991   return 0;
8992 if (sizeof (ac__type_new_))
8993   return 0;
8994   ;
8995   return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9000 case "(($ac_try" in
9001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002   *) ac_try_echo=$ac_try;;
9003 esac
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005   (eval "$ac_compile") 2>conftest.er1
9006   ac_status=$?
9007   grep -v '^ *+' conftest.er1 >conftest.err
9008   rm -f conftest.er1
9009   cat conftest.err >&5
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } && {
9012          test -z "$ac_c_werror_flag" ||
9013          test ! -s conftest.err
9014        } && test -s conftest.$ac_objext; then
9015   ac_cv_type_ptrdiff_t=yes
9016 else
9017   echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9019
9020         ac_cv_type_ptrdiff_t=no
9021 fi
9022
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 fi
9025 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9026 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9027 if test $ac_cv_type_ptrdiff_t = yes; then
9028   :
9029 else
9030
9031 cat >>confdefs.h <<\_ACEOF
9032 #define ptrdiff_t long
9033 _ACEOF
9034
9035
9036 fi
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9049 stdlib.h string.h unistd.h sys/param.h
9050 do
9051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9053   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 fi
9058 ac_res=`eval echo '${'$as_ac_Header'}'`
9059                { echo "$as_me:$LINENO: result: $ac_res" >&5
9060 echo "${ECHO_T}$ac_res" >&6; }
9061 else
9062   # Is the header compilable?
9063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h.  */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h.  */
9071 $ac_includes_default
9072 #include <$ac_header>
9073 _ACEOF
9074 rm -f conftest.$ac_objext
9075 if { (ac_try="$ac_compile"
9076 case "(($ac_try" in
9077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078   *) ac_try_echo=$ac_try;;
9079 esac
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081   (eval "$ac_compile") 2>conftest.er1
9082   ac_status=$?
9083   grep -v '^ *+' conftest.er1 >conftest.err
9084   rm -f conftest.er1
9085   cat conftest.err >&5
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); } && {
9088          test -z "$ac_c_werror_flag" ||
9089          test ! -s conftest.err
9090        } && test -s conftest.$ac_objext; then
9091   ac_header_compiler=yes
9092 else
9093   echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9095
9096         ac_header_compiler=no
9097 fi
9098
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9101 echo "${ECHO_T}$ac_header_compiler" >&6; }
9102
9103 # Is the header present?
9104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h.  */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h.  */
9112 #include <$ac_header>
9113 _ACEOF
9114 if { (ac_try="$ac_cpp conftest.$ac_ext"
9115 case "(($ac_try" in
9116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117   *) ac_try_echo=$ac_try;;
9118 esac
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9121   ac_status=$?
9122   grep -v '^ *+' conftest.er1 >conftest.err
9123   rm -f conftest.er1
9124   cat conftest.err >&5
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); } >/dev/null && {
9127          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9128          test ! -s conftest.err
9129        }; then
9130   ac_header_preproc=yes
9131 else
9132   echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135   ac_header_preproc=no
9136 fi
9137
9138 rm -f conftest.err conftest.$ac_ext
9139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9140 echo "${ECHO_T}$ac_header_preproc" >&6; }
9141
9142 # So?  What about this header?
9143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9144   yes:no: )
9145     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9149     ac_header_preproc=yes
9150     ;;
9151   no:yes:* )
9152     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9154     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9155 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9156     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9158     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9159 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9162     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9164
9165     ;;
9166 esac
9167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172   eval "$as_ac_Header=\$ac_header_preproc"
9173 fi
9174 ac_res=`eval echo '${'$as_ac_Header'}'`
9175                { echo "$as_me:$LINENO: result: $ac_res" >&5
9176 echo "${ECHO_T}$ac_res" >&6; }
9177
9178 fi
9179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180   cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182 _ACEOF
9183
9184 fi
9185
9186 done
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9212 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9213 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9214 __fsetlocking
9215 do
9216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9217 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9219 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222   cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h.  */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h.  */
9228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9230 #define $ac_func innocuous_$ac_func
9231
9232 /* System header to define __stub macros and hopefully few prototypes,
9233     which can conflict with char $ac_func (); below.
9234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235     <limits.h> exists even on freestanding compilers.  */
9236
9237 #ifdef __STDC__
9238 # include <limits.h>
9239 #else
9240 # include <assert.h>
9241 #endif
9242
9243 #undef $ac_func
9244
9245 /* Override any GCC internal prototype to avoid an error.
9246    Use char because int might match the return type of a GCC
9247    builtin and then its argument prototype would still apply.  */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 char $ac_func ();
9252 /* The GNU C library defines this for functions which it implements
9253     to always fail with ENOSYS.  Some functions are actually named
9254     something starting with __ and the normal name is an alias.  */
9255 #if defined __stub_$ac_func || defined __stub___$ac_func
9256 choke me
9257 #endif
9258
9259 int
9260 main ()
9261 {
9262 return $ac_func ();
9263   ;
9264   return 0;
9265 }
9266 _ACEOF
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (ac_try="$ac_link"
9269 case "(($ac_try" in
9270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271   *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274   (eval "$ac_link") 2>conftest.er1
9275   ac_status=$?
9276   grep -v '^ *+' conftest.er1 >conftest.err
9277   rm -f conftest.er1
9278   cat conftest.err >&5
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } && {
9281          test -z "$ac_c_werror_flag" ||
9282          test ! -s conftest.err
9283        } && test -s conftest$ac_exeext &&
9284        $as_test_x conftest$ac_exeext; then
9285   eval "$as_ac_var=yes"
9286 else
9287   echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9289
9290         eval "$as_ac_var=no"
9291 fi
9292
9293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9294       conftest$ac_exeext conftest.$ac_ext
9295 fi
9296 ac_res=`eval echo '${'$as_ac_var'}'`
9297                { echo "$as_me:$LINENO: result: $ac_res" >&5
9298 echo "${ECHO_T}$ac_res" >&6; }
9299 if test `eval echo '${'$as_ac_var'}'` = yes; then
9300   cat >>confdefs.h <<_ACEOF
9301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9302 _ACEOF
9303
9304 fi
9305 done
9306
9307
9308
9309   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9310 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9311 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9312   echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314   cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320 #include <stdio.h>
9321 int
9322 main ()
9323 {
9324
9325 #ifndef _snprintf
9326   char *p = (char *) _snprintf;
9327 #endif
9328
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 rm -f conftest.$ac_objext
9334 if { (ac_try="$ac_compile"
9335 case "(($ac_try" in
9336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337   *) ac_try_echo=$ac_try;;
9338 esac
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340   (eval "$ac_compile") 2>conftest.er1
9341   ac_status=$?
9342   grep -v '^ *+' conftest.er1 >conftest.err
9343   rm -f conftest.er1
9344   cat conftest.err >&5
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); } && {
9347          test -z "$ac_c_werror_flag" ||
9348          test ! -s conftest.err
9349        } && test -s conftest.$ac_objext; then
9350   ac_cv_have_decl__snprintf=yes
9351 else
9352   echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9354
9355         ac_cv_have_decl__snprintf=no
9356 fi
9357
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 fi
9360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9361 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9362   if test $ac_cv_have_decl__snprintf = yes; then
9363     gt_value=1
9364   else
9365     gt_value=0
9366   fi
9367
9368 cat >>confdefs.h <<_ACEOF
9369 #define HAVE_DECL__SNPRINTF $gt_value
9370 _ACEOF
9371
9372
9373
9374   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9375 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9376 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9377   echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379   cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h.  */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h.  */
9385 #include <stdio.h>
9386 int
9387 main ()
9388 {
9389
9390 #ifndef _snwprintf
9391   char *p = (char *) _snwprintf;
9392 #endif
9393
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 rm -f conftest.$ac_objext
9399 if { (ac_try="$ac_compile"
9400 case "(($ac_try" in
9401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402   *) ac_try_echo=$ac_try;;
9403 esac
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405   (eval "$ac_compile") 2>conftest.er1
9406   ac_status=$?
9407   grep -v '^ *+' conftest.er1 >conftest.err
9408   rm -f conftest.er1
9409   cat conftest.err >&5
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); } && {
9412          test -z "$ac_c_werror_flag" ||
9413          test ! -s conftest.err
9414        } && test -s conftest.$ac_objext; then
9415   ac_cv_have_decl__snwprintf=yes
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420         ac_cv_have_decl__snwprintf=no
9421 fi
9422
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 fi
9425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9426 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9427   if test $ac_cv_have_decl__snwprintf = yes; then
9428     gt_value=1
9429   else
9430     gt_value=0
9431   fi
9432
9433 cat >>confdefs.h <<_ACEOF
9434 #define HAVE_DECL__SNWPRINTF $gt_value
9435 _ACEOF
9436
9437
9438
9439
9440   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9441 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9442 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9443   echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445   cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h.  */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h.  */
9451 #include <stdio.h>
9452 int
9453 main ()
9454 {
9455
9456 #ifndef feof_unlocked
9457   char *p = (char *) feof_unlocked;
9458 #endif
9459
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext
9465 if { (ac_try="$ac_compile"
9466 case "(($ac_try" in
9467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468   *) ac_try_echo=$ac_try;;
9469 esac
9470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471   (eval "$ac_compile") 2>conftest.er1
9472   ac_status=$?
9473   grep -v '^ *+' conftest.er1 >conftest.err
9474   rm -f conftest.er1
9475   cat conftest.err >&5
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); } && {
9478          test -z "$ac_c_werror_flag" ||
9479          test ! -s conftest.err
9480        } && test -s conftest.$ac_objext; then
9481   ac_cv_have_decl_feof_unlocked=yes
9482 else
9483   echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486         ac_cv_have_decl_feof_unlocked=no
9487 fi
9488
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 fi
9491 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9492 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9493   if test $ac_cv_have_decl_feof_unlocked = yes; then
9494     gt_value=1
9495   else
9496     gt_value=0
9497   fi
9498
9499 cat >>confdefs.h <<_ACEOF
9500 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9501 _ACEOF
9502
9503
9504
9505   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9506 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9507 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510   cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516 #include <stdio.h>
9517 int
9518 main ()
9519 {
9520
9521 #ifndef fgets_unlocked
9522   char *p = (char *) fgets_unlocked;
9523 #endif
9524
9525   ;
9526   return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9531 case "(($ac_try" in
9532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533   *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536   (eval "$ac_compile") 2>conftest.er1
9537   ac_status=$?
9538   grep -v '^ *+' conftest.er1 >conftest.err
9539   rm -f conftest.er1
9540   cat conftest.err >&5
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } && {
9543          test -z "$ac_c_werror_flag" ||
9544          test ! -s conftest.err
9545        } && test -s conftest.$ac_objext; then
9546   ac_cv_have_decl_fgets_unlocked=yes
9547 else
9548   echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9550
9551         ac_cv_have_decl_fgets_unlocked=no
9552 fi
9553
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 fi
9556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9557 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9558   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9559     gt_value=1
9560   else
9561     gt_value=0
9562   fi
9563
9564 cat >>confdefs.h <<_ACEOF
9565 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9566 _ACEOF
9567
9568
9569
9570   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9571 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9572 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575   cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 #include <stdio.h>
9582 int
9583 main ()
9584 {
9585
9586 #ifndef getc_unlocked
9587   char *p = (char *) getc_unlocked;
9588 #endif
9589
9590   ;
9591   return 0;
9592 }
9593 _ACEOF
9594 rm -f conftest.$ac_objext
9595 if { (ac_try="$ac_compile"
9596 case "(($ac_try" in
9597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598   *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601   (eval "$ac_compile") 2>conftest.er1
9602   ac_status=$?
9603   grep -v '^ *+' conftest.er1 >conftest.err
9604   rm -f conftest.er1
9605   cat conftest.err >&5
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); } && {
9608          test -z "$ac_c_werror_flag" ||
9609          test ! -s conftest.err
9610        } && test -s conftest.$ac_objext; then
9611   ac_cv_have_decl_getc_unlocked=yes
9612 else
9613   echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616         ac_cv_have_decl_getc_unlocked=no
9617 fi
9618
9619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620 fi
9621 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9622 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9623   if test $ac_cv_have_decl_getc_unlocked = yes; then
9624     gt_value=1
9625   else
9626     gt_value=0
9627   fi
9628
9629 cat >>confdefs.h <<_ACEOF
9630 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9631 _ACEOF
9632
9633
9634
9635   case $gt_cv_func_printf_posix in
9636     *yes) HAVE_POSIX_PRINTF=1 ;;
9637     *) HAVE_POSIX_PRINTF=0 ;;
9638   esac
9639
9640   if test "$ac_cv_func_asprintf" = yes; then
9641     HAVE_ASPRINTF=1
9642   else
9643     HAVE_ASPRINTF=0
9644   fi
9645
9646   if test "$ac_cv_func_snprintf" = yes; then
9647     HAVE_SNPRINTF=1
9648   else
9649     HAVE_SNPRINTF=0
9650   fi
9651
9652   if test "$ac_cv_func_wprintf" = yes; then
9653     HAVE_WPRINTF=1
9654   else
9655     HAVE_WPRINTF=0
9656   fi
9657
9658
9659
9660
9661
9662
9663
9664           am_save_CPPFLAGS="$CPPFLAGS"
9665
9666   for element in $INCICONV; do
9667     haveit=
9668     for x in $CPPFLAGS; do
9669
9670   acl_save_prefix="$prefix"
9671   prefix="$acl_final_prefix"
9672   acl_save_exec_prefix="$exec_prefix"
9673   exec_prefix="$acl_final_exec_prefix"
9674   eval x=\"$x\"
9675   exec_prefix="$acl_save_exec_prefix"
9676   prefix="$acl_save_prefix"
9677
9678       if test "X$x" = "X$element"; then
9679         haveit=yes
9680         break
9681       fi
9682     done
9683     if test -z "$haveit"; then
9684       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9685     fi
9686   done
9687
9688
9689   { echo "$as_me:$LINENO: checking for iconv" >&5
9690 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9691 if test "${am_cv_func_iconv+set}" = set; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694
9695     am_cv_func_iconv="no, consider installing GNU libiconv"
9696     am_cv_lib_iconv=no
9697     cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703 #include <stdlib.h>
9704 #include <iconv.h>
9705 int
9706 main ()
9707 {
9708 iconv_t cd = iconv_open("","");
9709        iconv(cd,NULL,NULL,NULL,NULL);
9710        iconv_close(cd);
9711   ;
9712   return 0;
9713 }
9714 _ACEOF
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (ac_try="$ac_link"
9717 case "(($ac_try" in
9718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719   *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722   (eval "$ac_link") 2>conftest.er1
9723   ac_status=$?
9724   grep -v '^ *+' conftest.er1 >conftest.err
9725   rm -f conftest.er1
9726   cat conftest.err >&5
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } && {
9729          test -z "$ac_c_werror_flag" ||
9730          test ! -s conftest.err
9731        } && test -s conftest$ac_exeext &&
9732        $as_test_x conftest$ac_exeext; then
9733   am_cv_func_iconv=yes
9734 else
9735   echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738
9739 fi
9740
9741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9742       conftest$ac_exeext conftest.$ac_ext
9743     if test "$am_cv_func_iconv" != yes; then
9744       am_save_LIBS="$LIBS"
9745       LIBS="$LIBS $LIBICONV"
9746       cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h.  */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h.  */
9752 #include <stdlib.h>
9753 #include <iconv.h>
9754 int
9755 main ()
9756 {
9757 iconv_t cd = iconv_open("","");
9758          iconv(cd,NULL,NULL,NULL,NULL);
9759          iconv_close(cd);
9760   ;
9761   return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9766 case "(($ac_try" in
9767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768   *) ac_try_echo=$ac_try;;
9769 esac
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771   (eval "$ac_link") 2>conftest.er1
9772   ac_status=$?
9773   grep -v '^ *+' conftest.er1 >conftest.err
9774   rm -f conftest.er1
9775   cat conftest.err >&5
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); } && {
9778          test -z "$ac_c_werror_flag" ||
9779          test ! -s conftest.err
9780        } && test -s conftest$ac_exeext &&
9781        $as_test_x conftest$ac_exeext; then
9782   am_cv_lib_iconv=yes
9783         am_cv_func_iconv=yes
9784 else
9785   echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788
9789 fi
9790
9791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9792       conftest$ac_exeext conftest.$ac_ext
9793       LIBS="$am_save_LIBS"
9794     fi
9795
9796 fi
9797 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9798 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9799   if test "$am_cv_func_iconv" = yes; then
9800
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_ICONV 1
9803 _ACEOF
9804
9805   fi
9806   if test "$am_cv_lib_iconv" = yes; then
9807     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9808 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9809     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9810 echo "${ECHO_T}$LIBICONV" >&6; }
9811   else
9812             CPPFLAGS="$am_save_CPPFLAGS"
9813     LIBICONV=
9814     LTLIBICONV=
9815   fi
9816
9817
9818
9819   if test "$am_cv_func_iconv" = yes; then
9820     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9821 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9822     if test "${am_cv_proto_iconv+set}" = set; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825
9826       cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h.  */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h.  */
9832
9833 #include <stdlib.h>
9834 #include <iconv.h>
9835 extern
9836 #ifdef __cplusplus
9837 "C"
9838 #endif
9839 #if defined(__STDC__) || defined(__cplusplus)
9840 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9841 #else
9842 size_t iconv();
9843 #endif
9844
9845 int
9846 main ()
9847 {
9848
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext
9854 if { (ac_try="$ac_compile"
9855 case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_compile") 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } && {
9867          test -z "$ac_c_werror_flag" ||
9868          test ! -s conftest.err
9869        } && test -s conftest.$ac_objext; then
9870   am_cv_proto_iconv_arg1=""
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875         am_cv_proto_iconv_arg1="const"
9876 fi
9877
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879       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);"
9880 fi
9881
9882     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9883     { echo "$as_me:$LINENO: result: ${ac_t:-
9884          }$am_cv_proto_iconv" >&5
9885 echo "${ECHO_T}${ac_t:-
9886          }$am_cv_proto_iconv" >&6; }
9887
9888 cat >>confdefs.h <<_ACEOF
9889 #define ICONV_CONST $am_cv_proto_iconv_arg1
9890 _ACEOF
9891
9892   fi
9893
9894
9895   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9896 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9897 if test "${am_cv_langinfo_codeset+set}" = set; then
9898   echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900   cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h.  */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h.  */
9906 #include <langinfo.h>
9907 int
9908 main ()
9909 {
9910 char* cs = nl_langinfo(CODESET);
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_link") 2>conftest.er1
9923   ac_status=$?
9924   grep -v '^ *+' conftest.er1 >conftest.err
9925   rm -f conftest.er1
9926   cat conftest.err >&5
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } && {
9929          test -z "$ac_c_werror_flag" ||
9930          test ! -s conftest.err
9931        } && test -s conftest$ac_exeext &&
9932        $as_test_x conftest$ac_exeext; then
9933   am_cv_langinfo_codeset=yes
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938         am_cv_langinfo_codeset=no
9939 fi
9940
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942       conftest$ac_exeext conftest.$ac_ext
9943
9944 fi
9945 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9946 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9947   if test $am_cv_langinfo_codeset = yes; then
9948
9949 cat >>confdefs.h <<\_ACEOF
9950 #define HAVE_LANGINFO_CODESET 1
9951 _ACEOF
9952
9953   fi
9954
9955   if test $ac_cv_header_locale_h = yes; then
9956
9957   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9958 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9959 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9960   echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962   cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h.  */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h.  */
9968 #include <locale.h>
9969 int
9970 main ()
9971 {
9972 return LC_MESSAGES
9973   ;
9974   return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_link") 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } && {
9991          test -z "$ac_c_werror_flag" ||
9992          test ! -s conftest.err
9993        } && test -s conftest$ac_exeext &&
9994        $as_test_x conftest$ac_exeext; then
9995   am_cv_val_LC_MESSAGES=yes
9996 else
9997   echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000         am_cv_val_LC_MESSAGES=no
10001 fi
10002
10003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10004       conftest$ac_exeext conftest.$ac_ext
10005 fi
10006 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10007 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10008   if test $am_cv_val_LC_MESSAGES = yes; then
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define HAVE_LC_MESSAGES 1
10012 _ACEOF
10013
10014   fi
10015
10016   fi
10017
10018                       for ac_prog in bison
10019 do
10020   # Extract the first word of "$ac_prog", so it can be a program name with args.
10021 set dummy $ac_prog; ac_word=$2
10022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10024 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   if test -n "$INTLBISON"; then
10028   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10029 else
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10032 do
10033   IFS=$as_save_IFS
10034   test -z "$as_dir" && as_dir=.
10035   for ac_exec_ext in '' $ac_executable_extensions; do
10036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037     ac_cv_prog_INTLBISON="$ac_prog"
10038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10039     break 2
10040   fi
10041 done
10042 done
10043 IFS=$as_save_IFS
10044
10045 fi
10046 fi
10047 INTLBISON=$ac_cv_prog_INTLBISON
10048 if test -n "$INTLBISON"; then
10049   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10050 echo "${ECHO_T}$INTLBISON" >&6; }
10051 else
10052   { echo "$as_me:$LINENO: result: no" >&5
10053 echo "${ECHO_T}no" >&6; }
10054 fi
10055
10056
10057   test -n "$INTLBISON" && break
10058 done
10059
10060   if test -z "$INTLBISON"; then
10061     ac_verc_fail=yes
10062   else
10063         { echo "$as_me:$LINENO: checking version of bison" >&5
10064 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10065     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10066     case $ac_prog_version in
10067       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10068       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10069          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10070       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10071     esac
10072     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10073 echo "${ECHO_T}$ac_prog_version" >&6; }
10074   fi
10075   if test $ac_verc_fail = yes; then
10076     INTLBISON=:
10077   fi
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10095 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10096     # Check whether --enable-nls was given.
10097 if test "${enable_nls+set}" = set; then
10098   enableval=$enable_nls; USE_NLS=$enableval
10099 else
10100   USE_NLS=yes
10101 fi
10102
10103   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10104 echo "${ECHO_T}$USE_NLS" >&6; }
10105
10106
10107
10108
10109     BUILD_INCLUDED_LIBINTL=no
10110     USE_INCLUDED_LIBINTL=no
10111
10112   LIBINTL=
10113   LTLIBINTL=
10114   POSUB=
10115
10116     if test "$USE_NLS" = "yes"; then
10117     gt_use_preinstalled_gnugettext=no
10118
10119       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10120 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10121
10122 # Check whether --with-included-gettext was given.
10123 if test "${with_included_gettext+set}" = set; then
10124   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10125 else
10126   nls_cv_force_use_gnu_gettext=no
10127 fi
10128
10129       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10130 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10131
10132       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10133       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10134
10135
10136
10137
10138
10139
10140         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10141 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10142 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10143   echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145   cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h.  */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h.  */
10151 #include <libintl.h>
10152 extern int _nl_msg_cat_cntr;
10153 extern int *_nl_domain_bindings;
10154 int
10155 main ()
10156 {
10157 bindtextdomain ("", "");
10158 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10159   ;
10160   return 0;
10161 }
10162 _ACEOF
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167   *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170   (eval "$ac_link") 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } && {
10177          test -z "$ac_c_werror_flag" ||
10178          test ! -s conftest.err
10179        } && test -s conftest$ac_exeext &&
10180        $as_test_x conftest$ac_exeext; then
10181   gt_cv_func_gnugettext1_libc=yes
10182 else
10183   echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186         gt_cv_func_gnugettext1_libc=no
10187 fi
10188
10189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10190       conftest$ac_exeext conftest.$ac_ext
10191 fi
10192 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10193 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10194
10195         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10196
10197
10198
10199     use_additional=yes
10200
10201   acl_save_prefix="$prefix"
10202   prefix="$acl_final_prefix"
10203   acl_save_exec_prefix="$exec_prefix"
10204   exec_prefix="$acl_final_exec_prefix"
10205
10206     eval additional_includedir=\"$includedir\"
10207     eval additional_libdir=\"$libdir\"
10208
10209   exec_prefix="$acl_save_exec_prefix"
10210   prefix="$acl_save_prefix"
10211
10212
10213 # Check whether --with-libintl-prefix was given.
10214 if test "${with_libintl_prefix+set}" = set; then
10215   withval=$with_libintl_prefix;
10216     if test "X$withval" = "Xno"; then
10217       use_additional=no
10218     else
10219       if test "X$withval" = "X"; then
10220
10221   acl_save_prefix="$prefix"
10222   prefix="$acl_final_prefix"
10223   acl_save_exec_prefix="$exec_prefix"
10224   exec_prefix="$acl_final_exec_prefix"
10225
10226           eval additional_includedir=\"$includedir\"
10227           eval additional_libdir=\"$libdir\"
10228
10229   exec_prefix="$acl_save_exec_prefix"
10230   prefix="$acl_save_prefix"
10231
10232       else
10233         additional_includedir="$withval/include"
10234         additional_libdir="$withval/lib"
10235       fi
10236     fi
10237
10238 fi
10239
10240       LIBINTL=
10241   LTLIBINTL=
10242   INCINTL=
10243   rpathdirs=
10244   ltrpathdirs=
10245   names_already_handled=
10246   names_next_round='intl '
10247   while test -n "$names_next_round"; do
10248     names_this_round="$names_next_round"
10249     names_next_round=
10250     for name in $names_this_round; do
10251       already_handled=
10252       for n in $names_already_handled; do
10253         if test "$n" = "$name"; then
10254           already_handled=yes
10255           break
10256         fi
10257       done
10258       if test -z "$already_handled"; then
10259         names_already_handled="$names_already_handled $name"
10260                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10261         eval value=\"\$HAVE_LIB$uppername\"
10262         if test -n "$value"; then
10263           if test "$value" = yes; then
10264             eval value=\"\$LIB$uppername\"
10265             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10266             eval value=\"\$LTLIB$uppername\"
10267             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10268           else
10269                                     :
10270           fi
10271         else
10272                               found_dir=
10273           found_la=
10274           found_so=
10275           found_a=
10276           if test $use_additional = yes; then
10277             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10278               found_dir="$additional_libdir"
10279               found_so="$additional_libdir/lib$name.$shlibext"
10280               if test -f "$additional_libdir/lib$name.la"; then
10281                 found_la="$additional_libdir/lib$name.la"
10282               fi
10283             else
10284               if test -f "$additional_libdir/lib$name.$libext"; then
10285                 found_dir="$additional_libdir"
10286                 found_a="$additional_libdir/lib$name.$libext"
10287                 if test -f "$additional_libdir/lib$name.la"; then
10288                   found_la="$additional_libdir/lib$name.la"
10289                 fi
10290               fi
10291             fi
10292           fi
10293           if test "X$found_dir" = "X"; then
10294             for x in $LDFLAGS $LTLIBINTL; do
10295
10296   acl_save_prefix="$prefix"
10297   prefix="$acl_final_prefix"
10298   acl_save_exec_prefix="$exec_prefix"
10299   exec_prefix="$acl_final_exec_prefix"
10300   eval x=\"$x\"
10301   exec_prefix="$acl_save_exec_prefix"
10302   prefix="$acl_save_prefix"
10303
10304               case "$x" in
10305                 -L*)
10306                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10307                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10308                     found_dir="$dir"
10309                     found_so="$dir/lib$name.$shlibext"
10310                     if test -f "$dir/lib$name.la"; then
10311                       found_la="$dir/lib$name.la"
10312                     fi
10313                   else
10314                     if test -f "$dir/lib$name.$libext"; then
10315                       found_dir="$dir"
10316                       found_a="$dir/lib$name.$libext"
10317                       if test -f "$dir/lib$name.la"; then
10318                         found_la="$dir/lib$name.la"
10319                       fi
10320                     fi
10321                   fi
10322                   ;;
10323               esac
10324               if test "X$found_dir" != "X"; then
10325                 break
10326               fi
10327             done
10328           fi
10329           if test "X$found_dir" != "X"; then
10330                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10331             if test "X$found_so" != "X"; then
10332                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10333                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10334               else
10335                                                                                 haveit=
10336                 for x in $ltrpathdirs; do
10337                   if test "X$x" = "X$found_dir"; then
10338                     haveit=yes
10339                     break
10340                   fi
10341                 done
10342                 if test -z "$haveit"; then
10343                   ltrpathdirs="$ltrpathdirs $found_dir"
10344                 fi
10345                                 if test "$hardcode_direct" = yes; then
10346                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10347                 else
10348                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10349                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10350                                                             haveit=
10351                     for x in $rpathdirs; do
10352                       if test "X$x" = "X$found_dir"; then
10353                         haveit=yes
10354                         break
10355                       fi
10356                     done
10357                     if test -z "$haveit"; then
10358                       rpathdirs="$rpathdirs $found_dir"
10359                     fi
10360                   else
10361                                                                                 haveit=
10362                     for x in $LDFLAGS $LIBINTL; do
10363
10364   acl_save_prefix="$prefix"
10365   prefix="$acl_final_prefix"
10366   acl_save_exec_prefix="$exec_prefix"
10367   exec_prefix="$acl_final_exec_prefix"
10368   eval x=\"$x\"
10369   exec_prefix="$acl_save_exec_prefix"
10370   prefix="$acl_save_prefix"
10371
10372                       if test "X$x" = "X-L$found_dir"; then
10373                         haveit=yes
10374                         break
10375                       fi
10376                     done
10377                     if test -z "$haveit"; then
10378                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10379                     fi
10380                     if test "$hardcode_minus_L" != no; then
10381                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10382                     else
10383                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10384                     fi
10385                   fi
10386                 fi
10387               fi
10388             else
10389               if test "X$found_a" != "X"; then
10390                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10391               else
10392                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10393               fi
10394             fi
10395                         additional_includedir=
10396             case "$found_dir" in
10397               */lib | */lib/)
10398                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10399                 additional_includedir="$basedir/include"
10400                 ;;
10401             esac
10402             if test "X$additional_includedir" != "X"; then
10403                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10404                 haveit=
10405                 if test "X$additional_includedir" = "X/usr/local/include"; then
10406                   if test -n "$GCC"; then
10407                     case $host_os in
10408                       linux*) haveit=yes;;
10409                     esac
10410                   fi
10411                 fi
10412                 if test -z "$haveit"; then
10413                   for x in $CPPFLAGS $INCINTL; do
10414
10415   acl_save_prefix="$prefix"
10416   prefix="$acl_final_prefix"
10417   acl_save_exec_prefix="$exec_prefix"
10418   exec_prefix="$acl_final_exec_prefix"
10419   eval x=\"$x\"
10420   exec_prefix="$acl_save_exec_prefix"
10421   prefix="$acl_save_prefix"
10422
10423                     if test "X$x" = "X-I$additional_includedir"; then
10424                       haveit=yes
10425                       break
10426                     fi
10427                   done
10428                   if test -z "$haveit"; then
10429                     if test -d "$additional_includedir"; then
10430                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10431                     fi
10432                   fi
10433                 fi
10434               fi
10435             fi
10436                         if test -n "$found_la"; then
10437                                                         save_libdir="$libdir"
10438               case "$found_la" in
10439                 */* | *\\*) . "$found_la" ;;
10440                 *) . "./$found_la" ;;
10441               esac
10442               libdir="$save_libdir"
10443                             for dep in $dependency_libs; do
10444                 case "$dep" in
10445                   -L*)
10446                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10447                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10448                       haveit=
10449                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10450                         if test -n "$GCC"; then
10451                           case $host_os in
10452                             linux*) haveit=yes;;
10453                           esac
10454                         fi
10455                       fi
10456                       if test -z "$haveit"; then
10457                         haveit=
10458                         for x in $LDFLAGS $LIBINTL; do
10459
10460   acl_save_prefix="$prefix"
10461   prefix="$acl_final_prefix"
10462   acl_save_exec_prefix="$exec_prefix"
10463   exec_prefix="$acl_final_exec_prefix"
10464   eval x=\"$x\"
10465   exec_prefix="$acl_save_exec_prefix"
10466   prefix="$acl_save_prefix"
10467
10468                           if test "X$x" = "X-L$additional_libdir"; then
10469                             haveit=yes
10470                             break
10471                           fi
10472                         done
10473                         if test -z "$haveit"; then
10474                           if test -d "$additional_libdir"; then
10475                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10476                           fi
10477                         fi
10478                         haveit=
10479                         for x in $LDFLAGS $LTLIBINTL; do
10480
10481   acl_save_prefix="$prefix"
10482   prefix="$acl_final_prefix"
10483   acl_save_exec_prefix="$exec_prefix"
10484   exec_prefix="$acl_final_exec_prefix"
10485   eval x=\"$x\"
10486   exec_prefix="$acl_save_exec_prefix"
10487   prefix="$acl_save_prefix"
10488
10489                           if test "X$x" = "X-L$additional_libdir"; then
10490                             haveit=yes
10491                             break
10492                           fi
10493                         done
10494                         if test -z "$haveit"; then
10495                           if test -d "$additional_libdir"; then
10496                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10497                           fi
10498                         fi
10499                       fi
10500                     fi
10501                     ;;
10502                   -R*)
10503                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10504                     if test "$enable_rpath" != no; then
10505                                                                   haveit=
10506                       for x in $rpathdirs; do
10507                         if test "X$x" = "X$dir"; then
10508                           haveit=yes
10509                           break
10510                         fi
10511                       done
10512                       if test -z "$haveit"; then
10513                         rpathdirs="$rpathdirs $dir"
10514                       fi
10515                                                                   haveit=
10516                       for x in $ltrpathdirs; do
10517                         if test "X$x" = "X$dir"; then
10518                           haveit=yes
10519                           break
10520                         fi
10521                       done
10522                       if test -z "$haveit"; then
10523                         ltrpathdirs="$ltrpathdirs $dir"
10524                       fi
10525                     fi
10526                     ;;
10527                   -l*)
10528                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10529                     ;;
10530                   *.la)
10531                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10532                     ;;
10533                   *)
10534                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10535                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10536                     ;;
10537                 esac
10538               done
10539             fi
10540           else
10541                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10542             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10543           fi
10544         fi
10545       fi
10546     done
10547   done
10548   if test "X$rpathdirs" != "X"; then
10549     if test -n "$hardcode_libdir_separator"; then
10550                         alldirs=
10551       for found_dir in $rpathdirs; do
10552         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10553       done
10554             acl_save_libdir="$libdir"
10555       libdir="$alldirs"
10556       eval flag=\"$hardcode_libdir_flag_spec\"
10557       libdir="$acl_save_libdir"
10558       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10559     else
10560             for found_dir in $rpathdirs; do
10561         acl_save_libdir="$libdir"
10562         libdir="$found_dir"
10563         eval flag=\"$hardcode_libdir_flag_spec\"
10564         libdir="$acl_save_libdir"
10565         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10566       done
10567     fi
10568   fi
10569   if test "X$ltrpathdirs" != "X"; then
10570             for found_dir in $ltrpathdirs; do
10571       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10572     done
10573   fi
10574
10575           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10576 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10577 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10578   echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580   gt_save_CPPFLAGS="$CPPFLAGS"
10581             CPPFLAGS="$CPPFLAGS $INCINTL"
10582             gt_save_LIBS="$LIBS"
10583             LIBS="$LIBS $LIBINTL"
10584                         cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590 #include <libintl.h>
10591 extern int _nl_msg_cat_cntr;
10592 extern
10593 #ifdef __cplusplus
10594 "C"
10595 #endif
10596 const char *_nl_expand_alias ();
10597 int
10598 main ()
10599 {
10600 bindtextdomain ("", "");
10601 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (ac_try="$ac_link"
10608 case "(($ac_try" in
10609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610   *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613   (eval "$ac_link") 2>conftest.er1
10614   ac_status=$?
10615   grep -v '^ *+' conftest.er1 >conftest.err
10616   rm -f conftest.er1
10617   cat conftest.err >&5
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } && {
10620          test -z "$ac_c_werror_flag" ||
10621          test ! -s conftest.err
10622        } && test -s conftest$ac_exeext &&
10623        $as_test_x conftest$ac_exeext; then
10624   gt_cv_func_gnugettext1_libintl=yes
10625 else
10626   echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629         gt_cv_func_gnugettext1_libintl=no
10630 fi
10631
10632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633       conftest$ac_exeext conftest.$ac_ext
10634                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10635               LIBS="$LIBS $LIBICONV"
10636               cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h.  */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h.  */
10642 #include <libintl.h>
10643 extern int _nl_msg_cat_cntr;
10644 extern
10645 #ifdef __cplusplus
10646 "C"
10647 #endif
10648 const char *_nl_expand_alias ();
10649 int
10650 main ()
10651 {
10652 bindtextdomain ("", "");
10653 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (ac_try="$ac_link"
10660 case "(($ac_try" in
10661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662   *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665   (eval "$ac_link") 2>conftest.er1
10666   ac_status=$?
10667   grep -v '^ *+' conftest.er1 >conftest.err
10668   rm -f conftest.er1
10669   cat conftest.err >&5
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); } && {
10672          test -z "$ac_c_werror_flag" ||
10673          test ! -s conftest.err
10674        } && test -s conftest$ac_exeext &&
10675        $as_test_x conftest$ac_exeext; then
10676   LIBINTL="$LIBINTL $LIBICONV"
10677                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10678                 gt_cv_func_gnugettext1_libintl=yes
10679
10680 else
10681   echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10683
10684
10685 fi
10686
10687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10688       conftest$ac_exeext conftest.$ac_ext
10689             fi
10690             CPPFLAGS="$gt_save_CPPFLAGS"
10691             LIBS="$gt_save_LIBS"
10692 fi
10693 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10694 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10695         fi
10696
10697                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10698            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10699                 && test "$PACKAGE" != gettext-runtime \
10700                 && test "$PACKAGE" != gettext-tools; }; then
10701           gt_use_preinstalled_gnugettext=yes
10702         else
10703                     LIBINTL=
10704           LTLIBINTL=
10705           INCINTL=
10706         fi
10707
10708
10709         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10710                               nls_cv_use_gnu_gettext=yes
10711         fi
10712       fi
10713
10714       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10715                 BUILD_INCLUDED_LIBINTL=yes
10716         USE_INCLUDED_LIBINTL=yes
10717         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10718         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10719         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10720       fi
10721
10722       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10723          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10724                 CATOBJEXT=.gmo
10725       fi
10726
10727
10728     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10729        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10730
10731 cat >>confdefs.h <<\_ACEOF
10732 #define ENABLE_NLS 1
10733 _ACEOF
10734
10735     else
10736       USE_NLS=no
10737     fi
10738   fi
10739
10740   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10741 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10742   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10743 echo "${ECHO_T}$USE_NLS" >&6; }
10744   if test "$USE_NLS" = "yes"; then
10745     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10746 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10747     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10748       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10749         gt_source="external libintl"
10750       else
10751         gt_source="libc"
10752       fi
10753     else
10754       gt_source="included intl directory"
10755     fi
10756     { echo "$as_me:$LINENO: result: $gt_source" >&5
10757 echo "${ECHO_T}$gt_source" >&6; }
10758   fi
10759
10760   if test "$USE_NLS" = "yes"; then
10761
10762     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10763       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10764         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10765 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10766         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10767 echo "${ECHO_T}$LIBINTL" >&6; }
10768
10769   for element in $INCINTL; do
10770     haveit=
10771     for x in $CPPFLAGS; do
10772
10773   acl_save_prefix="$prefix"
10774   prefix="$acl_final_prefix"
10775   acl_save_exec_prefix="$exec_prefix"
10776   exec_prefix="$acl_final_exec_prefix"
10777   eval x=\"$x\"
10778   exec_prefix="$acl_save_exec_prefix"
10779   prefix="$acl_save_prefix"
10780
10781       if test "X$x" = "X$element"; then
10782         haveit=yes
10783         break
10784       fi
10785     done
10786     if test -z "$haveit"; then
10787       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10788     fi
10789   done
10790
10791       fi
10792
10793
10794 cat >>confdefs.h <<\_ACEOF
10795 #define HAVE_GETTEXT 1
10796 _ACEOF
10797
10798
10799 cat >>confdefs.h <<\_ACEOF
10800 #define HAVE_DCGETTEXT 1
10801 _ACEOF
10802
10803     fi
10804
10805         POSUB=po
10806   fi
10807
10808
10809             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10810       BUILD_INCLUDED_LIBINTL=yes
10811     fi
10812
10813
10814
10815
10816
10817         nls_cv_header_intl=
10818     nls_cv_header_libgt=
10819
10820         DATADIRNAME=share
10821
10822
10823         INSTOBJEXT=.mo
10824
10825
10826         GENCAT=gencat
10827
10828
10829         if test "$USE_INCLUDED_LIBINTL" = yes; then
10830       INTLOBJS="\$(GETTOBJS)"
10831     fi
10832
10833
10834         INTL_LIBTOOL_SUFFIX_PREFIX=
10835
10836
10837
10838     INTLLIBS="$LIBINTL"
10839
10840
10841
10842
10843
10844
10845
10846 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10847 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10848 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   cat >conftest.make <<\_ACEOF
10853 SHELL = /bin/sh
10854 all:
10855         @echo '@@@%%%=$(MAKE)=@@@%%%'
10856 _ACEOF
10857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10859   *@@@%%%=?*=@@@%%%*)
10860     eval ac_cv_prog_make_${ac_make}_set=yes;;
10861   *)
10862     eval ac_cv_prog_make_${ac_make}_set=no;;
10863 esac
10864 rm -f conftest.make
10865 fi
10866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10867   { echo "$as_me:$LINENO: result: yes" >&5
10868 echo "${ECHO_T}yes" >&6; }
10869   SET_MAKE=
10870 else
10871   { echo "$as_me:$LINENO: result: no" >&5
10872 echo "${ECHO_T}no" >&6; }
10873   SET_MAKE="MAKE=${MAKE-make}"
10874 fi
10875
10876 # Extract the first word of "ln", so it can be a program name with args.
10877 set dummy ln; ac_word=$2
10878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10880 if test "${ac_cv_path_LN+set}" = set; then
10881   echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883   case $LN in
10884   [\\/]* | ?:[\\/]*)
10885   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10886   ;;
10887   *)
10888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10890 do
10891   IFS=$as_save_IFS
10892   test -z "$as_dir" && as_dir=.
10893   for ac_exec_ext in '' $ac_executable_extensions; do
10894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10895     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10897     break 2
10898   fi
10899 done
10900 done
10901 IFS=$as_save_IFS
10902
10903   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10904   ;;
10905 esac
10906 fi
10907 LN=$ac_cv_path_LN
10908 if test -n "$LN"; then
10909   { echo "$as_me:$LINENO: result: $LN" >&5
10910 echo "${ECHO_T}$LN" >&6; }
10911 else
10912   { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10914 fi
10915
10916
10917 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10918 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10919 LN_S=$as_ln_s
10920 if test "$LN_S" = "ln -s"; then
10921   { echo "$as_me:$LINENO: result: yes" >&5
10922 echo "${ECHO_T}yes" >&6; }
10923 else
10924   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10925 echo "${ECHO_T}no, using $LN_S" >&6; }
10926 fi
10927
10928 # Extract the first word of "mv", so it can be a program name with args.
10929 set dummy mv; ac_word=$2
10930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10932 if test "${ac_cv_path_MV+set}" = set; then
10933   echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935   case $MV in
10936   [\\/]* | ?:[\\/]*)
10937   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10938   ;;
10939   *)
10940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10942 do
10943   IFS=$as_save_IFS
10944   test -z "$as_dir" && as_dir=.
10945   for ac_exec_ext in '' $ac_executable_extensions; do
10946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10947     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949     break 2
10950   fi
10951 done
10952 done
10953 IFS=$as_save_IFS
10954
10955   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10956   ;;
10957 esac
10958 fi
10959 MV=$ac_cv_path_MV
10960 if test -n "$MV"; then
10961   { echo "$as_me:$LINENO: result: $MV" >&5
10962 echo "${ECHO_T}$MV" >&6; }
10963 else
10964   { echo "$as_me:$LINENO: result: no" >&5
10965 echo "${ECHO_T}no" >&6; }
10966 fi
10967
10968
10969 # Extract the first word of "cp", so it can be a program name with args.
10970 set dummy cp; ac_word=$2
10971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10973 if test "${ac_cv_path_CP+set}" = set; then
10974   echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976   case $CP in
10977   [\\/]* | ?:[\\/]*)
10978   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10979   ;;
10980   *)
10981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10983 do
10984   IFS=$as_save_IFS
10985   test -z "$as_dir" && as_dir=.
10986   for ac_exec_ext in '' $ac_executable_extensions; do
10987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10988     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10990     break 2
10991   fi
10992 done
10993 done
10994 IFS=$as_save_IFS
10995
10996   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10997   ;;
10998 esac
10999 fi
11000 CP=$ac_cv_path_CP
11001 if test -n "$CP"; then
11002   { echo "$as_me:$LINENO: result: $CP" >&5
11003 echo "${ECHO_T}$CP" >&6; }
11004 else
11005   { echo "$as_me:$LINENO: result: no" >&5
11006 echo "${ECHO_T}no" >&6; }
11007 fi
11008
11009
11010 # Extract the first word of "rm", so it can be a program name with args.
11011 set dummy rm; ac_word=$2
11012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11014 if test "${ac_cv_path_RM+set}" = set; then
11015   echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017   case $RM in
11018   [\\/]* | ?:[\\/]*)
11019   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11020   ;;
11021   *)
11022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023 for as_dir in $PATH
11024 do
11025   IFS=$as_save_IFS
11026   test -z "$as_dir" && as_dir=.
11027   for ac_exec_ext in '' $ac_executable_extensions; do
11028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11029     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11031     break 2
11032   fi
11033 done
11034 done
11035 IFS=$as_save_IFS
11036
11037   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11038   ;;
11039 esac
11040 fi
11041 RM=$ac_cv_path_RM
11042 if test -n "$RM"; then
11043   { echo "$as_me:$LINENO: result: $RM" >&5
11044 echo "${ECHO_T}$RM" >&6; }
11045 else
11046   { echo "$as_me:$LINENO: result: no" >&5
11047 echo "${ECHO_T}no" >&6; }
11048 fi
11049
11050
11051 # Extract the first word of "chmod", so it can be a program name with args.
11052 set dummy chmod; ac_word=$2
11053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11055 if test "${ac_cv_path_CHMOD+set}" = set; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058   case $CHMOD in
11059   [\\/]* | ?:[\\/]*)
11060   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11061   ;;
11062   *)
11063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064 for as_dir in $PATH
11065 do
11066   IFS=$as_save_IFS
11067   test -z "$as_dir" && as_dir=.
11068   for ac_exec_ext in '' $ac_executable_extensions; do
11069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11070     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11072     break 2
11073   fi
11074 done
11075 done
11076 IFS=$as_save_IFS
11077
11078   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11079   ;;
11080 esac
11081 fi
11082 CHMOD=$ac_cv_path_CHMOD
11083 if test -n "$CHMOD"; then
11084   { echo "$as_me:$LINENO: result: $CHMOD" >&5
11085 echo "${ECHO_T}$CHMOD" >&6; }
11086 else
11087   { echo "$as_me:$LINENO: result: no" >&5
11088 echo "${ECHO_T}no" >&6; }
11089 fi
11090
11091
11092 for ac_prog in gawk mawk nawk awk
11093 do
11094   # Extract the first word of "$ac_prog", so it can be a program name with args.
11095 set dummy $ac_prog; ac_word=$2
11096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11098 if test "${ac_cv_prog_AWK+set}" = set; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101   if test -n "$AWK"; then
11102   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11103 else
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11106 do
11107   IFS=$as_save_IFS
11108   test -z "$as_dir" && as_dir=.
11109   for ac_exec_ext in '' $ac_executable_extensions; do
11110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111     ac_cv_prog_AWK="$ac_prog"
11112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11113     break 2
11114   fi
11115 done
11116 done
11117 IFS=$as_save_IFS
11118
11119 fi
11120 fi
11121 AWK=$ac_cv_prog_AWK
11122 if test -n "$AWK"; then
11123   { echo "$as_me:$LINENO: result: $AWK" >&5
11124 echo "${ECHO_T}$AWK" >&6; }
11125 else
11126   { echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6; }
11128 fi
11129
11130
11131   test -n "$AWK" && break
11132 done
11133
11134 { echo "$as_me:$LINENO: checking for egrep" >&5
11135 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11136 if test "${ac_cv_path_EGREP+set}" = set; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11140    then ac_cv_path_EGREP="$GREP -E"
11141    else
11142      # Extract the first word of "egrep" to use in msg output
11143 if test -z "$EGREP"; then
11144 set dummy egrep; ac_prog_name=$2
11145 if test "${ac_cv_path_EGREP+set}" = set; then
11146   echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148   ac_path_EGREP_found=false
11149 # Loop through the user's path and test for each of PROGNAME-LIST
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11152 do
11153   IFS=$as_save_IFS
11154   test -z "$as_dir" && as_dir=.
11155   for ac_prog in egrep; do
11156   for ac_exec_ext in '' $ac_executable_extensions; do
11157     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11158     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11159     # Check for GNU ac_path_EGREP and select it if it is found.
11160   # Check for GNU $ac_path_EGREP
11161 case `"$ac_path_EGREP" --version 2>&1` in
11162 *GNU*)
11163   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11164 *)
11165   ac_count=0
11166   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11167   while :
11168   do
11169     cat "conftest.in" "conftest.in" >"conftest.tmp"
11170     mv "conftest.tmp" "conftest.in"
11171     cp "conftest.in" "conftest.nl"
11172     echo 'EGREP' >> "conftest.nl"
11173     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11174     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11175     ac_count=`expr $ac_count + 1`
11176     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11177       # Best one so far, save it but keep looking for a better one
11178       ac_cv_path_EGREP="$ac_path_EGREP"
11179       ac_path_EGREP_max=$ac_count
11180     fi
11181     # 10*(2^10) chars as input seems more than enough
11182     test $ac_count -gt 10 && break
11183   done
11184   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11185 esac
11186
11187
11188     $ac_path_EGREP_found && break 3
11189   done
11190 done
11191
11192 done
11193 IFS=$as_save_IFS
11194
11195
11196 fi
11197
11198 EGREP="$ac_cv_path_EGREP"
11199 if test -z "$EGREP"; then
11200   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11201 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11202    { (exit 1); exit 1; }; }
11203 fi
11204
11205 else
11206   ac_cv_path_EGREP=$EGREP
11207 fi
11208
11209
11210    fi
11211 fi
11212 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11213 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11214  EGREP="$ac_cv_path_EGREP"
11215
11216
11217 # Extract the first word of "sed", so it can be a program name with args.
11218 set dummy sed; ac_word=$2
11219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11221 if test "${ac_cv_path_SED+set}" = set; then
11222   echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224   case $SED in
11225   [\\/]* | ?:[\\/]*)
11226   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11227   ;;
11228   *)
11229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11231 do
11232   IFS=$as_save_IFS
11233   test -z "$as_dir" && as_dir=.
11234   for ac_exec_ext in '' $ac_executable_extensions; do
11235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11236     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238     break 2
11239   fi
11240 done
11241 done
11242 IFS=$as_save_IFS
11243
11244   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11245   ;;
11246 esac
11247 fi
11248 SED=$ac_cv_path_SED
11249 if test -n "$SED"; then
11250   { echo "$as_me:$LINENO: result: $SED" >&5
11251 echo "${ECHO_T}$SED" >&6; }
11252 else
11253   { echo "$as_me:$LINENO: result: no" >&5
11254 echo "${ECHO_T}no" >&6; }
11255 fi
11256
11257
11258 # Extract the first word of "perl", so it can be a program name with args.
11259 set dummy perl; ac_word=$2
11260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11262 if test "${ac_cv_path_PERL+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265   case $PERL in
11266   [\\/]* | ?:[\\/]*)
11267   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11268   ;;
11269   *)
11270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11272 do
11273   IFS=$as_save_IFS
11274   test -z "$as_dir" && as_dir=.
11275   for ac_exec_ext in '' $ac_executable_extensions; do
11276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11277     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279     break 2
11280   fi
11281 done
11282 done
11283 IFS=$as_save_IFS
11284
11285   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11286   ;;
11287 esac
11288 fi
11289 PERL=$ac_cv_path_PERL
11290 if test -n "$PERL"; then
11291   { echo "$as_me:$LINENO: result: $PERL" >&5
11292 echo "${ECHO_T}$PERL" >&6; }
11293 else
11294   { echo "$as_me:$LINENO: result: no" >&5
11295 echo "${ECHO_T}no" >&6; }
11296 fi
11297
11298
11299 # Extract the first word of "ldconfig", so it can be a program name with args.
11300 set dummy ldconfig; ac_word=$2
11301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11303 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11304   echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306   case $LDCONFIG in
11307   [\\/]* | ?:[\\/]*)
11308   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11309   ;;
11310   *)
11311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314   IFS=$as_save_IFS
11315   test -z "$as_dir" && as_dir=.
11316   for ac_exec_ext in '' $ac_executable_extensions; do
11317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11318     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320     break 2
11321   fi
11322 done
11323 done
11324 IFS=$as_save_IFS
11325
11326   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11327   ;;
11328 esac
11329 fi
11330 LDCONFIG=$ac_cv_path_LDCONFIG
11331 if test -n "$LDCONFIG"; then
11332   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11333 echo "${ECHO_T}$LDCONFIG" >&6; }
11334 else
11335   { echo "$as_me:$LINENO: result: no" >&5
11336 echo "${ECHO_T}no" >&6; }
11337 fi
11338
11339
11340 if test -n "$ac_tool_prefix"; then
11341   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11342 set dummy ${ac_tool_prefix}ar; ac_word=$2
11343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11345 if test "${ac_cv_prog_AR+set}" = set; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   if test -n "$AR"; then
11349   ac_cv_prog_AR="$AR" # Let the user override the test.
11350 else
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11353 do
11354   IFS=$as_save_IFS
11355   test -z "$as_dir" && as_dir=.
11356   for ac_exec_ext in '' $ac_executable_extensions; do
11357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358     ac_cv_prog_AR="${ac_tool_prefix}ar"
11359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360     break 2
11361   fi
11362 done
11363 done
11364 IFS=$as_save_IFS
11365
11366 fi
11367 fi
11368 AR=$ac_cv_prog_AR
11369 if test -n "$AR"; then
11370   { echo "$as_me:$LINENO: result: $AR" >&5
11371 echo "${ECHO_T}$AR" >&6; }
11372 else
11373   { echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6; }
11375 fi
11376
11377
11378 fi
11379 if test -z "$ac_cv_prog_AR"; then
11380   ac_ct_AR=$AR
11381   # Extract the first word of "ar", so it can be a program name with args.
11382 set dummy ar; ac_word=$2
11383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11385 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   if test -n "$ac_ct_AR"; then
11389   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396   for ac_exec_ext in '' $ac_executable_extensions; do
11397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398     ac_cv_prog_ac_ct_AR="ar"
11399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11409 if test -n "$ac_ct_AR"; then
11410   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11411 echo "${ECHO_T}$ac_ct_AR" >&6; }
11412 else
11413   { echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6; }
11415 fi
11416
11417   if test "x$ac_ct_AR" = x; then
11418     AR="ar"
11419   else
11420     case $cross_compiling:$ac_tool_warned in
11421 yes:)
11422 { echo "$as_me:$LINENO: 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." >&5
11425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11426 whose name does not start with the host triplet.  If you think this
11427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11428 ac_tool_warned=yes ;;
11429 esac
11430     AR=$ac_ct_AR
11431   fi
11432 else
11433   AR="$ac_cv_prog_AR"
11434 fi
11435
11436 if test -n "$ac_tool_prefix"; then
11437   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11438 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11441 if test "${ac_cv_prog_RANLIB+set}" = set; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   if test -n "$RANLIB"; then
11445   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11446 else
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11449 do
11450   IFS=$as_save_IFS
11451   test -z "$as_dir" && as_dir=.
11452   for ac_exec_ext in '' $ac_executable_extensions; do
11453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11456     break 2
11457   fi
11458 done
11459 done
11460 IFS=$as_save_IFS
11461
11462 fi
11463 fi
11464 RANLIB=$ac_cv_prog_RANLIB
11465 if test -n "$RANLIB"; then
11466   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11467 echo "${ECHO_T}$RANLIB" >&6; }
11468 else
11469   { echo "$as_me:$LINENO: result: no" >&5
11470 echo "${ECHO_T}no" >&6; }
11471 fi
11472
11473
11474 fi
11475 if test -z "$ac_cv_prog_RANLIB"; then
11476   ac_ct_RANLIB=$RANLIB
11477   # Extract the first word of "ranlib", so it can be a program name with args.
11478 set dummy ranlib; ac_word=$2
11479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11481 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11482   echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484   if test -n "$ac_ct_RANLIB"; then
11485   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11486 else
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11489 do
11490   IFS=$as_save_IFS
11491   test -z "$as_dir" && as_dir=.
11492   for ac_exec_ext in '' $ac_executable_extensions; do
11493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11494     ac_cv_prog_ac_ct_RANLIB="ranlib"
11495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11496     break 2
11497   fi
11498 done
11499 done
11500 IFS=$as_save_IFS
11501
11502 fi
11503 fi
11504 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11505 if test -n "$ac_ct_RANLIB"; then
11506   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11507 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11508 else
11509   { echo "$as_me:$LINENO: result: no" >&5
11510 echo "${ECHO_T}no" >&6; }
11511 fi
11512
11513   if test "x$ac_ct_RANLIB" = x; then
11514     RANLIB=":"
11515   else
11516     case $cross_compiling:$ac_tool_warned in
11517 yes:)
11518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11519 whose name does not start with the host triplet.  If you think this
11520 configuration is useful to you, please write to autoconf@gnu.org." >&5
11521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11522 whose name does not start with the host triplet.  If you think this
11523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11524 ac_tool_warned=yes ;;
11525 esac
11526     RANLIB=$ac_ct_RANLIB
11527   fi
11528 else
11529   RANLIB="$ac_cv_prog_RANLIB"
11530 fi
11531
11532 if test -n "$ac_tool_prefix"; then
11533   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11534 set dummy ${ac_tool_prefix}strip; ac_word=$2
11535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11537 if test "${ac_cv_prog_STRIP+set}" = set; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540   if test -n "$STRIP"; then
11541   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11542 else
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11545 do
11546   IFS=$as_save_IFS
11547   test -z "$as_dir" && as_dir=.
11548   for ac_exec_ext in '' $ac_executable_extensions; do
11549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11550     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11552     break 2
11553   fi
11554 done
11555 done
11556 IFS=$as_save_IFS
11557
11558 fi
11559 fi
11560 STRIP=$ac_cv_prog_STRIP
11561 if test -n "$STRIP"; then
11562   { echo "$as_me:$LINENO: result: $STRIP" >&5
11563 echo "${ECHO_T}$STRIP" >&6; }
11564 else
11565   { echo "$as_me:$LINENO: result: no" >&5
11566 echo "${ECHO_T}no" >&6; }
11567 fi
11568
11569
11570 fi
11571 if test -z "$ac_cv_prog_STRIP"; then
11572   ac_ct_STRIP=$STRIP
11573   # Extract the first word of "strip", so it can be a program name with args.
11574 set dummy strip; ac_word=$2
11575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11577 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580   if test -n "$ac_ct_STRIP"; then
11581   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11582 else
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586   IFS=$as_save_IFS
11587   test -z "$as_dir" && as_dir=.
11588   for ac_exec_ext in '' $ac_executable_extensions; do
11589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590     ac_cv_prog_ac_ct_STRIP="strip"
11591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11592     break 2
11593   fi
11594 done
11595 done
11596 IFS=$as_save_IFS
11597
11598 fi
11599 fi
11600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11601 if test -n "$ac_ct_STRIP"; then
11602   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11603 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11604 else
11605   { echo "$as_me:$LINENO: result: no" >&5
11606 echo "${ECHO_T}no" >&6; }
11607 fi
11608
11609   if test "x$ac_ct_STRIP" = x; then
11610     STRIP=":"
11611   else
11612     case $cross_compiling:$ac_tool_warned in
11613 yes:)
11614 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11615 whose name does not start with the host triplet.  If you think this
11616 configuration is useful to you, please write to autoconf@gnu.org." >&5
11617 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11618 whose name does not start with the host triplet.  If you think this
11619 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11620 ac_tool_warned=yes ;;
11621 esac
11622     STRIP=$ac_ct_STRIP
11623   fi
11624 else
11625   STRIP="$ac_cv_prog_STRIP"
11626 fi
11627
11628 # Extract the first word of "makeinfo", so it can be a program name with args.
11629 set dummy makeinfo; ac_word=$2
11630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11632 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635   if test -n "$MAKEINFO"; then
11636   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11637 else
11638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639 for as_dir in $PATH
11640 do
11641   IFS=$as_save_IFS
11642   test -z "$as_dir" && as_dir=.
11643   for ac_exec_ext in '' $ac_executable_extensions; do
11644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11645     ac_cv_prog_MAKEINFO="makeinfo"
11646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11647     break 2
11648   fi
11649 done
11650 done
11651 IFS=$as_save_IFS
11652
11653 fi
11654 fi
11655 MAKEINFO=$ac_cv_prog_MAKEINFO
11656 if test -n "$MAKEINFO"; then
11657   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11658 echo "${ECHO_T}$MAKEINFO" >&6; }
11659 else
11660   { echo "$as_me:$LINENO: result: no" >&5
11661 echo "${ECHO_T}no" >&6; }
11662 fi
11663
11664
11665 if test "_$MAKEINFO" = "_"; then
11666     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11667 else
11668     case "$MAKEINFO" in
11669       */missing.*)
11670         { echo "$as_me:$LINENO: WARNING:
11671 *** Makeinfo is missing. Info documentation will not be built." >&5
11672 echo "$as_me: WARNING:
11673 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11674         ;;
11675       *)
11676         ;;
11677     esac
11678 fi
11679
11680 # Find a good install program.  We prefer a C program (faster),
11681 # so one script is as good as another.  But avoid the broken or
11682 # incompatible versions:
11683 # SysV /etc/install, /usr/sbin/install
11684 # SunOS /usr/etc/install
11685 # IRIX /sbin/install
11686 # AIX /bin/install
11687 # AmigaOS /C/install, which installs bootblocks on floppy discs
11688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11691 # OS/2's system install, which has a completely different semantic
11692 # ./install, which can be erroneously created by make from ./install.sh.
11693 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11694 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11695 if test -z "$INSTALL"; then
11696 if test "${ac_cv_path_install+set}" = set; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
11701 do
11702   IFS=$as_save_IFS
11703   test -z "$as_dir" && as_dir=.
11704   # Account for people who put trailing slashes in PATH elements.
11705 case $as_dir/ in
11706   ./ | .// | /cC/* | \
11707   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11708   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11709   /usr/ucb/* ) ;;
11710   *)
11711     # OSF1 and SCO ODT 3.0 have their own names for install.
11712     # Don't use installbsd from OSF since it installs stuff as root
11713     # by default.
11714     for ac_prog in ginstall scoinst install; do
11715       for ac_exec_ext in '' $ac_executable_extensions; do
11716         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11717           if test $ac_prog = install &&
11718             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11719             # AIX install.  It has an incompatible calling convention.
11720             :
11721           elif test $ac_prog = install &&
11722             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11723             # program-specific install script used by HP pwplus--don't use.
11724             :
11725           else
11726             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11727             break 3
11728           fi
11729         fi
11730       done
11731     done
11732     ;;
11733 esac
11734 done
11735 IFS=$as_save_IFS
11736
11737
11738 fi
11739   if test "${ac_cv_path_install+set}" = set; then
11740     INSTALL=$ac_cv_path_install
11741   else
11742     # As a last resort, use the slow shell script.  Don't cache a
11743     # value for INSTALL within a source directory, because that will
11744     # break other packages using the cache if that directory is
11745     # removed, or if the value is a relative name.
11746     INSTALL=$ac_install_sh
11747   fi
11748 fi
11749 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11750 echo "${ECHO_T}$INSTALL" >&6; }
11751
11752 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11753 # It thinks the first close brace ends the variable substitution.
11754 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11755
11756 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11757
11758 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11759
11760 # See if we need a separate native compiler.
11761 if test $cross_compiling = no; then
11762   BUILD_CC="$CC"
11763
11764 else
11765   for ac_prog in gcc cc
11766 do
11767   # Extract the first word of "$ac_prog", so it can be a program name with args.
11768 set dummy $ac_prog; ac_word=$2
11769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11771 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774   if test -n "$BUILD_CC"; then
11775   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11776 else
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11779 do
11780   IFS=$as_save_IFS
11781   test -z "$as_dir" && as_dir=.
11782   for ac_exec_ext in '' $ac_executable_extensions; do
11783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11784     ac_cv_prog_BUILD_CC="$ac_prog"
11785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11786     break 2
11787   fi
11788 done
11789 done
11790 IFS=$as_save_IFS
11791
11792 fi
11793 fi
11794 BUILD_CC=$ac_cv_prog_BUILD_CC
11795 if test -n "$BUILD_CC"; then
11796   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11797 echo "${ECHO_T}$BUILD_CC" >&6; }
11798 else
11799   { echo "$as_me:$LINENO: result: no" >&5
11800 echo "${ECHO_T}no" >&6; }
11801 fi
11802
11803
11804   test -n "$BUILD_CC" && break
11805 done
11806
11807 fi
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.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
11844 do
11845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11847   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11850   echo $ECHO_N "(cached) $ECHO_C" >&6
11851 fi
11852 ac_res=`eval echo '${'$as_ac_Header'}'`
11853                { echo "$as_me:$LINENO: result: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11855 else
11856   # Is the header compilable?
11857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865 $ac_includes_default
11866 #include <$ac_header>
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (ac_try="$ac_compile"
11870 case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875   (eval "$ac_compile") 2>conftest.er1
11876   ac_status=$?
11877   grep -v '^ *+' conftest.er1 >conftest.err
11878   rm -f conftest.er1
11879   cat conftest.err >&5
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); } && {
11882          test -z "$ac_c_werror_flag" ||
11883          test ! -s conftest.err
11884        } && test -s conftest.$ac_objext; then
11885   ac_header_compiler=yes
11886 else
11887   echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890         ac_header_compiler=no
11891 fi
11892
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11895 echo "${ECHO_T}$ac_header_compiler" >&6; }
11896
11897 # Is the header present?
11898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h.  */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h.  */
11906 #include <$ac_header>
11907 _ACEOF
11908 if { (ac_try="$ac_cpp conftest.$ac_ext"
11909 case "(($ac_try" in
11910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911   *) ac_try_echo=$ac_try;;
11912 esac
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11915   ac_status=$?
11916   grep -v '^ *+' conftest.er1 >conftest.err
11917   rm -f conftest.er1
11918   cat conftest.err >&5
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); } >/dev/null && {
11921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11922          test ! -s conftest.err
11923        }; then
11924   ac_header_preproc=yes
11925 else
11926   echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929   ac_header_preproc=no
11930 fi
11931
11932 rm -f conftest.err conftest.$ac_ext
11933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11934 echo "${ECHO_T}$ac_header_preproc" >&6; }
11935
11936 # So?  What about this header?
11937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11938   yes:no: )
11939     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11943     ac_header_preproc=yes
11944     ;;
11945   no:yes:* )
11946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11948     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11949 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11950     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11952     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11953 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11956     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11958
11959     ;;
11960 esac
11961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11964   echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966   eval "$as_ac_Header=\$ac_header_preproc"
11967 fi
11968 ac_res=`eval echo '${'$as_ac_Header'}'`
11969                { echo "$as_me:$LINENO: result: $ac_res" >&5
11970 echo "${ECHO_T}$ac_res" >&6; }
11971
11972 fi
11973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11974   cat >>confdefs.h <<_ACEOF
11975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11976 _ACEOF
11977
11978 fi
11979
11980 done
11981
11982
11983
11984 for ac_header in sys/disk.h sys/mount.h
11985 do
11986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990   echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992   cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h.  */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h.  */
11998
11999 #if HAVE_SYS_QUEUE_H
12000 #include <sys/queue.h>
12001 #endif
12002
12003
12004 #include <$ac_header>
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010   *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013   (eval "$ac_compile") 2>conftest.er1
12014   ac_status=$?
12015   grep -v '^ *+' conftest.er1 >conftest.err
12016   rm -f conftest.er1
12017   cat conftest.err >&5
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); } && {
12020          test -z "$ac_c_werror_flag" ||
12021          test ! -s conftest.err
12022        } && test -s conftest.$ac_objext; then
12023   eval "$as_ac_Header=yes"
12024 else
12025   echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028         eval "$as_ac_Header=no"
12029 fi
12030
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032 fi
12033 ac_res=`eval echo '${'$as_ac_Header'}'`
12034                { echo "$as_me:$LINENO: result: $ac_res" >&5
12035 echo "${ECHO_T}$ac_res" >&6; }
12036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12037   cat >>confdefs.h <<_ACEOF
12038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12039 _ACEOF
12040
12041 fi
12042
12043 done
12044
12045
12046 for ac_header in net/if.h
12047 do
12048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052   echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054   cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060
12061 #if HAVE_SYS_TYPES_H
12062 #include <sys/types.h>
12063 #endif
12064 #if HAVE_SYS_SOCKET
12065 #include <sys/socket.h>
12066 #endif
12067
12068
12069 #include <$ac_header>
12070 _ACEOF
12071 rm -f conftest.$ac_objext
12072 if { (ac_try="$ac_compile"
12073 case "(($ac_try" in
12074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075   *) ac_try_echo=$ac_try;;
12076 esac
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078   (eval "$ac_compile") 2>conftest.er1
12079   ac_status=$?
12080   grep -v '^ *+' conftest.er1 >conftest.err
12081   rm -f conftest.er1
12082   cat conftest.err >&5
12083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); } && {
12085          test -z "$ac_c_werror_flag" ||
12086          test ! -s conftest.err
12087        } && test -s conftest.$ac_objext; then
12088   eval "$as_ac_Header=yes"
12089 else
12090   echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093         eval "$as_ac_Header=no"
12094 fi
12095
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 fi
12098 ac_res=`eval echo '${'$as_ac_Header'}'`
12099                { echo "$as_me:$LINENO: result: $ac_res" >&5
12100 echo "${ECHO_T}$ac_res" >&6; }
12101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12102   cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12104 _ACEOF
12105
12106 fi
12107
12108 done
12109
12110
12111 for ac_func in vprintf
12112 do
12113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12117   echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119   cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12127 #define $ac_func innocuous_$ac_func
12128
12129 /* System header to define __stub macros and hopefully few prototypes,
12130     which can conflict with char $ac_func (); below.
12131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132     <limits.h> exists even on freestanding compilers.  */
12133
12134 #ifdef __STDC__
12135 # include <limits.h>
12136 #else
12137 # include <assert.h>
12138 #endif
12139
12140 #undef $ac_func
12141
12142 /* Override any GCC internal prototype to avoid an error.
12143    Use char because int might match the return type of a GCC
12144    builtin and then its argument prototype would still apply.  */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char $ac_func ();
12149 /* The GNU C library defines this for functions which it implements
12150     to always fail with ENOSYS.  Some functions are actually named
12151     something starting with __ and the normal name is an alias.  */
12152 #if defined __stub_$ac_func || defined __stub___$ac_func
12153 choke me
12154 #endif
12155
12156 int
12157 main ()
12158 {
12159 return $ac_func ();
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_link") 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } && {
12178          test -z "$ac_c_werror_flag" ||
12179          test ! -s conftest.err
12180        } && test -s conftest$ac_exeext &&
12181        $as_test_x conftest$ac_exeext; then
12182   eval "$as_ac_var=yes"
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187         eval "$as_ac_var=no"
12188 fi
12189
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191       conftest$ac_exeext conftest.$ac_ext
12192 fi
12193 ac_res=`eval echo '${'$as_ac_var'}'`
12194                { echo "$as_me:$LINENO: result: $ac_res" >&5
12195 echo "${ECHO_T}$ac_res" >&6; }
12196 if test `eval echo '${'$as_ac_var'}'` = yes; then
12197   cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199 _ACEOF
12200
12201 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12202 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12203 if test "${ac_cv_func__doprnt+set}" = set; then
12204   echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206   cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h.  */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h.  */
12212 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12214 #define _doprnt innocuous__doprnt
12215
12216 /* System header to define __stub macros and hopefully few prototypes,
12217     which can conflict with char _doprnt (); below.
12218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12219     <limits.h> exists even on freestanding compilers.  */
12220
12221 #ifdef __STDC__
12222 # include <limits.h>
12223 #else
12224 # include <assert.h>
12225 #endif
12226
12227 #undef _doprnt
12228
12229 /* Override any GCC internal prototype to avoid an error.
12230    Use char because int might match the return type of a GCC
12231    builtin and then its argument prototype would still apply.  */
12232 #ifdef __cplusplus
12233 extern "C"
12234 #endif
12235 char _doprnt ();
12236 /* The GNU C library defines this for functions which it implements
12237     to always fail with ENOSYS.  Some functions are actually named
12238     something starting with __ and the normal name is an alias.  */
12239 #if defined __stub__doprnt || defined __stub____doprnt
12240 choke me
12241 #endif
12242
12243 int
12244 main ()
12245 {
12246 return _doprnt ();
12247   ;
12248   return 0;
12249 }
12250 _ACEOF
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (ac_try="$ac_link"
12253 case "(($ac_try" in
12254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255   *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258   (eval "$ac_link") 2>conftest.er1
12259   ac_status=$?
12260   grep -v '^ *+' conftest.er1 >conftest.err
12261   rm -f conftest.er1
12262   cat conftest.err >&5
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); } && {
12265          test -z "$ac_c_werror_flag" ||
12266          test ! -s conftest.err
12267        } && test -s conftest$ac_exeext &&
12268        $as_test_x conftest$ac_exeext; then
12269   ac_cv_func__doprnt=yes
12270 else
12271   echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274         ac_cv_func__doprnt=no
12275 fi
12276
12277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12278       conftest$ac_exeext conftest.$ac_ext
12279 fi
12280 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12281 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12282 if test $ac_cv_func__doprnt = yes; then
12283
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_DOPRNT 1
12286 _ACEOF
12287
12288 fi
12289
12290 fi
12291 done
12292
12293
12294 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12295 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12296 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h.  */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h.  */
12305 #include <dirent.h>
12306
12307 int
12308 main ()
12309 {
12310 static struct dirent ac_aggr;
12311 if (ac_aggr.d_reclen)
12312 return 0;
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext
12318 if { (ac_try="$ac_compile"
12319 case "(($ac_try" in
12320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321   *) ac_try_echo=$ac_try;;
12322 esac
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324   (eval "$ac_compile") 2>conftest.er1
12325   ac_status=$?
12326   grep -v '^ *+' conftest.er1 >conftest.err
12327   rm -f conftest.er1
12328   cat conftest.err >&5
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); } && {
12331          test -z "$ac_c_werror_flag" ||
12332          test ! -s conftest.err
12333        } && test -s conftest.$ac_objext; then
12334   ac_cv_member_struct_dirent_d_reclen=yes
12335 else
12336   echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12338
12339         cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h.  */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h.  */
12345 #include <dirent.h>
12346
12347 int
12348 main ()
12349 {
12350 static struct dirent ac_aggr;
12351 if (sizeof ac_aggr.d_reclen)
12352 return 0;
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (ac_try="$ac_compile"
12359 case "(($ac_try" in
12360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361   *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364   (eval "$ac_compile") 2>conftest.er1
12365   ac_status=$?
12366   grep -v '^ *+' conftest.er1 >conftest.err
12367   rm -f conftest.er1
12368   cat conftest.err >&5
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); } && {
12371          test -z "$ac_c_werror_flag" ||
12372          test ! -s conftest.err
12373        } && test -s conftest.$ac_objext; then
12374   ac_cv_member_struct_dirent_d_reclen=yes
12375 else
12376   echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379         ac_cv_member_struct_dirent_d_reclen=no
12380 fi
12381
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 fi
12384
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386 fi
12387 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12388 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12389 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12390   cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_RECLEN_DIRENT 1
12392 _ACEOF
12393
12394 fi
12395
12396 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12397 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12398 if test "${ac_cv_type_ssize_t+set}" = set; then
12399   echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401   cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h.  */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h.  */
12407 #include <sys/types.h>
12408
12409 typedef ssize_t ac__type_new_;
12410 int
12411 main ()
12412 {
12413 if ((ac__type_new_ *) 0)
12414   return 0;
12415 if (sizeof (ac__type_new_))
12416   return 0;
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext
12422 if { (ac_try="$ac_compile"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_compile") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } && {
12435          test -z "$ac_c_werror_flag" ||
12436          test ! -s conftest.err
12437        } && test -s conftest.$ac_objext; then
12438   ac_cv_type_ssize_t=yes
12439 else
12440   echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443         ac_cv_type_ssize_t=no
12444 fi
12445
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 fi
12448 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12449 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12450 if test $ac_cv_type_ssize_t = yes; then
12451   cat >>confdefs.h <<\_ACEOF
12452 #define HAVE_TYPE_SSIZE_T 1
12453 _ACEOF
12454
12455 fi
12456
12457 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12458 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12459 if test "${ac_cv_have_decl_llseek+set}" = set; then
12460   echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462   cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h.  */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h.  */
12468 #include <unistd.h>
12469
12470 int
12471 main ()
12472 {
12473 #ifndef llseek
12474   (void) llseek;
12475 #endif
12476
12477   ;
12478   return 0;
12479 }
12480 _ACEOF
12481 rm -f conftest.$ac_objext
12482 if { (ac_try="$ac_compile"
12483 case "(($ac_try" in
12484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485   *) ac_try_echo=$ac_try;;
12486 esac
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488   (eval "$ac_compile") 2>conftest.er1
12489   ac_status=$?
12490   grep -v '^ *+' conftest.er1 >conftest.err
12491   rm -f conftest.er1
12492   cat conftest.err >&5
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); } && {
12495          test -z "$ac_c_werror_flag" ||
12496          test ! -s conftest.err
12497        } && test -s conftest.$ac_objext; then
12498   ac_cv_have_decl_llseek=yes
12499 else
12500   echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12502
12503         ac_cv_have_decl_llseek=no
12504 fi
12505
12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507 fi
12508 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12509 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12510 if test $ac_cv_have_decl_llseek = yes; then
12511   cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_LLSEEK_PROTOTYPE 1
12513 _ACEOF
12514
12515 fi
12516
12517 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12518 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12519 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h.  */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h.  */
12528 #define _LARGEFILE_SOURCE
12529                  #define _LARGEFILE64_SOURCE
12530                  #include <unistd.h>
12531
12532 int
12533 main ()
12534 {
12535 #ifndef lseek64
12536   (void) lseek64;
12537 #endif
12538
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 rm -f conftest.$ac_objext
12544 if { (ac_try="$ac_compile"
12545 case "(($ac_try" in
12546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547   *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550   (eval "$ac_compile") 2>conftest.er1
12551   ac_status=$?
12552   grep -v '^ *+' conftest.er1 >conftest.err
12553   rm -f conftest.er1
12554   cat conftest.err >&5
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); } && {
12557          test -z "$ac_c_werror_flag" ||
12558          test ! -s conftest.err
12559        } && test -s conftest.$ac_objext; then
12560   ac_cv_have_decl_lseek64=yes
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565         ac_cv_have_decl_lseek64=no
12566 fi
12567
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569 fi
12570 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12571 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12572 if test $ac_cv_have_decl_lseek64 = yes; then
12573   cat >>confdefs.h <<\_ACEOF
12574 #define HAVE_LSEEK64_PROTOTYPE 1
12575 _ACEOF
12576
12577 fi
12578
12579 { echo "$as_me:$LINENO: checking for short" >&5
12580 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12581 if test "${ac_cv_type_short+set}" = set; then
12582   echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584   cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590 $ac_includes_default
12591 typedef short ac__type_new_;
12592 int
12593 main ()
12594 {
12595 if ((ac__type_new_ *) 0)
12596   return 0;
12597 if (sizeof (ac__type_new_))
12598   return 0;
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest.$ac_objext
12604 if { (ac_try="$ac_compile"
12605 case "(($ac_try" in
12606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607   *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610   (eval "$ac_compile") 2>conftest.er1
12611   ac_status=$?
12612   grep -v '^ *+' conftest.er1 >conftest.err
12613   rm -f conftest.er1
12614   cat conftest.err >&5
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); } && {
12617          test -z "$ac_c_werror_flag" ||
12618          test ! -s conftest.err
12619        } && test -s conftest.$ac_objext; then
12620   ac_cv_type_short=yes
12621 else
12622   echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12624
12625         ac_cv_type_short=no
12626 fi
12627
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629 fi
12630 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12631 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12632
12633 # The cast to long int works around a bug in the HP C Compiler
12634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12636 # This bug is HP SR number 8606223364.
12637 { echo "$as_me:$LINENO: checking size of short" >&5
12638 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12639 if test "${ac_cv_sizeof_short+set}" = set; then
12640   echo $ECHO_N "(cached) $ECHO_C" >&6
12641 else
12642   if test "$cross_compiling" = yes; then
12643   # Depending upon the size, compute the lo and hi bounds.
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_))) >= 0)];
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_lo=0 ac_mid=0
12680   while :; do
12681     cat >conftest.$ac_ext <<_ACEOF
12682 /* confdefs.h.  */
12683 _ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h.  */
12687 $ac_includes_default
12688    typedef short ac__type_sizeof_;
12689 int
12690 main ()
12691 {
12692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12693 test_array [0] = 0
12694
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699 rm -f conftest.$ac_objext
12700 if { (ac_try="$ac_compile"
12701 case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706   (eval "$ac_compile") 2>conftest.er1
12707   ac_status=$?
12708   grep -v '^ *+' conftest.er1 >conftest.err
12709   rm -f conftest.er1
12710   cat conftest.err >&5
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } && {
12713          test -z "$ac_c_werror_flag" ||
12714          test ! -s conftest.err
12715        } && test -s conftest.$ac_objext; then
12716   ac_hi=$ac_mid; break
12717 else
12718   echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721         ac_lo=`expr $ac_mid + 1`
12722                         if test $ac_lo -le $ac_mid; then
12723                           ac_lo= ac_hi=
12724                           break
12725                         fi
12726                         ac_mid=`expr 2 '*' $ac_mid + 1`
12727 fi
12728
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730   done
12731 else
12732   echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12734
12735         cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h.  */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h.  */
12741 $ac_includes_default
12742    typedef short ac__type_sizeof_;
12743 int
12744 main ()
12745 {
12746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12747 test_array [0] = 0
12748
12749   ;
12750   return 0;
12751 }
12752 _ACEOF
12753 rm -f conftest.$ac_objext
12754 if { (ac_try="$ac_compile"
12755 case "(($ac_try" in
12756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757   *) ac_try_echo=$ac_try;;
12758 esac
12759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760   (eval "$ac_compile") 2>conftest.er1
12761   ac_status=$?
12762   grep -v '^ *+' conftest.er1 >conftest.err
12763   rm -f conftest.er1
12764   cat conftest.err >&5
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); } && {
12767          test -z "$ac_c_werror_flag" ||
12768          test ! -s conftest.err
12769        } && test -s conftest.$ac_objext; then
12770   ac_hi=-1 ac_mid=-1
12771   while :; do
12772     cat >conftest.$ac_ext <<_ACEOF
12773 /* confdefs.h.  */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h.  */
12778 $ac_includes_default
12779    typedef short ac__type_sizeof_;
12780 int
12781 main ()
12782 {
12783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12784 test_array [0] = 0
12785
12786   ;
12787   return 0;
12788 }
12789 _ACEOF
12790 rm -f conftest.$ac_objext
12791 if { (ac_try="$ac_compile"
12792 case "(($ac_try" in
12793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794   *) ac_try_echo=$ac_try;;
12795 esac
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797   (eval "$ac_compile") 2>conftest.er1
12798   ac_status=$?
12799   grep -v '^ *+' conftest.er1 >conftest.err
12800   rm -f conftest.er1
12801   cat conftest.err >&5
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); } && {
12804          test -z "$ac_c_werror_flag" ||
12805          test ! -s conftest.err
12806        } && test -s conftest.$ac_objext; then
12807   ac_lo=$ac_mid; break
12808 else
12809   echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812         ac_hi=`expr '(' $ac_mid ')' - 1`
12813                         if test $ac_mid -le $ac_hi; then
12814                           ac_lo= ac_hi=
12815                           break
12816                         fi
12817                         ac_mid=`expr 2 '*' $ac_mid`
12818 fi
12819
12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821   done
12822 else
12823   echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12825
12826         ac_lo= ac_hi=
12827 fi
12828
12829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 fi
12831
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 # Binary search between lo and hi bounds.
12834 while test "x$ac_lo" != "x$ac_hi"; do
12835   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12836   cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h.  */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h.  */
12842 $ac_includes_default
12843    typedef short ac__type_sizeof_;
12844 int
12845 main ()
12846 {
12847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12848 test_array [0] = 0
12849
12850   ;
12851   return 0;
12852 }
12853 _ACEOF
12854 rm -f conftest.$ac_objext
12855 if { (ac_try="$ac_compile"
12856 case "(($ac_try" in
12857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858   *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861   (eval "$ac_compile") 2>conftest.er1
12862   ac_status=$?
12863   grep -v '^ *+' conftest.er1 >conftest.err
12864   rm -f conftest.er1
12865   cat conftest.err >&5
12866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); } && {
12868          test -z "$ac_c_werror_flag" ||
12869          test ! -s conftest.err
12870        } && test -s conftest.$ac_objext; then
12871   ac_hi=$ac_mid
12872 else
12873   echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876         ac_lo=`expr '(' $ac_mid ')' + 1`
12877 fi
12878
12879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880 done
12881 case $ac_lo in
12882 ?*) ac_cv_sizeof_short=$ac_lo;;
12883 '') if test "$ac_cv_type_short" = yes; then
12884      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12885 See \`config.log' for more details." >&5
12886 echo "$as_me: error: cannot compute sizeof (short)
12887 See \`config.log' for more details." >&2;}
12888    { (exit 77); exit 77; }; }
12889    else
12890      ac_cv_sizeof_short=0
12891    fi ;;
12892 esac
12893 else
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 short ac__type_sizeof_;
12902 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12903 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12904 #include <stdio.h>
12905 #include <stdlib.h>
12906 int
12907 main ()
12908 {
12909
12910   FILE *f = fopen ("conftest.val", "w");
12911   if (! f)
12912     return 1;
12913   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12914     {
12915       long int i = longval ();
12916       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12917         return 1;
12918       fprintf (f, "%ld\n", i);
12919     }
12920   else
12921     {
12922       unsigned long int i = ulongval ();
12923       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12924         return 1;
12925       fprintf (f, "%lu\n", i);
12926     }
12927   return ferror (f) || fclose (f) != 0;
12928
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 rm -f conftest$ac_exeext
12934 if { (ac_try="$ac_link"
12935 case "(($ac_try" in
12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937   *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940   (eval "$ac_link") 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12944   { (case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949   (eval "$ac_try") 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; }; then
12953   ac_cv_sizeof_short=`cat conftest.val`
12954 else
12955   echo "$as_me: program exited with status $ac_status" >&5
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959 ( exit $ac_status )
12960 if test "$ac_cv_type_short" = yes; then
12961      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12962 See \`config.log' for more details." >&5
12963 echo "$as_me: error: cannot compute sizeof (short)
12964 See \`config.log' for more details." >&2;}
12965    { (exit 77); exit 77; }; }
12966    else
12967      ac_cv_sizeof_short=0
12968    fi
12969 fi
12970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12971 fi
12972 rm -f conftest.val
12973 fi
12974 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12975 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12976
12977
12978
12979 cat >>confdefs.h <<_ACEOF
12980 #define SIZEOF_SHORT $ac_cv_sizeof_short
12981 _ACEOF
12982
12983
12984 { echo "$as_me:$LINENO: checking for int" >&5
12985 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12986 if test "${ac_cv_type_int+set}" = set; then
12987   echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989   cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h.  */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h.  */
12995 $ac_includes_default
12996 typedef int ac__type_new_;
12997 int
12998 main ()
12999 {
13000 if ((ac__type_new_ *) 0)
13001   return 0;
13002 if (sizeof (ac__type_new_))
13003   return 0;
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 rm -f conftest.$ac_objext
13009 if { (ac_try="$ac_compile"
13010 case "(($ac_try" in
13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012   *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015   (eval "$ac_compile") 2>conftest.er1
13016   ac_status=$?
13017   grep -v '^ *+' conftest.er1 >conftest.err
13018   rm -f conftest.er1
13019   cat conftest.err >&5
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); } && {
13022          test -z "$ac_c_werror_flag" ||
13023          test ! -s conftest.err
13024        } && test -s conftest.$ac_objext; then
13025   ac_cv_type_int=yes
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030         ac_cv_type_int=no
13031 fi
13032
13033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034 fi
13035 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13036 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13037
13038 # The cast to long int works around a bug in the HP C Compiler
13039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13041 # This bug is HP SR number 8606223364.
13042 { echo "$as_me:$LINENO: checking size of int" >&5
13043 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13044 if test "${ac_cv_sizeof_int+set}" = set; then
13045   echo $ECHO_N "(cached) $ECHO_C" >&6
13046 else
13047   if test "$cross_compiling" = yes; then
13048   # Depending upon the size, compute the lo and hi bounds.
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_))) >= 0)];
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_lo=0 ac_mid=0
13085   while :; do
13086     cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h.  */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h.  */
13092 $ac_includes_default
13093    typedef int ac__type_sizeof_;
13094 int
13095 main ()
13096 {
13097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13098 test_array [0] = 0
13099
13100   ;
13101   return 0;
13102 }
13103 _ACEOF
13104 rm -f conftest.$ac_objext
13105 if { (ac_try="$ac_compile"
13106 case "(($ac_try" in
13107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108   *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111   (eval "$ac_compile") 2>conftest.er1
13112   ac_status=$?
13113   grep -v '^ *+' conftest.er1 >conftest.err
13114   rm -f conftest.er1
13115   cat conftest.err >&5
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); } && {
13118          test -z "$ac_c_werror_flag" ||
13119          test ! -s conftest.err
13120        } && test -s conftest.$ac_objext; then
13121   ac_hi=$ac_mid; break
13122 else
13123   echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126         ac_lo=`expr $ac_mid + 1`
13127                         if test $ac_lo -le $ac_mid; then
13128                           ac_lo= ac_hi=
13129                           break
13130                         fi
13131                         ac_mid=`expr 2 '*' $ac_mid + 1`
13132 fi
13133
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135   done
13136 else
13137   echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140         cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h.  */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h.  */
13146 $ac_includes_default
13147    typedef int ac__type_sizeof_;
13148 int
13149 main ()
13150 {
13151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13152 test_array [0] = 0
13153
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (ac_try="$ac_compile"
13160 case "(($ac_try" in
13161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162   *) ac_try_echo=$ac_try;;
13163 esac
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165   (eval "$ac_compile") 2>conftest.er1
13166   ac_status=$?
13167   grep -v '^ *+' conftest.er1 >conftest.err
13168   rm -f conftest.er1
13169   cat conftest.err >&5
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); } && {
13172          test -z "$ac_c_werror_flag" ||
13173          test ! -s conftest.err
13174        } && test -s conftest.$ac_objext; then
13175   ac_hi=-1 ac_mid=-1
13176   while :; do
13177     cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h.  */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h.  */
13183 $ac_includes_default
13184    typedef int ac__type_sizeof_;
13185 int
13186 main ()
13187 {
13188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13189 test_array [0] = 0
13190
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext
13196 if { (ac_try="$ac_compile"
13197 case "(($ac_try" in
13198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199   *) ac_try_echo=$ac_try;;
13200 esac
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202   (eval "$ac_compile") 2>conftest.er1
13203   ac_status=$?
13204   grep -v '^ *+' conftest.er1 >conftest.err
13205   rm -f conftest.er1
13206   cat conftest.err >&5
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); } && {
13209          test -z "$ac_c_werror_flag" ||
13210          test ! -s conftest.err
13211        } && test -s conftest.$ac_objext; then
13212   ac_lo=$ac_mid; break
13213 else
13214   echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13216
13217         ac_hi=`expr '(' $ac_mid ')' - 1`
13218                         if test $ac_mid -le $ac_hi; then
13219                           ac_lo= ac_hi=
13220                           break
13221                         fi
13222                         ac_mid=`expr 2 '*' $ac_mid`
13223 fi
13224
13225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13226   done
13227 else
13228   echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.$ac_ext >&5
13230
13231         ac_lo= ac_hi=
13232 fi
13233
13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235 fi
13236
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238 # Binary search between lo and hi bounds.
13239 while test "x$ac_lo" != "x$ac_hi"; do
13240   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13241   cat >conftest.$ac_ext <<_ACEOF
13242 /* confdefs.h.  */
13243 _ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h.  */
13247 $ac_includes_default
13248    typedef int ac__type_sizeof_;
13249 int
13250 main ()
13251 {
13252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13253 test_array [0] = 0
13254
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (ac_try="$ac_compile"
13261 case "(($ac_try" in
13262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263   *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266   (eval "$ac_compile") 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
13270   cat conftest.err >&5
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } && {
13273          test -z "$ac_c_werror_flag" ||
13274          test ! -s conftest.err
13275        } && test -s conftest.$ac_objext; then
13276   ac_hi=$ac_mid
13277 else
13278   echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281         ac_lo=`expr '(' $ac_mid ')' + 1`
13282 fi
13283
13284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285 done
13286 case $ac_lo in
13287 ?*) ac_cv_sizeof_int=$ac_lo;;
13288 '') if test "$ac_cv_type_int" = yes; then
13289      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13290 See \`config.log' for more details." >&5
13291 echo "$as_me: error: cannot compute sizeof (int)
13292 See \`config.log' for more details." >&2;}
13293    { (exit 77); exit 77; }; }
13294    else
13295      ac_cv_sizeof_int=0
13296    fi ;;
13297 esac
13298 else
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 int ac__type_sizeof_;
13307 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13308 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13309 #include <stdio.h>
13310 #include <stdlib.h>
13311 int
13312 main ()
13313 {
13314
13315   FILE *f = fopen ("conftest.val", "w");
13316   if (! f)
13317     return 1;
13318   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13319     {
13320       long int i = longval ();
13321       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13322         return 1;
13323       fprintf (f, "%ld\n", i);
13324     }
13325   else
13326     {
13327       unsigned long int i = ulongval ();
13328       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13329         return 1;
13330       fprintf (f, "%lu\n", i);
13331     }
13332   return ferror (f) || fclose (f) != 0;
13333
13334   ;
13335   return 0;
13336 }
13337 _ACEOF
13338 rm -f conftest$ac_exeext
13339 if { (ac_try="$ac_link"
13340 case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345   (eval "$ac_link") 2>&5
13346   ac_status=$?
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13349   { (case "(($ac_try" in
13350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351   *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354   (eval "$ac_try") 2>&5
13355   ac_status=$?
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); }; }; then
13358   ac_cv_sizeof_int=`cat conftest.val`
13359 else
13360   echo "$as_me: program exited with status $ac_status" >&5
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364 ( exit $ac_status )
13365 if test "$ac_cv_type_int" = yes; then
13366      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13367 See \`config.log' for more details." >&5
13368 echo "$as_me: error: cannot compute sizeof (int)
13369 See \`config.log' for more details." >&2;}
13370    { (exit 77); exit 77; }; }
13371    else
13372      ac_cv_sizeof_int=0
13373    fi
13374 fi
13375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13376 fi
13377 rm -f conftest.val
13378 fi
13379 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13380 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13381
13382
13383
13384 cat >>confdefs.h <<_ACEOF
13385 #define SIZEOF_INT $ac_cv_sizeof_int
13386 _ACEOF
13387
13388
13389 { echo "$as_me:$LINENO: checking for long" >&5
13390 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13391 if test "${ac_cv_type_long+set}" = set; then
13392   echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394   cat >conftest.$ac_ext <<_ACEOF
13395 /* confdefs.h.  */
13396 _ACEOF
13397 cat confdefs.h >>conftest.$ac_ext
13398 cat >>conftest.$ac_ext <<_ACEOF
13399 /* end confdefs.h.  */
13400 $ac_includes_default
13401 typedef long ac__type_new_;
13402 int
13403 main ()
13404 {
13405 if ((ac__type_new_ *) 0)
13406   return 0;
13407 if (sizeof (ac__type_new_))
13408   return 0;
13409   ;
13410   return 0;
13411 }
13412 _ACEOF
13413 rm -f conftest.$ac_objext
13414 if { (ac_try="$ac_compile"
13415 case "(($ac_try" in
13416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417   *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420   (eval "$ac_compile") 2>conftest.er1
13421   ac_status=$?
13422   grep -v '^ *+' conftest.er1 >conftest.err
13423   rm -f conftest.er1
13424   cat conftest.err >&5
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); } && {
13427          test -z "$ac_c_werror_flag" ||
13428          test ! -s conftest.err
13429        } && test -s conftest.$ac_objext; then
13430   ac_cv_type_long=yes
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435         ac_cv_type_long=no
13436 fi
13437
13438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439 fi
13440 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13441 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13442
13443 # The cast to long int works around a bug in the HP C Compiler
13444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13446 # This bug is HP SR number 8606223364.
13447 { echo "$as_me:$LINENO: checking size of long" >&5
13448 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13449 if test "${ac_cv_sizeof_long+set}" = set; then
13450   echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452   if test "$cross_compiling" = yes; then
13453   # Depending upon the size, compute the lo and hi bounds.
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_))) >= 0)];
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_lo=0 ac_mid=0
13490   while :; do
13491     cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497 $ac_includes_default
13498    typedef long ac__type_sizeof_;
13499 int
13500 main ()
13501 {
13502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13503 test_array [0] = 0
13504
13505   ;
13506   return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (ac_try="$ac_compile"
13511 case "(($ac_try" in
13512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513   *) ac_try_echo=$ac_try;;
13514 esac
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516   (eval "$ac_compile") 2>conftest.er1
13517   ac_status=$?
13518   grep -v '^ *+' conftest.er1 >conftest.err
13519   rm -f conftest.er1
13520   cat conftest.err >&5
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } && {
13523          test -z "$ac_c_werror_flag" ||
13524          test ! -s conftest.err
13525        } && test -s conftest.$ac_objext; then
13526   ac_hi=$ac_mid; break
13527 else
13528   echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531         ac_lo=`expr $ac_mid + 1`
13532                         if test $ac_lo -le $ac_mid; then
13533                           ac_lo= ac_hi=
13534                           break
13535                         fi
13536                         ac_mid=`expr 2 '*' $ac_mid + 1`
13537 fi
13538
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540   done
13541 else
13542   echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545         cat >conftest.$ac_ext <<_ACEOF
13546 /* confdefs.h.  */
13547 _ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h.  */
13551 $ac_includes_default
13552    typedef long ac__type_sizeof_;
13553 int
13554 main ()
13555 {
13556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13557 test_array [0] = 0
13558
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 rm -f conftest.$ac_objext
13564 if { (ac_try="$ac_compile"
13565 case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_compile") 2>conftest.er1
13571   ac_status=$?
13572   grep -v '^ *+' conftest.er1 >conftest.err
13573   rm -f conftest.er1
13574   cat conftest.err >&5
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); } && {
13577          test -z "$ac_c_werror_flag" ||
13578          test ! -s conftest.err
13579        } && test -s conftest.$ac_objext; then
13580   ac_hi=-1 ac_mid=-1
13581   while :; do
13582     cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h.  */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h.  */
13588 $ac_includes_default
13589    typedef long ac__type_sizeof_;
13590 int
13591 main ()
13592 {
13593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13594 test_array [0] = 0
13595
13596   ;
13597   return 0;
13598 }
13599 _ACEOF
13600 rm -f conftest.$ac_objext
13601 if { (ac_try="$ac_compile"
13602 case "(($ac_try" in
13603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604   *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607   (eval "$ac_compile") 2>conftest.er1
13608   ac_status=$?
13609   grep -v '^ *+' conftest.er1 >conftest.err
13610   rm -f conftest.er1
13611   cat conftest.err >&5
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); } && {
13614          test -z "$ac_c_werror_flag" ||
13615          test ! -s conftest.err
13616        } && test -s conftest.$ac_objext; then
13617   ac_lo=$ac_mid; break
13618 else
13619   echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13621
13622         ac_hi=`expr '(' $ac_mid ')' - 1`
13623                         if test $ac_mid -le $ac_hi; then
13624                           ac_lo= ac_hi=
13625                           break
13626                         fi
13627                         ac_mid=`expr 2 '*' $ac_mid`
13628 fi
13629
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631   done
13632 else
13633   echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13635
13636         ac_lo= ac_hi=
13637 fi
13638
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640 fi
13641
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 # Binary search between lo and hi bounds.
13644 while test "x$ac_lo" != "x$ac_hi"; do
13645   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13646   cat >conftest.$ac_ext <<_ACEOF
13647 /* confdefs.h.  */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h.  */
13652 $ac_includes_default
13653    typedef long ac__type_sizeof_;
13654 int
13655 main ()
13656 {
13657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13658 test_array [0] = 0
13659
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (ac_try="$ac_compile"
13666 case "(($ac_try" in
13667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668   *) ac_try_echo=$ac_try;;
13669 esac
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671   (eval "$ac_compile") 2>conftest.er1
13672   ac_status=$?
13673   grep -v '^ *+' conftest.er1 >conftest.err
13674   rm -f conftest.er1
13675   cat conftest.err >&5
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); } && {
13678          test -z "$ac_c_werror_flag" ||
13679          test ! -s conftest.err
13680        } && test -s conftest.$ac_objext; then
13681   ac_hi=$ac_mid
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686         ac_lo=`expr '(' $ac_mid ')' + 1`
13687 fi
13688
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 done
13691 case $ac_lo in
13692 ?*) ac_cv_sizeof_long=$ac_lo;;
13693 '') if test "$ac_cv_type_long" = yes; then
13694      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13695 See \`config.log' for more details." >&5
13696 echo "$as_me: error: cannot compute sizeof (long)
13697 See \`config.log' for more details." >&2;}
13698    { (exit 77); exit 77; }; }
13699    else
13700      ac_cv_sizeof_long=0
13701    fi ;;
13702 esac
13703 else
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 ac__type_sizeof_;
13712 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13713 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13714 #include <stdio.h>
13715 #include <stdlib.h>
13716 int
13717 main ()
13718 {
13719
13720   FILE *f = fopen ("conftest.val", "w");
13721   if (! f)
13722     return 1;
13723   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13724     {
13725       long int i = longval ();
13726       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13727         return 1;
13728       fprintf (f, "%ld\n", i);
13729     }
13730   else
13731     {
13732       unsigned long int i = ulongval ();
13733       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13734         return 1;
13735       fprintf (f, "%lu\n", i);
13736     }
13737   return ferror (f) || fclose (f) != 0;
13738
13739   ;
13740   return 0;
13741 }
13742 _ACEOF
13743 rm -f conftest$ac_exeext
13744 if { (ac_try="$ac_link"
13745 case "(($ac_try" in
13746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747   *) ac_try_echo=$ac_try;;
13748 esac
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750   (eval "$ac_link") 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13754   { (case "(($ac_try" in
13755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756   *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759   (eval "$ac_try") 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; }; then
13763   ac_cv_sizeof_long=`cat conftest.val`
13764 else
13765   echo "$as_me: program exited with status $ac_status" >&5
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 ( exit $ac_status )
13770 if test "$ac_cv_type_long" = yes; then
13771      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13772 See \`config.log' for more details." >&5
13773 echo "$as_me: error: cannot compute sizeof (long)
13774 See \`config.log' for more details." >&2;}
13775    { (exit 77); exit 77; }; }
13776    else
13777      ac_cv_sizeof_long=0
13778    fi
13779 fi
13780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13781 fi
13782 rm -f conftest.val
13783 fi
13784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13785 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13786
13787
13788
13789 cat >>confdefs.h <<_ACEOF
13790 #define SIZEOF_LONG $ac_cv_sizeof_long
13791 _ACEOF
13792
13793
13794 { echo "$as_me:$LINENO: checking for long long" >&5
13795 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13796 if test "${ac_cv_type_long_long+set}" = set; then
13797   echo $ECHO_N "(cached) $ECHO_C" >&6
13798 else
13799   cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h.  */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h.  */
13805 $ac_includes_default
13806 typedef long long ac__type_new_;
13807 int
13808 main ()
13809 {
13810 if ((ac__type_new_ *) 0)
13811   return 0;
13812 if (sizeof (ac__type_new_))
13813   return 0;
13814   ;
13815   return 0;
13816 }
13817 _ACEOF
13818 rm -f conftest.$ac_objext
13819 if { (ac_try="$ac_compile"
13820 case "(($ac_try" in
13821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822   *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825   (eval "$ac_compile") 2>conftest.er1
13826   ac_status=$?
13827   grep -v '^ *+' conftest.er1 >conftest.err
13828   rm -f conftest.er1
13829   cat conftest.err >&5
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); } && {
13832          test -z "$ac_c_werror_flag" ||
13833          test ! -s conftest.err
13834        } && test -s conftest.$ac_objext; then
13835   ac_cv_type_long_long=yes
13836 else
13837   echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840         ac_cv_type_long_long=no
13841 fi
13842
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 fi
13845 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13846 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13847
13848 # The cast to long int works around a bug in the HP C Compiler
13849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13851 # This bug is HP SR number 8606223364.
13852 { echo "$as_me:$LINENO: checking size of long long" >&5
13853 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13854 if test "${ac_cv_sizeof_long_long+set}" = set; then
13855   echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857   if test "$cross_compiling" = yes; then
13858   # Depending upon the size, compute the lo and hi bounds.
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_))) >= 0)];
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_lo=0 ac_mid=0
13895   while :; do
13896     cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h.  */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h.  */
13902 $ac_includes_default
13903    typedef long long ac__type_sizeof_;
13904 int
13905 main ()
13906 {
13907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13908 test_array [0] = 0
13909
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext
13915 if { (ac_try="$ac_compile"
13916 case "(($ac_try" in
13917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918   *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921   (eval "$ac_compile") 2>conftest.er1
13922   ac_status=$?
13923   grep -v '^ *+' conftest.er1 >conftest.err
13924   rm -f conftest.er1
13925   cat conftest.err >&5
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } && {
13928          test -z "$ac_c_werror_flag" ||
13929          test ! -s conftest.err
13930        } && test -s conftest.$ac_objext; then
13931   ac_hi=$ac_mid; break
13932 else
13933   echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13935
13936         ac_lo=`expr $ac_mid + 1`
13937                         if test $ac_lo -le $ac_mid; then
13938                           ac_lo= ac_hi=
13939                           break
13940                         fi
13941                         ac_mid=`expr 2 '*' $ac_mid + 1`
13942 fi
13943
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945   done
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950         cat >conftest.$ac_ext <<_ACEOF
13951 /* confdefs.h.  */
13952 _ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h.  */
13956 $ac_includes_default
13957    typedef long long ac__type_sizeof_;
13958 int
13959 main ()
13960 {
13961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13962 test_array [0] = 0
13963
13964   ;
13965   return 0;
13966 }
13967 _ACEOF
13968 rm -f conftest.$ac_objext
13969 if { (ac_try="$ac_compile"
13970 case "(($ac_try" in
13971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972   *) ac_try_echo=$ac_try;;
13973 esac
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975   (eval "$ac_compile") 2>conftest.er1
13976   ac_status=$?
13977   grep -v '^ *+' conftest.er1 >conftest.err
13978   rm -f conftest.er1
13979   cat conftest.err >&5
13980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981   (exit $ac_status); } && {
13982          test -z "$ac_c_werror_flag" ||
13983          test ! -s conftest.err
13984        } && test -s conftest.$ac_objext; then
13985   ac_hi=-1 ac_mid=-1
13986   while :; do
13987     cat >conftest.$ac_ext <<_ACEOF
13988 /* confdefs.h.  */
13989 _ACEOF
13990 cat confdefs.h >>conftest.$ac_ext
13991 cat >>conftest.$ac_ext <<_ACEOF
13992 /* end confdefs.h.  */
13993 $ac_includes_default
13994    typedef long long ac__type_sizeof_;
13995 int
13996 main ()
13997 {
13998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13999 test_array [0] = 0
14000
14001   ;
14002   return 0;
14003 }
14004 _ACEOF
14005 rm -f conftest.$ac_objext
14006 if { (ac_try="$ac_compile"
14007 case "(($ac_try" in
14008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009   *) ac_try_echo=$ac_try;;
14010 esac
14011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012   (eval "$ac_compile") 2>conftest.er1
14013   ac_status=$?
14014   grep -v '^ *+' conftest.er1 >conftest.err
14015   rm -f conftest.er1
14016   cat conftest.err >&5
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); } && {
14019          test -z "$ac_c_werror_flag" ||
14020          test ! -s conftest.err
14021        } && test -s conftest.$ac_objext; then
14022   ac_lo=$ac_mid; break
14023 else
14024   echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14026
14027         ac_hi=`expr '(' $ac_mid ')' - 1`
14028                         if test $ac_mid -le $ac_hi; then
14029                           ac_lo= ac_hi=
14030                           break
14031                         fi
14032                         ac_mid=`expr 2 '*' $ac_mid`
14033 fi
14034
14035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036   done
14037 else
14038   echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041         ac_lo= ac_hi=
14042 fi
14043
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045 fi
14046
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 # Binary search between lo and hi bounds.
14049 while test "x$ac_lo" != "x$ac_hi"; do
14050   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14051   cat >conftest.$ac_ext <<_ACEOF
14052 /* confdefs.h.  */
14053 _ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h.  */
14057 $ac_includes_default
14058    typedef long long ac__type_sizeof_;
14059 int
14060 main ()
14061 {
14062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14063 test_array [0] = 0
14064
14065   ;
14066   return 0;
14067 }
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (ac_try="$ac_compile"
14071 case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_compile") 2>conftest.er1
14077   ac_status=$?
14078   grep -v '^ *+' conftest.er1 >conftest.err
14079   rm -f conftest.er1
14080   cat conftest.err >&5
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } && {
14083          test -z "$ac_c_werror_flag" ||
14084          test ! -s conftest.err
14085        } && test -s conftest.$ac_objext; then
14086   ac_hi=$ac_mid
14087 else
14088   echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091         ac_lo=`expr '(' $ac_mid ')' + 1`
14092 fi
14093
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 done
14096 case $ac_lo in
14097 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14098 '') if test "$ac_cv_type_long_long" = yes; then
14099      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14100 See \`config.log' for more details." >&5
14101 echo "$as_me: error: cannot compute sizeof (long long)
14102 See \`config.log' for more details." >&2;}
14103    { (exit 77); exit 77; }; }
14104    else
14105      ac_cv_sizeof_long_long=0
14106    fi ;;
14107 esac
14108 else
14109   cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h.  */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h.  */
14115 $ac_includes_default
14116    typedef long long ac__type_sizeof_;
14117 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14118 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14119 #include <stdio.h>
14120 #include <stdlib.h>
14121 int
14122 main ()
14123 {
14124
14125   FILE *f = fopen ("conftest.val", "w");
14126   if (! f)
14127     return 1;
14128   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14129     {
14130       long int i = longval ();
14131       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14132         return 1;
14133       fprintf (f, "%ld\n", i);
14134     }
14135   else
14136     {
14137       unsigned long int i = ulongval ();
14138       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14139         return 1;
14140       fprintf (f, "%lu\n", i);
14141     }
14142   return ferror (f) || fclose (f) != 0;
14143
14144   ;
14145   return 0;
14146 }
14147 _ACEOF
14148 rm -f conftest$ac_exeext
14149 if { (ac_try="$ac_link"
14150 case "(($ac_try" in
14151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152   *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155   (eval "$ac_link") 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14159   { (case "(($ac_try" in
14160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161   *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164   (eval "$ac_try") 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; }; then
14168   ac_cv_sizeof_long_long=`cat conftest.val`
14169 else
14170   echo "$as_me: program exited with status $ac_status" >&5
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14173
14174 ( exit $ac_status )
14175 if test "$ac_cv_type_long_long" = yes; then
14176      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14177 See \`config.log' for more details." >&5
14178 echo "$as_me: error: cannot compute sizeof (long long)
14179 See \`config.log' for more details." >&2;}
14180    { (exit 77); exit 77; }; }
14181    else
14182      ac_cv_sizeof_long_long=0
14183    fi
14184 fi
14185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14186 fi
14187 rm -f conftest.val
14188 fi
14189 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14190 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14191
14192
14193
14194 cat >>confdefs.h <<_ACEOF
14195 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14196 _ACEOF
14197
14198
14199 SIZEOF_SHORT=$ac_cv_sizeof_short
14200 SIZEOF_INT=$ac_cv_sizeof_int
14201 SIZEOF_LONG=$ac_cv_sizeof_long
14202 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14203
14204
14205
14206
14207 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14208 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14209 if test "${ac_cv_c_bigendian+set}" = set; then
14210   echo $ECHO_N "(cached) $ECHO_C" >&6
14211 else
14212   # See if sys/param.h defines the BYTE_ORDER macro.
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h.  */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h.  */
14219 #include <sys/types.h>
14220 #include <sys/param.h>
14221
14222 int
14223 main ()
14224 {
14225 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14226         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14227  bogus endian macros
14228 #endif
14229
14230   ;
14231   return 0;
14232 }
14233 _ACEOF
14234 rm -f conftest.$ac_objext
14235 if { (ac_try="$ac_compile"
14236 case "(($ac_try" in
14237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238   *) ac_try_echo=$ac_try;;
14239 esac
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241   (eval "$ac_compile") 2>conftest.er1
14242   ac_status=$?
14243   grep -v '^ *+' conftest.er1 >conftest.err
14244   rm -f conftest.er1
14245   cat conftest.err >&5
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); } && {
14248          test -z "$ac_c_werror_flag" ||
14249          test ! -s conftest.err
14250        } && test -s conftest.$ac_objext; then
14251   # It does; now see whether it defined to BIG_ENDIAN or not.
14252 cat >conftest.$ac_ext <<_ACEOF
14253 /* confdefs.h.  */
14254 _ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h.  */
14258 #include <sys/types.h>
14259 #include <sys/param.h>
14260
14261 int
14262 main ()
14263 {
14264 #if BYTE_ORDER != BIG_ENDIAN
14265  not big endian
14266 #endif
14267
14268   ;
14269   return 0;
14270 }
14271 _ACEOF
14272 rm -f conftest.$ac_objext
14273 if { (ac_try="$ac_compile"
14274 case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279   (eval "$ac_compile") 2>conftest.er1
14280   ac_status=$?
14281   grep -v '^ *+' conftest.er1 >conftest.err
14282   rm -f conftest.er1
14283   cat conftest.err >&5
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); } && {
14286          test -z "$ac_c_werror_flag" ||
14287          test ! -s conftest.err
14288        } && test -s conftest.$ac_objext; then
14289   ac_cv_c_bigendian=yes
14290 else
14291   echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294         ac_cv_c_bigendian=no
14295 fi
14296
14297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298 else
14299   echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14301
14302         # It does not; compile a test program.
14303 if test "$cross_compiling" = yes; then
14304   # try to guess the endianness by grepping values into an object file
14305   ac_cv_c_bigendian=unknown
14306   cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h.  */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h.  */
14312 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14313 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14314 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14315 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14316 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14317 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14318 int
14319 main ()
14320 {
14321  _ascii (); _ebcdic ();
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 rm -f conftest.$ac_objext
14327 if { (ac_try="$ac_compile"
14328 case "(($ac_try" in
14329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330   *) ac_try_echo=$ac_try;;
14331 esac
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333   (eval "$ac_compile") 2>conftest.er1
14334   ac_status=$?
14335   grep -v '^ *+' conftest.er1 >conftest.err
14336   rm -f conftest.er1
14337   cat conftest.err >&5
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); } && {
14340          test -z "$ac_c_werror_flag" ||
14341          test ! -s conftest.err
14342        } && test -s conftest.$ac_objext; then
14343   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14344   ac_cv_c_bigendian=yes
14345 fi
14346 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14347   if test "$ac_cv_c_bigendian" = unknown; then
14348     ac_cv_c_bigendian=no
14349   else
14350     # finding both strings is unlikely to happen, but who knows?
14351     ac_cv_c_bigendian=unknown
14352   fi
14353 fi
14354 else
14355   echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14357
14358
14359 fi
14360
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 else
14363   cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369 $ac_includes_default
14370 int
14371 main ()
14372 {
14373
14374   /* Are we little or big endian?  From Harbison&Steele.  */
14375   union
14376   {
14377     long int l;
14378     char c[sizeof (long int)];
14379   } u;
14380   u.l = 1;
14381   return u.c[sizeof (long int) - 1] == 1;
14382
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 rm -f conftest$ac_exeext
14388 if { (ac_try="$ac_link"
14389 case "(($ac_try" in
14390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391   *) ac_try_echo=$ac_try;;
14392 esac
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394   (eval "$ac_link") 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14398   { (case "(($ac_try" in
14399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400   *) ac_try_echo=$ac_try;;
14401 esac
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403   (eval "$ac_try") 2>&5
14404   ac_status=$?
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); }; }; then
14407   ac_cv_c_bigendian=no
14408 else
14409   echo "$as_me: program exited with status $ac_status" >&5
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ( exit $ac_status )
14414 ac_cv_c_bigendian=yes
14415 fi
14416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14417 fi
14418
14419
14420 fi
14421
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 fi
14424 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14425 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14426 case $ac_cv_c_bigendian in
14427   yes)
14428
14429 cat >>confdefs.h <<\_ACEOF
14430 #define WORDS_BIGENDIAN 1
14431 _ACEOF
14432  ;;
14433   no)
14434      ;;
14435   *)
14436     { { echo "$as_me:$LINENO: error: unknown endianness
14437 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14438 echo "$as_me: error: unknown endianness
14439 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14440    { (exit 1); exit 1; }; } ;;
14441 esac
14442
14443 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14444 ASM_TYPES_HEADER=./asm_types.h
14445
14446
14447 for ac_header in inttypes.h
14448 do
14449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14451   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14454   echo $ECHO_N "(cached) $ECHO_C" >&6
14455 fi
14456 ac_res=`eval echo '${'$as_ac_Header'}'`
14457                { echo "$as_me:$LINENO: result: $ac_res" >&5
14458 echo "${ECHO_T}$ac_res" >&6; }
14459 else
14460   # Is the header compilable?
14461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14463 cat >conftest.$ac_ext <<_ACEOF
14464 /* confdefs.h.  */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h.  */
14469 $ac_includes_default
14470 #include <$ac_header>
14471 _ACEOF
14472 rm -f conftest.$ac_objext
14473 if { (ac_try="$ac_compile"
14474 case "(($ac_try" in
14475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476   *) ac_try_echo=$ac_try;;
14477 esac
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479   (eval "$ac_compile") 2>conftest.er1
14480   ac_status=$?
14481   grep -v '^ *+' conftest.er1 >conftest.err
14482   rm -f conftest.er1
14483   cat conftest.err >&5
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } && {
14486          test -z "$ac_c_werror_flag" ||
14487          test ! -s conftest.err
14488        } && test -s conftest.$ac_objext; then
14489   ac_header_compiler=yes
14490 else
14491   echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14493
14494         ac_header_compiler=no
14495 fi
14496
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14499 echo "${ECHO_T}$ac_header_compiler" >&6; }
14500
14501 # Is the header present?
14502 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h.  */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h.  */
14510 #include <$ac_header>
14511 _ACEOF
14512 if { (ac_try="$ac_cpp conftest.$ac_ext"
14513 case "(($ac_try" in
14514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515   *) ac_try_echo=$ac_try;;
14516 esac
14517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14519   ac_status=$?
14520   grep -v '^ *+' conftest.er1 >conftest.err
14521   rm -f conftest.er1
14522   cat conftest.err >&5
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); } >/dev/null && {
14525          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14526          test ! -s conftest.err
14527        }; then
14528   ac_header_preproc=yes
14529 else
14530   echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533   ac_header_preproc=no
14534 fi
14535
14536 rm -f conftest.err conftest.$ac_ext
14537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14538 echo "${ECHO_T}$ac_header_preproc" >&6; }
14539
14540 # So?  What about this header?
14541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14542   yes:no: )
14543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14547     ac_header_preproc=yes
14548     ;;
14549   no:yes:* )
14550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14552     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14553 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14554     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14556     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14557 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14560     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14562
14563     ;;
14564 esac
14565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14568   echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570   eval "$as_ac_Header=\$ac_header_preproc"
14571 fi
14572 ac_res=`eval echo '${'$as_ac_Header'}'`
14573                { echo "$as_me:$LINENO: result: $ac_res" >&5
14574 echo "${ECHO_T}$ac_res" >&6; }
14575
14576 fi
14577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14578   cat >>confdefs.h <<_ACEOF
14579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14580 _ACEOF
14581
14582 fi
14583
14584 done
14585
14586 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14587 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14588 if test "${ac_cv_type_intptr_t+set}" = set; then
14589   echo $ECHO_N "(cached) $ECHO_C" >&6
14590 else
14591   cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h.  */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h.  */
14597 $ac_includes_default
14598 typedef intptr_t ac__type_new_;
14599 int
14600 main ()
14601 {
14602 if ((ac__type_new_ *) 0)
14603   return 0;
14604 if (sizeof (ac__type_new_))
14605   return 0;
14606   ;
14607   return 0;
14608 }
14609 _ACEOF
14610 rm -f conftest.$ac_objext
14611 if { (ac_try="$ac_compile"
14612 case "(($ac_try" in
14613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614   *) ac_try_echo=$ac_try;;
14615 esac
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617   (eval "$ac_compile") 2>conftest.er1
14618   ac_status=$?
14619   grep -v '^ *+' conftest.er1 >conftest.err
14620   rm -f conftest.er1
14621   cat conftest.err >&5
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); } && {
14624          test -z "$ac_c_werror_flag" ||
14625          test ! -s conftest.err
14626        } && test -s conftest.$ac_objext; then
14627   ac_cv_type_intptr_t=yes
14628 else
14629   echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14631
14632         ac_cv_type_intptr_t=no
14633 fi
14634
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636 fi
14637 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14638 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14639 if test $ac_cv_type_intptr_t = yes; then
14640
14641 cat >>confdefs.h <<_ACEOF
14642 #define HAVE_INTPTR_T 1
14643 _ACEOF
14644
14645
14646 fi
14647
14648 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14649 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14650 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14651   echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653   cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h.  */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h.  */
14659 #include <sys/stat.h>
14660 int
14661 main ()
14662 {
14663 struct stat stat; stat.st_flags = 0;
14664   ;
14665   return 0;
14666 }
14667 _ACEOF
14668 rm -f conftest.$ac_objext
14669 if { (ac_try="$ac_compile"
14670 case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_compile") 2>conftest.er1
14676   ac_status=$?
14677   grep -v '^ *+' conftest.er1 >conftest.err
14678   rm -f conftest.er1
14679   cat conftest.err >&5
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); } && {
14682          test -z "$ac_c_werror_flag" ||
14683          test ! -s conftest.err
14684        } && test -s conftest.$ac_objext; then
14685   e2fsprogs_cv_struct_st_flags=yes
14686 else
14687   echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690         e2fsprogs_cv_struct_st_flags=no
14691 fi
14692
14693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 fi
14695
14696 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14697 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14698 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14699   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14700 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14701   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14702   echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704   cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 #include <sys/stat.h>
14711 int
14712 main ()
14713 {
14714 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14715   ;
14716   return 0;
14717 }
14718 _ACEOF
14719 rm -f conftest.$ac_objext
14720 if { (ac_try="$ac_compile"
14721 case "(($ac_try" in
14722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723   *) ac_try_echo=$ac_try;;
14724 esac
14725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14726   (eval "$ac_compile") 2>conftest.er1
14727   ac_status=$?
14728   grep -v '^ *+' conftest.er1 >conftest.err
14729   rm -f conftest.er1
14730   cat conftest.err >&5
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } && {
14733          test -z "$ac_c_werror_flag" ||
14734          test ! -s conftest.err
14735        } && test -s conftest.$ac_objext; then
14736   e2fsprogs_cv_struct_st_flags_immut=yes
14737 else
14738   echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14740
14741         e2fsprogs_cv_struct_st_flags_immut=no
14742 fi
14743
14744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 fi
14746
14747   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14748 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14749   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14750           cat >>confdefs.h <<\_ACEOF
14751 #define HAVE_STAT_FLAGS 1
14752 _ACEOF
14753
14754   fi
14755 fi
14756 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14757 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14758 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14759   echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761   cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767 #include <sys/types.h>
14768          #include <sys/socket.h>
14769
14770 int
14771 main ()
14772 {
14773 static struct sockaddr ac_aggr;
14774 if (ac_aggr.sa_len)
14775 return 0;
14776   ;
14777   return 0;
14778 }
14779 _ACEOF
14780 rm -f conftest.$ac_objext
14781 if { (ac_try="$ac_compile"
14782 case "(($ac_try" in
14783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784   *) ac_try_echo=$ac_try;;
14785 esac
14786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787   (eval "$ac_compile") 2>conftest.er1
14788   ac_status=$?
14789   grep -v '^ *+' conftest.er1 >conftest.err
14790   rm -f conftest.er1
14791   cat conftest.err >&5
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); } && {
14794          test -z "$ac_c_werror_flag" ||
14795          test ! -s conftest.err
14796        } && test -s conftest.$ac_objext; then
14797   ac_cv_member_struct_sockaddr_sa_len=yes
14798 else
14799   echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14801
14802         cat >conftest.$ac_ext <<_ACEOF
14803 /* confdefs.h.  */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h.  */
14808 #include <sys/types.h>
14809          #include <sys/socket.h>
14810
14811 int
14812 main ()
14813 {
14814 static struct sockaddr ac_aggr;
14815 if (sizeof ac_aggr.sa_len)
14816 return 0;
14817   ;
14818   return 0;
14819 }
14820 _ACEOF
14821 rm -f conftest.$ac_objext
14822 if { (ac_try="$ac_compile"
14823 case "(($ac_try" in
14824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825   *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828   (eval "$ac_compile") 2>conftest.er1
14829   ac_status=$?
14830   grep -v '^ *+' conftest.er1 >conftest.err
14831   rm -f conftest.er1
14832   cat conftest.err >&5
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } && {
14835          test -z "$ac_c_werror_flag" ||
14836          test ! -s conftest.err
14837        } && test -s conftest.$ac_objext; then
14838   ac_cv_member_struct_sockaddr_sa_len=yes
14839 else
14840   echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14842
14843         ac_cv_member_struct_sockaddr_sa_len=no
14844 fi
14845
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847 fi
14848
14849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14850 fi
14851 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14852 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14853 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14854
14855 cat >>confdefs.h <<_ACEOF
14856 #define HAVE_SA_LEN 1
14857 _ACEOF
14858
14859 fi
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890 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
14891 do
14892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14896   echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898   cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14906 #define $ac_func innocuous_$ac_func
14907
14908 /* System header to define __stub macros and hopefully few prototypes,
14909     which can conflict with char $ac_func (); below.
14910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14911     <limits.h> exists even on freestanding compilers.  */
14912
14913 #ifdef __STDC__
14914 # include <limits.h>
14915 #else
14916 # include <assert.h>
14917 #endif
14918
14919 #undef $ac_func
14920
14921 /* Override any GCC internal prototype to avoid an error.
14922    Use char because int might match the return type of a GCC
14923    builtin and then its argument prototype would still apply.  */
14924 #ifdef __cplusplus
14925 extern "C"
14926 #endif
14927 char $ac_func ();
14928 /* The GNU C library defines this for functions which it implements
14929     to always fail with ENOSYS.  Some functions are actually named
14930     something starting with __ and the normal name is an alias.  */
14931 #if defined __stub_$ac_func || defined __stub___$ac_func
14932 choke me
14933 #endif
14934
14935 int
14936 main ()
14937 {
14938 return $ac_func ();
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (ac_try="$ac_link"
14945 case "(($ac_try" in
14946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947   *) ac_try_echo=$ac_try;;
14948 esac
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950   (eval "$ac_link") 2>conftest.er1
14951   ac_status=$?
14952   grep -v '^ *+' conftest.er1 >conftest.err
14953   rm -f conftest.er1
14954   cat conftest.err >&5
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } && {
14957          test -z "$ac_c_werror_flag" ||
14958          test ! -s conftest.err
14959        } && test -s conftest$ac_exeext &&
14960        $as_test_x conftest$ac_exeext; then
14961   eval "$as_ac_var=yes"
14962 else
14963   echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14965
14966         eval "$as_ac_var=no"
14967 fi
14968
14969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14970       conftest$ac_exeext conftest.$ac_ext
14971 fi
14972 ac_res=`eval echo '${'$as_ac_var'}'`
14973                { echo "$as_me:$LINENO: result: $ac_res" >&5
14974 echo "${ECHO_T}$ac_res" >&6; }
14975 if test `eval echo '${'$as_ac_var'}'` = yes; then
14976   cat >>confdefs.h <<_ACEOF
14977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14978 _ACEOF
14979
14980 fi
14981 done
14982
14983 SOCKET_LIB=''
14984 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14985 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14986 if test "${ac_cv_lib_socket_socket+set}" = set; then
14987   echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989   ac_check_lib_save_LIBS=$LIBS
14990 LIBS="-lsocket  $LIBS"
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h.  */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h.  */
14997
14998 /* Override any GCC internal prototype to avoid an error.
14999    Use char because int might match the return type of a GCC
15000    builtin and then its argument prototype would still apply.  */
15001 #ifdef __cplusplus
15002 extern "C"
15003 #endif
15004 char socket ();
15005 int
15006 main ()
15007 {
15008 return socket ();
15009   ;
15010   return 0;
15011 }
15012 _ACEOF
15013 rm -f conftest.$ac_objext conftest$ac_exeext
15014 if { (ac_try="$ac_link"
15015 case "(($ac_try" in
15016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017   *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020   (eval "$ac_link") 2>conftest.er1
15021   ac_status=$?
15022   grep -v '^ *+' conftest.er1 >conftest.err
15023   rm -f conftest.er1
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } && {
15027          test -z "$ac_c_werror_flag" ||
15028          test ! -s conftest.err
15029        } && test -s conftest$ac_exeext &&
15030        $as_test_x conftest$ac_exeext; then
15031   ac_cv_lib_socket_socket=yes
15032 else
15033   echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15035
15036         ac_cv_lib_socket_socket=no
15037 fi
15038
15039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15040       conftest$ac_exeext conftest.$ac_ext
15041 LIBS=$ac_check_lib_save_LIBS
15042 fi
15043 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15044 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15045 if test $ac_cv_lib_socket_socket = yes; then
15046   SOCKET_LIB=-lsocket
15047 fi
15048
15049
15050 DLOPEN_LIB=''
15051 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15052 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15053 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15054   echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056   ac_check_lib_save_LIBS=$LIBS
15057 LIBS="-ldl  $LIBS"
15058 cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064
15065 /* Override any GCC internal prototype to avoid an error.
15066    Use char because int might match the return type of a GCC
15067    builtin and then its argument prototype would still apply.  */
15068 #ifdef __cplusplus
15069 extern "C"
15070 #endif
15071 char dlopen ();
15072 int
15073 main ()
15074 {
15075 return dlopen ();
15076   ;
15077   return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (ac_try="$ac_link"
15082 case "(($ac_try" in
15083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084   *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087   (eval "$ac_link") 2>conftest.er1
15088   ac_status=$?
15089   grep -v '^ *+' conftest.er1 >conftest.err
15090   rm -f conftest.er1
15091   cat conftest.err >&5
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); } && {
15094          test -z "$ac_c_werror_flag" ||
15095          test ! -s conftest.err
15096        } && test -s conftest$ac_exeext &&
15097        $as_test_x conftest$ac_exeext; then
15098   ac_cv_lib_dl_dlopen=yes
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103         ac_cv_lib_dl_dlopen=no
15104 fi
15105
15106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15107       conftest$ac_exeext conftest.$ac_ext
15108 LIBS=$ac_check_lib_save_LIBS
15109 fi
15110 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15111 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15112 if test $ac_cv_lib_dl_dlopen = yes; then
15113   DLOPEN_LIB=-ldl
15114 cat >>confdefs.h <<\_ACEOF
15115 #define HAVE_DLOPEN 1
15116 _ACEOF
15117
15118 fi
15119
15120
15121 { echo "$as_me:$LINENO: checking for optreset" >&5
15122 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15123 if test "${ac_cv_have_optreset+set}" = set; then
15124   echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126   cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h.  */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h.  */
15132 #include <unistd.h>
15133
15134 _ACEOF
15135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15136   $EGREP "optreset" >/dev/null 2>&1; then
15137   ac_cv_have_optreset=yes
15138 else
15139   ac_cv_have_optreset=no
15140 fi
15141 rm -f conftest*
15142
15143 fi
15144 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15145 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15146 if test $ac_cv_have_optreset = yes; then
15147   cat >>confdefs.h <<\_ACEOF
15148 #define HAVE_OPTRESET 1
15149 _ACEOF
15150
15151 fi
15152 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15153 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15154 if diff -u $0 $0 > /dev/null 2>&1 ; then
15155    UNI_DIFF_OPTS=-u
15156 else
15157    UNI_DIFF_OPTS=-c
15158 fi
15159 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15160 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15161
15162 case "$host_os" in
15163 linux*)
15164         cat >>confdefs.h <<\_ACEOF
15165 #define HAVE_EXT2_IOCTLS 1
15166 _ACEOF
15167
15168         ;;
15169 esac
15170 LINUX_CMT="#"
15171 CYGWIN_CMT="#"
15172 UNIX_CMT=
15173 case "$host_os" in
15174 linux*)
15175         LINUX_CMT=
15176         ;;
15177 cygwin)
15178         CYGWIN_CMT=
15179         UNIX_CMT="#"
15180         ;;
15181 esac
15182
15183
15184
15185 case "$host_os" in
15186 linux* | gnu* | k*bsd*-gnu)
15187         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15188                 root_prefix="";
15189                 echo "On $host_os systems, root_prefix defaults to ''"
15190         fi
15191         ;;
15192 esac
15193 case "$host_os" in
15194 linux* | gnu* | k*bsd*-gnu)
15195         if test "$prefix" = NONE ; then
15196                 prefix="/usr";
15197                 echo "On $host_os systems, prefix defaults to /usr"
15198                 if test "$mandir" = '${prefix}/man' ; then
15199                         echo "...and mandir defaults to /usr/share/man"
15200                         mandir=/usr/share/man
15201                 fi
15202         fi
15203 ;;
15204 esac
15205 if test "$root_prefix" = NONE ; then
15206         if test "$prefix" = NONE ; then
15207                 root_prefix="$ac_default_prefix"
15208         else
15209                 root_prefix="$prefix"
15210         fi
15211         root_bindir=$bindir
15212         root_sbindir=$sbindir
15213         root_libdir=$libdir
15214         root_sysconfdir=$sysconfdir
15215 else
15216         root_bindir='${root_prefix}/bin'
15217         root_sbindir='${root_prefix}/sbin'
15218         root_libdir='${root_prefix}/lib'
15219         root_sysconfdir='${root_prefix}/etc'
15220 fi
15221 if test "$bindir" != '${exec_prefix}/bin'; then
15222     root_bindir=$bindir
15223     echo "Setting root_bindir to $root_bindir"
15224 fi
15225 if test "$sbindir" != '${exec_prefix}/sbin'; then
15226     root_sbindir=$sbindir
15227     echo "Setting root_sbindir to $root_sbindir"
15228 fi
15229 if test "$libdir" != '${exec_prefix}/lib'; then
15230     root_libdir=$libdir
15231     echo "Setting root_libdir to $root_libdir"
15232 fi
15233 if test "$sysconfdir" != '${prefix}/etc'; then
15234     root_sysconfdir=$sysconfdir
15235     echo "Setting root_sysconfdir to $root_sysconfdir"
15236 fi
15237
15238
15239
15240
15241
15242 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15243 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15244 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15245   echo $ECHO_N "(cached) $ECHO_C" >&6
15246 else
15247   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h.  */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h.  */
15254 #include <stdio.h>
15255 int
15256 main ()
15257 {
15258 fflush(stdout);
15259   ;
15260   return 0;
15261 }
15262 _ACEOF
15263 rm -f conftest.$ac_objext conftest$ac_exeext
15264 if { (ac_try="$ac_link"
15265 case "(($ac_try" in
15266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267   *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270   (eval "$ac_link") 2>conftest.er1
15271   ac_status=$?
15272   grep -v '^ *+' conftest.er1 >conftest.err
15273   rm -f conftest.er1
15274   cat conftest.err >&5
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); } && {
15277          test -z "$ac_c_werror_flag" ||
15278          test ! -s conftest.err
15279        } && test -s conftest$ac_exeext &&
15280        $as_test_x conftest$ac_exeext; then
15281   ac_cv_e2fsprogs_use_static=yes
15282 else
15283   echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15285
15286         ac_cv_e2fsprogs_use_static=no
15287 fi
15288
15289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15290       conftest$ac_exeext conftest.$ac_ext
15291 LDFLAGS=$SAVE_LDFLAGS
15292 fi
15293
15294 case "$host_os" in
15295 solaris2.*)
15296         ac_cv_e2fsprogs_use_static=no
15297 ;;
15298 esac
15299 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15300 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15301 LDFLAG_STATIC=
15302 if test $ac_cv_e2fsprogs_use_static = yes; then
15303         LDFLAG_STATIC=-static
15304 fi
15305
15306 case "$host_os" in
15307 darwin*)
15308         echo "Using Apple Darwin / GNU libintl workaround"
15309         cat >>confdefs.h <<\_ACEOF
15310 #define _INTL_REDIRECT_MACROS 1
15311 _ACEOF
15312
15313         ;;
15314 esac
15315 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15316 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15317
15318
15319 if test "$cross_compiling" = yes ; then
15320   DO_TEST_SUITE=
15321 else
15322   DO_TEST_SUITE=check
15323 fi
15324
15325 INTL_FLAGS=
15326 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15327         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15328 fi
15329
15330 if test $cross_compiling = no; then
15331    BUILD_CFLAGS="$CFLAGS"
15332    BUILD_LDFLAGS="$LDFLAGS"
15333 else
15334    BUILD_CFLAGS=
15335    BUILD_LDFLAGS=
15336 fi
15337
15338
15339 test -d lib || mkdir lib
15340 test -d include || mkdir include
15341 test -d include/linux || mkdir include/linux
15342 test -d include/asm || mkdir include/asm
15343 for i in MCONFIG Makefile e2fsprogs.spec \
15344         util/Makefile util/subst.conf util/gen-tarball \
15345         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15346         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15347         lib/uuid/Makefile lib/uuid/uuid_types.h \
15348         lib/blkid/Makefile lib/blkid/blkid_types.h \
15349         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15350         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15351         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15352         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15353         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15354         if test -d `dirname ${srcdir}/$i` ; then
15355                 outlist="$outlist $i"
15356         fi
15357 done
15358 ac_config_files="$ac_config_files $outlist"
15359
15360 cat >confcache <<\_ACEOF
15361 # This file is a shell script that caches the results of configure
15362 # tests run on this system so they can be shared between configure
15363 # scripts and configure runs, see configure's option --config-cache.
15364 # It is not useful on other systems.  If it contains results you don't
15365 # want to keep, you may remove or edit it.
15366 #
15367 # config.status only pays attention to the cache file if you give it
15368 # the --recheck option to rerun configure.
15369 #
15370 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15371 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15372 # following values.
15373
15374 _ACEOF
15375
15376 # The following way of writing the cache mishandles newlines in values,
15377 # but we know of no workaround that is simple, portable, and efficient.
15378 # So, we kill variables containing newlines.
15379 # Ultrix sh set writes to stderr and can't be redirected directly,
15380 # and sets the high bit in the cache file unless we assign to the vars.
15381 (
15382   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15383     eval ac_val=\$$ac_var
15384     case $ac_val in #(
15385     *${as_nl}*)
15386       case $ac_var in #(
15387       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15388 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15389       esac
15390       case $ac_var in #(
15391       _ | IFS | as_nl) ;; #(
15392       *) $as_unset $ac_var ;;
15393       esac ;;
15394     esac
15395   done
15396
15397   (set) 2>&1 |
15398     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15399     *${as_nl}ac_space=\ *)
15400       # `set' does not quote correctly, so add quotes (double-quote
15401       # substitution turns \\\\ into \\, and sed turns \\ into \).
15402       sed -n \
15403         "s/'/'\\\\''/g;
15404           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15405       ;; #(
15406     *)
15407       # `set' quotes correctly as required by POSIX, so do not add quotes.
15408       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15409       ;;
15410     esac |
15411     sort
15412 ) |
15413   sed '
15414      /^ac_cv_env_/b end
15415      t clear
15416      :clear
15417      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15418      t end
15419      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15420      :end' >>confcache
15421 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15422   if test -w "$cache_file"; then
15423     test "x$cache_file" != "x/dev/null" &&
15424       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15425 echo "$as_me: updating cache $cache_file" >&6;}
15426     cat confcache >$cache_file
15427   else
15428     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15429 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15430   fi
15431 fi
15432 rm -f confcache
15433
15434 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15435 # Let make expand exec_prefix.
15436 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15437
15438 # Transform confdefs.h into DEFS.
15439 # Protect against shell expansion while executing Makefile rules.
15440 # Protect against Makefile macro expansion.
15441 #
15442 # If the first sed substitution is executed (which looks for macros that
15443 # take arguments), then branch to the quote section.  Otherwise,
15444 # look for a macro that doesn't take arguments.
15445 ac_script='
15446 t clear
15447 :clear
15448 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15449 t quote
15450 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15451 t quote
15452 b any
15453 :quote
15454 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15455 s/\[/\\&/g
15456 s/\]/\\&/g
15457 s/\$/$$/g
15458 H
15459 :any
15460 ${
15461         g
15462         s/^\n//
15463         s/\n/ /g
15464         p
15465 }
15466 '
15467 DEFS=`sed -n "$ac_script" confdefs.h`
15468
15469
15470 ac_libobjs=
15471 ac_ltlibobjs=
15472 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15473   # 1. Remove the extension, and $U if already installed.
15474   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15475   ac_i=`echo "$ac_i" | sed "$ac_script"`
15476   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15477   #    will be set to the directory where LIBOBJS objects are built.
15478   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15479   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15480 done
15481 LIBOBJS=$ac_libobjs
15482
15483 LTLIBOBJS=$ac_ltlibobjs
15484
15485
15486
15487 : ${CONFIG_STATUS=./config.status}
15488 ac_clean_files_save=$ac_clean_files
15489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15492 cat >$CONFIG_STATUS <<_ACEOF
15493 #! $SHELL
15494 # Generated by $as_me.
15495 # Run this file to recreate the current configuration.
15496 # Compiler output produced by configure, useful for debugging
15497 # configure, is in config.log if it exists.
15498
15499 debug=false
15500 ac_cs_recheck=false
15501 ac_cs_silent=false
15502 SHELL=\${CONFIG_SHELL-$SHELL}
15503 _ACEOF
15504
15505 cat >>$CONFIG_STATUS <<\_ACEOF
15506 ## --------------------- ##
15507 ## M4sh Initialization.  ##
15508 ## --------------------- ##
15509
15510 # Be more Bourne compatible
15511 DUALCASE=1; export DUALCASE # for MKS sh
15512 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15513   emulate sh
15514   NULLCMD=:
15515   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15516   # is contrary to our usage.  Disable this feature.
15517   alias -g '${1+"$@"}'='"$@"'
15518   setopt NO_GLOB_SUBST
15519 else
15520   case `(set -o) 2>/dev/null` in
15521   *posix*) set -o posix ;;
15522 esac
15523
15524 fi
15525
15526
15527
15528
15529 # PATH needs CR
15530 # Avoid depending upon Character Ranges.
15531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15534 as_cr_digits='0123456789'
15535 as_cr_alnum=$as_cr_Letters$as_cr_digits
15536
15537 # The user is always right.
15538 if test "${PATH_SEPARATOR+set}" != set; then
15539   echo "#! /bin/sh" >conf$$.sh
15540   echo  "exit 0"   >>conf$$.sh
15541   chmod +x conf$$.sh
15542   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15543     PATH_SEPARATOR=';'
15544   else
15545     PATH_SEPARATOR=:
15546   fi
15547   rm -f conf$$.sh
15548 fi
15549
15550 # Support unset when possible.
15551 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15552   as_unset=unset
15553 else
15554   as_unset=false
15555 fi
15556
15557
15558 # IFS
15559 # We need space, tab and new line, in precisely that order.  Quoting is
15560 # there to prevent editors from complaining about space-tab.
15561 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15562 # splitting by setting IFS to empty value.)
15563 as_nl='
15564 '
15565 IFS=" ""        $as_nl"
15566
15567 # Find who we are.  Look in the path if we contain no directory separator.
15568 case $0 in
15569   *[\\/]* ) as_myself=$0 ;;
15570   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15571 for as_dir in $PATH
15572 do
15573   IFS=$as_save_IFS
15574   test -z "$as_dir" && as_dir=.
15575   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15576 done
15577 IFS=$as_save_IFS
15578
15579      ;;
15580 esac
15581 # We did not find ourselves, most probably we were run as `sh COMMAND'
15582 # in which case we are not to be found in the path.
15583 if test "x$as_myself" = x; then
15584   as_myself=$0
15585 fi
15586 if test ! -f "$as_myself"; then
15587   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15588   { (exit 1); exit 1; }
15589 fi
15590
15591 # Work around bugs in pre-3.0 UWIN ksh.
15592 for as_var in ENV MAIL MAILPATH
15593 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15594 done
15595 PS1='$ '
15596 PS2='> '
15597 PS4='+ '
15598
15599 # NLS nuisances.
15600 for as_var in \
15601   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15602   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15603   LC_TELEPHONE LC_TIME
15604 do
15605   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15606     eval $as_var=C; export $as_var
15607   else
15608     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15609   fi
15610 done
15611
15612 # Required to use basename.
15613 if expr a : '\(a\)' >/dev/null 2>&1 &&
15614    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15615   as_expr=expr
15616 else
15617   as_expr=false
15618 fi
15619
15620 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15621   as_basename=basename
15622 else
15623   as_basename=false
15624 fi
15625
15626
15627 # Name of the executable.
15628 as_me=`$as_basename -- "$0" ||
15629 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15630          X"$0" : 'X\(//\)$' \| \
15631          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15632 echo X/"$0" |
15633     sed '/^.*\/\([^/][^/]*\)\/*$/{
15634             s//\1/
15635             q
15636           }
15637           /^X\/\(\/\/\)$/{
15638             s//\1/
15639             q
15640           }
15641           /^X\/\(\/\).*/{
15642             s//\1/
15643             q
15644           }
15645           s/.*/./; q'`
15646
15647 # CDPATH.
15648 $as_unset CDPATH
15649
15650
15651
15652   as_lineno_1=$LINENO
15653   as_lineno_2=$LINENO
15654   test "x$as_lineno_1" != "x$as_lineno_2" &&
15655   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15656
15657   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15658   # uniformly replaced by the line number.  The first 'sed' inserts a
15659   # line-number line after each line using $LINENO; the second 'sed'
15660   # does the real work.  The second script uses 'N' to pair each
15661   # line-number line with the line containing $LINENO, and appends
15662   # trailing '-' during substitution so that $LINENO is not a special
15663   # case at line end.
15664   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15665   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15666   # E. McMahon (1931-1989) for sed's syntax.  :-)
15667   sed -n '
15668     p
15669     /[$]LINENO/=
15670   ' <$as_myself |
15671     sed '
15672       s/[$]LINENO.*/&-/
15673       t lineno
15674       b
15675       :lineno
15676       N
15677       :loop
15678       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15679       t loop
15680       s/-\n.*//
15681     ' >$as_me.lineno &&
15682   chmod +x "$as_me.lineno" ||
15683     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15684    { (exit 1); exit 1; }; }
15685
15686   # Don't try to exec as it changes $[0], causing all sort of problems
15687   # (the dirname of $[0] is not the place where we might find the
15688   # original and so on.  Autoconf is especially sensitive to this).
15689   . "./$as_me.lineno"
15690   # Exit status is that of the last command.
15691   exit
15692 }
15693
15694
15695 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15696   as_dirname=dirname
15697 else
15698   as_dirname=false
15699 fi
15700
15701 ECHO_C= ECHO_N= ECHO_T=
15702 case `echo -n x` in
15703 -n*)
15704   case `echo 'x\c'` in
15705   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15706   *)   ECHO_C='\c';;
15707   esac;;
15708 *)
15709   ECHO_N='-n';;
15710 esac
15711
15712 if expr a : '\(a\)' >/dev/null 2>&1 &&
15713    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15714   as_expr=expr
15715 else
15716   as_expr=false
15717 fi
15718
15719 rm -f conf$$ conf$$.exe conf$$.file
15720 if test -d conf$$.dir; then
15721   rm -f conf$$.dir/conf$$.file
15722 else
15723   rm -f conf$$.dir
15724   mkdir conf$$.dir
15725 fi
15726 echo >conf$$.file
15727 if ln -s conf$$.file conf$$ 2>/dev/null; then
15728   as_ln_s='ln -s'
15729   # ... but there are two gotchas:
15730   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15731   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15732   # In both cases, we have to default to `cp -p'.
15733   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15734     as_ln_s='cp -p'
15735 elif ln conf$$.file conf$$ 2>/dev/null; then
15736   as_ln_s=ln
15737 else
15738   as_ln_s='cp -p'
15739 fi
15740 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15741 rmdir conf$$.dir 2>/dev/null
15742
15743 if mkdir -p . 2>/dev/null; then
15744   as_mkdir_p=:
15745 else
15746   test -d ./-p && rmdir ./-p
15747   as_mkdir_p=false
15748 fi
15749
15750 if test -x / >/dev/null 2>&1; then
15751   as_test_x='test -x'
15752 else
15753   if ls -dL / >/dev/null 2>&1; then
15754     as_ls_L_option=L
15755   else
15756     as_ls_L_option=
15757   fi
15758   as_test_x='
15759     eval sh -c '\''
15760       if test -d "$1"; then
15761         test -d "$1/.";
15762       else
15763         case $1 in
15764         -*)set "./$1";;
15765         esac;
15766         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15767         ???[sx]*):;;*)false;;esac;fi
15768     '\'' sh
15769   '
15770 fi
15771 as_executable_p=$as_test_x
15772
15773 # Sed expression to map a string onto a valid CPP name.
15774 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15775
15776 # Sed expression to map a string onto a valid variable name.
15777 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15778
15779
15780 exec 6>&1
15781
15782 # Save the log message, to keep $[0] and so on meaningful, and to
15783 # report actual input values of CONFIG_FILES etc. instead of their
15784 # values after options handling.
15785 ac_log="
15786 This file was extended by $as_me, which was
15787 generated by GNU Autoconf 2.61.  Invocation command line was
15788
15789   CONFIG_FILES    = $CONFIG_FILES
15790   CONFIG_HEADERS  = $CONFIG_HEADERS
15791   CONFIG_LINKS    = $CONFIG_LINKS
15792   CONFIG_COMMANDS = $CONFIG_COMMANDS
15793   $ $0 $@
15794
15795 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15796 "
15797
15798 _ACEOF
15799
15800 cat >>$CONFIG_STATUS <<_ACEOF
15801 # Files that config.status was made for.
15802 config_files="$ac_config_files"
15803 config_commands="$ac_config_commands"
15804
15805 _ACEOF
15806
15807 cat >>$CONFIG_STATUS <<\_ACEOF
15808 ac_cs_usage="\
15809 \`$as_me' instantiates files from templates according to the
15810 current configuration.
15811
15812 Usage: $0 [OPTIONS] [FILE]...
15813
15814   -h, --help       print this help, then exit
15815   -V, --version    print version number and configuration settings, then exit
15816   -q, --quiet      do not print progress messages
15817   -d, --debug      don't remove temporary files
15818       --recheck    update $as_me by reconfiguring in the same conditions
15819   --file=FILE[:TEMPLATE]
15820                    instantiate the configuration file FILE
15821
15822 Configuration files:
15823 $config_files
15824
15825 Configuration commands:
15826 $config_commands
15827
15828 Report bugs to <bug-autoconf@gnu.org>."
15829
15830 _ACEOF
15831 cat >>$CONFIG_STATUS <<_ACEOF
15832 ac_cs_version="\\
15833 config.status
15834 configured by $0, generated by GNU Autoconf 2.61,
15835   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15836
15837 Copyright (C) 2006 Free Software Foundation, Inc.
15838 This config.status script is free software; the Free Software Foundation
15839 gives unlimited permission to copy, distribute and modify it."
15840
15841 ac_pwd='$ac_pwd'
15842 srcdir='$srcdir'
15843 INSTALL='$INSTALL'
15844 _ACEOF
15845
15846 cat >>$CONFIG_STATUS <<\_ACEOF
15847 # If no file are specified by the user, then we need to provide default
15848 # value.  By we need to know if files were specified by the user.
15849 ac_need_defaults=:
15850 while test $# != 0
15851 do
15852   case $1 in
15853   --*=*)
15854     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15855     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15856     ac_shift=:
15857     ;;
15858   *)
15859     ac_option=$1
15860     ac_optarg=$2
15861     ac_shift=shift
15862     ;;
15863   esac
15864
15865   case $ac_option in
15866   # Handling of the options.
15867   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15868     ac_cs_recheck=: ;;
15869   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15870     echo "$ac_cs_version"; exit ;;
15871   --debug | --debu | --deb | --de | --d | -d )
15872     debug=: ;;
15873   --file | --fil | --fi | --f )
15874     $ac_shift
15875     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15876     ac_need_defaults=false;;
15877   --he | --h |  --help | --hel | -h )
15878     echo "$ac_cs_usage"; exit ;;
15879   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15880   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15881     ac_cs_silent=: ;;
15882
15883   # This is an error.
15884   -*) { echo "$as_me: error: unrecognized option: $1
15885 Try \`$0 --help' for more information." >&2
15886    { (exit 1); exit 1; }; } ;;
15887
15888   *) ac_config_targets="$ac_config_targets $1"
15889      ac_need_defaults=false ;;
15890
15891   esac
15892   shift
15893 done
15894
15895 ac_configure_extra_args=
15896
15897 if $ac_cs_silent; then
15898   exec 6>/dev/null
15899   ac_configure_extra_args="$ac_configure_extra_args --silent"
15900 fi
15901
15902 _ACEOF
15903 cat >>$CONFIG_STATUS <<_ACEOF
15904 if \$ac_cs_recheck; then
15905   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15906   CONFIG_SHELL=$SHELL
15907   export CONFIG_SHELL
15908   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15909 fi
15910
15911 _ACEOF
15912 cat >>$CONFIG_STATUS <<\_ACEOF
15913 exec 5>>config.log
15914 {
15915   echo
15916   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15917 ## Running $as_me. ##
15918 _ASBOX
15919   echo "$ac_log"
15920 } >&5
15921
15922 _ACEOF
15923 cat >>$CONFIG_STATUS <<_ACEOF
15924 #
15925 # INIT-COMMANDS
15926 #
15927 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15928     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15929     # from automake.
15930     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15931     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15932     LINGUAS="${LINGUAS-%UNSET%}"
15933
15934
15935 _ACEOF
15936
15937 cat >>$CONFIG_STATUS <<\_ACEOF
15938
15939 # Handling of arguments.
15940 for ac_config_target in $ac_config_targets
15941 do
15942   case $ac_config_target in
15943     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15944     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15945
15946   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15947 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15948    { (exit 1); exit 1; }; };;
15949   esac
15950 done
15951
15952
15953 # If the user did not use the arguments to specify the items to instantiate,
15954 # then the envvar interface is used.  Set only those that are not.
15955 # We use the long form for the default assignment because of an extremely
15956 # bizarre bug on SunOS 4.1.3.
15957 if $ac_need_defaults; then
15958   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15959   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15960 fi
15961
15962 # Have a temporary directory for convenience.  Make it in the build tree
15963 # simply because there is no reason against having it here, and in addition,
15964 # creating and moving files from /tmp can sometimes cause problems.
15965 # Hook for its removal unless debugging.
15966 # Note that there is a small window in which the directory will not be cleaned:
15967 # after its creation but before its name has been assigned to `$tmp'.
15968 $debug ||
15969 {
15970   tmp=
15971   trap 'exit_status=$?
15972   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15973 ' 0
15974   trap '{ (exit 1); exit 1; }' 1 2 13 15
15975 }
15976 # Create a (secure) tmp directory for tmp files.
15977
15978 {
15979   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15980   test -n "$tmp" && test -d "$tmp"
15981 }  ||
15982 {
15983   tmp=./conf$$-$RANDOM
15984   (umask 077 && mkdir "$tmp")
15985 } ||
15986 {
15987    echo "$me: cannot create a temporary directory in ." >&2
15988    { (exit 1); exit 1; }
15989 }
15990
15991 #
15992 # Set up the sed scripts for CONFIG_FILES section.
15993 #
15994
15995 # No need to generate the scripts if there are no CONFIG_FILES.
15996 # This happens for instance when ./config.status config.h
15997 if test -n "$CONFIG_FILES"; then
15998
15999 _ACEOF
16000
16001 # Create sed commands to just substitute file output variables.
16002
16003 # Remaining file output variables are in a fragment that also has non-file
16004 # output varibles.
16005
16006
16007
16008 ac_delim='%!_!# '
16009 for ac_last_try in false false false false false :; do
16010   cat >conf$$subs.sed <<_ACEOF
16011 SHELL!$SHELL$ac_delim
16012 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16013 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16014 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16015 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16016 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16017 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16018 exec_prefix!$exec_prefix$ac_delim
16019 prefix!$prefix$ac_delim
16020 program_transform_name!$program_transform_name$ac_delim
16021 bindir!$bindir$ac_delim
16022 sbindir!$sbindir$ac_delim
16023 libexecdir!$libexecdir$ac_delim
16024 datarootdir!$datarootdir$ac_delim
16025 datadir!$datadir$ac_delim
16026 sysconfdir!$sysconfdir$ac_delim
16027 sharedstatedir!$sharedstatedir$ac_delim
16028 localstatedir!$localstatedir$ac_delim
16029 includedir!$includedir$ac_delim
16030 oldincludedir!$oldincludedir$ac_delim
16031 docdir!$docdir$ac_delim
16032 infodir!$infodir$ac_delim
16033 htmldir!$htmldir$ac_delim
16034 dvidir!$dvidir$ac_delim
16035 pdfdir!$pdfdir$ac_delim
16036 psdir!$psdir$ac_delim
16037 libdir!$libdir$ac_delim
16038 localedir!$localedir$ac_delim
16039 mandir!$mandir$ac_delim
16040 DEFS!$DEFS$ac_delim
16041 ECHO_C!$ECHO_C$ac_delim
16042 ECHO_N!$ECHO_N$ac_delim
16043 ECHO_T!$ECHO_T$ac_delim
16044 LIBS!$LIBS$ac_delim
16045 build_alias!$build_alias$ac_delim
16046 host_alias!$host_alias$ac_delim
16047 target_alias!$target_alias$ac_delim
16048 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16049 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16050 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16051 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16052 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16053 build!$build$ac_delim
16054 build_cpu!$build_cpu$ac_delim
16055 build_vendor!$build_vendor$ac_delim
16056 build_os!$build_os$ac_delim
16057 host!$host$ac_delim
16058 host_cpu!$host_cpu$ac_delim
16059 host_vendor!$host_vendor$ac_delim
16060 host_os!$host_os$ac_delim
16061 CC!$CC$ac_delim
16062 CFLAGS!$CFLAGS$ac_delim
16063 LDFLAGS!$LDFLAGS$ac_delim
16064 CPPFLAGS!$CPPFLAGS$ac_delim
16065 ac_ct_CC!$ac_ct_CC$ac_delim
16066 EXEEXT!$EXEEXT$ac_delim
16067 OBJEXT!$OBJEXT$ac_delim
16068 CPP!$CPP$ac_delim
16069 LD!$LD$ac_delim
16070 GREP!$GREP$ac_delim
16071 EGREP!$EGREP$ac_delim
16072 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16073 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16074 HTREE_CMT!$HTREE_CMT$ac_delim
16075 ELF_CMT!$ELF_CMT$ac_delim
16076 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16077 PROFILE_CMT!$PROFILE_CMT$ac_delim
16078 CHECKER_CMT!$CHECKER_CMT$ac_delim
16079 LIB_EXT!$LIB_EXT$ac_delim
16080 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16081 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16082 SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16083 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16084 IMAGER_CMT!$IMAGER_CMT$ac_delim
16085 RESIZER_CMT!$RESIZER_CMT$ac_delim
16086 FSCK_PROG!$FSCK_PROG$ac_delim
16087 _ACEOF
16088
16089   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16090     break
16091   elif $ac_last_try; then
16092     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16093 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16094    { (exit 1); exit 1; }; }
16095   else
16096     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16097   fi
16098 done
16099
16100 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16101 if test -n "$ac_eof"; then
16102   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16103   ac_eof=`expr $ac_eof + 1`
16104 fi
16105
16106 cat >>$CONFIG_STATUS <<_ACEOF
16107 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16109 /^[      ]*@MCONFIG@[    ]*$/{
16110 r $MCONFIG
16111 d
16112 }
16113 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
16114 r $MAKEFILE_ELF
16115 d
16116 }
16117 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
16118 r $MAKEFILE_BSDLIB
16119 d
16120 }
16121 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
16122 r $MAKEFILE_PROFILE
16123 d
16124 }
16125 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
16126 r $MAKEFILE_CHECKER
16127 d
16128 }
16129 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
16130 r $MAKEFILE_LIBRARY
16131 d
16132 }
16133 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
16134 r $ASM_TYPES_HEADER
16135 d
16136 }
16137 _ACEOF
16138 sed '
16139 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16140 s/^/s,@/; s/!/@,|#_!!_#|/
16141 :n
16142 t n
16143 s/'"$ac_delim"'$/,g/; t
16144 s/$/\\/; p
16145 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16146 ' >>$CONFIG_STATUS <conf$$subs.sed
16147 rm -f conf$$subs.sed
16148 cat >>$CONFIG_STATUS <<_ACEOF
16149 CEOF$ac_eof
16150 _ACEOF
16151
16152
16153 ac_delim='%!_!# '
16154 for ac_last_try in false false false false false :; do
16155   cat >conf$$subs.sed <<_ACEOF
16156 FSCK_MAN!$FSCK_MAN$ac_delim
16157 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16158 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16159 PKG_CONFIG!$PKG_CONFIG$ac_delim
16160 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16161 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16162 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16163 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16164 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16165 UUIDD_CMT!$UUIDD_CMT$ac_delim
16166 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16167 PACKAGE!$PACKAGE$ac_delim
16168 VERSION!$VERSION$ac_delim
16169 SET_MAKE!$SET_MAKE$ac_delim
16170 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16171 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16172 INSTALL_DATA!$INSTALL_DATA$ac_delim
16173 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16174 USE_NLS!$USE_NLS$ac_delim
16175 MSGFMT!$MSGFMT$ac_delim
16176 GMSGFMT!$GMSGFMT$ac_delim
16177 XGETTEXT!$XGETTEXT$ac_delim
16178 MSGMERGE!$MSGMERGE$ac_delim
16179 RANLIB!$RANLIB$ac_delim
16180 ALLOCA!$ALLOCA$ac_delim
16181 GLIBC21!$GLIBC21$ac_delim
16182 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16183 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16184 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16185 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16186 LIBICONV!$LIBICONV$ac_delim
16187 LTLIBICONV!$LTLIBICONV$ac_delim
16188 INTLBISON!$INTLBISON$ac_delim
16189 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16190 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16191 CATOBJEXT!$CATOBJEXT$ac_delim
16192 DATADIRNAME!$DATADIRNAME$ac_delim
16193 INSTOBJEXT!$INSTOBJEXT$ac_delim
16194 GENCAT!$GENCAT$ac_delim
16195 INTLOBJS!$INTLOBJS$ac_delim
16196 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16197 INTLLIBS!$INTLLIBS$ac_delim
16198 LIBINTL!$LIBINTL$ac_delim
16199 LTLIBINTL!$LTLIBINTL$ac_delim
16200 POSUB!$POSUB$ac_delim
16201 BINARY_TYPE!$BINARY_TYPE$ac_delim
16202 LN!$LN$ac_delim
16203 LN_S!$LN_S$ac_delim
16204 MV!$MV$ac_delim
16205 CP!$CP$ac_delim
16206 RM!$RM$ac_delim
16207 CHMOD!$CHMOD$ac_delim
16208 AWK!$AWK$ac_delim
16209 SED!$SED$ac_delim
16210 PERL!$PERL$ac_delim
16211 LDCONFIG!$LDCONFIG$ac_delim
16212 AR!$AR$ac_delim
16213 STRIP!$STRIP$ac_delim
16214 MAKEINFO!$MAKEINFO$ac_delim
16215 BUILD_CC!$BUILD_CC$ac_delim
16216 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16217 SIZEOF_INT!$SIZEOF_INT$ac_delim
16218 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16219 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16220 SOCKET_LIB!$SOCKET_LIB$ac_delim
16221 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16222 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16223 LINUX_CMT!$LINUX_CMT$ac_delim
16224 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16225 UNIX_CMT!$UNIX_CMT$ac_delim
16226 root_prefix!$root_prefix$ac_delim
16227 root_bindir!$root_bindir$ac_delim
16228 root_sbindir!$root_sbindir$ac_delim
16229 root_libdir!$root_libdir$ac_delim
16230 root_sysconfdir!$root_sysconfdir$ac_delim
16231 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16232 SS_DIR!$SS_DIR$ac_delim
16233 ET_DIR!$ET_DIR$ac_delim
16234 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16235 INTL_FLAGS!$INTL_FLAGS$ac_delim
16236 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16237 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16238 LIBOBJS!$LIBOBJS$ac_delim
16239 LTLIBOBJS!$LTLIBOBJS$ac_delim
16240 _ACEOF
16241
16242   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
16243     break
16244   elif $ac_last_try; then
16245     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16246 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16247    { (exit 1); exit 1; }; }
16248   else
16249     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16250   fi
16251 done
16252
16253 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16254 if test -n "$ac_eof"; then
16255   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16256   ac_eof=`expr $ac_eof + 1`
16257 fi
16258
16259 cat >>$CONFIG_STATUS <<_ACEOF
16260 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16262 _ACEOF
16263 sed '
16264 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16265 s/^/s,@/; s/!/@,|#_!!_#|/
16266 :n
16267 t n
16268 s/'"$ac_delim"'$/,g/; t
16269 s/$/\\/; p
16270 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16271 ' >>$CONFIG_STATUS <conf$$subs.sed
16272 rm -f conf$$subs.sed
16273 cat >>$CONFIG_STATUS <<_ACEOF
16274 :end
16275 s/|#_!!_#|//g
16276 CEOF$ac_eof
16277 _ACEOF
16278
16279
16280 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16281 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16282 # trailing colons and then remove the whole line if VPATH becomes empty
16283 # (actually we leave an empty line to preserve line numbers).
16284 if test "x$srcdir" = x.; then
16285   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16286 s/:*\$(srcdir):*/:/
16287 s/:*\${srcdir}:*/:/
16288 s/:*@srcdir@:*/:/
16289 s/^\([^=]*=[     ]*\):*/\1/
16290 s/:*$//
16291 s/^[^=]*=[       ]*$//
16292 }'
16293 fi
16294
16295 cat >>$CONFIG_STATUS <<\_ACEOF
16296 fi # test -n "$CONFIG_FILES"
16297
16298
16299 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
16300 do
16301   case $ac_tag in
16302   :[FHLC]) ac_mode=$ac_tag; continue;;
16303   esac
16304   case $ac_mode$ac_tag in
16305   :[FHL]*:*);;
16306   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16307 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16308    { (exit 1); exit 1; }; };;
16309   :[FH]-) ac_tag=-:-;;
16310   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16311   esac
16312   ac_save_IFS=$IFS
16313   IFS=:
16314   set x $ac_tag
16315   IFS=$ac_save_IFS
16316   shift
16317   ac_file=$1
16318   shift
16319
16320   case $ac_mode in
16321   :L) ac_source=$1;;
16322   :[FH])
16323     ac_file_inputs=
16324     for ac_f
16325     do
16326       case $ac_f in
16327       -) ac_f="$tmp/stdin";;
16328       *) # Look for the file first in the build tree, then in the source tree
16329          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16330          # because $ac_f cannot contain `:'.
16331          test -f "$ac_f" ||
16332            case $ac_f in
16333            [\\/$]*) false;;
16334            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16335            esac ||
16336            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16337 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16338    { (exit 1); exit 1; }; };;
16339       esac
16340       ac_file_inputs="$ac_file_inputs $ac_f"
16341     done
16342
16343     # Let's still pretend it is `configure' which instantiates (i.e., don't
16344     # use $as_me), people would be surprised to read:
16345     #    /* config.h.  Generated by config.status.  */
16346     configure_input="Generated from "`IFS=:
16347           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16348     if test x"$ac_file" != x-; then
16349       configure_input="$ac_file.  $configure_input"
16350       { echo "$as_me:$LINENO: creating $ac_file" >&5
16351 echo "$as_me: creating $ac_file" >&6;}
16352     fi
16353
16354     case $ac_tag in
16355     *:-:* | *:-) cat >"$tmp/stdin";;
16356     esac
16357     ;;
16358   esac
16359
16360   ac_dir=`$as_dirname -- "$ac_file" ||
16361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16362          X"$ac_file" : 'X\(//\)[^/]' \| \
16363          X"$ac_file" : 'X\(//\)$' \| \
16364          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16365 echo X"$ac_file" |
16366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16367             s//\1/
16368             q
16369           }
16370           /^X\(\/\/\)[^/].*/{
16371             s//\1/
16372             q
16373           }
16374           /^X\(\/\/\)$/{
16375             s//\1/
16376             q
16377           }
16378           /^X\(\/\).*/{
16379             s//\1/
16380             q
16381           }
16382           s/.*/./; q'`
16383   { as_dir="$ac_dir"
16384   case $as_dir in #(
16385   -*) as_dir=./$as_dir;;
16386   esac
16387   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16388     as_dirs=
16389     while :; do
16390       case $as_dir in #(
16391       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16392       *) as_qdir=$as_dir;;
16393       esac
16394       as_dirs="'$as_qdir' $as_dirs"
16395       as_dir=`$as_dirname -- "$as_dir" ||
16396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16397          X"$as_dir" : 'X\(//\)[^/]' \| \
16398          X"$as_dir" : 'X\(//\)$' \| \
16399          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16400 echo X"$as_dir" |
16401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16402             s//\1/
16403             q
16404           }
16405           /^X\(\/\/\)[^/].*/{
16406             s//\1/
16407             q
16408           }
16409           /^X\(\/\/\)$/{
16410             s//\1/
16411             q
16412           }
16413           /^X\(\/\).*/{
16414             s//\1/
16415             q
16416           }
16417           s/.*/./; q'`
16418       test -d "$as_dir" && break
16419     done
16420     test -z "$as_dirs" || eval "mkdir $as_dirs"
16421   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16422 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16423    { (exit 1); exit 1; }; }; }
16424   ac_builddir=.
16425
16426 case "$ac_dir" in
16427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16428 *)
16429   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16430   # A ".." for each directory in $ac_dir_suffix.
16431   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16432   case $ac_top_builddir_sub in
16433   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16434   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16435   esac ;;
16436 esac
16437 ac_abs_top_builddir=$ac_pwd
16438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16439 # for backward compatibility:
16440 ac_top_builddir=$ac_top_build_prefix
16441
16442 case $srcdir in
16443   .)  # We are building in place.
16444     ac_srcdir=.
16445     ac_top_srcdir=$ac_top_builddir_sub
16446     ac_abs_top_srcdir=$ac_pwd ;;
16447   [\\/]* | ?:[\\/]* )  # Absolute name.
16448     ac_srcdir=$srcdir$ac_dir_suffix;
16449     ac_top_srcdir=$srcdir
16450     ac_abs_top_srcdir=$srcdir ;;
16451   *) # Relative name.
16452     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16453     ac_top_srcdir=$ac_top_build_prefix$srcdir
16454     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16455 esac
16456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16457
16458
16459   case $ac_mode in
16460   :F)
16461   #
16462   # CONFIG_FILE
16463   #
16464
16465   case $INSTALL in
16466   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16467   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16468   esac
16469 _ACEOF
16470
16471 cat >>$CONFIG_STATUS <<\_ACEOF
16472 # If the template does not know about datarootdir, expand it.
16473 # FIXME: This hack should be removed a few years after 2.60.
16474 ac_datarootdir_hack=; ac_datarootdir_seen=
16475
16476 case `sed -n '/datarootdir/ {
16477   p
16478   q
16479 }
16480 /@datadir@/p
16481 /@docdir@/p
16482 /@infodir@/p
16483 /@localedir@/p
16484 /@mandir@/p
16485 ' $ac_file_inputs` in
16486 *datarootdir*) ac_datarootdir_seen=yes;;
16487 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16488   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16489 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16490 _ACEOF
16491 cat >>$CONFIG_STATUS <<_ACEOF
16492   ac_datarootdir_hack='
16493   s&@datadir@&$datadir&g
16494   s&@docdir@&$docdir&g
16495   s&@infodir@&$infodir&g
16496   s&@localedir@&$localedir&g
16497   s&@mandir@&$mandir&g
16498     s&\\\${datarootdir}&$datarootdir&g' ;;
16499 esac
16500 _ACEOF
16501
16502 # Neutralize VPATH when `$srcdir' = `.'.
16503 # Shell code in configure.ac might set extrasub.
16504 # FIXME: do we really want to maintain this feature?
16505 cat >>$CONFIG_STATUS <<_ACEOF
16506   sed "$ac_vpsub
16507 $extrasub
16508 _ACEOF
16509 cat >>$CONFIG_STATUS <<\_ACEOF
16510 :t
16511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16512 s&@configure_input@&$configure_input&;t t
16513 s&@top_builddir@&$ac_top_builddir_sub&;t t
16514 s&@srcdir@&$ac_srcdir&;t t
16515 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16516 s&@top_srcdir@&$ac_top_srcdir&;t t
16517 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16518 s&@builddir@&$ac_builddir&;t t
16519 s&@abs_builddir@&$ac_abs_builddir&;t t
16520 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16521 s&@INSTALL@&$ac_INSTALL&;t t
16522 $ac_datarootdir_hack
16523 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16524
16525 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16526   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16527   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16528   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16529 which seems to be undefined.  Please make sure it is defined." >&5
16530 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16531 which seems to be undefined.  Please make sure it is defined." >&2;}
16532
16533   rm -f "$tmp/stdin"
16534   case $ac_file in
16535   -) cat "$tmp/out"; rm -f "$tmp/out";;
16536   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16537   esac
16538  ;;
16539
16540
16541   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16542 echo "$as_me: executing $ac_file commands" >&6;}
16543  ;;
16544   esac
16545
16546
16547   case $ac_file$ac_mode in
16548     "default-1":C)
16549     for ac_file in $CONFIG_FILES; do
16550       # Support "outfile[:infile[:infile...]]"
16551       case "$ac_file" in
16552         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16553       esac
16554       # PO directories have a Makefile.in generated from Makefile.in.in.
16555       case "$ac_file" in */Makefile.in)
16556         # Adjust a relative srcdir.
16557         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16558         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16559         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16560         # In autoconf-2.13 it is called $ac_given_srcdir.
16561         # In autoconf-2.50 it is called $srcdir.
16562         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16563         case "$ac_given_srcdir" in
16564           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16565           /*) top_srcdir="$ac_given_srcdir" ;;
16566           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16567         esac
16568         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16569           rm -f "$ac_dir/POTFILES"
16570           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16571           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16572           POMAKEFILEDEPS="POTFILES.in"
16573           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16574           # on $ac_dir but don't depend on user-specified configuration
16575           # parameters.
16576           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16577             # The LINGUAS file contains the set of available languages.
16578             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16579               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16580             fi
16581             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16582             # Hide the ALL_LINGUAS assigment from automake.
16583             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16584             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16585           else
16586             # The set of available languages was given in configure.in.
16587             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16588           fi
16589           # Compute POFILES
16590           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16591           # Compute UPDATEPOFILES
16592           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16593           # Compute DUMMYPOFILES
16594           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16595           # Compute GMOFILES
16596           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16597           case "$ac_given_srcdir" in
16598             .) srcdirpre= ;;
16599             *) srcdirpre='$(srcdir)/' ;;
16600           esac
16601           POFILES=
16602           UPDATEPOFILES=
16603           DUMMYPOFILES=
16604           GMOFILES=
16605           for lang in $ALL_LINGUAS; do
16606             POFILES="$POFILES $srcdirpre$lang.po"
16607             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16608             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16609             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16610           done
16611           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16612           # environment variable.
16613           INST_LINGUAS=
16614           if test -n "$ALL_LINGUAS"; then
16615             for presentlang in $ALL_LINGUAS; do
16616               useit=no
16617               if test "%UNSET%" != "$LINGUAS"; then
16618                 desiredlanguages="$LINGUAS"
16619               else
16620                 desiredlanguages="$ALL_LINGUAS"
16621               fi
16622               for desiredlang in $desiredlanguages; do
16623                 # Use the presentlang catalog if desiredlang is
16624                 #   a. equal to presentlang, or
16625                 #   b. a variant of presentlang (because in this case,
16626                 #      presentlang can be used as a fallback for messages
16627                 #      which are not translated in the desiredlang catalog).
16628                 case "$desiredlang" in
16629                   "$presentlang"*) useit=yes;;
16630                 esac
16631               done
16632               if test $useit = yes; then
16633                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16634               fi
16635             done
16636           fi
16637           CATALOGS=
16638           if test -n "$INST_LINGUAS"; then
16639             for lang in $INST_LINGUAS; do
16640               CATALOGS="$CATALOGS $lang.gmo"
16641             done
16642           fi
16643           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16644           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"
16645           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16646             if test -f "$f"; then
16647               case "$f" in
16648                 *.orig | *.bak | *~) ;;
16649                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16650               esac
16651             fi
16652           done
16653         fi
16654         ;;
16655       esac
16656     done ;;
16657
16658   esac
16659 done # for ac_tag
16660
16661
16662 { (exit 0); exit 0; }
16663 _ACEOF
16664 chmod +x $CONFIG_STATUS
16665 ac_clean_files=$ac_clean_files_save
16666
16667
16668 # configure is writing to config.log, and then calls config.status.
16669 # config.status does its own redirection, appending to config.log.
16670 # Unfortunately, on DOS this fails, as config.log is still kept open
16671 # by configure, so config.status won't be able to write to it; its
16672 # output is simply discarded.  So we exec the FD to /dev/null,
16673 # effectively closing config.log, so it can be properly (re)opened and
16674 # appended to by config.status.  When coming back to configure, we
16675 # need to make the FD available again.
16676 if test "$no_create" != yes; then
16677   ac_cs_success=:
16678   ac_config_status_args=
16679   test "$silent" = yes &&
16680     ac_config_status_args="$ac_config_status_args --quiet"
16681   exec 5>/dev/null
16682   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16683   exec 5>>config.log
16684   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16685   # would make configure fail if this is the last instruction.
16686   $ac_cs_success || { (exit 1); exit 1; }
16687 fi
16688
16689 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16690