Whamcloud - gitweb
Merge branch 'maint'
[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 DEBUGFS_CMT
688 IMAGER_CMT
689 RESIZER_CMT
690 FSCK_PROG
691 FSCK_MAN
692 E2INITRD_PROG
693 E2INITRD_MAN
694 PKG_CONFIG
695 DEVMAPPER_REQ
696 DEVMAPPER_PC_LIBS
697 DEVMAPPER_LIBS
698 STATIC_DEVMAPPER_LIBS
699 STATIC_BLKID_DEVMAPPER_LIBS
700 UUIDD_CMT
701 GETTEXT_PACKAGE
702 PACKAGE
703 VERSION
704 SET_MAKE
705 INSTALL_PROGRAM
706 INSTALL_SCRIPT
707 INSTALL_DATA
708 MKINSTALLDIRS
709 USE_NLS
710 MSGFMT
711 GMSGFMT
712 XGETTEXT
713 MSGMERGE
714 RANLIB
715 ALLOCA
716 GLIBC21
717 HAVE_POSIX_PRINTF
718 HAVE_ASPRINTF
719 HAVE_SNPRINTF
720 HAVE_WPRINTF
721 LIBICONV
722 LTLIBICONV
723 INTLBISON
724 BUILD_INCLUDED_LIBINTL
725 USE_INCLUDED_LIBINTL
726 CATOBJEXT
727 DATADIRNAME
728 INSTOBJEXT
729 GENCAT
730 INTLOBJS
731 INTL_LIBTOOL_SUFFIX_PREFIX
732 INTLLIBS
733 LIBINTL
734 LTLIBINTL
735 POSUB
736 BINARY_TYPE
737 LN
738 LN_S
739 MV
740 CP
741 RM
742 CHMOD
743 AWK
744 SED
745 PERL
746 LDCONFIG
747 AR
748 STRIP
749 MAKEINFO
750 BUILD_CC
751 SIZEOF_SHORT
752 SIZEOF_INT
753 SIZEOF_LONG
754 SIZEOF_LONG_LONG
755 SOCKET_LIB
756 DLOPEN_LIB
757 UNI_DIFF_OPTS
758 LINUX_CMT
759 CYGWIN_CMT
760 UNIX_CMT
761 root_prefix
762 root_bindir
763 root_sbindir
764 root_libdir
765 root_sysconfdir
766 LDFLAG_STATIC
767 SS_DIR
768 ET_DIR
769 DO_TEST_SUITE
770 INTL_FLAGS
771 BUILD_CFLAGS
772 BUILD_LDFLAGS
773 LIBOBJS
774 LTLIBOBJS'
775 ac_subst_files='MCONFIG
776 MAKEFILE_ELF
777 MAKEFILE_BSDLIB
778 MAKEFILE_PROFILE
779 MAKEFILE_CHECKER
780 MAKEFILE_LIBRARY
781 ASM_TYPES_HEADER
782 PUBLIC_CONFIG_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-debugfs       disable support of debugfs program
1376   --disable-imager        disable support of e2image program
1377   --disable-resizer       disable support of e2resize program
1378   --enable-fsck           build fsck wrapper program
1379   --enable-e2initrd-helper build e2initrd-helper program
1380   --enable-blkid-devmapper  build with device-mapper support
1381   --disable-tls           disable use of thread local support
1382   --disable-uuidd         disable building the uuid daemon
1383   --disable-nls           do not use Native Language Support
1384   --disable-rpath         do not hardcode runtime library paths
1385
1386 Optional Packages:
1387   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1388   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1389   --with-diet-libc        use diet libc
1390   --with-cc=COMPILER      select compiler to use
1391   --with-linker=LINKER    select linker to use
1392   --with-ccopts=CCOPTS    select compiler command line options
1393   --with-ldopts=LDOPTS    select linker command line options
1394   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1395   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1396   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1397   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1398   --with-included-gettext use the GNU gettext library included here
1399   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1400   --without-libintl-prefix     don't search for libintl in includedir and libdir
1401
1402 Some influential environment variables:
1403   CC          C compiler command
1404   CFLAGS      C compiler flags
1405   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1406               nonstandard directory <lib dir>
1407   LIBS        libraries to pass to the linker, e.g. -l<library>
1408   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409               you have headers in a nonstandard directory <include dir>
1410   CPP         C preprocessor
1411   PKG_CONFIG  path to pkg-config utility
1412
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1415
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421   # If there are subdirs, report their specific --help.
1422   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423     test -d "$ac_dir" || continue
1424     ac_builddir=.
1425
1426 case "$ac_dir" in
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *)
1429   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1430   # A ".." for each directory in $ac_dir_suffix.
1431   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432   case $ac_top_builddir_sub in
1433   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435   esac ;;
1436 esac
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1441
1442 case $srcdir in
1443   .)  # We are building in place.
1444     ac_srcdir=.
1445     ac_top_srcdir=$ac_top_builddir_sub
1446     ac_abs_top_srcdir=$ac_pwd ;;
1447   [\\/]* | ?:[\\/]* )  # Absolute name.
1448     ac_srcdir=$srcdir$ac_dir_suffix;
1449     ac_top_srcdir=$srcdir
1450     ac_abs_top_srcdir=$srcdir ;;
1451   *) # Relative name.
1452     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453     ac_top_srcdir=$ac_top_build_prefix$srcdir
1454     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 esac
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457
1458     cd "$ac_dir" || { ac_status=$?; continue; }
1459     # Check for guested configure.
1460     if test -f "$ac_srcdir/configure.gnu"; then
1461       echo &&
1462       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463     elif test -f "$ac_srcdir/configure"; then
1464       echo &&
1465       $SHELL "$ac_srcdir/configure" --help=recursive
1466     else
1467       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468     fi || ac_status=$?
1469     cd "$ac_pwd" || { ac_status=$?; break; }
1470   done
1471 fi
1472
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1475   cat <<\_ACEOF
1476 configure
1477 generated by GNU Autoconf 2.61
1478
1479 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1480 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1483 _ACEOF
1484   exit
1485 fi
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1489
1490 It was created by $as_me, which was
1491 generated by GNU Autoconf 2.61.  Invocation command line was
1492
1493   $ $0 $@
1494
1495 _ACEOF
1496 exec 5>>config.log
1497 {
1498 cat <<_ASUNAME
1499 ## --------- ##
1500 ## Platform. ##
1501 ## --------- ##
1502
1503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1511
1512 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1513 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1515 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1516 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1517 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1518 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1519
1520 _ASUNAME
1521
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   echo "PATH: $as_dir"
1528 done
1529 IFS=$as_save_IFS
1530
1531 } >&5
1532
1533 cat >&5 <<_ACEOF
1534
1535
1536 ## ----------- ##
1537 ## Core tests. ##
1538 ## ----------- ##
1539
1540 _ACEOF
1541
1542
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1548 ac_configure_args=
1549 ac_configure_args0=
1550 ac_configure_args1=
1551 ac_must_keep_next=false
1552 for ac_pass in 1 2
1553 do
1554   for ac_arg
1555   do
1556     case $ac_arg in
1557     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559     | -silent | --silent | --silen | --sile | --sil)
1560       continue ;;
1561     *\'*)
1562       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563     esac
1564     case $ac_pass in
1565     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566     2)
1567       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568       if test $ac_must_keep_next = true; then
1569         ac_must_keep_next=false # Got value, back to normal.
1570       else
1571         case $ac_arg in
1572           *=* | --config-cache | -C | -disable-* | --disable-* \
1573           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575           | -with-* | --with-* | -without-* | --without-* | --x)
1576             case "$ac_configure_args0 " in
1577               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578             esac
1579             ;;
1580           -* ) ac_must_keep_next=true ;;
1581         esac
1582       fi
1583       ac_configure_args="$ac_configure_args '$ac_arg'"
1584       ;;
1585     esac
1586   done
1587 done
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log.  We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597   # Save into config.log some information that might help in debugging.
1598   {
1599     echo
1600
1601     cat <<\_ASBOX
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1605 _ASBOX
1606     echo
1607     # The following way of writing the cache mishandles newlines in values,
1608 (
1609   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610     eval ac_val=\$$ac_var
1611     case $ac_val in #(
1612     *${as_nl}*)
1613       case $ac_var in #(
1614       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616       esac
1617       case $ac_var in #(
1618       _ | IFS | as_nl) ;; #(
1619       *) $as_unset $ac_var ;;
1620       esac ;;
1621     esac
1622   done
1623   (set) 2>&1 |
1624     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625     *${as_nl}ac_space=\ *)
1626       sed -n \
1627         "s/'\''/'\''\\\\'\'''\''/g;
1628           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629       ;; #(
1630     *)
1631       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1632       ;;
1633     esac |
1634     sort
1635 )
1636     echo
1637
1638     cat <<\_ASBOX
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1642 _ASBOX
1643     echo
1644     for ac_var in $ac_subst_vars
1645     do
1646       eval ac_val=\$$ac_var
1647       case $ac_val in
1648       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649       esac
1650       echo "$ac_var='\''$ac_val'\''"
1651     done | sort
1652     echo
1653
1654     if test -n "$ac_subst_files"; then
1655       cat <<\_ASBOX
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1659 _ASBOX
1660       echo
1661       for ac_var in $ac_subst_files
1662       do
1663         eval ac_val=\$$ac_var
1664         case $ac_val in
1665         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666         esac
1667         echo "$ac_var='\''$ac_val'\''"
1668       done | sort
1669       echo
1670     fi
1671
1672     if test -s confdefs.h; then
1673       cat <<\_ASBOX
1674 ## ----------- ##
1675 ## confdefs.h. ##
1676 ## ----------- ##
1677 _ASBOX
1678       echo
1679       cat confdefs.h
1680       echo
1681     fi
1682     test "$ac_signal" != 0 &&
1683       echo "$as_me: caught signal $ac_signal"
1684     echo "$as_me: exit $exit_status"
1685   } >&5
1686   rm -f core *.core core.conftest.* &&
1687     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688     exit $exit_status
1689 ' 0
1690 for ac_signal in 1 2 13 15; do
1691   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692 done
1693 ac_signal=0
1694
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1697
1698 # Predefined preprocessor variables.
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1702 _ACEOF
1703
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722 _ACEOF
1723
1724
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728   set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731 else
1732   set x "$ac_default_prefix/share/config.site" \
1733         "$ac_default_prefix/etc/config.site"
1734 fi
1735 shift
1736 for ac_site_file
1737 do
1738   if test -r "$ac_site_file"; then
1739     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741     sed 's/^/| /' "$ac_site_file" >&5
1742     . "$ac_site_file"
1743   fi
1744 done
1745
1746 if test -r "$cache_file"; then
1747   # Some versions of bash will fail to source /dev/null (special
1748   # files actually), so we avoid doing that.
1749   if test -f "$cache_file"; then
1750     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1752     case $cache_file in
1753       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754       *)                      . "./$cache_file";;
1755     esac
1756   fi
1757 else
1758   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1760   >$cache_file
1761 fi
1762
1763 # Check that the precious variables saved in the cache have kept the same
1764 # value.
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768   eval ac_new_set=\$ac_env_${ac_var}_set
1769   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770   eval ac_new_val=\$ac_env_${ac_var}_value
1771   case $ac_old_set,$ac_new_set in
1772     set,)
1773       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775       ac_cache_corrupted=: ;;
1776     ,set)
1777       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779       ac_cache_corrupted=: ;;
1780     ,);;
1781     *)
1782       if test "x$ac_old_val" != "x$ac_new_val"; then
1783         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1786 echo "$as_me:   former value:  $ac_old_val" >&2;}
1787         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1788 echo "$as_me:   current value: $ac_new_val" >&2;}
1789         ac_cache_corrupted=:
1790       fi;;
1791   esac
1792   # Pass precious variables to config.status.
1793   if test "$ac_new_set" = set; then
1794     case $ac_new_val in
1795     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1796     *) ac_arg=$ac_var=$ac_new_val ;;
1797     esac
1798     case " $ac_configure_args " in
1799       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1800       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801     esac
1802   fi
1803 done
1804 if $ac_cache_corrupted; then
1805   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809    { (exit 1); exit 1; }; }
1810 fi
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828 ac_ext=c
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833
1834
1835
1836 ac_aux_dir=
1837 for ac_dir in config "$srcdir"/config; do
1838   if test -f "$ac_dir/install-sh"; then
1839     ac_aux_dir=$ac_dir
1840     ac_install_sh="$ac_aux_dir/install-sh -c"
1841     break
1842   elif test -f "$ac_dir/install.sh"; then
1843     ac_aux_dir=$ac_dir
1844     ac_install_sh="$ac_aux_dir/install.sh -c"
1845     break
1846   elif test -f "$ac_dir/shtool"; then
1847     ac_aux_dir=$ac_dir
1848     ac_install_sh="$ac_aux_dir/shtool install -c"
1849     break
1850   fi
1851 done
1852 if test -z "$ac_aux_dir"; then
1853   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1855    { (exit 1); exit 1; }; }
1856 fi
1857
1858 # These three variables are undocumented and unsupported,
1859 # and are intended to be withdrawn in a future Autoconf release.
1860 # They can cause serious problems if a builder's source tree is in a directory
1861 # whose full name contains unusual characters.
1862 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1863 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1864 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1865
1866
1867 MCONFIG=./MCONFIG
1868
1869 BINARY_TYPE=bin
1870 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1871         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1872 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1873         | tr \" " "`
1874 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1875 MONTH=`echo $DATE | awk -F- '{print $2}'`
1876 YEAR=`echo $DATE | awk -F- '{print $3}'`
1877
1878 if expr $YEAR ">" 1900 > /dev/null ; then
1879         E2FSPROGS_YEAR=$YEAR
1880 elif expr $YEAR ">" 90 >/dev/null ; then
1881         E2FSPROGS_YEAR=19$YEAR
1882 else
1883         E2FSPROGS_YEAR=20$YEAR
1884 fi
1885
1886 case $MONTH in
1887 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1899 *)      echo "Unknown month $MONTH??" ;;
1900 esac
1901
1902 base_ver=`echo $E2FSPROGS_VERSION | \
1903                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1904
1905 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1906
1907 case $E2FSPROGS_VERSION in
1908 *-WIP|pre-*)
1909         pre_vers=`echo $base_ver 0.01 - p | dc`
1910         E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1911         ;;
1912 *)
1913         E2FSPROGS_PKGVER="$base_ver"
1914         ;;
1915 esac
1916
1917 unset DATE MONTH YEAR base_ver pre_vers date_spec
1918 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1919 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1920
1921
1922
1923
1924
1925 # Make sure we can run config.sub.
1926 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1927   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1928 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1929    { (exit 1); exit 1; }; }
1930
1931 { echo "$as_me:$LINENO: checking build system type" >&5
1932 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1933 if test "${ac_cv_build+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   ac_build_alias=$build_alias
1937 test "x$ac_build_alias" = x &&
1938   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1939 test "x$ac_build_alias" = x &&
1940   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1941 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1942    { (exit 1); exit 1; }; }
1943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1944   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1945 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1946    { (exit 1); exit 1; }; }
1947
1948 fi
1949 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1950 echo "${ECHO_T}$ac_cv_build" >&6; }
1951 case $ac_cv_build in
1952 *-*-*) ;;
1953 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1954 echo "$as_me: error: invalid value of canonical build" >&2;}
1955    { (exit 1); exit 1; }; };;
1956 esac
1957 build=$ac_cv_build
1958 ac_save_IFS=$IFS; IFS='-'
1959 set x $ac_cv_build
1960 shift
1961 build_cpu=$1
1962 build_vendor=$2
1963 shift; shift
1964 # Remember, the first character of IFS is used to create $*,
1965 # except with old shells:
1966 build_os=$*
1967 IFS=$ac_save_IFS
1968 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1969
1970
1971 { echo "$as_me:$LINENO: checking host system type" >&5
1972 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1973 if test "${ac_cv_host+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   if test "x$host_alias" = x; then
1977   ac_cv_host=$ac_cv_build
1978 else
1979   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1980     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1981 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1982    { (exit 1); exit 1; }; }
1983 fi
1984
1985 fi
1986 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1987 echo "${ECHO_T}$ac_cv_host" >&6; }
1988 case $ac_cv_host in
1989 *-*-*) ;;
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1991 echo "$as_me: error: invalid value of canonical host" >&2;}
1992    { (exit 1); exit 1; }; };;
1993 esac
1994 host=$ac_cv_host
1995 ac_save_IFS=$IFS; IFS='-'
1996 set x $ac_cv_host
1997 shift
1998 host_cpu=$1
1999 host_vendor=$2
2000 shift; shift
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2003 host_os=$*
2004 IFS=$ac_save_IFS
2005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2006
2007
2008
2009 # Check whether --with-diet-libc was given.
2010 if test "${with_diet_libc+set}" = set; then
2011   withval=$with_diet_libc; CC="diet cc -nostdinc"
2012 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2013 echo "${ECHO_T}CC=$CC" >&6; }
2014 fi
2015
2016 # Check whether --with-cc was given.
2017 if test "${with_cc+set}" = set; then
2018   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2019 echo "${ECHO_T}CC=$withval" >&6; }
2020 CC=$withval
2021 else
2022   if test -z "$CC" ; then CC=cc; fi
2023 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2024 echo "${ECHO_T}CC defaults to $CC" >&6; }
2025 fi
2026 export CC
2027
2028 ac_ext=c
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 if test -n "$ac_tool_prefix"; then
2034   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   if test -n "$CC"; then
2042   ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047   IFS=$as_save_IFS
2048   test -z "$as_dir" && as_dir=.
2049   for ac_exec_ext in '' $ac_executable_extensions; do
2050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053     break 2
2054   fi
2055 done
2056 done
2057 IFS=$as_save_IFS
2058
2059 fi
2060 fi
2061 CC=$ac_cv_prog_CC
2062 if test -n "$CC"; then
2063   { echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6; }
2065 else
2066   { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2068 fi
2069
2070
2071 fi
2072 if test -z "$ac_cv_prog_CC"; then
2073   ac_ct_CC=$CC
2074   # Extract the first word of "gcc", so it can be a program name with args.
2075 set dummy gcc; ac_word=$2
2076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   if test -n "$ac_ct_CC"; then
2082   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083 else
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087   IFS=$as_save_IFS
2088   test -z "$as_dir" && as_dir=.
2089   for ac_exec_ext in '' $ac_executable_extensions; do
2090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2091     ac_cv_prog_ac_ct_CC="gcc"
2092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093     break 2
2094   fi
2095 done
2096 done
2097 IFS=$as_save_IFS
2098
2099 fi
2100 fi
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 echo "${ECHO_T}$ac_ct_CC" >&6; }
2105 else
2106   { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2108 fi
2109
2110   if test "x$ac_ct_CC" = x; then
2111     CC=""
2112   else
2113     case $cross_compiling:$ac_tool_warned in
2114 yes:)
2115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2116 whose name does not start with the host triplet.  If you think this
2117 configuration is useful to you, please write to autoconf@gnu.org." >&5
2118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2119 whose name does not start with the host triplet.  If you think this
2120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2121 ac_tool_warned=yes ;;
2122 esac
2123     CC=$ac_ct_CC
2124   fi
2125 else
2126   CC="$ac_cv_prog_CC"
2127 fi
2128
2129 if test -z "$CC"; then
2130           if test -n "$ac_tool_prefix"; then
2131     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}cc; ac_word=$2
2133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136   echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138   if test -n "$CC"; then
2139   ac_cv_prog_CC="$CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   for ac_exec_ext in '' $ac_executable_extensions; do
2147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2148     ac_cv_prog_CC="${ac_tool_prefix}cc"
2149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150     break 2
2151   fi
2152 done
2153 done
2154 IFS=$as_save_IFS
2155
2156 fi
2157 fi
2158 CC=$ac_cv_prog_CC
2159 if test -n "$CC"; then
2160   { echo "$as_me:$LINENO: result: $CC" >&5
2161 echo "${ECHO_T}$CC" >&6; }
2162 else
2163   { echo "$as_me:$LINENO: result: no" >&5
2164 echo "${ECHO_T}no" >&6; }
2165 fi
2166
2167
2168   fi
2169 fi
2170 if test -z "$CC"; then
2171   # Extract the first word of "cc", so it can be a program name with args.
2172 set dummy cc; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   if test -n "$CC"; then
2179   ac_cv_prog_CC="$CC" # Let the user override the test.
2180 else
2181   ac_prog_rejected=no
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2184 do
2185   IFS=$as_save_IFS
2186   test -z "$as_dir" && as_dir=.
2187   for ac_exec_ext in '' $ac_executable_extensions; do
2188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2190        ac_prog_rejected=yes
2191        continue
2192      fi
2193     ac_cv_prog_CC="cc"
2194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195     break 2
2196   fi
2197 done
2198 done
2199 IFS=$as_save_IFS
2200
2201 if test $ac_prog_rejected = yes; then
2202   # We found a bogon in the path, so make sure we never use it.
2203   set dummy $ac_cv_prog_CC
2204   shift
2205   if test $# != 0; then
2206     # We chose a different compiler from the bogus one.
2207     # However, it has the same basename, so the bogon will be chosen
2208     # first if we set CC to just the basename; use the full file name.
2209     shift
2210     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2211   fi
2212 fi
2213 fi
2214 fi
2215 CC=$ac_cv_prog_CC
2216 if test -n "$CC"; then
2217   { echo "$as_me:$LINENO: result: $CC" >&5
2218 echo "${ECHO_T}$CC" >&6; }
2219 else
2220   { echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6; }
2222 fi
2223
2224
2225 fi
2226 if test -z "$CC"; then
2227   if test -n "$ac_tool_prefix"; then
2228   for ac_prog in cl.exe
2229   do
2230     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$CC"; then
2238   ac_cv_prog_CC="$CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253 IFS=$as_save_IFS
2254
2255 fi
2256 fi
2257 CC=$ac_cv_prog_CC
2258 if test -n "$CC"; then
2259   { echo "$as_me:$LINENO: result: $CC" >&5
2260 echo "${ECHO_T}$CC" >&6; }
2261 else
2262   { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2264 fi
2265
2266
2267     test -n "$CC" && break
2268   done
2269 fi
2270 if test -z "$CC"; then
2271   ac_ct_CC=$CC
2272   for ac_prog in cl.exe
2273 do
2274   # Extract the first word of "$ac_prog", so it can be a program name with args.
2275 set dummy $ac_prog; ac_word=$2
2276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2278 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2279   echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281   if test -n "$ac_ct_CC"; then
2282   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287   IFS=$as_save_IFS
2288   test -z "$as_dir" && as_dir=.
2289   for ac_exec_ext in '' $ac_executable_extensions; do
2290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291     ac_cv_prog_ac_ct_CC="$ac_prog"
2292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293     break 2
2294   fi
2295 done
2296 done
2297 IFS=$as_save_IFS
2298
2299 fi
2300 fi
2301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2302 if test -n "$ac_ct_CC"; then
2303   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2304 echo "${ECHO_T}$ac_ct_CC" >&6; }
2305 else
2306   { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2308 fi
2309
2310
2311   test -n "$ac_ct_CC" && break
2312 done
2313
2314   if test "x$ac_ct_CC" = x; then
2315     CC=""
2316   else
2317     case $cross_compiling:$ac_tool_warned in
2318 yes:)
2319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2320 whose name does not start with the host triplet.  If you think this
2321 configuration is useful to you, please write to autoconf@gnu.org." >&5
2322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2323 whose name does not start with the host triplet.  If you think this
2324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2325 ac_tool_warned=yes ;;
2326 esac
2327     CC=$ac_ct_CC
2328   fi
2329 fi
2330
2331 fi
2332
2333
2334 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: no acceptable C compiler found in \$PATH
2337 See \`config.log' for more details." >&2;}
2338    { (exit 1); exit 1; }; }
2339
2340 # Provide some information about the compiler.
2341 echo "$as_me:$LINENO: checking for C compiler version" >&5
2342 ac_compiler=`set X $ac_compile; echo $2`
2343 { (ac_try="$ac_compiler --version >&5"
2344 case "(($ac_try" in
2345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346   *) ac_try_echo=$ac_try;;
2347 esac
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349   (eval "$ac_compiler --version >&5") 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }
2353 { (ac_try="$ac_compiler -v >&5"
2354 case "(($ac_try" in
2355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356   *) ac_try_echo=$ac_try;;
2357 esac
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359   (eval "$ac_compiler -v >&5") 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }
2363 { (ac_try="$ac_compiler -V >&5"
2364 case "(($ac_try" in
2365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366   *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369   (eval "$ac_compiler -V >&5") 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }
2373
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h.  */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h.  */
2380
2381 int
2382 main ()
2383 {
2384
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 ac_clean_files_save=$ac_clean_files
2390 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2391 # Try to create an executable without -o first, disregard a.out.
2392 # It will help us diagnose broken compilers, and finding out an intuition
2393 # of exeext.
2394 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2395 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2396 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2397 #
2398 # List of possible output files, starting from the most likely.
2399 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2400 # only as a last resort.  b.out is created by i960 compilers.
2401 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2402 #
2403 # The IRIX 6 linker writes into existing files which may not be
2404 # executable, retaining their permissions.  Remove them first so a
2405 # subsequent execution test works.
2406 ac_rmfiles=
2407 for ac_file in $ac_files
2408 do
2409   case $ac_file in
2410     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2411     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2412   esac
2413 done
2414 rm -f $ac_rmfiles
2415
2416 if { (ac_try="$ac_link_default"
2417 case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422   (eval "$ac_link_default") 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; then
2426   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2427 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2428 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2429 # so that the user can short-circuit this test for compilers unknown to
2430 # Autoconf.
2431 for ac_file in $ac_files ''
2432 do
2433   test -f "$ac_file" || continue
2434   case $ac_file in
2435     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2436         ;;
2437     [ab].out )
2438         # We found the default executable, but exeext='' is most
2439         # certainly right.
2440         break;;
2441     *.* )
2442         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2443         then :; else
2444            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2445         fi
2446         # We set ac_cv_exeext here because the later test for it is not
2447         # safe: cross compilers may not add the suffix if given an `-o'
2448         # argument, so we may need to know it at that point already.
2449         # Even if this section looks crufty: it has the advantage of
2450         # actually working.
2451         break;;
2452     * )
2453         break;;
2454   esac
2455 done
2456 test "$ac_cv_exeext" = no && ac_cv_exeext=
2457
2458 else
2459   ac_file=''
2460 fi
2461
2462 { echo "$as_me:$LINENO: result: $ac_file" >&5
2463 echo "${ECHO_T}$ac_file" >&6; }
2464 if test -z "$ac_file"; then
2465   echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2467
2468 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: C compiler cannot create executables
2471 See \`config.log' for more details." >&2;}
2472    { (exit 77); exit 77; }; }
2473 fi
2474
2475 ac_exeext=$ac_cv_exeext
2476
2477 # Check that the compiler produces executables we can run.  If not, either
2478 # the compiler is broken, or we cross compile.
2479 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2480 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2481 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2482 # If not cross compiling, check that we can run a simple program.
2483 if test "$cross_compiling" != yes; then
2484   if { ac_try='./$ac_file'
2485   { (case "(($ac_try" in
2486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487   *) ac_try_echo=$ac_try;;
2488 esac
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490   (eval "$ac_try") 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; }; then
2494     cross_compiling=no
2495   else
2496     if test "$cross_compiling" = maybe; then
2497         cross_compiling=yes
2498     else
2499         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2500 If you meant to cross compile, use \`--host'.
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot run C compiled programs.
2503 If you meant to cross compile, use \`--host'.
2504 See \`config.log' for more details." >&2;}
2505    { (exit 1); exit 1; }; }
2506     fi
2507   fi
2508 fi
2509 { echo "$as_me:$LINENO: result: yes" >&5
2510 echo "${ECHO_T}yes" >&6; }
2511
2512 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2513 ac_clean_files=$ac_clean_files_save
2514 # Check that the compiler produces executables we can run.  If not, either
2515 # the compiler is broken, or we cross compile.
2516 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2517 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2518 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2519 echo "${ECHO_T}$cross_compiling" >&6; }
2520
2521 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2522 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2523 if { (ac_try="$ac_link"
2524 case "(($ac_try" in
2525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526   *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529   (eval "$ac_link") 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; then
2533   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2534 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2535 # work properly (i.e., refer to `conftest.exe'), while it won't with
2536 # `rm'.
2537 for ac_file in conftest.exe conftest conftest.*; do
2538   test -f "$ac_file" || continue
2539   case $ac_file in
2540     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2541     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2542           break;;
2543     * ) break;;
2544   esac
2545 done
2546 else
2547   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2548 See \`config.log' for more details." >&5
2549 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log' for more details." >&2;}
2551    { (exit 1); exit 1; }; }
2552 fi
2553
2554 rm -f conftest$ac_cv_exeext
2555 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2556 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2557
2558 rm -f conftest.$ac_ext
2559 EXEEXT=$ac_cv_exeext
2560 ac_exeext=$EXEEXT
2561 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2562 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2563 if test "${ac_cv_objext+set}" = set; then
2564   echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566   cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572
2573 int
2574 main ()
2575 {
2576
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 rm -f conftest.o conftest.obj
2582 if { (ac_try="$ac_compile"
2583 case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588   (eval "$ac_compile") 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; then
2592   for ac_file in conftest.o conftest.obj conftest.*; do
2593   test -f "$ac_file" || continue;
2594   case $ac_file in
2595     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2596     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2597        break;;
2598   esac
2599 done
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2607 See \`config.log' for more details." >&2;}
2608    { (exit 1); exit 1; }; }
2609 fi
2610
2611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2612 fi
2613 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2614 echo "${ECHO_T}$ac_cv_objext" >&6; }
2615 OBJEXT=$ac_cv_objext
2616 ac_objext=$OBJEXT
2617 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2618 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2619 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2620   echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622   cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628
2629 int
2630 main ()
2631 {
2632 #ifndef __GNUC__
2633        choke me
2634 #endif
2635
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (ac_try="$ac_compile"
2642 case "(($ac_try" in
2643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644   *) ac_try_echo=$ac_try;;
2645 esac
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647   (eval "$ac_compile") 2>conftest.er1
2648   ac_status=$?
2649   grep -v '^ *+' conftest.er1 >conftest.err
2650   rm -f conftest.er1
2651   cat conftest.err >&5
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); } && {
2654          test -z "$ac_c_werror_flag" ||
2655          test ! -s conftest.err
2656        } && test -s conftest.$ac_objext; then
2657   ac_compiler_gnu=yes
2658 else
2659   echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662         ac_compiler_gnu=no
2663 fi
2664
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2667
2668 fi
2669 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2670 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2671 GCC=`test $ac_compiler_gnu = yes && echo yes`
2672 ac_test_CFLAGS=${CFLAGS+set}
2673 ac_save_CFLAGS=$CFLAGS
2674 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2675 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2676 if test "${ac_cv_prog_cc_g+set}" = set; then
2677   echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679   ac_save_c_werror_flag=$ac_c_werror_flag
2680    ac_c_werror_flag=yes
2681    ac_cv_prog_cc_g=no
2682    CFLAGS="-g"
2683    cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689
2690 int
2691 main ()
2692 {
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2700 case "(($ac_try" in
2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702   *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705   (eval "$ac_compile") 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } && {
2712          test -z "$ac_c_werror_flag" ||
2713          test ! -s conftest.err
2714        } && test -s conftest.$ac_objext; then
2715   ac_cv_prog_cc_g=yes
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720         CFLAGS=""
2721       cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727
2728 int
2729 main ()
2730 {
2731
2732   ;
2733   return 0;
2734 }
2735 _ACEOF
2736 rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2738 case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743   (eval "$ac_compile") 2>conftest.er1
2744   ac_status=$?
2745   grep -v '^ *+' conftest.er1 >conftest.err
2746   rm -f conftest.er1
2747   cat conftest.err >&5
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); } && {
2750          test -z "$ac_c_werror_flag" ||
2751          test ! -s conftest.err
2752        } && test -s conftest.$ac_objext; then
2753   :
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758         ac_c_werror_flag=$ac_save_c_werror_flag
2759          CFLAGS="-g"
2760          cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766
2767 int
2768 main ()
2769 {
2770
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2777 case "(($ac_try" in
2778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779   *) ac_try_echo=$ac_try;;
2780 esac
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782   (eval "$ac_compile") 2>conftest.er1
2783   ac_status=$?
2784   grep -v '^ *+' conftest.er1 >conftest.err
2785   rm -f conftest.er1
2786   cat conftest.err >&5
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); } && {
2789          test -z "$ac_c_werror_flag" ||
2790          test ! -s conftest.err
2791        } && test -s conftest.$ac_objext; then
2792   ac_cv_prog_cc_g=yes
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797
2798 fi
2799
2800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 fi
2802
2803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804 fi
2805
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807    ac_c_werror_flag=$ac_save_c_werror_flag
2808 fi
2809 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2811 if test "$ac_test_CFLAGS" = set; then
2812   CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814   if test "$GCC" = yes; then
2815     CFLAGS="-g -O2"
2816   else
2817     CFLAGS="-g"
2818   fi
2819 else
2820   if test "$GCC" = yes; then
2821     CFLAGS="-O2"
2822   else
2823     CFLAGS=
2824   fi
2825 fi
2826 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2827 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_cc_c89+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   ac_cv_prog_cc_c89=no
2832 ac_save_CC=$CC
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839 #include <stdarg.h>
2840 #include <stdio.h>
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2847      char **p;
2848      int i;
2849 {
2850   return p[i];
2851 }
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2853 {
2854   char *s;
2855   va_list v;
2856   va_start (v,p);
2857   s = g (p, va_arg (v,int));
2858   va_end (v);
2859   return s;
2860 }
2861
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2863    function prototypes and stuff, but not '\xHH' hex character constants.
2864    These don't provoke an error unfortunately, instead are silently treated
2865    as 'x'.  The following induces an error, until -std is added to get
2866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2867    array size at least.  It's necessary to write '\x00'==0 to get something
2868    that's true only with -std.  */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870
2871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2872    inside strings and character constants.  */
2873 #define FOO(x) 'x'
2874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2875
2876 int test (int i, double x);
2877 struct s1 {int (*f) (int a);};
2878 struct s2 {int (*f) (double a);};
2879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880 int argc;
2881 char **argv;
2882 int
2883 main ()
2884 {
2885 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2891         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2892 do
2893   CC="$ac_save_CC $ac_arg"
2894   rm -f conftest.$ac_objext
2895 if { (ac_try="$ac_compile"
2896 case "(($ac_try" in
2897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898   *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901   (eval "$ac_compile") 2>conftest.er1
2902   ac_status=$?
2903   grep -v '^ *+' conftest.er1 >conftest.err
2904   rm -f conftest.er1
2905   cat conftest.err >&5
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); } && {
2908          test -z "$ac_c_werror_flag" ||
2909          test ! -s conftest.err
2910        } && test -s conftest.$ac_objext; then
2911   ac_cv_prog_cc_c89=$ac_arg
2912 else
2913   echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2915
2916
2917 fi
2918
2919 rm -f core conftest.err conftest.$ac_objext
2920   test "x$ac_cv_prog_cc_c89" != "xno" && break
2921 done
2922 rm -f conftest.$ac_ext
2923 CC=$ac_save_CC
2924
2925 fi
2926 # AC_CACHE_VAL
2927 case "x$ac_cv_prog_cc_c89" in
2928   x)
2929     { echo "$as_me:$LINENO: result: none needed" >&5
2930 echo "${ECHO_T}none needed" >&6; } ;;
2931   xno)
2932     { echo "$as_me:$LINENO: result: unsupported" >&5
2933 echo "${ECHO_T}unsupported" >&6; } ;;
2934   *)
2935     CC="$CC $ac_cv_prog_cc_c89"
2936     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2938 esac
2939
2940
2941 ac_ext=c
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946
2947 ac_ext=c
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2953 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2954 # On Suns, sometimes $CPP names a directory.
2955 if test -n "$CPP" && test -d "$CPP"; then
2956   CPP=
2957 fi
2958 if test -z "$CPP"; then
2959   if test "${ac_cv_prog_CPP+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962       # Double quotes because CPP needs to be expanded
2963     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2964     do
2965       ac_preproc_ok=false
2966 for ac_c_preproc_warn_flag in '' yes
2967 do
2968   # Use a header file that comes with gcc, so configuring glibc
2969   # with a fresh cross-compiler works.
2970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2971   # <limits.h> exists even on freestanding compilers.
2972   # On the NeXT, cc -E runs the code through the compiler's parser,
2973   # not just through cpp. "Syntax error" is here to catch this case.
2974   cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h.  */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h.  */
2980 #ifdef __STDC__
2981 # include <limits.h>
2982 #else
2983 # include <assert.h>
2984 #endif
2985                      Syntax error
2986 _ACEOF
2987 if { (ac_try="$ac_cpp conftest.$ac_ext"
2988 case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2994   ac_status=$?
2995   grep -v '^ *+' conftest.er1 >conftest.err
2996   rm -f conftest.er1
2997   cat conftest.err >&5
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); } >/dev/null && {
3000          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3001          test ! -s conftest.err
3002        }; then
3003   :
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008   # Broken: fails on valid input.
3009 continue
3010 fi
3011
3012 rm -f conftest.err conftest.$ac_ext
3013
3014   # OK, works on sane cases.  Now check whether nonexistent headers
3015   # can be detected and how.
3016   cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h.  */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h.  */
3022 #include <ac_nonexistent.h>
3023 _ACEOF
3024 if { (ac_try="$ac_cpp conftest.$ac_ext"
3025 case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } >/dev/null && {
3037          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3038          test ! -s conftest.err
3039        }; then
3040   # Broken: success on invalid input.
3041 continue
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046   # Passes both tests.
3047 ac_preproc_ok=:
3048 break
3049 fi
3050
3051 rm -f conftest.err conftest.$ac_ext
3052
3053 done
3054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3055 rm -f conftest.err conftest.$ac_ext
3056 if $ac_preproc_ok; then
3057   break
3058 fi
3059
3060     done
3061     ac_cv_prog_CPP=$CPP
3062
3063 fi
3064   CPP=$ac_cv_prog_CPP
3065 else
3066   ac_cv_prog_CPP=$CPP
3067 fi
3068 { echo "$as_me:$LINENO: result: $CPP" >&5
3069 echo "${ECHO_T}$CPP" >&6; }
3070 ac_preproc_ok=false
3071 for ac_c_preproc_warn_flag in '' yes
3072 do
3073   # Use a header file that comes with gcc, so configuring glibc
3074   # with a fresh cross-compiler works.
3075   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076   # <limits.h> exists even on freestanding compilers.
3077   # On the NeXT, cc -E runs the code through the compiler's parser,
3078   # not just through cpp. "Syntax error" is here to catch this case.
3079   cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085 #ifdef __STDC__
3086 # include <limits.h>
3087 #else
3088 # include <assert.h>
3089 #endif
3090                      Syntax error
3091 _ACEOF
3092 if { (ac_try="$ac_cpp conftest.$ac_ext"
3093 case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3099   ac_status=$?
3100   grep -v '^ *+' conftest.er1 >conftest.err
3101   rm -f conftest.er1
3102   cat conftest.err >&5
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); } >/dev/null && {
3105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3106          test ! -s conftest.err
3107        }; then
3108   :
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113   # Broken: fails on valid input.
3114 continue
3115 fi
3116
3117 rm -f conftest.err conftest.$ac_ext
3118
3119   # OK, works on sane cases.  Now check whether nonexistent headers
3120   # can be detected and how.
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127 #include <ac_nonexistent.h>
3128 _ACEOF
3129 if { (ac_try="$ac_cpp conftest.$ac_ext"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136   ac_status=$?
3137   grep -v '^ *+' conftest.er1 >conftest.err
3138   rm -f conftest.er1
3139   cat conftest.err >&5
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } >/dev/null && {
3142          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143          test ! -s conftest.err
3144        }; then
3145   # Broken: success on invalid input.
3146 continue
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151   # Passes both tests.
3152 ac_preproc_ok=:
3153 break
3154 fi
3155
3156 rm -f conftest.err conftest.$ac_ext
3157
3158 done
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3162   :
3163 else
3164   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&2;}
3168    { (exit 1); exit 1; }; }
3169 fi
3170
3171 ac_ext=c
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176
3177
3178 # Check whether --with-linker was given.
3179 if test "${with_linker+set}" = set; then
3180   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3181 echo "${ECHO_T}LD=$withval" >&6; }
3182 LD=$withval
3183 else
3184   if test -z "$LD" ; then LD=$CC; fi
3185 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3186 echo "${ECHO_T}LD defaults to $LD" >&6; }
3187 fi
3188 export LD
3189
3190
3191 # Check whether --with-ccopts was given.
3192 if test "${with_ccopts+set}" = set; then
3193   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3194 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3195 CFLAGS=$withval
3196 fi
3197
3198
3199 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3200 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3201 if test "${ac_cv_path_GREP+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204   # Extract the first word of "grep ggrep" to use in msg output
3205 if test -z "$GREP"; then
3206 set dummy grep ggrep; ac_prog_name=$2
3207 if test "${ac_cv_path_GREP+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   ac_path_GREP_found=false
3211 # Loop through the user's path and test for each of PROGNAME-LIST
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3214 do
3215   IFS=$as_save_IFS
3216   test -z "$as_dir" && as_dir=.
3217   for ac_prog in grep ggrep; do
3218   for ac_exec_ext in '' $ac_executable_extensions; do
3219     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3220     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3221     # Check for GNU ac_path_GREP and select it if it is found.
3222   # Check for GNU $ac_path_GREP
3223 case `"$ac_path_GREP" --version 2>&1` in
3224 *GNU*)
3225   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3226 *)
3227   ac_count=0
3228   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3229   while :
3230   do
3231     cat "conftest.in" "conftest.in" >"conftest.tmp"
3232     mv "conftest.tmp" "conftest.in"
3233     cp "conftest.in" "conftest.nl"
3234     echo 'GREP' >> "conftest.nl"
3235     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3236     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3237     ac_count=`expr $ac_count + 1`
3238     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3239       # Best one so far, save it but keep looking for a better one
3240       ac_cv_path_GREP="$ac_path_GREP"
3241       ac_path_GREP_max=$ac_count
3242     fi
3243     # 10*(2^10) chars as input seems more than enough
3244     test $ac_count -gt 10 && break
3245   done
3246   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3247 esac
3248
3249
3250     $ac_path_GREP_found && break 3
3251   done
3252 done
3253
3254 done
3255 IFS=$as_save_IFS
3256
3257
3258 fi
3259
3260 GREP="$ac_cv_path_GREP"
3261 if test -z "$GREP"; then
3262   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3263 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3264    { (exit 1); exit 1; }; }
3265 fi
3266
3267 else
3268   ac_cv_path_GREP=$GREP
3269 fi
3270
3271
3272 fi
3273 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3274 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3275  GREP="$ac_cv_path_GREP"
3276
3277
3278 { echo "$as_me:$LINENO: checking for egrep" >&5
3279 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3280 if test "${ac_cv_path_EGREP+set}" = set; then
3281   echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3284    then ac_cv_path_EGREP="$GREP -E"
3285    else
3286      # Extract the first word of "egrep" to use in msg output
3287 if test -z "$EGREP"; then
3288 set dummy egrep; ac_prog_name=$2
3289 if test "${ac_cv_path_EGREP+set}" = set; then
3290   echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292   ac_path_EGREP_found=false
3293 # Loop through the user's path and test for each of PROGNAME-LIST
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_prog in egrep; do
3300   for ac_exec_ext in '' $ac_executable_extensions; do
3301     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3302     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3303     # Check for GNU ac_path_EGREP and select it if it is found.
3304   # Check for GNU $ac_path_EGREP
3305 case `"$ac_path_EGREP" --version 2>&1` in
3306 *GNU*)
3307   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3308 *)
3309   ac_count=0
3310   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3311   while :
3312   do
3313     cat "conftest.in" "conftest.in" >"conftest.tmp"
3314     mv "conftest.tmp" "conftest.in"
3315     cp "conftest.in" "conftest.nl"
3316     echo 'EGREP' >> "conftest.nl"
3317     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3318     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3319     ac_count=`expr $ac_count + 1`
3320     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3321       # Best one so far, save it but keep looking for a better one
3322       ac_cv_path_EGREP="$ac_path_EGREP"
3323       ac_path_EGREP_max=$ac_count
3324     fi
3325     # 10*(2^10) chars as input seems more than enough
3326     test $ac_count -gt 10 && break
3327   done
3328   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3329 esac
3330
3331
3332     $ac_path_EGREP_found && break 3
3333   done
3334 done
3335
3336 done
3337 IFS=$as_save_IFS
3338
3339
3340 fi
3341
3342 EGREP="$ac_cv_path_EGREP"
3343 if test -z "$EGREP"; then
3344   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3345 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3346    { (exit 1); exit 1; }; }
3347 fi
3348
3349 else
3350   ac_cv_path_EGREP=$EGREP
3351 fi
3352
3353
3354    fi
3355 fi
3356 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3357 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3358  EGREP="$ac_cv_path_EGREP"
3359
3360
3361 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3362 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3363 if test "${ac_cv_header_stdc+set}" = set; then
3364   echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 #include <stdlib.h>
3373 #include <stdarg.h>
3374 #include <string.h>
3375 #include <float.h>
3376
3377 int
3378 main ()
3379 {
3380
3381   ;
3382   return 0;
3383 }
3384 _ACEOF
3385 rm -f conftest.$ac_objext
3386 if { (ac_try="$ac_compile"
3387 case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392   (eval "$ac_compile") 2>conftest.er1
3393   ac_status=$?
3394   grep -v '^ *+' conftest.er1 >conftest.err
3395   rm -f conftest.er1
3396   cat conftest.err >&5
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); } && {
3399          test -z "$ac_c_werror_flag" ||
3400          test ! -s conftest.err
3401        } && test -s conftest.$ac_objext; then
3402   ac_cv_header_stdc=yes
3403 else
3404   echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407         ac_cv_header_stdc=no
3408 fi
3409
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411
3412 if test $ac_cv_header_stdc = yes; then
3413   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #include <string.h>
3421
3422 _ACEOF
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424   $EGREP "memchr" >/dev/null 2>&1; then
3425   :
3426 else
3427   ac_cv_header_stdc=no
3428 fi
3429 rm -f conftest*
3430
3431 fi
3432
3433 if test $ac_cv_header_stdc = yes; then
3434   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3435   cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h.  */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h.  */
3441 #include <stdlib.h>
3442
3443 _ACEOF
3444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3445   $EGREP "free" >/dev/null 2>&1; then
3446   :
3447 else
3448   ac_cv_header_stdc=no
3449 fi
3450 rm -f conftest*
3451
3452 fi
3453
3454 if test $ac_cv_header_stdc = yes; then
3455   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3456   if test "$cross_compiling" = yes; then
3457   :
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465 #include <ctype.h>
3466 #include <stdlib.h>
3467 #if ((' ' & 0x0FF) == 0x020)
3468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3470 #else
3471 # define ISLOWER(c) \
3472                    (('a' <= (c) && (c) <= 'i') \
3473                      || ('j' <= (c) && (c) <= 'r') \
3474                      || ('s' <= (c) && (c) <= 'z'))
3475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3476 #endif
3477
3478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3479 int
3480 main ()
3481 {
3482   int i;
3483   for (i = 0; i < 256; i++)
3484     if (XOR (islower (i), ISLOWER (i))
3485         || toupper (i) != TOUPPER (i))
3486       return 2;
3487   return 0;
3488 }
3489 _ACEOF
3490 rm -f conftest$ac_exeext
3491 if { (ac_try="$ac_link"
3492 case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497   (eval "$ac_link") 2>&5
3498   ac_status=$?
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3501   { (case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506   (eval "$ac_try") 2>&5
3507   ac_status=$?
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); }; }; then
3510   :
3511 else
3512   echo "$as_me: program exited with status $ac_status" >&5
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 ( exit $ac_status )
3517 ac_cv_header_stdc=no
3518 fi
3519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3520 fi
3521
3522
3523 fi
3524 fi
3525 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3526 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3527 if test $ac_cv_header_stdc = yes; then
3528
3529 cat >>confdefs.h <<\_ACEOF
3530 #define STDC_HEADERS 1
3531 _ACEOF
3532
3533 fi
3534
3535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3546                   inttypes.h stdint.h unistd.h
3547 do
3548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560 $ac_includes_default
3561
3562 #include <$ac_header>
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (ac_try="$ac_compile"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571   (eval "$ac_compile") 2>conftest.er1
3572   ac_status=$?
3573   grep -v '^ *+' conftest.er1 >conftest.err
3574   rm -f conftest.er1
3575   cat conftest.err >&5
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); } && {
3578          test -z "$ac_c_werror_flag" ||
3579          test ! -s conftest.err
3580        } && test -s conftest.$ac_objext; then
3581   eval "$as_ac_Header=yes"
3582 else
3583   echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586         eval "$as_ac_Header=no"
3587 fi
3588
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591 ac_res=`eval echo '${'$as_ac_Header'}'`
3592                { echo "$as_me:$LINENO: result: $ac_res" >&5
3593 echo "${ECHO_T}$ac_res" >&6; }
3594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3595   cat >>confdefs.h <<_ACEOF
3596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3597 _ACEOF
3598
3599 fi
3600
3601 done
3602
3603
3604 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3605   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3606 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3607 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 fi
3610 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3611 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3612 else
3613   # Is the header compilable?
3614 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3615 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3616 cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h.  */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h.  */
3622 $ac_includes_default
3623 #include <linux/fs.h>
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (ac_try="$ac_compile"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632   (eval "$ac_compile") 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } && {
3639          test -z "$ac_c_werror_flag" ||
3640          test ! -s conftest.err
3641        } && test -s conftest.$ac_objext; then
3642   ac_header_compiler=yes
3643 else
3644   echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647         ac_header_compiler=no
3648 fi
3649
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3652 echo "${ECHO_T}$ac_header_compiler" >&6; }
3653
3654 # Is the header present?
3655 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3656 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h.  */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h.  */
3663 #include <linux/fs.h>
3664 _ACEOF
3665 if { (ac_try="$ac_cpp conftest.$ac_ext"
3666 case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3672   ac_status=$?
3673   grep -v '^ *+' conftest.er1 >conftest.err
3674   rm -f conftest.er1
3675   cat conftest.err >&5
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); } >/dev/null && {
3678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3679          test ! -s conftest.err
3680        }; then
3681   ac_header_preproc=yes
3682 else
3683   echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686   ac_header_preproc=no
3687 fi
3688
3689 rm -f conftest.err conftest.$ac_ext
3690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3691 echo "${ECHO_T}$ac_header_preproc" >&6; }
3692
3693 # So?  What about this header?
3694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3695   yes:no: )
3696     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3697 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3698     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3699 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3700     ac_header_preproc=yes
3701     ;;
3702   no:yes:* )
3703     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3704 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3705     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3706 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3707     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3708 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3709     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3710 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3711     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3712 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3713     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3714 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3715
3716     ;;
3717 esac
3718 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3719 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3720 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3721   echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723   ac_cv_header_linux_fs_h=$ac_header_preproc
3724 fi
3725 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3726 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3727
3728 fi
3729 if test $ac_cv_header_linux_fs_h = yes; then
3730   linux_headers=yes
3731 else
3732   linux_headers=no
3733 fi
3734
3735
3736 if test "$linux_headers" != yes; then
3737   LINUX_INCLUDE='-I$(top_builddir)/include'
3738 fi
3739
3740 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3741 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3742 if test "$GCC" = yes
3743 then
3744     case "$host_cpu" in
3745         alpha)          addcflags="-mieee" ;;
3746     esac
3747 fi
3748 if test "x$addcflags" != x
3749 then
3750     { echo "$as_me:$LINENO: result: $addcflags" >&5
3751 echo "${ECHO_T}$addcflags" >&6; }
3752     CFLAGS="$addcflags $CFLAGS"
3753 else
3754     { echo "$as_me:$LINENO: result: (none)" >&5
3755 echo "${ECHO_T}(none)" >&6; }
3756 fi
3757 LIB_EXT=.a
3758 STATIC_LIB_EXT=.a
3759 PROFILE_LIB_EXT=.a
3760
3761 # Check whether --with-ldopts was given.
3762 if test "${with_ldopts+set}" = set; then
3763   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3764 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3765 LDFLAGS=$withval
3766 else
3767   LDFLAGS=
3768 fi
3769
3770
3771 # Check whether --with-root-prefix was given.
3772 if test "${with_root_prefix+set}" = set; then
3773   withval=$with_root_prefix; root_prefix=$withval
3774 else
3775   root_prefix=NONE
3776 fi
3777 # Check whether --enable-maintainer-mode was given.
3778 if test "${enable_maintainer_mode+set}" = set; then
3779   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3780 then
3781         MAINTAINER_CMT=#
3782         echo "Disabling maintainer mode"
3783 else
3784         MAINTAINER_CMT=
3785         echo "Enabling maintainer mode"
3786 fi
3787
3788 else
3789   MAINTAINER_CMT=#
3790 echo "Disabling maintainer mode by default"
3791
3792 fi
3793
3794
3795 # Check whether --enable-compression was given.
3796 if test "${enable_compression+set}" = set; then
3797   enableval=$enable_compression; if test "$enableval" = "no"
3798 then
3799         echo "Disabling compression support"
3800 else
3801         cat >>confdefs.h <<\_ACEOF
3802 #define ENABLE_COMPRESSION 1
3803 _ACEOF
3804
3805         echo "Enabling compression support"
3806         echo "WARNING: Compression support is experimental"
3807 fi
3808
3809 else
3810   echo "Disabling compression support by default"
3811
3812 fi
3813
3814 # Check whether --enable-htree was given.
3815 if test "${enable_htree+set}" = set; then
3816   enableval=$enable_htree; if test "$enableval" = "no"
3817 then
3818         HTREE_CMT=#
3819         echo "Disabling htree directory support"
3820 else
3821         HTREE_CMT=
3822         cat >>confdefs.h <<\_ACEOF
3823 #define ENABLE_HTREE 1
3824 _ACEOF
3825
3826         echo "Enabling htree directory support"
3827 fi
3828
3829 else
3830   HTREE_CMT=
3831 cat >>confdefs.h <<\_ACEOF
3832 #define ENABLE_HTREE 1
3833 _ACEOF
3834
3835 echo "Enabling htree directory support by default"
3836
3837 fi
3838
3839
3840 E2_PKG_CONFIG_STATIC=--static
3841 # Check whether --enable-elf-shlibs was given.
3842 if test "${enable_elf_shlibs+set}" = set; then
3843   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3844 then
3845         ELF_CMT=#
3846         MAKEFILE_ELF=/dev/null
3847         echo "Disabling ELF shared libraries"
3848 else
3849         E2_PKG_CONFIG_STATIC=
3850         ELF_CMT=
3851         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3852         case "$host_os" in
3853         solaris2.*)
3854                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3855         ;;
3856         esac
3857         BINARY_TYPE=elfbin
3858         LIB_EXT=.so
3859         echo "Enabling ELF shared libraries"
3860 fi
3861
3862 else
3863   MAKEFILE_ELF=/dev/null
3864 ELF_CMT=#
3865 echo "Disabling ELF shared libraries by default"
3866
3867 fi
3868
3869
3870
3871 # Check whether --enable-bsd-shlibs was given.
3872 if test "${enable_bsd_shlibs+set}" = set; then
3873   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3874 then
3875         BSDLIB_CMT=#
3876         MAKEFILE_BSDLIB=/dev/null
3877         echo "Disabling BSD shared libraries"
3878 else
3879         E2_PKG_CONFIG_STATIC=
3880         BSDLIB_CMT=
3881         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3882         LIB_EXT=.so
3883         case "$host_os" in
3884         darwin*)
3885                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3886                 LIB_EXT=.dylib
3887         ;;
3888         esac
3889         echo "Enabling BSD shared libraries"
3890 fi
3891
3892 else
3893   MAKEFILE_BSDLIB=/dev/null
3894 BSDLIB_CMT=#
3895 echo "Disabling BSD shared libraries by default"
3896
3897 fi
3898
3899
3900
3901 # Check whether --enable-profile was given.
3902 if test "${enable_profile+set}" = set; then
3903   enableval=$enable_profile; if test "$enableval" = "no"
3904 then
3905         PROFILE_CMT=#
3906         MAKEFILE_PROFILE=/dev/null
3907         echo "Disabling profiling libraries"
3908 else
3909         PROFILE_CMT=
3910         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3911         PROFILED_LIB_EXT=_p.a
3912         echo "Building profiling libraries"
3913 fi
3914
3915 else
3916   PROFILE_CMT=#
3917 MAKEFILE_PROFILE=/dev/null
3918 echo "Disabling profiling libraries by default"
3919
3920 fi
3921
3922
3923
3924 # Check whether --enable-checker was given.
3925 if test "${enable_checker+set}" = set; then
3926   enableval=$enable_checker; if test "$enableval" = "no"
3927 then
3928         CHECKER_CMT=#
3929         MAKEFILE_CHECKER=/dev/null
3930         echo "Disabling checker libraries"
3931 else
3932         CHECKER_CMT=
3933         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3934         echo "Building checker libraries"
3935 fi
3936
3937 else
3938   CHECKER_CMT=#
3939 MAKEFILE_CHECKER=/dev/null
3940 echo "Disabling checker libraries by default"
3941
3942 fi
3943
3944
3945
3946
3947
3948
3949 # Check whether --enable-jbd-debug was given.
3950 if test "${enable_jbd_debug+set}" = set; then
3951   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3952 then
3953         echo "Disabling journal debugging"
3954 else
3955         cat >>confdefs.h <<\_ACEOF
3956 #define CONFIG_JBD_DEBUG 1
3957 _ACEOF
3958
3959         echo "Enabling journal debugging"
3960 fi
3961
3962 else
3963   echo "Disabling journal debugging by default"
3964
3965 fi
3966
3967 # Check whether --enable-blkid-debug was given.
3968 if test "${enable_blkid_debug+set}" = set; then
3969   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3970 then
3971         echo "Disabling blkid debugging"
3972 else
3973         cat >>confdefs.h <<\_ACEOF
3974 #define CONFIG_BLKID_DEBUG 1
3975 _ACEOF
3976
3977         echo "Enabling blkid debugging"
3978 fi
3979
3980 else
3981   echo "Disabling blkid debugging by default"
3982
3983 fi
3984
3985 # Check whether --enable-testio-debug was given.
3986 if test "${enable_testio_debug+set}" = set; then
3987   enableval=$enable_testio_debug; if test "$enableval" = "no"
3988 then
3989         echo "Disabling testio debugging"
3990 else
3991         cat >>confdefs.h <<\_ACEOF
3992 #define CONFIG_TESTIO_DEBUG 1
3993 _ACEOF
3994
3995         echo "Enabling testio debugging"
3996 fi
3997
3998 else
3999   echo "Disabling testio debugging by default"
4000
4001 fi
4002
4003 # Check whether --enable-debugfs was given.
4004 if test "${enable_debugfs+set}" = set; then
4005   enableval=$enable_debugfs; if test "$enableval" = "no"
4006 then
4007         echo "Disabling debugfs support"
4008         DEBUGFS_CMT="#"
4009 else
4010         DEBUGFS_CMT=
4011         echo "Enabling debugfs support"
4012 fi
4013
4014 else
4015   echo "Enabling debugfs support by default"
4016 DEBUGFS_CMT=
4017
4018 fi
4019
4020
4021 # Check whether --enable-imager was given.
4022 if test "${enable_imager+set}" = set; then
4023   enableval=$enable_imager; if test "$enableval" = "no"
4024 then
4025         echo "Disabling e2image support"
4026         IMAGER_CMT="#"
4027 else
4028         IMAGER_CMT=
4029         echo "Enabling e2image support"
4030 fi
4031
4032 else
4033   echo "Enabling e2image support by default"
4034 IMAGER_CMT=
4035
4036 fi
4037
4038
4039 # Check whether --enable-resizer was given.
4040 if test "${enable_resizer+set}" = set; then
4041   enableval=$enable_resizer; if test "$enableval" = "no"
4042 then
4043         echo "Disabling e2resize support"
4044         RESIZER_CMT="#"
4045 else
4046         RESIZER_CMT=
4047         echo "Enabling e2resize support"
4048 fi
4049
4050 else
4051   echo "Enabling e2resize support by default"
4052 RESIZER_CMT=
4053
4054 fi
4055
4056
4057 # Check whether --enable-fsck was given.
4058 if test "${enable_fsck+set}" = set; then
4059   enableval=$enable_fsck; if test "$enableval" = "no"
4060 then
4061         FSCK_PROG='' FSCK_MAN=''
4062         echo "Not building fsck wrapper"
4063 else
4064         FSCK_PROG=fsck FSCK_MAN=fsck.8
4065         echo "Building fsck wrapper"
4066 fi
4067
4068 else
4069   case "$host_os" in
4070   gnu*)
4071     FSCK_PROG='' FSCK_MAN=''
4072     echo "Not building fsck wrapper by default"
4073     ;;
4074   *)
4075     FSCK_PROG=fsck FSCK_MAN=fsck.8
4076     echo "Building fsck wrapper by default"
4077 esac
4078
4079 fi
4080
4081
4082
4083 # Check whether --enable-e2initrd-helper was given.
4084 if test "${enable_e2initrd_helper+set}" = set; then
4085   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4086 then
4087         E2INITRD_PROG='' E2INITRD_MAN=''
4088         echo "Not building e2initrd helper"
4089 else
4090         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4091         echo "Building e2initrd helper"
4092 fi
4093
4094 else
4095   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4096 echo "Building e2initrd helper by default"
4097
4098 fi
4099
4100
4101
4102 STATIC_BLKID_DEVMAPPER_LIBS=''
4103 # Check whether --enable-blkid-devmapper was given.
4104 if test "${enable_blkid_devmapper+set}" = set; then
4105   enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4106 then
4107         echo "Disabling device-mapper support"
4108         DEVMAPPER_REQ=''
4109         DEVMAPPER_LIBS=''
4110         STATIC_DEVMAPPER_LIBS=''
4111 else
4112         cat >>confdefs.h <<\_ACEOF
4113 #define HAVE_DEVMAPPER 1
4114 _ACEOF
4115
4116         echo "Enabling device-mapper support"
4117
4118
4119
4120 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4121         if test -n "$ac_tool_prefix"; then
4122   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4126 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   case $PKG_CONFIG in
4130   [\\/]* | ?:[\\/]*)
4131   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4132   ;;
4133   *)
4134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139   for ac_exec_ext in '' $ac_executable_extensions; do
4140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146 done
4147 IFS=$as_save_IFS
4148
4149   ;;
4150 esac
4151 fi
4152 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4153 if test -n "$PKG_CONFIG"; then
4154   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4155 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4156 else
4157   { echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6; }
4159 fi
4160
4161
4162 fi
4163 if test -z "$ac_cv_path_PKG_CONFIG"; then
4164   ac_pt_PKG_CONFIG=$PKG_CONFIG
4165   # Extract the first word of "pkg-config", so it can be a program name with args.
4166 set dummy pkg-config; ac_word=$2
4167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4169 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   case $ac_pt_PKG_CONFIG in
4173   [\\/]* | ?:[\\/]*)
4174   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4175   ;;
4176   *)
4177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4179 do
4180   IFS=$as_save_IFS
4181   test -z "$as_dir" && as_dir=.
4182   for ac_exec_ext in '' $ac_executable_extensions; do
4183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186     break 2
4187   fi
4188 done
4189 done
4190 IFS=$as_save_IFS
4191
4192   ;;
4193 esac
4194 fi
4195 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4196 if test -n "$ac_pt_PKG_CONFIG"; then
4197   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4198 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4199 else
4200   { echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6; }
4202 fi
4203
4204   if test "x$ac_pt_PKG_CONFIG" = x; then
4205     PKG_CONFIG=""
4206   else
4207     case $cross_compiling:$ac_tool_warned in
4208 yes:)
4209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4210 whose name does not start with the host triplet.  If you think this
4211 configuration is useful to you, please write to autoconf@gnu.org." >&5
4212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4213 whose name does not start with the host triplet.  If you think this
4214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4215 ac_tool_warned=yes ;;
4216 esac
4217     PKG_CONFIG=$ac_pt_PKG_CONFIG
4218   fi
4219 else
4220   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4221 fi
4222
4223 fi
4224 if test -n "$PKG_CONFIG"; then
4225         _pkg_min_version=0.9.0
4226         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4227 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4228         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4229                 { echo "$as_me:$LINENO: result: yes" >&5
4230 echo "${ECHO_T}yes" >&6; }
4231         else
4232                 { echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6; }
4234                 PKG_CONFIG=""
4235         fi
4236
4237 fi
4238
4239         if test -z "$PKG_CONFIG"; then
4240                 echo "pkg-config not installed; please install it."
4241                 exit 1;
4242         fi
4243
4244         { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4245 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4246 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   ac_check_lib_save_LIBS=$LIBS
4250 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4251 cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257
4258 /* Override any GCC internal prototype to avoid an error.
4259    Use char because int might match the return type of a GCC
4260    builtin and then its argument prototype would still apply.  */
4261 #ifdef __cplusplus
4262 extern "C"
4263 #endif
4264 char dm_tree_create ();
4265 int
4266 main ()
4267 {
4268 return dm_tree_create ();
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274 if { (ac_try="$ac_link"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280   (eval "$ac_link") 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } && {
4287          test -z "$ac_c_werror_flag" ||
4288          test ! -s conftest.err
4289        } && test -s conftest$ac_exeext &&
4290        $as_test_x conftest$ac_exeext; then
4291   ac_cv_lib_devmapper_dm_tree_create=yes
4292 else
4293   echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296         ac_cv_lib_devmapper_dm_tree_create=no
4297 fi
4298
4299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4300       conftest$ac_exeext conftest.$ac_ext
4301 LIBS=$ac_check_lib_save_LIBS
4302 fi
4303 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4304 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4305 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4306   DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4307                  STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4308                  DEVMAPPER_REQ="devmapper";
4309                  DEVMAPPER_PC_LIBS="-ldevmapper"
4310 else
4311   { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4312 echo "$as_me: error: device-mapper library not found" >&2;}
4313    { (exit 1); exit 1; }; }
4314 fi
4315
4316         # work around stupid devmapper.pc bug in Debian
4317         case "$STATIC_DEVMAPPER_LIBS" in
4318         *pthread*)
4319             ;;
4320         *)
4321             echo "Working around Debian bug #390243..."
4322             STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4323             ;;
4324         esac
4325         if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4326             DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4327             STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4328         fi
4329 fi
4330
4331 else
4332   echo "Disabling device-mapper support by default"
4333
4334 fi
4335
4336
4337
4338
4339
4340
4341 # Check whether --enable-tls was given.
4342 if test "${enable_tls+set}" = set; then
4343   enableval=$enable_tls; if test "$enableval" = "no"
4344 then
4345         try_tls=""
4346         echo "Disabling thread local support"
4347 else
4348         try_tls="yes"
4349         echo "Enabling thread local support"
4350 fi
4351
4352 else
4353   try_tls="yes"
4354 echo "Try using thread local support by default"
4355
4356 fi
4357
4358 if test "$try_tls" = "yes"
4359 then
4360
4361   { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4362 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4363   if test "${ac_cv_tls+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366
4367     ax_tls_keywords="__thread __declspec(thread) none"
4368     for ax_tls_keyword in $ax_tls_keywords; do
4369        case $ax_tls_keyword in
4370           none) ac_cv_tls=none ; break ;;
4371           *)
4372              cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378 #include <stdlib.h>
4379                  static void
4380                  foo(void) {
4381                  static  $ax_tls_keyword  int bar;
4382                  exit(1);
4383                  }
4384 int
4385 main ()
4386 {
4387
4388   ;
4389   return 0;
4390 }
4391 _ACEOF
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4394 case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399   (eval "$ac_compile") 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } && {
4406          test -z "$ac_c_werror_flag" ||
4407          test ! -s conftest.err
4408        } && test -s conftest.$ac_objext; then
4409   ac_cv_tls=$ax_tls_keyword ; break
4410 else
4411   echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414         ac_cv_tls=none
4415
4416 fi
4417
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419           esac
4420     done
4421
4422 fi
4423
4424
4425   if test "$ac_cv_tls" != "none"; then
4426
4427 cat >>confdefs.h <<_ACEOF
4428 #define TLS $ac_cv_tls
4429 _ACEOF
4430
4431   fi
4432   { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4433 echo "${ECHO_T}$ac_cv_tls" >&6; }
4434
4435 fi
4436 # Check whether --enable-uuidd was given.
4437 if test "${enable_uuidd+set}" = set; then
4438   enableval=$enable_uuidd; if test "$enableval" = "no"
4439 then
4440         echo "Not building uuidd"
4441         UUIDD_CMT="#"
4442 else
4443         cat >>confdefs.h <<\_ACEOF
4444 #define USE_UUIDD 1
4445 _ACEOF
4446
4447         UUIDD_CMT=""
4448         echo "Building uuidd"
4449 fi
4450
4451 else
4452   cat >>confdefs.h <<\_ACEOF
4453 #define USE_UUIDD 1
4454 _ACEOF
4455
4456 UUIDD_CMT=""
4457 echo "Building uuidd by default"
4458
4459 fi
4460
4461
4462 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4463
4464 GETTEXT_PACKAGE=e2fsprogs
4465 PACKAGE=e2fsprogs
4466 VERSION="$E2FSPROGS_VERSION"
4467 VERSION=0.14.1
4468 cat >>confdefs.h <<_ACEOF
4469 #define PACKAGE "$PACKAGE"
4470 _ACEOF
4471
4472 cat >>confdefs.h <<_ACEOF
4473 #define VERSION "$VERSION"
4474 _ACEOF
4475
4476
4477
4478
4479
4480 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4481 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4482 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4483 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   cat >conftest.make <<\_ACEOF
4487 SHELL = /bin/sh
4488 all:
4489         @echo '@@@%%%=$(MAKE)=@@@%%%'
4490 _ACEOF
4491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4492 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4493   *@@@%%%=?*=@@@%%%*)
4494     eval ac_cv_prog_make_${ac_make}_set=yes;;
4495   *)
4496     eval ac_cv_prog_make_${ac_make}_set=no;;
4497 esac
4498 rm -f conftest.make
4499 fi
4500 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4501   { echo "$as_me:$LINENO: result: yes" >&5
4502 echo "${ECHO_T}yes" >&6; }
4503   SET_MAKE=
4504 else
4505   { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4507   SET_MAKE="MAKE=${MAKE-make}"
4508 fi
4509
4510 # Find a good install program.  We prefer a C program (faster),
4511 # so one script is as good as another.  But avoid the broken or
4512 # incompatible versions:
4513 # SysV /etc/install, /usr/sbin/install
4514 # SunOS /usr/etc/install
4515 # IRIX /sbin/install
4516 # AIX /bin/install
4517 # AmigaOS /C/install, which installs bootblocks on floppy discs
4518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4521 # OS/2's system install, which has a completely different semantic
4522 # ./install, which can be erroneously created by make from ./install.sh.
4523 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4524 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4525 if test -z "$INSTALL"; then
4526 if test "${ac_cv_path_install+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534   # Account for people who put trailing slashes in PATH elements.
4535 case $as_dir/ in
4536   ./ | .// | /cC/* | \
4537   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4538   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4539   /usr/ucb/* ) ;;
4540   *)
4541     # OSF1 and SCO ODT 3.0 have their own names for install.
4542     # Don't use installbsd from OSF since it installs stuff as root
4543     # by default.
4544     for ac_prog in ginstall scoinst install; do
4545       for ac_exec_ext in '' $ac_executable_extensions; do
4546         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4547           if test $ac_prog = install &&
4548             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4549             # AIX install.  It has an incompatible calling convention.
4550             :
4551           elif test $ac_prog = install &&
4552             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4553             # program-specific install script used by HP pwplus--don't use.
4554             :
4555           else
4556             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4557             break 3
4558           fi
4559         fi
4560       done
4561     done
4562     ;;
4563 esac
4564 done
4565 IFS=$as_save_IFS
4566
4567
4568 fi
4569   if test "${ac_cv_path_install+set}" = set; then
4570     INSTALL=$ac_cv_path_install
4571   else
4572     # As a last resort, use the slow shell script.  Don't cache a
4573     # value for INSTALL within a source directory, because that will
4574     # break other packages using the cache if that directory is
4575     # removed, or if the value is a relative name.
4576     INSTALL=$ac_install_sh
4577   fi
4578 fi
4579 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4580 echo "${ECHO_T}$INSTALL" >&6; }
4581
4582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4583 # It thinks the first close brace ends the variable substitution.
4584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4585
4586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4587
4588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4589
4590
4591         MKINSTALLDIRS=
4592   if test -n "$ac_aux_dir"; then
4593     case "$ac_aux_dir" in
4594       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4595       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4596     esac
4597   fi
4598   if test -z "$MKINSTALLDIRS"; then
4599     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4600   fi
4601
4602
4603
4604   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4605 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4606     # Check whether --enable-nls was given.
4607 if test "${enable_nls+set}" = set; then
4608   enableval=$enable_nls; USE_NLS=$enableval
4609 else
4610   USE_NLS=yes
4611 fi
4612
4613   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4614 echo "${ECHO_T}$USE_NLS" >&6; }
4615
4616
4617
4618
4619
4620
4621 # Prepare PATH_SEPARATOR.
4622 # The user is always right.
4623 if test "${PATH_SEPARATOR+set}" != set; then
4624   echo "#! /bin/sh" >conf$$.sh
4625   echo  "exit 0"   >>conf$$.sh
4626   chmod +x conf$$.sh
4627   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4628     PATH_SEPARATOR=';'
4629   else
4630     PATH_SEPARATOR=:
4631   fi
4632   rm -f conf$$.sh
4633 fi
4634
4635 # Find out how to test for executable files. Don't use a zero-byte file,
4636 # as systems may use methods other than mode bits to determine executability.
4637 cat >conf$$.file <<_ASEOF
4638 #! /bin/sh
4639 exit 0
4640 _ASEOF
4641 chmod +x conf$$.file
4642 if test -x conf$$.file >/dev/null 2>&1; then
4643   ac_executable_p="test -x"
4644 else
4645   ac_executable_p="test -f"
4646 fi
4647 rm -f conf$$.file
4648
4649 # Extract the first word of "msgfmt", so it can be a program name with args.
4650 set dummy msgfmt; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_path_MSGFMT+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   case "$MSGFMT" in
4657   [\\/]* | ?:[\\/]*)
4658     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4659     ;;
4660   *)
4661     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4662     for ac_dir in $PATH; do
4663       IFS="$ac_save_IFS"
4664       test -z "$ac_dir" && ac_dir=.
4665       for ac_exec_ext in '' $ac_executable_extensions; do
4666         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4667           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4668      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4669             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4670             break 2
4671           fi
4672         fi
4673       done
4674     done
4675     IFS="$ac_save_IFS"
4676   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4677     ;;
4678 esac
4679 fi
4680 MSGFMT="$ac_cv_path_MSGFMT"
4681 if test "$MSGFMT" != ":"; then
4682   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4683 echo "${ECHO_T}$MSGFMT" >&6; }
4684 else
4685   { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 fi
4688
4689   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4690 set dummy gmsgfmt; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   case $GMSGFMT in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4717   ;;
4718 esac
4719 fi
4720 GMSGFMT=$ac_cv_path_GMSGFMT
4721 if test -n "$GMSGFMT"; then
4722   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4723 echo "${ECHO_T}$GMSGFMT" >&6; }
4724 else
4725   { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4727 fi
4728
4729
4730
4731
4732 # Prepare PATH_SEPARATOR.
4733 # The user is always right.
4734 if test "${PATH_SEPARATOR+set}" != set; then
4735   echo "#! /bin/sh" >conf$$.sh
4736   echo  "exit 0"   >>conf$$.sh
4737   chmod +x conf$$.sh
4738   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4739     PATH_SEPARATOR=';'
4740   else
4741     PATH_SEPARATOR=:
4742   fi
4743   rm -f conf$$.sh
4744 fi
4745
4746 # Find out how to test for executable files. Don't use a zero-byte file,
4747 # as systems may use methods other than mode bits to determine executability.
4748 cat >conf$$.file <<_ASEOF
4749 #! /bin/sh
4750 exit 0
4751 _ASEOF
4752 chmod +x conf$$.file
4753 if test -x conf$$.file >/dev/null 2>&1; then
4754   ac_executable_p="test -x"
4755 else
4756   ac_executable_p="test -f"
4757 fi
4758 rm -f conf$$.file
4759
4760 # Extract the first word of "xgettext", so it can be a program name with args.
4761 set dummy xgettext; ac_word=$2
4762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4764 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   case "$XGETTEXT" in
4768   [\\/]* | ?:[\\/]*)
4769     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4770     ;;
4771   *)
4772     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4773     for ac_dir in $PATH; do
4774       IFS="$ac_save_IFS"
4775       test -z "$ac_dir" && ac_dir=.
4776       for ac_exec_ext in '' $ac_executable_extensions; do
4777         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4778           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4779      (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
4780             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4781             break 2
4782           fi
4783         fi
4784       done
4785     done
4786     IFS="$ac_save_IFS"
4787   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4788     ;;
4789 esac
4790 fi
4791 XGETTEXT="$ac_cv_path_XGETTEXT"
4792 if test "$XGETTEXT" != ":"; then
4793   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4794 echo "${ECHO_T}$XGETTEXT" >&6; }
4795 else
4796   { echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6; }
4798 fi
4799
4800     rm -f messages.po
4801
4802
4803 # Prepare PATH_SEPARATOR.
4804 # The user is always right.
4805 if test "${PATH_SEPARATOR+set}" != set; then
4806   echo "#! /bin/sh" >conf$$.sh
4807   echo  "exit 0"   >>conf$$.sh
4808   chmod +x conf$$.sh
4809   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4810     PATH_SEPARATOR=';'
4811   else
4812     PATH_SEPARATOR=:
4813   fi
4814   rm -f conf$$.sh
4815 fi
4816
4817 # Find out how to test for executable files. Don't use a zero-byte file,
4818 # as systems may use methods other than mode bits to determine executability.
4819 cat >conf$$.file <<_ASEOF
4820 #! /bin/sh
4821 exit 0
4822 _ASEOF
4823 chmod +x conf$$.file
4824 if test -x conf$$.file >/dev/null 2>&1; then
4825   ac_executable_p="test -x"
4826 else
4827   ac_executable_p="test -f"
4828 fi
4829 rm -f conf$$.file
4830
4831 # Extract the first word of "msgmerge", so it can be a program name with args.
4832 set dummy msgmerge; ac_word=$2
4833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4835 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   case "$MSGMERGE" in
4839   [\\/]* | ?:[\\/]*)
4840     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4841     ;;
4842   *)
4843     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4844     for ac_dir in $PATH; do
4845       IFS="$ac_save_IFS"
4846       test -z "$ac_dir" && ac_dir=.
4847       for ac_exec_ext in '' $ac_executable_extensions; do
4848         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4849           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4850             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4851             break 2
4852           fi
4853         fi
4854       done
4855     done
4856     IFS="$ac_save_IFS"
4857   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4858     ;;
4859 esac
4860 fi
4861 MSGMERGE="$ac_cv_path_MSGMERGE"
4862 if test "$MSGMERGE" != ":"; then
4863   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4864 echo "${ECHO_T}$MSGMERGE" >&6; }
4865 else
4866   { echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6; }
4868 fi
4869
4870
4871       if test "$GMSGFMT" != ":"; then
4872             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4873        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4874       : ;
4875     else
4876       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4877       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4878 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4879       GMSGFMT=":"
4880     fi
4881   fi
4882
4883       if test "$XGETTEXT" != ":"; then
4884             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4885        (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
4886       : ;
4887     else
4888       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4889 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4890       XGETTEXT=":"
4891     fi
4892         rm -f messages.po
4893   fi
4894
4895   ac_config_commands="$ac_config_commands default-1"
4896
4897
4898 if test -n "$ac_tool_prefix"; then
4899   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_RANLIB+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906   if test -n "$RANLIB"; then
4907   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914   for ac_exec_ext in '' $ac_executable_extensions; do
4915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918     break 2
4919   fi
4920 done
4921 done
4922 IFS=$as_save_IFS
4923
4924 fi
4925 fi
4926 RANLIB=$ac_cv_prog_RANLIB
4927 if test -n "$RANLIB"; then
4928   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4929 echo "${ECHO_T}$RANLIB" >&6; }
4930 else
4931   { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4933 fi
4934
4935
4936 fi
4937 if test -z "$ac_cv_prog_RANLIB"; then
4938   ac_ct_RANLIB=$RANLIB
4939   # Extract the first word of "ranlib", so it can be a program name with args.
4940 set dummy ranlib; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   if test -n "$ac_ct_RANLIB"; then
4947   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956     ac_cv_prog_ac_ct_RANLIB="ranlib"
4957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961 done
4962 IFS=$as_save_IFS
4963
4964 fi
4965 fi
4966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4967 if test -n "$ac_ct_RANLIB"; then
4968   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4969 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4970 else
4971   { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4973 fi
4974
4975   if test "x$ac_ct_RANLIB" = x; then
4976     RANLIB=":"
4977   else
4978     case $cross_compiling:$ac_tool_warned in
4979 yes:)
4980 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4981 whose name does not start with the host triplet.  If you think this
4982 configuration is useful to you, please write to autoconf@gnu.org." >&5
4983 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4984 whose name does not start with the host triplet.  If you think this
4985 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4986 ac_tool_warned=yes ;;
4987 esac
4988     RANLIB=$ac_ct_RANLIB
4989   fi
4990 else
4991   RANLIB="$ac_cv_prog_RANLIB"
4992 fi
4993
4994
4995         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4996 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4997 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4998   echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000   ac_check_lib_save_LIBS=$LIBS
5001 LIBS="-lcposix  $LIBS"
5002 cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h.  */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h.  */
5008
5009 /* Override any GCC internal prototype to avoid an error.
5010    Use char because int might match the return type of a GCC
5011    builtin and then its argument prototype would still apply.  */
5012 #ifdef __cplusplus
5013 extern "C"
5014 #endif
5015 char strerror ();
5016 int
5017 main ()
5018 {
5019 return strerror ();
5020   ;
5021   return 0;
5022 }
5023 _ACEOF
5024 rm -f conftest.$ac_objext conftest$ac_exeext
5025 if { (ac_try="$ac_link"
5026 case "(($ac_try" in
5027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028   *) ac_try_echo=$ac_try;;
5029 esac
5030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031   (eval "$ac_link") 2>conftest.er1
5032   ac_status=$?
5033   grep -v '^ *+' conftest.er1 >conftest.err
5034   rm -f conftest.er1
5035   cat conftest.err >&5
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } && {
5038          test -z "$ac_c_werror_flag" ||
5039          test ! -s conftest.err
5040        } && test -s conftest$ac_exeext &&
5041        $as_test_x conftest$ac_exeext; then
5042   ac_cv_lib_cposix_strerror=yes
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047         ac_cv_lib_cposix_strerror=no
5048 fi
5049
5050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5051       conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5053 fi
5054 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5055 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5056 if test $ac_cv_lib_cposix_strerror = yes; then
5057   LIBS="$LIBS -lcposix"
5058 fi
5059
5060
5061
5062 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5063 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5064 if test "${ac_cv_c_const+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073
5074 int
5075 main ()
5076 {
5077 /* FIXME: Include the comments suggested by Paul. */
5078 #ifndef __cplusplus
5079   /* Ultrix mips cc rejects this.  */
5080   typedef int charset[2];
5081   const charset cs;
5082   /* SunOS 4.1.1 cc rejects this.  */
5083   char const *const *pcpcc;
5084   char **ppc;
5085   /* NEC SVR4.0.2 mips cc rejects this.  */
5086   struct point {int x, y;};
5087   static struct point const zero = {0,0};
5088   /* AIX XL C 1.02.0.0 rejects this.
5089      It does not let you subtract one const X* pointer from another in
5090      an arm of an if-expression whose if-part is not a constant
5091      expression */
5092   const char *g = "string";
5093   pcpcc = &g + (g ? g-g : 0);
5094   /* HPUX 7.0 cc rejects these. */
5095   ++pcpcc;
5096   ppc = (char**) pcpcc;
5097   pcpcc = (char const *const *) ppc;
5098   { /* SCO 3.2v4 cc rejects this.  */
5099     char *t;
5100     char const *s = 0 ? (char *) 0 : (char const *) 0;
5101
5102     *t++ = 0;
5103     if (s) return 0;
5104   }
5105   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5106     int x[] = {25, 17};
5107     const int *foo = &x[0];
5108     ++foo;
5109   }
5110   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5111     typedef const int *iptr;
5112     iptr p = 0;
5113     ++p;
5114   }
5115   { /* AIX XL C 1.02.0.0 rejects this saying
5116        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5117     struct s { int j; const int *ap[3]; };
5118     struct s *b; b->j = 5;
5119   }
5120   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5121     const int foo = 10;
5122     if (!foo) return 0;
5123   }
5124   return !cs[0] && !zero.x;
5125 #endif
5126
5127   ;
5128   return 0;
5129 }
5130 _ACEOF
5131 rm -f conftest.$ac_objext
5132 if { (ac_try="$ac_compile"
5133 case "(($ac_try" in
5134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135   *) ac_try_echo=$ac_try;;
5136 esac
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138   (eval "$ac_compile") 2>conftest.er1
5139   ac_status=$?
5140   grep -v '^ *+' conftest.er1 >conftest.err
5141   rm -f conftest.er1
5142   cat conftest.err >&5
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } && {
5145          test -z "$ac_c_werror_flag" ||
5146          test ! -s conftest.err
5147        } && test -s conftest.$ac_objext; then
5148   ac_cv_c_const=yes
5149 else
5150   echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153         ac_cv_c_const=no
5154 fi
5155
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 fi
5158 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5159 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5160 if test $ac_cv_c_const = no; then
5161
5162 cat >>confdefs.h <<\_ACEOF
5163 #define const
5164 _ACEOF
5165
5166 fi
5167
5168
5169   { echo "$as_me:$LINENO: checking for signed" >&5
5170 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5171 if test "${bh_cv_c_signed+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h.  */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h.  */
5180
5181 int
5182 main ()
5183 {
5184 signed char x;
5185   ;
5186   return 0;
5187 }
5188 _ACEOF
5189 rm -f conftest.$ac_objext
5190 if { (ac_try="$ac_compile"
5191 case "(($ac_try" in
5192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193   *) ac_try_echo=$ac_try;;
5194 esac
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196   (eval "$ac_compile") 2>conftest.er1
5197   ac_status=$?
5198   grep -v '^ *+' conftest.er1 >conftest.err
5199   rm -f conftest.er1
5200   cat conftest.err >&5
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); } && {
5203          test -z "$ac_c_werror_flag" ||
5204          test ! -s conftest.err
5205        } && test -s conftest.$ac_objext; then
5206   bh_cv_c_signed=yes
5207 else
5208   echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211         bh_cv_c_signed=no
5212 fi
5213
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 fi
5216 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5217 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5218   if test $bh_cv_c_signed = no; then
5219
5220 cat >>confdefs.h <<\_ACEOF
5221 #define signed
5222 _ACEOF
5223
5224   fi
5225
5226 { echo "$as_me:$LINENO: checking for inline" >&5
5227 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5228 if test "${ac_cv_c_inline+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   ac_cv_c_inline=no
5232 for ac_kw in inline __inline__ __inline; do
5233   cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #ifndef __cplusplus
5240 typedef int foo_t;
5241 static $ac_kw foo_t static_foo () {return 0; }
5242 $ac_kw foo_t foo () {return 0; }
5243 #endif
5244
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (ac_try="$ac_compile"
5248 case "(($ac_try" in
5249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250   *) ac_try_echo=$ac_try;;
5251 esac
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253   (eval "$ac_compile") 2>conftest.er1
5254   ac_status=$?
5255   grep -v '^ *+' conftest.er1 >conftest.err
5256   rm -f conftest.er1
5257   cat conftest.err >&5
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } && {
5260          test -z "$ac_c_werror_flag" ||
5261          test ! -s conftest.err
5262        } && test -s conftest.$ac_objext; then
5263   ac_cv_c_inline=$ac_kw
5264 else
5265   echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268
5269 fi
5270
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272   test "$ac_cv_c_inline" != no && break
5273 done
5274
5275 fi
5276 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5277 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5278
5279
5280 case $ac_cv_c_inline in
5281   inline | yes) ;;
5282   *)
5283     case $ac_cv_c_inline in
5284       no) ac_val=;;
5285       *) ac_val=$ac_cv_c_inline;;
5286     esac
5287     cat >>confdefs.h <<_ACEOF
5288 #ifndef __cplusplus
5289 #define inline $ac_val
5290 #endif
5291 _ACEOF
5292     ;;
5293 esac
5294
5295 { echo "$as_me:$LINENO: checking for off_t" >&5
5296 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5297 if test "${ac_cv_type_off_t+set}" = set; then
5298   echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300   cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h.  */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h.  */
5306 $ac_includes_default
5307 typedef off_t ac__type_new_;
5308 int
5309 main ()
5310 {
5311 if ((ac__type_new_ *) 0)
5312   return 0;
5313 if (sizeof (ac__type_new_))
5314   return 0;
5315   ;
5316   return 0;
5317 }
5318 _ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (ac_try="$ac_compile"
5321 case "(($ac_try" in
5322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323   *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326   (eval "$ac_compile") 2>conftest.er1
5327   ac_status=$?
5328   grep -v '^ *+' conftest.er1 >conftest.err
5329   rm -f conftest.er1
5330   cat conftest.err >&5
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); } && {
5333          test -z "$ac_c_werror_flag" ||
5334          test ! -s conftest.err
5335        } && test -s conftest.$ac_objext; then
5336   ac_cv_type_off_t=yes
5337 else
5338   echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341         ac_cv_type_off_t=no
5342 fi
5343
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345 fi
5346 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5347 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5348 if test $ac_cv_type_off_t = yes; then
5349   :
5350 else
5351
5352 cat >>confdefs.h <<_ACEOF
5353 #define off_t long int
5354 _ACEOF
5355
5356 fi
5357
5358 { echo "$as_me:$LINENO: checking for size_t" >&5
5359 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5360 if test "${ac_cv_type_size_t+set}" = set; then
5361   echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363   cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369 $ac_includes_default
5370 typedef size_t ac__type_new_;
5371 int
5372 main ()
5373 {
5374 if ((ac__type_new_ *) 0)
5375   return 0;
5376 if (sizeof (ac__type_new_))
5377   return 0;
5378   ;
5379   return 0;
5380 }
5381 _ACEOF
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5384 case "(($ac_try" in
5385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386   *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389   (eval "$ac_compile") 2>conftest.er1
5390   ac_status=$?
5391   grep -v '^ *+' conftest.er1 >conftest.err
5392   rm -f conftest.er1
5393   cat conftest.err >&5
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); } && {
5396          test -z "$ac_c_werror_flag" ||
5397          test ! -s conftest.err
5398        } && test -s conftest.$ac_objext; then
5399   ac_cv_type_size_t=yes
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404         ac_cv_type_size_t=no
5405 fi
5406
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5410 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5411 if test $ac_cv_type_size_t = yes; then
5412   :
5413 else
5414
5415 cat >>confdefs.h <<_ACEOF
5416 #define size_t unsigned int
5417 _ACEOF
5418
5419 fi
5420
5421
5422   { echo "$as_me:$LINENO: checking for long long" >&5
5423 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5424 if test "${ac_cv_type_long_long+set}" = set; then
5425   echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427   cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h.  */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h.  */
5433 long long ll = 1LL; int i = 63;
5434 int
5435 main ()
5436 {
5437 long long llmax = (long long) -1;
5438      return ll << i | ll >> i | llmax / ll | llmax % ll;
5439   ;
5440   return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest.$ac_objext conftest$ac_exeext
5444 if { (ac_try="$ac_link"
5445 case "(($ac_try" in
5446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447   *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450   (eval "$ac_link") 2>conftest.er1
5451   ac_status=$?
5452   grep -v '^ *+' conftest.er1 >conftest.err
5453   rm -f conftest.er1
5454   cat conftest.err >&5
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); } && {
5457          test -z "$ac_c_werror_flag" ||
5458          test ! -s conftest.err
5459        } && test -s conftest$ac_exeext &&
5460        $as_test_x conftest$ac_exeext; then
5461   ac_cv_type_long_long=yes
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466         ac_cv_type_long_long=no
5467 fi
5468
5469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5470       conftest$ac_exeext conftest.$ac_ext
5471 fi
5472 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5473 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5474   if test $ac_cv_type_long_long = yes; then
5475
5476 cat >>confdefs.h <<\_ACEOF
5477 #define HAVE_LONG_LONG 1
5478 _ACEOF
5479
5480   fi
5481
5482
5483   { echo "$as_me:$LINENO: checking for long double" >&5
5484 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5485 if test "${gt_cv_c_long_double+set}" = set; then
5486   echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488   if test "$GCC" = yes; then
5489        gt_cv_c_long_double=yes
5490      else
5491        cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h.  */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h.  */
5497
5498          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5499          long double foo = 0.0;
5500          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5501          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5502
5503 int
5504 main ()
5505 {
5506
5507   ;
5508   return 0;
5509 }
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5513 case "(($ac_try" in
5514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515   *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518   (eval "$ac_compile") 2>conftest.er1
5519   ac_status=$?
5520   grep -v '^ *+' conftest.er1 >conftest.err
5521   rm -f conftest.er1
5522   cat conftest.err >&5
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } && {
5525          test -z "$ac_c_werror_flag" ||
5526          test ! -s conftest.err
5527        } && test -s conftest.$ac_objext; then
5528   gt_cv_c_long_double=yes
5529 else
5530   echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533         gt_cv_c_long_double=no
5534 fi
5535
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537      fi
5538 fi
5539 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5540 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5541   if test $gt_cv_c_long_double = yes; then
5542
5543 cat >>confdefs.h <<\_ACEOF
5544 #define HAVE_LONG_DOUBLE 1
5545 _ACEOF
5546
5547   fi
5548
5549
5550   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5551 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5552 if test "${gt_cv_c_wchar_t+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h.  */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h.  */
5561 #include <stddef.h>
5562        wchar_t foo = (wchar_t)'\0';
5563 int
5564 main ()
5565 {
5566
5567   ;
5568   return 0;
5569 }
5570 _ACEOF
5571 rm -f conftest.$ac_objext
5572 if { (ac_try="$ac_compile"
5573 case "(($ac_try" in
5574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575   *) ac_try_echo=$ac_try;;
5576 esac
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578   (eval "$ac_compile") 2>conftest.er1
5579   ac_status=$?
5580   grep -v '^ *+' conftest.er1 >conftest.err
5581   rm -f conftest.er1
5582   cat conftest.err >&5
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); } && {
5585          test -z "$ac_c_werror_flag" ||
5586          test ! -s conftest.err
5587        } && test -s conftest.$ac_objext; then
5588   gt_cv_c_wchar_t=yes
5589 else
5590   echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593         gt_cv_c_wchar_t=no
5594 fi
5595
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 fi
5598 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5599 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5600   if test $gt_cv_c_wchar_t = yes; then
5601
5602 cat >>confdefs.h <<\_ACEOF
5603 #define HAVE_WCHAR_T 1
5604 _ACEOF
5605
5606   fi
5607
5608
5609   { echo "$as_me:$LINENO: checking for wint_t" >&5
5610 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5611 if test "${gt_cv_c_wint_t+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 #include <wchar.h>
5621        wint_t foo = (wchar_t)'\0';
5622 int
5623 main ()
5624 {
5625
5626   ;
5627   return 0;
5628 }
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5632 case "(($ac_try" in
5633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634   *) ac_try_echo=$ac_try;;
5635 esac
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637   (eval "$ac_compile") 2>conftest.er1
5638   ac_status=$?
5639   grep -v '^ *+' conftest.er1 >conftest.err
5640   rm -f conftest.er1
5641   cat conftest.err >&5
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); } && {
5644          test -z "$ac_c_werror_flag" ||
5645          test ! -s conftest.err
5646        } && test -s conftest.$ac_objext; then
5647   gt_cv_c_wint_t=yes
5648 else
5649   echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5651
5652         gt_cv_c_wint_t=no
5653 fi
5654
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 fi
5657 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5658 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5659   if test $gt_cv_c_wint_t = yes; then
5660
5661 cat >>confdefs.h <<\_ACEOF
5662 #define HAVE_WINT_T 1
5663 _ACEOF
5664
5665   fi
5666
5667
5668   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5669 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5670 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h.  */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h.  */
5679 #include <sys/types.h>
5680 #include <inttypes.h>
5681 int
5682 main ()
5683 {
5684 uintmax_t i = (uintmax_t) -1;
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5691 case "(($ac_try" in
5692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693   *) ac_try_echo=$ac_try;;
5694 esac
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696   (eval "$ac_compile") 2>conftest.er1
5697   ac_status=$?
5698   grep -v '^ *+' conftest.er1 >conftest.err
5699   rm -f conftest.er1
5700   cat conftest.err >&5
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); } && {
5703          test -z "$ac_c_werror_flag" ||
5704          test ! -s conftest.err
5705        } && test -s conftest.$ac_objext; then
5706   jm_ac_cv_header_inttypes_h=yes
5707 else
5708   echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711         jm_ac_cv_header_inttypes_h=no
5712 fi
5713
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5717 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5718   if test $jm_ac_cv_header_inttypes_h = yes; then
5719
5720 cat >>confdefs.h <<_ACEOF
5721 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5722 _ACEOF
5723
5724   fi
5725
5726
5727   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5728 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5729 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h.  */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h.  */
5738 #include <sys/types.h>
5739 #include <stdint.h>
5740 int
5741 main ()
5742 {
5743 uintmax_t i = (uintmax_t) -1;
5744   ;
5745   return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5750 case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_compile") 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } && {
5762          test -z "$ac_c_werror_flag" ||
5763          test ! -s conftest.err
5764        } && test -s conftest.$ac_objext; then
5765   jm_ac_cv_header_stdint_h=yes
5766 else
5767   echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5769
5770         jm_ac_cv_header_stdint_h=no
5771 fi
5772
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 fi
5775 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5776 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5777   if test $jm_ac_cv_header_stdint_h = yes; then
5778
5779 cat >>confdefs.h <<_ACEOF
5780 #define HAVE_STDINT_H_WITH_UINTMAX 1
5781 _ACEOF
5782
5783   fi
5784
5785
5786
5787
5788   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5789 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5790 if test "${gt_cv_c_intmax_t+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h.  */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h.  */
5799
5800 #include <stddef.h>
5801 #include <stdlib.h>
5802 #if HAVE_STDINT_H_WITH_UINTMAX
5803 #include <stdint.h>
5804 #endif
5805 #if HAVE_INTTYPES_H_WITH_UINTMAX
5806 #include <inttypes.h>
5807 #endif
5808
5809 int
5810 main ()
5811 {
5812 intmax_t x = -1;
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (ac_try="$ac_compile"
5819 case "(($ac_try" in
5820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821   *) ac_try_echo=$ac_try;;
5822 esac
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824   (eval "$ac_compile") 2>conftest.er1
5825   ac_status=$?
5826   grep -v '^ *+' conftest.er1 >conftest.err
5827   rm -f conftest.er1
5828   cat conftest.err >&5
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); } && {
5831          test -z "$ac_c_werror_flag" ||
5832          test ! -s conftest.err
5833        } && test -s conftest.$ac_objext; then
5834   gt_cv_c_intmax_t=yes
5835 else
5836   echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5838
5839         gt_cv_c_intmax_t=no
5840 fi
5841
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 fi
5844 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5845 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5846   if test $gt_cv_c_intmax_t = yes; then
5847
5848 cat >>confdefs.h <<\_ACEOF
5849 #define HAVE_INTMAX_T 1
5850 _ACEOF
5851
5852   fi
5853
5854
5855
5856   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5857 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5858 if test "${gt_cv_func_printf_posix+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861
5862       if test "$cross_compiling" = yes; then
5863
5864         cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h.  */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h.  */
5870
5871 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5872   notposix
5873 #endif
5874
5875 _ACEOF
5876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5877   $EGREP "notposix" >/dev/null 2>&1; then
5878   gt_cv_func_printf_posix="guessing no"
5879 else
5880   gt_cv_func_printf_posix="guessing yes"
5881 fi
5882 rm -f conftest*
5883
5884
5885 else
5886   cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h.  */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h.  */
5892
5893 #include <stdio.h>
5894 #include <string.h>
5895 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5896    dollar expansion (possibly an autoconf bug).  */
5897 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5898 static char buf[100];
5899 int main ()
5900 {
5901   sprintf (buf, format, 33, 55);
5902   return (strcmp (buf, "55 33") != 0);
5903 }
5904 _ACEOF
5905 rm -f conftest$ac_exeext
5906 if { (ac_try="$ac_link"
5907 case "(($ac_try" in
5908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909   *) ac_try_echo=$ac_try;;
5910 esac
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912   (eval "$ac_link") 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5916   { (case "(($ac_try" in
5917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918   *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921   (eval "$ac_try") 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); }; }; then
5925   gt_cv_func_printf_posix=yes
5926 else
5927   echo "$as_me: program exited with status $ac_status" >&5
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5930
5931 ( exit $ac_status )
5932 gt_cv_func_printf_posix=no
5933 fi
5934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5935 fi
5936
5937
5938
5939 fi
5940 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5941 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5942   case $gt_cv_func_printf_posix in
5943     *yes)
5944
5945 cat >>confdefs.h <<\_ACEOF
5946 #define HAVE_POSIX_PRINTF 1
5947 _ACEOF
5948
5949       ;;
5950   esac
5951
5952 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5953 # for constant arguments.  Useless!
5954 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5955 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5956 if test "${ac_cv_working_alloca_h+set}" = set; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959   cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965 #include <alloca.h>
5966 int
5967 main ()
5968 {
5969 char *p = (char *) alloca (2 * sizeof (int));
5970                           if (p) return 0;
5971   ;
5972   return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (ac_try="$ac_link"
5977 case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982   (eval "$ac_link") 2>conftest.er1
5983   ac_status=$?
5984   grep -v '^ *+' conftest.er1 >conftest.err
5985   rm -f conftest.er1
5986   cat conftest.err >&5
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); } && {
5989          test -z "$ac_c_werror_flag" ||
5990          test ! -s conftest.err
5991        } && test -s conftest$ac_exeext &&
5992        $as_test_x conftest$ac_exeext; then
5993   ac_cv_working_alloca_h=yes
5994 else
5995   echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998         ac_cv_working_alloca_h=no
5999 fi
6000
6001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6002       conftest$ac_exeext conftest.$ac_ext
6003 fi
6004 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6005 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6006 if test $ac_cv_working_alloca_h = yes; then
6007
6008 cat >>confdefs.h <<\_ACEOF
6009 #define HAVE_ALLOCA_H 1
6010 _ACEOF
6011
6012 fi
6013
6014 { echo "$as_me:$LINENO: checking for alloca" >&5
6015 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6016 if test "${ac_cv_func_alloca_works+set}" = set; then
6017   echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019   cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025 #ifdef __GNUC__
6026 # define alloca __builtin_alloca
6027 #else
6028 # ifdef _MSC_VER
6029 #  include <malloc.h>
6030 #  define alloca _alloca
6031 # else
6032 #  ifdef HAVE_ALLOCA_H
6033 #   include <alloca.h>
6034 #  else
6035 #   ifdef _AIX
6036  #pragma alloca
6037 #   else
6038 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6039 char *alloca ();
6040 #    endif
6041 #   endif
6042 #  endif
6043 # endif
6044 #endif
6045
6046 int
6047 main ()
6048 {
6049 char *p = (char *) alloca (1);
6050                                     if (p) return 0;
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 rm -f conftest.$ac_objext conftest$ac_exeext
6056 if { (ac_try="$ac_link"
6057 case "(($ac_try" in
6058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059   *) ac_try_echo=$ac_try;;
6060 esac
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062   (eval "$ac_link") 2>conftest.er1
6063   ac_status=$?
6064   grep -v '^ *+' conftest.er1 >conftest.err
6065   rm -f conftest.er1
6066   cat conftest.err >&5
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } && {
6069          test -z "$ac_c_werror_flag" ||
6070          test ! -s conftest.err
6071        } && test -s conftest$ac_exeext &&
6072        $as_test_x conftest$ac_exeext; then
6073   ac_cv_func_alloca_works=yes
6074 else
6075   echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078         ac_cv_func_alloca_works=no
6079 fi
6080
6081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6082       conftest$ac_exeext conftest.$ac_ext
6083 fi
6084 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6085 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6086
6087 if test $ac_cv_func_alloca_works = yes; then
6088
6089 cat >>confdefs.h <<\_ACEOF
6090 #define HAVE_ALLOCA 1
6091 _ACEOF
6092
6093 else
6094   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6095 # that cause trouble.  Some versions do not even contain alloca or
6096 # contain a buggy version.  If you still want to use their alloca,
6097 # use ar to extract alloca.o from them instead of compiling alloca.c.
6098
6099 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6100
6101 cat >>confdefs.h <<\_ACEOF
6102 #define C_ALLOCA 1
6103 _ACEOF
6104
6105
6106 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6107 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6108 if test "${ac_cv_os_cray+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117 #if defined CRAY && ! defined CRAY2
6118 webecray
6119 #else
6120 wenotbecray
6121 #endif
6122
6123 _ACEOF
6124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125   $EGREP "webecray" >/dev/null 2>&1; then
6126   ac_cv_os_cray=yes
6127 else
6128   ac_cv_os_cray=no
6129 fi
6130 rm -f conftest*
6131
6132 fi
6133 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6134 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6135 if test $ac_cv_os_cray = yes; then
6136   for ac_func in _getb67 GETB67 getb67; do
6137     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h.  */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h.  */
6149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6151 #define $ac_func innocuous_$ac_func
6152
6153 /* System header to define __stub macros and hopefully few prototypes,
6154     which can conflict with char $ac_func (); below.
6155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6156     <limits.h> exists even on freestanding compilers.  */
6157
6158 #ifdef __STDC__
6159 # include <limits.h>
6160 #else
6161 # include <assert.h>
6162 #endif
6163
6164 #undef $ac_func
6165
6166 /* Override any GCC internal prototype to avoid an error.
6167    Use char because int might match the return type of a GCC
6168    builtin and then its argument prototype would still apply.  */
6169 #ifdef __cplusplus
6170 extern "C"
6171 #endif
6172 char $ac_func ();
6173 /* The GNU C library defines this for functions which it implements
6174     to always fail with ENOSYS.  Some functions are actually named
6175     something starting with __ and the normal name is an alias.  */
6176 #if defined __stub_$ac_func || defined __stub___$ac_func
6177 choke me
6178 #endif
6179
6180 int
6181 main ()
6182 {
6183 return $ac_func ();
6184   ;
6185   return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (ac_try="$ac_link"
6190 case "(($ac_try" in
6191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192   *) ac_try_echo=$ac_try;;
6193 esac
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195   (eval "$ac_link") 2>conftest.er1
6196   ac_status=$?
6197   grep -v '^ *+' conftest.er1 >conftest.err
6198   rm -f conftest.er1
6199   cat conftest.err >&5
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); } && {
6202          test -z "$ac_c_werror_flag" ||
6203          test ! -s conftest.err
6204        } && test -s conftest$ac_exeext &&
6205        $as_test_x conftest$ac_exeext; then
6206   eval "$as_ac_var=yes"
6207 else
6208   echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211         eval "$as_ac_var=no"
6212 fi
6213
6214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6215       conftest$ac_exeext conftest.$ac_ext
6216 fi
6217 ac_res=`eval echo '${'$as_ac_var'}'`
6218                { echo "$as_me:$LINENO: result: $ac_res" >&5
6219 echo "${ECHO_T}$ac_res" >&6; }
6220 if test `eval echo '${'$as_ac_var'}'` = yes; then
6221
6222 cat >>confdefs.h <<_ACEOF
6223 #define CRAY_STACKSEG_END $ac_func
6224 _ACEOF
6225
6226     break
6227 fi
6228
6229   done
6230 fi
6231
6232 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6233 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6234 if test "${ac_cv_c_stack_direction+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   if test "$cross_compiling" = yes; then
6238   ac_cv_c_stack_direction=0
6239 else
6240   cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246 $ac_includes_default
6247 int
6248 find_stack_direction ()
6249 {
6250   static char *addr = 0;
6251   auto char dummy;
6252   if (addr == 0)
6253     {
6254       addr = &dummy;
6255       return find_stack_direction ();
6256     }
6257   else
6258     return (&dummy > addr) ? 1 : -1;
6259 }
6260
6261 int
6262 main ()
6263 {
6264   return find_stack_direction () < 0;
6265 }
6266 _ACEOF
6267 rm -f conftest$ac_exeext
6268 if { (ac_try="$ac_link"
6269 case "(($ac_try" in
6270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271   *) ac_try_echo=$ac_try;;
6272 esac
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274   (eval "$ac_link") 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6278   { (case "(($ac_try" in
6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280   *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283   (eval "$ac_try") 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }; }; then
6287   ac_cv_c_stack_direction=1
6288 else
6289   echo "$as_me: program exited with status $ac_status" >&5
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6292
6293 ( exit $ac_status )
6294 ac_cv_c_stack_direction=-1
6295 fi
6296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6297 fi
6298
6299
6300 fi
6301 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6302 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6303
6304 cat >>confdefs.h <<_ACEOF
6305 #define STACK_DIRECTION $ac_cv_c_stack_direction
6306 _ACEOF
6307
6308
6309 fi
6310
6311
6312
6313 for ac_header in stdlib.h unistd.h
6314 do
6315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6317   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6320   echo $ECHO_N "(cached) $ECHO_C" >&6
6321 fi
6322 ac_res=`eval echo '${'$as_ac_Header'}'`
6323                { echo "$as_me:$LINENO: result: $ac_res" >&5
6324 echo "${ECHO_T}$ac_res" >&6; }
6325 else
6326   # Is the header compilable?
6327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h.  */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h.  */
6335 $ac_includes_default
6336 #include <$ac_header>
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (ac_try="$ac_compile"
6340 case "(($ac_try" in
6341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342   *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345   (eval "$ac_compile") 2>conftest.er1
6346   ac_status=$?
6347   grep -v '^ *+' conftest.er1 >conftest.err
6348   rm -f conftest.er1
6349   cat conftest.err >&5
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } && {
6352          test -z "$ac_c_werror_flag" ||
6353          test ! -s conftest.err
6354        } && test -s conftest.$ac_objext; then
6355   ac_header_compiler=yes
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360         ac_header_compiler=no
6361 fi
6362
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6365 echo "${ECHO_T}$ac_header_compiler" >&6; }
6366
6367 # Is the header present?
6368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h.  */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h.  */
6376 #include <$ac_header>
6377 _ACEOF
6378 if { (ac_try="$ac_cpp conftest.$ac_ext"
6379 case "(($ac_try" in
6380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381   *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6385   ac_status=$?
6386   grep -v '^ *+' conftest.er1 >conftest.err
6387   rm -f conftest.er1
6388   cat conftest.err >&5
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); } >/dev/null && {
6391          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6392          test ! -s conftest.err
6393        }; then
6394   ac_header_preproc=yes
6395 else
6396   echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399   ac_header_preproc=no
6400 fi
6401
6402 rm -f conftest.err conftest.$ac_ext
6403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6404 echo "${ECHO_T}$ac_header_preproc" >&6; }
6405
6406 # So?  What about this header?
6407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6408   yes:no: )
6409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6413     ac_header_preproc=yes
6414     ;;
6415   no:yes:* )
6416     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6418     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6419 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6420     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6422     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6423 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6426     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6428
6429     ;;
6430 esac
6431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   eval "$as_ac_Header=\$ac_header_preproc"
6437 fi
6438 ac_res=`eval echo '${'$as_ac_Header'}'`
6439                { echo "$as_me:$LINENO: result: $ac_res" >&5
6440 echo "${ECHO_T}$ac_res" >&6; }
6441
6442 fi
6443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6444   cat >>confdefs.h <<_ACEOF
6445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6446 _ACEOF
6447
6448 fi
6449
6450 done
6451
6452
6453 for ac_func in getpagesize
6454 do
6455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6469 #define $ac_func innocuous_$ac_func
6470
6471 /* System header to define __stub macros and hopefully few prototypes,
6472     which can conflict with char $ac_func (); below.
6473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6474     <limits.h> exists even on freestanding compilers.  */
6475
6476 #ifdef __STDC__
6477 # include <limits.h>
6478 #else
6479 # include <assert.h>
6480 #endif
6481
6482 #undef $ac_func
6483
6484 /* Override any GCC internal prototype to avoid an error.
6485    Use char because int might match the return type of a GCC
6486    builtin and then its argument prototype would still apply.  */
6487 #ifdef __cplusplus
6488 extern "C"
6489 #endif
6490 char $ac_func ();
6491 /* The GNU C library defines this for functions which it implements
6492     to always fail with ENOSYS.  Some functions are actually named
6493     something starting with __ and the normal name is an alias.  */
6494 #if defined __stub_$ac_func || defined __stub___$ac_func
6495 choke me
6496 #endif
6497
6498 int
6499 main ()
6500 {
6501 return $ac_func ();
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (ac_try="$ac_link"
6508 case "(($ac_try" in
6509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510   *) ac_try_echo=$ac_try;;
6511 esac
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513   (eval "$ac_link") 2>conftest.er1
6514   ac_status=$?
6515   grep -v '^ *+' conftest.er1 >conftest.err
6516   rm -f conftest.er1
6517   cat conftest.err >&5
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); } && {
6520          test -z "$ac_c_werror_flag" ||
6521          test ! -s conftest.err
6522        } && test -s conftest$ac_exeext &&
6523        $as_test_x conftest$ac_exeext; then
6524   eval "$as_ac_var=yes"
6525 else
6526   echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6528
6529         eval "$as_ac_var=no"
6530 fi
6531
6532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6533       conftest$ac_exeext conftest.$ac_ext
6534 fi
6535 ac_res=`eval echo '${'$as_ac_var'}'`
6536                { echo "$as_me:$LINENO: result: $ac_res" >&5
6537 echo "${ECHO_T}$ac_res" >&6; }
6538 if test `eval echo '${'$as_ac_var'}'` = yes; then
6539   cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6541 _ACEOF
6542
6543 fi
6544 done
6545
6546 { echo "$as_me:$LINENO: checking for working mmap" >&5
6547 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6548 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   if test "$cross_compiling" = yes; then
6552   ac_cv_func_mmap_fixed_mapped=no
6553 else
6554   cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560 $ac_includes_default
6561 /* malloc might have been renamed as rpl_malloc. */
6562 #undef malloc
6563
6564 /* Thanks to Mike Haertel and Jim Avera for this test.
6565    Here is a matrix of mmap possibilities:
6566         mmap private not fixed
6567         mmap private fixed at somewhere currently unmapped
6568         mmap private fixed at somewhere already mapped
6569         mmap shared not fixed
6570         mmap shared fixed at somewhere currently unmapped
6571         mmap shared fixed at somewhere already mapped
6572    For private mappings, we should verify that changes cannot be read()
6573    back from the file, nor mmap's back from the file at a different
6574    address.  (There have been systems where private was not correctly
6575    implemented like the infamous i386 svr4.0, and systems where the
6576    VM page cache was not coherent with the file system buffer cache
6577    like early versions of FreeBSD and possibly contemporary NetBSD.)
6578    For shared mappings, we should conversely verify that changes get
6579    propagated back to all the places they're supposed to be.
6580
6581    Grep wants private fixed already mapped.
6582    The main things grep needs to know about mmap are:
6583    * does it exist and is it safe to write into the mmap'd area
6584    * how to use it (BSD variants)  */
6585
6586 #include <fcntl.h>
6587 #include <sys/mman.h>
6588
6589 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6590 char *malloc ();
6591 #endif
6592
6593 /* This mess was copied from the GNU getpagesize.h.  */
6594 #ifndef HAVE_GETPAGESIZE
6595 /* Assume that all systems that can run configure have sys/param.h.  */
6596 # ifndef HAVE_SYS_PARAM_H
6597 #  define HAVE_SYS_PARAM_H 1
6598 # endif
6599
6600 # ifdef _SC_PAGESIZE
6601 #  define getpagesize() sysconf(_SC_PAGESIZE)
6602 # else /* no _SC_PAGESIZE */
6603 #  ifdef HAVE_SYS_PARAM_H
6604 #   include <sys/param.h>
6605 #   ifdef EXEC_PAGESIZE
6606 #    define getpagesize() EXEC_PAGESIZE
6607 #   else /* no EXEC_PAGESIZE */
6608 #    ifdef NBPG
6609 #     define getpagesize() NBPG * CLSIZE
6610 #     ifndef CLSIZE
6611 #      define CLSIZE 1
6612 #     endif /* no CLSIZE */
6613 #    else /* no NBPG */
6614 #     ifdef NBPC
6615 #      define getpagesize() NBPC
6616 #     else /* no NBPC */
6617 #      ifdef PAGESIZE
6618 #       define getpagesize() PAGESIZE
6619 #      endif /* PAGESIZE */
6620 #     endif /* no NBPC */
6621 #    endif /* no NBPG */
6622 #   endif /* no EXEC_PAGESIZE */
6623 #  else /* no HAVE_SYS_PARAM_H */
6624 #   define getpagesize() 8192   /* punt totally */
6625 #  endif /* no HAVE_SYS_PARAM_H */
6626 # endif /* no _SC_PAGESIZE */
6627
6628 #endif /* no HAVE_GETPAGESIZE */
6629
6630 int
6631 main ()
6632 {
6633   char *data, *data2, *data3;
6634   int i, pagesize;
6635   int fd;
6636
6637   pagesize = getpagesize ();
6638
6639   /* First, make a file with some known garbage in it. */
6640   data = (char *) malloc (pagesize);
6641   if (!data)
6642     return 1;
6643   for (i = 0; i < pagesize; ++i)
6644     *(data + i) = rand ();
6645   umask (0);
6646   fd = creat ("conftest.mmap", 0600);
6647   if (fd < 0)
6648     return 1;
6649   if (write (fd, data, pagesize) != pagesize)
6650     return 1;
6651   close (fd);
6652
6653   /* Next, try to mmap the file at a fixed address which already has
6654      something else allocated at it.  If we can, also make sure that
6655      we see the same garbage.  */
6656   fd = open ("conftest.mmap", O_RDWR);
6657   if (fd < 0)
6658     return 1;
6659   data2 = (char *) malloc (2 * pagesize);
6660   if (!data2)
6661     return 1;
6662   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6663   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6664                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6665     return 1;
6666   for (i = 0; i < pagesize; ++i)
6667     if (*(data + i) != *(data2 + i))
6668       return 1;
6669
6670   /* Finally, make sure that changes to the mapped area do not
6671      percolate back to the file as seen by read().  (This is a bug on
6672      some variants of i386 svr4.0.)  */
6673   for (i = 0; i < pagesize; ++i)
6674     *(data2 + i) = *(data2 + i) + 1;
6675   data3 = (char *) malloc (pagesize);
6676   if (!data3)
6677     return 1;
6678   if (read (fd, data3, pagesize) != pagesize)
6679     return 1;
6680   for (i = 0; i < pagesize; ++i)
6681     if (*(data + i) != *(data3 + i))
6682       return 1;
6683   close (fd);
6684   return 0;
6685 }
6686 _ACEOF
6687 rm -f conftest$ac_exeext
6688 if { (ac_try="$ac_link"
6689 case "(($ac_try" in
6690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691   *) ac_try_echo=$ac_try;;
6692 esac
6693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6694   (eval "$ac_link") 2>&5
6695   ac_status=$?
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6698   { (case "(($ac_try" in
6699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700   *) ac_try_echo=$ac_try;;
6701 esac
6702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703   (eval "$ac_try") 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); }; }; then
6707   ac_cv_func_mmap_fixed_mapped=yes
6708 else
6709   echo "$as_me: program exited with status $ac_status" >&5
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6712
6713 ( exit $ac_status )
6714 ac_cv_func_mmap_fixed_mapped=no
6715 fi
6716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6717 fi
6718
6719
6720 fi
6721 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6722 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6723 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6724
6725 cat >>confdefs.h <<\_ACEOF
6726 #define HAVE_MMAP 1
6727 _ACEOF
6728
6729 fi
6730 rm -f conftest.mmap
6731
6732
6733     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6734 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6735 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6736   echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738   cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h.  */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h.  */
6744
6745 #include <features.h>
6746 #ifdef __GNU_LIBRARY__
6747  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6748   Lucky GNU user
6749  #endif
6750 #endif
6751
6752 _ACEOF
6753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6754   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6755   ac_cv_gnu_library_2_1=yes
6756 else
6757   ac_cv_gnu_library_2_1=no
6758 fi
6759 rm -f conftest*
6760
6761
6762
6763 fi
6764 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6765 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6766
6767     GLIBC21="$ac_cv_gnu_library_2_1"
6768
6769
6770
6771
6772   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6773 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6774 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6775   echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777
6778       if test "$cross_compiling" = yes; then
6779
6780           # Guess based on the CPU.
6781           case "$host_cpu" in
6782             alpha* | i3456786 | m68k | s390*)
6783               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6784             *)
6785               gt_cv_int_divbyzero_sigfpe="guessing no";;
6786           esac
6787
6788 else
6789   cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795
6796 #include <stdlib.h>
6797 #include <signal.h>
6798
6799 static void
6800 #ifdef __cplusplus
6801 sigfpe_handler (int sig)
6802 #else
6803 sigfpe_handler (sig) int sig;
6804 #endif
6805 {
6806   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6807   exit (sig != SIGFPE);
6808 }
6809
6810 int x = 1;
6811 int y = 0;
6812 int z;
6813 int nan;
6814
6815 int main ()
6816 {
6817   signal (SIGFPE, sigfpe_handler);
6818 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6819 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6820   signal (SIGTRAP, sigfpe_handler);
6821 #endif
6822 /* Linux/SPARC yields signal SIGILL.  */
6823 #if defined (__sparc__) && defined (__linux__)
6824   signal (SIGILL, sigfpe_handler);
6825 #endif
6826
6827   z = x / y;
6828   nan = y / y;
6829   exit (1);
6830 }
6831
6832 _ACEOF
6833 rm -f conftest$ac_exeext
6834 if { (ac_try="$ac_link"
6835 case "(($ac_try" in
6836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837   *) ac_try_echo=$ac_try;;
6838 esac
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840   (eval "$ac_link") 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6844   { (case "(($ac_try" in
6845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846   *) ac_try_echo=$ac_try;;
6847 esac
6848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6849   (eval "$ac_try") 2>&5
6850   ac_status=$?
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); }; }; then
6853   gt_cv_int_divbyzero_sigfpe=yes
6854 else
6855   echo "$as_me: program exited with status $ac_status" >&5
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6858
6859 ( exit $ac_status )
6860 gt_cv_int_divbyzero_sigfpe=no
6861 fi
6862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6863 fi
6864
6865
6866
6867 fi
6868 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6869 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6870   case "$gt_cv_int_divbyzero_sigfpe" in
6871     *yes) value=1;;
6872     *) value=0;;
6873   esac
6874
6875 cat >>confdefs.h <<_ACEOF
6876 #define INTDIV0_RAISES_SIGFPE $value
6877 _ACEOF
6878
6879
6880
6881   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6882 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6883 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6884   echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886   cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h.  */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h.  */
6892 unsigned long long ull = 1ULL; int i = 63;
6893 int
6894 main ()
6895 {
6896 unsigned long long ullmax = (unsigned long long) -1;
6897      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6898   ;
6899   return 0;
6900 }
6901 _ACEOF
6902 rm -f conftest.$ac_objext conftest$ac_exeext
6903 if { (ac_try="$ac_link"
6904 case "(($ac_try" in
6905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906   *) ac_try_echo=$ac_try;;
6907 esac
6908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909   (eval "$ac_link") 2>conftest.er1
6910   ac_status=$?
6911   grep -v '^ *+' conftest.er1 >conftest.err
6912   rm -f conftest.er1
6913   cat conftest.err >&5
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); } && {
6916          test -z "$ac_c_werror_flag" ||
6917          test ! -s conftest.err
6918        } && test -s conftest$ac_exeext &&
6919        $as_test_x conftest$ac_exeext; then
6920   ac_cv_type_unsigned_long_long=yes
6921 else
6922   echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6924
6925         ac_cv_type_unsigned_long_long=no
6926 fi
6927
6928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6929       conftest$ac_exeext conftest.$ac_ext
6930 fi
6931 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6932 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6933   if test $ac_cv_type_unsigned_long_long = yes; then
6934
6935 cat >>confdefs.h <<\_ACEOF
6936 #define HAVE_UNSIGNED_LONG_LONG 1
6937 _ACEOF
6938
6939   fi
6940
6941
6942
6943
6944   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6945
6946     test $ac_cv_type_unsigned_long_long = yes \
6947       && ac_type='unsigned long long' \
6948       || ac_type='unsigned long'
6949
6950 cat >>confdefs.h <<_ACEOF
6951 #define uintmax_t $ac_type
6952 _ACEOF
6953
6954   else
6955
6956 cat >>confdefs.h <<\_ACEOF
6957 #define HAVE_UINTMAX_T 1
6958 _ACEOF
6959
6960   fi
6961
6962
6963   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6964 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6965 if test "${gt_cv_header_inttypes_h+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968
6969     cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h.  */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h.  */
6975 #include <sys/types.h>
6976 #include <inttypes.h>
6977 int
6978 main ()
6979 {
6980
6981   ;
6982   return 0;
6983 }
6984 _ACEOF
6985 rm -f conftest.$ac_objext
6986 if { (ac_try="$ac_compile"
6987 case "(($ac_try" in
6988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989   *) ac_try_echo=$ac_try;;
6990 esac
6991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6992   (eval "$ac_compile") 2>conftest.er1
6993   ac_status=$?
6994   grep -v '^ *+' conftest.er1 >conftest.err
6995   rm -f conftest.er1
6996   cat conftest.err >&5
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); } && {
6999          test -z "$ac_c_werror_flag" ||
7000          test ! -s conftest.err
7001        } && test -s conftest.$ac_objext; then
7002   gt_cv_header_inttypes_h=yes
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007         gt_cv_header_inttypes_h=no
7008 fi
7009
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011
7012 fi
7013 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7014 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7015   if test $gt_cv_header_inttypes_h = yes; then
7016
7017 cat >>confdefs.h <<_ACEOF
7018 #define HAVE_INTTYPES_H 1
7019 _ACEOF
7020
7021   fi
7022
7023
7024
7025   if test $gt_cv_header_inttypes_h = yes; then
7026     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7027 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7028 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031
7032         cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h.  */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h.  */
7038 #include <inttypes.h>
7039 #ifdef PRId32
7040 char *p = PRId32;
7041 #endif
7042
7043 int
7044 main ()
7045 {
7046
7047   ;
7048   return 0;
7049 }
7050 _ACEOF
7051 rm -f conftest.$ac_objext
7052 if { (ac_try="$ac_compile"
7053 case "(($ac_try" in
7054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055   *) ac_try_echo=$ac_try;;
7056 esac
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058   (eval "$ac_compile") 2>conftest.er1
7059   ac_status=$?
7060   grep -v '^ *+' conftest.er1 >conftest.err
7061   rm -f conftest.er1
7062   cat conftest.err >&5
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } && {
7065          test -z "$ac_c_werror_flag" ||
7066          test ! -s conftest.err
7067        } && test -s conftest.$ac_objext; then
7068   gt_cv_inttypes_pri_broken=no
7069 else
7070   echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7072
7073         gt_cv_inttypes_pri_broken=yes
7074 fi
7075
7076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077
7078 fi
7079 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7080 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7081   fi
7082   if test "$gt_cv_inttypes_pri_broken" = yes; then
7083
7084 cat >>confdefs.h <<_ACEOF
7085 #define PRI_MACROS_BROKEN 1
7086 _ACEOF
7087
7088   fi
7089
7090
7091
7092 for ac_header in stdint.h
7093 do
7094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7096   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 fi
7101 ac_res=`eval echo '${'$as_ac_Header'}'`
7102                { echo "$as_me:$LINENO: result: $ac_res" >&5
7103 echo "${ECHO_T}$ac_res" >&6; }
7104 else
7105   # Is the header compilable?
7106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7108 cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h.  */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h.  */
7114 $ac_includes_default
7115 #include <$ac_header>
7116 _ACEOF
7117 rm -f conftest.$ac_objext
7118 if { (ac_try="$ac_compile"
7119 case "(($ac_try" in
7120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121   *) ac_try_echo=$ac_try;;
7122 esac
7123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124   (eval "$ac_compile") 2>conftest.er1
7125   ac_status=$?
7126   grep -v '^ *+' conftest.er1 >conftest.err
7127   rm -f conftest.er1
7128   cat conftest.err >&5
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); } && {
7131          test -z "$ac_c_werror_flag" ||
7132          test ! -s conftest.err
7133        } && test -s conftest.$ac_objext; then
7134   ac_header_compiler=yes
7135 else
7136   echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7138
7139         ac_header_compiler=no
7140 fi
7141
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7144 echo "${ECHO_T}$ac_header_compiler" >&6; }
7145
7146 # Is the header present?
7147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h.  */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h.  */
7155 #include <$ac_header>
7156 _ACEOF
7157 if { (ac_try="$ac_cpp conftest.$ac_ext"
7158 case "(($ac_try" in
7159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160   *) ac_try_echo=$ac_try;;
7161 esac
7162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7164   ac_status=$?
7165   grep -v '^ *+' conftest.er1 >conftest.err
7166   rm -f conftest.er1
7167   cat conftest.err >&5
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); } >/dev/null && {
7170          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7171          test ! -s conftest.err
7172        }; then
7173   ac_header_preproc=yes
7174 else
7175   echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7177
7178   ac_header_preproc=no
7179 fi
7180
7181 rm -f conftest.err conftest.$ac_ext
7182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7183 echo "${ECHO_T}$ac_header_preproc" >&6; }
7184
7185 # So?  What about this header?
7186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7187   yes:no: )
7188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7192     ac_header_preproc=yes
7193     ;;
7194   no:yes:* )
7195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7197     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7198 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7199     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7201     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7202 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7205     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7207
7208     ;;
7209 esac
7210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215   eval "$as_ac_Header=\$ac_header_preproc"
7216 fi
7217 ac_res=`eval echo '${'$as_ac_Header'}'`
7218                { echo "$as_me:$LINENO: result: $ac_res" >&5
7219 echo "${ECHO_T}$ac_res" >&6; }
7220
7221 fi
7222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7223   cat >>confdefs.h <<_ACEOF
7224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7225 _ACEOF
7226
7227 fi
7228
7229 done
7230
7231     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7232 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7233   result=
7234   cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h.  */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h.  */
7240
7241 #include <limits.h>
7242 #if HAVE_STDINT_H
7243 #include <stdint.h>
7244 #endif
7245 #ifdef SIZE_MAX
7246 Found it
7247 #endif
7248
7249 _ACEOF
7250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251   $EGREP "Found it" >/dev/null 2>&1; then
7252   result=yes
7253 fi
7254 rm -f conftest*
7255
7256   if test -z "$result"; then
7257                     if test "$cross_compiling" = yes; then
7258   # Depending upon the size, compute the lo and hi bounds.
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h.  */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h.  */
7265 #include <stddef.h>
7266 int
7267 main ()
7268 {
7269 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7270 test_array [0] = 0
7271
7272   ;
7273   return 0;
7274 }
7275 _ACEOF
7276 rm -f conftest.$ac_objext
7277 if { (ac_try="$ac_compile"
7278 case "(($ac_try" in
7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280   *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283   (eval "$ac_compile") 2>conftest.er1
7284   ac_status=$?
7285   grep -v '^ *+' conftest.er1 >conftest.err
7286   rm -f conftest.er1
7287   cat conftest.err >&5
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); } && {
7290          test -z "$ac_c_werror_flag" ||
7291          test ! -s conftest.err
7292        } && test -s conftest.$ac_objext; then
7293   ac_lo=0 ac_mid=0
7294   while :; do
7295     cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h.  */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h.  */
7301 #include <stddef.h>
7302 int
7303 main ()
7304 {
7305 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7306 test_array [0] = 0
7307
7308   ;
7309   return 0;
7310 }
7311 _ACEOF
7312 rm -f conftest.$ac_objext
7313 if { (ac_try="$ac_compile"
7314 case "(($ac_try" in
7315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316   *) ac_try_echo=$ac_try;;
7317 esac
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319   (eval "$ac_compile") 2>conftest.er1
7320   ac_status=$?
7321   grep -v '^ *+' conftest.er1 >conftest.err
7322   rm -f conftest.er1
7323   cat conftest.err >&5
7324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325   (exit $ac_status); } && {
7326          test -z "$ac_c_werror_flag" ||
7327          test ! -s conftest.err
7328        } && test -s conftest.$ac_objext; then
7329   ac_hi=$ac_mid; break
7330 else
7331   echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7333
7334         ac_lo=`expr $ac_mid + 1`
7335                         if test $ac_lo -le $ac_mid; then
7336                           ac_lo= ac_hi=
7337                           break
7338                         fi
7339                         ac_mid=`expr 2 '*' $ac_mid + 1`
7340 fi
7341
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343   done
7344 else
7345   echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7347
7348         cat >conftest.$ac_ext <<_ACEOF
7349 /* confdefs.h.  */
7350 _ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h.  */
7354 #include <stddef.h>
7355 int
7356 main ()
7357 {
7358 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7359 test_array [0] = 0
7360
7361   ;
7362   return 0;
7363 }
7364 _ACEOF
7365 rm -f conftest.$ac_objext
7366 if { (ac_try="$ac_compile"
7367 case "(($ac_try" in
7368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369   *) ac_try_echo=$ac_try;;
7370 esac
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372   (eval "$ac_compile") 2>conftest.er1
7373   ac_status=$?
7374   grep -v '^ *+' conftest.er1 >conftest.err
7375   rm -f conftest.er1
7376   cat conftest.err >&5
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); } && {
7379          test -z "$ac_c_werror_flag" ||
7380          test ! -s conftest.err
7381        } && test -s conftest.$ac_objext; then
7382   ac_hi=-1 ac_mid=-1
7383   while :; do
7384     cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h.  */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h.  */
7390 #include <stddef.h>
7391 int
7392 main ()
7393 {
7394 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7395 test_array [0] = 0
7396
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (ac_try="$ac_compile"
7403 case "(($ac_try" in
7404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405   *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408   (eval "$ac_compile") 2>conftest.er1
7409   ac_status=$?
7410   grep -v '^ *+' conftest.er1 >conftest.err
7411   rm -f conftest.er1
7412   cat conftest.err >&5
7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); } && {
7415          test -z "$ac_c_werror_flag" ||
7416          test ! -s conftest.err
7417        } && test -s conftest.$ac_objext; then
7418   ac_lo=$ac_mid; break
7419 else
7420   echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423         ac_hi=`expr '(' $ac_mid ')' - 1`
7424                         if test $ac_mid -le $ac_hi; then
7425                           ac_lo= ac_hi=
7426                           break
7427                         fi
7428                         ac_mid=`expr 2 '*' $ac_mid`
7429 fi
7430
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432   done
7433 else
7434   echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7436
7437         ac_lo= ac_hi=
7438 fi
7439
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 fi
7442
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 # Binary search between lo and hi bounds.
7445 while test "x$ac_lo" != "x$ac_hi"; do
7446   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7447   cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h.  */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h.  */
7453 #include <stddef.h>
7454 int
7455 main ()
7456 {
7457 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7458 test_array [0] = 0
7459
7460   ;
7461   return 0;
7462 }
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (ac_try="$ac_compile"
7466 case "(($ac_try" in
7467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468   *) ac_try_echo=$ac_try;;
7469 esac
7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471   (eval "$ac_compile") 2>conftest.er1
7472   ac_status=$?
7473   grep -v '^ *+' conftest.er1 >conftest.err
7474   rm -f conftest.er1
7475   cat conftest.err >&5
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); } && {
7478          test -z "$ac_c_werror_flag" ||
7479          test ! -s conftest.err
7480        } && test -s conftest.$ac_objext; then
7481   ac_hi=$ac_mid
7482 else
7483   echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7485
7486         ac_lo=`expr '(' $ac_mid ')' + 1`
7487 fi
7488
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 done
7491 case $ac_lo in
7492 ?*) res_hi=$ac_lo;;
7493 '') result=? ;;
7494 esac
7495 else
7496   cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h.  */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h.  */
7502 #include <stddef.h>
7503 static long int longval () { return ~(size_t)0 / 10; }
7504 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7505 #include <stdio.h>
7506 #include <stdlib.h>
7507 int
7508 main ()
7509 {
7510
7511   FILE *f = fopen ("conftest.val", "w");
7512   if (! f)
7513     return 1;
7514   if ((~(size_t)0 / 10) < 0)
7515     {
7516       long int i = longval ();
7517       if (i != (~(size_t)0 / 10))
7518         return 1;
7519       fprintf (f, "%ld\n", i);
7520     }
7521   else
7522     {
7523       unsigned long int i = ulongval ();
7524       if (i != (~(size_t)0 / 10))
7525         return 1;
7526       fprintf (f, "%lu\n", i);
7527     }
7528   return ferror (f) || fclose (f) != 0;
7529
7530   ;
7531   return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest$ac_exeext
7535 if { (ac_try="$ac_link"
7536 case "(($ac_try" in
7537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538   *) ac_try_echo=$ac_try;;
7539 esac
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541   (eval "$ac_link") 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7545   { (case "(($ac_try" in
7546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547   *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550   (eval "$ac_try") 2>&5
7551   ac_status=$?
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); }; }; then
7554   res_hi=`cat conftest.val`
7555 else
7556   echo "$as_me: program exited with status $ac_status" >&5
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 ( exit $ac_status )
7561 result=?
7562 fi
7563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7564 fi
7565 rm -f conftest.val
7566
7567     if test "$cross_compiling" = yes; then
7568   # Depending upon the size, compute the lo and hi bounds.
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h.  */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h.  */
7575 #include <stddef.h>
7576 int
7577 main ()
7578 {
7579 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7580 test_array [0] = 0
7581
7582   ;
7583   return 0;
7584 }
7585 _ACEOF
7586 rm -f conftest.$ac_objext
7587 if { (ac_try="$ac_compile"
7588 case "(($ac_try" in
7589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590   *) ac_try_echo=$ac_try;;
7591 esac
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593   (eval "$ac_compile") 2>conftest.er1
7594   ac_status=$?
7595   grep -v '^ *+' conftest.er1 >conftest.err
7596   rm -f conftest.er1
7597   cat conftest.err >&5
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); } && {
7600          test -z "$ac_c_werror_flag" ||
7601          test ! -s conftest.err
7602        } && test -s conftest.$ac_objext; then
7603   ac_lo=0 ac_mid=0
7604   while :; do
7605     cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h.  */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h.  */
7611 #include <stddef.h>
7612 int
7613 main ()
7614 {
7615 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7616 test_array [0] = 0
7617
7618   ;
7619   return 0;
7620 }
7621 _ACEOF
7622 rm -f conftest.$ac_objext
7623 if { (ac_try="$ac_compile"
7624 case "(($ac_try" in
7625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626   *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629   (eval "$ac_compile") 2>conftest.er1
7630   ac_status=$?
7631   grep -v '^ *+' conftest.er1 >conftest.err
7632   rm -f conftest.er1
7633   cat conftest.err >&5
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); } && {
7636          test -z "$ac_c_werror_flag" ||
7637          test ! -s conftest.err
7638        } && test -s conftest.$ac_objext; then
7639   ac_hi=$ac_mid; break
7640 else
7641   echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644         ac_lo=`expr $ac_mid + 1`
7645                         if test $ac_lo -le $ac_mid; then
7646                           ac_lo= ac_hi=
7647                           break
7648                         fi
7649                         ac_mid=`expr 2 '*' $ac_mid + 1`
7650 fi
7651
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653   done
7654 else
7655   echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7657
7658         cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h.  */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h.  */
7664 #include <stddef.h>
7665 int
7666 main ()
7667 {
7668 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7669 test_array [0] = 0
7670
7671   ;
7672   return 0;
7673 }
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (ac_try="$ac_compile"
7677 case "(($ac_try" in
7678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679   *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682   (eval "$ac_compile") 2>conftest.er1
7683   ac_status=$?
7684   grep -v '^ *+' conftest.er1 >conftest.err
7685   rm -f conftest.er1
7686   cat conftest.err >&5
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); } && {
7689          test -z "$ac_c_werror_flag" ||
7690          test ! -s conftest.err
7691        } && test -s conftest.$ac_objext; then
7692   ac_hi=-1 ac_mid=-1
7693   while :; do
7694     cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h.  */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h.  */
7700 #include <stddef.h>
7701 int
7702 main ()
7703 {
7704 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7705 test_array [0] = 0
7706
7707   ;
7708   return 0;
7709 }
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (ac_try="$ac_compile"
7713 case "(($ac_try" in
7714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715   *) ac_try_echo=$ac_try;;
7716 esac
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718   (eval "$ac_compile") 2>conftest.er1
7719   ac_status=$?
7720   grep -v '^ *+' conftest.er1 >conftest.err
7721   rm -f conftest.er1
7722   cat conftest.err >&5
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); } && {
7725          test -z "$ac_c_werror_flag" ||
7726          test ! -s conftest.err
7727        } && test -s conftest.$ac_objext; then
7728   ac_lo=$ac_mid; break
7729 else
7730   echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7732
7733         ac_hi=`expr '(' $ac_mid ')' - 1`
7734                         if test $ac_mid -le $ac_hi; then
7735                           ac_lo= ac_hi=
7736                           break
7737                         fi
7738                         ac_mid=`expr 2 '*' $ac_mid`
7739 fi
7740
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742   done
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747         ac_lo= ac_hi=
7748 fi
7749
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 fi
7752
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 # Binary search between lo and hi bounds.
7755 while test "x$ac_lo" != "x$ac_hi"; do
7756   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7757   cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h.  */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h.  */
7763 #include <stddef.h>
7764 int
7765 main ()
7766 {
7767 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7768 test_array [0] = 0
7769
7770   ;
7771   return 0;
7772 }
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7776 case "(($ac_try" in
7777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778   *) ac_try_echo=$ac_try;;
7779 esac
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781   (eval "$ac_compile") 2>conftest.er1
7782   ac_status=$?
7783   grep -v '^ *+' conftest.er1 >conftest.err
7784   rm -f conftest.er1
7785   cat conftest.err >&5
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); } && {
7788          test -z "$ac_c_werror_flag" ||
7789          test ! -s conftest.err
7790        } && test -s conftest.$ac_objext; then
7791   ac_hi=$ac_mid
7792 else
7793   echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796         ac_lo=`expr '(' $ac_mid ')' + 1`
7797 fi
7798
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 done
7801 case $ac_lo in
7802 ?*) res_lo=$ac_lo;;
7803 '') result=? ;;
7804 esac
7805 else
7806   cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h.  */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h.  */
7812 #include <stddef.h>
7813 static long int longval () { return ~(size_t)0 % 10; }
7814 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7815 #include <stdio.h>
7816 #include <stdlib.h>
7817 int
7818 main ()
7819 {
7820
7821   FILE *f = fopen ("conftest.val", "w");
7822   if (! f)
7823     return 1;
7824   if ((~(size_t)0 % 10) < 0)
7825     {
7826       long int i = longval ();
7827       if (i != (~(size_t)0 % 10))
7828         return 1;
7829       fprintf (f, "%ld\n", i);
7830     }
7831   else
7832     {
7833       unsigned long int i = ulongval ();
7834       if (i != (~(size_t)0 % 10))
7835         return 1;
7836       fprintf (f, "%lu\n", i);
7837     }
7838   return ferror (f) || fclose (f) != 0;
7839
7840   ;
7841   return 0;
7842 }
7843 _ACEOF
7844 rm -f conftest$ac_exeext
7845 if { (ac_try="$ac_link"
7846 case "(($ac_try" in
7847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848   *) ac_try_echo=$ac_try;;
7849 esac
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851   (eval "$ac_link") 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7855   { (case "(($ac_try" in
7856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857   *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860   (eval "$ac_try") 2>&5
7861   ac_status=$?
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); }; }; then
7864   res_lo=`cat conftest.val`
7865 else
7866   echo "$as_me: program exited with status $ac_status" >&5
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 ( exit $ac_status )
7871 result=?
7872 fi
7873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7874 fi
7875 rm -f conftest.val
7876
7877     if test "$cross_compiling" = yes; then
7878   # Depending upon the size, compute the lo and hi bounds.
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885 #include <stddef.h>
7886 int
7887 main ()
7888 {
7889 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7890 test_array [0] = 0
7891
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7898 case "(($ac_try" in
7899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900   *) ac_try_echo=$ac_try;;
7901 esac
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903   (eval "$ac_compile") 2>conftest.er1
7904   ac_status=$?
7905   grep -v '^ *+' conftest.er1 >conftest.err
7906   rm -f conftest.er1
7907   cat conftest.err >&5
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } && {
7910          test -z "$ac_c_werror_flag" ||
7911          test ! -s conftest.err
7912        } && test -s conftest.$ac_objext; then
7913   ac_lo=0 ac_mid=0
7914   while :; do
7915     cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h.  */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h.  */
7921 #include <stddef.h>
7922 int
7923 main ()
7924 {
7925 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7926 test_array [0] = 0
7927
7928   ;
7929   return 0;
7930 }
7931 _ACEOF
7932 rm -f conftest.$ac_objext
7933 if { (ac_try="$ac_compile"
7934 case "(($ac_try" in
7935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936   *) ac_try_echo=$ac_try;;
7937 esac
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939   (eval "$ac_compile") 2>conftest.er1
7940   ac_status=$?
7941   grep -v '^ *+' conftest.er1 >conftest.err
7942   rm -f conftest.er1
7943   cat conftest.err >&5
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } && {
7946          test -z "$ac_c_werror_flag" ||
7947          test ! -s conftest.err
7948        } && test -s conftest.$ac_objext; then
7949   ac_hi=$ac_mid; break
7950 else
7951   echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954         ac_lo=`expr $ac_mid + 1`
7955                         if test $ac_lo -le $ac_mid; then
7956                           ac_lo= ac_hi=
7957                           break
7958                         fi
7959                         ac_mid=`expr 2 '*' $ac_mid + 1`
7960 fi
7961
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963   done
7964 else
7965   echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7967
7968         cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974 #include <stddef.h>
7975 int
7976 main ()
7977 {
7978 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7979 test_array [0] = 0
7980
7981   ;
7982   return 0;
7983 }
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7987 case "(($ac_try" in
7988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989   *) ac_try_echo=$ac_try;;
7990 esac
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992   (eval "$ac_compile") 2>conftest.er1
7993   ac_status=$?
7994   grep -v '^ *+' conftest.er1 >conftest.err
7995   rm -f conftest.er1
7996   cat conftest.err >&5
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); } && {
7999          test -z "$ac_c_werror_flag" ||
8000          test ! -s conftest.err
8001        } && test -s conftest.$ac_objext; then
8002   ac_hi=-1 ac_mid=-1
8003   while :; do
8004     cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h.  */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h.  */
8010 #include <stddef.h>
8011 int
8012 main ()
8013 {
8014 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8015 test_array [0] = 0
8016
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8023 case "(($ac_try" in
8024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025   *) ac_try_echo=$ac_try;;
8026 esac
8027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028   (eval "$ac_compile") 2>conftest.er1
8029   ac_status=$?
8030   grep -v '^ *+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } && {
8035          test -z "$ac_c_werror_flag" ||
8036          test ! -s conftest.err
8037        } && test -s conftest.$ac_objext; then
8038   ac_lo=$ac_mid; break
8039 else
8040   echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043         ac_hi=`expr '(' $ac_mid ')' - 1`
8044                         if test $ac_mid -le $ac_hi; then
8045                           ac_lo= ac_hi=
8046                           break
8047                         fi
8048                         ac_mid=`expr 2 '*' $ac_mid`
8049 fi
8050
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052   done
8053 else
8054   echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057         ac_lo= ac_hi=
8058 fi
8059
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 fi
8062
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 # Binary search between lo and hi bounds.
8065 while test "x$ac_lo" != "x$ac_hi"; do
8066   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8067   cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 #include <stddef.h>
8074 int
8075 main ()
8076 {
8077 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8078 test_array [0] = 0
8079
8080   ;
8081   return 0;
8082 }
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (ac_try="$ac_compile"
8086 case "(($ac_try" in
8087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088   *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091   (eval "$ac_compile") 2>conftest.er1
8092   ac_status=$?
8093   grep -v '^ *+' conftest.er1 >conftest.err
8094   rm -f conftest.er1
8095   cat conftest.err >&5
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); } && {
8098          test -z "$ac_c_werror_flag" ||
8099          test ! -s conftest.err
8100        } && test -s conftest.$ac_objext; then
8101   ac_hi=$ac_mid
8102 else
8103   echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106         ac_lo=`expr '(' $ac_mid ')' + 1`
8107 fi
8108
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 done
8111 case $ac_lo in
8112 ?*) fits_in_uint=$ac_lo;;
8113 '') result=? ;;
8114 esac
8115 else
8116   cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 #include <stddef.h>
8123 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8124 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8125 #include <stdio.h>
8126 #include <stdlib.h>
8127 int
8128 main ()
8129 {
8130
8131   FILE *f = fopen ("conftest.val", "w");
8132   if (! f)
8133     return 1;
8134   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8135     {
8136       long int i = longval ();
8137       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8138         return 1;
8139       fprintf (f, "%ld\n", i);
8140     }
8141   else
8142     {
8143       unsigned long int i = ulongval ();
8144       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8145         return 1;
8146       fprintf (f, "%lu\n", i);
8147     }
8148   return ferror (f) || fclose (f) != 0;
8149
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8156 case "(($ac_try" in
8157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158   *) ac_try_echo=$ac_try;;
8159 esac
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161   (eval "$ac_link") 2>&5
8162   ac_status=$?
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8165   { (case "(($ac_try" in
8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167   *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170   (eval "$ac_try") 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   fits_in_uint=`cat conftest.val`
8175 else
8176   echo "$as_me: program exited with status $ac_status" >&5
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180 ( exit $ac_status )
8181 result=?
8182 fi
8183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8184 fi
8185 rm -f conftest.val
8186
8187     if test "$fits_in_uint" = 1; then
8188                   cat >conftest.$ac_ext <<_ACEOF
8189 /* confdefs.h.  */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h.  */
8194 #include <stddef.h>
8195         extern size_t foo;
8196         extern unsigned long foo;
8197
8198 int
8199 main ()
8200 {
8201
8202   ;
8203   return 0;
8204 }
8205 _ACEOF
8206 rm -f conftest.$ac_objext
8207 if { (ac_try="$ac_compile"
8208 case "(($ac_try" in
8209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210   *) ac_try_echo=$ac_try;;
8211 esac
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213   (eval "$ac_compile") 2>conftest.er1
8214   ac_status=$?
8215   grep -v '^ *+' conftest.er1 >conftest.err
8216   rm -f conftest.er1
8217   cat conftest.err >&5
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } && {
8220          test -z "$ac_c_werror_flag" ||
8221          test ! -s conftest.err
8222        } && test -s conftest.$ac_objext; then
8223   fits_in_uint=0
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228
8229 fi
8230
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232     fi
8233     if test -z "$result"; then
8234       if test "$fits_in_uint" = 1; then
8235         result="$res_hi$res_lo"U
8236       else
8237         result="$res_hi$res_lo"UL
8238       fi
8239     else
8240             result='~(size_t)0'
8241     fi
8242   fi
8243   { echo "$as_me:$LINENO: result: $result" >&5
8244 echo "${ECHO_T}$result" >&6; }
8245   if test "$result" != yes; then
8246
8247 cat >>confdefs.h <<_ACEOF
8248 #define SIZE_MAX $result
8249 _ACEOF
8250
8251   fi
8252
8253
8254
8255
8256 for ac_header in stdint.h
8257 do
8258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 fi
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266                { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8268 else
8269   # Is the header compilable?
8270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 $ac_includes_default
8279 #include <$ac_header>
8280 _ACEOF
8281 rm -f conftest.$ac_objext
8282 if { (ac_try="$ac_compile"
8283 case "(($ac_try" in
8284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285   *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288   (eval "$ac_compile") 2>conftest.er1
8289   ac_status=$?
8290   grep -v '^ *+' conftest.er1 >conftest.err
8291   rm -f conftest.er1
8292   cat conftest.err >&5
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); } && {
8295          test -z "$ac_c_werror_flag" ||
8296          test ! -s conftest.err
8297        } && test -s conftest.$ac_objext; then
8298   ac_header_compiler=yes
8299 else
8300   echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303         ac_header_compiler=no
8304 fi
8305
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8308 echo "${ECHO_T}$ac_header_compiler" >&6; }
8309
8310 # Is the header present?
8311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h.  */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h.  */
8319 #include <$ac_header>
8320 _ACEOF
8321 if { (ac_try="$ac_cpp conftest.$ac_ext"
8322 case "(($ac_try" in
8323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324   *) ac_try_echo=$ac_try;;
8325 esac
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8328   ac_status=$?
8329   grep -v '^ *+' conftest.er1 >conftest.err
8330   rm -f conftest.er1
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); } >/dev/null && {
8334          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8335          test ! -s conftest.err
8336        }; then
8337   ac_header_preproc=yes
8338 else
8339   echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8341
8342   ac_header_preproc=no
8343 fi
8344
8345 rm -f conftest.err conftest.$ac_ext
8346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8347 echo "${ECHO_T}$ac_header_preproc" >&6; }
8348
8349 # So?  What about this header?
8350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8351   yes:no: )
8352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8356     ac_header_preproc=yes
8357     ;;
8358   no:yes:* )
8359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8371
8372     ;;
8373 esac
8374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   eval "$as_ac_Header=\$ac_header_preproc"
8380 fi
8381 ac_res=`eval echo '${'$as_ac_Header'}'`
8382                { echo "$as_me:$LINENO: result: $ac_res" >&5
8383 echo "${ECHO_T}$ac_res" >&6; }
8384
8385 fi
8386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8387   cat >>confdefs.h <<_ACEOF
8388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8389 _ACEOF
8390
8391 fi
8392
8393 done
8394
8395
8396
8397       if test "X$prefix" = "XNONE"; then
8398     acl_final_prefix="$ac_default_prefix"
8399   else
8400     acl_final_prefix="$prefix"
8401   fi
8402   if test "X$exec_prefix" = "XNONE"; then
8403     acl_final_exec_prefix='${prefix}'
8404   else
8405     acl_final_exec_prefix="$exec_prefix"
8406   fi
8407   acl_save_prefix="$prefix"
8408   prefix="$acl_final_prefix"
8409   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8410   prefix="$acl_save_prefix"
8411
8412
8413 # Check whether --with-gnu-ld was given.
8414 if test "${with_gnu_ld+set}" = set; then
8415   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8416 else
8417   with_gnu_ld=no
8418 fi
8419
8420 # Prepare PATH_SEPARATOR.
8421 # The user is always right.
8422 if test "${PATH_SEPARATOR+set}" != set; then
8423   echo "#! /bin/sh" >conf$$.sh
8424   echo  "exit 0"   >>conf$$.sh
8425   chmod +x conf$$.sh
8426   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8427     PATH_SEPARATOR=';'
8428   else
8429     PATH_SEPARATOR=:
8430   fi
8431   rm -f conf$$.sh
8432 fi
8433 ac_prog=ld
8434 if test "$GCC" = yes; then
8435   # Check if gcc -print-prog-name=ld gives a path.
8436   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8437 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8438   case $host in
8439   *-*-mingw*)
8440     # gcc leaves a trailing carriage return which upsets mingw
8441     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8442   *)
8443     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8444   esac
8445   case $ac_prog in
8446     # Accept absolute paths.
8447     [\\/]* | [A-Za-z]:[\\/]*)
8448       re_direlt='/[^/][^/]*/\.\./'
8449       # Canonicalize the path of ld
8450       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8451       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8452         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8453       done
8454       test -z "$LD" && LD="$ac_prog"
8455       ;;
8456   "")
8457     # If it fails, then pretend we aren't using GCC.
8458     ac_prog=ld
8459     ;;
8460   *)
8461     # If it is relative, then search for the first ld in PATH.
8462     with_gnu_ld=unknown
8463     ;;
8464   esac
8465 elif test "$with_gnu_ld" = yes; then
8466   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8467 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8468 else
8469   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8470 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8471 fi
8472 if test "${acl_cv_path_LD+set}" = set; then
8473   echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475   if test -z "$LD"; then
8476   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8477   for ac_dir in $PATH; do
8478     test -z "$ac_dir" && ac_dir=.
8479     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8480       acl_cv_path_LD="$ac_dir/$ac_prog"
8481       # Check to see if the program is GNU ld.  I'd rather use --version,
8482       # but apparently some GNU ld's only accept -v.
8483       # Break only if it was the GNU/non-GNU ld that we prefer.
8484       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8485       *GNU* | *'with BFD'*)
8486         test "$with_gnu_ld" != no && break ;;
8487       *)
8488         test "$with_gnu_ld" != yes && break ;;
8489       esac
8490     fi
8491   done
8492   IFS="$ac_save_ifs"
8493 else
8494   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8495 fi
8496 fi
8497
8498 LD="$acl_cv_path_LD"
8499 if test -n "$LD"; then
8500   { echo "$as_me:$LINENO: result: $LD" >&5
8501 echo "${ECHO_T}$LD" >&6; }
8502 else
8503   { echo "$as_me:$LINENO: result: no" >&5
8504 echo "${ECHO_T}no" >&6; }
8505 fi
8506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8508    { (exit 1); exit 1; }; }
8509 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8512   echo $ECHO_N "(cached) $ECHO_C" >&6
8513 else
8514   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8515 case `$LD -v 2>&1 </dev/null` in
8516 *GNU* | *'with BFD'*)
8517   acl_cv_prog_gnu_ld=yes ;;
8518 *)
8519   acl_cv_prog_gnu_ld=no ;;
8520 esac
8521 fi
8522 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8523 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8524 with_gnu_ld=$acl_cv_prog_gnu_ld
8525
8526
8527
8528                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8529 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8530 if test "${acl_cv_rpath+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533
8534     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8535     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8536     . ./conftest.sh
8537     rm -f ./conftest.sh
8538     acl_cv_rpath=done
8539
8540 fi
8541 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8542 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8543   wl="$acl_cv_wl"
8544   libext="$acl_cv_libext"
8545   shlibext="$acl_cv_shlibext"
8546   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8547   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8548   hardcode_direct="$acl_cv_hardcode_direct"
8549   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8550     # Check whether --enable-rpath was given.
8551 if test "${enable_rpath+set}" = set; then
8552   enableval=$enable_rpath; :
8553 else
8554   enable_rpath=yes
8555 fi
8556
8557
8558
8559
8560
8561
8562
8563
8564     use_additional=yes
8565
8566   acl_save_prefix="$prefix"
8567   prefix="$acl_final_prefix"
8568   acl_save_exec_prefix="$exec_prefix"
8569   exec_prefix="$acl_final_exec_prefix"
8570
8571     eval additional_includedir=\"$includedir\"
8572     eval additional_libdir=\"$libdir\"
8573
8574   exec_prefix="$acl_save_exec_prefix"
8575   prefix="$acl_save_prefix"
8576
8577
8578 # Check whether --with-libiconv-prefix was given.
8579 if test "${with_libiconv_prefix+set}" = set; then
8580   withval=$with_libiconv_prefix;
8581     if test "X$withval" = "Xno"; then
8582       use_additional=no
8583     else
8584       if test "X$withval" = "X"; then
8585
8586   acl_save_prefix="$prefix"
8587   prefix="$acl_final_prefix"
8588   acl_save_exec_prefix="$exec_prefix"
8589   exec_prefix="$acl_final_exec_prefix"
8590
8591           eval additional_includedir=\"$includedir\"
8592           eval additional_libdir=\"$libdir\"
8593
8594   exec_prefix="$acl_save_exec_prefix"
8595   prefix="$acl_save_prefix"
8596
8597       else
8598         additional_includedir="$withval/include"
8599         additional_libdir="$withval/lib"
8600       fi
8601     fi
8602
8603 fi
8604
8605       LIBICONV=
8606   LTLIBICONV=
8607   INCICONV=
8608   rpathdirs=
8609   ltrpathdirs=
8610   names_already_handled=
8611   names_next_round='iconv '
8612   while test -n "$names_next_round"; do
8613     names_this_round="$names_next_round"
8614     names_next_round=
8615     for name in $names_this_round; do
8616       already_handled=
8617       for n in $names_already_handled; do
8618         if test "$n" = "$name"; then
8619           already_handled=yes
8620           break
8621         fi
8622       done
8623       if test -z "$already_handled"; then
8624         names_already_handled="$names_already_handled $name"
8625                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8626         eval value=\"\$HAVE_LIB$uppername\"
8627         if test -n "$value"; then
8628           if test "$value" = yes; then
8629             eval value=\"\$LIB$uppername\"
8630             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8631             eval value=\"\$LTLIB$uppername\"
8632             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8633           else
8634                                     :
8635           fi
8636         else
8637                               found_dir=
8638           found_la=
8639           found_so=
8640           found_a=
8641           if test $use_additional = yes; then
8642             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8643               found_dir="$additional_libdir"
8644               found_so="$additional_libdir/lib$name.$shlibext"
8645               if test -f "$additional_libdir/lib$name.la"; then
8646                 found_la="$additional_libdir/lib$name.la"
8647               fi
8648             else
8649               if test -f "$additional_libdir/lib$name.$libext"; then
8650                 found_dir="$additional_libdir"
8651                 found_a="$additional_libdir/lib$name.$libext"
8652                 if test -f "$additional_libdir/lib$name.la"; then
8653                   found_la="$additional_libdir/lib$name.la"
8654                 fi
8655               fi
8656             fi
8657           fi
8658           if test "X$found_dir" = "X"; then
8659             for x in $LDFLAGS $LTLIBICONV; do
8660
8661   acl_save_prefix="$prefix"
8662   prefix="$acl_final_prefix"
8663   acl_save_exec_prefix="$exec_prefix"
8664   exec_prefix="$acl_final_exec_prefix"
8665   eval x=\"$x\"
8666   exec_prefix="$acl_save_exec_prefix"
8667   prefix="$acl_save_prefix"
8668
8669               case "$x" in
8670                 -L*)
8671                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8672                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8673                     found_dir="$dir"
8674                     found_so="$dir/lib$name.$shlibext"
8675                     if test -f "$dir/lib$name.la"; then
8676                       found_la="$dir/lib$name.la"
8677                     fi
8678                   else
8679                     if test -f "$dir/lib$name.$libext"; then
8680                       found_dir="$dir"
8681                       found_a="$dir/lib$name.$libext"
8682                       if test -f "$dir/lib$name.la"; then
8683                         found_la="$dir/lib$name.la"
8684                       fi
8685                     fi
8686                   fi
8687                   ;;
8688               esac
8689               if test "X$found_dir" != "X"; then
8690                 break
8691               fi
8692             done
8693           fi
8694           if test "X$found_dir" != "X"; then
8695                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8696             if test "X$found_so" != "X"; then
8697                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8698                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8699               else
8700                                                                                 haveit=
8701                 for x in $ltrpathdirs; do
8702                   if test "X$x" = "X$found_dir"; then
8703                     haveit=yes
8704                     break
8705                   fi
8706                 done
8707                 if test -z "$haveit"; then
8708                   ltrpathdirs="$ltrpathdirs $found_dir"
8709                 fi
8710                                 if test "$hardcode_direct" = yes; then
8711                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8712                 else
8713                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8714                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8715                                                             haveit=
8716                     for x in $rpathdirs; do
8717                       if test "X$x" = "X$found_dir"; then
8718                         haveit=yes
8719                         break
8720                       fi
8721                     done
8722                     if test -z "$haveit"; then
8723                       rpathdirs="$rpathdirs $found_dir"
8724                     fi
8725                   else
8726                                                                                 haveit=
8727                     for x in $LDFLAGS $LIBICONV; do
8728
8729   acl_save_prefix="$prefix"
8730   prefix="$acl_final_prefix"
8731   acl_save_exec_prefix="$exec_prefix"
8732   exec_prefix="$acl_final_exec_prefix"
8733   eval x=\"$x\"
8734   exec_prefix="$acl_save_exec_prefix"
8735   prefix="$acl_save_prefix"
8736
8737                       if test "X$x" = "X-L$found_dir"; then
8738                         haveit=yes
8739                         break
8740                       fi
8741                     done
8742                     if test -z "$haveit"; then
8743                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8744                     fi
8745                     if test "$hardcode_minus_L" != no; then
8746                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8747                     else
8748                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8749                     fi
8750                   fi
8751                 fi
8752               fi
8753             else
8754               if test "X$found_a" != "X"; then
8755                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8756               else
8757                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8758               fi
8759             fi
8760                         additional_includedir=
8761             case "$found_dir" in
8762               */lib | */lib/)
8763                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8764                 additional_includedir="$basedir/include"
8765                 ;;
8766             esac
8767             if test "X$additional_includedir" != "X"; then
8768                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8769                 haveit=
8770                 if test "X$additional_includedir" = "X/usr/local/include"; then
8771                   if test -n "$GCC"; then
8772                     case $host_os in
8773                       linux*) haveit=yes;;
8774                     esac
8775                   fi
8776                 fi
8777                 if test -z "$haveit"; then
8778                   for x in $CPPFLAGS $INCICONV; do
8779
8780   acl_save_prefix="$prefix"
8781   prefix="$acl_final_prefix"
8782   acl_save_exec_prefix="$exec_prefix"
8783   exec_prefix="$acl_final_exec_prefix"
8784   eval x=\"$x\"
8785   exec_prefix="$acl_save_exec_prefix"
8786   prefix="$acl_save_prefix"
8787
8788                     if test "X$x" = "X-I$additional_includedir"; then
8789                       haveit=yes
8790                       break
8791                     fi
8792                   done
8793                   if test -z "$haveit"; then
8794                     if test -d "$additional_includedir"; then
8795                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8796                     fi
8797                   fi
8798                 fi
8799               fi
8800             fi
8801                         if test -n "$found_la"; then
8802                                                         save_libdir="$libdir"
8803               case "$found_la" in
8804                 */* | *\\*) . "$found_la" ;;
8805                 *) . "./$found_la" ;;
8806               esac
8807               libdir="$save_libdir"
8808                             for dep in $dependency_libs; do
8809                 case "$dep" in
8810                   -L*)
8811                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8812                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8813                       haveit=
8814                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8815                         if test -n "$GCC"; then
8816                           case $host_os in
8817                             linux*) haveit=yes;;
8818                           esac
8819                         fi
8820                       fi
8821                       if test -z "$haveit"; then
8822                         haveit=
8823                         for x in $LDFLAGS $LIBICONV; do
8824
8825   acl_save_prefix="$prefix"
8826   prefix="$acl_final_prefix"
8827   acl_save_exec_prefix="$exec_prefix"
8828   exec_prefix="$acl_final_exec_prefix"
8829   eval x=\"$x\"
8830   exec_prefix="$acl_save_exec_prefix"
8831   prefix="$acl_save_prefix"
8832
8833                           if test "X$x" = "X-L$additional_libdir"; then
8834                             haveit=yes
8835                             break
8836                           fi
8837                         done
8838                         if test -z "$haveit"; then
8839                           if test -d "$additional_libdir"; then
8840                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8841                           fi
8842                         fi
8843                         haveit=
8844                         for x in $LDFLAGS $LTLIBICONV; do
8845
8846   acl_save_prefix="$prefix"
8847   prefix="$acl_final_prefix"
8848   acl_save_exec_prefix="$exec_prefix"
8849   exec_prefix="$acl_final_exec_prefix"
8850   eval x=\"$x\"
8851   exec_prefix="$acl_save_exec_prefix"
8852   prefix="$acl_save_prefix"
8853
8854                           if test "X$x" = "X-L$additional_libdir"; then
8855                             haveit=yes
8856                             break
8857                           fi
8858                         done
8859                         if test -z "$haveit"; then
8860                           if test -d "$additional_libdir"; then
8861                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8862                           fi
8863                         fi
8864                       fi
8865                     fi
8866                     ;;
8867                   -R*)
8868                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8869                     if test "$enable_rpath" != no; then
8870                                                                   haveit=
8871                       for x in $rpathdirs; do
8872                         if test "X$x" = "X$dir"; then
8873                           haveit=yes
8874                           break
8875                         fi
8876                       done
8877                       if test -z "$haveit"; then
8878                         rpathdirs="$rpathdirs $dir"
8879                       fi
8880                                                                   haveit=
8881                       for x in $ltrpathdirs; do
8882                         if test "X$x" = "X$dir"; then
8883                           haveit=yes
8884                           break
8885                         fi
8886                       done
8887                       if test -z "$haveit"; then
8888                         ltrpathdirs="$ltrpathdirs $dir"
8889                       fi
8890                     fi
8891                     ;;
8892                   -l*)
8893                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8894                     ;;
8895                   *.la)
8896                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8897                     ;;
8898                   *)
8899                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8900                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8901                     ;;
8902                 esac
8903               done
8904             fi
8905           else
8906                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8907             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8908           fi
8909         fi
8910       fi
8911     done
8912   done
8913   if test "X$rpathdirs" != "X"; then
8914     if test -n "$hardcode_libdir_separator"; then
8915                         alldirs=
8916       for found_dir in $rpathdirs; do
8917         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8918       done
8919             acl_save_libdir="$libdir"
8920       libdir="$alldirs"
8921       eval flag=\"$hardcode_libdir_flag_spec\"
8922       libdir="$acl_save_libdir"
8923       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8924     else
8925             for found_dir in $rpathdirs; do
8926         acl_save_libdir="$libdir"
8927         libdir="$found_dir"
8928         eval flag=\"$hardcode_libdir_flag_spec\"
8929         libdir="$acl_save_libdir"
8930         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8931       done
8932     fi
8933   fi
8934   if test "X$ltrpathdirs" != "X"; then
8935             for found_dir in $ltrpathdirs; do
8936       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8937     done
8938   fi
8939
8940
8941
8942
8943
8944
8945
8946
8947   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8948 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8949 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8950   echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952   cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h.  */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h.  */
8958 $ac_includes_default
8959 typedef ptrdiff_t ac__type_new_;
8960 int
8961 main ()
8962 {
8963 if ((ac__type_new_ *) 0)
8964   return 0;
8965 if (sizeof (ac__type_new_))
8966   return 0;
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 rm -f conftest.$ac_objext
8972 if { (ac_try="$ac_compile"
8973 case "(($ac_try" in
8974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975   *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978   (eval "$ac_compile") 2>conftest.er1
8979   ac_status=$?
8980   grep -v '^ *+' conftest.er1 >conftest.err
8981   rm -f conftest.er1
8982   cat conftest.err >&5
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); } && {
8985          test -z "$ac_c_werror_flag" ||
8986          test ! -s conftest.err
8987        } && test -s conftest.$ac_objext; then
8988   ac_cv_type_ptrdiff_t=yes
8989 else
8990   echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8992
8993         ac_cv_type_ptrdiff_t=no
8994 fi
8995
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 fi
8998 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8999 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9000 if test $ac_cv_type_ptrdiff_t = yes; then
9001   :
9002 else
9003
9004 cat >>confdefs.h <<\_ACEOF
9005 #define ptrdiff_t long
9006 _ACEOF
9007
9008
9009 fi
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9022 stdlib.h string.h unistd.h sys/param.h
9023 do
9024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9026   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9029   echo $ECHO_N "(cached) $ECHO_C" >&6
9030 fi
9031 ac_res=`eval echo '${'$as_ac_Header'}'`
9032                { echo "$as_me:$LINENO: result: $ac_res" >&5
9033 echo "${ECHO_T}$ac_res" >&6; }
9034 else
9035   # Is the header compilable?
9036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9038 cat >conftest.$ac_ext <<_ACEOF
9039 /* confdefs.h.  */
9040 _ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h.  */
9044 $ac_includes_default
9045 #include <$ac_header>
9046 _ACEOF
9047 rm -f conftest.$ac_objext
9048 if { (ac_try="$ac_compile"
9049 case "(($ac_try" in
9050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051   *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054   (eval "$ac_compile") 2>conftest.er1
9055   ac_status=$?
9056   grep -v '^ *+' conftest.er1 >conftest.err
9057   rm -f conftest.er1
9058   cat conftest.err >&5
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); } && {
9061          test -z "$ac_c_werror_flag" ||
9062          test ! -s conftest.err
9063        } && test -s conftest.$ac_objext; then
9064   ac_header_compiler=yes
9065 else
9066   echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9068
9069         ac_header_compiler=no
9070 fi
9071
9072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9074 echo "${ECHO_T}$ac_header_compiler" >&6; }
9075
9076 # Is the header present?
9077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9079 cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h.  */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h.  */
9085 #include <$ac_header>
9086 _ACEOF
9087 if { (ac_try="$ac_cpp conftest.$ac_ext"
9088 case "(($ac_try" in
9089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090   *) ac_try_echo=$ac_try;;
9091 esac
9092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9094   ac_status=$?
9095   grep -v '^ *+' conftest.er1 >conftest.err
9096   rm -f conftest.er1
9097   cat conftest.err >&5
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); } >/dev/null && {
9100          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9101          test ! -s conftest.err
9102        }; then
9103   ac_header_preproc=yes
9104 else
9105   echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9107
9108   ac_header_preproc=no
9109 fi
9110
9111 rm -f conftest.err conftest.$ac_ext
9112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9113 echo "${ECHO_T}$ac_header_preproc" >&6; }
9114
9115 # So?  What about this header?
9116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9117   yes:no: )
9118     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9122     ac_header_preproc=yes
9123     ;;
9124   no:yes:* )
9125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9127     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9128 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9129     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9131     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9132 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9135     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9137
9138     ;;
9139 esac
9140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9143   echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145   eval "$as_ac_Header=\$ac_header_preproc"
9146 fi
9147 ac_res=`eval echo '${'$as_ac_Header'}'`
9148                { echo "$as_me:$LINENO: result: $ac_res" >&5
9149 echo "${ECHO_T}$ac_res" >&6; }
9150
9151 fi
9152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9153   cat >>confdefs.h <<_ACEOF
9154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9155 _ACEOF
9156
9157 fi
9158
9159 done
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9185 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9186 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9187 __fsetlocking
9188 do
9189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9193   echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195   cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h.  */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h.  */
9201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9203 #define $ac_func innocuous_$ac_func
9204
9205 /* System header to define __stub macros and hopefully few prototypes,
9206     which can conflict with char $ac_func (); below.
9207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9208     <limits.h> exists even on freestanding compilers.  */
9209
9210 #ifdef __STDC__
9211 # include <limits.h>
9212 #else
9213 # include <assert.h>
9214 #endif
9215
9216 #undef $ac_func
9217
9218 /* Override any GCC internal prototype to avoid an error.
9219    Use char because int might match the return type of a GCC
9220    builtin and then its argument prototype would still apply.  */
9221 #ifdef __cplusplus
9222 extern "C"
9223 #endif
9224 char $ac_func ();
9225 /* The GNU C library defines this for functions which it implements
9226     to always fail with ENOSYS.  Some functions are actually named
9227     something starting with __ and the normal name is an alias.  */
9228 #if defined __stub_$ac_func || defined __stub___$ac_func
9229 choke me
9230 #endif
9231
9232 int
9233 main ()
9234 {
9235 return $ac_func ();
9236   ;
9237   return 0;
9238 }
9239 _ACEOF
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (ac_try="$ac_link"
9242 case "(($ac_try" in
9243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244   *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247   (eval "$ac_link") 2>conftest.er1
9248   ac_status=$?
9249   grep -v '^ *+' conftest.er1 >conftest.err
9250   rm -f conftest.er1
9251   cat conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); } && {
9254          test -z "$ac_c_werror_flag" ||
9255          test ! -s conftest.err
9256        } && test -s conftest$ac_exeext &&
9257        $as_test_x conftest$ac_exeext; then
9258   eval "$as_ac_var=yes"
9259 else
9260   echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263         eval "$as_ac_var=no"
9264 fi
9265
9266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9267       conftest$ac_exeext conftest.$ac_ext
9268 fi
9269 ac_res=`eval echo '${'$as_ac_var'}'`
9270                { echo "$as_me:$LINENO: result: $ac_res" >&5
9271 echo "${ECHO_T}$ac_res" >&6; }
9272 if test `eval echo '${'$as_ac_var'}'` = yes; then
9273   cat >>confdefs.h <<_ACEOF
9274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9275 _ACEOF
9276
9277 fi
9278 done
9279
9280
9281
9282   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9283 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9284 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9285   echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287   cat >conftest.$ac_ext <<_ACEOF
9288 /* confdefs.h.  */
9289 _ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h.  */
9293 #include <stdio.h>
9294 int
9295 main ()
9296 {
9297
9298 #ifndef _snprintf
9299   char *p = (char *) _snprintf;
9300 #endif
9301
9302   ;
9303   return 0;
9304 }
9305 _ACEOF
9306 rm -f conftest.$ac_objext
9307 if { (ac_try="$ac_compile"
9308 case "(($ac_try" in
9309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310   *) ac_try_echo=$ac_try;;
9311 esac
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313   (eval "$ac_compile") 2>conftest.er1
9314   ac_status=$?
9315   grep -v '^ *+' conftest.er1 >conftest.err
9316   rm -f conftest.er1
9317   cat conftest.err >&5
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } && {
9320          test -z "$ac_c_werror_flag" ||
9321          test ! -s conftest.err
9322        } && test -s conftest.$ac_objext; then
9323   ac_cv_have_decl__snprintf=yes
9324 else
9325   echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9327
9328         ac_cv_have_decl__snprintf=no
9329 fi
9330
9331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 fi
9333 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9334 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9335   if test $ac_cv_have_decl__snprintf = yes; then
9336     gt_value=1
9337   else
9338     gt_value=0
9339   fi
9340
9341 cat >>confdefs.h <<_ACEOF
9342 #define HAVE_DECL__SNPRINTF $gt_value
9343 _ACEOF
9344
9345
9346
9347   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9348 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9349 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352   cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h.  */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h.  */
9358 #include <stdio.h>
9359 int
9360 main ()
9361 {
9362
9363 #ifndef _snwprintf
9364   char *p = (char *) _snwprintf;
9365 #endif
9366
9367   ;
9368   return 0;
9369 }
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (ac_try="$ac_compile"
9373 case "(($ac_try" in
9374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375   *) ac_try_echo=$ac_try;;
9376 esac
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378   (eval "$ac_compile") 2>conftest.er1
9379   ac_status=$?
9380   grep -v '^ *+' conftest.er1 >conftest.err
9381   rm -f conftest.er1
9382   cat conftest.err >&5
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } && {
9385          test -z "$ac_c_werror_flag" ||
9386          test ! -s conftest.err
9387        } && test -s conftest.$ac_objext; then
9388   ac_cv_have_decl__snwprintf=yes
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393         ac_cv_have_decl__snwprintf=no
9394 fi
9395
9396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 fi
9398 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9399 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9400   if test $ac_cv_have_decl__snwprintf = yes; then
9401     gt_value=1
9402   else
9403     gt_value=0
9404   fi
9405
9406 cat >>confdefs.h <<_ACEOF
9407 #define HAVE_DECL__SNWPRINTF $gt_value
9408 _ACEOF
9409
9410
9411
9412
9413   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9414 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9415 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9416   echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418   cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h.  */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h.  */
9424 #include <stdio.h>
9425 int
9426 main ()
9427 {
9428
9429 #ifndef feof_unlocked
9430   char *p = (char *) feof_unlocked;
9431 #endif
9432
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext
9438 if { (ac_try="$ac_compile"
9439 case "(($ac_try" in
9440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441   *) ac_try_echo=$ac_try;;
9442 esac
9443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444   (eval "$ac_compile") 2>conftest.er1
9445   ac_status=$?
9446   grep -v '^ *+' conftest.er1 >conftest.err
9447   rm -f conftest.er1
9448   cat conftest.err >&5
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); } && {
9451          test -z "$ac_c_werror_flag" ||
9452          test ! -s conftest.err
9453        } && test -s conftest.$ac_objext; then
9454   ac_cv_have_decl_feof_unlocked=yes
9455 else
9456   echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459         ac_cv_have_decl_feof_unlocked=no
9460 fi
9461
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463 fi
9464 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9465 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9466   if test $ac_cv_have_decl_feof_unlocked = yes; then
9467     gt_value=1
9468   else
9469     gt_value=0
9470   fi
9471
9472 cat >>confdefs.h <<_ACEOF
9473 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9474 _ACEOF
9475
9476
9477
9478   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9479 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9480 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483   cat >conftest.$ac_ext <<_ACEOF
9484 /* confdefs.h.  */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h.  */
9489 #include <stdio.h>
9490 int
9491 main ()
9492 {
9493
9494 #ifndef fgets_unlocked
9495   char *p = (char *) fgets_unlocked;
9496 #endif
9497
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 rm -f conftest.$ac_objext
9503 if { (ac_try="$ac_compile"
9504 case "(($ac_try" in
9505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506   *) ac_try_echo=$ac_try;;
9507 esac
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509   (eval "$ac_compile") 2>conftest.er1
9510   ac_status=$?
9511   grep -v '^ *+' conftest.er1 >conftest.err
9512   rm -f conftest.er1
9513   cat conftest.err >&5
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); } && {
9516          test -z "$ac_c_werror_flag" ||
9517          test ! -s conftest.err
9518        } && test -s conftest.$ac_objext; then
9519   ac_cv_have_decl_fgets_unlocked=yes
9520 else
9521   echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9523
9524         ac_cv_have_decl_fgets_unlocked=no
9525 fi
9526
9527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 fi
9529 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9530 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9531   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9532     gt_value=1
9533   else
9534     gt_value=0
9535   fi
9536
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9539 _ACEOF
9540
9541
9542
9543   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9544 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9545 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554 #include <stdio.h>
9555 int
9556 main ()
9557 {
9558
9559 #ifndef getc_unlocked
9560   char *p = (char *) getc_unlocked;
9561 #endif
9562
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext
9568 if { (ac_try="$ac_compile"
9569 case "(($ac_try" in
9570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571   *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574   (eval "$ac_compile") 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } && {
9581          test -z "$ac_c_werror_flag" ||
9582          test ! -s conftest.err
9583        } && test -s conftest.$ac_objext; then
9584   ac_cv_have_decl_getc_unlocked=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589         ac_cv_have_decl_getc_unlocked=no
9590 fi
9591
9592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 fi
9594 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9595 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9596   if test $ac_cv_have_decl_getc_unlocked = yes; then
9597     gt_value=1
9598   else
9599     gt_value=0
9600   fi
9601
9602 cat >>confdefs.h <<_ACEOF
9603 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9604 _ACEOF
9605
9606
9607
9608   case $gt_cv_func_printf_posix in
9609     *yes) HAVE_POSIX_PRINTF=1 ;;
9610     *) HAVE_POSIX_PRINTF=0 ;;
9611   esac
9612
9613   if test "$ac_cv_func_asprintf" = yes; then
9614     HAVE_ASPRINTF=1
9615   else
9616     HAVE_ASPRINTF=0
9617   fi
9618
9619   if test "$ac_cv_func_snprintf" = yes; then
9620     HAVE_SNPRINTF=1
9621   else
9622     HAVE_SNPRINTF=0
9623   fi
9624
9625   if test "$ac_cv_func_wprintf" = yes; then
9626     HAVE_WPRINTF=1
9627   else
9628     HAVE_WPRINTF=0
9629   fi
9630
9631
9632
9633
9634
9635
9636
9637           am_save_CPPFLAGS="$CPPFLAGS"
9638
9639   for element in $INCICONV; do
9640     haveit=
9641     for x in $CPPFLAGS; do
9642
9643   acl_save_prefix="$prefix"
9644   prefix="$acl_final_prefix"
9645   acl_save_exec_prefix="$exec_prefix"
9646   exec_prefix="$acl_final_exec_prefix"
9647   eval x=\"$x\"
9648   exec_prefix="$acl_save_exec_prefix"
9649   prefix="$acl_save_prefix"
9650
9651       if test "X$x" = "X$element"; then
9652         haveit=yes
9653         break
9654       fi
9655     done
9656     if test -z "$haveit"; then
9657       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9658     fi
9659   done
9660
9661
9662   { echo "$as_me:$LINENO: checking for iconv" >&5
9663 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9664 if test "${am_cv_func_iconv+set}" = set; then
9665   echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667
9668     am_cv_func_iconv="no, consider installing GNU libiconv"
9669     am_cv_lib_iconv=no
9670     cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676 #include <stdlib.h>
9677 #include <iconv.h>
9678 int
9679 main ()
9680 {
9681 iconv_t cd = iconv_open("","");
9682        iconv(cd,NULL,NULL,NULL,NULL);
9683        iconv_close(cd);
9684   ;
9685   return 0;
9686 }
9687 _ACEOF
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9690 case "(($ac_try" in
9691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692   *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695   (eval "$ac_link") 2>conftest.er1
9696   ac_status=$?
9697   grep -v '^ *+' conftest.er1 >conftest.err
9698   rm -f conftest.er1
9699   cat conftest.err >&5
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } && {
9702          test -z "$ac_c_werror_flag" ||
9703          test ! -s conftest.err
9704        } && test -s conftest$ac_exeext &&
9705        $as_test_x conftest$ac_exeext; then
9706   am_cv_func_iconv=yes
9707 else
9708   echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711
9712 fi
9713
9714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9715       conftest$ac_exeext conftest.$ac_ext
9716     if test "$am_cv_func_iconv" != yes; then
9717       am_save_LIBS="$LIBS"
9718       LIBS="$LIBS $LIBICONV"
9719       cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h.  */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h.  */
9725 #include <stdlib.h>
9726 #include <iconv.h>
9727 int
9728 main ()
9729 {
9730 iconv_t cd = iconv_open("","");
9731          iconv(cd,NULL,NULL,NULL,NULL);
9732          iconv_close(cd);
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9739 case "(($ac_try" in
9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741   *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744   (eval "$ac_link") 2>conftest.er1
9745   ac_status=$?
9746   grep -v '^ *+' conftest.er1 >conftest.err
9747   rm -f conftest.er1
9748   cat conftest.err >&5
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); } && {
9751          test -z "$ac_c_werror_flag" ||
9752          test ! -s conftest.err
9753        } && test -s conftest$ac_exeext &&
9754        $as_test_x conftest$ac_exeext; then
9755   am_cv_lib_iconv=yes
9756         am_cv_func_iconv=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761
9762 fi
9763
9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765       conftest$ac_exeext conftest.$ac_ext
9766       LIBS="$am_save_LIBS"
9767     fi
9768
9769 fi
9770 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9771 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9772   if test "$am_cv_func_iconv" = yes; then
9773
9774 cat >>confdefs.h <<\_ACEOF
9775 #define HAVE_ICONV 1
9776 _ACEOF
9777
9778   fi
9779   if test "$am_cv_lib_iconv" = yes; then
9780     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9781 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9782     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9783 echo "${ECHO_T}$LIBICONV" >&6; }
9784   else
9785             CPPFLAGS="$am_save_CPPFLAGS"
9786     LIBICONV=
9787     LTLIBICONV=
9788   fi
9789
9790
9791
9792   if test "$am_cv_func_iconv" = yes; then
9793     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9794 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9795     if test "${am_cv_proto_iconv+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798
9799       cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805
9806 #include <stdlib.h>
9807 #include <iconv.h>
9808 extern
9809 #ifdef __cplusplus
9810 "C"
9811 #endif
9812 #if defined(__STDC__) || defined(__cplusplus)
9813 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9814 #else
9815 size_t iconv();
9816 #endif
9817
9818 int
9819 main ()
9820 {
9821
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 rm -f conftest.$ac_objext
9827 if { (ac_try="$ac_compile"
9828 case "(($ac_try" in
9829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830   *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833   (eval "$ac_compile") 2>conftest.er1
9834   ac_status=$?
9835   grep -v '^ *+' conftest.er1 >conftest.err
9836   rm -f conftest.er1
9837   cat conftest.err >&5
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } && {
9840          test -z "$ac_c_werror_flag" ||
9841          test ! -s conftest.err
9842        } && test -s conftest.$ac_objext; then
9843   am_cv_proto_iconv_arg1=""
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848         am_cv_proto_iconv_arg1="const"
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852       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);"
9853 fi
9854
9855     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9856     { echo "$as_me:$LINENO: result: ${ac_t:-
9857          }$am_cv_proto_iconv" >&5
9858 echo "${ECHO_T}${ac_t:-
9859          }$am_cv_proto_iconv" >&6; }
9860
9861 cat >>confdefs.h <<_ACEOF
9862 #define ICONV_CONST $am_cv_proto_iconv_arg1
9863 _ACEOF
9864
9865   fi
9866
9867
9868   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9869 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9870 if test "${am_cv_langinfo_codeset+set}" = set; then
9871   echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873   cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h.  */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h.  */
9879 #include <langinfo.h>
9880 int
9881 main ()
9882 {
9883 char* cs = nl_langinfo(CODESET);
9884   ;
9885   return 0;
9886 }
9887 _ACEOF
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9890 case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895   (eval "$ac_link") 2>conftest.er1
9896   ac_status=$?
9897   grep -v '^ *+' conftest.er1 >conftest.err
9898   rm -f conftest.er1
9899   cat conftest.err >&5
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } && {
9902          test -z "$ac_c_werror_flag" ||
9903          test ! -s conftest.err
9904        } && test -s conftest$ac_exeext &&
9905        $as_test_x conftest$ac_exeext; then
9906   am_cv_langinfo_codeset=yes
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911         am_cv_langinfo_codeset=no
9912 fi
9913
9914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9915       conftest$ac_exeext conftest.$ac_ext
9916
9917 fi
9918 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9919 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9920   if test $am_cv_langinfo_codeset = yes; then
9921
9922 cat >>confdefs.h <<\_ACEOF
9923 #define HAVE_LANGINFO_CODESET 1
9924 _ACEOF
9925
9926   fi
9927
9928   if test $ac_cv_header_locale_h = yes; then
9929
9930   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9931 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9932 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9933   echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935   cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941 #include <locale.h>
9942 int
9943 main ()
9944 {
9945 return LC_MESSAGES
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9952 case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_link") 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } && {
9964          test -z "$ac_c_werror_flag" ||
9965          test ! -s conftest.err
9966        } && test -s conftest$ac_exeext &&
9967        $as_test_x conftest$ac_exeext; then
9968   am_cv_val_LC_MESSAGES=yes
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973         am_cv_val_LC_MESSAGES=no
9974 fi
9975
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977       conftest$ac_exeext conftest.$ac_ext
9978 fi
9979 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9980 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9981   if test $am_cv_val_LC_MESSAGES = yes; then
9982
9983 cat >>confdefs.h <<\_ACEOF
9984 #define HAVE_LC_MESSAGES 1
9985 _ACEOF
9986
9987   fi
9988
9989   fi
9990
9991                       for ac_prog in bison
9992 do
9993   # Extract the first word of "$ac_prog", so it can be a program name with args.
9994 set dummy $ac_prog; ac_word=$2
9995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9997 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9998   echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000   if test -n "$INTLBISON"; then
10001   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10002 else
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10005 do
10006   IFS=$as_save_IFS
10007   test -z "$as_dir" && as_dir=.
10008   for ac_exec_ext in '' $ac_executable_extensions; do
10009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10010     ac_cv_prog_INTLBISON="$ac_prog"
10011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10012     break 2
10013   fi
10014 done
10015 done
10016 IFS=$as_save_IFS
10017
10018 fi
10019 fi
10020 INTLBISON=$ac_cv_prog_INTLBISON
10021 if test -n "$INTLBISON"; then
10022   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10023 echo "${ECHO_T}$INTLBISON" >&6; }
10024 else
10025   { echo "$as_me:$LINENO: result: no" >&5
10026 echo "${ECHO_T}no" >&6; }
10027 fi
10028
10029
10030   test -n "$INTLBISON" && break
10031 done
10032
10033   if test -z "$INTLBISON"; then
10034     ac_verc_fail=yes
10035   else
10036         { echo "$as_me:$LINENO: checking version of bison" >&5
10037 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10038     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10039     case $ac_prog_version in
10040       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10041       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10042          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10043       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10044     esac
10045     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10046 echo "${ECHO_T}$ac_prog_version" >&6; }
10047   fi
10048   if test $ac_verc_fail = yes; then
10049     INTLBISON=:
10050   fi
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10068 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10069     # Check whether --enable-nls was given.
10070 if test "${enable_nls+set}" = set; then
10071   enableval=$enable_nls; USE_NLS=$enableval
10072 else
10073   USE_NLS=yes
10074 fi
10075
10076   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10077 echo "${ECHO_T}$USE_NLS" >&6; }
10078
10079
10080
10081
10082     BUILD_INCLUDED_LIBINTL=no
10083     USE_INCLUDED_LIBINTL=no
10084
10085   LIBINTL=
10086   LTLIBINTL=
10087   POSUB=
10088
10089     if test "$USE_NLS" = "yes"; then
10090     gt_use_preinstalled_gnugettext=no
10091
10092       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10093 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10094
10095 # Check whether --with-included-gettext was given.
10096 if test "${with_included_gettext+set}" = set; then
10097   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10098 else
10099   nls_cv_force_use_gnu_gettext=no
10100 fi
10101
10102       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10103 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10104
10105       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10106       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10107
10108
10109
10110
10111
10112
10113         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10114 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10115 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10116   echo $ECHO_N "(cached) $ECHO_C" >&6
10117 else
10118   cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h.  */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h.  */
10124 #include <libintl.h>
10125 extern int _nl_msg_cat_cntr;
10126 extern int *_nl_domain_bindings;
10127 int
10128 main ()
10129 {
10130 bindtextdomain ("", "");
10131 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10132   ;
10133   return 0;
10134 }
10135 _ACEOF
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 if { (ac_try="$ac_link"
10138 case "(($ac_try" in
10139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140   *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143   (eval "$ac_link") 2>conftest.er1
10144   ac_status=$?
10145   grep -v '^ *+' conftest.er1 >conftest.err
10146   rm -f conftest.er1
10147   cat conftest.err >&5
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); } && {
10150          test -z "$ac_c_werror_flag" ||
10151          test ! -s conftest.err
10152        } && test -s conftest$ac_exeext &&
10153        $as_test_x conftest$ac_exeext; then
10154   gt_cv_func_gnugettext1_libc=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159         gt_cv_func_gnugettext1_libc=no
10160 fi
10161
10162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10163       conftest$ac_exeext conftest.$ac_ext
10164 fi
10165 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10166 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10167
10168         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10169
10170
10171
10172     use_additional=yes
10173
10174   acl_save_prefix="$prefix"
10175   prefix="$acl_final_prefix"
10176   acl_save_exec_prefix="$exec_prefix"
10177   exec_prefix="$acl_final_exec_prefix"
10178
10179     eval additional_includedir=\"$includedir\"
10180     eval additional_libdir=\"$libdir\"
10181
10182   exec_prefix="$acl_save_exec_prefix"
10183   prefix="$acl_save_prefix"
10184
10185
10186 # Check whether --with-libintl-prefix was given.
10187 if test "${with_libintl_prefix+set}" = set; then
10188   withval=$with_libintl_prefix;
10189     if test "X$withval" = "Xno"; then
10190       use_additional=no
10191     else
10192       if test "X$withval" = "X"; then
10193
10194   acl_save_prefix="$prefix"
10195   prefix="$acl_final_prefix"
10196   acl_save_exec_prefix="$exec_prefix"
10197   exec_prefix="$acl_final_exec_prefix"
10198
10199           eval additional_includedir=\"$includedir\"
10200           eval additional_libdir=\"$libdir\"
10201
10202   exec_prefix="$acl_save_exec_prefix"
10203   prefix="$acl_save_prefix"
10204
10205       else
10206         additional_includedir="$withval/include"
10207         additional_libdir="$withval/lib"
10208       fi
10209     fi
10210
10211 fi
10212
10213       LIBINTL=
10214   LTLIBINTL=
10215   INCINTL=
10216   rpathdirs=
10217   ltrpathdirs=
10218   names_already_handled=
10219   names_next_round='intl '
10220   while test -n "$names_next_round"; do
10221     names_this_round="$names_next_round"
10222     names_next_round=
10223     for name in $names_this_round; do
10224       already_handled=
10225       for n in $names_already_handled; do
10226         if test "$n" = "$name"; then
10227           already_handled=yes
10228           break
10229         fi
10230       done
10231       if test -z "$already_handled"; then
10232         names_already_handled="$names_already_handled $name"
10233                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10234         eval value=\"\$HAVE_LIB$uppername\"
10235         if test -n "$value"; then
10236           if test "$value" = yes; then
10237             eval value=\"\$LIB$uppername\"
10238             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10239             eval value=\"\$LTLIB$uppername\"
10240             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10241           else
10242                                     :
10243           fi
10244         else
10245                               found_dir=
10246           found_la=
10247           found_so=
10248           found_a=
10249           if test $use_additional = yes; then
10250             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10251               found_dir="$additional_libdir"
10252               found_so="$additional_libdir/lib$name.$shlibext"
10253               if test -f "$additional_libdir/lib$name.la"; then
10254                 found_la="$additional_libdir/lib$name.la"
10255               fi
10256             else
10257               if test -f "$additional_libdir/lib$name.$libext"; then
10258                 found_dir="$additional_libdir"
10259                 found_a="$additional_libdir/lib$name.$libext"
10260                 if test -f "$additional_libdir/lib$name.la"; then
10261                   found_la="$additional_libdir/lib$name.la"
10262                 fi
10263               fi
10264             fi
10265           fi
10266           if test "X$found_dir" = "X"; then
10267             for x in $LDFLAGS $LTLIBINTL; do
10268
10269   acl_save_prefix="$prefix"
10270   prefix="$acl_final_prefix"
10271   acl_save_exec_prefix="$exec_prefix"
10272   exec_prefix="$acl_final_exec_prefix"
10273   eval x=\"$x\"
10274   exec_prefix="$acl_save_exec_prefix"
10275   prefix="$acl_save_prefix"
10276
10277               case "$x" in
10278                 -L*)
10279                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10280                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10281                     found_dir="$dir"
10282                     found_so="$dir/lib$name.$shlibext"
10283                     if test -f "$dir/lib$name.la"; then
10284                       found_la="$dir/lib$name.la"
10285                     fi
10286                   else
10287                     if test -f "$dir/lib$name.$libext"; then
10288                       found_dir="$dir"
10289                       found_a="$dir/lib$name.$libext"
10290                       if test -f "$dir/lib$name.la"; then
10291                         found_la="$dir/lib$name.la"
10292                       fi
10293                     fi
10294                   fi
10295                   ;;
10296               esac
10297               if test "X$found_dir" != "X"; then
10298                 break
10299               fi
10300             done
10301           fi
10302           if test "X$found_dir" != "X"; then
10303                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10304             if test "X$found_so" != "X"; then
10305                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10306                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10307               else
10308                                                                                 haveit=
10309                 for x in $ltrpathdirs; do
10310                   if test "X$x" = "X$found_dir"; then
10311                     haveit=yes
10312                     break
10313                   fi
10314                 done
10315                 if test -z "$haveit"; then
10316                   ltrpathdirs="$ltrpathdirs $found_dir"
10317                 fi
10318                                 if test "$hardcode_direct" = yes; then
10319                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10320                 else
10321                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10322                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10323                                                             haveit=
10324                     for x in $rpathdirs; do
10325                       if test "X$x" = "X$found_dir"; then
10326                         haveit=yes
10327                         break
10328                       fi
10329                     done
10330                     if test -z "$haveit"; then
10331                       rpathdirs="$rpathdirs $found_dir"
10332                     fi
10333                   else
10334                                                                                 haveit=
10335                     for x in $LDFLAGS $LIBINTL; do
10336
10337   acl_save_prefix="$prefix"
10338   prefix="$acl_final_prefix"
10339   acl_save_exec_prefix="$exec_prefix"
10340   exec_prefix="$acl_final_exec_prefix"
10341   eval x=\"$x\"
10342   exec_prefix="$acl_save_exec_prefix"
10343   prefix="$acl_save_prefix"
10344
10345                       if test "X$x" = "X-L$found_dir"; then
10346                         haveit=yes
10347                         break
10348                       fi
10349                     done
10350                     if test -z "$haveit"; then
10351                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10352                     fi
10353                     if test "$hardcode_minus_L" != no; then
10354                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10355                     else
10356                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10357                     fi
10358                   fi
10359                 fi
10360               fi
10361             else
10362               if test "X$found_a" != "X"; then
10363                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10364               else
10365                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10366               fi
10367             fi
10368                         additional_includedir=
10369             case "$found_dir" in
10370               */lib | */lib/)
10371                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10372                 additional_includedir="$basedir/include"
10373                 ;;
10374             esac
10375             if test "X$additional_includedir" != "X"; then
10376                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10377                 haveit=
10378                 if test "X$additional_includedir" = "X/usr/local/include"; then
10379                   if test -n "$GCC"; then
10380                     case $host_os in
10381                       linux*) haveit=yes;;
10382                     esac
10383                   fi
10384                 fi
10385                 if test -z "$haveit"; then
10386                   for x in $CPPFLAGS $INCINTL; do
10387
10388   acl_save_prefix="$prefix"
10389   prefix="$acl_final_prefix"
10390   acl_save_exec_prefix="$exec_prefix"
10391   exec_prefix="$acl_final_exec_prefix"
10392   eval x=\"$x\"
10393   exec_prefix="$acl_save_exec_prefix"
10394   prefix="$acl_save_prefix"
10395
10396                     if test "X$x" = "X-I$additional_includedir"; then
10397                       haveit=yes
10398                       break
10399                     fi
10400                   done
10401                   if test -z "$haveit"; then
10402                     if test -d "$additional_includedir"; then
10403                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10404                     fi
10405                   fi
10406                 fi
10407               fi
10408             fi
10409                         if test -n "$found_la"; then
10410                                                         save_libdir="$libdir"
10411               case "$found_la" in
10412                 */* | *\\*) . "$found_la" ;;
10413                 *) . "./$found_la" ;;
10414               esac
10415               libdir="$save_libdir"
10416                             for dep in $dependency_libs; do
10417                 case "$dep" in
10418                   -L*)
10419                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10420                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10421                       haveit=
10422                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10423                         if test -n "$GCC"; then
10424                           case $host_os in
10425                             linux*) haveit=yes;;
10426                           esac
10427                         fi
10428                       fi
10429                       if test -z "$haveit"; then
10430                         haveit=
10431                         for x in $LDFLAGS $LIBINTL; do
10432
10433   acl_save_prefix="$prefix"
10434   prefix="$acl_final_prefix"
10435   acl_save_exec_prefix="$exec_prefix"
10436   exec_prefix="$acl_final_exec_prefix"
10437   eval x=\"$x\"
10438   exec_prefix="$acl_save_exec_prefix"
10439   prefix="$acl_save_prefix"
10440
10441                           if test "X$x" = "X-L$additional_libdir"; then
10442                             haveit=yes
10443                             break
10444                           fi
10445                         done
10446                         if test -z "$haveit"; then
10447                           if test -d "$additional_libdir"; then
10448                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10449                           fi
10450                         fi
10451                         haveit=
10452                         for x in $LDFLAGS $LTLIBINTL; do
10453
10454   acl_save_prefix="$prefix"
10455   prefix="$acl_final_prefix"
10456   acl_save_exec_prefix="$exec_prefix"
10457   exec_prefix="$acl_final_exec_prefix"
10458   eval x=\"$x\"
10459   exec_prefix="$acl_save_exec_prefix"
10460   prefix="$acl_save_prefix"
10461
10462                           if test "X$x" = "X-L$additional_libdir"; then
10463                             haveit=yes
10464                             break
10465                           fi
10466                         done
10467                         if test -z "$haveit"; then
10468                           if test -d "$additional_libdir"; then
10469                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10470                           fi
10471                         fi
10472                       fi
10473                     fi
10474                     ;;
10475                   -R*)
10476                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10477                     if test "$enable_rpath" != no; then
10478                                                                   haveit=
10479                       for x in $rpathdirs; do
10480                         if test "X$x" = "X$dir"; then
10481                           haveit=yes
10482                           break
10483                         fi
10484                       done
10485                       if test -z "$haveit"; then
10486                         rpathdirs="$rpathdirs $dir"
10487                       fi
10488                                                                   haveit=
10489                       for x in $ltrpathdirs; do
10490                         if test "X$x" = "X$dir"; then
10491                           haveit=yes
10492                           break
10493                         fi
10494                       done
10495                       if test -z "$haveit"; then
10496                         ltrpathdirs="$ltrpathdirs $dir"
10497                       fi
10498                     fi
10499                     ;;
10500                   -l*)
10501                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10502                     ;;
10503                   *.la)
10504                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10505                     ;;
10506                   *)
10507                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10508                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10509                     ;;
10510                 esac
10511               done
10512             fi
10513           else
10514                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10515             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10516           fi
10517         fi
10518       fi
10519     done
10520   done
10521   if test "X$rpathdirs" != "X"; then
10522     if test -n "$hardcode_libdir_separator"; then
10523                         alldirs=
10524       for found_dir in $rpathdirs; do
10525         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10526       done
10527             acl_save_libdir="$libdir"
10528       libdir="$alldirs"
10529       eval flag=\"$hardcode_libdir_flag_spec\"
10530       libdir="$acl_save_libdir"
10531       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10532     else
10533             for found_dir in $rpathdirs; do
10534         acl_save_libdir="$libdir"
10535         libdir="$found_dir"
10536         eval flag=\"$hardcode_libdir_flag_spec\"
10537         libdir="$acl_save_libdir"
10538         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10539       done
10540     fi
10541   fi
10542   if test "X$ltrpathdirs" != "X"; then
10543             for found_dir in $ltrpathdirs; do
10544       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10545     done
10546   fi
10547
10548           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10549 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10550 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553   gt_save_CPPFLAGS="$CPPFLAGS"
10554             CPPFLAGS="$CPPFLAGS $INCINTL"
10555             gt_save_LIBS="$LIBS"
10556             LIBS="$LIBS $LIBINTL"
10557                         cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563 #include <libintl.h>
10564 extern int _nl_msg_cat_cntr;
10565 extern
10566 #ifdef __cplusplus
10567 "C"
10568 #endif
10569 const char *_nl_expand_alias ();
10570 int
10571 main ()
10572 {
10573 bindtextdomain ("", "");
10574 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10575   ;
10576   return 0;
10577 }
10578 _ACEOF
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (ac_try="$ac_link"
10581 case "(($ac_try" in
10582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583   *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586   (eval "$ac_link") 2>conftest.er1
10587   ac_status=$?
10588   grep -v '^ *+' conftest.er1 >conftest.err
10589   rm -f conftest.er1
10590   cat conftest.err >&5
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); } && {
10593          test -z "$ac_c_werror_flag" ||
10594          test ! -s conftest.err
10595        } && test -s conftest$ac_exeext &&
10596        $as_test_x conftest$ac_exeext; then
10597   gt_cv_func_gnugettext1_libintl=yes
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602         gt_cv_func_gnugettext1_libintl=no
10603 fi
10604
10605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10606       conftest$ac_exeext conftest.$ac_ext
10607                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10608               LIBS="$LIBS $LIBICONV"
10609               cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h.  */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h.  */
10615 #include <libintl.h>
10616 extern int _nl_msg_cat_cntr;
10617 extern
10618 #ifdef __cplusplus
10619 "C"
10620 #endif
10621 const char *_nl_expand_alias ();
10622 int
10623 main ()
10624 {
10625 bindtextdomain ("", "");
10626 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10627   ;
10628   return 0;
10629 }
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635   *) ac_try_echo=$ac_try;;
10636 esac
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638   (eval "$ac_link") 2>conftest.er1
10639   ac_status=$?
10640   grep -v '^ *+' conftest.er1 >conftest.err
10641   rm -f conftest.er1
10642   cat conftest.err >&5
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); } && {
10645          test -z "$ac_c_werror_flag" ||
10646          test ! -s conftest.err
10647        } && test -s conftest$ac_exeext &&
10648        $as_test_x conftest$ac_exeext; then
10649   LIBINTL="$LIBINTL $LIBICONV"
10650                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10651                 gt_cv_func_gnugettext1_libintl=yes
10652
10653 else
10654   echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657
10658 fi
10659
10660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10661       conftest$ac_exeext conftest.$ac_ext
10662             fi
10663             CPPFLAGS="$gt_save_CPPFLAGS"
10664             LIBS="$gt_save_LIBS"
10665 fi
10666 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10667 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10668         fi
10669
10670                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10671            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10672                 && test "$PACKAGE" != gettext-runtime \
10673                 && test "$PACKAGE" != gettext-tools; }; then
10674           gt_use_preinstalled_gnugettext=yes
10675         else
10676                     LIBINTL=
10677           LTLIBINTL=
10678           INCINTL=
10679         fi
10680
10681
10682         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10683                               nls_cv_use_gnu_gettext=yes
10684         fi
10685       fi
10686
10687       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10688                 BUILD_INCLUDED_LIBINTL=yes
10689         USE_INCLUDED_LIBINTL=yes
10690         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10691         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10692         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10693       fi
10694
10695       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10696          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10697                 CATOBJEXT=.gmo
10698       fi
10699
10700
10701     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10702        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10703
10704 cat >>confdefs.h <<\_ACEOF
10705 #define ENABLE_NLS 1
10706 _ACEOF
10707
10708     else
10709       USE_NLS=no
10710     fi
10711   fi
10712
10713   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10714 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10715   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10716 echo "${ECHO_T}$USE_NLS" >&6; }
10717   if test "$USE_NLS" = "yes"; then
10718     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10719 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10720     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10721       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10722         gt_source="external libintl"
10723       else
10724         gt_source="libc"
10725       fi
10726     else
10727       gt_source="included intl directory"
10728     fi
10729     { echo "$as_me:$LINENO: result: $gt_source" >&5
10730 echo "${ECHO_T}$gt_source" >&6; }
10731   fi
10732
10733   if test "$USE_NLS" = "yes"; then
10734
10735     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10736       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10737         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10738 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10739         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10740 echo "${ECHO_T}$LIBINTL" >&6; }
10741
10742   for element in $INCINTL; do
10743     haveit=
10744     for x in $CPPFLAGS; do
10745
10746   acl_save_prefix="$prefix"
10747   prefix="$acl_final_prefix"
10748   acl_save_exec_prefix="$exec_prefix"
10749   exec_prefix="$acl_final_exec_prefix"
10750   eval x=\"$x\"
10751   exec_prefix="$acl_save_exec_prefix"
10752   prefix="$acl_save_prefix"
10753
10754       if test "X$x" = "X$element"; then
10755         haveit=yes
10756         break
10757       fi
10758     done
10759     if test -z "$haveit"; then
10760       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10761     fi
10762   done
10763
10764       fi
10765
10766
10767 cat >>confdefs.h <<\_ACEOF
10768 #define HAVE_GETTEXT 1
10769 _ACEOF
10770
10771
10772 cat >>confdefs.h <<\_ACEOF
10773 #define HAVE_DCGETTEXT 1
10774 _ACEOF
10775
10776     fi
10777
10778         POSUB=po
10779   fi
10780
10781
10782             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10783       BUILD_INCLUDED_LIBINTL=yes
10784     fi
10785
10786
10787
10788
10789
10790         nls_cv_header_intl=
10791     nls_cv_header_libgt=
10792
10793         DATADIRNAME=share
10794
10795
10796         INSTOBJEXT=.mo
10797
10798
10799         GENCAT=gencat
10800
10801
10802         if test "$USE_INCLUDED_LIBINTL" = yes; then
10803       INTLOBJS="\$(GETTOBJS)"
10804     fi
10805
10806
10807         INTL_LIBTOOL_SUFFIX_PREFIX=
10808
10809
10810
10811     INTLLIBS="$LIBINTL"
10812
10813
10814
10815
10816
10817
10818
10819 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10820 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10821 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10822 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825   cat >conftest.make <<\_ACEOF
10826 SHELL = /bin/sh
10827 all:
10828         @echo '@@@%%%=$(MAKE)=@@@%%%'
10829 _ACEOF
10830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10831 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10832   *@@@%%%=?*=@@@%%%*)
10833     eval ac_cv_prog_make_${ac_make}_set=yes;;
10834   *)
10835     eval ac_cv_prog_make_${ac_make}_set=no;;
10836 esac
10837 rm -f conftest.make
10838 fi
10839 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10840   { echo "$as_me:$LINENO: result: yes" >&5
10841 echo "${ECHO_T}yes" >&6; }
10842   SET_MAKE=
10843 else
10844   { echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6; }
10846   SET_MAKE="MAKE=${MAKE-make}"
10847 fi
10848
10849 # Extract the first word of "ln", so it can be a program name with args.
10850 set dummy ln; ac_word=$2
10851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10853 if test "${ac_cv_path_LN+set}" = set; then
10854   echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856   case $LN in
10857   [\\/]* | ?:[\\/]*)
10858   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10859   ;;
10860   *)
10861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10863 do
10864   IFS=$as_save_IFS
10865   test -z "$as_dir" && as_dir=.
10866   for ac_exec_ext in '' $ac_executable_extensions; do
10867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10868     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10870     break 2
10871   fi
10872 done
10873 done
10874 IFS=$as_save_IFS
10875
10876   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10877   ;;
10878 esac
10879 fi
10880 LN=$ac_cv_path_LN
10881 if test -n "$LN"; then
10882   { echo "$as_me:$LINENO: result: $LN" >&5
10883 echo "${ECHO_T}$LN" >&6; }
10884 else
10885   { echo "$as_me:$LINENO: result: no" >&5
10886 echo "${ECHO_T}no" >&6; }
10887 fi
10888
10889
10890 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10891 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10892 LN_S=$as_ln_s
10893 if test "$LN_S" = "ln -s"; then
10894   { echo "$as_me:$LINENO: result: yes" >&5
10895 echo "${ECHO_T}yes" >&6; }
10896 else
10897   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10898 echo "${ECHO_T}no, using $LN_S" >&6; }
10899 fi
10900
10901 # Extract the first word of "mv", so it can be a program name with args.
10902 set dummy mv; ac_word=$2
10903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10905 if test "${ac_cv_path_MV+set}" = set; then
10906   echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908   case $MV in
10909   [\\/]* | ?:[\\/]*)
10910   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10911   ;;
10912   *)
10913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914 for as_dir in $PATH
10915 do
10916   IFS=$as_save_IFS
10917   test -z "$as_dir" && as_dir=.
10918   for ac_exec_ext in '' $ac_executable_extensions; do
10919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10920     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922     break 2
10923   fi
10924 done
10925 done
10926 IFS=$as_save_IFS
10927
10928   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10929   ;;
10930 esac
10931 fi
10932 MV=$ac_cv_path_MV
10933 if test -n "$MV"; then
10934   { echo "$as_me:$LINENO: result: $MV" >&5
10935 echo "${ECHO_T}$MV" >&6; }
10936 else
10937   { echo "$as_me:$LINENO: result: no" >&5
10938 echo "${ECHO_T}no" >&6; }
10939 fi
10940
10941
10942 # Extract the first word of "cp", so it can be a program name with args.
10943 set dummy cp; ac_word=$2
10944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10946 if test "${ac_cv_path_CP+set}" = set; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949   case $CP in
10950   [\\/]* | ?:[\\/]*)
10951   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10952   ;;
10953   *)
10954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10956 do
10957   IFS=$as_save_IFS
10958   test -z "$as_dir" && as_dir=.
10959   for ac_exec_ext in '' $ac_executable_extensions; do
10960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10961     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963     break 2
10964   fi
10965 done
10966 done
10967 IFS=$as_save_IFS
10968
10969   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10970   ;;
10971 esac
10972 fi
10973 CP=$ac_cv_path_CP
10974 if test -n "$CP"; then
10975   { echo "$as_me:$LINENO: result: $CP" >&5
10976 echo "${ECHO_T}$CP" >&6; }
10977 else
10978   { echo "$as_me:$LINENO: result: no" >&5
10979 echo "${ECHO_T}no" >&6; }
10980 fi
10981
10982
10983 # Extract the first word of "rm", so it can be a program name with args.
10984 set dummy rm; ac_word=$2
10985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10987 if test "${ac_cv_path_RM+set}" = set; then
10988   echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990   case $RM in
10991   [\\/]* | ?:[\\/]*)
10992   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10993   ;;
10994   *)
10995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10997 do
10998   IFS=$as_save_IFS
10999   test -z "$as_dir" && as_dir=.
11000   for ac_exec_ext in '' $ac_executable_extensions; do
11001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11004     break 2
11005   fi
11006 done
11007 done
11008 IFS=$as_save_IFS
11009
11010   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11011   ;;
11012 esac
11013 fi
11014 RM=$ac_cv_path_RM
11015 if test -n "$RM"; then
11016   { echo "$as_me:$LINENO: result: $RM" >&5
11017 echo "${ECHO_T}$RM" >&6; }
11018 else
11019   { echo "$as_me:$LINENO: result: no" >&5
11020 echo "${ECHO_T}no" >&6; }
11021 fi
11022
11023
11024 # Extract the first word of "chmod", so it can be a program name with args.
11025 set dummy chmod; ac_word=$2
11026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11028 if test "${ac_cv_path_CHMOD+set}" = set; then
11029   echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031   case $CHMOD in
11032   [\\/]* | ?:[\\/]*)
11033   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11034   ;;
11035   *)
11036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11038 do
11039   IFS=$as_save_IFS
11040   test -z "$as_dir" && as_dir=.
11041   for ac_exec_ext in '' $ac_executable_extensions; do
11042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11043     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11045     break 2
11046   fi
11047 done
11048 done
11049 IFS=$as_save_IFS
11050
11051   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11052   ;;
11053 esac
11054 fi
11055 CHMOD=$ac_cv_path_CHMOD
11056 if test -n "$CHMOD"; then
11057   { echo "$as_me:$LINENO: result: $CHMOD" >&5
11058 echo "${ECHO_T}$CHMOD" >&6; }
11059 else
11060   { echo "$as_me:$LINENO: result: no" >&5
11061 echo "${ECHO_T}no" >&6; }
11062 fi
11063
11064
11065 for ac_prog in gawk mawk nawk awk
11066 do
11067   # Extract the first word of "$ac_prog", so it can be a program name with args.
11068 set dummy $ac_prog; ac_word=$2
11069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11071 if test "${ac_cv_prog_AWK+set}" = set; then
11072   echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074   if test -n "$AWK"; then
11075   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11076 else
11077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078 for as_dir in $PATH
11079 do
11080   IFS=$as_save_IFS
11081   test -z "$as_dir" && as_dir=.
11082   for ac_exec_ext in '' $ac_executable_extensions; do
11083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11084     ac_cv_prog_AWK="$ac_prog"
11085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11086     break 2
11087   fi
11088 done
11089 done
11090 IFS=$as_save_IFS
11091
11092 fi
11093 fi
11094 AWK=$ac_cv_prog_AWK
11095 if test -n "$AWK"; then
11096   { echo "$as_me:$LINENO: result: $AWK" >&5
11097 echo "${ECHO_T}$AWK" >&6; }
11098 else
11099   { echo "$as_me:$LINENO: result: no" >&5
11100 echo "${ECHO_T}no" >&6; }
11101 fi
11102
11103
11104   test -n "$AWK" && break
11105 done
11106
11107 { echo "$as_me:$LINENO: checking for egrep" >&5
11108 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11109 if test "${ac_cv_path_EGREP+set}" = set; then
11110   echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11113    then ac_cv_path_EGREP="$GREP -E"
11114    else
11115      # Extract the first word of "egrep" to use in msg output
11116 if test -z "$EGREP"; then
11117 set dummy egrep; ac_prog_name=$2
11118 if test "${ac_cv_path_EGREP+set}" = set; then
11119   echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121   ac_path_EGREP_found=false
11122 # Loop through the user's path and test for each of PROGNAME-LIST
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11125 do
11126   IFS=$as_save_IFS
11127   test -z "$as_dir" && as_dir=.
11128   for ac_prog in egrep; do
11129   for ac_exec_ext in '' $ac_executable_extensions; do
11130     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11131     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11132     # Check for GNU ac_path_EGREP and select it if it is found.
11133   # Check for GNU $ac_path_EGREP
11134 case `"$ac_path_EGREP" --version 2>&1` in
11135 *GNU*)
11136   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11137 *)
11138   ac_count=0
11139   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11140   while :
11141   do
11142     cat "conftest.in" "conftest.in" >"conftest.tmp"
11143     mv "conftest.tmp" "conftest.in"
11144     cp "conftest.in" "conftest.nl"
11145     echo 'EGREP' >> "conftest.nl"
11146     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11147     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11148     ac_count=`expr $ac_count + 1`
11149     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11150       # Best one so far, save it but keep looking for a better one
11151       ac_cv_path_EGREP="$ac_path_EGREP"
11152       ac_path_EGREP_max=$ac_count
11153     fi
11154     # 10*(2^10) chars as input seems more than enough
11155     test $ac_count -gt 10 && break
11156   done
11157   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11158 esac
11159
11160
11161     $ac_path_EGREP_found && break 3
11162   done
11163 done
11164
11165 done
11166 IFS=$as_save_IFS
11167
11168
11169 fi
11170
11171 EGREP="$ac_cv_path_EGREP"
11172 if test -z "$EGREP"; then
11173   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11174 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11175    { (exit 1); exit 1; }; }
11176 fi
11177
11178 else
11179   ac_cv_path_EGREP=$EGREP
11180 fi
11181
11182
11183    fi
11184 fi
11185 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11186 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11187  EGREP="$ac_cv_path_EGREP"
11188
11189
11190 # Extract the first word of "sed", so it can be a program name with args.
11191 set dummy sed; ac_word=$2
11192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11194 if test "${ac_cv_path_SED+set}" = set; then
11195   echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197   case $SED in
11198   [\\/]* | ?:[\\/]*)
11199   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11200   ;;
11201   *)
11202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11204 do
11205   IFS=$as_save_IFS
11206   test -z "$as_dir" && as_dir=.
11207   for ac_exec_ext in '' $ac_executable_extensions; do
11208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11209     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11211     break 2
11212   fi
11213 done
11214 done
11215 IFS=$as_save_IFS
11216
11217   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11218   ;;
11219 esac
11220 fi
11221 SED=$ac_cv_path_SED
11222 if test -n "$SED"; then
11223   { echo "$as_me:$LINENO: result: $SED" >&5
11224 echo "${ECHO_T}$SED" >&6; }
11225 else
11226   { echo "$as_me:$LINENO: result: no" >&5
11227 echo "${ECHO_T}no" >&6; }
11228 fi
11229
11230
11231 # Extract the first word of "perl", so it can be a program name with args.
11232 set dummy perl; ac_word=$2
11233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11235 if test "${ac_cv_path_PERL+set}" = set; then
11236   echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238   case $PERL in
11239   [\\/]* | ?:[\\/]*)
11240   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11241   ;;
11242   *)
11243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244 for as_dir in $PATH
11245 do
11246   IFS=$as_save_IFS
11247   test -z "$as_dir" && as_dir=.
11248   for ac_exec_ext in '' $ac_executable_extensions; do
11249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11250     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11252     break 2
11253   fi
11254 done
11255 done
11256 IFS=$as_save_IFS
11257
11258   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11259   ;;
11260 esac
11261 fi
11262 PERL=$ac_cv_path_PERL
11263 if test -n "$PERL"; then
11264   { echo "$as_me:$LINENO: result: $PERL" >&5
11265 echo "${ECHO_T}$PERL" >&6; }
11266 else
11267   { echo "$as_me:$LINENO: result: no" >&5
11268 echo "${ECHO_T}no" >&6; }
11269 fi
11270
11271
11272 # Extract the first word of "ldconfig", so it can be a program name with args.
11273 set dummy ldconfig; ac_word=$2
11274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11276 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11277   echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279   case $LDCONFIG in
11280   [\\/]* | ?:[\\/]*)
11281   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11282   ;;
11283   *)
11284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11286 do
11287   IFS=$as_save_IFS
11288   test -z "$as_dir" && as_dir=.
11289   for ac_exec_ext in '' $ac_executable_extensions; do
11290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11293     break 2
11294   fi
11295 done
11296 done
11297 IFS=$as_save_IFS
11298
11299   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11300   ;;
11301 esac
11302 fi
11303 LDCONFIG=$ac_cv_path_LDCONFIG
11304 if test -n "$LDCONFIG"; then
11305   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11306 echo "${ECHO_T}$LDCONFIG" >&6; }
11307 else
11308   { echo "$as_me:$LINENO: result: no" >&5
11309 echo "${ECHO_T}no" >&6; }
11310 fi
11311
11312
11313 if test -n "$ac_tool_prefix"; then
11314   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11315 set dummy ${ac_tool_prefix}ar; ac_word=$2
11316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11318 if test "${ac_cv_prog_AR+set}" = set; then
11319   echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321   if test -n "$AR"; then
11322   ac_cv_prog_AR="$AR" # Let the user override the test.
11323 else
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11326 do
11327   IFS=$as_save_IFS
11328   test -z "$as_dir" && as_dir=.
11329   for ac_exec_ext in '' $ac_executable_extensions; do
11330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11331     ac_cv_prog_AR="${ac_tool_prefix}ar"
11332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11333     break 2
11334   fi
11335 done
11336 done
11337 IFS=$as_save_IFS
11338
11339 fi
11340 fi
11341 AR=$ac_cv_prog_AR
11342 if test -n "$AR"; then
11343   { echo "$as_me:$LINENO: result: $AR" >&5
11344 echo "${ECHO_T}$AR" >&6; }
11345 else
11346   { echo "$as_me:$LINENO: result: no" >&5
11347 echo "${ECHO_T}no" >&6; }
11348 fi
11349
11350
11351 fi
11352 if test -z "$ac_cv_prog_AR"; then
11353   ac_ct_AR=$AR
11354   # Extract the first word of "ar", so it can be a program name with args.
11355 set dummy ar; ac_word=$2
11356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11358 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11359   echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361   if test -n "$ac_ct_AR"; then
11362   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11363 else
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11366 do
11367   IFS=$as_save_IFS
11368   test -z "$as_dir" && as_dir=.
11369   for ac_exec_ext in '' $ac_executable_extensions; do
11370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11371     ac_cv_prog_ac_ct_AR="ar"
11372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11373     break 2
11374   fi
11375 done
11376 done
11377 IFS=$as_save_IFS
11378
11379 fi
11380 fi
11381 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11382 if test -n "$ac_ct_AR"; then
11383   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11384 echo "${ECHO_T}$ac_ct_AR" >&6; }
11385 else
11386   { echo "$as_me:$LINENO: result: no" >&5
11387 echo "${ECHO_T}no" >&6; }
11388 fi
11389
11390   if test "x$ac_ct_AR" = x; then
11391     AR="ar"
11392   else
11393     case $cross_compiling:$ac_tool_warned in
11394 yes:)
11395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11396 whose name does not start with the host triplet.  If you think this
11397 configuration is useful to you, please write to autoconf@gnu.org." >&5
11398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11399 whose name does not start with the host triplet.  If you think this
11400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11401 ac_tool_warned=yes ;;
11402 esac
11403     AR=$ac_ct_AR
11404   fi
11405 else
11406   AR="$ac_cv_prog_AR"
11407 fi
11408
11409 if test -n "$ac_tool_prefix"; then
11410   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11411 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11414 if test "${ac_cv_prog_RANLIB+set}" = set; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   if test -n "$RANLIB"; then
11418   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11419 else
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11422 do
11423   IFS=$as_save_IFS
11424   test -z "$as_dir" && as_dir=.
11425   for ac_exec_ext in '' $ac_executable_extensions; do
11426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11427     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11429     break 2
11430   fi
11431 done
11432 done
11433 IFS=$as_save_IFS
11434
11435 fi
11436 fi
11437 RANLIB=$ac_cv_prog_RANLIB
11438 if test -n "$RANLIB"; then
11439   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11440 echo "${ECHO_T}$RANLIB" >&6; }
11441 else
11442   { echo "$as_me:$LINENO: result: no" >&5
11443 echo "${ECHO_T}no" >&6; }
11444 fi
11445
11446
11447 fi
11448 if test -z "$ac_cv_prog_RANLIB"; then
11449   ac_ct_RANLIB=$RANLIB
11450   # Extract the first word of "ranlib", so it can be a program name with args.
11451 set dummy ranlib; ac_word=$2
11452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11454 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11455   echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457   if test -n "$ac_ct_RANLIB"; then
11458   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11459 else
11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461 for as_dir in $PATH
11462 do
11463   IFS=$as_save_IFS
11464   test -z "$as_dir" && as_dir=.
11465   for ac_exec_ext in '' $ac_executable_extensions; do
11466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11467     ac_cv_prog_ac_ct_RANLIB="ranlib"
11468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11469     break 2
11470   fi
11471 done
11472 done
11473 IFS=$as_save_IFS
11474
11475 fi
11476 fi
11477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11478 if test -n "$ac_ct_RANLIB"; then
11479   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11480 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11481 else
11482   { echo "$as_me:$LINENO: result: no" >&5
11483 echo "${ECHO_T}no" >&6; }
11484 fi
11485
11486   if test "x$ac_ct_RANLIB" = x; then
11487     RANLIB=":"
11488   else
11489     case $cross_compiling:$ac_tool_warned in
11490 yes:)
11491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11492 whose name does not start with the host triplet.  If you think this
11493 configuration is useful to you, please write to autoconf@gnu.org." >&5
11494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11495 whose name does not start with the host triplet.  If you think this
11496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11497 ac_tool_warned=yes ;;
11498 esac
11499     RANLIB=$ac_ct_RANLIB
11500   fi
11501 else
11502   RANLIB="$ac_cv_prog_RANLIB"
11503 fi
11504
11505 if test -n "$ac_tool_prefix"; then
11506   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11507 set dummy ${ac_tool_prefix}strip; ac_word=$2
11508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11510 if test "${ac_cv_prog_STRIP+set}" = set; then
11511   echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513   if test -n "$STRIP"; then
11514   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11515 else
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11518 do
11519   IFS=$as_save_IFS
11520   test -z "$as_dir" && as_dir=.
11521   for ac_exec_ext in '' $ac_executable_extensions; do
11522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11525     break 2
11526   fi
11527 done
11528 done
11529 IFS=$as_save_IFS
11530
11531 fi
11532 fi
11533 STRIP=$ac_cv_prog_STRIP
11534 if test -n "$STRIP"; then
11535   { echo "$as_me:$LINENO: result: $STRIP" >&5
11536 echo "${ECHO_T}$STRIP" >&6; }
11537 else
11538   { echo "$as_me:$LINENO: result: no" >&5
11539 echo "${ECHO_T}no" >&6; }
11540 fi
11541
11542
11543 fi
11544 if test -z "$ac_cv_prog_STRIP"; then
11545   ac_ct_STRIP=$STRIP
11546   # Extract the first word of "strip", so it can be a program name with args.
11547 set dummy strip; ac_word=$2
11548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11550 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553   if test -n "$ac_ct_STRIP"; then
11554   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11555 else
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11558 do
11559   IFS=$as_save_IFS
11560   test -z "$as_dir" && as_dir=.
11561   for ac_exec_ext in '' $ac_executable_extensions; do
11562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11563     ac_cv_prog_ac_ct_STRIP="strip"
11564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11565     break 2
11566   fi
11567 done
11568 done
11569 IFS=$as_save_IFS
11570
11571 fi
11572 fi
11573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11574 if test -n "$ac_ct_STRIP"; then
11575   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11576 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11577 else
11578   { echo "$as_me:$LINENO: result: no" >&5
11579 echo "${ECHO_T}no" >&6; }
11580 fi
11581
11582   if test "x$ac_ct_STRIP" = x; then
11583     STRIP=":"
11584   else
11585     case $cross_compiling:$ac_tool_warned in
11586 yes:)
11587 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11588 whose name does not start with the host triplet.  If you think this
11589 configuration is useful to you, please write to autoconf@gnu.org." >&5
11590 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11591 whose name does not start with the host triplet.  If you think this
11592 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11593 ac_tool_warned=yes ;;
11594 esac
11595     STRIP=$ac_ct_STRIP
11596   fi
11597 else
11598   STRIP="$ac_cv_prog_STRIP"
11599 fi
11600
11601 # Extract the first word of "makeinfo", so it can be a program name with args.
11602 set dummy makeinfo; ac_word=$2
11603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11605 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   if test -n "$MAKEINFO"; then
11609   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11610 else
11611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612 for as_dir in $PATH
11613 do
11614   IFS=$as_save_IFS
11615   test -z "$as_dir" && as_dir=.
11616   for ac_exec_ext in '' $ac_executable_extensions; do
11617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11618     ac_cv_prog_MAKEINFO="makeinfo"
11619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11620     break 2
11621   fi
11622 done
11623 done
11624 IFS=$as_save_IFS
11625
11626 fi
11627 fi
11628 MAKEINFO=$ac_cv_prog_MAKEINFO
11629 if test -n "$MAKEINFO"; then
11630   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11631 echo "${ECHO_T}$MAKEINFO" >&6; }
11632 else
11633   { echo "$as_me:$LINENO: result: no" >&5
11634 echo "${ECHO_T}no" >&6; }
11635 fi
11636
11637
11638 if test "_$MAKEINFO" = "_"; then
11639     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11640 else
11641     case "$MAKEINFO" in
11642       */missing.*)
11643         { echo "$as_me:$LINENO: WARNING:
11644 *** Makeinfo is missing. Info documentation will not be built." >&5
11645 echo "$as_me: WARNING:
11646 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11647         ;;
11648       *)
11649         ;;
11650     esac
11651 fi
11652
11653 # Find a good install program.  We prefer a C program (faster),
11654 # so one script is as good as another.  But avoid the broken or
11655 # incompatible versions:
11656 # SysV /etc/install, /usr/sbin/install
11657 # SunOS /usr/etc/install
11658 # IRIX /sbin/install
11659 # AIX /bin/install
11660 # AmigaOS /C/install, which installs bootblocks on floppy discs
11661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11664 # OS/2's system install, which has a completely different semantic
11665 # ./install, which can be erroneously created by make from ./install.sh.
11666 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11667 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11668 if test -z "$INSTALL"; then
11669 if test "${ac_cv_path_install+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11674 do
11675   IFS=$as_save_IFS
11676   test -z "$as_dir" && as_dir=.
11677   # Account for people who put trailing slashes in PATH elements.
11678 case $as_dir/ in
11679   ./ | .// | /cC/* | \
11680   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11681   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11682   /usr/ucb/* ) ;;
11683   *)
11684     # OSF1 and SCO ODT 3.0 have their own names for install.
11685     # Don't use installbsd from OSF since it installs stuff as root
11686     # by default.
11687     for ac_prog in ginstall scoinst install; do
11688       for ac_exec_ext in '' $ac_executable_extensions; do
11689         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11690           if test $ac_prog = install &&
11691             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11692             # AIX install.  It has an incompatible calling convention.
11693             :
11694           elif test $ac_prog = install &&
11695             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11696             # program-specific install script used by HP pwplus--don't use.
11697             :
11698           else
11699             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11700             break 3
11701           fi
11702         fi
11703       done
11704     done
11705     ;;
11706 esac
11707 done
11708 IFS=$as_save_IFS
11709
11710
11711 fi
11712   if test "${ac_cv_path_install+set}" = set; then
11713     INSTALL=$ac_cv_path_install
11714   else
11715     # As a last resort, use the slow shell script.  Don't cache a
11716     # value for INSTALL within a source directory, because that will
11717     # break other packages using the cache if that directory is
11718     # removed, or if the value is a relative name.
11719     INSTALL=$ac_install_sh
11720   fi
11721 fi
11722 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11723 echo "${ECHO_T}$INSTALL" >&6; }
11724
11725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11726 # It thinks the first close brace ends the variable substitution.
11727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11728
11729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11730
11731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11732
11733 # See if we need a separate native compiler.
11734 if test $cross_compiling = no; then
11735   BUILD_CC="$CC"
11736
11737 else
11738   for ac_prog in gcc cc
11739 do
11740   # Extract the first word of "$ac_prog", so it can be a program name with args.
11741 set dummy $ac_prog; ac_word=$2
11742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11744 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   if test -n "$BUILD_CC"; then
11748   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11749 else
11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11752 do
11753   IFS=$as_save_IFS
11754   test -z "$as_dir" && as_dir=.
11755   for ac_exec_ext in '' $ac_executable_extensions; do
11756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11757     ac_cv_prog_BUILD_CC="$ac_prog"
11758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11759     break 2
11760   fi
11761 done
11762 done
11763 IFS=$as_save_IFS
11764
11765 fi
11766 fi
11767 BUILD_CC=$ac_cv_prog_BUILD_CC
11768 if test -n "$BUILD_CC"; then
11769   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11770 echo "${ECHO_T}$BUILD_CC" >&6; }
11771 else
11772   { echo "$as_me:$LINENO: result: no" >&5
11773 echo "${ECHO_T}no" >&6; }
11774 fi
11775
11776
11777   test -n "$BUILD_CC" && break
11778 done
11779
11780 fi
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816 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
11817 do
11818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11820   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11823   echo $ECHO_N "(cached) $ECHO_C" >&6
11824 fi
11825 ac_res=`eval echo '${'$as_ac_Header'}'`
11826                { echo "$as_me:$LINENO: result: $ac_res" >&5
11827 echo "${ECHO_T}$ac_res" >&6; }
11828 else
11829   # Is the header compilable?
11830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11832 cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h.  */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h.  */
11838 $ac_includes_default
11839 #include <$ac_header>
11840 _ACEOF
11841 rm -f conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845   *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848   (eval "$ac_compile") 2>conftest.er1
11849   ac_status=$?
11850   grep -v '^ *+' conftest.er1 >conftest.err
11851   rm -f conftest.er1
11852   cat conftest.err >&5
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } && {
11855          test -z "$ac_c_werror_flag" ||
11856          test ! -s conftest.err
11857        } && test -s conftest.$ac_objext; then
11858   ac_header_compiler=yes
11859 else
11860   echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11862
11863         ac_header_compiler=no
11864 fi
11865
11866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11868 echo "${ECHO_T}$ac_header_compiler" >&6; }
11869
11870 # Is the header present?
11871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 #include <$ac_header>
11880 _ACEOF
11881 if { (ac_try="$ac_cpp conftest.$ac_ext"
11882 case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888   ac_status=$?
11889   grep -v '^ *+' conftest.er1 >conftest.err
11890   rm -f conftest.er1
11891   cat conftest.err >&5
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); } >/dev/null && {
11894          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11895          test ! -s conftest.err
11896        }; then
11897   ac_header_preproc=yes
11898 else
11899   echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902   ac_header_preproc=no
11903 fi
11904
11905 rm -f conftest.err conftest.$ac_ext
11906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11907 echo "${ECHO_T}$ac_header_preproc" >&6; }
11908
11909 # So?  What about this header?
11910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11911   yes:no: )
11912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11916     ac_header_preproc=yes
11917     ;;
11918   no:yes:* )
11919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11931
11932     ;;
11933 esac
11934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11937   echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939   eval "$as_ac_Header=\$ac_header_preproc"
11940 fi
11941 ac_res=`eval echo '${'$as_ac_Header'}'`
11942                { echo "$as_me:$LINENO: result: $ac_res" >&5
11943 echo "${ECHO_T}$ac_res" >&6; }
11944
11945 fi
11946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11947   cat >>confdefs.h <<_ACEOF
11948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11949 _ACEOF
11950
11951 fi
11952
11953 done
11954
11955
11956
11957 for ac_header in sys/disk.h sys/mount.h
11958 do
11959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11963   echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965   cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h.  */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h.  */
11971
11972 #if HAVE_SYS_QUEUE_H
11973 #include <sys/queue.h>
11974 #endif
11975
11976
11977 #include <$ac_header>
11978 _ACEOF
11979 rm -f conftest.$ac_objext
11980 if { (ac_try="$ac_compile"
11981 case "(($ac_try" in
11982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983   *) ac_try_echo=$ac_try;;
11984 esac
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986   (eval "$ac_compile") 2>conftest.er1
11987   ac_status=$?
11988   grep -v '^ *+' conftest.er1 >conftest.err
11989   rm -f conftest.er1
11990   cat conftest.err >&5
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); } && {
11993          test -z "$ac_c_werror_flag" ||
11994          test ! -s conftest.err
11995        } && test -s conftest.$ac_objext; then
11996   eval "$as_ac_Header=yes"
11997 else
11998   echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001         eval "$as_ac_Header=no"
12002 fi
12003
12004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 fi
12006 ac_res=`eval echo '${'$as_ac_Header'}'`
12007                { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12010   cat >>confdefs.h <<_ACEOF
12011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12012 _ACEOF
12013
12014 fi
12015
12016 done
12017
12018
12019 for ac_header in net/if.h
12020 do
12021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12025   echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027   cat >conftest.$ac_ext <<_ACEOF
12028 /* confdefs.h.  */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h.  */
12033
12034 #if HAVE_SYS_TYPES_H
12035 #include <sys/types.h>
12036 #endif
12037 #if HAVE_SYS_SOCKET
12038 #include <sys/socket.h>
12039 #endif
12040
12041
12042 #include <$ac_header>
12043 _ACEOF
12044 rm -f conftest.$ac_objext
12045 if { (ac_try="$ac_compile"
12046 case "(($ac_try" in
12047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048   *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051   (eval "$ac_compile") 2>conftest.er1
12052   ac_status=$?
12053   grep -v '^ *+' conftest.er1 >conftest.err
12054   rm -f conftest.er1
12055   cat conftest.err >&5
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); } && {
12058          test -z "$ac_c_werror_flag" ||
12059          test ! -s conftest.err
12060        } && test -s conftest.$ac_objext; then
12061   eval "$as_ac_Header=yes"
12062 else
12063   echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12065
12066         eval "$as_ac_Header=no"
12067 fi
12068
12069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 fi
12071 ac_res=`eval echo '${'$as_ac_Header'}'`
12072                { echo "$as_me:$LINENO: result: $ac_res" >&5
12073 echo "${ECHO_T}$ac_res" >&6; }
12074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12075   cat >>confdefs.h <<_ACEOF
12076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12077 _ACEOF
12078
12079 fi
12080
12081 done
12082
12083
12084 for ac_func in vprintf
12085 do
12086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12090   echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092   cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h.  */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h.  */
12098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12100 #define $ac_func innocuous_$ac_func
12101
12102 /* System header to define __stub macros and hopefully few prototypes,
12103     which can conflict with char $ac_func (); below.
12104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12105     <limits.h> exists even on freestanding compilers.  */
12106
12107 #ifdef __STDC__
12108 # include <limits.h>
12109 #else
12110 # include <assert.h>
12111 #endif
12112
12113 #undef $ac_func
12114
12115 /* Override any GCC internal prototype to avoid an error.
12116    Use char because int might match the return type of a GCC
12117    builtin and then its argument prototype would still apply.  */
12118 #ifdef __cplusplus
12119 extern "C"
12120 #endif
12121 char $ac_func ();
12122 /* The GNU C library defines this for functions which it implements
12123     to always fail with ENOSYS.  Some functions are actually named
12124     something starting with __ and the normal name is an alias.  */
12125 #if defined __stub_$ac_func || defined __stub___$ac_func
12126 choke me
12127 #endif
12128
12129 int
12130 main ()
12131 {
12132 return $ac_func ();
12133   ;
12134   return 0;
12135 }
12136 _ACEOF
12137 rm -f conftest.$ac_objext conftest$ac_exeext
12138 if { (ac_try="$ac_link"
12139 case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144   (eval "$ac_link") 2>conftest.er1
12145   ac_status=$?
12146   grep -v '^ *+' conftest.er1 >conftest.err
12147   rm -f conftest.er1
12148   cat conftest.err >&5
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); } && {
12151          test -z "$ac_c_werror_flag" ||
12152          test ! -s conftest.err
12153        } && test -s conftest$ac_exeext &&
12154        $as_test_x conftest$ac_exeext; then
12155   eval "$as_ac_var=yes"
12156 else
12157   echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12159
12160         eval "$as_ac_var=no"
12161 fi
12162
12163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12164       conftest$ac_exeext conftest.$ac_ext
12165 fi
12166 ac_res=`eval echo '${'$as_ac_var'}'`
12167                { echo "$as_me:$LINENO: result: $ac_res" >&5
12168 echo "${ECHO_T}$ac_res" >&6; }
12169 if test `eval echo '${'$as_ac_var'}'` = yes; then
12170   cat >>confdefs.h <<_ACEOF
12171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12172 _ACEOF
12173
12174 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12175 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12176 if test "${ac_cv_func__doprnt+set}" = set; then
12177   echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179   cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h.  */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h.  */
12185 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12187 #define _doprnt innocuous__doprnt
12188
12189 /* System header to define __stub macros and hopefully few prototypes,
12190     which can conflict with char _doprnt (); below.
12191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12192     <limits.h> exists even on freestanding compilers.  */
12193
12194 #ifdef __STDC__
12195 # include <limits.h>
12196 #else
12197 # include <assert.h>
12198 #endif
12199
12200 #undef _doprnt
12201
12202 /* Override any GCC internal prototype to avoid an error.
12203    Use char because int might match the return type of a GCC
12204    builtin and then its argument prototype would still apply.  */
12205 #ifdef __cplusplus
12206 extern "C"
12207 #endif
12208 char _doprnt ();
12209 /* The GNU C library defines this for functions which it implements
12210     to always fail with ENOSYS.  Some functions are actually named
12211     something starting with __ and the normal name is an alias.  */
12212 #if defined __stub__doprnt || defined __stub____doprnt
12213 choke me
12214 #endif
12215
12216 int
12217 main ()
12218 {
12219 return _doprnt ();
12220   ;
12221   return 0;
12222 }
12223 _ACEOF
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (ac_try="$ac_link"
12226 case "(($ac_try" in
12227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228   *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231   (eval "$ac_link") 2>conftest.er1
12232   ac_status=$?
12233   grep -v '^ *+' conftest.er1 >conftest.err
12234   rm -f conftest.er1
12235   cat conftest.err >&5
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); } && {
12238          test -z "$ac_c_werror_flag" ||
12239          test ! -s conftest.err
12240        } && test -s conftest$ac_exeext &&
12241        $as_test_x conftest$ac_exeext; then
12242   ac_cv_func__doprnt=yes
12243 else
12244   echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247         ac_cv_func__doprnt=no
12248 fi
12249
12250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12251       conftest$ac_exeext conftest.$ac_ext
12252 fi
12253 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12254 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12255 if test $ac_cv_func__doprnt = yes; then
12256
12257 cat >>confdefs.h <<\_ACEOF
12258 #define HAVE_DOPRNT 1
12259 _ACEOF
12260
12261 fi
12262
12263 fi
12264 done
12265
12266
12267 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12268 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12269 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12270   echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272   cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278 #include <dirent.h>
12279
12280 int
12281 main ()
12282 {
12283 static struct dirent ac_aggr;
12284 if (ac_aggr.d_reclen)
12285 return 0;
12286   ;
12287   return 0;
12288 }
12289 _ACEOF
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294   *) ac_try_echo=$ac_try;;
12295 esac
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297   (eval "$ac_compile") 2>conftest.er1
12298   ac_status=$?
12299   grep -v '^ *+' conftest.er1 >conftest.err
12300   rm -f conftest.er1
12301   cat conftest.err >&5
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); } && {
12304          test -z "$ac_c_werror_flag" ||
12305          test ! -s conftest.err
12306        } && test -s conftest.$ac_objext; then
12307   ac_cv_member_struct_dirent_d_reclen=yes
12308 else
12309   echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12311
12312         cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h.  */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h.  */
12318 #include <dirent.h>
12319
12320 int
12321 main ()
12322 {
12323 static struct dirent ac_aggr;
12324 if (sizeof ac_aggr.d_reclen)
12325 return 0;
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 rm -f conftest.$ac_objext
12331 if { (ac_try="$ac_compile"
12332 case "(($ac_try" in
12333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334   *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337   (eval "$ac_compile") 2>conftest.er1
12338   ac_status=$?
12339   grep -v '^ *+' conftest.er1 >conftest.err
12340   rm -f conftest.er1
12341   cat conftest.err >&5
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } && {
12344          test -z "$ac_c_werror_flag" ||
12345          test ! -s conftest.err
12346        } && test -s conftest.$ac_objext; then
12347   ac_cv_member_struct_dirent_d_reclen=yes
12348 else
12349   echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12351
12352         ac_cv_member_struct_dirent_d_reclen=no
12353 fi
12354
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 fi
12357
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 fi
12360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12361 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12362 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12363   cat >>confdefs.h <<\_ACEOF
12364 #define HAVE_RECLEN_DIRENT 1
12365 _ACEOF
12366
12367 fi
12368
12369 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12370 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12371 if test "${ac_cv_type_ssize_t+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h.  */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h.  */
12380 #include <sys/types.h>
12381
12382 typedef ssize_t ac__type_new_;
12383 int
12384 main ()
12385 {
12386 if ((ac__type_new_ *) 0)
12387   return 0;
12388 if (sizeof (ac__type_new_))
12389   return 0;
12390   ;
12391   return 0;
12392 }
12393 _ACEOF
12394 rm -f conftest.$ac_objext
12395 if { (ac_try="$ac_compile"
12396 case "(($ac_try" in
12397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398   *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401   (eval "$ac_compile") 2>conftest.er1
12402   ac_status=$?
12403   grep -v '^ *+' conftest.er1 >conftest.err
12404   rm -f conftest.er1
12405   cat conftest.err >&5
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); } && {
12408          test -z "$ac_c_werror_flag" ||
12409          test ! -s conftest.err
12410        } && test -s conftest.$ac_objext; then
12411   ac_cv_type_ssize_t=yes
12412 else
12413   echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416         ac_cv_type_ssize_t=no
12417 fi
12418
12419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420 fi
12421 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12422 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12423 if test $ac_cv_type_ssize_t = yes; then
12424   cat >>confdefs.h <<\_ACEOF
12425 #define HAVE_TYPE_SSIZE_T 1
12426 _ACEOF
12427
12428 fi
12429
12430 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12431 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12432 if test "${ac_cv_have_decl_llseek+set}" = set; then
12433   echo $ECHO_N "(cached) $ECHO_C" >&6
12434 else
12435   cat >conftest.$ac_ext <<_ACEOF
12436 /* confdefs.h.  */
12437 _ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h.  */
12441 #include <unistd.h>
12442
12443 int
12444 main ()
12445 {
12446 #ifndef llseek
12447   (void) llseek;
12448 #endif
12449
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 rm -f conftest.$ac_objext
12455 if { (ac_try="$ac_compile"
12456 case "(($ac_try" in
12457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458   *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461   (eval "$ac_compile") 2>conftest.er1
12462   ac_status=$?
12463   grep -v '^ *+' conftest.er1 >conftest.err
12464   rm -f conftest.er1
12465   cat conftest.err >&5
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } && {
12468          test -z "$ac_c_werror_flag" ||
12469          test ! -s conftest.err
12470        } && test -s conftest.$ac_objext; then
12471   ac_cv_have_decl_llseek=yes
12472 else
12473   echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12475
12476         ac_cv_have_decl_llseek=no
12477 fi
12478
12479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 fi
12481 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12482 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12483 if test $ac_cv_have_decl_llseek = yes; then
12484   cat >>confdefs.h <<\_ACEOF
12485 #define HAVE_LLSEEK_PROTOTYPE 1
12486 _ACEOF
12487
12488 fi
12489
12490 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12491 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12492 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495   cat >conftest.$ac_ext <<_ACEOF
12496 /* confdefs.h.  */
12497 _ACEOF
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h.  */
12501 #define _LARGEFILE_SOURCE
12502                  #define _LARGEFILE64_SOURCE
12503                  #include <unistd.h>
12504
12505 int
12506 main ()
12507 {
12508 #ifndef lseek64
12509   (void) lseek64;
12510 #endif
12511
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 rm -f conftest.$ac_objext
12517 if { (ac_try="$ac_compile"
12518 case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_compile") 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } && {
12530          test -z "$ac_c_werror_flag" ||
12531          test ! -s conftest.err
12532        } && test -s conftest.$ac_objext; then
12533   ac_cv_have_decl_lseek64=yes
12534 else
12535   echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12537
12538         ac_cv_have_decl_lseek64=no
12539 fi
12540
12541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12542 fi
12543 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12544 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12545 if test $ac_cv_have_decl_lseek64 = yes; then
12546   cat >>confdefs.h <<\_ACEOF
12547 #define HAVE_LSEEK64_PROTOTYPE 1
12548 _ACEOF
12549
12550 fi
12551
12552 { echo "$as_me:$LINENO: checking for short" >&5
12553 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12554 if test "${ac_cv_type_short+set}" = set; then
12555   echo $ECHO_N "(cached) $ECHO_C" >&6
12556 else
12557   cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563 $ac_includes_default
12564 typedef short ac__type_new_;
12565 int
12566 main ()
12567 {
12568 if ((ac__type_new_ *) 0)
12569   return 0;
12570 if (sizeof (ac__type_new_))
12571   return 0;
12572   ;
12573   return 0;
12574 }
12575 _ACEOF
12576 rm -f conftest.$ac_objext
12577 if { (ac_try="$ac_compile"
12578 case "(($ac_try" in
12579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580   *) ac_try_echo=$ac_try;;
12581 esac
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583   (eval "$ac_compile") 2>conftest.er1
12584   ac_status=$?
12585   grep -v '^ *+' conftest.er1 >conftest.err
12586   rm -f conftest.er1
12587   cat conftest.err >&5
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } && {
12590          test -z "$ac_c_werror_flag" ||
12591          test ! -s conftest.err
12592        } && test -s conftest.$ac_objext; then
12593   ac_cv_type_short=yes
12594 else
12595   echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12597
12598         ac_cv_type_short=no
12599 fi
12600
12601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12602 fi
12603 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12604 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12605
12606 # The cast to long int works around a bug in the HP C Compiler
12607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12609 # This bug is HP SR number 8606223364.
12610 { echo "$as_me:$LINENO: checking size of short" >&5
12611 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12612 if test "${ac_cv_sizeof_short+set}" = set; then
12613   echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615   if test "$cross_compiling" = yes; then
12616   # Depending upon the size, compute the lo and hi bounds.
12617 cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h.  */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h.  */
12623 $ac_includes_default
12624    typedef short ac__type_sizeof_;
12625 int
12626 main ()
12627 {
12628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12629 test_array [0] = 0
12630
12631   ;
12632   return 0;
12633 }
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (ac_try="$ac_compile"
12637 case "(($ac_try" in
12638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639   *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642   (eval "$ac_compile") 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } && {
12649          test -z "$ac_c_werror_flag" ||
12650          test ! -s conftest.err
12651        } && test -s conftest.$ac_objext; then
12652   ac_lo=0 ac_mid=0
12653   while :; do
12654     cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h.  */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h.  */
12660 $ac_includes_default
12661    typedef short ac__type_sizeof_;
12662 int
12663 main ()
12664 {
12665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12666 test_array [0] = 0
12667
12668   ;
12669   return 0;
12670 }
12671 _ACEOF
12672 rm -f conftest.$ac_objext
12673 if { (ac_try="$ac_compile"
12674 case "(($ac_try" in
12675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676   *) ac_try_echo=$ac_try;;
12677 esac
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679   (eval "$ac_compile") 2>conftest.er1
12680   ac_status=$?
12681   grep -v '^ *+' conftest.er1 >conftest.err
12682   rm -f conftest.er1
12683   cat conftest.err >&5
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); } && {
12686          test -z "$ac_c_werror_flag" ||
12687          test ! -s conftest.err
12688        } && test -s conftest.$ac_objext; then
12689   ac_hi=$ac_mid; break
12690 else
12691   echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12693
12694         ac_lo=`expr $ac_mid + 1`
12695                         if test $ac_lo -le $ac_mid; then
12696                           ac_lo= ac_hi=
12697                           break
12698                         fi
12699                         ac_mid=`expr 2 '*' $ac_mid + 1`
12700 fi
12701
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12703   done
12704 else
12705   echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12707
12708         cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h.  */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h.  */
12714 $ac_includes_default
12715    typedef short ac__type_sizeof_;
12716 int
12717 main ()
12718 {
12719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12720 test_array [0] = 0
12721
12722   ;
12723   return 0;
12724 }
12725 _ACEOF
12726 rm -f conftest.$ac_objext
12727 if { (ac_try="$ac_compile"
12728 case "(($ac_try" in
12729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730   *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733   (eval "$ac_compile") 2>conftest.er1
12734   ac_status=$?
12735   grep -v '^ *+' conftest.er1 >conftest.err
12736   rm -f conftest.er1
12737   cat conftest.err >&5
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); } && {
12740          test -z "$ac_c_werror_flag" ||
12741          test ! -s conftest.err
12742        } && test -s conftest.$ac_objext; then
12743   ac_hi=-1 ac_mid=-1
12744   while :; do
12745     cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h.  */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h.  */
12751 $ac_includes_default
12752    typedef short ac__type_sizeof_;
12753 int
12754 main ()
12755 {
12756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12757 test_array [0] = 0
12758
12759   ;
12760   return 0;
12761 }
12762 _ACEOF
12763 rm -f conftest.$ac_objext
12764 if { (ac_try="$ac_compile"
12765 case "(($ac_try" in
12766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767   *) ac_try_echo=$ac_try;;
12768 esac
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770   (eval "$ac_compile") 2>conftest.er1
12771   ac_status=$?
12772   grep -v '^ *+' conftest.er1 >conftest.err
12773   rm -f conftest.er1
12774   cat conftest.err >&5
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); } && {
12777          test -z "$ac_c_werror_flag" ||
12778          test ! -s conftest.err
12779        } && test -s conftest.$ac_objext; then
12780   ac_lo=$ac_mid; break
12781 else
12782   echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12784
12785         ac_hi=`expr '(' $ac_mid ')' - 1`
12786                         if test $ac_mid -le $ac_hi; then
12787                           ac_lo= ac_hi=
12788                           break
12789                         fi
12790                         ac_mid=`expr 2 '*' $ac_mid`
12791 fi
12792
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794   done
12795 else
12796   echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799         ac_lo= ac_hi=
12800 fi
12801
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 fi
12804
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 # Binary search between lo and hi bounds.
12807 while test "x$ac_lo" != "x$ac_hi"; do
12808   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12809   cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h.  */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h.  */
12815 $ac_includes_default
12816    typedef short ac__type_sizeof_;
12817 int
12818 main ()
12819 {
12820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12821 test_array [0] = 0
12822
12823   ;
12824   return 0;
12825 }
12826 _ACEOF
12827 rm -f conftest.$ac_objext
12828 if { (ac_try="$ac_compile"
12829 case "(($ac_try" in
12830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831   *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834   (eval "$ac_compile") 2>conftest.er1
12835   ac_status=$?
12836   grep -v '^ *+' conftest.er1 >conftest.err
12837   rm -f conftest.er1
12838   cat conftest.err >&5
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } && {
12841          test -z "$ac_c_werror_flag" ||
12842          test ! -s conftest.err
12843        } && test -s conftest.$ac_objext; then
12844   ac_hi=$ac_mid
12845 else
12846   echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12848
12849         ac_lo=`expr '(' $ac_mid ')' + 1`
12850 fi
12851
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 done
12854 case $ac_lo in
12855 ?*) ac_cv_sizeof_short=$ac_lo;;
12856 '') if test "$ac_cv_type_short" = yes; then
12857      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12858 See \`config.log' for more details." >&5
12859 echo "$as_me: error: cannot compute sizeof (short)
12860 See \`config.log' for more details." >&2;}
12861    { (exit 77); exit 77; }; }
12862    else
12863      ac_cv_sizeof_short=0
12864    fi ;;
12865 esac
12866 else
12867   cat >conftest.$ac_ext <<_ACEOF
12868 /* confdefs.h.  */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h.  */
12873 $ac_includes_default
12874    typedef short ac__type_sizeof_;
12875 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12876 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12877 #include <stdio.h>
12878 #include <stdlib.h>
12879 int
12880 main ()
12881 {
12882
12883   FILE *f = fopen ("conftest.val", "w");
12884   if (! f)
12885     return 1;
12886   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12887     {
12888       long int i = longval ();
12889       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12890         return 1;
12891       fprintf (f, "%ld\n", i);
12892     }
12893   else
12894     {
12895       unsigned long int i = ulongval ();
12896       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12897         return 1;
12898       fprintf (f, "%lu\n", i);
12899     }
12900   return ferror (f) || fclose (f) != 0;
12901
12902   ;
12903   return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest$ac_exeext
12907 if { (ac_try="$ac_link"
12908 case "(($ac_try" in
12909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910   *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913   (eval "$ac_link") 2>&5
12914   ac_status=$?
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12917   { (case "(($ac_try" in
12918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919   *) ac_try_echo=$ac_try;;
12920 esac
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922   (eval "$ac_try") 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }; }; then
12926   ac_cv_sizeof_short=`cat conftest.val`
12927 else
12928   echo "$as_me: program exited with status $ac_status" >&5
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12931
12932 ( exit $ac_status )
12933 if test "$ac_cv_type_short" = yes; then
12934      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12935 See \`config.log' for more details." >&5
12936 echo "$as_me: error: cannot compute sizeof (short)
12937 See \`config.log' for more details." >&2;}
12938    { (exit 77); exit 77; }; }
12939    else
12940      ac_cv_sizeof_short=0
12941    fi
12942 fi
12943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12944 fi
12945 rm -f conftest.val
12946 fi
12947 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12948 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12949
12950
12951
12952 cat >>confdefs.h <<_ACEOF
12953 #define SIZEOF_SHORT $ac_cv_sizeof_short
12954 _ACEOF
12955
12956
12957 { echo "$as_me:$LINENO: checking for int" >&5
12958 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12959 if test "${ac_cv_type_int+set}" = set; then
12960   echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962   cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h.  */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h.  */
12968 $ac_includes_default
12969 typedef int ac__type_new_;
12970 int
12971 main ()
12972 {
12973 if ((ac__type_new_ *) 0)
12974   return 0;
12975 if (sizeof (ac__type_new_))
12976   return 0;
12977   ;
12978   return 0;
12979 }
12980 _ACEOF
12981 rm -f conftest.$ac_objext
12982 if { (ac_try="$ac_compile"
12983 case "(($ac_try" in
12984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985   *) ac_try_echo=$ac_try;;
12986 esac
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988   (eval "$ac_compile") 2>conftest.er1
12989   ac_status=$?
12990   grep -v '^ *+' conftest.er1 >conftest.err
12991   rm -f conftest.er1
12992   cat conftest.err >&5
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); } && {
12995          test -z "$ac_c_werror_flag" ||
12996          test ! -s conftest.err
12997        } && test -s conftest.$ac_objext; then
12998   ac_cv_type_int=yes
12999 else
13000   echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13002
13003         ac_cv_type_int=no
13004 fi
13005
13006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13007 fi
13008 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13009 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13010
13011 # The cast to long int works around a bug in the HP C Compiler
13012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13014 # This bug is HP SR number 8606223364.
13015 { echo "$as_me:$LINENO: checking size of int" >&5
13016 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13017 if test "${ac_cv_sizeof_int+set}" = set; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   if test "$cross_compiling" = yes; then
13021   # Depending upon the size, compute the lo and hi bounds.
13022 cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h.  */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h.  */
13028 $ac_includes_default
13029    typedef int ac__type_sizeof_;
13030 int
13031 main ()
13032 {
13033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13034 test_array [0] = 0
13035
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (ac_try="$ac_compile"
13042 case "(($ac_try" in
13043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044   *) ac_try_echo=$ac_try;;
13045 esac
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047   (eval "$ac_compile") 2>conftest.er1
13048   ac_status=$?
13049   grep -v '^ *+' conftest.er1 >conftest.err
13050   rm -f conftest.er1
13051   cat conftest.err >&5
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); } && {
13054          test -z "$ac_c_werror_flag" ||
13055          test ! -s conftest.err
13056        } && test -s conftest.$ac_objext; then
13057   ac_lo=0 ac_mid=0
13058   while :; do
13059     cat >conftest.$ac_ext <<_ACEOF
13060 /* confdefs.h.  */
13061 _ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h.  */
13065 $ac_includes_default
13066    typedef int ac__type_sizeof_;
13067 int
13068 main ()
13069 {
13070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13071 test_array [0] = 0
13072
13073   ;
13074   return 0;
13075 }
13076 _ACEOF
13077 rm -f conftest.$ac_objext
13078 if { (ac_try="$ac_compile"
13079 case "(($ac_try" in
13080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081   *) ac_try_echo=$ac_try;;
13082 esac
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084   (eval "$ac_compile") 2>conftest.er1
13085   ac_status=$?
13086   grep -v '^ *+' conftest.er1 >conftest.err
13087   rm -f conftest.er1
13088   cat conftest.err >&5
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); } && {
13091          test -z "$ac_c_werror_flag" ||
13092          test ! -s conftest.err
13093        } && test -s conftest.$ac_objext; then
13094   ac_hi=$ac_mid; break
13095 else
13096   echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099         ac_lo=`expr $ac_mid + 1`
13100                         if test $ac_lo -le $ac_mid; then
13101                           ac_lo= ac_hi=
13102                           break
13103                         fi
13104                         ac_mid=`expr 2 '*' $ac_mid + 1`
13105 fi
13106
13107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13108   done
13109 else
13110   echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13112
13113         cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h.  */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h.  */
13119 $ac_includes_default
13120    typedef int ac__type_sizeof_;
13121 int
13122 main ()
13123 {
13124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13125 test_array [0] = 0
13126
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 rm -f conftest.$ac_objext
13132 if { (ac_try="$ac_compile"
13133 case "(($ac_try" in
13134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135   *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138   (eval "$ac_compile") 2>conftest.er1
13139   ac_status=$?
13140   grep -v '^ *+' conftest.er1 >conftest.err
13141   rm -f conftest.er1
13142   cat conftest.err >&5
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); } && {
13145          test -z "$ac_c_werror_flag" ||
13146          test ! -s conftest.err
13147        } && test -s conftest.$ac_objext; then
13148   ac_hi=-1 ac_mid=-1
13149   while :; do
13150     cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 $ac_includes_default
13157    typedef int ac__type_sizeof_;
13158 int
13159 main ()
13160 {
13161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13162 test_array [0] = 0
13163
13164   ;
13165   return 0;
13166 }
13167 _ACEOF
13168 rm -f conftest.$ac_objext
13169 if { (ac_try="$ac_compile"
13170 case "(($ac_try" in
13171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172   *) ac_try_echo=$ac_try;;
13173 esac
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175   (eval "$ac_compile") 2>conftest.er1
13176   ac_status=$?
13177   grep -v '^ *+' conftest.er1 >conftest.err
13178   rm -f conftest.er1
13179   cat conftest.err >&5
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); } && {
13182          test -z "$ac_c_werror_flag" ||
13183          test ! -s conftest.err
13184        } && test -s conftest.$ac_objext; then
13185   ac_lo=$ac_mid; break
13186 else
13187   echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190         ac_hi=`expr '(' $ac_mid ')' - 1`
13191                         if test $ac_mid -le $ac_hi; then
13192                           ac_lo= ac_hi=
13193                           break
13194                         fi
13195                         ac_mid=`expr 2 '*' $ac_mid`
13196 fi
13197
13198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199   done
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204         ac_lo= ac_hi=
13205 fi
13206
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 fi
13209
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 # Binary search between lo and hi bounds.
13212 while test "x$ac_lo" != "x$ac_hi"; do
13213   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13214   cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h.  */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h.  */
13220 $ac_includes_default
13221    typedef int ac__type_sizeof_;
13222 int
13223 main ()
13224 {
13225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13226 test_array [0] = 0
13227
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext
13233 if { (ac_try="$ac_compile"
13234 case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239   (eval "$ac_compile") 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } && {
13246          test -z "$ac_c_werror_flag" ||
13247          test ! -s conftest.err
13248        } && test -s conftest.$ac_objext; then
13249   ac_hi=$ac_mid
13250 else
13251   echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254         ac_lo=`expr '(' $ac_mid ')' + 1`
13255 fi
13256
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 done
13259 case $ac_lo in
13260 ?*) ac_cv_sizeof_int=$ac_lo;;
13261 '') if test "$ac_cv_type_int" = yes; then
13262      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13263 See \`config.log' for more details." >&5
13264 echo "$as_me: error: cannot compute sizeof (int)
13265 See \`config.log' for more details." >&2;}
13266    { (exit 77); exit 77; }; }
13267    else
13268      ac_cv_sizeof_int=0
13269    fi ;;
13270 esac
13271 else
13272   cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h.  */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h.  */
13278 $ac_includes_default
13279    typedef int ac__type_sizeof_;
13280 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13281 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13282 #include <stdio.h>
13283 #include <stdlib.h>
13284 int
13285 main ()
13286 {
13287
13288   FILE *f = fopen ("conftest.val", "w");
13289   if (! f)
13290     return 1;
13291   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13292     {
13293       long int i = longval ();
13294       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13295         return 1;
13296       fprintf (f, "%ld\n", i);
13297     }
13298   else
13299     {
13300       unsigned long int i = ulongval ();
13301       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13302         return 1;
13303       fprintf (f, "%lu\n", i);
13304     }
13305   return ferror (f) || fclose (f) != 0;
13306
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 rm -f conftest$ac_exeext
13312 if { (ac_try="$ac_link"
13313 case "(($ac_try" in
13314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315   *) ac_try_echo=$ac_try;;
13316 esac
13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318   (eval "$ac_link") 2>&5
13319   ac_status=$?
13320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13322   { (case "(($ac_try" in
13323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324   *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327   (eval "$ac_try") 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; }; then
13331   ac_cv_sizeof_int=`cat conftest.val`
13332 else
13333   echo "$as_me: program exited with status $ac_status" >&5
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13336
13337 ( exit $ac_status )
13338 if test "$ac_cv_type_int" = yes; then
13339      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13340 See \`config.log' for more details." >&5
13341 echo "$as_me: error: cannot compute sizeof (int)
13342 See \`config.log' for more details." >&2;}
13343    { (exit 77); exit 77; }; }
13344    else
13345      ac_cv_sizeof_int=0
13346    fi
13347 fi
13348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13349 fi
13350 rm -f conftest.val
13351 fi
13352 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13353 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13354
13355
13356
13357 cat >>confdefs.h <<_ACEOF
13358 #define SIZEOF_INT $ac_cv_sizeof_int
13359 _ACEOF
13360
13361
13362 { echo "$as_me:$LINENO: checking for long" >&5
13363 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13364 if test "${ac_cv_type_long+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h.  */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h.  */
13373 $ac_includes_default
13374 typedef long ac__type_new_;
13375 int
13376 main ()
13377 {
13378 if ((ac__type_new_ *) 0)
13379   return 0;
13380 if (sizeof (ac__type_new_))
13381   return 0;
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext
13387 if { (ac_try="$ac_compile"
13388 case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_compile") 2>conftest.er1
13394   ac_status=$?
13395   grep -v '^ *+' conftest.er1 >conftest.err
13396   rm -f conftest.er1
13397   cat conftest.err >&5
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); } && {
13400          test -z "$ac_c_werror_flag" ||
13401          test ! -s conftest.err
13402        } && test -s conftest.$ac_objext; then
13403   ac_cv_type_long=yes
13404 else
13405   echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13407
13408         ac_cv_type_long=no
13409 fi
13410
13411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13412 fi
13413 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13414 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13415
13416 # The cast to long int works around a bug in the HP C Compiler
13417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13419 # This bug is HP SR number 8606223364.
13420 { echo "$as_me:$LINENO: checking size of long" >&5
13421 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13422 if test "${ac_cv_sizeof_long+set}" = set; then
13423   echo $ECHO_N "(cached) $ECHO_C" >&6
13424 else
13425   if test "$cross_compiling" = yes; then
13426   # Depending upon the size, compute the lo and hi bounds.
13427 cat >conftest.$ac_ext <<_ACEOF
13428 /* confdefs.h.  */
13429 _ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h.  */
13433 $ac_includes_default
13434    typedef long ac__type_sizeof_;
13435 int
13436 main ()
13437 {
13438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13439 test_array [0] = 0
13440
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449   *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452   (eval "$ac_compile") 2>conftest.er1
13453   ac_status=$?
13454   grep -v '^ *+' conftest.er1 >conftest.err
13455   rm -f conftest.er1
13456   cat conftest.err >&5
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); } && {
13459          test -z "$ac_c_werror_flag" ||
13460          test ! -s conftest.err
13461        } && test -s conftest.$ac_objext; then
13462   ac_lo=0 ac_mid=0
13463   while :; do
13464     cat >conftest.$ac_ext <<_ACEOF
13465 /* confdefs.h.  */
13466 _ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h.  */
13470 $ac_includes_default
13471    typedef long ac__type_sizeof_;
13472 int
13473 main ()
13474 {
13475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13476 test_array [0] = 0
13477
13478   ;
13479   return 0;
13480 }
13481 _ACEOF
13482 rm -f conftest.$ac_objext
13483 if { (ac_try="$ac_compile"
13484 case "(($ac_try" in
13485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486   *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489   (eval "$ac_compile") 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } && {
13496          test -z "$ac_c_werror_flag" ||
13497          test ! -s conftest.err
13498        } && test -s conftest.$ac_objext; then
13499   ac_hi=$ac_mid; break
13500 else
13501   echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504         ac_lo=`expr $ac_mid + 1`
13505                         if test $ac_lo -le $ac_mid; then
13506                           ac_lo= ac_hi=
13507                           break
13508                         fi
13509                         ac_mid=`expr 2 '*' $ac_mid + 1`
13510 fi
13511
13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513   done
13514 else
13515   echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13517
13518         cat >conftest.$ac_ext <<_ACEOF
13519 /* confdefs.h.  */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h.  */
13524 $ac_includes_default
13525    typedef long ac__type_sizeof_;
13526 int
13527 main ()
13528 {
13529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13530 test_array [0] = 0
13531
13532   ;
13533   return 0;
13534 }
13535 _ACEOF
13536 rm -f conftest.$ac_objext
13537 if { (ac_try="$ac_compile"
13538 case "(($ac_try" in
13539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540   *) ac_try_echo=$ac_try;;
13541 esac
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543   (eval "$ac_compile") 2>conftest.er1
13544   ac_status=$?
13545   grep -v '^ *+' conftest.er1 >conftest.err
13546   rm -f conftest.er1
13547   cat conftest.err >&5
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); } && {
13550          test -z "$ac_c_werror_flag" ||
13551          test ! -s conftest.err
13552        } && test -s conftest.$ac_objext; then
13553   ac_hi=-1 ac_mid=-1
13554   while :; do
13555     cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h.  */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h.  */
13561 $ac_includes_default
13562    typedef long ac__type_sizeof_;
13563 int
13564 main ()
13565 {
13566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13567 test_array [0] = 0
13568
13569   ;
13570   return 0;
13571 }
13572 _ACEOF
13573 rm -f conftest.$ac_objext
13574 if { (ac_try="$ac_compile"
13575 case "(($ac_try" in
13576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577   *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580   (eval "$ac_compile") 2>conftest.er1
13581   ac_status=$?
13582   grep -v '^ *+' conftest.er1 >conftest.err
13583   rm -f conftest.er1
13584   cat conftest.err >&5
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); } && {
13587          test -z "$ac_c_werror_flag" ||
13588          test ! -s conftest.err
13589        } && test -s conftest.$ac_objext; then
13590   ac_lo=$ac_mid; break
13591 else
13592   echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13594
13595         ac_hi=`expr '(' $ac_mid ')' - 1`
13596                         if test $ac_mid -le $ac_hi; then
13597                           ac_lo= ac_hi=
13598                           break
13599                         fi
13600                         ac_mid=`expr 2 '*' $ac_mid`
13601 fi
13602
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604   done
13605 else
13606   echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13608
13609         ac_lo= ac_hi=
13610 fi
13611
13612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13613 fi
13614
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 # Binary search between lo and hi bounds.
13617 while test "x$ac_lo" != "x$ac_hi"; do
13618   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13619   cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h.  */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h.  */
13625 $ac_includes_default
13626    typedef long ac__type_sizeof_;
13627 int
13628 main ()
13629 {
13630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13631 test_array [0] = 0
13632
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_compile") 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } && {
13651          test -z "$ac_c_werror_flag" ||
13652          test ! -s conftest.err
13653        } && test -s conftest.$ac_objext; then
13654   ac_hi=$ac_mid
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659         ac_lo=`expr '(' $ac_mid ')' + 1`
13660 fi
13661
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 done
13664 case $ac_lo in
13665 ?*) ac_cv_sizeof_long=$ac_lo;;
13666 '') if test "$ac_cv_type_long" = yes; then
13667      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13668 See \`config.log' for more details." >&5
13669 echo "$as_me: error: cannot compute sizeof (long)
13670 See \`config.log' for more details." >&2;}
13671    { (exit 77); exit 77; }; }
13672    else
13673      ac_cv_sizeof_long=0
13674    fi ;;
13675 esac
13676 else
13677   cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h.  */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h.  */
13683 $ac_includes_default
13684    typedef long ac__type_sizeof_;
13685 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13686 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13687 #include <stdio.h>
13688 #include <stdlib.h>
13689 int
13690 main ()
13691 {
13692
13693   FILE *f = fopen ("conftest.val", "w");
13694   if (! f)
13695     return 1;
13696   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13697     {
13698       long int i = longval ();
13699       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13700         return 1;
13701       fprintf (f, "%ld\n", i);
13702     }
13703   else
13704     {
13705       unsigned long int i = ulongval ();
13706       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13707         return 1;
13708       fprintf (f, "%lu\n", i);
13709     }
13710   return ferror (f) || fclose (f) != 0;
13711
13712   ;
13713   return 0;
13714 }
13715 _ACEOF
13716 rm -f conftest$ac_exeext
13717 if { (ac_try="$ac_link"
13718 case "(($ac_try" in
13719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720   *) ac_try_echo=$ac_try;;
13721 esac
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723   (eval "$ac_link") 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727   { (case "(($ac_try" in
13728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729   *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732   (eval "$ac_try") 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; }; then
13736   ac_cv_sizeof_long=`cat conftest.val`
13737 else
13738   echo "$as_me: program exited with status $ac_status" >&5
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 ( exit $ac_status )
13743 if test "$ac_cv_type_long" = yes; then
13744      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13745 See \`config.log' for more details." >&5
13746 echo "$as_me: error: cannot compute sizeof (long)
13747 See \`config.log' for more details." >&2;}
13748    { (exit 77); exit 77; }; }
13749    else
13750      ac_cv_sizeof_long=0
13751    fi
13752 fi
13753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13754 fi
13755 rm -f conftest.val
13756 fi
13757 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13758 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13759
13760
13761
13762 cat >>confdefs.h <<_ACEOF
13763 #define SIZEOF_LONG $ac_cv_sizeof_long
13764 _ACEOF
13765
13766
13767 { echo "$as_me:$LINENO: checking for long long" >&5
13768 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13769 if test "${ac_cv_type_long_long+set}" = set; then
13770   echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772   cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h.  */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h.  */
13778 $ac_includes_default
13779 typedef long long ac__type_new_;
13780 int
13781 main ()
13782 {
13783 if ((ac__type_new_ *) 0)
13784   return 0;
13785 if (sizeof (ac__type_new_))
13786   return 0;
13787   ;
13788   return 0;
13789 }
13790 _ACEOF
13791 rm -f conftest.$ac_objext
13792 if { (ac_try="$ac_compile"
13793 case "(($ac_try" in
13794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795   *) ac_try_echo=$ac_try;;
13796 esac
13797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798   (eval "$ac_compile") 2>conftest.er1
13799   ac_status=$?
13800   grep -v '^ *+' conftest.er1 >conftest.err
13801   rm -f conftest.er1
13802   cat conftest.err >&5
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } && {
13805          test -z "$ac_c_werror_flag" ||
13806          test ! -s conftest.err
13807        } && test -s conftest.$ac_objext; then
13808   ac_cv_type_long_long=yes
13809 else
13810   echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813         ac_cv_type_long_long=no
13814 fi
13815
13816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13817 fi
13818 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13819 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13820
13821 # The cast to long int works around a bug in the HP C Compiler
13822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13824 # This bug is HP SR number 8606223364.
13825 { echo "$as_me:$LINENO: checking size of long long" >&5
13826 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13827 if test "${ac_cv_sizeof_long_long+set}" = set; then
13828   echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830   if test "$cross_compiling" = yes; then
13831   # Depending upon the size, compute the lo and hi bounds.
13832 cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h.  */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h.  */
13838 $ac_includes_default
13839    typedef long long ac__type_sizeof_;
13840 int
13841 main ()
13842 {
13843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13844 test_array [0] = 0
13845
13846   ;
13847   return 0;
13848 }
13849 _ACEOF
13850 rm -f conftest.$ac_objext
13851 if { (ac_try="$ac_compile"
13852 case "(($ac_try" in
13853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854   *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857   (eval "$ac_compile") 2>conftest.er1
13858   ac_status=$?
13859   grep -v '^ *+' conftest.er1 >conftest.err
13860   rm -f conftest.er1
13861   cat conftest.err >&5
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); } && {
13864          test -z "$ac_c_werror_flag" ||
13865          test ! -s conftest.err
13866        } && test -s conftest.$ac_objext; then
13867   ac_lo=0 ac_mid=0
13868   while :; do
13869     cat >conftest.$ac_ext <<_ACEOF
13870 /* confdefs.h.  */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h.  */
13875 $ac_includes_default
13876    typedef long long ac__type_sizeof_;
13877 int
13878 main ()
13879 {
13880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13881 test_array [0] = 0
13882
13883   ;
13884   return 0;
13885 }
13886 _ACEOF
13887 rm -f conftest.$ac_objext
13888 if { (ac_try="$ac_compile"
13889 case "(($ac_try" in
13890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891   *) ac_try_echo=$ac_try;;
13892 esac
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894   (eval "$ac_compile") 2>conftest.er1
13895   ac_status=$?
13896   grep -v '^ *+' conftest.er1 >conftest.err
13897   rm -f conftest.er1
13898   cat conftest.err >&5
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); } && {
13901          test -z "$ac_c_werror_flag" ||
13902          test ! -s conftest.err
13903        } && test -s conftest.$ac_objext; then
13904   ac_hi=$ac_mid; break
13905 else
13906   echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909         ac_lo=`expr $ac_mid + 1`
13910                         if test $ac_lo -le $ac_mid; then
13911                           ac_lo= ac_hi=
13912                           break
13913                         fi
13914                         ac_mid=`expr 2 '*' $ac_mid + 1`
13915 fi
13916
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918   done
13919 else
13920   echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923         cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929 $ac_includes_default
13930    typedef long long ac__type_sizeof_;
13931 int
13932 main ()
13933 {
13934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13935 test_array [0] = 0
13936
13937   ;
13938   return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext
13942 if { (ac_try="$ac_compile"
13943 case "(($ac_try" in
13944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945   *) ac_try_echo=$ac_try;;
13946 esac
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948   (eval "$ac_compile") 2>conftest.er1
13949   ac_status=$?
13950   grep -v '^ *+' conftest.er1 >conftest.err
13951   rm -f conftest.er1
13952   cat conftest.err >&5
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); } && {
13955          test -z "$ac_c_werror_flag" ||
13956          test ! -s conftest.err
13957        } && test -s conftest.$ac_objext; then
13958   ac_hi=-1 ac_mid=-1
13959   while :; do
13960     cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h.  */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h.  */
13966 $ac_includes_default
13967    typedef long long ac__type_sizeof_;
13968 int
13969 main ()
13970 {
13971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13972 test_array [0] = 0
13973
13974   ;
13975   return 0;
13976 }
13977 _ACEOF
13978 rm -f conftest.$ac_objext
13979 if { (ac_try="$ac_compile"
13980 case "(($ac_try" in
13981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982   *) ac_try_echo=$ac_try;;
13983 esac
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985   (eval "$ac_compile") 2>conftest.er1
13986   ac_status=$?
13987   grep -v '^ *+' conftest.er1 >conftest.err
13988   rm -f conftest.er1
13989   cat conftest.err >&5
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); } && {
13992          test -z "$ac_c_werror_flag" ||
13993          test ! -s conftest.err
13994        } && test -s conftest.$ac_objext; then
13995   ac_lo=$ac_mid; break
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000         ac_hi=`expr '(' $ac_mid ')' - 1`
14001                         if test $ac_mid -le $ac_hi; then
14002                           ac_lo= ac_hi=
14003                           break
14004                         fi
14005                         ac_mid=`expr 2 '*' $ac_mid`
14006 fi
14007
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009   done
14010 else
14011   echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014         ac_lo= ac_hi=
14015 fi
14016
14017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 fi
14019
14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14021 # Binary search between lo and hi bounds.
14022 while test "x$ac_lo" != "x$ac_hi"; do
14023   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14024   cat >conftest.$ac_ext <<_ACEOF
14025 /* confdefs.h.  */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h.  */
14030 $ac_includes_default
14031    typedef long long ac__type_sizeof_;
14032 int
14033 main ()
14034 {
14035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14036 test_array [0] = 0
14037
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext
14043 if { (ac_try="$ac_compile"
14044 case "(($ac_try" in
14045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046   *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049   (eval "$ac_compile") 2>conftest.er1
14050   ac_status=$?
14051   grep -v '^ *+' conftest.er1 >conftest.err
14052   rm -f conftest.er1
14053   cat conftest.err >&5
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } && {
14056          test -z "$ac_c_werror_flag" ||
14057          test ! -s conftest.err
14058        } && test -s conftest.$ac_objext; then
14059   ac_hi=$ac_mid
14060 else
14061   echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063
14064         ac_lo=`expr '(' $ac_mid ')' + 1`
14065 fi
14066
14067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 done
14069 case $ac_lo in
14070 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14071 '') if test "$ac_cv_type_long_long" = yes; then
14072      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14073 See \`config.log' for more details." >&5
14074 echo "$as_me: error: cannot compute sizeof (long long)
14075 See \`config.log' for more details." >&2;}
14076    { (exit 77); exit 77; }; }
14077    else
14078      ac_cv_sizeof_long_long=0
14079    fi ;;
14080 esac
14081 else
14082   cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h.  */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h.  */
14088 $ac_includes_default
14089    typedef long long ac__type_sizeof_;
14090 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14091 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14092 #include <stdio.h>
14093 #include <stdlib.h>
14094 int
14095 main ()
14096 {
14097
14098   FILE *f = fopen ("conftest.val", "w");
14099   if (! f)
14100     return 1;
14101   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14102     {
14103       long int i = longval ();
14104       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14105         return 1;
14106       fprintf (f, "%ld\n", i);
14107     }
14108   else
14109     {
14110       unsigned long int i = ulongval ();
14111       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14112         return 1;
14113       fprintf (f, "%lu\n", i);
14114     }
14115   return ferror (f) || fclose (f) != 0;
14116
14117   ;
14118   return 0;
14119 }
14120 _ACEOF
14121 rm -f conftest$ac_exeext
14122 if { (ac_try="$ac_link"
14123 case "(($ac_try" in
14124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125   *) ac_try_echo=$ac_try;;
14126 esac
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128   (eval "$ac_link") 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14132   { (case "(($ac_try" in
14133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134   *) ac_try_echo=$ac_try;;
14135 esac
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137   (eval "$ac_try") 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); }; }; then
14141   ac_cv_sizeof_long_long=`cat conftest.val`
14142 else
14143   echo "$as_me: program exited with status $ac_status" >&5
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147 ( exit $ac_status )
14148 if test "$ac_cv_type_long_long" = yes; then
14149      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14150 See \`config.log' for more details." >&5
14151 echo "$as_me: error: cannot compute sizeof (long long)
14152 See \`config.log' for more details." >&2;}
14153    { (exit 77); exit 77; }; }
14154    else
14155      ac_cv_sizeof_long_long=0
14156    fi
14157 fi
14158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14159 fi
14160 rm -f conftest.val
14161 fi
14162 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14163 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14164
14165
14166
14167 cat >>confdefs.h <<_ACEOF
14168 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14169 _ACEOF
14170
14171
14172 SIZEOF_SHORT=$ac_cv_sizeof_short
14173 SIZEOF_INT=$ac_cv_sizeof_int
14174 SIZEOF_LONG=$ac_cv_sizeof_long
14175 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14176
14177
14178
14179
14180 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14181 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14182 if test "${ac_cv_c_bigendian+set}" = set; then
14183   echo $ECHO_N "(cached) $ECHO_C" >&6
14184 else
14185   # See if sys/param.h defines the BYTE_ORDER macro.
14186 cat >conftest.$ac_ext <<_ACEOF
14187 /* confdefs.h.  */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h.  */
14192 #include <sys/types.h>
14193 #include <sys/param.h>
14194
14195 int
14196 main ()
14197 {
14198 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14199         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14200  bogus endian macros
14201 #endif
14202
14203   ;
14204   return 0;
14205 }
14206 _ACEOF
14207 rm -f conftest.$ac_objext
14208 if { (ac_try="$ac_compile"
14209 case "(($ac_try" in
14210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211   *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214   (eval "$ac_compile") 2>conftest.er1
14215   ac_status=$?
14216   grep -v '^ *+' conftest.er1 >conftest.err
14217   rm -f conftest.er1
14218   cat conftest.err >&5
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); } && {
14221          test -z "$ac_c_werror_flag" ||
14222          test ! -s conftest.err
14223        } && test -s conftest.$ac_objext; then
14224   # It does; now see whether it defined to BIG_ENDIAN or not.
14225 cat >conftest.$ac_ext <<_ACEOF
14226 /* confdefs.h.  */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h.  */
14231 #include <sys/types.h>
14232 #include <sys/param.h>
14233
14234 int
14235 main ()
14236 {
14237 #if BYTE_ORDER != BIG_ENDIAN
14238  not big endian
14239 #endif
14240
14241   ;
14242   return 0;
14243 }
14244 _ACEOF
14245 rm -f conftest.$ac_objext
14246 if { (ac_try="$ac_compile"
14247 case "(($ac_try" in
14248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249   *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252   (eval "$ac_compile") 2>conftest.er1
14253   ac_status=$?
14254   grep -v '^ *+' conftest.er1 >conftest.err
14255   rm -f conftest.er1
14256   cat conftest.err >&5
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); } && {
14259          test -z "$ac_c_werror_flag" ||
14260          test ! -s conftest.err
14261        } && test -s conftest.$ac_objext; then
14262   ac_cv_c_bigendian=yes
14263 else
14264   echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267         ac_cv_c_bigendian=no
14268 fi
14269
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 else
14272   echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275         # It does not; compile a test program.
14276 if test "$cross_compiling" = yes; then
14277   # try to guess the endianness by grepping values into an object file
14278   ac_cv_c_bigendian=unknown
14279   cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h.  */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h.  */
14285 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14286 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14287 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14288 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14289 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14290 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14291 int
14292 main ()
14293 {
14294  _ascii (); _ebcdic ();
14295   ;
14296   return 0;
14297 }
14298 _ACEOF
14299 rm -f conftest.$ac_objext
14300 if { (ac_try="$ac_compile"
14301 case "(($ac_try" in
14302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303   *) ac_try_echo=$ac_try;;
14304 esac
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306   (eval "$ac_compile") 2>conftest.er1
14307   ac_status=$?
14308   grep -v '^ *+' conftest.er1 >conftest.err
14309   rm -f conftest.er1
14310   cat conftest.err >&5
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); } && {
14313          test -z "$ac_c_werror_flag" ||
14314          test ! -s conftest.err
14315        } && test -s conftest.$ac_objext; then
14316   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14317   ac_cv_c_bigendian=yes
14318 fi
14319 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14320   if test "$ac_cv_c_bigendian" = unknown; then
14321     ac_cv_c_bigendian=no
14322   else
14323     # finding both strings is unlikely to happen, but who knows?
14324     ac_cv_c_bigendian=unknown
14325   fi
14326 fi
14327 else
14328   echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331
14332 fi
14333
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 else
14336   cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342 $ac_includes_default
14343 int
14344 main ()
14345 {
14346
14347   /* Are we little or big endian?  From Harbison&Steele.  */
14348   union
14349   {
14350     long int l;
14351     char c[sizeof (long int)];
14352   } u;
14353   u.l = 1;
14354   return u.c[sizeof (long int) - 1] == 1;
14355
14356   ;
14357   return 0;
14358 }
14359 _ACEOF
14360 rm -f conftest$ac_exeext
14361 if { (ac_try="$ac_link"
14362 case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_link") 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14371   { (case "(($ac_try" in
14372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373   *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376   (eval "$ac_try") 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; }; then
14380   ac_cv_c_bigendian=no
14381 else
14382   echo "$as_me: program exited with status $ac_status" >&5
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14385
14386 ( exit $ac_status )
14387 ac_cv_c_bigendian=yes
14388 fi
14389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14390 fi
14391
14392
14393 fi
14394
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396 fi
14397 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14398 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14399 case $ac_cv_c_bigendian in
14400   yes)
14401
14402 cat >>confdefs.h <<\_ACEOF
14403 #define WORDS_BIGENDIAN 1
14404 _ACEOF
14405  ;;
14406   no)
14407      ;;
14408   *)
14409     { { echo "$as_me:$LINENO: error: unknown endianness
14410 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14411 echo "$as_me: error: unknown endianness
14412 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14413    { (exit 1); exit 1; }; } ;;
14414 esac
14415
14416 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14417 ASM_TYPES_HEADER=./asm_types.h
14418
14419 echo "/* These defines are needed for the public ext2fs.h header file */" \
14420      > public_config.h
14421 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14422   uniq tmp_config.$$ >> public_config.h
14423 else
14424   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14425 fi
14426 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14427   uniq tmp_config.$$ >> public_config.h
14428 else
14429   echo "#undef WORDS_BIGENDIAN" >> public_config.h
14430 fi
14431 rm -f tmp_config.$$
14432 PUBLIC_CONFIG_HEADER=./public_config.h
14433
14434
14435 for ac_header in inttypes.h
14436 do
14437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14439   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14442   echo $ECHO_N "(cached) $ECHO_C" >&6
14443 fi
14444 ac_res=`eval echo '${'$as_ac_Header'}'`
14445                { echo "$as_me:$LINENO: result: $ac_res" >&5
14446 echo "${ECHO_T}$ac_res" >&6; }
14447 else
14448   # Is the header compilable?
14449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14451 cat >conftest.$ac_ext <<_ACEOF
14452 /* confdefs.h.  */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h.  */
14457 $ac_includes_default
14458 #include <$ac_header>
14459 _ACEOF
14460 rm -f conftest.$ac_objext
14461 if { (ac_try="$ac_compile"
14462 case "(($ac_try" in
14463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464   *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467   (eval "$ac_compile") 2>conftest.er1
14468   ac_status=$?
14469   grep -v '^ *+' conftest.er1 >conftest.err
14470   rm -f conftest.er1
14471   cat conftest.err >&5
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } && {
14474          test -z "$ac_c_werror_flag" ||
14475          test ! -s conftest.err
14476        } && test -s conftest.$ac_objext; then
14477   ac_header_compiler=yes
14478 else
14479   echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14481
14482         ac_header_compiler=no
14483 fi
14484
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14487 echo "${ECHO_T}$ac_header_compiler" >&6; }
14488
14489 # Is the header present?
14490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14492 cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h.  */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h.  */
14498 #include <$ac_header>
14499 _ACEOF
14500 if { (ac_try="$ac_cpp conftest.$ac_ext"
14501 case "(($ac_try" in
14502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503   *) ac_try_echo=$ac_try;;
14504 esac
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14507   ac_status=$?
14508   grep -v '^ *+' conftest.er1 >conftest.err
14509   rm -f conftest.er1
14510   cat conftest.err >&5
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } >/dev/null && {
14513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14514          test ! -s conftest.err
14515        }; then
14516   ac_header_preproc=yes
14517 else
14518   echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521   ac_header_preproc=no
14522 fi
14523
14524 rm -f conftest.err conftest.$ac_ext
14525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14526 echo "${ECHO_T}$ac_header_preproc" >&6; }
14527
14528 # So?  What about this header?
14529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14530   yes:no: )
14531     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14535     ac_header_preproc=yes
14536     ;;
14537   no:yes:* )
14538     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14540     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14541 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14542     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14544     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14545 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14548     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14550
14551     ;;
14552 esac
14553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14556   echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558   eval "$as_ac_Header=\$ac_header_preproc"
14559 fi
14560 ac_res=`eval echo '${'$as_ac_Header'}'`
14561                { echo "$as_me:$LINENO: result: $ac_res" >&5
14562 echo "${ECHO_T}$ac_res" >&6; }
14563
14564 fi
14565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14566   cat >>confdefs.h <<_ACEOF
14567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14568 _ACEOF
14569
14570 fi
14571
14572 done
14573
14574 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14575 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14576 if test "${ac_cv_type_intptr_t+set}" = set; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579   cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h.  */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h.  */
14585 $ac_includes_default
14586 typedef intptr_t ac__type_new_;
14587 int
14588 main ()
14589 {
14590 if ((ac__type_new_ *) 0)
14591   return 0;
14592 if (sizeof (ac__type_new_))
14593   return 0;
14594   ;
14595   return 0;
14596 }
14597 _ACEOF
14598 rm -f conftest.$ac_objext
14599 if { (ac_try="$ac_compile"
14600 case "(($ac_try" in
14601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602   *) ac_try_echo=$ac_try;;
14603 esac
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605   (eval "$ac_compile") 2>conftest.er1
14606   ac_status=$?
14607   grep -v '^ *+' conftest.er1 >conftest.err
14608   rm -f conftest.er1
14609   cat conftest.err >&5
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); } && {
14612          test -z "$ac_c_werror_flag" ||
14613          test ! -s conftest.err
14614        } && test -s conftest.$ac_objext; then
14615   ac_cv_type_intptr_t=yes
14616 else
14617   echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14619
14620         ac_cv_type_intptr_t=no
14621 fi
14622
14623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624 fi
14625 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14626 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14627 if test $ac_cv_type_intptr_t = yes; then
14628
14629 cat >>confdefs.h <<_ACEOF
14630 #define HAVE_INTPTR_T 1
14631 _ACEOF
14632
14633
14634 fi
14635
14636 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14637 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14638 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14639   echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641   cat >conftest.$ac_ext <<_ACEOF
14642 /* confdefs.h.  */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h.  */
14647 #include <sys/stat.h>
14648 int
14649 main ()
14650 {
14651 struct stat stat; stat.st_flags = 0;
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656 rm -f conftest.$ac_objext
14657 if { (ac_try="$ac_compile"
14658 case "(($ac_try" in
14659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660   *) ac_try_echo=$ac_try;;
14661 esac
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663   (eval "$ac_compile") 2>conftest.er1
14664   ac_status=$?
14665   grep -v '^ *+' conftest.er1 >conftest.err
14666   rm -f conftest.er1
14667   cat conftest.err >&5
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); } && {
14670          test -z "$ac_c_werror_flag" ||
14671          test ! -s conftest.err
14672        } && test -s conftest.$ac_objext; then
14673   e2fsprogs_cv_struct_st_flags=yes
14674 else
14675   echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14677
14678         e2fsprogs_cv_struct_st_flags=no
14679 fi
14680
14681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 fi
14683
14684 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14685 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14686 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14687   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14688 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14689   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14690   echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692   cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698 #include <sys/stat.h>
14699 int
14700 main ()
14701 {
14702 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14703   ;
14704   return 0;
14705 }
14706 _ACEOF
14707 rm -f conftest.$ac_objext
14708 if { (ac_try="$ac_compile"
14709 case "(($ac_try" in
14710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711   *) ac_try_echo=$ac_try;;
14712 esac
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714   (eval "$ac_compile") 2>conftest.er1
14715   ac_status=$?
14716   grep -v '^ *+' conftest.er1 >conftest.err
14717   rm -f conftest.er1
14718   cat conftest.err >&5
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } && {
14721          test -z "$ac_c_werror_flag" ||
14722          test ! -s conftest.err
14723        } && test -s conftest.$ac_objext; then
14724   e2fsprogs_cv_struct_st_flags_immut=yes
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729         e2fsprogs_cv_struct_st_flags_immut=no
14730 fi
14731
14732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733 fi
14734
14735   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14736 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14737   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14738           cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_STAT_FLAGS 1
14740 _ACEOF
14741
14742   fi
14743 fi
14744 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14745 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14746 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14747   echo $ECHO_N "(cached) $ECHO_C" >&6
14748 else
14749   cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h.  */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h.  */
14755 #include <sys/types.h>
14756          #include <sys/socket.h>
14757
14758 int
14759 main ()
14760 {
14761 static struct sockaddr ac_aggr;
14762 if (ac_aggr.sa_len)
14763 return 0;
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 rm -f conftest.$ac_objext
14769 if { (ac_try="$ac_compile"
14770 case "(($ac_try" in
14771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772   *) ac_try_echo=$ac_try;;
14773 esac
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775   (eval "$ac_compile") 2>conftest.er1
14776   ac_status=$?
14777   grep -v '^ *+' conftest.er1 >conftest.err
14778   rm -f conftest.er1
14779   cat conftest.err >&5
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); } && {
14782          test -z "$ac_c_werror_flag" ||
14783          test ! -s conftest.err
14784        } && test -s conftest.$ac_objext; then
14785   ac_cv_member_struct_sockaddr_sa_len=yes
14786 else
14787   echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14789
14790         cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h.  */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h.  */
14796 #include <sys/types.h>
14797          #include <sys/socket.h>
14798
14799 int
14800 main ()
14801 {
14802 static struct sockaddr ac_aggr;
14803 if (sizeof ac_aggr.sa_len)
14804 return 0;
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813   *) ac_try_echo=$ac_try;;
14814 esac
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816   (eval "$ac_compile") 2>conftest.er1
14817   ac_status=$?
14818   grep -v '^ *+' conftest.er1 >conftest.err
14819   rm -f conftest.er1
14820   cat conftest.err >&5
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); } && {
14823          test -z "$ac_c_werror_flag" ||
14824          test ! -s conftest.err
14825        } && test -s conftest.$ac_objext; then
14826   ac_cv_member_struct_sockaddr_sa_len=yes
14827 else
14828   echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14830
14831         ac_cv_member_struct_sockaddr_sa_len=no
14832 fi
14833
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14835 fi
14836
14837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838 fi
14839 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14840 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14841 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14842
14843 cat >>confdefs.h <<_ACEOF
14844 #define HAVE_SA_LEN 1
14845 _ACEOF
14846
14847 fi
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878 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
14879 do
14880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14884   echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886   cat >conftest.$ac_ext <<_ACEOF
14887 /* confdefs.h.  */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h.  */
14892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14894 #define $ac_func innocuous_$ac_func
14895
14896 /* System header to define __stub macros and hopefully few prototypes,
14897     which can conflict with char $ac_func (); below.
14898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14899     <limits.h> exists even on freestanding compilers.  */
14900
14901 #ifdef __STDC__
14902 # include <limits.h>
14903 #else
14904 # include <assert.h>
14905 #endif
14906
14907 #undef $ac_func
14908
14909 /* Override any GCC internal prototype to avoid an error.
14910    Use char because int might match the return type of a GCC
14911    builtin and then its argument prototype would still apply.  */
14912 #ifdef __cplusplus
14913 extern "C"
14914 #endif
14915 char $ac_func ();
14916 /* The GNU C library defines this for functions which it implements
14917     to always fail with ENOSYS.  Some functions are actually named
14918     something starting with __ and the normal name is an alias.  */
14919 #if defined __stub_$ac_func || defined __stub___$ac_func
14920 choke me
14921 #endif
14922
14923 int
14924 main ()
14925 {
14926 return $ac_func ();
14927   ;
14928   return 0;
14929 }
14930 _ACEOF
14931 rm -f conftest.$ac_objext conftest$ac_exeext
14932 if { (ac_try="$ac_link"
14933 case "(($ac_try" in
14934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935   *) ac_try_echo=$ac_try;;
14936 esac
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938   (eval "$ac_link") 2>conftest.er1
14939   ac_status=$?
14940   grep -v '^ *+' conftest.er1 >conftest.err
14941   rm -f conftest.er1
14942   cat conftest.err >&5
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } && {
14945          test -z "$ac_c_werror_flag" ||
14946          test ! -s conftest.err
14947        } && test -s conftest$ac_exeext &&
14948        $as_test_x conftest$ac_exeext; then
14949   eval "$as_ac_var=yes"
14950 else
14951   echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954         eval "$as_ac_var=no"
14955 fi
14956
14957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14958       conftest$ac_exeext conftest.$ac_ext
14959 fi
14960 ac_res=`eval echo '${'$as_ac_var'}'`
14961                { echo "$as_me:$LINENO: result: $ac_res" >&5
14962 echo "${ECHO_T}$ac_res" >&6; }
14963 if test `eval echo '${'$as_ac_var'}'` = yes; then
14964   cat >>confdefs.h <<_ACEOF
14965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14966 _ACEOF
14967
14968 fi
14969 done
14970
14971 SOCKET_LIB=''
14972 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14973 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14974 if test "${ac_cv_lib_socket_socket+set}" = set; then
14975   echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977   ac_check_lib_save_LIBS=$LIBS
14978 LIBS="-lsocket  $LIBS"
14979 cat >conftest.$ac_ext <<_ACEOF
14980 /* confdefs.h.  */
14981 _ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h.  */
14985
14986 /* Override any GCC internal prototype to avoid an error.
14987    Use char because int might match the return type of a GCC
14988    builtin and then its argument prototype would still apply.  */
14989 #ifdef __cplusplus
14990 extern "C"
14991 #endif
14992 char socket ();
14993 int
14994 main ()
14995 {
14996 return socket ();
14997   ;
14998   return 0;
14999 }
15000 _ACEOF
15001 rm -f conftest.$ac_objext conftest$ac_exeext
15002 if { (ac_try="$ac_link"
15003 case "(($ac_try" in
15004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005   *) ac_try_echo=$ac_try;;
15006 esac
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008   (eval "$ac_link") 2>conftest.er1
15009   ac_status=$?
15010   grep -v '^ *+' conftest.er1 >conftest.err
15011   rm -f conftest.er1
15012   cat conftest.err >&5
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); } && {
15015          test -z "$ac_c_werror_flag" ||
15016          test ! -s conftest.err
15017        } && test -s conftest$ac_exeext &&
15018        $as_test_x conftest$ac_exeext; then
15019   ac_cv_lib_socket_socket=yes
15020 else
15021   echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024         ac_cv_lib_socket_socket=no
15025 fi
15026
15027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15028       conftest$ac_exeext conftest.$ac_ext
15029 LIBS=$ac_check_lib_save_LIBS
15030 fi
15031 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15032 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15033 if test $ac_cv_lib_socket_socket = yes; then
15034   SOCKET_LIB=-lsocket
15035 fi
15036
15037
15038 DLOPEN_LIB=''
15039 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15040 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15041 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15042   echo $ECHO_N "(cached) $ECHO_C" >&6
15043 else
15044   ac_check_lib_save_LIBS=$LIBS
15045 LIBS="-ldl  $LIBS"
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h.  */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h.  */
15052
15053 /* Override any GCC internal prototype to avoid an error.
15054    Use char because int might match the return type of a GCC
15055    builtin and then its argument prototype would still apply.  */
15056 #ifdef __cplusplus
15057 extern "C"
15058 #endif
15059 char dlopen ();
15060 int
15061 main ()
15062 {
15063 return dlopen ();
15064   ;
15065   return 0;
15066 }
15067 _ACEOF
15068 rm -f conftest.$ac_objext conftest$ac_exeext
15069 if { (ac_try="$ac_link"
15070 case "(($ac_try" in
15071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072   *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075   (eval "$ac_link") 2>conftest.er1
15076   ac_status=$?
15077   grep -v '^ *+' conftest.er1 >conftest.err
15078   rm -f conftest.er1
15079   cat conftest.err >&5
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); } && {
15082          test -z "$ac_c_werror_flag" ||
15083          test ! -s conftest.err
15084        } && test -s conftest$ac_exeext &&
15085        $as_test_x conftest$ac_exeext; then
15086   ac_cv_lib_dl_dlopen=yes
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091         ac_cv_lib_dl_dlopen=no
15092 fi
15093
15094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15095       conftest$ac_exeext conftest.$ac_ext
15096 LIBS=$ac_check_lib_save_LIBS
15097 fi
15098 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15099 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15100 if test $ac_cv_lib_dl_dlopen = yes; then
15101   DLOPEN_LIB=-ldl
15102 cat >>confdefs.h <<\_ACEOF
15103 #define HAVE_DLOPEN 1
15104 _ACEOF
15105
15106 fi
15107
15108
15109 { echo "$as_me:$LINENO: checking for optreset" >&5
15110 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15111 if test "${ac_cv_have_optreset+set}" = set; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114   cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h.  */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h.  */
15120 #include <unistd.h>
15121
15122 _ACEOF
15123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15124   $EGREP "optreset" >/dev/null 2>&1; then
15125   ac_cv_have_optreset=yes
15126 else
15127   ac_cv_have_optreset=no
15128 fi
15129 rm -f conftest*
15130
15131 fi
15132 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15133 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15134 if test $ac_cv_have_optreset = yes; then
15135   cat >>confdefs.h <<\_ACEOF
15136 #define HAVE_OPTRESET 1
15137 _ACEOF
15138
15139 fi
15140 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15141 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15142 if diff -u $0 $0 > /dev/null 2>&1 ; then
15143    UNI_DIFF_OPTS=-u
15144 else
15145    UNI_DIFF_OPTS=-c
15146 fi
15147 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15148 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15149
15150 case "$host_os" in
15151 linux*)
15152         cat >>confdefs.h <<\_ACEOF
15153 #define HAVE_EXT2_IOCTLS 1
15154 _ACEOF
15155
15156         ;;
15157 esac
15158 LINUX_CMT="#"
15159 CYGWIN_CMT="#"
15160 UNIX_CMT=
15161 case "$host_os" in
15162 linux*)
15163         LINUX_CMT=
15164         ;;
15165 cygwin)
15166         CYGWIN_CMT=
15167         UNIX_CMT="#"
15168         ;;
15169 esac
15170
15171
15172
15173 case "$host_os" in
15174 linux* | gnu* | k*bsd*-gnu)
15175         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15176                 root_prefix="";
15177                 echo "On $host_os systems, root_prefix defaults to ''"
15178         fi
15179         ;;
15180 esac
15181 case "$host_os" in
15182 linux* | gnu* | k*bsd*-gnu)
15183         if test "$prefix" = NONE ; then
15184                 prefix="/usr";
15185                 echo "On $host_os systems, prefix defaults to /usr"
15186                 if test "$mandir" = '${prefix}/man' ; then
15187                         echo "...and mandir defaults to /usr/share/man"
15188                         mandir=/usr/share/man
15189                 fi
15190         fi
15191 ;;
15192 esac
15193 if test "$root_prefix" = NONE ; then
15194         if test "$prefix" = NONE ; then
15195                 root_prefix="$ac_default_prefix"
15196         else
15197                 root_prefix="$prefix"
15198         fi
15199         root_bindir=$bindir
15200         root_sbindir=$sbindir
15201         root_libdir=$libdir
15202         root_sysconfdir=$sysconfdir
15203 else
15204         root_bindir='${root_prefix}/bin'
15205         root_sbindir='${root_prefix}/sbin'
15206         root_libdir='${root_prefix}/lib'
15207         root_sysconfdir='${root_prefix}/etc'
15208 fi
15209 if test "$bindir" != '${exec_prefix}/bin'; then
15210     root_bindir=$bindir
15211     echo "Setting root_bindir to $root_bindir"
15212 fi
15213 if test "$sbindir" != '${exec_prefix}/sbin'; then
15214     root_sbindir=$sbindir
15215     echo "Setting root_sbindir to $root_sbindir"
15216 fi
15217 if test "$libdir" != '${exec_prefix}/lib'; then
15218     root_libdir=$libdir
15219     echo "Setting root_libdir to $root_libdir"
15220 fi
15221 if test "$sysconfdir" != '${prefix}/etc'; then
15222     root_sysconfdir=$sysconfdir
15223     echo "Setting root_sysconfdir to $root_sysconfdir"
15224 fi
15225
15226
15227
15228
15229
15230 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15231 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15232 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15236 cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h.  */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h.  */
15242 #include <stdio.h>
15243 int
15244 main ()
15245 {
15246 fflush(stdout);
15247   ;
15248   return 0;
15249 }
15250 _ACEOF
15251 rm -f conftest.$ac_objext conftest$ac_exeext
15252 if { (ac_try="$ac_link"
15253 case "(($ac_try" in
15254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255   *) ac_try_echo=$ac_try;;
15256 esac
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258   (eval "$ac_link") 2>conftest.er1
15259   ac_status=$?
15260   grep -v '^ *+' conftest.er1 >conftest.err
15261   rm -f conftest.er1
15262   cat conftest.err >&5
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); } && {
15265          test -z "$ac_c_werror_flag" ||
15266          test ! -s conftest.err
15267        } && test -s conftest$ac_exeext &&
15268        $as_test_x conftest$ac_exeext; then
15269   ac_cv_e2fsprogs_use_static=yes
15270 else
15271   echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274         ac_cv_e2fsprogs_use_static=no
15275 fi
15276
15277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15278       conftest$ac_exeext conftest.$ac_ext
15279 LDFLAGS=$SAVE_LDFLAGS
15280 fi
15281
15282 case "$host_os" in
15283 solaris2.*)
15284         ac_cv_e2fsprogs_use_static=no
15285 ;;
15286 esac
15287 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15288 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15289 LDFLAG_STATIC=
15290 if test $ac_cv_e2fsprogs_use_static = yes; then
15291         LDFLAG_STATIC=-static
15292 fi
15293
15294 case "$host_os" in
15295 darwin*)
15296         echo "Using Apple Darwin / GNU libintl workaround"
15297         cat >>confdefs.h <<\_ACEOF
15298 #define _INTL_REDIRECT_MACROS 1
15299 _ACEOF
15300
15301         ;;
15302 esac
15303 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15304 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15305
15306
15307 if test "$cross_compiling" = yes ; then
15308   DO_TEST_SUITE=
15309 else
15310   DO_TEST_SUITE=check
15311 fi
15312
15313 INTL_FLAGS=
15314 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15315         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15316 fi
15317
15318 if test $cross_compiling = no; then
15319    BUILD_CFLAGS="$CFLAGS"
15320    BUILD_LDFLAGS="$LDFLAGS"
15321 else
15322    BUILD_CFLAGS=
15323    BUILD_LDFLAGS=
15324 fi
15325
15326
15327 test -d lib || mkdir lib
15328 test -d include || mkdir include
15329 test -d include/linux || mkdir include/linux
15330 test -d include/asm || mkdir include/asm
15331 for i in MCONFIG Makefile e2fsprogs.spec \
15332         util/Makefile util/subst.conf util/gen-tarball \
15333         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15334         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15335         lib/uuid/Makefile lib/uuid/uuid_types.h \
15336         lib/blkid/Makefile lib/blkid/blkid_types.h \
15337         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15338         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15339         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15340         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15341         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15342         if test -d `dirname ${srcdir}/$i` ; then
15343                 outlist="$outlist $i"
15344         fi
15345 done
15346 ac_config_files="$ac_config_files $outlist"
15347
15348 cat >confcache <<\_ACEOF
15349 # This file is a shell script that caches the results of configure
15350 # tests run on this system so they can be shared between configure
15351 # scripts and configure runs, see configure's option --config-cache.
15352 # It is not useful on other systems.  If it contains results you don't
15353 # want to keep, you may remove or edit it.
15354 #
15355 # config.status only pays attention to the cache file if you give it
15356 # the --recheck option to rerun configure.
15357 #
15358 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15359 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15360 # following values.
15361
15362 _ACEOF
15363
15364 # The following way of writing the cache mishandles newlines in values,
15365 # but we know of no workaround that is simple, portable, and efficient.
15366 # So, we kill variables containing newlines.
15367 # Ultrix sh set writes to stderr and can't be redirected directly,
15368 # and sets the high bit in the cache file unless we assign to the vars.
15369 (
15370   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15371     eval ac_val=\$$ac_var
15372     case $ac_val in #(
15373     *${as_nl}*)
15374       case $ac_var in #(
15375       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15376 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15377       esac
15378       case $ac_var in #(
15379       _ | IFS | as_nl) ;; #(
15380       *) $as_unset $ac_var ;;
15381       esac ;;
15382     esac
15383   done
15384
15385   (set) 2>&1 |
15386     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15387     *${as_nl}ac_space=\ *)
15388       # `set' does not quote correctly, so add quotes (double-quote
15389       # substitution turns \\\\ into \\, and sed turns \\ into \).
15390       sed -n \
15391         "s/'/'\\\\''/g;
15392           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15393       ;; #(
15394     *)
15395       # `set' quotes correctly as required by POSIX, so do not add quotes.
15396       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15397       ;;
15398     esac |
15399     sort
15400 ) |
15401   sed '
15402      /^ac_cv_env_/b end
15403      t clear
15404      :clear
15405      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15406      t end
15407      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15408      :end' >>confcache
15409 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15410   if test -w "$cache_file"; then
15411     test "x$cache_file" != "x/dev/null" &&
15412       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15413 echo "$as_me: updating cache $cache_file" >&6;}
15414     cat confcache >$cache_file
15415   else
15416     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15417 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15418   fi
15419 fi
15420 rm -f confcache
15421
15422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15423 # Let make expand exec_prefix.
15424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15425
15426 # Transform confdefs.h into DEFS.
15427 # Protect against shell expansion while executing Makefile rules.
15428 # Protect against Makefile macro expansion.
15429 #
15430 # If the first sed substitution is executed (which looks for macros that
15431 # take arguments), then branch to the quote section.  Otherwise,
15432 # look for a macro that doesn't take arguments.
15433 ac_script='
15434 t clear
15435 :clear
15436 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15437 t quote
15438 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15439 t quote
15440 b any
15441 :quote
15442 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15443 s/\[/\\&/g
15444 s/\]/\\&/g
15445 s/\$/$$/g
15446 H
15447 :any
15448 ${
15449         g
15450         s/^\n//
15451         s/\n/ /g
15452         p
15453 }
15454 '
15455 DEFS=`sed -n "$ac_script" confdefs.h`
15456
15457
15458 ac_libobjs=
15459 ac_ltlibobjs=
15460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15461   # 1. Remove the extension, and $U if already installed.
15462   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15463   ac_i=`echo "$ac_i" | sed "$ac_script"`
15464   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15465   #    will be set to the directory where LIBOBJS objects are built.
15466   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15467   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15468 done
15469 LIBOBJS=$ac_libobjs
15470
15471 LTLIBOBJS=$ac_ltlibobjs
15472
15473
15474
15475 : ${CONFIG_STATUS=./config.status}
15476 ac_clean_files_save=$ac_clean_files
15477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15478 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15479 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15480 cat >$CONFIG_STATUS <<_ACEOF
15481 #! $SHELL
15482 # Generated by $as_me.
15483 # Run this file to recreate the current configuration.
15484 # Compiler output produced by configure, useful for debugging
15485 # configure, is in config.log if it exists.
15486
15487 debug=false
15488 ac_cs_recheck=false
15489 ac_cs_silent=false
15490 SHELL=\${CONFIG_SHELL-$SHELL}
15491 _ACEOF
15492
15493 cat >>$CONFIG_STATUS <<\_ACEOF
15494 ## --------------------- ##
15495 ## M4sh Initialization.  ##
15496 ## --------------------- ##
15497
15498 # Be more Bourne compatible
15499 DUALCASE=1; export DUALCASE # for MKS sh
15500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15501   emulate sh
15502   NULLCMD=:
15503   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15504   # is contrary to our usage.  Disable this feature.
15505   alias -g '${1+"$@"}'='"$@"'
15506   setopt NO_GLOB_SUBST
15507 else
15508   case `(set -o) 2>/dev/null` in
15509   *posix*) set -o posix ;;
15510 esac
15511
15512 fi
15513
15514
15515
15516
15517 # PATH needs CR
15518 # Avoid depending upon Character Ranges.
15519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15522 as_cr_digits='0123456789'
15523 as_cr_alnum=$as_cr_Letters$as_cr_digits
15524
15525 # The user is always right.
15526 if test "${PATH_SEPARATOR+set}" != set; then
15527   echo "#! /bin/sh" >conf$$.sh
15528   echo  "exit 0"   >>conf$$.sh
15529   chmod +x conf$$.sh
15530   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15531     PATH_SEPARATOR=';'
15532   else
15533     PATH_SEPARATOR=:
15534   fi
15535   rm -f conf$$.sh
15536 fi
15537
15538 # Support unset when possible.
15539 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15540   as_unset=unset
15541 else
15542   as_unset=false
15543 fi
15544
15545
15546 # IFS
15547 # We need space, tab and new line, in precisely that order.  Quoting is
15548 # there to prevent editors from complaining about space-tab.
15549 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15550 # splitting by setting IFS to empty value.)
15551 as_nl='
15552 '
15553 IFS=" ""        $as_nl"
15554
15555 # Find who we are.  Look in the path if we contain no directory separator.
15556 case $0 in
15557   *[\\/]* ) as_myself=$0 ;;
15558   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15559 for as_dir in $PATH
15560 do
15561   IFS=$as_save_IFS
15562   test -z "$as_dir" && as_dir=.
15563   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15564 done
15565 IFS=$as_save_IFS
15566
15567      ;;
15568 esac
15569 # We did not find ourselves, most probably we were run as `sh COMMAND'
15570 # in which case we are not to be found in the path.
15571 if test "x$as_myself" = x; then
15572   as_myself=$0
15573 fi
15574 if test ! -f "$as_myself"; then
15575   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15576   { (exit 1); exit 1; }
15577 fi
15578
15579 # Work around bugs in pre-3.0 UWIN ksh.
15580 for as_var in ENV MAIL MAILPATH
15581 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15582 done
15583 PS1='$ '
15584 PS2='> '
15585 PS4='+ '
15586
15587 # NLS nuisances.
15588 for as_var in \
15589   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15590   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15591   LC_TELEPHONE LC_TIME
15592 do
15593   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15594     eval $as_var=C; export $as_var
15595   else
15596     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15597   fi
15598 done
15599
15600 # Required to use basename.
15601 if expr a : '\(a\)' >/dev/null 2>&1 &&
15602    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15603   as_expr=expr
15604 else
15605   as_expr=false
15606 fi
15607
15608 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15609   as_basename=basename
15610 else
15611   as_basename=false
15612 fi
15613
15614
15615 # Name of the executable.
15616 as_me=`$as_basename -- "$0" ||
15617 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15618          X"$0" : 'X\(//\)$' \| \
15619          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15620 echo X/"$0" |
15621     sed '/^.*\/\([^/][^/]*\)\/*$/{
15622             s//\1/
15623             q
15624           }
15625           /^X\/\(\/\/\)$/{
15626             s//\1/
15627             q
15628           }
15629           /^X\/\(\/\).*/{
15630             s//\1/
15631             q
15632           }
15633           s/.*/./; q'`
15634
15635 # CDPATH.
15636 $as_unset CDPATH
15637
15638
15639
15640   as_lineno_1=$LINENO
15641   as_lineno_2=$LINENO
15642   test "x$as_lineno_1" != "x$as_lineno_2" &&
15643   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15644
15645   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15646   # uniformly replaced by the line number.  The first 'sed' inserts a
15647   # line-number line after each line using $LINENO; the second 'sed'
15648   # does the real work.  The second script uses 'N' to pair each
15649   # line-number line with the line containing $LINENO, and appends
15650   # trailing '-' during substitution so that $LINENO is not a special
15651   # case at line end.
15652   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15653   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15654   # E. McMahon (1931-1989) for sed's syntax.  :-)
15655   sed -n '
15656     p
15657     /[$]LINENO/=
15658   ' <$as_myself |
15659     sed '
15660       s/[$]LINENO.*/&-/
15661       t lineno
15662       b
15663       :lineno
15664       N
15665       :loop
15666       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15667       t loop
15668       s/-\n.*//
15669     ' >$as_me.lineno &&
15670   chmod +x "$as_me.lineno" ||
15671     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15672    { (exit 1); exit 1; }; }
15673
15674   # Don't try to exec as it changes $[0], causing all sort of problems
15675   # (the dirname of $[0] is not the place where we might find the
15676   # original and so on.  Autoconf is especially sensitive to this).
15677   . "./$as_me.lineno"
15678   # Exit status is that of the last command.
15679   exit
15680 }
15681
15682
15683 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15684   as_dirname=dirname
15685 else
15686   as_dirname=false
15687 fi
15688
15689 ECHO_C= ECHO_N= ECHO_T=
15690 case `echo -n x` in
15691 -n*)
15692   case `echo 'x\c'` in
15693   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15694   *)   ECHO_C='\c';;
15695   esac;;
15696 *)
15697   ECHO_N='-n';;
15698 esac
15699
15700 if expr a : '\(a\)' >/dev/null 2>&1 &&
15701    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15702   as_expr=expr
15703 else
15704   as_expr=false
15705 fi
15706
15707 rm -f conf$$ conf$$.exe conf$$.file
15708 if test -d conf$$.dir; then
15709   rm -f conf$$.dir/conf$$.file
15710 else
15711   rm -f conf$$.dir
15712   mkdir conf$$.dir
15713 fi
15714 echo >conf$$.file
15715 if ln -s conf$$.file conf$$ 2>/dev/null; then
15716   as_ln_s='ln -s'
15717   # ... but there are two gotchas:
15718   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15719   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15720   # In both cases, we have to default to `cp -p'.
15721   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15722     as_ln_s='cp -p'
15723 elif ln conf$$.file conf$$ 2>/dev/null; then
15724   as_ln_s=ln
15725 else
15726   as_ln_s='cp -p'
15727 fi
15728 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15729 rmdir conf$$.dir 2>/dev/null
15730
15731 if mkdir -p . 2>/dev/null; then
15732   as_mkdir_p=:
15733 else
15734   test -d ./-p && rmdir ./-p
15735   as_mkdir_p=false
15736 fi
15737
15738 if test -x / >/dev/null 2>&1; then
15739   as_test_x='test -x'
15740 else
15741   if ls -dL / >/dev/null 2>&1; then
15742     as_ls_L_option=L
15743   else
15744     as_ls_L_option=
15745   fi
15746   as_test_x='
15747     eval sh -c '\''
15748       if test -d "$1"; then
15749         test -d "$1/.";
15750       else
15751         case $1 in
15752         -*)set "./$1";;
15753         esac;
15754         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15755         ???[sx]*):;;*)false;;esac;fi
15756     '\'' sh
15757   '
15758 fi
15759 as_executable_p=$as_test_x
15760
15761 # Sed expression to map a string onto a valid CPP name.
15762 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15763
15764 # Sed expression to map a string onto a valid variable name.
15765 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15766
15767
15768 exec 6>&1
15769
15770 # Save the log message, to keep $[0] and so on meaningful, and to
15771 # report actual input values of CONFIG_FILES etc. instead of their
15772 # values after options handling.
15773 ac_log="
15774 This file was extended by $as_me, which was
15775 generated by GNU Autoconf 2.61.  Invocation command line was
15776
15777   CONFIG_FILES    = $CONFIG_FILES
15778   CONFIG_HEADERS  = $CONFIG_HEADERS
15779   CONFIG_LINKS    = $CONFIG_LINKS
15780   CONFIG_COMMANDS = $CONFIG_COMMANDS
15781   $ $0 $@
15782
15783 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15784 "
15785
15786 _ACEOF
15787
15788 cat >>$CONFIG_STATUS <<_ACEOF
15789 # Files that config.status was made for.
15790 config_files="$ac_config_files"
15791 config_commands="$ac_config_commands"
15792
15793 _ACEOF
15794
15795 cat >>$CONFIG_STATUS <<\_ACEOF
15796 ac_cs_usage="\
15797 \`$as_me' instantiates files from templates according to the
15798 current configuration.
15799
15800 Usage: $0 [OPTIONS] [FILE]...
15801
15802   -h, --help       print this help, then exit
15803   -V, --version    print version number and configuration settings, then exit
15804   -q, --quiet      do not print progress messages
15805   -d, --debug      don't remove temporary files
15806       --recheck    update $as_me by reconfiguring in the same conditions
15807   --file=FILE[:TEMPLATE]
15808                    instantiate the configuration file FILE
15809
15810 Configuration files:
15811 $config_files
15812
15813 Configuration commands:
15814 $config_commands
15815
15816 Report bugs to <bug-autoconf@gnu.org>."
15817
15818 _ACEOF
15819 cat >>$CONFIG_STATUS <<_ACEOF
15820 ac_cs_version="\\
15821 config.status
15822 configured by $0, generated by GNU Autoconf 2.61,
15823   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15824
15825 Copyright (C) 2006 Free Software Foundation, Inc.
15826 This config.status script is free software; the Free Software Foundation
15827 gives unlimited permission to copy, distribute and modify it."
15828
15829 ac_pwd='$ac_pwd'
15830 srcdir='$srcdir'
15831 INSTALL='$INSTALL'
15832 _ACEOF
15833
15834 cat >>$CONFIG_STATUS <<\_ACEOF
15835 # If no file are specified by the user, then we need to provide default
15836 # value.  By we need to know if files were specified by the user.
15837 ac_need_defaults=:
15838 while test $# != 0
15839 do
15840   case $1 in
15841   --*=*)
15842     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15843     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15844     ac_shift=:
15845     ;;
15846   *)
15847     ac_option=$1
15848     ac_optarg=$2
15849     ac_shift=shift
15850     ;;
15851   esac
15852
15853   case $ac_option in
15854   # Handling of the options.
15855   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15856     ac_cs_recheck=: ;;
15857   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15858     echo "$ac_cs_version"; exit ;;
15859   --debug | --debu | --deb | --de | --d | -d )
15860     debug=: ;;
15861   --file | --fil | --fi | --f )
15862     $ac_shift
15863     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15864     ac_need_defaults=false;;
15865   --he | --h |  --help | --hel | -h )
15866     echo "$ac_cs_usage"; exit ;;
15867   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15868   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15869     ac_cs_silent=: ;;
15870
15871   # This is an error.
15872   -*) { echo "$as_me: error: unrecognized option: $1
15873 Try \`$0 --help' for more information." >&2
15874    { (exit 1); exit 1; }; } ;;
15875
15876   *) ac_config_targets="$ac_config_targets $1"
15877      ac_need_defaults=false ;;
15878
15879   esac
15880   shift
15881 done
15882
15883 ac_configure_extra_args=
15884
15885 if $ac_cs_silent; then
15886   exec 6>/dev/null
15887   ac_configure_extra_args="$ac_configure_extra_args --silent"
15888 fi
15889
15890 _ACEOF
15891 cat >>$CONFIG_STATUS <<_ACEOF
15892 if \$ac_cs_recheck; then
15893   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15894   CONFIG_SHELL=$SHELL
15895   export CONFIG_SHELL
15896   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15897 fi
15898
15899 _ACEOF
15900 cat >>$CONFIG_STATUS <<\_ACEOF
15901 exec 5>>config.log
15902 {
15903   echo
15904   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15905 ## Running $as_me. ##
15906 _ASBOX
15907   echo "$ac_log"
15908 } >&5
15909
15910 _ACEOF
15911 cat >>$CONFIG_STATUS <<_ACEOF
15912 #
15913 # INIT-COMMANDS
15914 #
15915 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15916     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15917     # from automake.
15918     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15919     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15920     LINGUAS="${LINGUAS-%UNSET%}"
15921
15922
15923 _ACEOF
15924
15925 cat >>$CONFIG_STATUS <<\_ACEOF
15926
15927 # Handling of arguments.
15928 for ac_config_target in $ac_config_targets
15929 do
15930   case $ac_config_target in
15931     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15932     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15933
15934   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15935 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15936    { (exit 1); exit 1; }; };;
15937   esac
15938 done
15939
15940
15941 # If the user did not use the arguments to specify the items to instantiate,
15942 # then the envvar interface is used.  Set only those that are not.
15943 # We use the long form for the default assignment because of an extremely
15944 # bizarre bug on SunOS 4.1.3.
15945 if $ac_need_defaults; then
15946   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15947   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15948 fi
15949
15950 # Have a temporary directory for convenience.  Make it in the build tree
15951 # simply because there is no reason against having it here, and in addition,
15952 # creating and moving files from /tmp can sometimes cause problems.
15953 # Hook for its removal unless debugging.
15954 # Note that there is a small window in which the directory will not be cleaned:
15955 # after its creation but before its name has been assigned to `$tmp'.
15956 $debug ||
15957 {
15958   tmp=
15959   trap 'exit_status=$?
15960   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15961 ' 0
15962   trap '{ (exit 1); exit 1; }' 1 2 13 15
15963 }
15964 # Create a (secure) tmp directory for tmp files.
15965
15966 {
15967   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15968   test -n "$tmp" && test -d "$tmp"
15969 }  ||
15970 {
15971   tmp=./conf$$-$RANDOM
15972   (umask 077 && mkdir "$tmp")
15973 } ||
15974 {
15975    echo "$me: cannot create a temporary directory in ." >&2
15976    { (exit 1); exit 1; }
15977 }
15978
15979 #
15980 # Set up the sed scripts for CONFIG_FILES section.
15981 #
15982
15983 # No need to generate the scripts if there are no CONFIG_FILES.
15984 # This happens for instance when ./config.status config.h
15985 if test -n "$CONFIG_FILES"; then
15986
15987 _ACEOF
15988
15989 # Create sed commands to just substitute file output variables.
15990
15991 # Remaining file output variables are in a fragment that also has non-file
15992 # output varibles.
15993
15994
15995
15996 ac_delim='%!_!# '
15997 for ac_last_try in false false false false false :; do
15998   cat >conf$$subs.sed <<_ACEOF
15999 SHELL!$SHELL$ac_delim
16000 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16001 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16002 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16003 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16004 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16005 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16006 exec_prefix!$exec_prefix$ac_delim
16007 prefix!$prefix$ac_delim
16008 program_transform_name!$program_transform_name$ac_delim
16009 bindir!$bindir$ac_delim
16010 sbindir!$sbindir$ac_delim
16011 libexecdir!$libexecdir$ac_delim
16012 datarootdir!$datarootdir$ac_delim
16013 datadir!$datadir$ac_delim
16014 sysconfdir!$sysconfdir$ac_delim
16015 sharedstatedir!$sharedstatedir$ac_delim
16016 localstatedir!$localstatedir$ac_delim
16017 includedir!$includedir$ac_delim
16018 oldincludedir!$oldincludedir$ac_delim
16019 docdir!$docdir$ac_delim
16020 infodir!$infodir$ac_delim
16021 htmldir!$htmldir$ac_delim
16022 dvidir!$dvidir$ac_delim
16023 pdfdir!$pdfdir$ac_delim
16024 psdir!$psdir$ac_delim
16025 libdir!$libdir$ac_delim
16026 localedir!$localedir$ac_delim
16027 mandir!$mandir$ac_delim
16028 DEFS!$DEFS$ac_delim
16029 ECHO_C!$ECHO_C$ac_delim
16030 ECHO_N!$ECHO_N$ac_delim
16031 ECHO_T!$ECHO_T$ac_delim
16032 LIBS!$LIBS$ac_delim
16033 build_alias!$build_alias$ac_delim
16034 host_alias!$host_alias$ac_delim
16035 target_alias!$target_alias$ac_delim
16036 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16037 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16038 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16039 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16040 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16041 build!$build$ac_delim
16042 build_cpu!$build_cpu$ac_delim
16043 build_vendor!$build_vendor$ac_delim
16044 build_os!$build_os$ac_delim
16045 host!$host$ac_delim
16046 host_cpu!$host_cpu$ac_delim
16047 host_vendor!$host_vendor$ac_delim
16048 host_os!$host_os$ac_delim
16049 CC!$CC$ac_delim
16050 CFLAGS!$CFLAGS$ac_delim
16051 LDFLAGS!$LDFLAGS$ac_delim
16052 CPPFLAGS!$CPPFLAGS$ac_delim
16053 ac_ct_CC!$ac_ct_CC$ac_delim
16054 EXEEXT!$EXEEXT$ac_delim
16055 OBJEXT!$OBJEXT$ac_delim
16056 CPP!$CPP$ac_delim
16057 LD!$LD$ac_delim
16058 GREP!$GREP$ac_delim
16059 EGREP!$EGREP$ac_delim
16060 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16061 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16062 HTREE_CMT!$HTREE_CMT$ac_delim
16063 ELF_CMT!$ELF_CMT$ac_delim
16064 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16065 PROFILE_CMT!$PROFILE_CMT$ac_delim
16066 CHECKER_CMT!$CHECKER_CMT$ac_delim
16067 LIB_EXT!$LIB_EXT$ac_delim
16068 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16069 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16070 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16071 IMAGER_CMT!$IMAGER_CMT$ac_delim
16072 _ACEOF
16073
16074   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16075     break
16076   elif $ac_last_try; then
16077     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16078 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16079    { (exit 1); exit 1; }; }
16080   else
16081     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16082   fi
16083 done
16084
16085 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16086 if test -n "$ac_eof"; then
16087   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16088   ac_eof=`expr $ac_eof + 1`
16089 fi
16090
16091 cat >>$CONFIG_STATUS <<_ACEOF
16092 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16094 /^[      ]*@MCONFIG@[    ]*$/{
16095 r $MCONFIG
16096 d
16097 }
16098 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
16099 r $MAKEFILE_ELF
16100 d
16101 }
16102 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
16103 r $MAKEFILE_BSDLIB
16104 d
16105 }
16106 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
16107 r $MAKEFILE_PROFILE
16108 d
16109 }
16110 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
16111 r $MAKEFILE_CHECKER
16112 d
16113 }
16114 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
16115 r $MAKEFILE_LIBRARY
16116 d
16117 }
16118 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
16119 r $ASM_TYPES_HEADER
16120 d
16121 }
16122 /^[      ]*@PUBLIC_CONFIG_HEADER@[       ]*$/{
16123 r $PUBLIC_CONFIG_HEADER
16124 d
16125 }
16126 _ACEOF
16127 sed '
16128 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16129 s/^/s,@/; s/!/@,|#_!!_#|/
16130 :n
16131 t n
16132 s/'"$ac_delim"'$/,g/; t
16133 s/$/\\/; p
16134 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16135 ' >>$CONFIG_STATUS <conf$$subs.sed
16136 rm -f conf$$subs.sed
16137 cat >>$CONFIG_STATUS <<_ACEOF
16138 CEOF$ac_eof
16139 _ACEOF
16140
16141
16142 ac_delim='%!_!# '
16143 for ac_last_try in false false false false false :; do
16144   cat >conf$$subs.sed <<_ACEOF
16145 RESIZER_CMT!$RESIZER_CMT$ac_delim
16146 FSCK_PROG!$FSCK_PROG$ac_delim
16147 FSCK_MAN!$FSCK_MAN$ac_delim
16148 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16149 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16150 PKG_CONFIG!$PKG_CONFIG$ac_delim
16151 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16152 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16153 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16154 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16155 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16156 UUIDD_CMT!$UUIDD_CMT$ac_delim
16157 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16158 PACKAGE!$PACKAGE$ac_delim
16159 VERSION!$VERSION$ac_delim
16160 SET_MAKE!$SET_MAKE$ac_delim
16161 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16162 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16163 INSTALL_DATA!$INSTALL_DATA$ac_delim
16164 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16165 USE_NLS!$USE_NLS$ac_delim
16166 MSGFMT!$MSGFMT$ac_delim
16167 GMSGFMT!$GMSGFMT$ac_delim
16168 XGETTEXT!$XGETTEXT$ac_delim
16169 MSGMERGE!$MSGMERGE$ac_delim
16170 RANLIB!$RANLIB$ac_delim
16171 ALLOCA!$ALLOCA$ac_delim
16172 GLIBC21!$GLIBC21$ac_delim
16173 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16174 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16175 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16176 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16177 LIBICONV!$LIBICONV$ac_delim
16178 LTLIBICONV!$LTLIBICONV$ac_delim
16179 INTLBISON!$INTLBISON$ac_delim
16180 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16181 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16182 CATOBJEXT!$CATOBJEXT$ac_delim
16183 DATADIRNAME!$DATADIRNAME$ac_delim
16184 INSTOBJEXT!$INSTOBJEXT$ac_delim
16185 GENCAT!$GENCAT$ac_delim
16186 INTLOBJS!$INTLOBJS$ac_delim
16187 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16188 INTLLIBS!$INTLLIBS$ac_delim
16189 LIBINTL!$LIBINTL$ac_delim
16190 LTLIBINTL!$LTLIBINTL$ac_delim
16191 POSUB!$POSUB$ac_delim
16192 BINARY_TYPE!$BINARY_TYPE$ac_delim
16193 LN!$LN$ac_delim
16194 LN_S!$LN_S$ac_delim
16195 MV!$MV$ac_delim
16196 CP!$CP$ac_delim
16197 RM!$RM$ac_delim
16198 CHMOD!$CHMOD$ac_delim
16199 AWK!$AWK$ac_delim
16200 SED!$SED$ac_delim
16201 PERL!$PERL$ac_delim
16202 LDCONFIG!$LDCONFIG$ac_delim
16203 AR!$AR$ac_delim
16204 STRIP!$STRIP$ac_delim
16205 MAKEINFO!$MAKEINFO$ac_delim
16206 BUILD_CC!$BUILD_CC$ac_delim
16207 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16208 SIZEOF_INT!$SIZEOF_INT$ac_delim
16209 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16210 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16211 SOCKET_LIB!$SOCKET_LIB$ac_delim
16212 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16213 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16214 LINUX_CMT!$LINUX_CMT$ac_delim
16215 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16216 UNIX_CMT!$UNIX_CMT$ac_delim
16217 root_prefix!$root_prefix$ac_delim
16218 root_bindir!$root_bindir$ac_delim
16219 root_sbindir!$root_sbindir$ac_delim
16220 root_libdir!$root_libdir$ac_delim
16221 root_sysconfdir!$root_sysconfdir$ac_delim
16222 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16223 SS_DIR!$SS_DIR$ac_delim
16224 ET_DIR!$ET_DIR$ac_delim
16225 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16226 INTL_FLAGS!$INTL_FLAGS$ac_delim
16227 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16228 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16229 LIBOBJS!$LIBOBJS$ac_delim
16230 LTLIBOBJS!$LTLIBOBJS$ac_delim
16231 _ACEOF
16232
16233   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
16234     break
16235   elif $ac_last_try; then
16236     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16237 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16238    { (exit 1); exit 1; }; }
16239   else
16240     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16241   fi
16242 done
16243
16244 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16245 if test -n "$ac_eof"; then
16246   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16247   ac_eof=`expr $ac_eof + 1`
16248 fi
16249
16250 cat >>$CONFIG_STATUS <<_ACEOF
16251 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16253 _ACEOF
16254 sed '
16255 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16256 s/^/s,@/; s/!/@,|#_!!_#|/
16257 :n
16258 t n
16259 s/'"$ac_delim"'$/,g/; t
16260 s/$/\\/; p
16261 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16262 ' >>$CONFIG_STATUS <conf$$subs.sed
16263 rm -f conf$$subs.sed
16264 cat >>$CONFIG_STATUS <<_ACEOF
16265 :end
16266 s/|#_!!_#|//g
16267 CEOF$ac_eof
16268 _ACEOF
16269
16270
16271 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16272 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16273 # trailing colons and then remove the whole line if VPATH becomes empty
16274 # (actually we leave an empty line to preserve line numbers).
16275 if test "x$srcdir" = x.; then
16276   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16277 s/:*\$(srcdir):*/:/
16278 s/:*\${srcdir}:*/:/
16279 s/:*@srcdir@:*/:/
16280 s/^\([^=]*=[     ]*\):*/\1/
16281 s/:*$//
16282 s/^[^=]*=[       ]*$//
16283 }'
16284 fi
16285
16286 cat >>$CONFIG_STATUS <<\_ACEOF
16287 fi # test -n "$CONFIG_FILES"
16288
16289
16290 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
16291 do
16292   case $ac_tag in
16293   :[FHLC]) ac_mode=$ac_tag; continue;;
16294   esac
16295   case $ac_mode$ac_tag in
16296   :[FHL]*:*);;
16297   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16298 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16299    { (exit 1); exit 1; }; };;
16300   :[FH]-) ac_tag=-:-;;
16301   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16302   esac
16303   ac_save_IFS=$IFS
16304   IFS=:
16305   set x $ac_tag
16306   IFS=$ac_save_IFS
16307   shift
16308   ac_file=$1
16309   shift
16310
16311   case $ac_mode in
16312   :L) ac_source=$1;;
16313   :[FH])
16314     ac_file_inputs=
16315     for ac_f
16316     do
16317       case $ac_f in
16318       -) ac_f="$tmp/stdin";;
16319       *) # Look for the file first in the build tree, then in the source tree
16320          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16321          # because $ac_f cannot contain `:'.
16322          test -f "$ac_f" ||
16323            case $ac_f in
16324            [\\/$]*) false;;
16325            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16326            esac ||
16327            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16328 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16329    { (exit 1); exit 1; }; };;
16330       esac
16331       ac_file_inputs="$ac_file_inputs $ac_f"
16332     done
16333
16334     # Let's still pretend it is `configure' which instantiates (i.e., don't
16335     # use $as_me), people would be surprised to read:
16336     #    /* config.h.  Generated by config.status.  */
16337     configure_input="Generated from "`IFS=:
16338           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16339     if test x"$ac_file" != x-; then
16340       configure_input="$ac_file.  $configure_input"
16341       { echo "$as_me:$LINENO: creating $ac_file" >&5
16342 echo "$as_me: creating $ac_file" >&6;}
16343     fi
16344
16345     case $ac_tag in
16346     *:-:* | *:-) cat >"$tmp/stdin";;
16347     esac
16348     ;;
16349   esac
16350
16351   ac_dir=`$as_dirname -- "$ac_file" ||
16352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16353          X"$ac_file" : 'X\(//\)[^/]' \| \
16354          X"$ac_file" : 'X\(//\)$' \| \
16355          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16356 echo X"$ac_file" |
16357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16358             s//\1/
16359             q
16360           }
16361           /^X\(\/\/\)[^/].*/{
16362             s//\1/
16363             q
16364           }
16365           /^X\(\/\/\)$/{
16366             s//\1/
16367             q
16368           }
16369           /^X\(\/\).*/{
16370             s//\1/
16371             q
16372           }
16373           s/.*/./; q'`
16374   { as_dir="$ac_dir"
16375   case $as_dir in #(
16376   -*) as_dir=./$as_dir;;
16377   esac
16378   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16379     as_dirs=
16380     while :; do
16381       case $as_dir in #(
16382       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16383       *) as_qdir=$as_dir;;
16384       esac
16385       as_dirs="'$as_qdir' $as_dirs"
16386       as_dir=`$as_dirname -- "$as_dir" ||
16387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16388          X"$as_dir" : 'X\(//\)[^/]' \| \
16389          X"$as_dir" : 'X\(//\)$' \| \
16390          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16391 echo X"$as_dir" |
16392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16393             s//\1/
16394             q
16395           }
16396           /^X\(\/\/\)[^/].*/{
16397             s//\1/
16398             q
16399           }
16400           /^X\(\/\/\)$/{
16401             s//\1/
16402             q
16403           }
16404           /^X\(\/\).*/{
16405             s//\1/
16406             q
16407           }
16408           s/.*/./; q'`
16409       test -d "$as_dir" && break
16410     done
16411     test -z "$as_dirs" || eval "mkdir $as_dirs"
16412   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16413 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16414    { (exit 1); exit 1; }; }; }
16415   ac_builddir=.
16416
16417 case "$ac_dir" in
16418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16419 *)
16420   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16421   # A ".." for each directory in $ac_dir_suffix.
16422   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16423   case $ac_top_builddir_sub in
16424   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16425   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16426   esac ;;
16427 esac
16428 ac_abs_top_builddir=$ac_pwd
16429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16430 # for backward compatibility:
16431 ac_top_builddir=$ac_top_build_prefix
16432
16433 case $srcdir in
16434   .)  # We are building in place.
16435     ac_srcdir=.
16436     ac_top_srcdir=$ac_top_builddir_sub
16437     ac_abs_top_srcdir=$ac_pwd ;;
16438   [\\/]* | ?:[\\/]* )  # Absolute name.
16439     ac_srcdir=$srcdir$ac_dir_suffix;
16440     ac_top_srcdir=$srcdir
16441     ac_abs_top_srcdir=$srcdir ;;
16442   *) # Relative name.
16443     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16444     ac_top_srcdir=$ac_top_build_prefix$srcdir
16445     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16446 esac
16447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16448
16449
16450   case $ac_mode in
16451   :F)
16452   #
16453   # CONFIG_FILE
16454   #
16455
16456   case $INSTALL in
16457   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16458   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16459   esac
16460 _ACEOF
16461
16462 cat >>$CONFIG_STATUS <<\_ACEOF
16463 # If the template does not know about datarootdir, expand it.
16464 # FIXME: This hack should be removed a few years after 2.60.
16465 ac_datarootdir_hack=; ac_datarootdir_seen=
16466
16467 case `sed -n '/datarootdir/ {
16468   p
16469   q
16470 }
16471 /@datadir@/p
16472 /@docdir@/p
16473 /@infodir@/p
16474 /@localedir@/p
16475 /@mandir@/p
16476 ' $ac_file_inputs` in
16477 *datarootdir*) ac_datarootdir_seen=yes;;
16478 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16479   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16480 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16481 _ACEOF
16482 cat >>$CONFIG_STATUS <<_ACEOF
16483   ac_datarootdir_hack='
16484   s&@datadir@&$datadir&g
16485   s&@docdir@&$docdir&g
16486   s&@infodir@&$infodir&g
16487   s&@localedir@&$localedir&g
16488   s&@mandir@&$mandir&g
16489     s&\\\${datarootdir}&$datarootdir&g' ;;
16490 esac
16491 _ACEOF
16492
16493 # Neutralize VPATH when `$srcdir' = `.'.
16494 # Shell code in configure.ac might set extrasub.
16495 # FIXME: do we really want to maintain this feature?
16496 cat >>$CONFIG_STATUS <<_ACEOF
16497   sed "$ac_vpsub
16498 $extrasub
16499 _ACEOF
16500 cat >>$CONFIG_STATUS <<\_ACEOF
16501 :t
16502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16503 s&@configure_input@&$configure_input&;t t
16504 s&@top_builddir@&$ac_top_builddir_sub&;t t
16505 s&@srcdir@&$ac_srcdir&;t t
16506 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16507 s&@top_srcdir@&$ac_top_srcdir&;t t
16508 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16509 s&@builddir@&$ac_builddir&;t t
16510 s&@abs_builddir@&$ac_abs_builddir&;t t
16511 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16512 s&@INSTALL@&$ac_INSTALL&;t t
16513 $ac_datarootdir_hack
16514 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16515
16516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16517   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16518   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16519   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16520 which seems to be undefined.  Please make sure it is defined." >&5
16521 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16522 which seems to be undefined.  Please make sure it is defined." >&2;}
16523
16524   rm -f "$tmp/stdin"
16525   case $ac_file in
16526   -) cat "$tmp/out"; rm -f "$tmp/out";;
16527   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16528   esac
16529  ;;
16530
16531
16532   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16533 echo "$as_me: executing $ac_file commands" >&6;}
16534  ;;
16535   esac
16536
16537
16538   case $ac_file$ac_mode in
16539     "default-1":C)
16540     for ac_file in $CONFIG_FILES; do
16541       # Support "outfile[:infile[:infile...]]"
16542       case "$ac_file" in
16543         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16544       esac
16545       # PO directories have a Makefile.in generated from Makefile.in.in.
16546       case "$ac_file" in */Makefile.in)
16547         # Adjust a relative srcdir.
16548         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16549         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16550         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16551         # In autoconf-2.13 it is called $ac_given_srcdir.
16552         # In autoconf-2.50 it is called $srcdir.
16553         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16554         case "$ac_given_srcdir" in
16555           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16556           /*) top_srcdir="$ac_given_srcdir" ;;
16557           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16558         esac
16559         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16560           rm -f "$ac_dir/POTFILES"
16561           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16562           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16563           POMAKEFILEDEPS="POTFILES.in"
16564           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16565           # on $ac_dir but don't depend on user-specified configuration
16566           # parameters.
16567           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16568             # The LINGUAS file contains the set of available languages.
16569             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16570               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16571             fi
16572             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16573             # Hide the ALL_LINGUAS assigment from automake.
16574             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16575             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16576           else
16577             # The set of available languages was given in configure.in.
16578             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16579           fi
16580           # Compute POFILES
16581           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16582           # Compute UPDATEPOFILES
16583           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16584           # Compute DUMMYPOFILES
16585           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16586           # Compute GMOFILES
16587           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16588           case "$ac_given_srcdir" in
16589             .) srcdirpre= ;;
16590             *) srcdirpre='$(srcdir)/' ;;
16591           esac
16592           POFILES=
16593           UPDATEPOFILES=
16594           DUMMYPOFILES=
16595           GMOFILES=
16596           for lang in $ALL_LINGUAS; do
16597             POFILES="$POFILES $srcdirpre$lang.po"
16598             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16599             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16600             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16601           done
16602           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16603           # environment variable.
16604           INST_LINGUAS=
16605           if test -n "$ALL_LINGUAS"; then
16606             for presentlang in $ALL_LINGUAS; do
16607               useit=no
16608               if test "%UNSET%" != "$LINGUAS"; then
16609                 desiredlanguages="$LINGUAS"
16610               else
16611                 desiredlanguages="$ALL_LINGUAS"
16612               fi
16613               for desiredlang in $desiredlanguages; do
16614                 # Use the presentlang catalog if desiredlang is
16615                 #   a. equal to presentlang, or
16616                 #   b. a variant of presentlang (because in this case,
16617                 #      presentlang can be used as a fallback for messages
16618                 #      which are not translated in the desiredlang catalog).
16619                 case "$desiredlang" in
16620                   "$presentlang"*) useit=yes;;
16621                 esac
16622               done
16623               if test $useit = yes; then
16624                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16625               fi
16626             done
16627           fi
16628           CATALOGS=
16629           if test -n "$INST_LINGUAS"; then
16630             for lang in $INST_LINGUAS; do
16631               CATALOGS="$CATALOGS $lang.gmo"
16632             done
16633           fi
16634           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16635           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"
16636           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16637             if test -f "$f"; then
16638               case "$f" in
16639                 *.orig | *.bak | *~) ;;
16640                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16641               esac
16642             fi
16643           done
16644         fi
16645         ;;
16646       esac
16647     done ;;
16648
16649   esac
16650 done # for ac_tag
16651
16652
16653 { (exit 0); exit 0; }
16654 _ACEOF
16655 chmod +x $CONFIG_STATUS
16656 ac_clean_files=$ac_clean_files_save
16657
16658
16659 # configure is writing to config.log, and then calls config.status.
16660 # config.status does its own redirection, appending to config.log.
16661 # Unfortunately, on DOS this fails, as config.log is still kept open
16662 # by configure, so config.status won't be able to write to it; its
16663 # output is simply discarded.  So we exec the FD to /dev/null,
16664 # effectively closing config.log, so it can be properly (re)opened and
16665 # appended to by config.status.  When coming back to configure, we
16666 # need to make the FD available again.
16667 if test "$no_create" != yes; then
16668   ac_cs_success=:
16669   ac_config_status_args=
16670   test "$silent" = yes &&
16671     ac_config_status_args="$ac_config_status_args --quiet"
16672   exec 5>/dev/null
16673   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16674   exec 5>>config.log
16675   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16676   # would make configure fail if this is the last instruction.
16677   $ac_cs_success || { (exit 1); exit 1; }
16678 fi
16679
16680 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16681