Whamcloud - gitweb
debugfs: Print the nanosecond field and i_version field of an inode
[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       ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CPP
791 PKG_CONFIG'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844   # If the previous option needs an argument, assign it.
845   if test -n "$ac_prev"; then
846     eval $ac_prev=\$ac_option
847     ac_prev=
848     continue
849   fi
850
851   case $ac_option in
852   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853   *)    ac_optarg=yes ;;
854   esac
855
856   # Accept the important Cygnus configure options, so we can diagnose typos.
857
858   case $ac_dashdash$ac_option in
859   --)
860     ac_dashdash=yes ;;
861
862   -bindir | --bindir | --bindi | --bind | --bin | --bi)
863     ac_prev=bindir ;;
864   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865     bindir=$ac_optarg ;;
866
867   -build | --build | --buil | --bui | --bu)
868     ac_prev=build_alias ;;
869   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870     build_alias=$ac_optarg ;;
871
872   -cache-file | --cache-file | --cache-fil | --cache-fi \
873   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874     ac_prev=cache_file ;;
875   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877     cache_file=$ac_optarg ;;
878
879   --config-cache | -C)
880     cache_file=config.cache ;;
881
882   -datadir | --datadir | --datadi | --datad)
883     ac_prev=datadir ;;
884   -datadir=* | --datadir=* | --datadi=* | --datad=*)
885     datadir=$ac_optarg ;;
886
887   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888   | --dataroo | --dataro | --datar)
889     ac_prev=datarootdir ;;
890   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892     datarootdir=$ac_optarg ;;
893
894   -disable-* | --disable-*)
895     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896     # Reject names that are not valid shell variable names.
897     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
898       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899    { (exit 1); exit 1; }; }
900     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
901     eval enable_$ac_feature=no ;;
902
903   -docdir | --docdir | --docdi | --doc | --do)
904     ac_prev=docdir ;;
905   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906     docdir=$ac_optarg ;;
907
908   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909     ac_prev=dvidir ;;
910   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911     dvidir=$ac_optarg ;;
912
913   -enable-* | --enable-*)
914     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
917       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918    { (exit 1); exit 1; }; }
919     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
920     eval enable_$ac_feature=\$ac_optarg ;;
921
922   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924   | --exec | --exe | --ex)
925     ac_prev=exec_prefix ;;
926   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928   | --exec=* | --exe=* | --ex=*)
929     exec_prefix=$ac_optarg ;;
930
931   -gas | --gas | --ga | --g)
932     # Obsolete; use --with-gas.
933     with_gas=yes ;;
934
935   -help | --help | --hel | --he | -h)
936     ac_init_help=long ;;
937   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938     ac_init_help=recursive ;;
939   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940     ac_init_help=short ;;
941
942   -host | --host | --hos | --ho)
943     ac_prev=host_alias ;;
944   -host=* | --host=* | --hos=* | --ho=*)
945     host_alias=$ac_optarg ;;
946
947   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948     ac_prev=htmldir ;;
949   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950   | --ht=*)
951     htmldir=$ac_optarg ;;
952
953   -includedir | --includedir | --includedi | --included | --include \
954   | --includ | --inclu | --incl | --inc)
955     ac_prev=includedir ;;
956   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957   | --includ=* | --inclu=* | --incl=* | --inc=*)
958     includedir=$ac_optarg ;;
959
960   -infodir | --infodir | --infodi | --infod | --info | --inf)
961     ac_prev=infodir ;;
962   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963     infodir=$ac_optarg ;;
964
965   -libdir | --libdir | --libdi | --libd)
966     ac_prev=libdir ;;
967   -libdir=* | --libdir=* | --libdi=* | --libd=*)
968     libdir=$ac_optarg ;;
969
970   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971   | --libexe | --libex | --libe)
972     ac_prev=libexecdir ;;
973   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974   | --libexe=* | --libex=* | --libe=*)
975     libexecdir=$ac_optarg ;;
976
977   -localedir | --localedir | --localedi | --localed | --locale)
978     ac_prev=localedir ;;
979   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980     localedir=$ac_optarg ;;
981
982   -localstatedir | --localstatedir | --localstatedi | --localstated \
983   | --localstate | --localstat | --localsta | --localst | --locals)
984     ac_prev=localstatedir ;;
985   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987     localstatedir=$ac_optarg ;;
988
989   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990     ac_prev=mandir ;;
991   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992     mandir=$ac_optarg ;;
993
994   -nfp | --nfp | --nf)
995     # Obsolete; use --without-fp.
996     with_fp=no ;;
997
998   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999   | --no-cr | --no-c | -n)
1000     no_create=yes ;;
1001
1002   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004     no_recursion=yes ;;
1005
1006   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008   | --oldin | --oldi | --old | --ol | --o)
1009     ac_prev=oldincludedir ;;
1010   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013     oldincludedir=$ac_optarg ;;
1014
1015   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016     ac_prev=prefix ;;
1017   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018     prefix=$ac_optarg ;;
1019
1020   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021   | --program-pre | --program-pr | --program-p)
1022     ac_prev=program_prefix ;;
1023   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025     program_prefix=$ac_optarg ;;
1026
1027   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028   | --program-suf | --program-su | --program-s)
1029     ac_prev=program_suffix ;;
1030   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032     program_suffix=$ac_optarg ;;
1033
1034   -program-transform-name | --program-transform-name \
1035   | --program-transform-nam | --program-transform-na \
1036   | --program-transform-n | --program-transform- \
1037   | --program-transform | --program-transfor \
1038   | --program-transfo | --program-transf \
1039   | --program-trans | --program-tran \
1040   | --progr-tra | --program-tr | --program-t)
1041     ac_prev=program_transform_name ;;
1042   -program-transform-name=* | --program-transform-name=* \
1043   | --program-transform-nam=* | --program-transform-na=* \
1044   | --program-transform-n=* | --program-transform-=* \
1045   | --program-transform=* | --program-transfor=* \
1046   | --program-transfo=* | --program-transf=* \
1047   | --program-trans=* | --program-tran=* \
1048   | --progr-tra=* | --program-tr=* | --program-t=*)
1049     program_transform_name=$ac_optarg ;;
1050
1051   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052     ac_prev=pdfdir ;;
1053   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054     pdfdir=$ac_optarg ;;
1055
1056   -psdir | --psdir | --psdi | --psd | --ps)
1057     ac_prev=psdir ;;
1058   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059     psdir=$ac_optarg ;;
1060
1061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062   | -silent | --silent | --silen | --sile | --sil)
1063     silent=yes ;;
1064
1065   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066     ac_prev=sbindir ;;
1067   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068   | --sbi=* | --sb=*)
1069     sbindir=$ac_optarg ;;
1070
1071   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073   | --sharedst | --shareds | --shared | --share | --shar \
1074   | --sha | --sh)
1075     ac_prev=sharedstatedir ;;
1076   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079   | --sha=* | --sh=*)
1080     sharedstatedir=$ac_optarg ;;
1081
1082   -site | --site | --sit)
1083     ac_prev=site ;;
1084   -site=* | --site=* | --sit=*)
1085     site=$ac_optarg ;;
1086
1087   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088     ac_prev=srcdir ;;
1089   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090     srcdir=$ac_optarg ;;
1091
1092   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093   | --syscon | --sysco | --sysc | --sys | --sy)
1094     ac_prev=sysconfdir ;;
1095   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097     sysconfdir=$ac_optarg ;;
1098
1099   -target | --target | --targe | --targ | --tar | --ta | --t)
1100     ac_prev=target_alias ;;
1101   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102     target_alias=$ac_optarg ;;
1103
1104   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105     verbose=yes ;;
1106
1107   -version | --version | --versio | --versi | --vers | -V)
1108     ac_init_version=: ;;
1109
1110   -with-* | --with-*)
1111     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114       { echo "$as_me: error: invalid package name: $ac_package" >&2
1115    { (exit 1); exit 1; }; }
1116     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117     eval with_$ac_package=\$ac_optarg ;;
1118
1119   -without-* | --without-*)
1120     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123       { echo "$as_me: error: invalid package name: $ac_package" >&2
1124    { (exit 1); exit 1; }; }
1125     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1126     eval with_$ac_package=no ;;
1127
1128   --x)
1129     # Obsolete; use --with-x.
1130     with_x=yes ;;
1131
1132   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133   | --x-incl | --x-inc | --x-in | --x-i)
1134     ac_prev=x_includes ;;
1135   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137     x_includes=$ac_optarg ;;
1138
1139   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141     ac_prev=x_libraries ;;
1142   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144     x_libraries=$ac_optarg ;;
1145
1146   -*) { echo "$as_me: error: unrecognized option: $ac_option
1147 Try \`$0 --help' for more information." >&2
1148    { (exit 1); exit 1; }; }
1149     ;;
1150
1151   *=*)
1152     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1155       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1156    { (exit 1); exit 1; }; }
1157     eval $ac_envvar=\$ac_optarg
1158     export $ac_envvar ;;
1159
1160   *)
1161     # FIXME: should be removed in autoconf 3.0.
1162     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166     ;;
1167
1168   esac
1169 done
1170
1171 if test -n "$ac_prev"; then
1172   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173   { echo "$as_me: error: missing argument to $ac_option" >&2
1174    { (exit 1); exit 1; }; }
1175 fi
1176
1177 # Be sure to have absolute directory names.
1178 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179                 datadir sysconfdir sharedstatedir localstatedir includedir \
1180                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181                 libdir localedir mandir
1182 do
1183   eval ac_val=\$$ac_var
1184   case $ac_val in
1185     [\\/$]* | ?:[\\/]* )  continue;;
1186     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187   esac
1188   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1189    { (exit 1); exit 1; }; }
1190 done
1191
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201   if test "x$build_alias" = x; then
1202     cross_compiling=maybe
1203     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1204     If a cross compiler is detected then cross compile mode will be used." >&2
1205   elif test "x$build_alias" != "x$host_alias"; then
1206     cross_compiling=yes
1207   fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219   { echo "$as_me: error: Working directory cannot be determined" >&2
1220    { (exit 1); exit 1; }; }
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222   { echo "$as_me: error: pwd does not report name of working directory" >&2
1223    { (exit 1); exit 1; }; }
1224
1225
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228   ac_srcdir_defaulted=yes
1229   # Try the directory containing this script, then the parent directory.
1230   ac_confdir=`$as_dirname -- "$0" ||
1231 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232          X"$0" : 'X\(//\)[^/]' \| \
1233          X"$0" : 'X\(//\)$' \| \
1234          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1235 echo X"$0" |
1236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\/\)[^/].*/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\/\)$/{
1245             s//\1/
1246             q
1247           }
1248           /^X\(\/\).*/{
1249             s//\1/
1250             q
1251           }
1252           s/.*/./; q'`
1253   srcdir=$ac_confdir
1254   if test ! -r "$srcdir/$ac_unique_file"; then
1255     srcdir=..
1256   fi
1257 else
1258   ac_srcdir_defaulted=no
1259 fi
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1263    { (exit 1); exit 1; }; }
1264 fi
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 ac_abs_confdir=`(
1267         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1268    { (exit 1); exit 1; }; }
1269         pwd)`
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272   srcdir=.
1273 fi
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1277 case $srcdir in
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 esac
1280 for ac_var in $ac_precious_vars; do
1281   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282   eval ac_env_${ac_var}_value=\$${ac_var}
1283   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 done
1286
1287 #
1288 # Report the --help message.
1289 #
1290 if test "$ac_init_help" = "long"; then
1291   # Omit some internal or obsolete options to make the list less imposing.
1292   # This message is too long to be a string in the A/UX 3.1 sh.
1293   cat <<_ACEOF
1294 \`configure' configures this package to adapt to many kinds of systems.
1295
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE.  See below for descriptions of some of the useful variables.
1300
1301 Defaults for the options are specified in brackets.
1302
1303 Configuration:
1304   -h, --help              display this help and exit
1305       --help=short        display options specific to this package
1306       --help=recursive    display the short help of all the included packages
1307   -V, --version           display version information and exit
1308   -q, --quiet, --silent   do not print \`checking...' messages
1309       --cache-file=FILE   cache test results in FILE [disabled]
1310   -C, --config-cache      alias for \`--cache-file=config.cache'
1311   -n, --no-create         do not create output files
1312       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1313
1314 Installation directories:
1315   --prefix=PREFIX         install architecture-independent files in PREFIX
1316                           [$ac_default_prefix]
1317   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1318                           [PREFIX]
1319
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1324
1325 For better control, use the options below.
1326
1327 Fine tuning of the installation directories:
1328   --bindir=DIR           user executables [EPREFIX/bin]
1329   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1330   --libexecdir=DIR       program executables [EPREFIX/libexec]
1331   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1332   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1333   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1334   --libdir=DIR           object code libraries [EPREFIX/lib]
1335   --includedir=DIR       C header files [PREFIX/include]
1336   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1337   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1338   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1339   --infodir=DIR          info documentation [DATAROOTDIR/info]
1340   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1341   --mandir=DIR           man documentation [DATAROOTDIR/man]
1342   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1343   --htmldir=DIR          html documentation [DOCDIR]
1344   --dvidir=DIR           dvi documentation [DOCDIR]
1345   --pdfdir=DIR           pdf documentation [DOCDIR]
1346   --psdir=DIR            ps documentation [DOCDIR]
1347 _ACEOF
1348
1349   cat <<\_ACEOF
1350
1351 System types:
1352   --build=BUILD     configure for building on BUILD [guessed]
1353   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1354 _ACEOF
1355 fi
1356
1357 if test -n "$ac_init_help"; then
1358
1359   cat <<\_ACEOF
1360
1361 Optional Features:
1362   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1363   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1364   --enable-maintainer-mode enable makefile rules useful for maintainers
1365   --enable-compression    enable EXPERIMENTAL compression support
1366   --enable-htree          enable EXPERIMENTAL htree directory support
1367   --enable-elf-shlibs     select ELF shared libraries
1368   --enable-bsd-shlibs     select BSD shared libraries
1369   --enable-profile        build profiling libraries
1370   --enable-checker        build checker libraries
1371   --enable-jbd-debug      enable journal debugging
1372   --enable-blkid-debug    enable blkid debugging
1373   --enable-testio-debug   enable the use of the test I/O manager for debugging
1374   --disable-debugfs       disable support of debugfs program
1375   --disable-imager        disable support of e2image program
1376   --disable-resizer       disable support of e2resize program
1377   --enable-fsck           build fsck wrapper program
1378   --enable-e2initrd-helper build e2initrd-helper program
1379   --enable-blkid-devmapper  build with device-mapper support
1380   --disable-tls           disable use of thread local support
1381   --disable-uuidd         disable building the uuid daemon
1382   --disable-nls           do not use Native Language Support
1383   --disable-rpath         do not hardcode runtime library paths
1384
1385 Optional Packages:
1386   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1387   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1388   --with-diet-libc        use diet libc
1389   --with-cc=COMPILER      select compiler to use
1390   --with-linker=LINKER    select linker to use
1391   --with-ccopts=CCOPTS    select compiler command line options
1392   --with-ldopts=LDOPTS    select linker command line options
1393   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1394   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1395   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1396   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1397   --with-included-gettext use the GNU gettext library included here
1398   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1399   --without-libintl-prefix     don't search for libintl in includedir and libdir
1400
1401 Some influential environment variables:
1402   CC          C compiler command
1403   CFLAGS      C compiler flags
1404   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405               nonstandard directory <lib dir>
1406   LIBS        libraries to pass to the linker, e.g. -l<library>
1407   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408               you have headers in a nonstandard directory <include dir>
1409   CPP         C preprocessor
1410   PKG_CONFIG  path to pkg-config utility
1411
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1414
1415 _ACEOF
1416 ac_status=$?
1417 fi
1418
1419 if test "$ac_init_help" = "recursive"; then
1420   # If there are subdirs, report their specific --help.
1421   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422     test -d "$ac_dir" || continue
1423     ac_builddir=.
1424
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *)
1428   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1429   # A ".." for each directory in $ac_dir_suffix.
1430   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1431   case $ac_top_builddir_sub in
1432   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434   esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1440
1441 case $srcdir in
1442   .)  # We are building in place.
1443     ac_srcdir=.
1444     ac_top_srcdir=$ac_top_builddir_sub
1445     ac_abs_top_srcdir=$ac_pwd ;;
1446   [\\/]* | ?:[\\/]* )  # Absolute name.
1447     ac_srcdir=$srcdir$ac_dir_suffix;
1448     ac_top_srcdir=$srcdir
1449     ac_abs_top_srcdir=$srcdir ;;
1450   *) # Relative name.
1451     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452     ac_top_srcdir=$ac_top_build_prefix$srcdir
1453     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457     cd "$ac_dir" || { ac_status=$?; continue; }
1458     # Check for guested configure.
1459     if test -f "$ac_srcdir/configure.gnu"; then
1460       echo &&
1461       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462     elif test -f "$ac_srcdir/configure"; then
1463       echo &&
1464       $SHELL "$ac_srcdir/configure" --help=recursive
1465     else
1466       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467     fi || ac_status=$?
1468     cd "$ac_pwd" || { ac_status=$?; break; }
1469   done
1470 fi
1471
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474   cat <<\_ACEOF
1475 configure
1476 generated by GNU Autoconf 2.61
1477
1478 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1479 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1482 _ACEOF
1483   exit
1484 fi
1485 cat >config.log <<_ACEOF
1486 This file contains any messages produced by compilers while
1487 running configure, to aid debugging if configure makes a mistake.
1488
1489 It was created by $as_me, which was
1490 generated by GNU Autoconf 2.61.  Invocation command line was
1491
1492   $ $0 $@
1493
1494 _ACEOF
1495 exec 5>>config.log
1496 {
1497 cat <<_ASUNAME
1498 ## --------- ##
1499 ## Platform. ##
1500 ## --------- ##
1501
1502 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1503 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1504 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1505 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1506 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507
1508 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1509 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1510
1511 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1512 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1513 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1514 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1515 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1516 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1517 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1518
1519 _ASUNAME
1520
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524   IFS=$as_save_IFS
1525   test -z "$as_dir" && as_dir=.
1526   echo "PATH: $as_dir"
1527 done
1528 IFS=$as_save_IFS
1529
1530 } >&5
1531
1532 cat >&5 <<_ACEOF
1533
1534
1535 ## ----------- ##
1536 ## Core tests. ##
1537 ## ----------- ##
1538
1539 _ACEOF
1540
1541
1542 # Keep a trace of the command line.
1543 # Strip out --no-create and --no-recursion so they do not pile up.
1544 # Strip out --silent because we don't want to record it for future runs.
1545 # Also quote any args containing shell meta-characters.
1546 # Make two passes to allow for proper duplicate-argument suppression.
1547 ac_configure_args=
1548 ac_configure_args0=
1549 ac_configure_args1=
1550 ac_must_keep_next=false
1551 for ac_pass in 1 2
1552 do
1553   for ac_arg
1554   do
1555     case $ac_arg in
1556     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1557     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1558     | -silent | --silent | --silen | --sile | --sil)
1559       continue ;;
1560     *\'*)
1561       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1562     esac
1563     case $ac_pass in
1564     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565     2)
1566       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1567       if test $ac_must_keep_next = true; then
1568         ac_must_keep_next=false # Got value, back to normal.
1569       else
1570         case $ac_arg in
1571           *=* | --config-cache | -C | -disable-* | --disable-* \
1572           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1573           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1574           | -with-* | --with-* | -without-* | --without-* | --x)
1575             case "$ac_configure_args0 " in
1576               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1577             esac
1578             ;;
1579           -* ) ac_must_keep_next=true ;;
1580         esac
1581       fi
1582       ac_configure_args="$ac_configure_args '$ac_arg'"
1583       ;;
1584     esac
1585   done
1586 done
1587 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1588 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589
1590 # When interrupted or exit'd, cleanup temporary files, and complete
1591 # config.log.  We remove comments because anyway the quotes in there
1592 # would cause problems or look ugly.
1593 # WARNING: Use '\'' to represent an apostrophe within the trap.
1594 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1595 trap 'exit_status=$?
1596   # Save into config.log some information that might help in debugging.
1597   {
1598     echo
1599
1600     cat <<\_ASBOX
1601 ## ---------------- ##
1602 ## Cache variables. ##
1603 ## ---------------- ##
1604 _ASBOX
1605     echo
1606     # The following way of writing the cache mishandles newlines in values,
1607 (
1608   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1609     eval ac_val=\$$ac_var
1610     case $ac_val in #(
1611     *${as_nl}*)
1612       case $ac_var in #(
1613       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1614 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1615       esac
1616       case $ac_var in #(
1617       _ | IFS | as_nl) ;; #(
1618       *) $as_unset $ac_var ;;
1619       esac ;;
1620     esac
1621   done
1622   (set) 2>&1 |
1623     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624     *${as_nl}ac_space=\ *)
1625       sed -n \
1626         "s/'\''/'\''\\\\'\'''\''/g;
1627           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1628       ;; #(
1629     *)
1630       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1631       ;;
1632     esac |
1633     sort
1634 )
1635     echo
1636
1637     cat <<\_ASBOX
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1641 _ASBOX
1642     echo
1643     for ac_var in $ac_subst_vars
1644     do
1645       eval ac_val=\$$ac_var
1646       case $ac_val in
1647       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648       esac
1649       echo "$ac_var='\''$ac_val'\''"
1650     done | sort
1651     echo
1652
1653     if test -n "$ac_subst_files"; then
1654       cat <<\_ASBOX
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1658 _ASBOX
1659       echo
1660       for ac_var in $ac_subst_files
1661       do
1662         eval ac_val=\$$ac_var
1663         case $ac_val in
1664         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665         esac
1666         echo "$ac_var='\''$ac_val'\''"
1667       done | sort
1668       echo
1669     fi
1670
1671     if test -s confdefs.h; then
1672       cat <<\_ASBOX
1673 ## ----------- ##
1674 ## confdefs.h. ##
1675 ## ----------- ##
1676 _ASBOX
1677       echo
1678       cat confdefs.h
1679       echo
1680     fi
1681     test "$ac_signal" != 0 &&
1682       echo "$as_me: caught signal $ac_signal"
1683     echo "$as_me: exit $exit_status"
1684   } >&5
1685   rm -f core *.core core.conftest.* &&
1686     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1687     exit $exit_status
1688 ' 0
1689 for ac_signal in 1 2 13 15; do
1690   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1691 done
1692 ac_signal=0
1693
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1696
1697 # Predefined preprocessor variables.
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1721 _ACEOF
1722
1723
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer explicitly selected file to automatically selected ones.
1726 if test -n "$CONFIG_SITE"; then
1727   set x "$CONFIG_SITE"
1728 elif test "x$prefix" != xNONE; then
1729   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1730 else
1731   set x "$ac_default_prefix/share/config.site" \
1732         "$ac_default_prefix/etc/config.site"
1733 fi
1734 shift
1735 for ac_site_file
1736 do
1737   if test -r "$ac_site_file"; then
1738     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1739 echo "$as_me: loading site script $ac_site_file" >&6;}
1740     sed 's/^/| /' "$ac_site_file" >&5
1741     . "$ac_site_file"
1742   fi
1743 done
1744
1745 if test -r "$cache_file"; then
1746   # Some versions of bash will fail to source /dev/null (special
1747   # files actually), so we avoid doing that.
1748   if test -f "$cache_file"; then
1749     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1750 echo "$as_me: loading cache $cache_file" >&6;}
1751     case $cache_file in
1752       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1753       *)                      . "./$cache_file";;
1754     esac
1755   fi
1756 else
1757   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1758 echo "$as_me: creating cache $cache_file" >&6;}
1759   >$cache_file
1760 fi
1761
1762 # Check that the precious variables saved in the cache have kept the same
1763 # value.
1764 ac_cache_corrupted=false
1765 for ac_var in $ac_precious_vars; do
1766   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1767   eval ac_new_set=\$ac_env_${ac_var}_set
1768   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1769   eval ac_new_val=\$ac_env_${ac_var}_value
1770   case $ac_old_set,$ac_new_set in
1771     set,)
1772       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1774       ac_cache_corrupted=: ;;
1775     ,set)
1776       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1777 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1778       ac_cache_corrupted=: ;;
1779     ,);;
1780     *)
1781       if test "x$ac_old_val" != "x$ac_new_val"; then
1782         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1783 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1784         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1785 echo "$as_me:   former value:  $ac_old_val" >&2;}
1786         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1787 echo "$as_me:   current value: $ac_new_val" >&2;}
1788         ac_cache_corrupted=:
1789       fi;;
1790   esac
1791   # Pass precious variables to config.status.
1792   if test "$ac_new_set" = set; then
1793     case $ac_new_val in
1794     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1795     *) ac_arg=$ac_var=$ac_new_val ;;
1796     esac
1797     case " $ac_configure_args " in
1798       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1799       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1800     esac
1801   fi
1802 done
1803 if $ac_cache_corrupted; then
1804   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1805 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1806   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1807 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1808    { (exit 1); exit 1; }; }
1809 fi
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827 ac_ext=c
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832
1833
1834
1835 ac_aux_dir=
1836 for ac_dir in config "$srcdir"/config; do
1837   if test -f "$ac_dir/install-sh"; then
1838     ac_aux_dir=$ac_dir
1839     ac_install_sh="$ac_aux_dir/install-sh -c"
1840     break
1841   elif test -f "$ac_dir/install.sh"; then
1842     ac_aux_dir=$ac_dir
1843     ac_install_sh="$ac_aux_dir/install.sh -c"
1844     break
1845   elif test -f "$ac_dir/shtool"; then
1846     ac_aux_dir=$ac_dir
1847     ac_install_sh="$ac_aux_dir/shtool install -c"
1848     break
1849   fi
1850 done
1851 if test -z "$ac_aux_dir"; then
1852   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1853 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1854    { (exit 1); exit 1; }; }
1855 fi
1856
1857 # These three variables are undocumented and unsupported,
1858 # and are intended to be withdrawn in a future Autoconf release.
1859 # They can cause serious problems if a builder's source tree is in a directory
1860 # whose full name contains unusual characters.
1861 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1862 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1863 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1864
1865
1866 MCONFIG=./MCONFIG
1867
1868 BINARY_TYPE=bin
1869 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1870         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1871 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1872         | tr \" " "`
1873 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1874 MONTH=`echo $DATE | awk -F- '{print $2}'`
1875 YEAR=`echo $DATE | awk -F- '{print $3}'`
1876
1877 if expr $YEAR ">" 1900 > /dev/null ; then
1878         E2FSPROGS_YEAR=$YEAR
1879 elif expr $YEAR ">" 90 >/dev/null ; then
1880         E2FSPROGS_YEAR=19$YEAR
1881 else
1882         E2FSPROGS_YEAR=20$YEAR
1883 fi
1884
1885 case $MONTH in
1886 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1887 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1888 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1889 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1890 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1891 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1892 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1893 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1894 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1895 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1896 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1897 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1898 *)      echo "Unknown month $MONTH??" ;;
1899 esac
1900
1901 base_ver=`echo $E2FSPROGS_VERSION | \
1902                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1903
1904 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1905
1906 case $E2FSPROGS_VERSION in
1907 *-WIP|pre-*)
1908         pre_vers=`echo $base_ver 0.01 - p | dc`
1909         E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1910         ;;
1911 *)
1912         E2FSPROGS_PKGVER="$base_ver"
1913         ;;
1914 esac
1915
1916 unset DATE MONTH YEAR base_ver pre_vers date_spec
1917 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1918 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1919
1920
1921
1922
1923
1924 # Make sure we can run config.sub.
1925 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1926   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1927 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1928    { (exit 1); exit 1; }; }
1929
1930 { echo "$as_me:$LINENO: checking build system type" >&5
1931 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1932 if test "${ac_cv_build+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   ac_build_alias=$build_alias
1936 test "x$ac_build_alias" = x &&
1937   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1938 test "x$ac_build_alias" = x &&
1939   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1940 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1941    { (exit 1); exit 1; }; }
1942 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1943   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1944 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1945    { (exit 1); exit 1; }; }
1946
1947 fi
1948 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1949 echo "${ECHO_T}$ac_cv_build" >&6; }
1950 case $ac_cv_build in
1951 *-*-*) ;;
1952 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1953 echo "$as_me: error: invalid value of canonical build" >&2;}
1954    { (exit 1); exit 1; }; };;
1955 esac
1956 build=$ac_cv_build
1957 ac_save_IFS=$IFS; IFS='-'
1958 set x $ac_cv_build
1959 shift
1960 build_cpu=$1
1961 build_vendor=$2
1962 shift; shift
1963 # Remember, the first character of IFS is used to create $*,
1964 # except with old shells:
1965 build_os=$*
1966 IFS=$ac_save_IFS
1967 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1968
1969
1970 { echo "$as_me:$LINENO: checking host system type" >&5
1971 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1972 if test "${ac_cv_host+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   if test "x$host_alias" = x; then
1976   ac_cv_host=$ac_cv_build
1977 else
1978   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1979     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1980 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1981    { (exit 1); exit 1; }; }
1982 fi
1983
1984 fi
1985 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1986 echo "${ECHO_T}$ac_cv_host" >&6; }
1987 case $ac_cv_host in
1988 *-*-*) ;;
1989 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1990 echo "$as_me: error: invalid value of canonical host" >&2;}
1991    { (exit 1); exit 1; }; };;
1992 esac
1993 host=$ac_cv_host
1994 ac_save_IFS=$IFS; IFS='-'
1995 set x $ac_cv_host
1996 shift
1997 host_cpu=$1
1998 host_vendor=$2
1999 shift; shift
2000 # Remember, the first character of IFS is used to create $*,
2001 # except with old shells:
2002 host_os=$*
2003 IFS=$ac_save_IFS
2004 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2005
2006
2007
2008 # Check whether --with-diet-libc was given.
2009 if test "${with_diet_libc+set}" = set; then
2010   withval=$with_diet_libc; CC="diet cc -nostdinc"
2011 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2012 echo "${ECHO_T}CC=$CC" >&6; }
2013 fi
2014
2015 # Check whether --with-cc was given.
2016 if test "${with_cc+set}" = set; then
2017   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2018 echo "${ECHO_T}CC=$withval" >&6; }
2019 CC=$withval
2020 else
2021   if test -z "$CC" ; then CC=cc; fi
2022 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2023 echo "${ECHO_T}CC defaults to $CC" >&6; }
2024 fi
2025 export CC
2026
2027 ac_ext=c
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 if test -n "$ac_tool_prefix"; then
2033   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   if test -n "$CC"; then
2041   ac_cv_prog_CC="$CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046   IFS=$as_save_IFS
2047   test -z "$as_dir" && as_dir=.
2048   for ac_exec_ext in '' $ac_executable_extensions; do
2049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2050     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052     break 2
2053   fi
2054 done
2055 done
2056 IFS=$as_save_IFS
2057
2058 fi
2059 fi
2060 CC=$ac_cv_prog_CC
2061 if test -n "$CC"; then
2062   { echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6; }
2064 else
2065   { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2067 fi
2068
2069
2070 fi
2071 if test -z "$ac_cv_prog_CC"; then
2072   ac_ct_CC=$CC
2073   # Extract the first word of "gcc", so it can be a program name with args.
2074 set dummy gcc; ac_word=$2
2075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test -n "$ac_ct_CC"; then
2081   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090     ac_cv_prog_ac_ct_CC="gcc"
2091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092     break 2
2093   fi
2094 done
2095 done
2096 IFS=$as_save_IFS
2097
2098 fi
2099 fi
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6; }
2104 else
2105   { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2107 fi
2108
2109   if test "x$ac_ct_CC" = x; then
2110     CC=""
2111   else
2112     case $cross_compiling:$ac_tool_warned in
2113 yes:)
2114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2115 whose name does not start with the host triplet.  If you think this
2116 configuration is useful to you, please write to autoconf@gnu.org." >&5
2117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet.  If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2120 ac_tool_warned=yes ;;
2121 esac
2122     CC=$ac_ct_CC
2123   fi
2124 else
2125   CC="$ac_cv_prog_CC"
2126 fi
2127
2128 if test -z "$CC"; then
2129           if test -n "$ac_tool_prefix"; then
2130     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}cc; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   if test -n "$CC"; then
2138   ac_cv_prog_CC="$CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145   for ac_exec_ext in '' $ac_executable_extensions; do
2146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147     ac_cv_prog_CC="${ac_tool_prefix}cc"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153 IFS=$as_save_IFS
2154
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159   { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2161 else
2162   { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2164 fi
2165
2166
2167   fi
2168 fi
2169 if test -z "$CC"; then
2170   # Extract the first word of "cc", so it can be a program name with args.
2171 set dummy cc; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   if test -n "$CC"; then
2178   ac_cv_prog_CC="$CC" # Let the user override the test.
2179 else
2180   ac_prog_rejected=no
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   for ac_exec_ext in '' $ac_executable_extensions; do
2187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189        ac_prog_rejected=yes
2190        continue
2191      fi
2192     ac_cv_prog_CC="cc"
2193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 if test $ac_prog_rejected = yes; then
2201   # We found a bogon in the path, so make sure we never use it.
2202   set dummy $ac_cv_prog_CC
2203   shift
2204   if test $# != 0; then
2205     # We chose a different compiler from the bogus one.
2206     # However, it has the same basename, so the bogon will be chosen
2207     # first if we set CC to just the basename; use the full file name.
2208     shift
2209     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2210   fi
2211 fi
2212 fi
2213 fi
2214 CC=$ac_cv_prog_CC
2215 if test -n "$CC"; then
2216   { echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6; }
2218 else
2219   { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2221 fi
2222
2223
2224 fi
2225 if test -z "$CC"; then
2226   if test -n "$ac_tool_prefix"; then
2227   for ac_prog in cl.exe
2228   do
2229     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   if test -n "$CC"; then
2237   ac_cv_prog_CC="$CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244   for ac_exec_ext in '' $ac_executable_extensions; do
2245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251 done
2252 IFS=$as_save_IFS
2253
2254 fi
2255 fi
2256 CC=$ac_cv_prog_CC
2257 if test -n "$CC"; then
2258   { echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6; }
2260 else
2261   { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2263 fi
2264
2265
2266     test -n "$CC" && break
2267   done
2268 fi
2269 if test -z "$CC"; then
2270   ac_ct_CC=$CC
2271   for ac_prog in cl.exe
2272 do
2273   # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   if test -n "$ac_ct_CC"; then
2281   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290     ac_cv_prog_ac_ct_CC="$ac_prog"
2291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292     break 2
2293   fi
2294 done
2295 done
2296 IFS=$as_save_IFS
2297
2298 fi
2299 fi
2300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301 if test -n "$ac_ct_CC"; then
2302   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303 echo "${ECHO_T}$ac_ct_CC" >&6; }
2304 else
2305   { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2307 fi
2308
2309
2310   test -n "$ac_ct_CC" && break
2311 done
2312
2313   if test "x$ac_ct_CC" = x; then
2314     CC=""
2315   else
2316     case $cross_compiling:$ac_tool_warned in
2317 yes:)
2318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2319 whose name does not start with the host triplet.  If you think this
2320 configuration is useful to you, please write to autoconf@gnu.org." >&5
2321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet.  If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2324 ac_tool_warned=yes ;;
2325 esac
2326     CC=$ac_ct_CC
2327   fi
2328 fi
2329
2330 fi
2331
2332
2333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: no acceptable C compiler found in \$PATH
2336 See \`config.log' for more details." >&2;}
2337    { (exit 1); exit 1; }; }
2338
2339 # Provide some information about the compiler.
2340 echo "$as_me:$LINENO: checking for C compiler version" >&5
2341 ac_compiler=`set X $ac_compile; echo $2`
2342 { (ac_try="$ac_compiler --version >&5"
2343 case "(($ac_try" in
2344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345   *) ac_try_echo=$ac_try;;
2346 esac
2347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348   (eval "$ac_compiler --version >&5") 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }
2352 { (ac_try="$ac_compiler -v >&5"
2353 case "(($ac_try" in
2354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355   *) ac_try_echo=$ac_try;;
2356 esac
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358   (eval "$ac_compiler -v >&5") 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }
2362 { (ac_try="$ac_compiler -V >&5"
2363 case "(($ac_try" in
2364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365   *) ac_try_echo=$ac_try;;
2366 esac
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368   (eval "$ac_compiler -V >&5") 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }
2372
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h.  */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h.  */
2379
2380 int
2381 main ()
2382 {
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 ac_clean_files_save=$ac_clean_files
2389 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2390 # Try to create an executable without -o first, disregard a.out.
2391 # It will help us diagnose broken compilers, and finding out an intuition
2392 # of exeext.
2393 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2394 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2395 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 #
2397 # List of possible output files, starting from the most likely.
2398 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2399 # only as a last resort.  b.out is created by i960 compilers.
2400 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2401 #
2402 # The IRIX 6 linker writes into existing files which may not be
2403 # executable, retaining their permissions.  Remove them first so a
2404 # subsequent execution test works.
2405 ac_rmfiles=
2406 for ac_file in $ac_files
2407 do
2408   case $ac_file in
2409     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2410     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2411   esac
2412 done
2413 rm -f $ac_rmfiles
2414
2415 if { (ac_try="$ac_link_default"
2416 case "(($ac_try" in
2417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418   *) ac_try_echo=$ac_try;;
2419 esac
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421   (eval "$ac_link_default") 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; then
2425   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2427 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2428 # so that the user can short-circuit this test for compilers unknown to
2429 # Autoconf.
2430 for ac_file in $ac_files ''
2431 do
2432   test -f "$ac_file" || continue
2433   case $ac_file in
2434     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2435         ;;
2436     [ab].out )
2437         # We found the default executable, but exeext='' is most
2438         # certainly right.
2439         break;;
2440     *.* )
2441         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2442         then :; else
2443            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444         fi
2445         # We set ac_cv_exeext here because the later test for it is not
2446         # safe: cross compilers may not add the suffix if given an `-o'
2447         # argument, so we may need to know it at that point already.
2448         # Even if this section looks crufty: it has the advantage of
2449         # actually working.
2450         break;;
2451     * )
2452         break;;
2453   esac
2454 done
2455 test "$ac_cv_exeext" = no && ac_cv_exeext=
2456
2457 else
2458   ac_file=''
2459 fi
2460
2461 { echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6; }
2463 if test -z "$ac_file"; then
2464   echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&2;}
2471    { (exit 77); exit 77; }; }
2472 fi
2473
2474 ac_exeext=$ac_cv_exeext
2475
2476 # Check that the compiler produces executables we can run.  If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2481 # If not cross compiling, check that we can run a simple program.
2482 if test "$cross_compiling" != yes; then
2483   if { ac_try='./$ac_file'
2484   { (case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489   (eval "$ac_try") 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; }; then
2493     cross_compiling=no
2494   else
2495     if test "$cross_compiling" = maybe; then
2496         cross_compiling=yes
2497     else
2498         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&2;}
2504    { (exit 1); exit 1; }; }
2505     fi
2506   fi
2507 fi
2508 { echo "$as_me:$LINENO: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6; }
2510
2511 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2512 ac_clean_files=$ac_clean_files_save
2513 # Check that the compiler produces executables we can run.  If not, either
2514 # the compiler is broken, or we cross compile.
2515 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2517 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518 echo "${ECHO_T}$cross_compiling" >&6; }
2519
2520 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2522 if { (ac_try="$ac_link"
2523 case "(($ac_try" in
2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525   *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528   (eval "$ac_link") 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; then
2532   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2533 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2534 # work properly (i.e., refer to `conftest.exe'), while it won't with
2535 # `rm'.
2536 for ac_file in conftest.exe conftest conftest.*; do
2537   test -f "$ac_file" || continue
2538   case $ac_file in
2539     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2540     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2541           break;;
2542     * ) break;;
2543   esac
2544 done
2545 else
2546   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2547 See \`config.log' for more details." >&5
2548 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details." >&2;}
2550    { (exit 1); exit 1; }; }
2551 fi
2552
2553 rm -f conftest$ac_cv_exeext
2554 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2555 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2556
2557 rm -f conftest.$ac_ext
2558 EXEEXT=$ac_cv_exeext
2559 ac_exeext=$EXEEXT
2560 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2561 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2562 if test "${ac_cv_objext+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 int
2573 main ()
2574 {
2575
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.o conftest.obj
2581 if { (ac_try="$ac_compile"
2582 case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_compile") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; then
2591   for ac_file in conftest.o conftest.obj conftest.*; do
2592   test -f "$ac_file" || continue;
2593   case $ac_file in
2594     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2595     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2596        break;;
2597   esac
2598 done
2599 else
2600   echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&2;}
2607    { (exit 1); exit 1; }; }
2608 fi
2609
2610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611 fi
2612 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613 echo "${ECHO_T}$ac_cv_objext" >&6; }
2614 OBJEXT=$ac_cv_objext
2615 ac_objext=$OBJEXT
2616 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627
2628 int
2629 main ()
2630 {
2631 #ifndef __GNUC__
2632        choke me
2633 #endif
2634
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (ac_try="$ac_compile"
2641 case "(($ac_try" in
2642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643   *) ac_try_echo=$ac_try;;
2644 esac
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646   (eval "$ac_compile") 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } && {
2653          test -z "$ac_c_werror_flag" ||
2654          test ! -s conftest.err
2655        } && test -s conftest.$ac_objext; then
2656   ac_compiler_gnu=yes
2657 else
2658   echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661         ac_compiler_gnu=no
2662 fi
2663
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2666
2667 fi
2668 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2670 GCC=`test $ac_compiler_gnu = yes && echo yes`
2671 ac_test_CFLAGS=${CFLAGS+set}
2672 ac_save_CFLAGS=$CFLAGS
2673 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_cc_g+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   ac_save_c_werror_flag=$ac_c_werror_flag
2679    ac_c_werror_flag=yes
2680    ac_cv_prog_cc_g=no
2681    CFLAGS="-g"
2682    cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_compile") 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } && {
2711          test -z "$ac_c_werror_flag" ||
2712          test ! -s conftest.err
2713        } && test -s conftest.$ac_objext; then
2714   ac_cv_prog_cc_g=yes
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719         CFLAGS=""
2720       cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726
2727 int
2728 main ()
2729 {
2730
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2737 case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742   (eval "$ac_compile") 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } && {
2749          test -z "$ac_c_werror_flag" ||
2750          test ! -s conftest.err
2751        } && test -s conftest.$ac_objext; then
2752   :
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757         ac_c_werror_flag=$ac_save_c_werror_flag
2758          CFLAGS="-g"
2759          cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765
2766 int
2767 main ()
2768 {
2769
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_compile") 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } && {
2788          test -z "$ac_c_werror_flag" ||
2789          test ! -s conftest.err
2790        } && test -s conftest.$ac_objext; then
2791   ac_cv_prog_cc_g=yes
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796
2797 fi
2798
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 fi
2801
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 fi
2804
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806    ac_c_werror_flag=$ac_save_c_werror_flag
2807 fi
2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2810 if test "$ac_test_CFLAGS" = set; then
2811   CFLAGS=$ac_save_CFLAGS
2812 elif test $ac_cv_prog_cc_g = yes; then
2813   if test "$GCC" = yes; then
2814     CFLAGS="-g -O2"
2815   else
2816     CFLAGS="-g"
2817   fi
2818 else
2819   if test "$GCC" = yes; then
2820     CFLAGS="-O2"
2821   else
2822     CFLAGS=
2823   fi
2824 fi
2825 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2826 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_cc_c89+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   ac_cv_prog_cc_c89=no
2831 ac_save_CC=$CC
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838 #include <stdarg.h>
2839 #include <stdio.h>
2840 #include <sys/types.h>
2841 #include <sys/stat.h>
2842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2843 struct buf { int x; };
2844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845 static char *e (p, i)
2846      char **p;
2847      int i;
2848 {
2849   return p[i];
2850 }
2851 static char *f (char * (*g) (char **, int), char **p, ...)
2852 {
2853   char *s;
2854   va_list v;
2855   va_start (v,p);
2856   s = g (p, va_arg (v,int));
2857   va_end (v);
2858   return s;
2859 }
2860
2861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2862    function prototypes and stuff, but not '\xHH' hex character constants.
2863    These don't provoke an error unfortunately, instead are silently treated
2864    as 'x'.  The following induces an error, until -std is added to get
2865    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2866    array size at least.  It's necessary to write '\x00'==0 to get something
2867    that's true only with -std.  */
2868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869
2870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2871    inside strings and character constants.  */
2872 #define FOO(x) 'x'
2873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874
2875 int test (int i, double x);
2876 struct s1 {int (*f) (int a);};
2877 struct s2 {int (*f) (double a);};
2878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2879 int argc;
2880 char **argv;
2881 int
2882 main ()
2883 {
2884 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2890         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 do
2892   CC="$ac_save_CC $ac_arg"
2893   rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compile") 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } && {
2907          test -z "$ac_c_werror_flag" ||
2908          test ! -s conftest.err
2909        } && test -s conftest.$ac_objext; then
2910   ac_cv_prog_cc_c89=$ac_arg
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915
2916 fi
2917
2918 rm -f core conftest.err conftest.$ac_objext
2919   test "x$ac_cv_prog_cc_c89" != "xno" && break
2920 done
2921 rm -f conftest.$ac_ext
2922 CC=$ac_save_CC
2923
2924 fi
2925 # AC_CACHE_VAL
2926 case "x$ac_cv_prog_cc_c89" in
2927   x)
2928     { echo "$as_me:$LINENO: result: none needed" >&5
2929 echo "${ECHO_T}none needed" >&6; } ;;
2930   xno)
2931     { echo "$as_me:$LINENO: result: unsupported" >&5
2932 echo "${ECHO_T}unsupported" >&6; } ;;
2933   *)
2934     CC="$CC $ac_cv_prog_cc_c89"
2935     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2937 esac
2938
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945
2946 ac_ext=c
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2952 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2953 # On Suns, sometimes $CPP names a directory.
2954 if test -n "$CPP" && test -d "$CPP"; then
2955   CPP=
2956 fi
2957 if test -z "$CPP"; then
2958   if test "${ac_cv_prog_CPP+set}" = set; then
2959   echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961       # Double quotes because CPP needs to be expanded
2962     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2963     do
2964       ac_preproc_ok=false
2965 for ac_c_preproc_warn_flag in '' yes
2966 do
2967   # Use a header file that comes with gcc, so configuring glibc
2968   # with a fresh cross-compiler works.
2969   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2970   # <limits.h> exists even on freestanding compilers.
2971   # On the NeXT, cc -E runs the code through the compiler's parser,
2972   # not just through cpp. "Syntax error" is here to catch this case.
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979 #ifdef __STDC__
2980 # include <limits.h>
2981 #else
2982 # include <assert.h>
2983 #endif
2984                      Syntax error
2985 _ACEOF
2986 if { (ac_try="$ac_cpp conftest.$ac_ext"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } >/dev/null && {
2999          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3000          test ! -s conftest.err
3001        }; then
3002   :
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007   # Broken: fails on valid input.
3008 continue
3009 fi
3010
3011 rm -f conftest.err conftest.$ac_ext
3012
3013   # OK, works on sane cases.  Now check whether nonexistent headers
3014   # can be detected and how.
3015   cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021 #include <ac_nonexistent.h>
3022 _ACEOF
3023 if { (ac_try="$ac_cpp conftest.$ac_ext"
3024 case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } >/dev/null && {
3036          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3037          test ! -s conftest.err
3038        }; then
3039   # Broken: success on invalid input.
3040 continue
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045   # Passes both tests.
3046 ac_preproc_ok=:
3047 break
3048 fi
3049
3050 rm -f conftest.err conftest.$ac_ext
3051
3052 done
3053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054 rm -f conftest.err conftest.$ac_ext
3055 if $ac_preproc_ok; then
3056   break
3057 fi
3058
3059     done
3060     ac_cv_prog_CPP=$CPP
3061
3062 fi
3063   CPP=$ac_cv_prog_CPP
3064 else
3065   ac_cv_prog_CPP=$CPP
3066 fi
3067 { echo "$as_me:$LINENO: result: $CPP" >&5
3068 echo "${ECHO_T}$CPP" >&6; }
3069 ac_preproc_ok=false
3070 for ac_c_preproc_warn_flag in '' yes
3071 do
3072   # Use a header file that comes with gcc, so configuring glibc
3073   # with a fresh cross-compiler works.
3074   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075   # <limits.h> exists even on freestanding compilers.
3076   # On the NeXT, cc -E runs the code through the compiler's parser,
3077   # not just through cpp. "Syntax error" is here to catch this case.
3078   cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084 #ifdef __STDC__
3085 # include <limits.h>
3086 #else
3087 # include <assert.h>
3088 #endif
3089                      Syntax error
3090 _ACEOF
3091 if { (ac_try="$ac_cpp conftest.$ac_ext"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } >/dev/null && {
3104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105          test ! -s conftest.err
3106        }; then
3107   :
3108 else
3109   echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112   # Broken: fails on valid input.
3113 continue
3114 fi
3115
3116 rm -f conftest.err conftest.$ac_ext
3117
3118   # OK, works on sane cases.  Now check whether nonexistent headers
3119   # can be detected and how.
3120   cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126 #include <ac_nonexistent.h>
3127 _ACEOF
3128 if { (ac_try="$ac_cpp conftest.$ac_ext"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } >/dev/null && {
3141          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142          test ! -s conftest.err
3143        }; then
3144   # Broken: success on invalid input.
3145 continue
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150   # Passes both tests.
3151 ac_preproc_ok=:
3152 break
3153 fi
3154
3155 rm -f conftest.err conftest.$ac_ext
3156
3157 done
3158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159 rm -f conftest.err conftest.$ac_ext
3160 if $ac_preproc_ok; then
3161   :
3162 else
3163   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3164 See \`config.log' for more details." >&5
3165 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&2;}
3167    { (exit 1); exit 1; }; }
3168 fi
3169
3170 ac_ext=c
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175
3176
3177 # Check whether --with-linker was given.
3178 if test "${with_linker+set}" = set; then
3179   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3180 echo "${ECHO_T}LD=$withval" >&6; }
3181 LD=$withval
3182 else
3183   if test -z "$LD" ; then LD=$CC; fi
3184 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3185 echo "${ECHO_T}LD defaults to $LD" >&6; }
3186 fi
3187 export LD
3188
3189
3190 # Check whether --with-ccopts was given.
3191 if test "${with_ccopts+set}" = set; then
3192   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3193 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3194 CFLAGS=$withval
3195 fi
3196
3197
3198 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3199 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3200 if test "${ac_cv_path_GREP+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   # Extract the first word of "grep ggrep" to use in msg output
3204 if test -z "$GREP"; then
3205 set dummy grep ggrep; ac_prog_name=$2
3206 if test "${ac_cv_path_GREP+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209   ac_path_GREP_found=false
3210 # Loop through the user's path and test for each of PROGNAME-LIST
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216   for ac_prog in grep ggrep; do
3217   for ac_exec_ext in '' $ac_executable_extensions; do
3218     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3219     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3220     # Check for GNU ac_path_GREP and select it if it is found.
3221   # Check for GNU $ac_path_GREP
3222 case `"$ac_path_GREP" --version 2>&1` in
3223 *GNU*)
3224   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3225 *)
3226   ac_count=0
3227   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3228   while :
3229   do
3230     cat "conftest.in" "conftest.in" >"conftest.tmp"
3231     mv "conftest.tmp" "conftest.in"
3232     cp "conftest.in" "conftest.nl"
3233     echo 'GREP' >> "conftest.nl"
3234     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3236     ac_count=`expr $ac_count + 1`
3237     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3238       # Best one so far, save it but keep looking for a better one
3239       ac_cv_path_GREP="$ac_path_GREP"
3240       ac_path_GREP_max=$ac_count
3241     fi
3242     # 10*(2^10) chars as input seems more than enough
3243     test $ac_count -gt 10 && break
3244   done
3245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3246 esac
3247
3248
3249     $ac_path_GREP_found && break 3
3250   done
3251 done
3252
3253 done
3254 IFS=$as_save_IFS
3255
3256
3257 fi
3258
3259 GREP="$ac_cv_path_GREP"
3260 if test -z "$GREP"; then
3261   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3263    { (exit 1); exit 1; }; }
3264 fi
3265
3266 else
3267   ac_cv_path_GREP=$GREP
3268 fi
3269
3270
3271 fi
3272 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3273 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3274  GREP="$ac_cv_path_GREP"
3275
3276
3277 { echo "$as_me:$LINENO: checking for egrep" >&5
3278 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3279 if test "${ac_cv_path_EGREP+set}" = set; then
3280   echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3283    then ac_cv_path_EGREP="$GREP -E"
3284    else
3285      # Extract the first word of "egrep" to use in msg output
3286 if test -z "$EGREP"; then
3287 set dummy egrep; ac_prog_name=$2
3288 if test "${ac_cv_path_EGREP+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   ac_path_EGREP_found=false
3292 # Loop through the user's path and test for each of PROGNAME-LIST
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298   for ac_prog in egrep; do
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3301     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3302     # Check for GNU ac_path_EGREP and select it if it is found.
3303   # Check for GNU $ac_path_EGREP
3304 case `"$ac_path_EGREP" --version 2>&1` in
3305 *GNU*)
3306   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3307 *)
3308   ac_count=0
3309   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3310   while :
3311   do
3312     cat "conftest.in" "conftest.in" >"conftest.tmp"
3313     mv "conftest.tmp" "conftest.in"
3314     cp "conftest.in" "conftest.nl"
3315     echo 'EGREP' >> "conftest.nl"
3316     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3318     ac_count=`expr $ac_count + 1`
3319     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3320       # Best one so far, save it but keep looking for a better one
3321       ac_cv_path_EGREP="$ac_path_EGREP"
3322       ac_path_EGREP_max=$ac_count
3323     fi
3324     # 10*(2^10) chars as input seems more than enough
3325     test $ac_count -gt 10 && break
3326   done
3327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3328 esac
3329
3330
3331     $ac_path_EGREP_found && break 3
3332   done
3333 done
3334
3335 done
3336 IFS=$as_save_IFS
3337
3338
3339 fi
3340
3341 EGREP="$ac_cv_path_EGREP"
3342 if test -z "$EGREP"; then
3343   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3344 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3345    { (exit 1); exit 1; }; }
3346 fi
3347
3348 else
3349   ac_cv_path_EGREP=$EGREP
3350 fi
3351
3352
3353    fi
3354 fi
3355 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3356 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3357  EGREP="$ac_cv_path_EGREP"
3358
3359
3360 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3362 if test "${ac_cv_header_stdc+set}" = set; then
3363   echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #include <stdlib.h>
3372 #include <stdarg.h>
3373 #include <string.h>
3374 #include <float.h>
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_compile") 2>conftest.er1
3392   ac_status=$?
3393   grep -v '^ *+' conftest.er1 >conftest.err
3394   rm -f conftest.er1
3395   cat conftest.err >&5
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); } && {
3398          test -z "$ac_c_werror_flag" ||
3399          test ! -s conftest.err
3400        } && test -s conftest.$ac_objext; then
3401   ac_cv_header_stdc=yes
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406         ac_cv_header_stdc=no
3407 fi
3408
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410
3411 if test $ac_cv_header_stdc = yes; then
3412   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3413   cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #include <string.h>
3420
3421 _ACEOF
3422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423   $EGREP "memchr" >/dev/null 2>&1; then
3424   :
3425 else
3426   ac_cv_header_stdc=no
3427 fi
3428 rm -f conftest*
3429
3430 fi
3431
3432 if test $ac_cv_header_stdc = yes; then
3433   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <stdlib.h>
3441
3442 _ACEOF
3443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444   $EGREP "free" >/dev/null 2>&1; then
3445   :
3446 else
3447   ac_cv_header_stdc=no
3448 fi
3449 rm -f conftest*
3450
3451 fi
3452
3453 if test $ac_cv_header_stdc = yes; then
3454   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3455   if test "$cross_compiling" = yes; then
3456   :
3457 else
3458   cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #include <ctype.h>
3465 #include <stdlib.h>
3466 #if ((' ' & 0x0FF) == 0x020)
3467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3469 #else
3470 # define ISLOWER(c) \
3471                    (('a' <= (c) && (c) <= 'i') \
3472                      || ('j' <= (c) && (c) <= 'r') \
3473                      || ('s' <= (c) && (c) <= 'z'))
3474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3475 #endif
3476
3477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3478 int
3479 main ()
3480 {
3481   int i;
3482   for (i = 0; i < 256; i++)
3483     if (XOR (islower (i), ISLOWER (i))
3484         || toupper (i) != TOUPPER (i))
3485       return 2;
3486   return 0;
3487 }
3488 _ACEOF
3489 rm -f conftest$ac_exeext
3490 if { (ac_try="$ac_link"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496   (eval "$ac_link") 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3500   { (case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505   (eval "$ac_try") 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); }; }; then
3509   :
3510 else
3511   echo "$as_me: program exited with status $ac_status" >&5
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 ( exit $ac_status )
3516 ac_cv_header_stdc=no
3517 fi
3518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3519 fi
3520
3521
3522 fi
3523 fi
3524 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3525 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3526 if test $ac_cv_header_stdc = yes; then
3527
3528 cat >>confdefs.h <<\_ACEOF
3529 #define STDC_HEADERS 1
3530 _ACEOF
3531
3532 fi
3533
3534 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3545                   inttypes.h stdint.h unistd.h
3546 do
3547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h.  */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h.  */
3559 $ac_includes_default
3560
3561 #include <$ac_header>
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570   (eval "$ac_compile") 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } && {
3577          test -z "$ac_c_werror_flag" ||
3578          test ! -s conftest.err
3579        } && test -s conftest.$ac_objext; then
3580   eval "$as_ac_Header=yes"
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585         eval "$as_ac_Header=no"
3586 fi
3587
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 fi
3590 ac_res=`eval echo '${'$as_ac_Header'}'`
3591                { echo "$as_me:$LINENO: result: $ac_res" >&5
3592 echo "${ECHO_T}$ac_res" >&6; }
3593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3594   cat >>confdefs.h <<_ACEOF
3595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3596 _ACEOF
3597
3598 fi
3599
3600 done
3601
3602
3603 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3604   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3605 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3606 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 fi
3609 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3610 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3611 else
3612   # Is the header compilable?
3613 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3614 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h.  */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h.  */
3621 $ac_includes_default
3622 #include <linux/fs.h>
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631   (eval "$ac_compile") 2>conftest.er1
3632   ac_status=$?
3633   grep -v '^ *+' conftest.er1 >conftest.err
3634   rm -f conftest.er1
3635   cat conftest.err >&5
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); } && {
3638          test -z "$ac_c_werror_flag" ||
3639          test ! -s conftest.err
3640        } && test -s conftest.$ac_objext; then
3641   ac_header_compiler=yes
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646         ac_header_compiler=no
3647 fi
3648
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3651 echo "${ECHO_T}$ac_header_compiler" >&6; }
3652
3653 # Is the header present?
3654 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3655 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3656 cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 #include <linux/fs.h>
3663 _ACEOF
3664 if { (ac_try="$ac_cpp conftest.$ac_ext"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3671   ac_status=$?
3672   grep -v '^ *+' conftest.er1 >conftest.err
3673   rm -f conftest.er1
3674   cat conftest.err >&5
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } >/dev/null && {
3677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3678          test ! -s conftest.err
3679        }; then
3680   ac_header_preproc=yes
3681 else
3682   echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685   ac_header_preproc=no
3686 fi
3687
3688 rm -f conftest.err conftest.$ac_ext
3689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3690 echo "${ECHO_T}$ac_header_preproc" >&6; }
3691
3692 # So?  What about this header?
3693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3694   yes:no: )
3695     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3696 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3697     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3698 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3699     ac_header_preproc=yes
3700     ;;
3701   no:yes:* )
3702     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3703 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3704     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3705 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3706     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3707 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3708     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3709 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3710     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3711 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3712     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3713 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3714
3715     ;;
3716 esac
3717 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3718 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3719 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   ac_cv_header_linux_fs_h=$ac_header_preproc
3723 fi
3724 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3725 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3726
3727 fi
3728 if test $ac_cv_header_linux_fs_h = yes; then
3729   linux_headers=yes
3730 else
3731   linux_headers=no
3732 fi
3733
3734
3735 if test "$linux_headers" != yes; then
3736   LINUX_INCLUDE='-I$(top_builddir)/include'
3737 fi
3738
3739 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3740 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3741 if test "$GCC" = yes
3742 then
3743     case "$host_cpu" in
3744         alpha)          addcflags="-mieee" ;;
3745     esac
3746 fi
3747 if test "x$addcflags" != x
3748 then
3749     { echo "$as_me:$LINENO: result: $addcflags" >&5
3750 echo "${ECHO_T}$addcflags" >&6; }
3751     CFLAGS="$addcflags $CFLAGS"
3752 else
3753     { echo "$as_me:$LINENO: result: (none)" >&5
3754 echo "${ECHO_T}(none)" >&6; }
3755 fi
3756 LIB_EXT=.a
3757 STATIC_LIB_EXT=.a
3758 PROFILE_LIB_EXT=.a
3759
3760 # Check whether --with-ldopts was given.
3761 if test "${with_ldopts+set}" = set; then
3762   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3763 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3764 LDFLAGS=$withval
3765 else
3766   LDFLAGS=
3767 fi
3768
3769
3770 # Check whether --with-root-prefix was given.
3771 if test "${with_root_prefix+set}" = set; then
3772   withval=$with_root_prefix; root_prefix=$withval
3773 else
3774   root_prefix=NONE
3775 fi
3776 # Check whether --enable-maintainer-mode was given.
3777 if test "${enable_maintainer_mode+set}" = set; then
3778   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3779 then
3780         MAINTAINER_CMT=#
3781         echo "Disabling maintainer mode"
3782 else
3783         MAINTAINER_CMT=
3784         echo "Enabling maintainer mode"
3785 fi
3786
3787 else
3788   MAINTAINER_CMT=#
3789 echo "Disabling maintainer mode by default"
3790
3791 fi
3792
3793
3794 # Check whether --enable-compression was given.
3795 if test "${enable_compression+set}" = set; then
3796   enableval=$enable_compression; if test "$enableval" = "no"
3797 then
3798         echo "Disabling compression support"
3799 else
3800         cat >>confdefs.h <<\_ACEOF
3801 #define ENABLE_COMPRESSION 1
3802 _ACEOF
3803
3804         echo "Enabling compression support"
3805         echo "WARNING: Compression support is experimental"
3806 fi
3807
3808 else
3809   echo "Disabling compression support by default"
3810
3811 fi
3812
3813 # Check whether --enable-htree was given.
3814 if test "${enable_htree+set}" = set; then
3815   enableval=$enable_htree; if test "$enableval" = "no"
3816 then
3817         HTREE_CMT=#
3818         echo "Disabling htree directory support"
3819 else
3820         HTREE_CMT=
3821         cat >>confdefs.h <<\_ACEOF
3822 #define ENABLE_HTREE 1
3823 _ACEOF
3824
3825         echo "Enabling htree directory support"
3826 fi
3827
3828 else
3829   HTREE_CMT=
3830 cat >>confdefs.h <<\_ACEOF
3831 #define ENABLE_HTREE 1
3832 _ACEOF
3833
3834 echo "Enabling htree directory support by default"
3835
3836 fi
3837
3838
3839 E2_PKG_CONFIG_STATIC=--static
3840 # Check whether --enable-elf-shlibs was given.
3841 if test "${enable_elf_shlibs+set}" = set; then
3842   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3843 then
3844         ELF_CMT=#
3845         MAKEFILE_ELF=/dev/null
3846         echo "Disabling ELF shared libraries"
3847 else
3848         E2_PKG_CONFIG_STATIC=
3849         ELF_CMT=
3850         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3851         case "$host_os" in
3852         solaris2.*)
3853                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3854         ;;
3855         esac
3856         BINARY_TYPE=elfbin
3857         LIB_EXT=.so
3858         echo "Enabling ELF shared libraries"
3859 fi
3860
3861 else
3862   MAKEFILE_ELF=/dev/null
3863 ELF_CMT=#
3864 echo "Disabling ELF shared libraries by default"
3865
3866 fi
3867
3868
3869
3870 # Check whether --enable-bsd-shlibs was given.
3871 if test "${enable_bsd_shlibs+set}" = set; then
3872   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3873 then
3874         BSDLIB_CMT=#
3875         MAKEFILE_BSDLIB=/dev/null
3876         echo "Disabling BSD shared libraries"
3877 else
3878         E2_PKG_CONFIG_STATIC=
3879         BSDLIB_CMT=
3880         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3881         LIB_EXT=.so
3882         case "$host_os" in
3883         darwin*)
3884                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3885                 LIB_EXT=.dylib
3886         ;;
3887         esac
3888         echo "Enabling BSD shared libraries"
3889 fi
3890
3891 else
3892   MAKEFILE_BSDLIB=/dev/null
3893 BSDLIB_CMT=#
3894 echo "Disabling BSD shared libraries by default"
3895
3896 fi
3897
3898
3899
3900 # Check whether --enable-profile was given.
3901 if test "${enable_profile+set}" = set; then
3902   enableval=$enable_profile; if test "$enableval" = "no"
3903 then
3904         PROFILE_CMT=#
3905         MAKEFILE_PROFILE=/dev/null
3906         echo "Disabling profiling libraries"
3907 else
3908         PROFILE_CMT=
3909         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3910         PROFILED_LIB_EXT=_p.a
3911         echo "Building profiling libraries"
3912 fi
3913
3914 else
3915   PROFILE_CMT=#
3916 MAKEFILE_PROFILE=/dev/null
3917 echo "Disabling profiling libraries by default"
3918
3919 fi
3920
3921
3922
3923 # Check whether --enable-checker was given.
3924 if test "${enable_checker+set}" = set; then
3925   enableval=$enable_checker; if test "$enableval" = "no"
3926 then
3927         CHECKER_CMT=#
3928         MAKEFILE_CHECKER=/dev/null
3929         echo "Disabling checker libraries"
3930 else
3931         CHECKER_CMT=
3932         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3933         echo "Building checker libraries"
3934 fi
3935
3936 else
3937   CHECKER_CMT=#
3938 MAKEFILE_CHECKER=/dev/null
3939 echo "Disabling checker libraries by default"
3940
3941 fi
3942
3943
3944
3945
3946
3947
3948 # Check whether --enable-jbd-debug was given.
3949 if test "${enable_jbd_debug+set}" = set; then
3950   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3951 then
3952         echo "Disabling journal debugging"
3953 else
3954         cat >>confdefs.h <<\_ACEOF
3955 #define CONFIG_JBD_DEBUG 1
3956 _ACEOF
3957
3958         echo "Enabling journal debugging"
3959 fi
3960
3961 else
3962   echo "Disabling journal debugging by default"
3963
3964 fi
3965
3966 # Check whether --enable-blkid-debug was given.
3967 if test "${enable_blkid_debug+set}" = set; then
3968   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3969 then
3970         echo "Disabling blkid debugging"
3971 else
3972         cat >>confdefs.h <<\_ACEOF
3973 #define CONFIG_BLKID_DEBUG 1
3974 _ACEOF
3975
3976         echo "Enabling blkid debugging"
3977 fi
3978
3979 else
3980   echo "Disabling blkid debugging by default"
3981
3982 fi
3983
3984 # Check whether --enable-testio-debug was given.
3985 if test "${enable_testio_debug+set}" = set; then
3986   enableval=$enable_testio_debug; if test "$enableval" = "no"
3987 then
3988         echo "Disabling testio debugging"
3989 else
3990         cat >>confdefs.h <<\_ACEOF
3991 #define CONFIG_TESTIO_DEBUG 1
3992 _ACEOF
3993
3994         echo "Enabling testio debugging"
3995 fi
3996
3997 else
3998   echo "Disabling testio debugging by default"
3999
4000 fi
4001
4002 # Check whether --enable-debugfs was given.
4003 if test "${enable_debugfs+set}" = set; then
4004   enableval=$enable_debugfs; if test "$enableval" = "no"
4005 then
4006         echo "Disabling debugfs support"
4007         DEBUGFS_CMT="#"
4008 else
4009         DEBUGFS_CMT=
4010         echo "Enabling debugfs support"
4011 fi
4012
4013 else
4014   echo "Enabling debugfs support by default"
4015 DEBUGFS_CMT=
4016
4017 fi
4018
4019
4020 # Check whether --enable-imager was given.
4021 if test "${enable_imager+set}" = set; then
4022   enableval=$enable_imager; if test "$enableval" = "no"
4023 then
4024         echo "Disabling e2image support"
4025         IMAGER_CMT="#"
4026 else
4027         IMAGER_CMT=
4028         echo "Enabling e2image support"
4029 fi
4030
4031 else
4032   echo "Enabling e2image support by default"
4033 IMAGER_CMT=
4034
4035 fi
4036
4037
4038 # Check whether --enable-resizer was given.
4039 if test "${enable_resizer+set}" = set; then
4040   enableval=$enable_resizer; if test "$enableval" = "no"
4041 then
4042         echo "Disabling e2resize support"
4043         RESIZER_CMT="#"
4044 else
4045         RESIZER_CMT=
4046         echo "Enabling e2resize support"
4047 fi
4048
4049 else
4050   echo "Enabling e2resize support by default"
4051 RESIZER_CMT=
4052
4053 fi
4054
4055
4056 # Check whether --enable-fsck was given.
4057 if test "${enable_fsck+set}" = set; then
4058   enableval=$enable_fsck; if test "$enableval" = "no"
4059 then
4060         FSCK_PROG='' FSCK_MAN=''
4061         echo "Not building fsck wrapper"
4062 else
4063         FSCK_PROG=fsck FSCK_MAN=fsck.8
4064         echo "Building fsck wrapper"
4065 fi
4066
4067 else
4068   case "$host_os" in
4069   gnu*)
4070     FSCK_PROG='' FSCK_MAN=''
4071     echo "Not building fsck wrapper by default"
4072     ;;
4073   *)
4074     FSCK_PROG=fsck FSCK_MAN=fsck.8
4075     echo "Building fsck wrapper by default"
4076 esac
4077
4078 fi
4079
4080
4081
4082 # Check whether --enable-e2initrd-helper was given.
4083 if test "${enable_e2initrd_helper+set}" = set; then
4084   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4085 then
4086         E2INITRD_PROG='' E2INITRD_MAN=''
4087         echo "Not building e2initrd helper"
4088 else
4089         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4090         echo "Building e2initrd helper"
4091 fi
4092
4093 else
4094   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4095 echo "Building e2initrd helper by default"
4096
4097 fi
4098
4099
4100
4101 STATIC_BLKID_DEVMAPPER_LIBS=''
4102 # Check whether --enable-blkid-devmapper was given.
4103 if test "${enable_blkid_devmapper+set}" = set; then
4104   enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4105 then
4106         echo "Disabling device-mapper support"
4107         DEVMAPPER_REQ=''
4108         DEVMAPPER_LIBS=''
4109         STATIC_DEVMAPPER_LIBS=''
4110 else
4111         cat >>confdefs.h <<\_ACEOF
4112 #define HAVE_DEVMAPPER 1
4113 _ACEOF
4114
4115         echo "Enabling device-mapper support"
4116
4117
4118
4119 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4120         if test -n "$ac_tool_prefix"; then
4121   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   case $PKG_CONFIG in
4129   [\\/]* | ?:[\\/]*)
4130   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4131   ;;
4132   *)
4133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138   for ac_exec_ext in '' $ac_executable_extensions; do
4139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142     break 2
4143   fi
4144 done
4145 done
4146 IFS=$as_save_IFS
4147
4148   ;;
4149 esac
4150 fi
4151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4152 if test -n "$PKG_CONFIG"; then
4153   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4154 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4155 else
4156   { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4158 fi
4159
4160
4161 fi
4162 if test -z "$ac_cv_path_PKG_CONFIG"; then
4163   ac_pt_PKG_CONFIG=$PKG_CONFIG
4164   # Extract the first word of "pkg-config", so it can be a program name with args.
4165 set dummy pkg-config; ac_word=$2
4166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   case $ac_pt_PKG_CONFIG in
4172   [\\/]* | ?:[\\/]*)
4173   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4174   ;;
4175   *)
4176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181   for ac_exec_ext in '' $ac_executable_extensions; do
4182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188 done
4189 IFS=$as_save_IFS
4190
4191   ;;
4192 esac
4193 fi
4194 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4195 if test -n "$ac_pt_PKG_CONFIG"; then
4196   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4197 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4198 else
4199   { echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6; }
4201 fi
4202
4203   if test "x$ac_pt_PKG_CONFIG" = x; then
4204     PKG_CONFIG=""
4205   else
4206     case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4209 whose name does not start with the host triplet.  If you think this
4210 configuration is useful to you, please write to autoconf@gnu.org." >&5
4211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4212 whose name does not start with the host triplet.  If you think this
4213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4214 ac_tool_warned=yes ;;
4215 esac
4216     PKG_CONFIG=$ac_pt_PKG_CONFIG
4217   fi
4218 else
4219   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4220 fi
4221
4222 fi
4223 if test -n "$PKG_CONFIG"; then
4224         _pkg_min_version=0.9.0
4225         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4226 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4227         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4228                 { echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6; }
4230         else
4231                 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4233                 PKG_CONFIG=""
4234         fi
4235
4236 fi
4237
4238         if test -z "$PKG_CONFIG"; then
4239                 echo "pkg-config not installed; please install it."
4240                 exit 1;
4241         fi
4242
4243         { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4244 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4245 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   ac_check_lib_save_LIBS=$LIBS
4249 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256
4257 /* Override any GCC internal prototype to avoid an error.
4258    Use char because int might match the return type of a GCC
4259    builtin and then its argument prototype would still apply.  */
4260 #ifdef __cplusplus
4261 extern "C"
4262 #endif
4263 char dm_tree_create ();
4264 int
4265 main ()
4266 {
4267 return dm_tree_create ();
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext conftest$ac_exeext
4273 if { (ac_try="$ac_link"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_link") 2>conftest.er1
4280   ac_status=$?
4281   grep -v '^ *+' conftest.er1 >conftest.err
4282   rm -f conftest.er1
4283   cat conftest.err >&5
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); } && {
4286          test -z "$ac_c_werror_flag" ||
4287          test ! -s conftest.err
4288        } && test -s conftest$ac_exeext &&
4289        $as_test_x conftest$ac_exeext; then
4290   ac_cv_lib_devmapper_dm_tree_create=yes
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295         ac_cv_lib_devmapper_dm_tree_create=no
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299       conftest$ac_exeext conftest.$ac_ext
4300 LIBS=$ac_check_lib_save_LIBS
4301 fi
4302 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4303 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4304 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4305   DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4306                  STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4307                  DEVMAPPER_REQ="devmapper";
4308                  DEVMAPPER_PC_LIBS="-ldevmapper"
4309 else
4310   { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4311 echo "$as_me: error: device-mapper library not found" >&2;}
4312    { (exit 1); exit 1; }; }
4313 fi
4314
4315         # work around stupid devmapper.pc bug in Debian
4316         case "$STATIC_DEVMAPPER_LIBS" in
4317         *pthread*)
4318             ;;
4319         *)
4320             echo "Working around Debian bug #390243..."
4321             STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4322             ;;
4323         esac
4324         if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4325             DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4326             STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4327         fi
4328 fi
4329
4330 else
4331   echo "Disabling device-mapper support by default"
4332
4333 fi
4334
4335
4336
4337
4338
4339
4340 # Check whether --enable-tls was given.
4341 if test "${enable_tls+set}" = set; then
4342   enableval=$enable_tls; if test "$enableval" = "no"
4343 then
4344         try_tls=""
4345         echo "Disabling thread local support"
4346 else
4347         try_tls="yes"
4348         echo "Enabling thread local support"
4349 fi
4350
4351 else
4352   try_tls="yes"
4353 echo "Try using thread local support by default"
4354
4355 fi
4356
4357 if test "$try_tls" = "yes"
4358 then
4359
4360   { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4361 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4362   if test "${ac_cv_tls+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365
4366     ax_tls_keywords="__thread __declspec(thread) none"
4367     for ax_tls_keyword in $ax_tls_keywords; do
4368        case $ax_tls_keyword in
4369           none) ac_cv_tls=none ; break ;;
4370           *)
4371              cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 #include <stdlib.h>
4378                  static void
4379                  foo(void) {
4380                  static  $ax_tls_keyword  int bar;
4381                  exit(1);
4382                  }
4383 int
4384 main ()
4385 {
4386
4387   ;
4388   return 0;
4389 }
4390 _ACEOF
4391 rm -f conftest.$ac_objext
4392 if { (ac_try="$ac_compile"
4393 case "(($ac_try" in
4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395   *) ac_try_echo=$ac_try;;
4396 esac
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398   (eval "$ac_compile") 2>conftest.er1
4399   ac_status=$?
4400   grep -v '^ *+' conftest.er1 >conftest.err
4401   rm -f conftest.er1
4402   cat conftest.err >&5
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } && {
4405          test -z "$ac_c_werror_flag" ||
4406          test ! -s conftest.err
4407        } && test -s conftest.$ac_objext; then
4408   ac_cv_tls=$ax_tls_keyword ; break
4409 else
4410   echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413         ac_cv_tls=none
4414
4415 fi
4416
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418           esac
4419     done
4420
4421 fi
4422
4423
4424   if test "$ac_cv_tls" != "none"; then
4425
4426 cat >>confdefs.h <<_ACEOF
4427 #define TLS $ac_cv_tls
4428 _ACEOF
4429
4430   fi
4431   { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4432 echo "${ECHO_T}$ac_cv_tls" >&6; }
4433
4434 fi
4435 # Check whether --enable-uuidd was given.
4436 if test "${enable_uuidd+set}" = set; then
4437   enableval=$enable_uuidd; if test "$enableval" = "no"
4438 then
4439         echo "Not building uuidd"
4440         UUIDD_CMT="#"
4441 else
4442         cat >>confdefs.h <<\_ACEOF
4443 #define USE_UUIDD 1
4444 _ACEOF
4445
4446         UUIDD_CMT=""
4447         echo "Building uuidd"
4448 fi
4449
4450 else
4451   cat >>confdefs.h <<\_ACEOF
4452 #define USE_UUIDD 1
4453 _ACEOF
4454
4455 UUIDD_CMT=""
4456 echo "Building uuidd by default"
4457
4458 fi
4459
4460
4461 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4462
4463 GETTEXT_PACKAGE=e2fsprogs
4464 PACKAGE=e2fsprogs
4465 VERSION="$E2FSPROGS_VERSION"
4466 VERSION=0.14.1
4467 cat >>confdefs.h <<_ACEOF
4468 #define PACKAGE "$PACKAGE"
4469 _ACEOF
4470
4471 cat >>confdefs.h <<_ACEOF
4472 #define VERSION "$VERSION"
4473 _ACEOF
4474
4475
4476
4477
4478
4479 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4480 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4481 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4482 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   cat >conftest.make <<\_ACEOF
4486 SHELL = /bin/sh
4487 all:
4488         @echo '@@@%%%=$(MAKE)=@@@%%%'
4489 _ACEOF
4490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4492   *@@@%%%=?*=@@@%%%*)
4493     eval ac_cv_prog_make_${ac_make}_set=yes;;
4494   *)
4495     eval ac_cv_prog_make_${ac_make}_set=no;;
4496 esac
4497 rm -f conftest.make
4498 fi
4499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4500   { echo "$as_me:$LINENO: result: yes" >&5
4501 echo "${ECHO_T}yes" >&6; }
4502   SET_MAKE=
4503 else
4504   { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506   SET_MAKE="MAKE=${MAKE-make}"
4507 fi
4508
4509 # Find a good install program.  We prefer a C program (faster),
4510 # so one script is as good as another.  But avoid the broken or
4511 # incompatible versions:
4512 # SysV /etc/install, /usr/sbin/install
4513 # SunOS /usr/etc/install
4514 # IRIX /sbin/install
4515 # AIX /bin/install
4516 # AmigaOS /C/install, which installs bootblocks on floppy discs
4517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4520 # OS/2's system install, which has a completely different semantic
4521 # ./install, which can be erroneously created by make from ./install.sh.
4522 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4523 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4524 if test -z "$INSTALL"; then
4525 if test "${ac_cv_path_install+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533   # Account for people who put trailing slashes in PATH elements.
4534 case $as_dir/ in
4535   ./ | .// | /cC/* | \
4536   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4537   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4538   /usr/ucb/* ) ;;
4539   *)
4540     # OSF1 and SCO ODT 3.0 have their own names for install.
4541     # Don't use installbsd from OSF since it installs stuff as root
4542     # by default.
4543     for ac_prog in ginstall scoinst install; do
4544       for ac_exec_ext in '' $ac_executable_extensions; do
4545         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4546           if test $ac_prog = install &&
4547             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4548             # AIX install.  It has an incompatible calling convention.
4549             :
4550           elif test $ac_prog = install &&
4551             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4552             # program-specific install script used by HP pwplus--don't use.
4553             :
4554           else
4555             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4556             break 3
4557           fi
4558         fi
4559       done
4560     done
4561     ;;
4562 esac
4563 done
4564 IFS=$as_save_IFS
4565
4566
4567 fi
4568   if test "${ac_cv_path_install+set}" = set; then
4569     INSTALL=$ac_cv_path_install
4570   else
4571     # As a last resort, use the slow shell script.  Don't cache a
4572     # value for INSTALL within a source directory, because that will
4573     # break other packages using the cache if that directory is
4574     # removed, or if the value is a relative name.
4575     INSTALL=$ac_install_sh
4576   fi
4577 fi
4578 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4579 echo "${ECHO_T}$INSTALL" >&6; }
4580
4581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4582 # It thinks the first close brace ends the variable substitution.
4583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4584
4585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4586
4587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4588
4589
4590         MKINSTALLDIRS=
4591   if test -n "$ac_aux_dir"; then
4592     case "$ac_aux_dir" in
4593       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4594       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4595     esac
4596   fi
4597   if test -z "$MKINSTALLDIRS"; then
4598     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4599   fi
4600
4601
4602
4603   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4604 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4605     # Check whether --enable-nls was given.
4606 if test "${enable_nls+set}" = set; then
4607   enableval=$enable_nls; USE_NLS=$enableval
4608 else
4609   USE_NLS=yes
4610 fi
4611
4612   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4613 echo "${ECHO_T}$USE_NLS" >&6; }
4614
4615
4616
4617
4618
4619
4620 # Prepare PATH_SEPARATOR.
4621 # The user is always right.
4622 if test "${PATH_SEPARATOR+set}" != set; then
4623   echo "#! /bin/sh" >conf$$.sh
4624   echo  "exit 0"   >>conf$$.sh
4625   chmod +x conf$$.sh
4626   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4627     PATH_SEPARATOR=';'
4628   else
4629     PATH_SEPARATOR=:
4630   fi
4631   rm -f conf$$.sh
4632 fi
4633
4634 # Find out how to test for executable files. Don't use a zero-byte file,
4635 # as systems may use methods other than mode bits to determine executability.
4636 cat >conf$$.file <<_ASEOF
4637 #! /bin/sh
4638 exit 0
4639 _ASEOF
4640 chmod +x conf$$.file
4641 if test -x conf$$.file >/dev/null 2>&1; then
4642   ac_executable_p="test -x"
4643 else
4644   ac_executable_p="test -f"
4645 fi
4646 rm -f conf$$.file
4647
4648 # Extract the first word of "msgfmt", so it can be a program name with args.
4649 set dummy msgfmt; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_MSGFMT+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   case "$MSGFMT" in
4656   [\\/]* | ?:[\\/]*)
4657     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4658     ;;
4659   *)
4660     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4661     for ac_dir in $PATH; do
4662       IFS="$ac_save_IFS"
4663       test -z "$ac_dir" && ac_dir=.
4664       for ac_exec_ext in '' $ac_executable_extensions; do
4665         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4666           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4667      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4668             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4669             break 2
4670           fi
4671         fi
4672       done
4673     done
4674     IFS="$ac_save_IFS"
4675   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4676     ;;
4677 esac
4678 fi
4679 MSGFMT="$ac_cv_path_MSGFMT"
4680 if test "$MSGFMT" != ":"; then
4681   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4682 echo "${ECHO_T}$MSGFMT" >&6; }
4683 else
4684   { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4686 fi
4687
4688   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4689 set dummy gmsgfmt; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   case $GMSGFMT in
4696   [\\/]* | ?:[\\/]*)
4697   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4698   ;;
4699   *)
4700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705   for ac_exec_ext in '' $ac_executable_extensions; do
4706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712 done
4713 IFS=$as_save_IFS
4714
4715   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4716   ;;
4717 esac
4718 fi
4719 GMSGFMT=$ac_cv_path_GMSGFMT
4720 if test -n "$GMSGFMT"; then
4721   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4722 echo "${ECHO_T}$GMSGFMT" >&6; }
4723 else
4724   { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4726 fi
4727
4728
4729
4730
4731 # Prepare PATH_SEPARATOR.
4732 # The user is always right.
4733 if test "${PATH_SEPARATOR+set}" != set; then
4734   echo "#! /bin/sh" >conf$$.sh
4735   echo  "exit 0"   >>conf$$.sh
4736   chmod +x conf$$.sh
4737   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4738     PATH_SEPARATOR=';'
4739   else
4740     PATH_SEPARATOR=:
4741   fi
4742   rm -f conf$$.sh
4743 fi
4744
4745 # Find out how to test for executable files. Don't use a zero-byte file,
4746 # as systems may use methods other than mode bits to determine executability.
4747 cat >conf$$.file <<_ASEOF
4748 #! /bin/sh
4749 exit 0
4750 _ASEOF
4751 chmod +x conf$$.file
4752 if test -x conf$$.file >/dev/null 2>&1; then
4753   ac_executable_p="test -x"
4754 else
4755   ac_executable_p="test -f"
4756 fi
4757 rm -f conf$$.file
4758
4759 # Extract the first word of "xgettext", so it can be a program name with args.
4760 set dummy xgettext; ac_word=$2
4761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4763 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   case "$XGETTEXT" in
4767   [\\/]* | ?:[\\/]*)
4768     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4769     ;;
4770   *)
4771     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4772     for ac_dir in $PATH; do
4773       IFS="$ac_save_IFS"
4774       test -z "$ac_dir" && ac_dir=.
4775       for ac_exec_ext in '' $ac_executable_extensions; do
4776         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4777           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4778      (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
4779             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4780             break 2
4781           fi
4782         fi
4783       done
4784     done
4785     IFS="$ac_save_IFS"
4786   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4787     ;;
4788 esac
4789 fi
4790 XGETTEXT="$ac_cv_path_XGETTEXT"
4791 if test "$XGETTEXT" != ":"; then
4792   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4793 echo "${ECHO_T}$XGETTEXT" >&6; }
4794 else
4795   { echo "$as_me:$LINENO: result: no" >&5
4796 echo "${ECHO_T}no" >&6; }
4797 fi
4798
4799     rm -f messages.po
4800
4801
4802 # Prepare PATH_SEPARATOR.
4803 # The user is always right.
4804 if test "${PATH_SEPARATOR+set}" != set; then
4805   echo "#! /bin/sh" >conf$$.sh
4806   echo  "exit 0"   >>conf$$.sh
4807   chmod +x conf$$.sh
4808   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4809     PATH_SEPARATOR=';'
4810   else
4811     PATH_SEPARATOR=:
4812   fi
4813   rm -f conf$$.sh
4814 fi
4815
4816 # Find out how to test for executable files. Don't use a zero-byte file,
4817 # as systems may use methods other than mode bits to determine executability.
4818 cat >conf$$.file <<_ASEOF
4819 #! /bin/sh
4820 exit 0
4821 _ASEOF
4822 chmod +x conf$$.file
4823 if test -x conf$$.file >/dev/null 2>&1; then
4824   ac_executable_p="test -x"
4825 else
4826   ac_executable_p="test -f"
4827 fi
4828 rm -f conf$$.file
4829
4830 # Extract the first word of "msgmerge", so it can be a program name with args.
4831 set dummy msgmerge; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   case "$MSGMERGE" in
4838   [\\/]* | ?:[\\/]*)
4839     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4840     ;;
4841   *)
4842     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4843     for ac_dir in $PATH; do
4844       IFS="$ac_save_IFS"
4845       test -z "$ac_dir" && ac_dir=.
4846       for ac_exec_ext in '' $ac_executable_extensions; do
4847         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4848           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4849             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4850             break 2
4851           fi
4852         fi
4853       done
4854     done
4855     IFS="$ac_save_IFS"
4856   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4857     ;;
4858 esac
4859 fi
4860 MSGMERGE="$ac_cv_path_MSGMERGE"
4861 if test "$MSGMERGE" != ":"; then
4862   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4863 echo "${ECHO_T}$MSGMERGE" >&6; }
4864 else
4865   { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4867 fi
4868
4869
4870       if test "$GMSGFMT" != ":"; then
4871             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4872        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4873       : ;
4874     else
4875       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4876       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4877 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4878       GMSGFMT=":"
4879     fi
4880   fi
4881
4882       if test "$XGETTEXT" != ":"; then
4883             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4884        (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
4885       : ;
4886     else
4887       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4888 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4889       XGETTEXT=":"
4890     fi
4891         rm -f messages.po
4892   fi
4893
4894   ac_config_commands="$ac_config_commands default-1"
4895
4896
4897 if test -n "$ac_tool_prefix"; then
4898   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_prog_RANLIB+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   if test -n "$RANLIB"; then
4906   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913   for ac_exec_ext in '' $ac_executable_extensions; do
4914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920 done
4921 IFS=$as_save_IFS
4922
4923 fi
4924 fi
4925 RANLIB=$ac_cv_prog_RANLIB
4926 if test -n "$RANLIB"; then
4927   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4928 echo "${ECHO_T}$RANLIB" >&6; }
4929 else
4930   { echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6; }
4932 fi
4933
4934
4935 fi
4936 if test -z "$ac_cv_prog_RANLIB"; then
4937   ac_ct_RANLIB=$RANLIB
4938   # Extract the first word of "ranlib", so it can be a program name with args.
4939 set dummy ranlib; ac_word=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   if test -n "$ac_ct_RANLIB"; then
4946   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953   for ac_exec_ext in '' $ac_executable_extensions; do
4954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955     ac_cv_prog_ac_ct_RANLIB="ranlib"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963 fi
4964 fi
4965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4966 if test -n "$ac_ct_RANLIB"; then
4967   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4968 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4969 else
4970   { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4972 fi
4973
4974   if test "x$ac_ct_RANLIB" = x; then
4975     RANLIB=":"
4976   else
4977     case $cross_compiling:$ac_tool_warned in
4978 yes:)
4979 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4980 whose name does not start with the host triplet.  If you think this
4981 configuration is useful to you, please write to autoconf@gnu.org." >&5
4982 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4983 whose name does not start with the host triplet.  If you think this
4984 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4985 ac_tool_warned=yes ;;
4986 esac
4987     RANLIB=$ac_ct_RANLIB
4988   fi
4989 else
4990   RANLIB="$ac_cv_prog_RANLIB"
4991 fi
4992
4993
4994         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4995 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4996 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   ac_check_lib_save_LIBS=$LIBS
5000 LIBS="-lcposix  $LIBS"
5001 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007
5008 /* Override any GCC internal prototype to avoid an error.
5009    Use char because int might match the return type of a GCC
5010    builtin and then its argument prototype would still apply.  */
5011 #ifdef __cplusplus
5012 extern "C"
5013 #endif
5014 char strerror ();
5015 int
5016 main ()
5017 {
5018 return strerror ();
5019   ;
5020   return 0;
5021 }
5022 _ACEOF
5023 rm -f conftest.$ac_objext conftest$ac_exeext
5024 if { (ac_try="$ac_link"
5025 case "(($ac_try" in
5026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027   *) ac_try_echo=$ac_try;;
5028 esac
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030   (eval "$ac_link") 2>conftest.er1
5031   ac_status=$?
5032   grep -v '^ *+' conftest.er1 >conftest.err
5033   rm -f conftest.er1
5034   cat conftest.err >&5
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); } && {
5037          test -z "$ac_c_werror_flag" ||
5038          test ! -s conftest.err
5039        } && test -s conftest$ac_exeext &&
5040        $as_test_x conftest$ac_exeext; then
5041   ac_cv_lib_cposix_strerror=yes
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046         ac_cv_lib_cposix_strerror=no
5047 fi
5048
5049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5050       conftest$ac_exeext conftest.$ac_ext
5051 LIBS=$ac_check_lib_save_LIBS
5052 fi
5053 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5054 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5055 if test $ac_cv_lib_cposix_strerror = yes; then
5056   LIBS="$LIBS -lcposix"
5057 fi
5058
5059
5060
5061 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5062 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5063 if test "${ac_cv_c_const+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072
5073 int
5074 main ()
5075 {
5076 /* FIXME: Include the comments suggested by Paul. */
5077 #ifndef __cplusplus
5078   /* Ultrix mips cc rejects this.  */
5079   typedef int charset[2];
5080   const charset cs;
5081   /* SunOS 4.1.1 cc rejects this.  */
5082   char const *const *pcpcc;
5083   char **ppc;
5084   /* NEC SVR4.0.2 mips cc rejects this.  */
5085   struct point {int x, y;};
5086   static struct point const zero = {0,0};
5087   /* AIX XL C 1.02.0.0 rejects this.
5088      It does not let you subtract one const X* pointer from another in
5089      an arm of an if-expression whose if-part is not a constant
5090      expression */
5091   const char *g = "string";
5092   pcpcc = &g + (g ? g-g : 0);
5093   /* HPUX 7.0 cc rejects these. */
5094   ++pcpcc;
5095   ppc = (char**) pcpcc;
5096   pcpcc = (char const *const *) ppc;
5097   { /* SCO 3.2v4 cc rejects this.  */
5098     char *t;
5099     char const *s = 0 ? (char *) 0 : (char const *) 0;
5100
5101     *t++ = 0;
5102     if (s) return 0;
5103   }
5104   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5105     int x[] = {25, 17};
5106     const int *foo = &x[0];
5107     ++foo;
5108   }
5109   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5110     typedef const int *iptr;
5111     iptr p = 0;
5112     ++p;
5113   }
5114   { /* AIX XL C 1.02.0.0 rejects this saying
5115        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5116     struct s { int j; const int *ap[3]; };
5117     struct s *b; b->j = 5;
5118   }
5119   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5120     const int foo = 10;
5121     if (!foo) return 0;
5122   }
5123   return !cs[0] && !zero.x;
5124 #endif
5125
5126   ;
5127   return 0;
5128 }
5129 _ACEOF
5130 rm -f conftest.$ac_objext
5131 if { (ac_try="$ac_compile"
5132 case "(($ac_try" in
5133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134   *) ac_try_echo=$ac_try;;
5135 esac
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137   (eval "$ac_compile") 2>conftest.er1
5138   ac_status=$?
5139   grep -v '^ *+' conftest.er1 >conftest.err
5140   rm -f conftest.er1
5141   cat conftest.err >&5
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } && {
5144          test -z "$ac_c_werror_flag" ||
5145          test ! -s conftest.err
5146        } && test -s conftest.$ac_objext; then
5147   ac_cv_c_const=yes
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152         ac_cv_c_const=no
5153 fi
5154
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 fi
5157 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5158 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5159 if test $ac_cv_c_const = no; then
5160
5161 cat >>confdefs.h <<\_ACEOF
5162 #define const
5163 _ACEOF
5164
5165 fi
5166
5167
5168   { echo "$as_me:$LINENO: checking for signed" >&5
5169 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5170 if test "${bh_cv_c_signed+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179
5180 int
5181 main ()
5182 {
5183 signed char x;
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5190 case "(($ac_try" in
5191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192   *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195   (eval "$ac_compile") 2>conftest.er1
5196   ac_status=$?
5197   grep -v '^ *+' conftest.er1 >conftest.err
5198   rm -f conftest.er1
5199   cat conftest.err >&5
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } && {
5202          test -z "$ac_c_werror_flag" ||
5203          test ! -s conftest.err
5204        } && test -s conftest.$ac_objext; then
5205   bh_cv_c_signed=yes
5206 else
5207   echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210         bh_cv_c_signed=no
5211 fi
5212
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 fi
5215 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5216 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5217   if test $bh_cv_c_signed = no; then
5218
5219 cat >>confdefs.h <<\_ACEOF
5220 #define signed
5221 _ACEOF
5222
5223   fi
5224
5225 { echo "$as_me:$LINENO: checking for inline" >&5
5226 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5227 if test "${ac_cv_c_inline+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   ac_cv_c_inline=no
5231 for ac_kw in inline __inline__ __inline; do
5232   cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h.  */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h.  */
5238 #ifndef __cplusplus
5239 typedef int foo_t;
5240 static $ac_kw foo_t static_foo () {return 0; }
5241 $ac_kw foo_t foo () {return 0; }
5242 #endif
5243
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (ac_try="$ac_compile"
5247 case "(($ac_try" in
5248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249   *) ac_try_echo=$ac_try;;
5250 esac
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252   (eval "$ac_compile") 2>conftest.er1
5253   ac_status=$?
5254   grep -v '^ *+' conftest.er1 >conftest.err
5255   rm -f conftest.er1
5256   cat conftest.err >&5
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); } && {
5259          test -z "$ac_c_werror_flag" ||
5260          test ! -s conftest.err
5261        } && test -s conftest.$ac_objext; then
5262   ac_cv_c_inline=$ac_kw
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267
5268 fi
5269
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271   test "$ac_cv_c_inline" != no && break
5272 done
5273
5274 fi
5275 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5276 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5277
5278
5279 case $ac_cv_c_inline in
5280   inline | yes) ;;
5281   *)
5282     case $ac_cv_c_inline in
5283       no) ac_val=;;
5284       *) ac_val=$ac_cv_c_inline;;
5285     esac
5286     cat >>confdefs.h <<_ACEOF
5287 #ifndef __cplusplus
5288 #define inline $ac_val
5289 #endif
5290 _ACEOF
5291     ;;
5292 esac
5293
5294 { echo "$as_me:$LINENO: checking for off_t" >&5
5295 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5296 if test "${ac_cv_type_off_t+set}" = set; then
5297   echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299   cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h.  */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h.  */
5305 $ac_includes_default
5306 typedef off_t ac__type_new_;
5307 int
5308 main ()
5309 {
5310 if ((ac__type_new_ *) 0)
5311   return 0;
5312 if (sizeof (ac__type_new_))
5313   return 0;
5314   ;
5315   return 0;
5316 }
5317 _ACEOF
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5320 case "(($ac_try" in
5321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322   *) ac_try_echo=$ac_try;;
5323 esac
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325   (eval "$ac_compile") 2>conftest.er1
5326   ac_status=$?
5327   grep -v '^ *+' conftest.er1 >conftest.err
5328   rm -f conftest.er1
5329   cat conftest.err >&5
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); } && {
5332          test -z "$ac_c_werror_flag" ||
5333          test ! -s conftest.err
5334        } && test -s conftest.$ac_objext; then
5335   ac_cv_type_off_t=yes
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340         ac_cv_type_off_t=no
5341 fi
5342
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 fi
5345 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5346 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5347 if test $ac_cv_type_off_t = yes; then
5348   :
5349 else
5350
5351 cat >>confdefs.h <<_ACEOF
5352 #define off_t long int
5353 _ACEOF
5354
5355 fi
5356
5357 { echo "$as_me:$LINENO: checking for size_t" >&5
5358 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5359 if test "${ac_cv_type_size_t+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362   cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368 $ac_includes_default
5369 typedef size_t ac__type_new_;
5370 int
5371 main ()
5372 {
5373 if ((ac__type_new_ *) 0)
5374   return 0;
5375 if (sizeof (ac__type_new_))
5376   return 0;
5377   ;
5378   return 0;
5379 }
5380 _ACEOF
5381 rm -f conftest.$ac_objext
5382 if { (ac_try="$ac_compile"
5383 case "(($ac_try" in
5384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385   *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388   (eval "$ac_compile") 2>conftest.er1
5389   ac_status=$?
5390   grep -v '^ *+' conftest.er1 >conftest.err
5391   rm -f conftest.er1
5392   cat conftest.err >&5
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); } && {
5395          test -z "$ac_c_werror_flag" ||
5396          test ! -s conftest.err
5397        } && test -s conftest.$ac_objext; then
5398   ac_cv_type_size_t=yes
5399 else
5400   echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403         ac_cv_type_size_t=no
5404 fi
5405
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5409 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5410 if test $ac_cv_type_size_t = yes; then
5411   :
5412 else
5413
5414 cat >>confdefs.h <<_ACEOF
5415 #define size_t unsigned int
5416 _ACEOF
5417
5418 fi
5419
5420
5421   { echo "$as_me:$LINENO: checking for long long" >&5
5422 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5423 if test "${ac_cv_type_long_long+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432 long long ll = 1LL; int i = 63;
5433 int
5434 main ()
5435 {
5436 long long llmax = (long long) -1;
5437      return ll << i | ll >> i | llmax / ll | llmax % ll;
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (ac_try="$ac_link"
5444 case "(($ac_try" in
5445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446   *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449   (eval "$ac_link") 2>conftest.er1
5450   ac_status=$?
5451   grep -v '^ *+' conftest.er1 >conftest.err
5452   rm -f conftest.er1
5453   cat conftest.err >&5
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); } && {
5456          test -z "$ac_c_werror_flag" ||
5457          test ! -s conftest.err
5458        } && test -s conftest$ac_exeext &&
5459        $as_test_x conftest$ac_exeext; then
5460   ac_cv_type_long_long=yes
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465         ac_cv_type_long_long=no
5466 fi
5467
5468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5469       conftest$ac_exeext conftest.$ac_ext
5470 fi
5471 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5472 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5473   if test $ac_cv_type_long_long = yes; then
5474
5475 cat >>confdefs.h <<\_ACEOF
5476 #define HAVE_LONG_LONG 1
5477 _ACEOF
5478
5479   fi
5480
5481
5482   { echo "$as_me:$LINENO: checking for long double" >&5
5483 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5484 if test "${gt_cv_c_long_double+set}" = set; then
5485   echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487   if test "$GCC" = yes; then
5488        gt_cv_c_long_double=yes
5489      else
5490        cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h.  */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h.  */
5496
5497          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5498          long double foo = 0.0;
5499          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5500          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5501
5502 int
5503 main ()
5504 {
5505
5506   ;
5507   return 0;
5508 }
5509 _ACEOF
5510 rm -f conftest.$ac_objext
5511 if { (ac_try="$ac_compile"
5512 case "(($ac_try" in
5513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514   *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517   (eval "$ac_compile") 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } && {
5524          test -z "$ac_c_werror_flag" ||
5525          test ! -s conftest.err
5526        } && test -s conftest.$ac_objext; then
5527   gt_cv_c_long_double=yes
5528 else
5529   echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532         gt_cv_c_long_double=no
5533 fi
5534
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536      fi
5537 fi
5538 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5539 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5540   if test $gt_cv_c_long_double = yes; then
5541
5542 cat >>confdefs.h <<\_ACEOF
5543 #define HAVE_LONG_DOUBLE 1
5544 _ACEOF
5545
5546   fi
5547
5548
5549   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5550 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5551 if test "${gt_cv_c_wchar_t+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h.  */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h.  */
5560 #include <stddef.h>
5561        wchar_t foo = (wchar_t)'\0';
5562 int
5563 main ()
5564 {
5565
5566   ;
5567   return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5572 case "(($ac_try" in
5573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574   *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577   (eval "$ac_compile") 2>conftest.er1
5578   ac_status=$?
5579   grep -v '^ *+' conftest.er1 >conftest.err
5580   rm -f conftest.er1
5581   cat conftest.err >&5
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } && {
5584          test -z "$ac_c_werror_flag" ||
5585          test ! -s conftest.err
5586        } && test -s conftest.$ac_objext; then
5587   gt_cv_c_wchar_t=yes
5588 else
5589   echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592         gt_cv_c_wchar_t=no
5593 fi
5594
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 fi
5597 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5598 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5599   if test $gt_cv_c_wchar_t = yes; then
5600
5601 cat >>confdefs.h <<\_ACEOF
5602 #define HAVE_WCHAR_T 1
5603 _ACEOF
5604
5605   fi
5606
5607
5608   { echo "$as_me:$LINENO: checking for wint_t" >&5
5609 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5610 if test "${gt_cv_c_wint_t+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h.  */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h.  */
5619 #include <wchar.h>
5620        wint_t foo = (wchar_t)'\0';
5621 int
5622 main ()
5623 {
5624
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5631 case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_compile") 2>conftest.er1
5637   ac_status=$?
5638   grep -v '^ *+' conftest.er1 >conftest.err
5639   rm -f conftest.er1
5640   cat conftest.err >&5
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } && {
5643          test -z "$ac_c_werror_flag" ||
5644          test ! -s conftest.err
5645        } && test -s conftest.$ac_objext; then
5646   gt_cv_c_wint_t=yes
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651         gt_cv_c_wint_t=no
5652 fi
5653
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 fi
5656 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5657 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5658   if test $gt_cv_c_wint_t = yes; then
5659
5660 cat >>confdefs.h <<\_ACEOF
5661 #define HAVE_WINT_T 1
5662 _ACEOF
5663
5664   fi
5665
5666
5667   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5668 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5669 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h.  */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h.  */
5678 #include <sys/types.h>
5679 #include <inttypes.h>
5680 int
5681 main ()
5682 {
5683 uintmax_t i = (uintmax_t) -1;
5684   ;
5685   return 0;
5686 }
5687 _ACEOF
5688 rm -f conftest.$ac_objext
5689 if { (ac_try="$ac_compile"
5690 case "(($ac_try" in
5691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692   *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695   (eval "$ac_compile") 2>conftest.er1
5696   ac_status=$?
5697   grep -v '^ *+' conftest.er1 >conftest.err
5698   rm -f conftest.er1
5699   cat conftest.err >&5
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); } && {
5702          test -z "$ac_c_werror_flag" ||
5703          test ! -s conftest.err
5704        } && test -s conftest.$ac_objext; then
5705   jm_ac_cv_header_inttypes_h=yes
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710         jm_ac_cv_header_inttypes_h=no
5711 fi
5712
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 fi
5715 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5716 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5717   if test $jm_ac_cv_header_inttypes_h = yes; then
5718
5719 cat >>confdefs.h <<_ACEOF
5720 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5721 _ACEOF
5722
5723   fi
5724
5725
5726   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5727 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5728 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h.  */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h.  */
5737 #include <sys/types.h>
5738 #include <stdint.h>
5739 int
5740 main ()
5741 {
5742 uintmax_t i = (uintmax_t) -1;
5743   ;
5744   return 0;
5745 }
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5749 case "(($ac_try" in
5750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751   *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754   (eval "$ac_compile") 2>conftest.er1
5755   ac_status=$?
5756   grep -v '^ *+' conftest.er1 >conftest.err
5757   rm -f conftest.er1
5758   cat conftest.err >&5
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } && {
5761          test -z "$ac_c_werror_flag" ||
5762          test ! -s conftest.err
5763        } && test -s conftest.$ac_objext; then
5764   jm_ac_cv_header_stdint_h=yes
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769         jm_ac_cv_header_stdint_h=no
5770 fi
5771
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 fi
5774 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5775 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5776   if test $jm_ac_cv_header_stdint_h = yes; then
5777
5778 cat >>confdefs.h <<_ACEOF
5779 #define HAVE_STDINT_H_WITH_UINTMAX 1
5780 _ACEOF
5781
5782   fi
5783
5784
5785
5786
5787   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5788 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5789 if test "${gt_cv_c_intmax_t+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h.  */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h.  */
5798
5799 #include <stddef.h>
5800 #include <stdlib.h>
5801 #if HAVE_STDINT_H_WITH_UINTMAX
5802 #include <stdint.h>
5803 #endif
5804 #if HAVE_INTTYPES_H_WITH_UINTMAX
5805 #include <inttypes.h>
5806 #endif
5807
5808 int
5809 main ()
5810 {
5811 intmax_t x = -1;
5812   ;
5813   return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5818 case "(($ac_try" in
5819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820   *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823   (eval "$ac_compile") 2>conftest.er1
5824   ac_status=$?
5825   grep -v '^ *+' conftest.er1 >conftest.err
5826   rm -f conftest.er1
5827   cat conftest.err >&5
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } && {
5830          test -z "$ac_c_werror_flag" ||
5831          test ! -s conftest.err
5832        } && test -s conftest.$ac_objext; then
5833   gt_cv_c_intmax_t=yes
5834 else
5835   echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838         gt_cv_c_intmax_t=no
5839 fi
5840
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 fi
5843 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5844 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5845   if test $gt_cv_c_intmax_t = yes; then
5846
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_INTMAX_T 1
5849 _ACEOF
5850
5851   fi
5852
5853
5854
5855   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5856 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5857 if test "${gt_cv_func_printf_posix+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860
5861       if test "$cross_compiling" = yes; then
5862
5863         cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h.  */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h.  */
5869
5870 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5871   notposix
5872 #endif
5873
5874 _ACEOF
5875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5876   $EGREP "notposix" >/dev/null 2>&1; then
5877   gt_cv_func_printf_posix="guessing no"
5878 else
5879   gt_cv_func_printf_posix="guessing yes"
5880 fi
5881 rm -f conftest*
5882
5883
5884 else
5885   cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h.  */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h.  */
5891
5892 #include <stdio.h>
5893 #include <string.h>
5894 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5895    dollar expansion (possibly an autoconf bug).  */
5896 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5897 static char buf[100];
5898 int main ()
5899 {
5900   sprintf (buf, format, 33, 55);
5901   return (strcmp (buf, "55 33") != 0);
5902 }
5903 _ACEOF
5904 rm -f conftest$ac_exeext
5905 if { (ac_try="$ac_link"
5906 case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911   (eval "$ac_link") 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5915   { (case "(($ac_try" in
5916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917   *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920   (eval "$ac_try") 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); }; }; then
5924   gt_cv_func_printf_posix=yes
5925 else
5926   echo "$as_me: program exited with status $ac_status" >&5
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 ( exit $ac_status )
5931 gt_cv_func_printf_posix=no
5932 fi
5933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5934 fi
5935
5936
5937
5938 fi
5939 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5940 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5941   case $gt_cv_func_printf_posix in
5942     *yes)
5943
5944 cat >>confdefs.h <<\_ACEOF
5945 #define HAVE_POSIX_PRINTF 1
5946 _ACEOF
5947
5948       ;;
5949   esac
5950
5951 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5952 # for constant arguments.  Useless!
5953 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5954 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5955 if test "${ac_cv_working_alloca_h+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h.  */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h.  */
5964 #include <alloca.h>
5965 int
5966 main ()
5967 {
5968 char *p = (char *) alloca (2 * sizeof (int));
5969                           if (p) return 0;
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5976 case "(($ac_try" in
5977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978   *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981   (eval "$ac_link") 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } && {
5988          test -z "$ac_c_werror_flag" ||
5989          test ! -s conftest.err
5990        } && test -s conftest$ac_exeext &&
5991        $as_test_x conftest$ac_exeext; then
5992   ac_cv_working_alloca_h=yes
5993 else
5994   echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997         ac_cv_working_alloca_h=no
5998 fi
5999
6000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6001       conftest$ac_exeext conftest.$ac_ext
6002 fi
6003 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6004 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6005 if test $ac_cv_working_alloca_h = yes; then
6006
6007 cat >>confdefs.h <<\_ACEOF
6008 #define HAVE_ALLOCA_H 1
6009 _ACEOF
6010
6011 fi
6012
6013 { echo "$as_me:$LINENO: checking for alloca" >&5
6014 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6015 if test "${ac_cv_func_alloca_works+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h.  */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h.  */
6024 #ifdef __GNUC__
6025 # define alloca __builtin_alloca
6026 #else
6027 # ifdef _MSC_VER
6028 #  include <malloc.h>
6029 #  define alloca _alloca
6030 # else
6031 #  ifdef HAVE_ALLOCA_H
6032 #   include <alloca.h>
6033 #  else
6034 #   ifdef _AIX
6035  #pragma alloca
6036 #   else
6037 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6038 char *alloca ();
6039 #    endif
6040 #   endif
6041 #  endif
6042 # endif
6043 #endif
6044
6045 int
6046 main ()
6047 {
6048 char *p = (char *) alloca (1);
6049                                     if (p) return 0;
6050   ;
6051   return 0;
6052 }
6053 _ACEOF
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (ac_try="$ac_link"
6056 case "(($ac_try" in
6057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058   *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061   (eval "$ac_link") 2>conftest.er1
6062   ac_status=$?
6063   grep -v '^ *+' conftest.er1 >conftest.err
6064   rm -f conftest.er1
6065   cat conftest.err >&5
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); } && {
6068          test -z "$ac_c_werror_flag" ||
6069          test ! -s conftest.err
6070        } && test -s conftest$ac_exeext &&
6071        $as_test_x conftest$ac_exeext; then
6072   ac_cv_func_alloca_works=yes
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077         ac_cv_func_alloca_works=no
6078 fi
6079
6080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6081       conftest$ac_exeext conftest.$ac_ext
6082 fi
6083 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6084 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6085
6086 if test $ac_cv_func_alloca_works = yes; then
6087
6088 cat >>confdefs.h <<\_ACEOF
6089 #define HAVE_ALLOCA 1
6090 _ACEOF
6091
6092 else
6093   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6094 # that cause trouble.  Some versions do not even contain alloca or
6095 # contain a buggy version.  If you still want to use their alloca,
6096 # use ar to extract alloca.o from them instead of compiling alloca.c.
6097
6098 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6099
6100 cat >>confdefs.h <<\_ACEOF
6101 #define C_ALLOCA 1
6102 _ACEOF
6103
6104
6105 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6106 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6107 if test "${ac_cv_os_cray+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116 #if defined CRAY && ! defined CRAY2
6117 webecray
6118 #else
6119 wenotbecray
6120 #endif
6121
6122 _ACEOF
6123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124   $EGREP "webecray" >/dev/null 2>&1; then
6125   ac_cv_os_cray=yes
6126 else
6127   ac_cv_os_cray=no
6128 fi
6129 rm -f conftest*
6130
6131 fi
6132 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6133 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6134 if test $ac_cv_os_cray = yes; then
6135   for ac_func in _getb67 GETB67 getb67; do
6136     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h.  */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h.  */
6148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6150 #define $ac_func innocuous_$ac_func
6151
6152 /* System header to define __stub macros and hopefully few prototypes,
6153     which can conflict with char $ac_func (); below.
6154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155     <limits.h> exists even on freestanding compilers.  */
6156
6157 #ifdef __STDC__
6158 # include <limits.h>
6159 #else
6160 # include <assert.h>
6161 #endif
6162
6163 #undef $ac_func
6164
6165 /* Override any GCC internal prototype to avoid an error.
6166    Use char because int might match the return type of a GCC
6167    builtin and then its argument prototype would still apply.  */
6168 #ifdef __cplusplus
6169 extern "C"
6170 #endif
6171 char $ac_func ();
6172 /* The GNU C library defines this for functions which it implements
6173     to always fail with ENOSYS.  Some functions are actually named
6174     something starting with __ and the normal name is an alias.  */
6175 #if defined __stub_$ac_func || defined __stub___$ac_func
6176 choke me
6177 #endif
6178
6179 int
6180 main ()
6181 {
6182 return $ac_func ();
6183   ;
6184   return 0;
6185 }
6186 _ACEOF
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (ac_try="$ac_link"
6189 case "(($ac_try" in
6190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191   *) ac_try_echo=$ac_try;;
6192 esac
6193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194   (eval "$ac_link") 2>conftest.er1
6195   ac_status=$?
6196   grep -v '^ *+' conftest.er1 >conftest.err
6197   rm -f conftest.er1
6198   cat conftest.err >&5
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); } && {
6201          test -z "$ac_c_werror_flag" ||
6202          test ! -s conftest.err
6203        } && test -s conftest$ac_exeext &&
6204        $as_test_x conftest$ac_exeext; then
6205   eval "$as_ac_var=yes"
6206 else
6207   echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210         eval "$as_ac_var=no"
6211 fi
6212
6213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6214       conftest$ac_exeext conftest.$ac_ext
6215 fi
6216 ac_res=`eval echo '${'$as_ac_var'}'`
6217                { echo "$as_me:$LINENO: result: $ac_res" >&5
6218 echo "${ECHO_T}$ac_res" >&6; }
6219 if test `eval echo '${'$as_ac_var'}'` = yes; then
6220
6221 cat >>confdefs.h <<_ACEOF
6222 #define CRAY_STACKSEG_END $ac_func
6223 _ACEOF
6224
6225     break
6226 fi
6227
6228   done
6229 fi
6230
6231 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6232 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6233 if test "${ac_cv_c_stack_direction+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   if test "$cross_compiling" = yes; then
6237   ac_cv_c_stack_direction=0
6238 else
6239   cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245 $ac_includes_default
6246 int
6247 find_stack_direction ()
6248 {
6249   static char *addr = 0;
6250   auto char dummy;
6251   if (addr == 0)
6252     {
6253       addr = &dummy;
6254       return find_stack_direction ();
6255     }
6256   else
6257     return (&dummy > addr) ? 1 : -1;
6258 }
6259
6260 int
6261 main ()
6262 {
6263   return find_stack_direction () < 0;
6264 }
6265 _ACEOF
6266 rm -f conftest$ac_exeext
6267 if { (ac_try="$ac_link"
6268 case "(($ac_try" in
6269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270   *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273   (eval "$ac_link") 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6277   { (case "(($ac_try" in
6278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279   *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282   (eval "$ac_try") 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }; }; then
6286   ac_cv_c_stack_direction=1
6287 else
6288   echo "$as_me: program exited with status $ac_status" >&5
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6291
6292 ( exit $ac_status )
6293 ac_cv_c_stack_direction=-1
6294 fi
6295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6296 fi
6297
6298
6299 fi
6300 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6301 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6302
6303 cat >>confdefs.h <<_ACEOF
6304 #define STACK_DIRECTION $ac_cv_c_stack_direction
6305 _ACEOF
6306
6307
6308 fi
6309
6310
6311
6312 for ac_header in stdlib.h unistd.h
6313 do
6314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6316   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 fi
6321 ac_res=`eval echo '${'$as_ac_Header'}'`
6322                { echo "$as_me:$LINENO: result: $ac_res" >&5
6323 echo "${ECHO_T}$ac_res" >&6; }
6324 else
6325   # Is the header compilable?
6326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 $ac_includes_default
6335 #include <$ac_header>
6336 _ACEOF
6337 rm -f conftest.$ac_objext
6338 if { (ac_try="$ac_compile"
6339 case "(($ac_try" in
6340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341   *) ac_try_echo=$ac_try;;
6342 esac
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344   (eval "$ac_compile") 2>conftest.er1
6345   ac_status=$?
6346   grep -v '^ *+' conftest.er1 >conftest.err
6347   rm -f conftest.er1
6348   cat conftest.err >&5
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); } && {
6351          test -z "$ac_c_werror_flag" ||
6352          test ! -s conftest.err
6353        } && test -s conftest.$ac_objext; then
6354   ac_header_compiler=yes
6355 else
6356   echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6358
6359         ac_header_compiler=no
6360 fi
6361
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6; }
6365
6366 # Is the header present?
6367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h.  */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h.  */
6375 #include <$ac_header>
6376 _ACEOF
6377 if { (ac_try="$ac_cpp conftest.$ac_ext"
6378 case "(($ac_try" in
6379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380   *) ac_try_echo=$ac_try;;
6381 esac
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6384   ac_status=$?
6385   grep -v '^ *+' conftest.er1 >conftest.err
6386   rm -f conftest.er1
6387   cat conftest.err >&5
6388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); } >/dev/null && {
6390          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6391          test ! -s conftest.err
6392        }; then
6393   ac_header_preproc=yes
6394 else
6395   echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398   ac_header_preproc=no
6399 fi
6400
6401 rm -f conftest.err conftest.$ac_ext
6402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403 echo "${ECHO_T}$ac_header_preproc" >&6; }
6404
6405 # So?  What about this header?
6406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6407   yes:no: )
6408     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6412     ac_header_preproc=yes
6413     ;;
6414   no:yes:* )
6415     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6417     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6418 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6419     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6421     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6422 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6425     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6427
6428     ;;
6429 esac
6430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   eval "$as_ac_Header=\$ac_header_preproc"
6436 fi
6437 ac_res=`eval echo '${'$as_ac_Header'}'`
6438                { echo "$as_me:$LINENO: result: $ac_res" >&5
6439 echo "${ECHO_T}$ac_res" >&6; }
6440
6441 fi
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443   cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 _ACEOF
6446
6447 fi
6448
6449 done
6450
6451
6452 for ac_func in getpagesize
6453 do
6454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h.  */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h.  */
6466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6468 #define $ac_func innocuous_$ac_func
6469
6470 /* System header to define __stub macros and hopefully few prototypes,
6471     which can conflict with char $ac_func (); below.
6472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473     <limits.h> exists even on freestanding compilers.  */
6474
6475 #ifdef __STDC__
6476 # include <limits.h>
6477 #else
6478 # include <assert.h>
6479 #endif
6480
6481 #undef $ac_func
6482
6483 /* Override any GCC internal prototype to avoid an error.
6484    Use char because int might match the return type of a GCC
6485    builtin and then its argument prototype would still apply.  */
6486 #ifdef __cplusplus
6487 extern "C"
6488 #endif
6489 char $ac_func ();
6490 /* The GNU C library defines this for functions which it implements
6491     to always fail with ENOSYS.  Some functions are actually named
6492     something starting with __ and the normal name is an alias.  */
6493 #if defined __stub_$ac_func || defined __stub___$ac_func
6494 choke me
6495 #endif
6496
6497 int
6498 main ()
6499 {
6500 return $ac_func ();
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (ac_try="$ac_link"
6507 case "(($ac_try" in
6508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509   *) ac_try_echo=$ac_try;;
6510 esac
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512   (eval "$ac_link") 2>conftest.er1
6513   ac_status=$?
6514   grep -v '^ *+' conftest.er1 >conftest.err
6515   rm -f conftest.er1
6516   cat conftest.err >&5
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); } && {
6519          test -z "$ac_c_werror_flag" ||
6520          test ! -s conftest.err
6521        } && test -s conftest$ac_exeext &&
6522        $as_test_x conftest$ac_exeext; then
6523   eval "$as_ac_var=yes"
6524 else
6525   echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6527
6528         eval "$as_ac_var=no"
6529 fi
6530
6531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6532       conftest$ac_exeext conftest.$ac_ext
6533 fi
6534 ac_res=`eval echo '${'$as_ac_var'}'`
6535                { echo "$as_me:$LINENO: result: $ac_res" >&5
6536 echo "${ECHO_T}$ac_res" >&6; }
6537 if test `eval echo '${'$as_ac_var'}'` = yes; then
6538   cat >>confdefs.h <<_ACEOF
6539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6540 _ACEOF
6541
6542 fi
6543 done
6544
6545 { echo "$as_me:$LINENO: checking for working mmap" >&5
6546 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6547 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   if test "$cross_compiling" = yes; then
6551   ac_cv_func_mmap_fixed_mapped=no
6552 else
6553   cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h.  */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h.  */
6559 $ac_includes_default
6560 /* malloc might have been renamed as rpl_malloc. */
6561 #undef malloc
6562
6563 /* Thanks to Mike Haertel and Jim Avera for this test.
6564    Here is a matrix of mmap possibilities:
6565         mmap private not fixed
6566         mmap private fixed at somewhere currently unmapped
6567         mmap private fixed at somewhere already mapped
6568         mmap shared not fixed
6569         mmap shared fixed at somewhere currently unmapped
6570         mmap shared fixed at somewhere already mapped
6571    For private mappings, we should verify that changes cannot be read()
6572    back from the file, nor mmap's back from the file at a different
6573    address.  (There have been systems where private was not correctly
6574    implemented like the infamous i386 svr4.0, and systems where the
6575    VM page cache was not coherent with the file system buffer cache
6576    like early versions of FreeBSD and possibly contemporary NetBSD.)
6577    For shared mappings, we should conversely verify that changes get
6578    propagated back to all the places they're supposed to be.
6579
6580    Grep wants private fixed already mapped.
6581    The main things grep needs to know about mmap are:
6582    * does it exist and is it safe to write into the mmap'd area
6583    * how to use it (BSD variants)  */
6584
6585 #include <fcntl.h>
6586 #include <sys/mman.h>
6587
6588 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6589 char *malloc ();
6590 #endif
6591
6592 /* This mess was copied from the GNU getpagesize.h.  */
6593 #ifndef HAVE_GETPAGESIZE
6594 /* Assume that all systems that can run configure have sys/param.h.  */
6595 # ifndef HAVE_SYS_PARAM_H
6596 #  define HAVE_SYS_PARAM_H 1
6597 # endif
6598
6599 # ifdef _SC_PAGESIZE
6600 #  define getpagesize() sysconf(_SC_PAGESIZE)
6601 # else /* no _SC_PAGESIZE */
6602 #  ifdef HAVE_SYS_PARAM_H
6603 #   include <sys/param.h>
6604 #   ifdef EXEC_PAGESIZE
6605 #    define getpagesize() EXEC_PAGESIZE
6606 #   else /* no EXEC_PAGESIZE */
6607 #    ifdef NBPG
6608 #     define getpagesize() NBPG * CLSIZE
6609 #     ifndef CLSIZE
6610 #      define CLSIZE 1
6611 #     endif /* no CLSIZE */
6612 #    else /* no NBPG */
6613 #     ifdef NBPC
6614 #      define getpagesize() NBPC
6615 #     else /* no NBPC */
6616 #      ifdef PAGESIZE
6617 #       define getpagesize() PAGESIZE
6618 #      endif /* PAGESIZE */
6619 #     endif /* no NBPC */
6620 #    endif /* no NBPG */
6621 #   endif /* no EXEC_PAGESIZE */
6622 #  else /* no HAVE_SYS_PARAM_H */
6623 #   define getpagesize() 8192   /* punt totally */
6624 #  endif /* no HAVE_SYS_PARAM_H */
6625 # endif /* no _SC_PAGESIZE */
6626
6627 #endif /* no HAVE_GETPAGESIZE */
6628
6629 int
6630 main ()
6631 {
6632   char *data, *data2, *data3;
6633   int i, pagesize;
6634   int fd;
6635
6636   pagesize = getpagesize ();
6637
6638   /* First, make a file with some known garbage in it. */
6639   data = (char *) malloc (pagesize);
6640   if (!data)
6641     return 1;
6642   for (i = 0; i < pagesize; ++i)
6643     *(data + i) = rand ();
6644   umask (0);
6645   fd = creat ("conftest.mmap", 0600);
6646   if (fd < 0)
6647     return 1;
6648   if (write (fd, data, pagesize) != pagesize)
6649     return 1;
6650   close (fd);
6651
6652   /* Next, try to mmap the file at a fixed address which already has
6653      something else allocated at it.  If we can, also make sure that
6654      we see the same garbage.  */
6655   fd = open ("conftest.mmap", O_RDWR);
6656   if (fd < 0)
6657     return 1;
6658   data2 = (char *) malloc (2 * pagesize);
6659   if (!data2)
6660     return 1;
6661   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6662   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6663                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6664     return 1;
6665   for (i = 0; i < pagesize; ++i)
6666     if (*(data + i) != *(data2 + i))
6667       return 1;
6668
6669   /* Finally, make sure that changes to the mapped area do not
6670      percolate back to the file as seen by read().  (This is a bug on
6671      some variants of i386 svr4.0.)  */
6672   for (i = 0; i < pagesize; ++i)
6673     *(data2 + i) = *(data2 + i) + 1;
6674   data3 = (char *) malloc (pagesize);
6675   if (!data3)
6676     return 1;
6677   if (read (fd, data3, pagesize) != pagesize)
6678     return 1;
6679   for (i = 0; i < pagesize; ++i)
6680     if (*(data + i) != *(data3 + i))
6681       return 1;
6682   close (fd);
6683   return 0;
6684 }
6685 _ACEOF
6686 rm -f conftest$ac_exeext
6687 if { (ac_try="$ac_link"
6688 case "(($ac_try" in
6689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690   *) ac_try_echo=$ac_try;;
6691 esac
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693   (eval "$ac_link") 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6697   { (case "(($ac_try" in
6698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699   *) ac_try_echo=$ac_try;;
6700 esac
6701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702   (eval "$ac_try") 2>&5
6703   ac_status=$?
6704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705   (exit $ac_status); }; }; then
6706   ac_cv_func_mmap_fixed_mapped=yes
6707 else
6708   echo "$as_me: program exited with status $ac_status" >&5
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6711
6712 ( exit $ac_status )
6713 ac_cv_func_mmap_fixed_mapped=no
6714 fi
6715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6716 fi
6717
6718
6719 fi
6720 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6721 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6722 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6723
6724 cat >>confdefs.h <<\_ACEOF
6725 #define HAVE_MMAP 1
6726 _ACEOF
6727
6728 fi
6729 rm -f conftest.mmap
6730
6731
6732     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6733 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6734 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h.  */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h.  */
6743
6744 #include <features.h>
6745 #ifdef __GNU_LIBRARY__
6746  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6747   Lucky GNU user
6748  #endif
6749 #endif
6750
6751 _ACEOF
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6754   ac_cv_gnu_library_2_1=yes
6755 else
6756   ac_cv_gnu_library_2_1=no
6757 fi
6758 rm -f conftest*
6759
6760
6761
6762 fi
6763 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6764 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6765
6766     GLIBC21="$ac_cv_gnu_library_2_1"
6767
6768
6769
6770
6771   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6772 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6773 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776
6777       if test "$cross_compiling" = yes; then
6778
6779           # Guess based on the CPU.
6780           case "$host_cpu" in
6781             alpha* | i3456786 | m68k | s390*)
6782               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6783             *)
6784               gt_cv_int_divbyzero_sigfpe="guessing no";;
6785           esac
6786
6787 else
6788   cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h.  */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h.  */
6794
6795 #include <stdlib.h>
6796 #include <signal.h>
6797
6798 static void
6799 #ifdef __cplusplus
6800 sigfpe_handler (int sig)
6801 #else
6802 sigfpe_handler (sig) int sig;
6803 #endif
6804 {
6805   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6806   exit (sig != SIGFPE);
6807 }
6808
6809 int x = 1;
6810 int y = 0;
6811 int z;
6812 int nan;
6813
6814 int main ()
6815 {
6816   signal (SIGFPE, sigfpe_handler);
6817 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6818 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6819   signal (SIGTRAP, sigfpe_handler);
6820 #endif
6821 /* Linux/SPARC yields signal SIGILL.  */
6822 #if defined (__sparc__) && defined (__linux__)
6823   signal (SIGILL, sigfpe_handler);
6824 #endif
6825
6826   z = x / y;
6827   nan = y / y;
6828   exit (1);
6829 }
6830
6831 _ACEOF
6832 rm -f conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6834 case "(($ac_try" in
6835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836   *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839   (eval "$ac_link") 2>&5
6840   ac_status=$?
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6843   { (case "(($ac_try" in
6844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845   *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848   (eval "$ac_try") 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   gt_cv_int_divbyzero_sigfpe=yes
6853 else
6854   echo "$as_me: program exited with status $ac_status" >&5
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6857
6858 ( exit $ac_status )
6859 gt_cv_int_divbyzero_sigfpe=no
6860 fi
6861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6862 fi
6863
6864
6865
6866 fi
6867 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6868 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6869   case "$gt_cv_int_divbyzero_sigfpe" in
6870     *yes) value=1;;
6871     *) value=0;;
6872   esac
6873
6874 cat >>confdefs.h <<_ACEOF
6875 #define INTDIV0_RAISES_SIGFPE $value
6876 _ACEOF
6877
6878
6879
6880   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6881 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6882 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h.  */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h.  */
6891 unsigned long long ull = 1ULL; int i = 63;
6892 int
6893 main ()
6894 {
6895 unsigned long long ullmax = (unsigned long long) -1;
6896      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6903 case "(($ac_try" in
6904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905   *) ac_try_echo=$ac_try;;
6906 esac
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908   (eval "$ac_link") 2>conftest.er1
6909   ac_status=$?
6910   grep -v '^ *+' conftest.er1 >conftest.err
6911   rm -f conftest.er1
6912   cat conftest.err >&5
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); } && {
6915          test -z "$ac_c_werror_flag" ||
6916          test ! -s conftest.err
6917        } && test -s conftest$ac_exeext &&
6918        $as_test_x conftest$ac_exeext; then
6919   ac_cv_type_unsigned_long_long=yes
6920 else
6921   echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924         ac_cv_type_unsigned_long_long=no
6925 fi
6926
6927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928       conftest$ac_exeext conftest.$ac_ext
6929 fi
6930 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6931 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6932   if test $ac_cv_type_unsigned_long_long = yes; then
6933
6934 cat >>confdefs.h <<\_ACEOF
6935 #define HAVE_UNSIGNED_LONG_LONG 1
6936 _ACEOF
6937
6938   fi
6939
6940
6941
6942
6943   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6944
6945     test $ac_cv_type_unsigned_long_long = yes \
6946       && ac_type='unsigned long long' \
6947       || ac_type='unsigned long'
6948
6949 cat >>confdefs.h <<_ACEOF
6950 #define uintmax_t $ac_type
6951 _ACEOF
6952
6953   else
6954
6955 cat >>confdefs.h <<\_ACEOF
6956 #define HAVE_UINTMAX_T 1
6957 _ACEOF
6958
6959   fi
6960
6961
6962   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6963 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6964 if test "${gt_cv_header_inttypes_h+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967
6968     cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6974 #include <sys/types.h>
6975 #include <inttypes.h>
6976 int
6977 main ()
6978 {
6979
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext
6985 if { (ac_try="$ac_compile"
6986 case "(($ac_try" in
6987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988   *) ac_try_echo=$ac_try;;
6989 esac
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991   (eval "$ac_compile") 2>conftest.er1
6992   ac_status=$?
6993   grep -v '^ *+' conftest.er1 >conftest.err
6994   rm -f conftest.er1
6995   cat conftest.err >&5
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } && {
6998          test -z "$ac_c_werror_flag" ||
6999          test ! -s conftest.err
7000        } && test -s conftest.$ac_objext; then
7001   gt_cv_header_inttypes_h=yes
7002 else
7003   echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7005
7006         gt_cv_header_inttypes_h=no
7007 fi
7008
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010
7011 fi
7012 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7013 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7014   if test $gt_cv_header_inttypes_h = yes; then
7015
7016 cat >>confdefs.h <<_ACEOF
7017 #define HAVE_INTTYPES_H 1
7018 _ACEOF
7019
7020   fi
7021
7022
7023
7024   if test $gt_cv_header_inttypes_h = yes; then
7025     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7026 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7027 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030
7031         cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h.  */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h.  */
7037 #include <inttypes.h>
7038 #ifdef PRId32
7039 char *p = PRId32;
7040 #endif
7041
7042 int
7043 main ()
7044 {
7045
7046   ;
7047   return 0;
7048 }
7049 _ACEOF
7050 rm -f conftest.$ac_objext
7051 if { (ac_try="$ac_compile"
7052 case "(($ac_try" in
7053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054   *) ac_try_echo=$ac_try;;
7055 esac
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057   (eval "$ac_compile") 2>conftest.er1
7058   ac_status=$?
7059   grep -v '^ *+' conftest.er1 >conftest.err
7060   rm -f conftest.er1
7061   cat conftest.err >&5
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); } && {
7064          test -z "$ac_c_werror_flag" ||
7065          test ! -s conftest.err
7066        } && test -s conftest.$ac_objext; then
7067   gt_cv_inttypes_pri_broken=no
7068 else
7069   echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7071
7072         gt_cv_inttypes_pri_broken=yes
7073 fi
7074
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076
7077 fi
7078 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7079 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7080   fi
7081   if test "$gt_cv_inttypes_pri_broken" = yes; then
7082
7083 cat >>confdefs.h <<_ACEOF
7084 #define PRI_MACROS_BROKEN 1
7085 _ACEOF
7086
7087   fi
7088
7089
7090
7091 for ac_header in stdint.h
7092 do
7093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 fi
7100 ac_res=`eval echo '${'$as_ac_Header'}'`
7101                { echo "$as_me:$LINENO: result: $ac_res" >&5
7102 echo "${ECHO_T}$ac_res" >&6; }
7103 else
7104   # Is the header compilable?
7105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h.  */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h.  */
7113 $ac_includes_default
7114 #include <$ac_header>
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (ac_try="$ac_compile"
7118 case "(($ac_try" in
7119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120   *) ac_try_echo=$ac_try;;
7121 esac
7122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7123   (eval "$ac_compile") 2>conftest.er1
7124   ac_status=$?
7125   grep -v '^ *+' conftest.er1 >conftest.err
7126   rm -f conftest.er1
7127   cat conftest.err >&5
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); } && {
7130          test -z "$ac_c_werror_flag" ||
7131          test ! -s conftest.err
7132        } && test -s conftest.$ac_objext; then
7133   ac_header_compiler=yes
7134 else
7135   echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7137
7138         ac_header_compiler=no
7139 fi
7140
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7143 echo "${ECHO_T}$ac_header_compiler" >&6; }
7144
7145 # Is the header present?
7146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154 #include <$ac_header>
7155 _ACEOF
7156 if { (ac_try="$ac_cpp conftest.$ac_ext"
7157 case "(($ac_try" in
7158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159   *) ac_try_echo=$ac_try;;
7160 esac
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7163   ac_status=$?
7164   grep -v '^ *+' conftest.er1 >conftest.err
7165   rm -f conftest.er1
7166   cat conftest.err >&5
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); } >/dev/null && {
7169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7170          test ! -s conftest.err
7171        }; then
7172   ac_header_preproc=yes
7173 else
7174   echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7176
7177   ac_header_preproc=no
7178 fi
7179
7180 rm -f conftest.err conftest.$ac_ext
7181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182 echo "${ECHO_T}$ac_header_preproc" >&6; }
7183
7184 # So?  What about this header?
7185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186   yes:no: )
7187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7191     ac_header_preproc=yes
7192     ;;
7193   no:yes:* )
7194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7197 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7198     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7201 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7206
7207     ;;
7208 esac
7209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   eval "$as_ac_Header=\$ac_header_preproc"
7215 fi
7216 ac_res=`eval echo '${'$as_ac_Header'}'`
7217                { echo "$as_me:$LINENO: result: $ac_res" >&5
7218 echo "${ECHO_T}$ac_res" >&6; }
7219
7220 fi
7221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222   cat >>confdefs.h <<_ACEOF
7223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224 _ACEOF
7225
7226 fi
7227
7228 done
7229
7230     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7231 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7232   result=
7233   cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h.  */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h.  */
7239
7240 #include <limits.h>
7241 #if HAVE_STDINT_H
7242 #include <stdint.h>
7243 #endif
7244 #ifdef SIZE_MAX
7245 Found it
7246 #endif
7247
7248 _ACEOF
7249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250   $EGREP "Found it" >/dev/null 2>&1; then
7251   result=yes
7252 fi
7253 rm -f conftest*
7254
7255   if test -z "$result"; then
7256                     if test "$cross_compiling" = yes; then
7257   # Depending upon the size, compute the lo and hi bounds.
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h.  */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h.  */
7264 #include <stddef.h>
7265 int
7266 main ()
7267 {
7268 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7269 test_array [0] = 0
7270
7271   ;
7272   return 0;
7273 }
7274 _ACEOF
7275 rm -f conftest.$ac_objext
7276 if { (ac_try="$ac_compile"
7277 case "(($ac_try" in
7278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279   *) ac_try_echo=$ac_try;;
7280 esac
7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282   (eval "$ac_compile") 2>conftest.er1
7283   ac_status=$?
7284   grep -v '^ *+' conftest.er1 >conftest.err
7285   rm -f conftest.er1
7286   cat conftest.err >&5
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } && {
7289          test -z "$ac_c_werror_flag" ||
7290          test ! -s conftest.err
7291        } && test -s conftest.$ac_objext; then
7292   ac_lo=0 ac_mid=0
7293   while :; do
7294     cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300 #include <stddef.h>
7301 int
7302 main ()
7303 {
7304 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7305 test_array [0] = 0
7306
7307   ;
7308   return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest.$ac_objext
7312 if { (ac_try="$ac_compile"
7313 case "(($ac_try" in
7314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315   *) ac_try_echo=$ac_try;;
7316 esac
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318   (eval "$ac_compile") 2>conftest.er1
7319   ac_status=$?
7320   grep -v '^ *+' conftest.er1 >conftest.err
7321   rm -f conftest.er1
7322   cat conftest.err >&5
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); } && {
7325          test -z "$ac_c_werror_flag" ||
7326          test ! -s conftest.err
7327        } && test -s conftest.$ac_objext; then
7328   ac_hi=$ac_mid; break
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333         ac_lo=`expr $ac_mid + 1`
7334                         if test $ac_lo -le $ac_mid; then
7335                           ac_lo= ac_hi=
7336                           break
7337                         fi
7338                         ac_mid=`expr 2 '*' $ac_mid + 1`
7339 fi
7340
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342   done
7343 else
7344   echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7346
7347         cat >conftest.$ac_ext <<_ACEOF
7348 /* confdefs.h.  */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h.  */
7353 #include <stddef.h>
7354 int
7355 main ()
7356 {
7357 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7358 test_array [0] = 0
7359
7360   ;
7361   return 0;
7362 }
7363 _ACEOF
7364 rm -f conftest.$ac_objext
7365 if { (ac_try="$ac_compile"
7366 case "(($ac_try" in
7367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368   *) ac_try_echo=$ac_try;;
7369 esac
7370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371   (eval "$ac_compile") 2>conftest.er1
7372   ac_status=$?
7373   grep -v '^ *+' conftest.er1 >conftest.err
7374   rm -f conftest.er1
7375   cat conftest.err >&5
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } && {
7378          test -z "$ac_c_werror_flag" ||
7379          test ! -s conftest.err
7380        } && test -s conftest.$ac_objext; then
7381   ac_hi=-1 ac_mid=-1
7382   while :; do
7383     cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h.  */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h.  */
7389 #include <stddef.h>
7390 int
7391 main ()
7392 {
7393 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7394 test_array [0] = 0
7395
7396   ;
7397   return 0;
7398 }
7399 _ACEOF
7400 rm -f conftest.$ac_objext
7401 if { (ac_try="$ac_compile"
7402 case "(($ac_try" in
7403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404   *) ac_try_echo=$ac_try;;
7405 esac
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407   (eval "$ac_compile") 2>conftest.er1
7408   ac_status=$?
7409   grep -v '^ *+' conftest.er1 >conftest.err
7410   rm -f conftest.er1
7411   cat conftest.err >&5
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); } && {
7414          test -z "$ac_c_werror_flag" ||
7415          test ! -s conftest.err
7416        } && test -s conftest.$ac_objext; then
7417   ac_lo=$ac_mid; break
7418 else
7419   echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422         ac_hi=`expr '(' $ac_mid ')' - 1`
7423                         if test $ac_mid -le $ac_hi; then
7424                           ac_lo= ac_hi=
7425                           break
7426                         fi
7427                         ac_mid=`expr 2 '*' $ac_mid`
7428 fi
7429
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431   done
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436         ac_lo= ac_hi=
7437 fi
7438
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 fi
7441
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 # Binary search between lo and hi bounds.
7444 while test "x$ac_lo" != "x$ac_hi"; do
7445   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7446   cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h.  */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h.  */
7452 #include <stddef.h>
7453 int
7454 main ()
7455 {
7456 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7457 test_array [0] = 0
7458
7459   ;
7460   return 0;
7461 }
7462 _ACEOF
7463 rm -f conftest.$ac_objext
7464 if { (ac_try="$ac_compile"
7465 case "(($ac_try" in
7466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467   *) ac_try_echo=$ac_try;;
7468 esac
7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470   (eval "$ac_compile") 2>conftest.er1
7471   ac_status=$?
7472   grep -v '^ *+' conftest.er1 >conftest.err
7473   rm -f conftest.er1
7474   cat conftest.err >&5
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } && {
7477          test -z "$ac_c_werror_flag" ||
7478          test ! -s conftest.err
7479        } && test -s conftest.$ac_objext; then
7480   ac_hi=$ac_mid
7481 else
7482   echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485         ac_lo=`expr '(' $ac_mid ')' + 1`
7486 fi
7487
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 done
7490 case $ac_lo in
7491 ?*) res_hi=$ac_lo;;
7492 '') result=? ;;
7493 esac
7494 else
7495   cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h.  */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h.  */
7501 #include <stddef.h>
7502 static long int longval () { return ~(size_t)0 / 10; }
7503 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7504 #include <stdio.h>
7505 #include <stdlib.h>
7506 int
7507 main ()
7508 {
7509
7510   FILE *f = fopen ("conftest.val", "w");
7511   if (! f)
7512     return 1;
7513   if ((~(size_t)0 / 10) < 0)
7514     {
7515       long int i = longval ();
7516       if (i != (~(size_t)0 / 10))
7517         return 1;
7518       fprintf (f, "%ld\n", i);
7519     }
7520   else
7521     {
7522       unsigned long int i = ulongval ();
7523       if (i != (~(size_t)0 / 10))
7524         return 1;
7525       fprintf (f, "%lu\n", i);
7526     }
7527   return ferror (f) || fclose (f) != 0;
7528
7529   ;
7530   return 0;
7531 }
7532 _ACEOF
7533 rm -f conftest$ac_exeext
7534 if { (ac_try="$ac_link"
7535 case "(($ac_try" in
7536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537   *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540   (eval "$ac_link") 2>&5
7541   ac_status=$?
7542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7544   { (case "(($ac_try" in
7545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546   *) ac_try_echo=$ac_try;;
7547 esac
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549   (eval "$ac_try") 2>&5
7550   ac_status=$?
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); }; }; then
7553   res_hi=`cat conftest.val`
7554 else
7555   echo "$as_me: program exited with status $ac_status" >&5
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 ( exit $ac_status )
7560 result=?
7561 fi
7562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7563 fi
7564 rm -f conftest.val
7565
7566     if test "$cross_compiling" = yes; then
7567   # Depending upon the size, compute the lo and hi bounds.
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h.  */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h.  */
7574 #include <stddef.h>
7575 int
7576 main ()
7577 {
7578 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7579 test_array [0] = 0
7580
7581   ;
7582   return 0;
7583 }
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7587 case "(($ac_try" in
7588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589   *) ac_try_echo=$ac_try;;
7590 esac
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592   (eval "$ac_compile") 2>conftest.er1
7593   ac_status=$?
7594   grep -v '^ *+' conftest.er1 >conftest.err
7595   rm -f conftest.er1
7596   cat conftest.err >&5
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); } && {
7599          test -z "$ac_c_werror_flag" ||
7600          test ! -s conftest.err
7601        } && test -s conftest.$ac_objext; then
7602   ac_lo=0 ac_mid=0
7603   while :; do
7604     cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610 #include <stddef.h>
7611 int
7612 main ()
7613 {
7614 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7615 test_array [0] = 0
7616
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7623 case "(($ac_try" in
7624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625   *) ac_try_echo=$ac_try;;
7626 esac
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628   (eval "$ac_compile") 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } && {
7635          test -z "$ac_c_werror_flag" ||
7636          test ! -s conftest.err
7637        } && test -s conftest.$ac_objext; then
7638   ac_hi=$ac_mid; break
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7642
7643         ac_lo=`expr $ac_mid + 1`
7644                         if test $ac_lo -le $ac_mid; then
7645                           ac_lo= ac_hi=
7646                           break
7647                         fi
7648                         ac_mid=`expr 2 '*' $ac_mid + 1`
7649 fi
7650
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652   done
7653 else
7654   echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657         cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h.  */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h.  */
7663 #include <stddef.h>
7664 int
7665 main ()
7666 {
7667 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7668 test_array [0] = 0
7669
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext
7675 if { (ac_try="$ac_compile"
7676 case "(($ac_try" in
7677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678   *) ac_try_echo=$ac_try;;
7679 esac
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681   (eval "$ac_compile") 2>conftest.er1
7682   ac_status=$?
7683   grep -v '^ *+' conftest.er1 >conftest.err
7684   rm -f conftest.er1
7685   cat conftest.err >&5
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } && {
7688          test -z "$ac_c_werror_flag" ||
7689          test ! -s conftest.err
7690        } && test -s conftest.$ac_objext; then
7691   ac_hi=-1 ac_mid=-1
7692   while :; do
7693     cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699 #include <stddef.h>
7700 int
7701 main ()
7702 {
7703 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7704 test_array [0] = 0
7705
7706   ;
7707   return 0;
7708 }
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7712 case "(($ac_try" in
7713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714   *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717   (eval "$ac_compile") 2>conftest.er1
7718   ac_status=$?
7719   grep -v '^ *+' conftest.er1 >conftest.err
7720   rm -f conftest.er1
7721   cat conftest.err >&5
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); } && {
7724          test -z "$ac_c_werror_flag" ||
7725          test ! -s conftest.err
7726        } && test -s conftest.$ac_objext; then
7727   ac_lo=$ac_mid; break
7728 else
7729   echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732         ac_hi=`expr '(' $ac_mid ')' - 1`
7733                         if test $ac_mid -le $ac_hi; then
7734                           ac_lo= ac_hi=
7735                           break
7736                         fi
7737                         ac_mid=`expr 2 '*' $ac_mid`
7738 fi
7739
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741   done
7742 else
7743   echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746         ac_lo= ac_hi=
7747 fi
7748
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 fi
7751
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 # Binary search between lo and hi bounds.
7754 while test "x$ac_lo" != "x$ac_hi"; do
7755   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7756   cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h.  */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h.  */
7762 #include <stddef.h>
7763 int
7764 main ()
7765 {
7766 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7767 test_array [0] = 0
7768
7769   ;
7770   return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext
7774 if { (ac_try="$ac_compile"
7775 case "(($ac_try" in
7776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777   *) ac_try_echo=$ac_try;;
7778 esac
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780   (eval "$ac_compile") 2>conftest.er1
7781   ac_status=$?
7782   grep -v '^ *+' conftest.er1 >conftest.err
7783   rm -f conftest.er1
7784   cat conftest.err >&5
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } && {
7787          test -z "$ac_c_werror_flag" ||
7788          test ! -s conftest.err
7789        } && test -s conftest.$ac_objext; then
7790   ac_hi=$ac_mid
7791 else
7792   echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795         ac_lo=`expr '(' $ac_mid ')' + 1`
7796 fi
7797
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 done
7800 case $ac_lo in
7801 ?*) res_lo=$ac_lo;;
7802 '') result=? ;;
7803 esac
7804 else
7805   cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811 #include <stddef.h>
7812 static long int longval () { return ~(size_t)0 % 10; }
7813 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7814 #include <stdio.h>
7815 #include <stdlib.h>
7816 int
7817 main ()
7818 {
7819
7820   FILE *f = fopen ("conftest.val", "w");
7821   if (! f)
7822     return 1;
7823   if ((~(size_t)0 % 10) < 0)
7824     {
7825       long int i = longval ();
7826       if (i != (~(size_t)0 % 10))
7827         return 1;
7828       fprintf (f, "%ld\n", i);
7829     }
7830   else
7831     {
7832       unsigned long int i = ulongval ();
7833       if (i != (~(size_t)0 % 10))
7834         return 1;
7835       fprintf (f, "%lu\n", i);
7836     }
7837   return ferror (f) || fclose (f) != 0;
7838
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 rm -f conftest$ac_exeext
7844 if { (ac_try="$ac_link"
7845 case "(($ac_try" in
7846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847   *) ac_try_echo=$ac_try;;
7848 esac
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850   (eval "$ac_link") 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7854   { (case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859   (eval "$ac_try") 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; }; then
7863   res_lo=`cat conftest.val`
7864 else
7865   echo "$as_me: program exited with status $ac_status" >&5
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 ( exit $ac_status )
7870 result=?
7871 fi
7872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7873 fi
7874 rm -f conftest.val
7875
7876     if test "$cross_compiling" = yes; then
7877   # Depending upon the size, compute the lo and hi bounds.
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h.  */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h.  */
7884 #include <stddef.h>
7885 int
7886 main ()
7887 {
7888 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7889 test_array [0] = 0
7890
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7897 case "(($ac_try" in
7898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899   *) ac_try_echo=$ac_try;;
7900 esac
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902   (eval "$ac_compile") 2>conftest.er1
7903   ac_status=$?
7904   grep -v '^ *+' conftest.er1 >conftest.err
7905   rm -f conftest.er1
7906   cat conftest.err >&5
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } && {
7909          test -z "$ac_c_werror_flag" ||
7910          test ! -s conftest.err
7911        } && test -s conftest.$ac_objext; then
7912   ac_lo=0 ac_mid=0
7913   while :; do
7914     cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920 #include <stddef.h>
7921 int
7922 main ()
7923 {
7924 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7925 test_array [0] = 0
7926
7927   ;
7928   return 0;
7929 }
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7933 case "(($ac_try" in
7934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935   *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938   (eval "$ac_compile") 2>conftest.er1
7939   ac_status=$?
7940   grep -v '^ *+' conftest.er1 >conftest.err
7941   rm -f conftest.er1
7942   cat conftest.err >&5
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } && {
7945          test -z "$ac_c_werror_flag" ||
7946          test ! -s conftest.err
7947        } && test -s conftest.$ac_objext; then
7948   ac_hi=$ac_mid; break
7949 else
7950   echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7952
7953         ac_lo=`expr $ac_mid + 1`
7954                         if test $ac_lo -le $ac_mid; then
7955                           ac_lo= ac_hi=
7956                           break
7957                         fi
7958                         ac_mid=`expr 2 '*' $ac_mid + 1`
7959 fi
7960
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962   done
7963 else
7964   echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967         cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973 #include <stddef.h>
7974 int
7975 main ()
7976 {
7977 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7978 test_array [0] = 0
7979
7980   ;
7981   return 0;
7982 }
7983 _ACEOF
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7986 case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991   (eval "$ac_compile") 2>conftest.er1
7992   ac_status=$?
7993   grep -v '^ *+' conftest.er1 >conftest.err
7994   rm -f conftest.er1
7995   cat conftest.err >&5
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } && {
7998          test -z "$ac_c_werror_flag" ||
7999          test ! -s conftest.err
8000        } && test -s conftest.$ac_objext; then
8001   ac_hi=-1 ac_mid=-1
8002   while :; do
8003     cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009 #include <stddef.h>
8010 int
8011 main ()
8012 {
8013 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8014 test_array [0] = 0
8015
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8022 case "(($ac_try" in
8023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024   *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027   (eval "$ac_compile") 2>conftest.er1
8028   ac_status=$?
8029   grep -v '^ *+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } && {
8034          test -z "$ac_c_werror_flag" ||
8035          test ! -s conftest.err
8036        } && test -s conftest.$ac_objext; then
8037   ac_lo=$ac_mid; break
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042         ac_hi=`expr '(' $ac_mid ')' - 1`
8043                         if test $ac_mid -le $ac_hi; then
8044                           ac_lo= ac_hi=
8045                           break
8046                         fi
8047                         ac_mid=`expr 2 '*' $ac_mid`
8048 fi
8049
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051   done
8052 else
8053   echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056         ac_lo= ac_hi=
8057 fi
8058
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 fi
8061
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 # Binary search between lo and hi bounds.
8064 while test "x$ac_lo" != "x$ac_hi"; do
8065   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8066   cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h.  */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h.  */
8072 #include <stddef.h>
8073 int
8074 main ()
8075 {
8076 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8077 test_array [0] = 0
8078
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 rm -f conftest.$ac_objext
8084 if { (ac_try="$ac_compile"
8085 case "(($ac_try" in
8086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087   *) ac_try_echo=$ac_try;;
8088 esac
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090   (eval "$ac_compile") 2>conftest.er1
8091   ac_status=$?
8092   grep -v '^ *+' conftest.er1 >conftest.err
8093   rm -f conftest.er1
8094   cat conftest.err >&5
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); } && {
8097          test -z "$ac_c_werror_flag" ||
8098          test ! -s conftest.err
8099        } && test -s conftest.$ac_objext; then
8100   ac_hi=$ac_mid
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105         ac_lo=`expr '(' $ac_mid ')' + 1`
8106 fi
8107
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 done
8110 case $ac_lo in
8111 ?*) fits_in_uint=$ac_lo;;
8112 '') result=? ;;
8113 esac
8114 else
8115   cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h.  */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h.  */
8121 #include <stddef.h>
8122 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8123 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8124 #include <stdio.h>
8125 #include <stdlib.h>
8126 int
8127 main ()
8128 {
8129
8130   FILE *f = fopen ("conftest.val", "w");
8131   if (! f)
8132     return 1;
8133   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8134     {
8135       long int i = longval ();
8136       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8137         return 1;
8138       fprintf (f, "%ld\n", i);
8139     }
8140   else
8141     {
8142       unsigned long int i = ulongval ();
8143       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8144         return 1;
8145       fprintf (f, "%lu\n", i);
8146     }
8147   return ferror (f) || fclose (f) != 0;
8148
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest$ac_exeext
8154 if { (ac_try="$ac_link"
8155 case "(($ac_try" in
8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157   *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160   (eval "$ac_link") 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8164   { (case "(($ac_try" in
8165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166   *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169   (eval "$ac_try") 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; }; then
8173   fits_in_uint=`cat conftest.val`
8174 else
8175   echo "$as_me: program exited with status $ac_status" >&5
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 ( exit $ac_status )
8180 result=?
8181 fi
8182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8183 fi
8184 rm -f conftest.val
8185
8186     if test "$fits_in_uint" = 1; then
8187                   cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h.  */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h.  */
8193 #include <stddef.h>
8194         extern size_t foo;
8195         extern unsigned long foo;
8196
8197 int
8198 main ()
8199 {
8200
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_compile") 2>conftest.er1
8213   ac_status=$?
8214   grep -v '^ *+' conftest.er1 >conftest.err
8215   rm -f conftest.er1
8216   cat conftest.err >&5
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); } && {
8219          test -z "$ac_c_werror_flag" ||
8220          test ! -s conftest.err
8221        } && test -s conftest.$ac_objext; then
8222   fits_in_uint=0
8223 else
8224   echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8226
8227
8228 fi
8229
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231     fi
8232     if test -z "$result"; then
8233       if test "$fits_in_uint" = 1; then
8234         result="$res_hi$res_lo"U
8235       else
8236         result="$res_hi$res_lo"UL
8237       fi
8238     else
8239             result='~(size_t)0'
8240     fi
8241   fi
8242   { echo "$as_me:$LINENO: result: $result" >&5
8243 echo "${ECHO_T}$result" >&6; }
8244   if test "$result" != yes; then
8245
8246 cat >>confdefs.h <<_ACEOF
8247 #define SIZE_MAX $result
8248 _ACEOF
8249
8250   fi
8251
8252
8253
8254
8255 for ac_header in stdint.h
8256 do
8257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8262   echo $ECHO_N "(cached) $ECHO_C" >&6
8263 fi
8264 ac_res=`eval echo '${'$as_ac_Header'}'`
8265                { echo "$as_me:$LINENO: result: $ac_res" >&5
8266 echo "${ECHO_T}$ac_res" >&6; }
8267 else
8268   # Is the header compilable?
8269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277 $ac_includes_default
8278 #include <$ac_header>
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8282 case "(($ac_try" in
8283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284   *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287   (eval "$ac_compile") 2>conftest.er1
8288   ac_status=$?
8289   grep -v '^ *+' conftest.er1 >conftest.err
8290   rm -f conftest.er1
8291   cat conftest.err >&5
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } && {
8294          test -z "$ac_c_werror_flag" ||
8295          test ! -s conftest.err
8296        } && test -s conftest.$ac_objext; then
8297   ac_header_compiler=yes
8298 else
8299   echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8301
8302         ac_header_compiler=no
8303 fi
8304
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307 echo "${ECHO_T}$ac_header_compiler" >&6; }
8308
8309 # Is the header present?
8310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h.  */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h.  */
8318 #include <$ac_header>
8319 _ACEOF
8320 if { (ac_try="$ac_cpp conftest.$ac_ext"
8321 case "(($ac_try" in
8322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323   *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8327   ac_status=$?
8328   grep -v '^ *+' conftest.er1 >conftest.err
8329   rm -f conftest.er1
8330   cat conftest.err >&5
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); } >/dev/null && {
8333          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8334          test ! -s conftest.err
8335        }; then
8336   ac_header_preproc=yes
8337 else
8338   echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341   ac_header_preproc=no
8342 fi
8343
8344 rm -f conftest.err conftest.$ac_ext
8345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8346 echo "${ECHO_T}$ac_header_preproc" >&6; }
8347
8348 # So?  What about this header?
8349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8350   yes:no: )
8351     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8355     ac_header_preproc=yes
8356     ;;
8357   no:yes:* )
8358     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8360     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8361 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8362     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8364     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8365 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8368     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8370
8371     ;;
8372 esac
8373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378   eval "$as_ac_Header=\$ac_header_preproc"
8379 fi
8380 ac_res=`eval echo '${'$as_ac_Header'}'`
8381                { echo "$as_me:$LINENO: result: $ac_res" >&5
8382 echo "${ECHO_T}$ac_res" >&6; }
8383
8384 fi
8385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8386   cat >>confdefs.h <<_ACEOF
8387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8388 _ACEOF
8389
8390 fi
8391
8392 done
8393
8394
8395
8396       if test "X$prefix" = "XNONE"; then
8397     acl_final_prefix="$ac_default_prefix"
8398   else
8399     acl_final_prefix="$prefix"
8400   fi
8401   if test "X$exec_prefix" = "XNONE"; then
8402     acl_final_exec_prefix='${prefix}'
8403   else
8404     acl_final_exec_prefix="$exec_prefix"
8405   fi
8406   acl_save_prefix="$prefix"
8407   prefix="$acl_final_prefix"
8408   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8409   prefix="$acl_save_prefix"
8410
8411
8412 # Check whether --with-gnu-ld was given.
8413 if test "${with_gnu_ld+set}" = set; then
8414   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8415 else
8416   with_gnu_ld=no
8417 fi
8418
8419 # Prepare PATH_SEPARATOR.
8420 # The user is always right.
8421 if test "${PATH_SEPARATOR+set}" != set; then
8422   echo "#! /bin/sh" >conf$$.sh
8423   echo  "exit 0"   >>conf$$.sh
8424   chmod +x conf$$.sh
8425   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8426     PATH_SEPARATOR=';'
8427   else
8428     PATH_SEPARATOR=:
8429   fi
8430   rm -f conf$$.sh
8431 fi
8432 ac_prog=ld
8433 if test "$GCC" = yes; then
8434   # Check if gcc -print-prog-name=ld gives a path.
8435   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8436 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8437   case $host in
8438   *-*-mingw*)
8439     # gcc leaves a trailing carriage return which upsets mingw
8440     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8441   *)
8442     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8443   esac
8444   case $ac_prog in
8445     # Accept absolute paths.
8446     [\\/]* | [A-Za-z]:[\\/]*)
8447       re_direlt='/[^/][^/]*/\.\./'
8448       # Canonicalize the path of ld
8449       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8450       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8451         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8452       done
8453       test -z "$LD" && LD="$ac_prog"
8454       ;;
8455   "")
8456     # If it fails, then pretend we aren't using GCC.
8457     ac_prog=ld
8458     ;;
8459   *)
8460     # If it is relative, then search for the first ld in PATH.
8461     with_gnu_ld=unknown
8462     ;;
8463   esac
8464 elif test "$with_gnu_ld" = yes; then
8465   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8466 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8467 else
8468   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8469 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8470 fi
8471 if test "${acl_cv_path_LD+set}" = set; then
8472   echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474   if test -z "$LD"; then
8475   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8476   for ac_dir in $PATH; do
8477     test -z "$ac_dir" && ac_dir=.
8478     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8479       acl_cv_path_LD="$ac_dir/$ac_prog"
8480       # Check to see if the program is GNU ld.  I'd rather use --version,
8481       # but apparently some GNU ld's only accept -v.
8482       # Break only if it was the GNU/non-GNU ld that we prefer.
8483       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8484       *GNU* | *'with BFD'*)
8485         test "$with_gnu_ld" != no && break ;;
8486       *)
8487         test "$with_gnu_ld" != yes && break ;;
8488       esac
8489     fi
8490   done
8491   IFS="$ac_save_ifs"
8492 else
8493   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8494 fi
8495 fi
8496
8497 LD="$acl_cv_path_LD"
8498 if test -n "$LD"; then
8499   { echo "$as_me:$LINENO: result: $LD" >&5
8500 echo "${ECHO_T}$LD" >&6; }
8501 else
8502   { echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6; }
8504 fi
8505 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8506 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8507    { (exit 1); exit 1; }; }
8508 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8509 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8510 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8511   echo $ECHO_N "(cached) $ECHO_C" >&6
8512 else
8513   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8514 case `$LD -v 2>&1 </dev/null` in
8515 *GNU* | *'with BFD'*)
8516   acl_cv_prog_gnu_ld=yes ;;
8517 *)
8518   acl_cv_prog_gnu_ld=no ;;
8519 esac
8520 fi
8521 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8523 with_gnu_ld=$acl_cv_prog_gnu_ld
8524
8525
8526
8527                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8529 if test "${acl_cv_rpath+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532
8533     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8534     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8535     . ./conftest.sh
8536     rm -f ./conftest.sh
8537     acl_cv_rpath=done
8538
8539 fi
8540 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8541 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8542   wl="$acl_cv_wl"
8543   libext="$acl_cv_libext"
8544   shlibext="$acl_cv_shlibext"
8545   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8546   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8547   hardcode_direct="$acl_cv_hardcode_direct"
8548   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8549     # Check whether --enable-rpath was given.
8550 if test "${enable_rpath+set}" = set; then
8551   enableval=$enable_rpath; :
8552 else
8553   enable_rpath=yes
8554 fi
8555
8556
8557
8558
8559
8560
8561
8562
8563     use_additional=yes
8564
8565   acl_save_prefix="$prefix"
8566   prefix="$acl_final_prefix"
8567   acl_save_exec_prefix="$exec_prefix"
8568   exec_prefix="$acl_final_exec_prefix"
8569
8570     eval additional_includedir=\"$includedir\"
8571     eval additional_libdir=\"$libdir\"
8572
8573   exec_prefix="$acl_save_exec_prefix"
8574   prefix="$acl_save_prefix"
8575
8576
8577 # Check whether --with-libiconv-prefix was given.
8578 if test "${with_libiconv_prefix+set}" = set; then
8579   withval=$with_libiconv_prefix;
8580     if test "X$withval" = "Xno"; then
8581       use_additional=no
8582     else
8583       if test "X$withval" = "X"; then
8584
8585   acl_save_prefix="$prefix"
8586   prefix="$acl_final_prefix"
8587   acl_save_exec_prefix="$exec_prefix"
8588   exec_prefix="$acl_final_exec_prefix"
8589
8590           eval additional_includedir=\"$includedir\"
8591           eval additional_libdir=\"$libdir\"
8592
8593   exec_prefix="$acl_save_exec_prefix"
8594   prefix="$acl_save_prefix"
8595
8596       else
8597         additional_includedir="$withval/include"
8598         additional_libdir="$withval/lib"
8599       fi
8600     fi
8601
8602 fi
8603
8604       LIBICONV=
8605   LTLIBICONV=
8606   INCICONV=
8607   rpathdirs=
8608   ltrpathdirs=
8609   names_already_handled=
8610   names_next_round='iconv '
8611   while test -n "$names_next_round"; do
8612     names_this_round="$names_next_round"
8613     names_next_round=
8614     for name in $names_this_round; do
8615       already_handled=
8616       for n in $names_already_handled; do
8617         if test "$n" = "$name"; then
8618           already_handled=yes
8619           break
8620         fi
8621       done
8622       if test -z "$already_handled"; then
8623         names_already_handled="$names_already_handled $name"
8624                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8625         eval value=\"\$HAVE_LIB$uppername\"
8626         if test -n "$value"; then
8627           if test "$value" = yes; then
8628             eval value=\"\$LIB$uppername\"
8629             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8630             eval value=\"\$LTLIB$uppername\"
8631             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8632           else
8633                                     :
8634           fi
8635         else
8636                               found_dir=
8637           found_la=
8638           found_so=
8639           found_a=
8640           if test $use_additional = yes; then
8641             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8642               found_dir="$additional_libdir"
8643               found_so="$additional_libdir/lib$name.$shlibext"
8644               if test -f "$additional_libdir/lib$name.la"; then
8645                 found_la="$additional_libdir/lib$name.la"
8646               fi
8647             else
8648               if test -f "$additional_libdir/lib$name.$libext"; then
8649                 found_dir="$additional_libdir"
8650                 found_a="$additional_libdir/lib$name.$libext"
8651                 if test -f "$additional_libdir/lib$name.la"; then
8652                   found_la="$additional_libdir/lib$name.la"
8653                 fi
8654               fi
8655             fi
8656           fi
8657           if test "X$found_dir" = "X"; then
8658             for x in $LDFLAGS $LTLIBICONV; do
8659
8660   acl_save_prefix="$prefix"
8661   prefix="$acl_final_prefix"
8662   acl_save_exec_prefix="$exec_prefix"
8663   exec_prefix="$acl_final_exec_prefix"
8664   eval x=\"$x\"
8665   exec_prefix="$acl_save_exec_prefix"
8666   prefix="$acl_save_prefix"
8667
8668               case "$x" in
8669                 -L*)
8670                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8671                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8672                     found_dir="$dir"
8673                     found_so="$dir/lib$name.$shlibext"
8674                     if test -f "$dir/lib$name.la"; then
8675                       found_la="$dir/lib$name.la"
8676                     fi
8677                   else
8678                     if test -f "$dir/lib$name.$libext"; then
8679                       found_dir="$dir"
8680                       found_a="$dir/lib$name.$libext"
8681                       if test -f "$dir/lib$name.la"; then
8682                         found_la="$dir/lib$name.la"
8683                       fi
8684                     fi
8685                   fi
8686                   ;;
8687               esac
8688               if test "X$found_dir" != "X"; then
8689                 break
8690               fi
8691             done
8692           fi
8693           if test "X$found_dir" != "X"; then
8694                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8695             if test "X$found_so" != "X"; then
8696                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8697                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8698               else
8699                                                                                 haveit=
8700                 for x in $ltrpathdirs; do
8701                   if test "X$x" = "X$found_dir"; then
8702                     haveit=yes
8703                     break
8704                   fi
8705                 done
8706                 if test -z "$haveit"; then
8707                   ltrpathdirs="$ltrpathdirs $found_dir"
8708                 fi
8709                                 if test "$hardcode_direct" = yes; then
8710                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8711                 else
8712                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8713                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8714                                                             haveit=
8715                     for x in $rpathdirs; do
8716                       if test "X$x" = "X$found_dir"; then
8717                         haveit=yes
8718                         break
8719                       fi
8720                     done
8721                     if test -z "$haveit"; then
8722                       rpathdirs="$rpathdirs $found_dir"
8723                     fi
8724                   else
8725                                                                                 haveit=
8726                     for x in $LDFLAGS $LIBICONV; do
8727
8728   acl_save_prefix="$prefix"
8729   prefix="$acl_final_prefix"
8730   acl_save_exec_prefix="$exec_prefix"
8731   exec_prefix="$acl_final_exec_prefix"
8732   eval x=\"$x\"
8733   exec_prefix="$acl_save_exec_prefix"
8734   prefix="$acl_save_prefix"
8735
8736                       if test "X$x" = "X-L$found_dir"; then
8737                         haveit=yes
8738                         break
8739                       fi
8740                     done
8741                     if test -z "$haveit"; then
8742                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8743                     fi
8744                     if test "$hardcode_minus_L" != no; then
8745                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8746                     else
8747                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8748                     fi
8749                   fi
8750                 fi
8751               fi
8752             else
8753               if test "X$found_a" != "X"; then
8754                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8755               else
8756                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8757               fi
8758             fi
8759                         additional_includedir=
8760             case "$found_dir" in
8761               */lib | */lib/)
8762                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8763                 additional_includedir="$basedir/include"
8764                 ;;
8765             esac
8766             if test "X$additional_includedir" != "X"; then
8767                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8768                 haveit=
8769                 if test "X$additional_includedir" = "X/usr/local/include"; then
8770                   if test -n "$GCC"; then
8771                     case $host_os in
8772                       linux*) haveit=yes;;
8773                     esac
8774                   fi
8775                 fi
8776                 if test -z "$haveit"; then
8777                   for x in $CPPFLAGS $INCICONV; do
8778
8779   acl_save_prefix="$prefix"
8780   prefix="$acl_final_prefix"
8781   acl_save_exec_prefix="$exec_prefix"
8782   exec_prefix="$acl_final_exec_prefix"
8783   eval x=\"$x\"
8784   exec_prefix="$acl_save_exec_prefix"
8785   prefix="$acl_save_prefix"
8786
8787                     if test "X$x" = "X-I$additional_includedir"; then
8788                       haveit=yes
8789                       break
8790                     fi
8791                   done
8792                   if test -z "$haveit"; then
8793                     if test -d "$additional_includedir"; then
8794                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8795                     fi
8796                   fi
8797                 fi
8798               fi
8799             fi
8800                         if test -n "$found_la"; then
8801                                                         save_libdir="$libdir"
8802               case "$found_la" in
8803                 */* | *\\*) . "$found_la" ;;
8804                 *) . "./$found_la" ;;
8805               esac
8806               libdir="$save_libdir"
8807                             for dep in $dependency_libs; do
8808                 case "$dep" in
8809                   -L*)
8810                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8811                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8812                       haveit=
8813                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8814                         if test -n "$GCC"; then
8815                           case $host_os in
8816                             linux*) haveit=yes;;
8817                           esac
8818                         fi
8819                       fi
8820                       if test -z "$haveit"; then
8821                         haveit=
8822                         for x in $LDFLAGS $LIBICONV; do
8823
8824   acl_save_prefix="$prefix"
8825   prefix="$acl_final_prefix"
8826   acl_save_exec_prefix="$exec_prefix"
8827   exec_prefix="$acl_final_exec_prefix"
8828   eval x=\"$x\"
8829   exec_prefix="$acl_save_exec_prefix"
8830   prefix="$acl_save_prefix"
8831
8832                           if test "X$x" = "X-L$additional_libdir"; then
8833                             haveit=yes
8834                             break
8835                           fi
8836                         done
8837                         if test -z "$haveit"; then
8838                           if test -d "$additional_libdir"; then
8839                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8840                           fi
8841                         fi
8842                         haveit=
8843                         for x in $LDFLAGS $LTLIBICONV; do
8844
8845   acl_save_prefix="$prefix"
8846   prefix="$acl_final_prefix"
8847   acl_save_exec_prefix="$exec_prefix"
8848   exec_prefix="$acl_final_exec_prefix"
8849   eval x=\"$x\"
8850   exec_prefix="$acl_save_exec_prefix"
8851   prefix="$acl_save_prefix"
8852
8853                           if test "X$x" = "X-L$additional_libdir"; then
8854                             haveit=yes
8855                             break
8856                           fi
8857                         done
8858                         if test -z "$haveit"; then
8859                           if test -d "$additional_libdir"; then
8860                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8861                           fi
8862                         fi
8863                       fi
8864                     fi
8865                     ;;
8866                   -R*)
8867                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8868                     if test "$enable_rpath" != no; then
8869                                                                   haveit=
8870                       for x in $rpathdirs; do
8871                         if test "X$x" = "X$dir"; then
8872                           haveit=yes
8873                           break
8874                         fi
8875                       done
8876                       if test -z "$haveit"; then
8877                         rpathdirs="$rpathdirs $dir"
8878                       fi
8879                                                                   haveit=
8880                       for x in $ltrpathdirs; do
8881                         if test "X$x" = "X$dir"; then
8882                           haveit=yes
8883                           break
8884                         fi
8885                       done
8886                       if test -z "$haveit"; then
8887                         ltrpathdirs="$ltrpathdirs $dir"
8888                       fi
8889                     fi
8890                     ;;
8891                   -l*)
8892                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8893                     ;;
8894                   *.la)
8895                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8896                     ;;
8897                   *)
8898                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8899                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8900                     ;;
8901                 esac
8902               done
8903             fi
8904           else
8905                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8906             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8907           fi
8908         fi
8909       fi
8910     done
8911   done
8912   if test "X$rpathdirs" != "X"; then
8913     if test -n "$hardcode_libdir_separator"; then
8914                         alldirs=
8915       for found_dir in $rpathdirs; do
8916         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8917       done
8918             acl_save_libdir="$libdir"
8919       libdir="$alldirs"
8920       eval flag=\"$hardcode_libdir_flag_spec\"
8921       libdir="$acl_save_libdir"
8922       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8923     else
8924             for found_dir in $rpathdirs; do
8925         acl_save_libdir="$libdir"
8926         libdir="$found_dir"
8927         eval flag=\"$hardcode_libdir_flag_spec\"
8928         libdir="$acl_save_libdir"
8929         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8930       done
8931     fi
8932   fi
8933   if test "X$ltrpathdirs" != "X"; then
8934             for found_dir in $ltrpathdirs; do
8935       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8936     done
8937   fi
8938
8939
8940
8941
8942
8943
8944
8945
8946   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8947 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8948 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8949   echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951   cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957 $ac_includes_default
8958 typedef ptrdiff_t ac__type_new_;
8959 int
8960 main ()
8961 {
8962 if ((ac__type_new_ *) 0)
8963   return 0;
8964 if (sizeof (ac__type_new_))
8965   return 0;
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (ac_try="$ac_compile"
8972 case "(($ac_try" in
8973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974   *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977   (eval "$ac_compile") 2>conftest.er1
8978   ac_status=$?
8979   grep -v '^ *+' conftest.er1 >conftest.err
8980   rm -f conftest.er1
8981   cat conftest.err >&5
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); } && {
8984          test -z "$ac_c_werror_flag" ||
8985          test ! -s conftest.err
8986        } && test -s conftest.$ac_objext; then
8987   ac_cv_type_ptrdiff_t=yes
8988 else
8989   echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992         ac_cv_type_ptrdiff_t=no
8993 fi
8994
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 fi
8997 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8998 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8999 if test $ac_cv_type_ptrdiff_t = yes; then
9000   :
9001 else
9002
9003 cat >>confdefs.h <<\_ACEOF
9004 #define ptrdiff_t long
9005 _ACEOF
9006
9007
9008 fi
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9021 stdlib.h string.h unistd.h sys/param.h
9022 do
9023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9025   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 fi
9030 ac_res=`eval echo '${'$as_ac_Header'}'`
9031                { echo "$as_me:$LINENO: result: $ac_res" >&5
9032 echo "${ECHO_T}$ac_res" >&6; }
9033 else
9034   # Is the header compilable?
9035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h.  */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h.  */
9043 $ac_includes_default
9044 #include <$ac_header>
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (ac_try="$ac_compile"
9048 case "(($ac_try" in
9049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050   *) ac_try_echo=$ac_try;;
9051 esac
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053   (eval "$ac_compile") 2>conftest.er1
9054   ac_status=$?
9055   grep -v '^ *+' conftest.er1 >conftest.err
9056   rm -f conftest.er1
9057   cat conftest.err >&5
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } && {
9060          test -z "$ac_c_werror_flag" ||
9061          test ! -s conftest.err
9062        } && test -s conftest.$ac_objext; then
9063   ac_header_compiler=yes
9064 else
9065   echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068         ac_header_compiler=no
9069 fi
9070
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9073 echo "${ECHO_T}$ac_header_compiler" >&6; }
9074
9075 # Is the header present?
9076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9078 cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h.  */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h.  */
9084 #include <$ac_header>
9085 _ACEOF
9086 if { (ac_try="$ac_cpp conftest.$ac_ext"
9087 case "(($ac_try" in
9088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089   *) ac_try_echo=$ac_try;;
9090 esac
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9093   ac_status=$?
9094   grep -v '^ *+' conftest.er1 >conftest.err
9095   rm -f conftest.er1
9096   cat conftest.err >&5
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); } >/dev/null && {
9099          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9100          test ! -s conftest.err
9101        }; then
9102   ac_header_preproc=yes
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107   ac_header_preproc=no
9108 fi
9109
9110 rm -f conftest.err conftest.$ac_ext
9111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9112 echo "${ECHO_T}$ac_header_preproc" >&6; }
9113
9114 # So?  What about this header?
9115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9116   yes:no: )
9117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9121     ac_header_preproc=yes
9122     ;;
9123   no:yes:* )
9124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9136
9137     ;;
9138 esac
9139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   eval "$as_ac_Header=\$ac_header_preproc"
9145 fi
9146 ac_res=`eval echo '${'$as_ac_Header'}'`
9147                { echo "$as_me:$LINENO: result: $ac_res" >&5
9148 echo "${ECHO_T}$ac_res" >&6; }
9149
9150 fi
9151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9152   cat >>confdefs.h <<_ACEOF
9153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9154 _ACEOF
9155
9156 fi
9157
9158 done
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9184 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9185 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9186 __fsetlocking
9187 do
9188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194   cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h.  */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h.  */
9200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9202 #define $ac_func innocuous_$ac_func
9203
9204 /* System header to define __stub macros and hopefully few prototypes,
9205     which can conflict with char $ac_func (); below.
9206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9207     <limits.h> exists even on freestanding compilers.  */
9208
9209 #ifdef __STDC__
9210 # include <limits.h>
9211 #else
9212 # include <assert.h>
9213 #endif
9214
9215 #undef $ac_func
9216
9217 /* Override any GCC internal prototype to avoid an error.
9218    Use char because int might match the return type of a GCC
9219    builtin and then its argument prototype would still apply.  */
9220 #ifdef __cplusplus
9221 extern "C"
9222 #endif
9223 char $ac_func ();
9224 /* The GNU C library defines this for functions which it implements
9225     to always fail with ENOSYS.  Some functions are actually named
9226     something starting with __ and the normal name is an alias.  */
9227 #if defined __stub_$ac_func || defined __stub___$ac_func
9228 choke me
9229 #endif
9230
9231 int
9232 main ()
9233 {
9234 return $ac_func ();
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (ac_try="$ac_link"
9241 case "(($ac_try" in
9242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243   *) ac_try_echo=$ac_try;;
9244 esac
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246   (eval "$ac_link") 2>conftest.er1
9247   ac_status=$?
9248   grep -v '^ *+' conftest.er1 >conftest.err
9249   rm -f conftest.er1
9250   cat conftest.err >&5
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); } && {
9253          test -z "$ac_c_werror_flag" ||
9254          test ! -s conftest.err
9255        } && test -s conftest$ac_exeext &&
9256        $as_test_x conftest$ac_exeext; then
9257   eval "$as_ac_var=yes"
9258 else
9259   echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9261
9262         eval "$as_ac_var=no"
9263 fi
9264
9265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9266       conftest$ac_exeext conftest.$ac_ext
9267 fi
9268 ac_res=`eval echo '${'$as_ac_var'}'`
9269                { echo "$as_me:$LINENO: result: $ac_res" >&5
9270 echo "${ECHO_T}$ac_res" >&6; }
9271 if test `eval echo '${'$as_ac_var'}'` = yes; then
9272   cat >>confdefs.h <<_ACEOF
9273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9274 _ACEOF
9275
9276 fi
9277 done
9278
9279
9280
9281   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9282 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9283 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 #include <stdio.h>
9293 int
9294 main ()
9295 {
9296
9297 #ifndef _snprintf
9298   char *p = (char *) _snprintf;
9299 #endif
9300
9301   ;
9302   return 0;
9303 }
9304 _ACEOF
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9307 case "(($ac_try" in
9308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309   *) ac_try_echo=$ac_try;;
9310 esac
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312   (eval "$ac_compile") 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } && {
9319          test -z "$ac_c_werror_flag" ||
9320          test ! -s conftest.err
9321        } && test -s conftest.$ac_objext; then
9322   ac_cv_have_decl__snprintf=yes
9323 else
9324   echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327         ac_cv_have_decl__snprintf=no
9328 fi
9329
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9333 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9334   if test $ac_cv_have_decl__snprintf = yes; then
9335     gt_value=1
9336   else
9337     gt_value=0
9338   fi
9339
9340 cat >>confdefs.h <<_ACEOF
9341 #define HAVE_DECL__SNPRINTF $gt_value
9342 _ACEOF
9343
9344
9345
9346   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9347 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9348 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h.  */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h.  */
9357 #include <stdio.h>
9358 int
9359 main ()
9360 {
9361
9362 #ifndef _snwprintf
9363   char *p = (char *) _snwprintf;
9364 #endif
9365
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 rm -f conftest.$ac_objext
9371 if { (ac_try="$ac_compile"
9372 case "(($ac_try" in
9373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374   *) ac_try_echo=$ac_try;;
9375 esac
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377   (eval "$ac_compile") 2>conftest.er1
9378   ac_status=$?
9379   grep -v '^ *+' conftest.er1 >conftest.err
9380   rm -f conftest.er1
9381   cat conftest.err >&5
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); } && {
9384          test -z "$ac_c_werror_flag" ||
9385          test ! -s conftest.err
9386        } && test -s conftest.$ac_objext; then
9387   ac_cv_have_decl__snwprintf=yes
9388 else
9389   echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9391
9392         ac_cv_have_decl__snwprintf=no
9393 fi
9394
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396 fi
9397 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9398 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9399   if test $ac_cv_have_decl__snwprintf = yes; then
9400     gt_value=1
9401   else
9402     gt_value=0
9403   fi
9404
9405 cat >>confdefs.h <<_ACEOF
9406 #define HAVE_DECL__SNWPRINTF $gt_value
9407 _ACEOF
9408
9409
9410
9411
9412   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9413 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9414 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9415   echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417   cat >conftest.$ac_ext <<_ACEOF
9418 /* confdefs.h.  */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h.  */
9423 #include <stdio.h>
9424 int
9425 main ()
9426 {
9427
9428 #ifndef feof_unlocked
9429   char *p = (char *) feof_unlocked;
9430 #endif
9431
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9438 case "(($ac_try" in
9439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440   *) ac_try_echo=$ac_try;;
9441 esac
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443   (eval "$ac_compile") 2>conftest.er1
9444   ac_status=$?
9445   grep -v '^ *+' conftest.er1 >conftest.err
9446   rm -f conftest.er1
9447   cat conftest.err >&5
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); } && {
9450          test -z "$ac_c_werror_flag" ||
9451          test ! -s conftest.err
9452        } && test -s conftest.$ac_objext; then
9453   ac_cv_have_decl_feof_unlocked=yes
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458         ac_cv_have_decl_feof_unlocked=no
9459 fi
9460
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 fi
9463 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9464 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9465   if test $ac_cv_have_decl_feof_unlocked = yes; then
9466     gt_value=1
9467   else
9468     gt_value=0
9469   fi
9470
9471 cat >>confdefs.h <<_ACEOF
9472 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9473 _ACEOF
9474
9475
9476
9477   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9478 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9479 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482   cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9488 #include <stdio.h>
9489 int
9490 main ()
9491 {
9492
9493 #ifndef fgets_unlocked
9494   char *p = (char *) fgets_unlocked;
9495 #endif
9496
9497   ;
9498   return 0;
9499 }
9500 _ACEOF
9501 rm -f conftest.$ac_objext
9502 if { (ac_try="$ac_compile"
9503 case "(($ac_try" in
9504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505   *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508   (eval "$ac_compile") 2>conftest.er1
9509   ac_status=$?
9510   grep -v '^ *+' conftest.er1 >conftest.err
9511   rm -f conftest.er1
9512   cat conftest.err >&5
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); } && {
9515          test -z "$ac_c_werror_flag" ||
9516          test ! -s conftest.err
9517        } && test -s conftest.$ac_objext; then
9518   ac_cv_have_decl_fgets_unlocked=yes
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523         ac_cv_have_decl_fgets_unlocked=no
9524 fi
9525
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 fi
9528 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9529 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9530   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9531     gt_value=1
9532   else
9533     gt_value=0
9534   fi
9535
9536 cat >>confdefs.h <<_ACEOF
9537 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9538 _ACEOF
9539
9540
9541
9542   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9543 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9544 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h.  */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h.  */
9553 #include <stdio.h>
9554 int
9555 main ()
9556 {
9557
9558 #ifndef getc_unlocked
9559   char *p = (char *) getc_unlocked;
9560 #endif
9561
9562   ;
9563   return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9568 case "(($ac_try" in
9569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570   *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573   (eval "$ac_compile") 2>conftest.er1
9574   ac_status=$?
9575   grep -v '^ *+' conftest.er1 >conftest.err
9576   rm -f conftest.er1
9577   cat conftest.err >&5
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); } && {
9580          test -z "$ac_c_werror_flag" ||
9581          test ! -s conftest.err
9582        } && test -s conftest.$ac_objext; then
9583   ac_cv_have_decl_getc_unlocked=yes
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588         ac_cv_have_decl_getc_unlocked=no
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 fi
9593 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9594 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9595   if test $ac_cv_have_decl_getc_unlocked = yes; then
9596     gt_value=1
9597   else
9598     gt_value=0
9599   fi
9600
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9603 _ACEOF
9604
9605
9606
9607   case $gt_cv_func_printf_posix in
9608     *yes) HAVE_POSIX_PRINTF=1 ;;
9609     *) HAVE_POSIX_PRINTF=0 ;;
9610   esac
9611
9612   if test "$ac_cv_func_asprintf" = yes; then
9613     HAVE_ASPRINTF=1
9614   else
9615     HAVE_ASPRINTF=0
9616   fi
9617
9618   if test "$ac_cv_func_snprintf" = yes; then
9619     HAVE_SNPRINTF=1
9620   else
9621     HAVE_SNPRINTF=0
9622   fi
9623
9624   if test "$ac_cv_func_wprintf" = yes; then
9625     HAVE_WPRINTF=1
9626   else
9627     HAVE_WPRINTF=0
9628   fi
9629
9630
9631
9632
9633
9634
9635
9636           am_save_CPPFLAGS="$CPPFLAGS"
9637
9638   for element in $INCICONV; do
9639     haveit=
9640     for x in $CPPFLAGS; do
9641
9642   acl_save_prefix="$prefix"
9643   prefix="$acl_final_prefix"
9644   acl_save_exec_prefix="$exec_prefix"
9645   exec_prefix="$acl_final_exec_prefix"
9646   eval x=\"$x\"
9647   exec_prefix="$acl_save_exec_prefix"
9648   prefix="$acl_save_prefix"
9649
9650       if test "X$x" = "X$element"; then
9651         haveit=yes
9652         break
9653       fi
9654     done
9655     if test -z "$haveit"; then
9656       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9657     fi
9658   done
9659
9660
9661   { echo "$as_me:$LINENO: checking for iconv" >&5
9662 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9663 if test "${am_cv_func_iconv+set}" = set; then
9664   echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666
9667     am_cv_func_iconv="no, consider installing GNU libiconv"
9668     am_cv_lib_iconv=no
9669     cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h.  */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h.  */
9675 #include <stdlib.h>
9676 #include <iconv.h>
9677 int
9678 main ()
9679 {
9680 iconv_t cd = iconv_open("","");
9681        iconv(cd,NULL,NULL,NULL,NULL);
9682        iconv_close(cd);
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9689 case "(($ac_try" in
9690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691   *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694   (eval "$ac_link") 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } && {
9701          test -z "$ac_c_werror_flag" ||
9702          test ! -s conftest.err
9703        } && test -s conftest$ac_exeext &&
9704        $as_test_x conftest$ac_exeext; then
9705   am_cv_func_iconv=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710
9711 fi
9712
9713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714       conftest$ac_exeext conftest.$ac_ext
9715     if test "$am_cv_func_iconv" != yes; then
9716       am_save_LIBS="$LIBS"
9717       LIBS="$LIBS $LIBICONV"
9718       cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h.  */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h.  */
9724 #include <stdlib.h>
9725 #include <iconv.h>
9726 int
9727 main ()
9728 {
9729 iconv_t cd = iconv_open("","");
9730          iconv(cd,NULL,NULL,NULL,NULL);
9731          iconv_close(cd);
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (ac_try="$ac_link"
9738 case "(($ac_try" in
9739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740   *) ac_try_echo=$ac_try;;
9741 esac
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743   (eval "$ac_link") 2>conftest.er1
9744   ac_status=$?
9745   grep -v '^ *+' conftest.er1 >conftest.err
9746   rm -f conftest.er1
9747   cat conftest.err >&5
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } && {
9750          test -z "$ac_c_werror_flag" ||
9751          test ! -s conftest.err
9752        } && test -s conftest$ac_exeext &&
9753        $as_test_x conftest$ac_exeext; then
9754   am_cv_lib_iconv=yes
9755         am_cv_func_iconv=yes
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760
9761 fi
9762
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764       conftest$ac_exeext conftest.$ac_ext
9765       LIBS="$am_save_LIBS"
9766     fi
9767
9768 fi
9769 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9770 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9771   if test "$am_cv_func_iconv" = yes; then
9772
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_ICONV 1
9775 _ACEOF
9776
9777   fi
9778   if test "$am_cv_lib_iconv" = yes; then
9779     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9780 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9781     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9782 echo "${ECHO_T}$LIBICONV" >&6; }
9783   else
9784             CPPFLAGS="$am_save_CPPFLAGS"
9785     LIBICONV=
9786     LTLIBICONV=
9787   fi
9788
9789
9790
9791   if test "$am_cv_func_iconv" = yes; then
9792     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9793 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9794     if test "${am_cv_proto_iconv+set}" = set; then
9795   echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797
9798       cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h.  */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h.  */
9804
9805 #include <stdlib.h>
9806 #include <iconv.h>
9807 extern
9808 #ifdef __cplusplus
9809 "C"
9810 #endif
9811 #if defined(__STDC__) || defined(__cplusplus)
9812 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9813 #else
9814 size_t iconv();
9815 #endif
9816
9817 int
9818 main ()
9819 {
9820
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9827 case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832   (eval "$ac_compile") 2>conftest.er1
9833   ac_status=$?
9834   grep -v '^ *+' conftest.er1 >conftest.err
9835   rm -f conftest.er1
9836   cat conftest.err >&5
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } && {
9839          test -z "$ac_c_werror_flag" ||
9840          test ! -s conftest.err
9841        } && test -s conftest.$ac_objext; then
9842   am_cv_proto_iconv_arg1=""
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847         am_cv_proto_iconv_arg1="const"
9848 fi
9849
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851       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);"
9852 fi
9853
9854     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9855     { echo "$as_me:$LINENO: result: ${ac_t:-
9856          }$am_cv_proto_iconv" >&5
9857 echo "${ECHO_T}${ac_t:-
9858          }$am_cv_proto_iconv" >&6; }
9859
9860 cat >>confdefs.h <<_ACEOF
9861 #define ICONV_CONST $am_cv_proto_iconv_arg1
9862 _ACEOF
9863
9864   fi
9865
9866
9867   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9868 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9869 if test "${am_cv_langinfo_codeset+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878 #include <langinfo.h>
9879 int
9880 main ()
9881 {
9882 char* cs = nl_langinfo(CODESET);
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_link") 2>conftest.er1
9895   ac_status=$?
9896   grep -v '^ *+' conftest.er1 >conftest.err
9897   rm -f conftest.er1
9898   cat conftest.err >&5
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); } && {
9901          test -z "$ac_c_werror_flag" ||
9902          test ! -s conftest.err
9903        } && test -s conftest$ac_exeext &&
9904        $as_test_x conftest$ac_exeext; then
9905   am_cv_langinfo_codeset=yes
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910         am_cv_langinfo_codeset=no
9911 fi
9912
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914       conftest$ac_exeext conftest.$ac_ext
9915
9916 fi
9917 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9918 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9919   if test $am_cv_langinfo_codeset = yes; then
9920
9921 cat >>confdefs.h <<\_ACEOF
9922 #define HAVE_LANGINFO_CODESET 1
9923 _ACEOF
9924
9925   fi
9926
9927   if test $ac_cv_header_locale_h = yes; then
9928
9929   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9930 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9931 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9932   echo $ECHO_N "(cached) $ECHO_C" >&6
9933 else
9934   cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h.  */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h.  */
9940 #include <locale.h>
9941 int
9942 main ()
9943 {
9944 return LC_MESSAGES
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9951 case "(($ac_try" in
9952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953   *) ac_try_echo=$ac_try;;
9954 esac
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956   (eval "$ac_link") 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } && {
9963          test -z "$ac_c_werror_flag" ||
9964          test ! -s conftest.err
9965        } && test -s conftest$ac_exeext &&
9966        $as_test_x conftest$ac_exeext; then
9967   am_cv_val_LC_MESSAGES=yes
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972         am_cv_val_LC_MESSAGES=no
9973 fi
9974
9975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9976       conftest$ac_exeext conftest.$ac_ext
9977 fi
9978 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9979 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9980   if test $am_cv_val_LC_MESSAGES = yes; then
9981
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_LC_MESSAGES 1
9984 _ACEOF
9985
9986   fi
9987
9988   fi
9989
9990                       for ac_prog in bison
9991 do
9992   # Extract the first word of "$ac_prog", so it can be a program name with args.
9993 set dummy $ac_prog; ac_word=$2
9994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9996 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   if test -n "$INTLBISON"; then
10000   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10001 else
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10004 do
10005   IFS=$as_save_IFS
10006   test -z "$as_dir" && as_dir=.
10007   for ac_exec_ext in '' $ac_executable_extensions; do
10008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009     ac_cv_prog_INTLBISON="$ac_prog"
10010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10011     break 2
10012   fi
10013 done
10014 done
10015 IFS=$as_save_IFS
10016
10017 fi
10018 fi
10019 INTLBISON=$ac_cv_prog_INTLBISON
10020 if test -n "$INTLBISON"; then
10021   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10022 echo "${ECHO_T}$INTLBISON" >&6; }
10023 else
10024   { echo "$as_me:$LINENO: result: no" >&5
10025 echo "${ECHO_T}no" >&6; }
10026 fi
10027
10028
10029   test -n "$INTLBISON" && break
10030 done
10031
10032   if test -z "$INTLBISON"; then
10033     ac_verc_fail=yes
10034   else
10035         { echo "$as_me:$LINENO: checking version of bison" >&5
10036 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10037     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10038     case $ac_prog_version in
10039       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10040       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10041          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10042       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10043     esac
10044     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10045 echo "${ECHO_T}$ac_prog_version" >&6; }
10046   fi
10047   if test $ac_verc_fail = yes; then
10048     INTLBISON=:
10049   fi
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10067 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10068     # Check whether --enable-nls was given.
10069 if test "${enable_nls+set}" = set; then
10070   enableval=$enable_nls; USE_NLS=$enableval
10071 else
10072   USE_NLS=yes
10073 fi
10074
10075   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10076 echo "${ECHO_T}$USE_NLS" >&6; }
10077
10078
10079
10080
10081     BUILD_INCLUDED_LIBINTL=no
10082     USE_INCLUDED_LIBINTL=no
10083
10084   LIBINTL=
10085   LTLIBINTL=
10086   POSUB=
10087
10088     if test "$USE_NLS" = "yes"; then
10089     gt_use_preinstalled_gnugettext=no
10090
10091       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10092 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10093
10094 # Check whether --with-included-gettext was given.
10095 if test "${with_included_gettext+set}" = set; then
10096   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10097 else
10098   nls_cv_force_use_gnu_gettext=no
10099 fi
10100
10101       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10102 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10103
10104       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10105       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10106
10107
10108
10109
10110
10111
10112         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10113 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10114 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10115   echo $ECHO_N "(cached) $ECHO_C" >&6
10116 else
10117   cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h.  */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h.  */
10123 #include <libintl.h>
10124 extern int _nl_msg_cat_cntr;
10125 extern int *_nl_domain_bindings;
10126 int
10127 main ()
10128 {
10129 bindtextdomain ("", "");
10130 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139   *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142   (eval "$ac_link") 2>conftest.er1
10143   ac_status=$?
10144   grep -v '^ *+' conftest.er1 >conftest.err
10145   rm -f conftest.er1
10146   cat conftest.err >&5
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); } && {
10149          test -z "$ac_c_werror_flag" ||
10150          test ! -s conftest.err
10151        } && test -s conftest$ac_exeext &&
10152        $as_test_x conftest$ac_exeext; then
10153   gt_cv_func_gnugettext1_libc=yes
10154 else
10155   echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158         gt_cv_func_gnugettext1_libc=no
10159 fi
10160
10161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10162       conftest$ac_exeext conftest.$ac_ext
10163 fi
10164 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10165 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10166
10167         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10168
10169
10170
10171     use_additional=yes
10172
10173   acl_save_prefix="$prefix"
10174   prefix="$acl_final_prefix"
10175   acl_save_exec_prefix="$exec_prefix"
10176   exec_prefix="$acl_final_exec_prefix"
10177
10178     eval additional_includedir=\"$includedir\"
10179     eval additional_libdir=\"$libdir\"
10180
10181   exec_prefix="$acl_save_exec_prefix"
10182   prefix="$acl_save_prefix"
10183
10184
10185 # Check whether --with-libintl-prefix was given.
10186 if test "${with_libintl_prefix+set}" = set; then
10187   withval=$with_libintl_prefix;
10188     if test "X$withval" = "Xno"; then
10189       use_additional=no
10190     else
10191       if test "X$withval" = "X"; then
10192
10193   acl_save_prefix="$prefix"
10194   prefix="$acl_final_prefix"
10195   acl_save_exec_prefix="$exec_prefix"
10196   exec_prefix="$acl_final_exec_prefix"
10197
10198           eval additional_includedir=\"$includedir\"
10199           eval additional_libdir=\"$libdir\"
10200
10201   exec_prefix="$acl_save_exec_prefix"
10202   prefix="$acl_save_prefix"
10203
10204       else
10205         additional_includedir="$withval/include"
10206         additional_libdir="$withval/lib"
10207       fi
10208     fi
10209
10210 fi
10211
10212       LIBINTL=
10213   LTLIBINTL=
10214   INCINTL=
10215   rpathdirs=
10216   ltrpathdirs=
10217   names_already_handled=
10218   names_next_round='intl '
10219   while test -n "$names_next_round"; do
10220     names_this_round="$names_next_round"
10221     names_next_round=
10222     for name in $names_this_round; do
10223       already_handled=
10224       for n in $names_already_handled; do
10225         if test "$n" = "$name"; then
10226           already_handled=yes
10227           break
10228         fi
10229       done
10230       if test -z "$already_handled"; then
10231         names_already_handled="$names_already_handled $name"
10232                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10233         eval value=\"\$HAVE_LIB$uppername\"
10234         if test -n "$value"; then
10235           if test "$value" = yes; then
10236             eval value=\"\$LIB$uppername\"
10237             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10238             eval value=\"\$LTLIB$uppername\"
10239             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10240           else
10241                                     :
10242           fi
10243         else
10244                               found_dir=
10245           found_la=
10246           found_so=
10247           found_a=
10248           if test $use_additional = yes; then
10249             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10250               found_dir="$additional_libdir"
10251               found_so="$additional_libdir/lib$name.$shlibext"
10252               if test -f "$additional_libdir/lib$name.la"; then
10253                 found_la="$additional_libdir/lib$name.la"
10254               fi
10255             else
10256               if test -f "$additional_libdir/lib$name.$libext"; then
10257                 found_dir="$additional_libdir"
10258                 found_a="$additional_libdir/lib$name.$libext"
10259                 if test -f "$additional_libdir/lib$name.la"; then
10260                   found_la="$additional_libdir/lib$name.la"
10261                 fi
10262               fi
10263             fi
10264           fi
10265           if test "X$found_dir" = "X"; then
10266             for x in $LDFLAGS $LTLIBINTL; do
10267
10268   acl_save_prefix="$prefix"
10269   prefix="$acl_final_prefix"
10270   acl_save_exec_prefix="$exec_prefix"
10271   exec_prefix="$acl_final_exec_prefix"
10272   eval x=\"$x\"
10273   exec_prefix="$acl_save_exec_prefix"
10274   prefix="$acl_save_prefix"
10275
10276               case "$x" in
10277                 -L*)
10278                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10279                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10280                     found_dir="$dir"
10281                     found_so="$dir/lib$name.$shlibext"
10282                     if test -f "$dir/lib$name.la"; then
10283                       found_la="$dir/lib$name.la"
10284                     fi
10285                   else
10286                     if test -f "$dir/lib$name.$libext"; then
10287                       found_dir="$dir"
10288                       found_a="$dir/lib$name.$libext"
10289                       if test -f "$dir/lib$name.la"; then
10290                         found_la="$dir/lib$name.la"
10291                       fi
10292                     fi
10293                   fi
10294                   ;;
10295               esac
10296               if test "X$found_dir" != "X"; then
10297                 break
10298               fi
10299             done
10300           fi
10301           if test "X$found_dir" != "X"; then
10302                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10303             if test "X$found_so" != "X"; then
10304                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10305                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10306               else
10307                                                                                 haveit=
10308                 for x in $ltrpathdirs; do
10309                   if test "X$x" = "X$found_dir"; then
10310                     haveit=yes
10311                     break
10312                   fi
10313                 done
10314                 if test -z "$haveit"; then
10315                   ltrpathdirs="$ltrpathdirs $found_dir"
10316                 fi
10317                                 if test "$hardcode_direct" = yes; then
10318                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10319                 else
10320                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10321                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10322                                                             haveit=
10323                     for x in $rpathdirs; do
10324                       if test "X$x" = "X$found_dir"; then
10325                         haveit=yes
10326                         break
10327                       fi
10328                     done
10329                     if test -z "$haveit"; then
10330                       rpathdirs="$rpathdirs $found_dir"
10331                     fi
10332                   else
10333                                                                                 haveit=
10334                     for x in $LDFLAGS $LIBINTL; do
10335
10336   acl_save_prefix="$prefix"
10337   prefix="$acl_final_prefix"
10338   acl_save_exec_prefix="$exec_prefix"
10339   exec_prefix="$acl_final_exec_prefix"
10340   eval x=\"$x\"
10341   exec_prefix="$acl_save_exec_prefix"
10342   prefix="$acl_save_prefix"
10343
10344                       if test "X$x" = "X-L$found_dir"; then
10345                         haveit=yes
10346                         break
10347                       fi
10348                     done
10349                     if test -z "$haveit"; then
10350                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10351                     fi
10352                     if test "$hardcode_minus_L" != no; then
10353                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10354                     else
10355                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10356                     fi
10357                   fi
10358                 fi
10359               fi
10360             else
10361               if test "X$found_a" != "X"; then
10362                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10363               else
10364                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10365               fi
10366             fi
10367                         additional_includedir=
10368             case "$found_dir" in
10369               */lib | */lib/)
10370                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10371                 additional_includedir="$basedir/include"
10372                 ;;
10373             esac
10374             if test "X$additional_includedir" != "X"; then
10375                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10376                 haveit=
10377                 if test "X$additional_includedir" = "X/usr/local/include"; then
10378                   if test -n "$GCC"; then
10379                     case $host_os in
10380                       linux*) haveit=yes;;
10381                     esac
10382                   fi
10383                 fi
10384                 if test -z "$haveit"; then
10385                   for x in $CPPFLAGS $INCINTL; do
10386
10387   acl_save_prefix="$prefix"
10388   prefix="$acl_final_prefix"
10389   acl_save_exec_prefix="$exec_prefix"
10390   exec_prefix="$acl_final_exec_prefix"
10391   eval x=\"$x\"
10392   exec_prefix="$acl_save_exec_prefix"
10393   prefix="$acl_save_prefix"
10394
10395                     if test "X$x" = "X-I$additional_includedir"; then
10396                       haveit=yes
10397                       break
10398                     fi
10399                   done
10400                   if test -z "$haveit"; then
10401                     if test -d "$additional_includedir"; then
10402                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10403                     fi
10404                   fi
10405                 fi
10406               fi
10407             fi
10408                         if test -n "$found_la"; then
10409                                                         save_libdir="$libdir"
10410               case "$found_la" in
10411                 */* | *\\*) . "$found_la" ;;
10412                 *) . "./$found_la" ;;
10413               esac
10414               libdir="$save_libdir"
10415                             for dep in $dependency_libs; do
10416                 case "$dep" in
10417                   -L*)
10418                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10419                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10420                       haveit=
10421                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10422                         if test -n "$GCC"; then
10423                           case $host_os in
10424                             linux*) haveit=yes;;
10425                           esac
10426                         fi
10427                       fi
10428                       if test -z "$haveit"; then
10429                         haveit=
10430                         for x in $LDFLAGS $LIBINTL; do
10431
10432   acl_save_prefix="$prefix"
10433   prefix="$acl_final_prefix"
10434   acl_save_exec_prefix="$exec_prefix"
10435   exec_prefix="$acl_final_exec_prefix"
10436   eval x=\"$x\"
10437   exec_prefix="$acl_save_exec_prefix"
10438   prefix="$acl_save_prefix"
10439
10440                           if test "X$x" = "X-L$additional_libdir"; then
10441                             haveit=yes
10442                             break
10443                           fi
10444                         done
10445                         if test -z "$haveit"; then
10446                           if test -d "$additional_libdir"; then
10447                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10448                           fi
10449                         fi
10450                         haveit=
10451                         for x in $LDFLAGS $LTLIBINTL; do
10452
10453   acl_save_prefix="$prefix"
10454   prefix="$acl_final_prefix"
10455   acl_save_exec_prefix="$exec_prefix"
10456   exec_prefix="$acl_final_exec_prefix"
10457   eval x=\"$x\"
10458   exec_prefix="$acl_save_exec_prefix"
10459   prefix="$acl_save_prefix"
10460
10461                           if test "X$x" = "X-L$additional_libdir"; then
10462                             haveit=yes
10463                             break
10464                           fi
10465                         done
10466                         if test -z "$haveit"; then
10467                           if test -d "$additional_libdir"; then
10468                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10469                           fi
10470                         fi
10471                       fi
10472                     fi
10473                     ;;
10474                   -R*)
10475                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10476                     if test "$enable_rpath" != no; then
10477                                                                   haveit=
10478                       for x in $rpathdirs; do
10479                         if test "X$x" = "X$dir"; then
10480                           haveit=yes
10481                           break
10482                         fi
10483                       done
10484                       if test -z "$haveit"; then
10485                         rpathdirs="$rpathdirs $dir"
10486                       fi
10487                                                                   haveit=
10488                       for x in $ltrpathdirs; do
10489                         if test "X$x" = "X$dir"; then
10490                           haveit=yes
10491                           break
10492                         fi
10493                       done
10494                       if test -z "$haveit"; then
10495                         ltrpathdirs="$ltrpathdirs $dir"
10496                       fi
10497                     fi
10498                     ;;
10499                   -l*)
10500                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10501                     ;;
10502                   *.la)
10503                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10504                     ;;
10505                   *)
10506                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10507                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10508                     ;;
10509                 esac
10510               done
10511             fi
10512           else
10513                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10514             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10515           fi
10516         fi
10517       fi
10518     done
10519   done
10520   if test "X$rpathdirs" != "X"; then
10521     if test -n "$hardcode_libdir_separator"; then
10522                         alldirs=
10523       for found_dir in $rpathdirs; do
10524         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10525       done
10526             acl_save_libdir="$libdir"
10527       libdir="$alldirs"
10528       eval flag=\"$hardcode_libdir_flag_spec\"
10529       libdir="$acl_save_libdir"
10530       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10531     else
10532             for found_dir in $rpathdirs; do
10533         acl_save_libdir="$libdir"
10534         libdir="$found_dir"
10535         eval flag=\"$hardcode_libdir_flag_spec\"
10536         libdir="$acl_save_libdir"
10537         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10538       done
10539     fi
10540   fi
10541   if test "X$ltrpathdirs" != "X"; then
10542             for found_dir in $ltrpathdirs; do
10543       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10544     done
10545   fi
10546
10547           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10548 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10549 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   gt_save_CPPFLAGS="$CPPFLAGS"
10553             CPPFLAGS="$CPPFLAGS $INCINTL"
10554             gt_save_LIBS="$LIBS"
10555             LIBS="$LIBS $LIBINTL"
10556                         cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562 #include <libintl.h>
10563 extern int _nl_msg_cat_cntr;
10564 extern
10565 #ifdef __cplusplus
10566 "C"
10567 #endif
10568 const char *_nl_expand_alias ();
10569 int
10570 main ()
10571 {
10572 bindtextdomain ("", "");
10573 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10574   ;
10575   return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582   *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585   (eval "$ac_link") 2>conftest.er1
10586   ac_status=$?
10587   grep -v '^ *+' conftest.er1 >conftest.err
10588   rm -f conftest.er1
10589   cat conftest.err >&5
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } && {
10592          test -z "$ac_c_werror_flag" ||
10593          test ! -s conftest.err
10594        } && test -s conftest$ac_exeext &&
10595        $as_test_x conftest$ac_exeext; then
10596   gt_cv_func_gnugettext1_libintl=yes
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601         gt_cv_func_gnugettext1_libintl=no
10602 fi
10603
10604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10605       conftest$ac_exeext conftest.$ac_ext
10606                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10607               LIBS="$LIBS $LIBICONV"
10608               cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h.  */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h.  */
10614 #include <libintl.h>
10615 extern int _nl_msg_cat_cntr;
10616 extern
10617 #ifdef __cplusplus
10618 "C"
10619 #endif
10620 const char *_nl_expand_alias ();
10621 int
10622 main ()
10623 {
10624 bindtextdomain ("", "");
10625 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10626   ;
10627   return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634   *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637   (eval "$ac_link") 2>conftest.er1
10638   ac_status=$?
10639   grep -v '^ *+' conftest.er1 >conftest.err
10640   rm -f conftest.er1
10641   cat conftest.err >&5
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } && {
10644          test -z "$ac_c_werror_flag" ||
10645          test ! -s conftest.err
10646        } && test -s conftest$ac_exeext &&
10647        $as_test_x conftest$ac_exeext; then
10648   LIBINTL="$LIBINTL $LIBICONV"
10649                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10650                 gt_cv_func_gnugettext1_libintl=yes
10651
10652 else
10653   echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10655
10656
10657 fi
10658
10659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10660       conftest$ac_exeext conftest.$ac_ext
10661             fi
10662             CPPFLAGS="$gt_save_CPPFLAGS"
10663             LIBS="$gt_save_LIBS"
10664 fi
10665 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10666 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10667         fi
10668
10669                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10670            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10671                 && test "$PACKAGE" != gettext-runtime \
10672                 && test "$PACKAGE" != gettext-tools; }; then
10673           gt_use_preinstalled_gnugettext=yes
10674         else
10675                     LIBINTL=
10676           LTLIBINTL=
10677           INCINTL=
10678         fi
10679
10680
10681         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10682                               nls_cv_use_gnu_gettext=yes
10683         fi
10684       fi
10685
10686       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10687                 BUILD_INCLUDED_LIBINTL=yes
10688         USE_INCLUDED_LIBINTL=yes
10689         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10690         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10691         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10692       fi
10693
10694       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10695          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10696                 CATOBJEXT=.gmo
10697       fi
10698
10699
10700     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10701        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10702
10703 cat >>confdefs.h <<\_ACEOF
10704 #define ENABLE_NLS 1
10705 _ACEOF
10706
10707     else
10708       USE_NLS=no
10709     fi
10710   fi
10711
10712   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10713 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10714   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10715 echo "${ECHO_T}$USE_NLS" >&6; }
10716   if test "$USE_NLS" = "yes"; then
10717     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10718 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10719     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10720       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10721         gt_source="external libintl"
10722       else
10723         gt_source="libc"
10724       fi
10725     else
10726       gt_source="included intl directory"
10727     fi
10728     { echo "$as_me:$LINENO: result: $gt_source" >&5
10729 echo "${ECHO_T}$gt_source" >&6; }
10730   fi
10731
10732   if test "$USE_NLS" = "yes"; then
10733
10734     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10735       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10736         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10737 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10738         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10739 echo "${ECHO_T}$LIBINTL" >&6; }
10740
10741   for element in $INCINTL; do
10742     haveit=
10743     for x in $CPPFLAGS; do
10744
10745   acl_save_prefix="$prefix"
10746   prefix="$acl_final_prefix"
10747   acl_save_exec_prefix="$exec_prefix"
10748   exec_prefix="$acl_final_exec_prefix"
10749   eval x=\"$x\"
10750   exec_prefix="$acl_save_exec_prefix"
10751   prefix="$acl_save_prefix"
10752
10753       if test "X$x" = "X$element"; then
10754         haveit=yes
10755         break
10756       fi
10757     done
10758     if test -z "$haveit"; then
10759       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10760     fi
10761   done
10762
10763       fi
10764
10765
10766 cat >>confdefs.h <<\_ACEOF
10767 #define HAVE_GETTEXT 1
10768 _ACEOF
10769
10770
10771 cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_DCGETTEXT 1
10773 _ACEOF
10774
10775     fi
10776
10777         POSUB=po
10778   fi
10779
10780
10781             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10782       BUILD_INCLUDED_LIBINTL=yes
10783     fi
10784
10785
10786
10787
10788
10789         nls_cv_header_intl=
10790     nls_cv_header_libgt=
10791
10792         DATADIRNAME=share
10793
10794
10795         INSTOBJEXT=.mo
10796
10797
10798         GENCAT=gencat
10799
10800
10801         if test "$USE_INCLUDED_LIBINTL" = yes; then
10802       INTLOBJS="\$(GETTOBJS)"
10803     fi
10804
10805
10806         INTL_LIBTOOL_SUFFIX_PREFIX=
10807
10808
10809
10810     INTLLIBS="$LIBINTL"
10811
10812
10813
10814
10815
10816
10817
10818 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10819 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10820 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10821 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824   cat >conftest.make <<\_ACEOF
10825 SHELL = /bin/sh
10826 all:
10827         @echo '@@@%%%=$(MAKE)=@@@%%%'
10828 _ACEOF
10829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10830 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10831   *@@@%%%=?*=@@@%%%*)
10832     eval ac_cv_prog_make_${ac_make}_set=yes;;
10833   *)
10834     eval ac_cv_prog_make_${ac_make}_set=no;;
10835 esac
10836 rm -f conftest.make
10837 fi
10838 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10839   { echo "$as_me:$LINENO: result: yes" >&5
10840 echo "${ECHO_T}yes" >&6; }
10841   SET_MAKE=
10842 else
10843   { echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6; }
10845   SET_MAKE="MAKE=${MAKE-make}"
10846 fi
10847
10848 # Extract the first word of "ln", so it can be a program name with args.
10849 set dummy ln; ac_word=$2
10850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10852 if test "${ac_cv_path_LN+set}" = set; then
10853   echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855   case $LN in
10856   [\\/]* | ?:[\\/]*)
10857   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10858   ;;
10859   *)
10860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10862 do
10863   IFS=$as_save_IFS
10864   test -z "$as_dir" && as_dir=.
10865   for ac_exec_ext in '' $ac_executable_extensions; do
10866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10867     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10869     break 2
10870   fi
10871 done
10872 done
10873 IFS=$as_save_IFS
10874
10875   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10876   ;;
10877 esac
10878 fi
10879 LN=$ac_cv_path_LN
10880 if test -n "$LN"; then
10881   { echo "$as_me:$LINENO: result: $LN" >&5
10882 echo "${ECHO_T}$LN" >&6; }
10883 else
10884   { echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6; }
10886 fi
10887
10888
10889 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10890 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10891 LN_S=$as_ln_s
10892 if test "$LN_S" = "ln -s"; then
10893   { echo "$as_me:$LINENO: result: yes" >&5
10894 echo "${ECHO_T}yes" >&6; }
10895 else
10896   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10897 echo "${ECHO_T}no, using $LN_S" >&6; }
10898 fi
10899
10900 # Extract the first word of "mv", so it can be a program name with args.
10901 set dummy mv; ac_word=$2
10902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10904 if test "${ac_cv_path_MV+set}" = set; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   case $MV in
10908   [\\/]* | ?:[\\/]*)
10909   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10910   ;;
10911   *)
10912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10914 do
10915   IFS=$as_save_IFS
10916   test -z "$as_dir" && as_dir=.
10917   for ac_exec_ext in '' $ac_executable_extensions; do
10918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10919     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10921     break 2
10922   fi
10923 done
10924 done
10925 IFS=$as_save_IFS
10926
10927   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10928   ;;
10929 esac
10930 fi
10931 MV=$ac_cv_path_MV
10932 if test -n "$MV"; then
10933   { echo "$as_me:$LINENO: result: $MV" >&5
10934 echo "${ECHO_T}$MV" >&6; }
10935 else
10936   { echo "$as_me:$LINENO: result: no" >&5
10937 echo "${ECHO_T}no" >&6; }
10938 fi
10939
10940
10941 # Extract the first word of "cp", so it can be a program name with args.
10942 set dummy cp; ac_word=$2
10943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10945 if test "${ac_cv_path_CP+set}" = set; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948   case $CP in
10949   [\\/]* | ?:[\\/]*)
10950   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10951   ;;
10952   *)
10953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954 for as_dir in $PATH
10955 do
10956   IFS=$as_save_IFS
10957   test -z "$as_dir" && as_dir=.
10958   for ac_exec_ext in '' $ac_executable_extensions; do
10959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10960     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10962     break 2
10963   fi
10964 done
10965 done
10966 IFS=$as_save_IFS
10967
10968   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10969   ;;
10970 esac
10971 fi
10972 CP=$ac_cv_path_CP
10973 if test -n "$CP"; then
10974   { echo "$as_me:$LINENO: result: $CP" >&5
10975 echo "${ECHO_T}$CP" >&6; }
10976 else
10977   { echo "$as_me:$LINENO: result: no" >&5
10978 echo "${ECHO_T}no" >&6; }
10979 fi
10980
10981
10982 # Extract the first word of "rm", so it can be a program name with args.
10983 set dummy rm; ac_word=$2
10984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10986 if test "${ac_cv_path_RM+set}" = set; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989   case $RM in
10990   [\\/]* | ?:[\\/]*)
10991   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10992   ;;
10993   *)
10994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995 for as_dir in $PATH
10996 do
10997   IFS=$as_save_IFS
10998   test -z "$as_dir" && as_dir=.
10999   for ac_exec_ext in '' $ac_executable_extensions; do
11000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11001     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11003     break 2
11004   fi
11005 done
11006 done
11007 IFS=$as_save_IFS
11008
11009   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11010   ;;
11011 esac
11012 fi
11013 RM=$ac_cv_path_RM
11014 if test -n "$RM"; then
11015   { echo "$as_me:$LINENO: result: $RM" >&5
11016 echo "${ECHO_T}$RM" >&6; }
11017 else
11018   { echo "$as_me:$LINENO: result: no" >&5
11019 echo "${ECHO_T}no" >&6; }
11020 fi
11021
11022
11023 # Extract the first word of "chmod", so it can be a program name with args.
11024 set dummy chmod; ac_word=$2
11025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11027 if test "${ac_cv_path_CHMOD+set}" = set; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030   case $CHMOD in
11031   [\\/]* | ?:[\\/]*)
11032   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11033   ;;
11034   *)
11035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11037 do
11038   IFS=$as_save_IFS
11039   test -z "$as_dir" && as_dir=.
11040   for ac_exec_ext in '' $ac_executable_extensions; do
11041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11044     break 2
11045   fi
11046 done
11047 done
11048 IFS=$as_save_IFS
11049
11050   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11051   ;;
11052 esac
11053 fi
11054 CHMOD=$ac_cv_path_CHMOD
11055 if test -n "$CHMOD"; then
11056   { echo "$as_me:$LINENO: result: $CHMOD" >&5
11057 echo "${ECHO_T}$CHMOD" >&6; }
11058 else
11059   { echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6; }
11061 fi
11062
11063
11064 for ac_prog in gawk mawk nawk awk
11065 do
11066   # Extract the first word of "$ac_prog", so it can be a program name with args.
11067 set dummy $ac_prog; ac_word=$2
11068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11070 if test "${ac_cv_prog_AWK+set}" = set; then
11071   echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073   if test -n "$AWK"; then
11074   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11075 else
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11078 do
11079   IFS=$as_save_IFS
11080   test -z "$as_dir" && as_dir=.
11081   for ac_exec_ext in '' $ac_executable_extensions; do
11082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083     ac_cv_prog_AWK="$ac_prog"
11084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11085     break 2
11086   fi
11087 done
11088 done
11089 IFS=$as_save_IFS
11090
11091 fi
11092 fi
11093 AWK=$ac_cv_prog_AWK
11094 if test -n "$AWK"; then
11095   { echo "$as_me:$LINENO: result: $AWK" >&5
11096 echo "${ECHO_T}$AWK" >&6; }
11097 else
11098   { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11100 fi
11101
11102
11103   test -n "$AWK" && break
11104 done
11105
11106 { echo "$as_me:$LINENO: checking for egrep" >&5
11107 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11108 if test "${ac_cv_path_EGREP+set}" = set; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11112    then ac_cv_path_EGREP="$GREP -E"
11113    else
11114      # Extract the first word of "egrep" to use in msg output
11115 if test -z "$EGREP"; then
11116 set dummy egrep; ac_prog_name=$2
11117 if test "${ac_cv_path_EGREP+set}" = set; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120   ac_path_EGREP_found=false
11121 # Loop through the user's path and test for each of PROGNAME-LIST
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11124 do
11125   IFS=$as_save_IFS
11126   test -z "$as_dir" && as_dir=.
11127   for ac_prog in egrep; do
11128   for ac_exec_ext in '' $ac_executable_extensions; do
11129     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11130     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11131     # Check for GNU ac_path_EGREP and select it if it is found.
11132   # Check for GNU $ac_path_EGREP
11133 case `"$ac_path_EGREP" --version 2>&1` in
11134 *GNU*)
11135   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11136 *)
11137   ac_count=0
11138   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11139   while :
11140   do
11141     cat "conftest.in" "conftest.in" >"conftest.tmp"
11142     mv "conftest.tmp" "conftest.in"
11143     cp "conftest.in" "conftest.nl"
11144     echo 'EGREP' >> "conftest.nl"
11145     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11146     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11147     ac_count=`expr $ac_count + 1`
11148     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11149       # Best one so far, save it but keep looking for a better one
11150       ac_cv_path_EGREP="$ac_path_EGREP"
11151       ac_path_EGREP_max=$ac_count
11152     fi
11153     # 10*(2^10) chars as input seems more than enough
11154     test $ac_count -gt 10 && break
11155   done
11156   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11157 esac
11158
11159
11160     $ac_path_EGREP_found && break 3
11161   done
11162 done
11163
11164 done
11165 IFS=$as_save_IFS
11166
11167
11168 fi
11169
11170 EGREP="$ac_cv_path_EGREP"
11171 if test -z "$EGREP"; then
11172   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11173 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11174    { (exit 1); exit 1; }; }
11175 fi
11176
11177 else
11178   ac_cv_path_EGREP=$EGREP
11179 fi
11180
11181
11182    fi
11183 fi
11184 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11185 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11186  EGREP="$ac_cv_path_EGREP"
11187
11188
11189 # Extract the first word of "sed", so it can be a program name with args.
11190 set dummy sed; ac_word=$2
11191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11193 if test "${ac_cv_path_SED+set}" = set; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196   case $SED in
11197   [\\/]* | ?:[\\/]*)
11198   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11199   ;;
11200   *)
11201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11203 do
11204   IFS=$as_save_IFS
11205   test -z "$as_dir" && as_dir=.
11206   for ac_exec_ext in '' $ac_executable_extensions; do
11207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11210     break 2
11211   fi
11212 done
11213 done
11214 IFS=$as_save_IFS
11215
11216   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11217   ;;
11218 esac
11219 fi
11220 SED=$ac_cv_path_SED
11221 if test -n "$SED"; then
11222   { echo "$as_me:$LINENO: result: $SED" >&5
11223 echo "${ECHO_T}$SED" >&6; }
11224 else
11225   { echo "$as_me:$LINENO: result: no" >&5
11226 echo "${ECHO_T}no" >&6; }
11227 fi
11228
11229
11230 # Extract the first word of "perl", so it can be a program name with args.
11231 set dummy perl; ac_word=$2
11232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11234 if test "${ac_cv_path_PERL+set}" = set; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   case $PERL in
11238   [\\/]* | ?:[\\/]*)
11239   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11240   ;;
11241   *)
11242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11244 do
11245   IFS=$as_save_IFS
11246   test -z "$as_dir" && as_dir=.
11247   for ac_exec_ext in '' $ac_executable_extensions; do
11248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11251     break 2
11252   fi
11253 done
11254 done
11255 IFS=$as_save_IFS
11256
11257   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11258   ;;
11259 esac
11260 fi
11261 PERL=$ac_cv_path_PERL
11262 if test -n "$PERL"; then
11263   { echo "$as_me:$LINENO: result: $PERL" >&5
11264 echo "${ECHO_T}$PERL" >&6; }
11265 else
11266   { echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6; }
11268 fi
11269
11270
11271 # Extract the first word of "ldconfig", so it can be a program name with args.
11272 set dummy ldconfig; ac_word=$2
11273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11275 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278   case $LDCONFIG in
11279   [\\/]* | ?:[\\/]*)
11280   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11281   ;;
11282   *)
11283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11285 do
11286   IFS=$as_save_IFS
11287   test -z "$as_dir" && as_dir=.
11288   for ac_exec_ext in '' $ac_executable_extensions; do
11289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11290     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11292     break 2
11293   fi
11294 done
11295 done
11296 IFS=$as_save_IFS
11297
11298   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11299   ;;
11300 esac
11301 fi
11302 LDCONFIG=$ac_cv_path_LDCONFIG
11303 if test -n "$LDCONFIG"; then
11304   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11305 echo "${ECHO_T}$LDCONFIG" >&6; }
11306 else
11307   { echo "$as_me:$LINENO: result: no" >&5
11308 echo "${ECHO_T}no" >&6; }
11309 fi
11310
11311
11312 if test -n "$ac_tool_prefix"; then
11313   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11314 set dummy ${ac_tool_prefix}ar; ac_word=$2
11315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11317 if test "${ac_cv_prog_AR+set}" = set; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320   if test -n "$AR"; then
11321   ac_cv_prog_AR="$AR" # Let the user override the test.
11322 else
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11325 do
11326   IFS=$as_save_IFS
11327   test -z "$as_dir" && as_dir=.
11328   for ac_exec_ext in '' $ac_executable_extensions; do
11329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11330     ac_cv_prog_AR="${ac_tool_prefix}ar"
11331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11332     break 2
11333   fi
11334 done
11335 done
11336 IFS=$as_save_IFS
11337
11338 fi
11339 fi
11340 AR=$ac_cv_prog_AR
11341 if test -n "$AR"; then
11342   { echo "$as_me:$LINENO: result: $AR" >&5
11343 echo "${ECHO_T}$AR" >&6; }
11344 else
11345   { echo "$as_me:$LINENO: result: no" >&5
11346 echo "${ECHO_T}no" >&6; }
11347 fi
11348
11349
11350 fi
11351 if test -z "$ac_cv_prog_AR"; then
11352   ac_ct_AR=$AR
11353   # Extract the first word of "ar", so it can be a program name with args.
11354 set dummy ar; ac_word=$2
11355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11357 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360   if test -n "$ac_ct_AR"; then
11361   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11362 else
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11365 do
11366   IFS=$as_save_IFS
11367   test -z "$as_dir" && as_dir=.
11368   for ac_exec_ext in '' $ac_executable_extensions; do
11369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11370     ac_cv_prog_ac_ct_AR="ar"
11371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11372     break 2
11373   fi
11374 done
11375 done
11376 IFS=$as_save_IFS
11377
11378 fi
11379 fi
11380 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11381 if test -n "$ac_ct_AR"; then
11382   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11383 echo "${ECHO_T}$ac_ct_AR" >&6; }
11384 else
11385   { echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6; }
11387 fi
11388
11389   if test "x$ac_ct_AR" = x; then
11390     AR="ar"
11391   else
11392     case $cross_compiling:$ac_tool_warned in
11393 yes:)
11394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11395 whose name does not start with the host triplet.  If you think this
11396 configuration is useful to you, please write to autoconf@gnu.org." >&5
11397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11398 whose name does not start with the host triplet.  If you think this
11399 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11400 ac_tool_warned=yes ;;
11401 esac
11402     AR=$ac_ct_AR
11403   fi
11404 else
11405   AR="$ac_cv_prog_AR"
11406 fi
11407
11408 if test -n "$ac_tool_prefix"; then
11409   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11413 if test "${ac_cv_prog_RANLIB+set}" = set; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416   if test -n "$RANLIB"; then
11417   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11418 else
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11421 do
11422   IFS=$as_save_IFS
11423   test -z "$as_dir" && as_dir=.
11424   for ac_exec_ext in '' $ac_executable_extensions; do
11425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11426     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11428     break 2
11429   fi
11430 done
11431 done
11432 IFS=$as_save_IFS
11433
11434 fi
11435 fi
11436 RANLIB=$ac_cv_prog_RANLIB
11437 if test -n "$RANLIB"; then
11438   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11439 echo "${ECHO_T}$RANLIB" >&6; }
11440 else
11441   { echo "$as_me:$LINENO: result: no" >&5
11442 echo "${ECHO_T}no" >&6; }
11443 fi
11444
11445
11446 fi
11447 if test -z "$ac_cv_prog_RANLIB"; then
11448   ac_ct_RANLIB=$RANLIB
11449   # Extract the first word of "ranlib", so it can be a program name with args.
11450 set dummy ranlib; ac_word=$2
11451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11454   echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456   if test -n "$ac_ct_RANLIB"; then
11457   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11458 else
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11461 do
11462   IFS=$as_save_IFS
11463   test -z "$as_dir" && as_dir=.
11464   for ac_exec_ext in '' $ac_executable_extensions; do
11465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11466     ac_cv_prog_ac_ct_RANLIB="ranlib"
11467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11468     break 2
11469   fi
11470 done
11471 done
11472 IFS=$as_save_IFS
11473
11474 fi
11475 fi
11476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11477 if test -n "$ac_ct_RANLIB"; then
11478   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11479 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11480 else
11481   { echo "$as_me:$LINENO: result: no" >&5
11482 echo "${ECHO_T}no" >&6; }
11483 fi
11484
11485   if test "x$ac_ct_RANLIB" = x; then
11486     RANLIB=":"
11487   else
11488     case $cross_compiling:$ac_tool_warned in
11489 yes:)
11490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11491 whose name does not start with the host triplet.  If you think this
11492 configuration is useful to you, please write to autoconf@gnu.org." >&5
11493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11494 whose name does not start with the host triplet.  If you think this
11495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11496 ac_tool_warned=yes ;;
11497 esac
11498     RANLIB=$ac_ct_RANLIB
11499   fi
11500 else
11501   RANLIB="$ac_cv_prog_RANLIB"
11502 fi
11503
11504 if test -n "$ac_tool_prefix"; then
11505   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11506 set dummy ${ac_tool_prefix}strip; ac_word=$2
11507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11509 if test "${ac_cv_prog_STRIP+set}" = set; then
11510   echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512   if test -n "$STRIP"; then
11513   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11514 else
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11517 do
11518   IFS=$as_save_IFS
11519   test -z "$as_dir" && as_dir=.
11520   for ac_exec_ext in '' $ac_executable_extensions; do
11521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11524     break 2
11525   fi
11526 done
11527 done
11528 IFS=$as_save_IFS
11529
11530 fi
11531 fi
11532 STRIP=$ac_cv_prog_STRIP
11533 if test -n "$STRIP"; then
11534   { echo "$as_me:$LINENO: result: $STRIP" >&5
11535 echo "${ECHO_T}$STRIP" >&6; }
11536 else
11537   { echo "$as_me:$LINENO: result: no" >&5
11538 echo "${ECHO_T}no" >&6; }
11539 fi
11540
11541
11542 fi
11543 if test -z "$ac_cv_prog_STRIP"; then
11544   ac_ct_STRIP=$STRIP
11545   # Extract the first word of "strip", so it can be a program name with args.
11546 set dummy strip; ac_word=$2
11547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11550   echo $ECHO_N "(cached) $ECHO_C" >&6
11551 else
11552   if test -n "$ac_ct_STRIP"; then
11553   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11554 else
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11557 do
11558   IFS=$as_save_IFS
11559   test -z "$as_dir" && as_dir=.
11560   for ac_exec_ext in '' $ac_executable_extensions; do
11561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562     ac_cv_prog_ac_ct_STRIP="strip"
11563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564     break 2
11565   fi
11566 done
11567 done
11568 IFS=$as_save_IFS
11569
11570 fi
11571 fi
11572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11573 if test -n "$ac_ct_STRIP"; then
11574   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11575 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11576 else
11577   { echo "$as_me:$LINENO: result: no" >&5
11578 echo "${ECHO_T}no" >&6; }
11579 fi
11580
11581   if test "x$ac_ct_STRIP" = x; then
11582     STRIP=":"
11583   else
11584     case $cross_compiling:$ac_tool_warned in
11585 yes:)
11586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11587 whose name does not start with the host triplet.  If you think this
11588 configuration is useful to you, please write to autoconf@gnu.org." >&5
11589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11590 whose name does not start with the host triplet.  If you think this
11591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11592 ac_tool_warned=yes ;;
11593 esac
11594     STRIP=$ac_ct_STRIP
11595   fi
11596 else
11597   STRIP="$ac_cv_prog_STRIP"
11598 fi
11599
11600 # Extract the first word of "makeinfo", so it can be a program name with args.
11601 set dummy makeinfo; ac_word=$2
11602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11604 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   if test -n "$MAKEINFO"; then
11608   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11609 else
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11612 do
11613   IFS=$as_save_IFS
11614   test -z "$as_dir" && as_dir=.
11615   for ac_exec_ext in '' $ac_executable_extensions; do
11616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11617     ac_cv_prog_MAKEINFO="makeinfo"
11618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11619     break 2
11620   fi
11621 done
11622 done
11623 IFS=$as_save_IFS
11624
11625 fi
11626 fi
11627 MAKEINFO=$ac_cv_prog_MAKEINFO
11628 if test -n "$MAKEINFO"; then
11629   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11630 echo "${ECHO_T}$MAKEINFO" >&6; }
11631 else
11632   { echo "$as_me:$LINENO: result: no" >&5
11633 echo "${ECHO_T}no" >&6; }
11634 fi
11635
11636
11637 if test "_$MAKEINFO" = "_"; then
11638     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11639 else
11640     case "$MAKEINFO" in
11641       */missing.*)
11642         { echo "$as_me:$LINENO: WARNING:
11643 *** Makeinfo is missing. Info documentation will not be built." >&5
11644 echo "$as_me: WARNING:
11645 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11646         ;;
11647       *)
11648         ;;
11649     esac
11650 fi
11651
11652 # Find a good install program.  We prefer a C program (faster),
11653 # so one script is as good as another.  But avoid the broken or
11654 # incompatible versions:
11655 # SysV /etc/install, /usr/sbin/install
11656 # SunOS /usr/etc/install
11657 # IRIX /sbin/install
11658 # AIX /bin/install
11659 # AmigaOS /C/install, which installs bootblocks on floppy discs
11660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11663 # OS/2's system install, which has a completely different semantic
11664 # ./install, which can be erroneously created by make from ./install.sh.
11665 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11667 if test -z "$INSTALL"; then
11668 if test "${ac_cv_path_install+set}" = set; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674   IFS=$as_save_IFS
11675   test -z "$as_dir" && as_dir=.
11676   # Account for people who put trailing slashes in PATH elements.
11677 case $as_dir/ in
11678   ./ | .// | /cC/* | \
11679   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11680   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11681   /usr/ucb/* ) ;;
11682   *)
11683     # OSF1 and SCO ODT 3.0 have their own names for install.
11684     # Don't use installbsd from OSF since it installs stuff as root
11685     # by default.
11686     for ac_prog in ginstall scoinst install; do
11687       for ac_exec_ext in '' $ac_executable_extensions; do
11688         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11689           if test $ac_prog = install &&
11690             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11691             # AIX install.  It has an incompatible calling convention.
11692             :
11693           elif test $ac_prog = install &&
11694             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11695             # program-specific install script used by HP pwplus--don't use.
11696             :
11697           else
11698             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11699             break 3
11700           fi
11701         fi
11702       done
11703     done
11704     ;;
11705 esac
11706 done
11707 IFS=$as_save_IFS
11708
11709
11710 fi
11711   if test "${ac_cv_path_install+set}" = set; then
11712     INSTALL=$ac_cv_path_install
11713   else
11714     # As a last resort, use the slow shell script.  Don't cache a
11715     # value for INSTALL within a source directory, because that will
11716     # break other packages using the cache if that directory is
11717     # removed, or if the value is a relative name.
11718     INSTALL=$ac_install_sh
11719   fi
11720 fi
11721 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11722 echo "${ECHO_T}$INSTALL" >&6; }
11723
11724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11725 # It thinks the first close brace ends the variable substitution.
11726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11727
11728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11729
11730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11731
11732 # See if we need a separate native compiler.
11733 if test $cross_compiling = no; then
11734   BUILD_CC="$CC"
11735
11736 else
11737   for ac_prog in gcc cc
11738 do
11739   # Extract the first word of "$ac_prog", so it can be a program name with args.
11740 set dummy $ac_prog; ac_word=$2
11741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11743 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   if test -n "$BUILD_CC"; then
11747   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11748 else
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11751 do
11752   IFS=$as_save_IFS
11753   test -z "$as_dir" && as_dir=.
11754   for ac_exec_ext in '' $ac_executable_extensions; do
11755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756     ac_cv_prog_BUILD_CC="$ac_prog"
11757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11758     break 2
11759   fi
11760 done
11761 done
11762 IFS=$as_save_IFS
11763
11764 fi
11765 fi
11766 BUILD_CC=$ac_cv_prog_BUILD_CC
11767 if test -n "$BUILD_CC"; then
11768   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11769 echo "${ECHO_T}$BUILD_CC" >&6; }
11770 else
11771   { echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6; }
11773 fi
11774
11775
11776   test -n "$BUILD_CC" && break
11777 done
11778
11779 fi
11780
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 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
11816 do
11817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 fi
11824 ac_res=`eval echo '${'$as_ac_Header'}'`
11825                { echo "$as_me:$LINENO: result: $ac_res" >&5
11826 echo "${ECHO_T}$ac_res" >&6; }
11827 else
11828   # Is the header compilable?
11829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11831 cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h.  */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h.  */
11837 $ac_includes_default
11838 #include <$ac_header>
11839 _ACEOF
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844   *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847   (eval "$ac_compile") 2>conftest.er1
11848   ac_status=$?
11849   grep -v '^ *+' conftest.er1 >conftest.err
11850   rm -f conftest.er1
11851   cat conftest.err >&5
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); } && {
11854          test -z "$ac_c_werror_flag" ||
11855          test ! -s conftest.err
11856        } && test -s conftest.$ac_objext; then
11857   ac_header_compiler=yes
11858 else
11859   echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862         ac_header_compiler=no
11863 fi
11864
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11868
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 #include <$ac_header>
11879 _ACEOF
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } >/dev/null && {
11893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894          test ! -s conftest.err
11895        }; then
11896   ac_header_preproc=yes
11897 else
11898   echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901   ac_header_preproc=no
11902 fi
11903
11904 rm -f conftest.err conftest.$ac_ext
11905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906 echo "${ECHO_T}$ac_header_preproc" >&6; }
11907
11908 # So?  What about this header?
11909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11910   yes:no: )
11911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915     ac_header_preproc=yes
11916     ;;
11917   no:yes:* )
11918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11930
11931     ;;
11932 esac
11933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   eval "$as_ac_Header=\$ac_header_preproc"
11939 fi
11940 ac_res=`eval echo '${'$as_ac_Header'}'`
11941                { echo "$as_me:$LINENO: result: $ac_res" >&5
11942 echo "${ECHO_T}$ac_res" >&6; }
11943
11944 fi
11945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11946   cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11948 _ACEOF
11949
11950 fi
11951
11952 done
11953
11954
11955
11956 for ac_header in sys/disk.h sys/mount.h
11957 do
11958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962   echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964   cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970
11971 #if HAVE_SYS_QUEUE_H
11972 #include <sys/queue.h>
11973 #endif
11974
11975
11976 #include <$ac_header>
11977 _ACEOF
11978 rm -f conftest.$ac_objext
11979 if { (ac_try="$ac_compile"
11980 case "(($ac_try" in
11981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982   *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985   (eval "$ac_compile") 2>conftest.er1
11986   ac_status=$?
11987   grep -v '^ *+' conftest.er1 >conftest.err
11988   rm -f conftest.er1
11989   cat conftest.err >&5
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); } && {
11992          test -z "$ac_c_werror_flag" ||
11993          test ! -s conftest.err
11994        } && test -s conftest.$ac_objext; then
11995   eval "$as_ac_Header=yes"
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000         eval "$as_ac_Header=no"
12001 fi
12002
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 fi
12005 ac_res=`eval echo '${'$as_ac_Header'}'`
12006                { echo "$as_me:$LINENO: result: $ac_res" >&5
12007 echo "${ECHO_T}$ac_res" >&6; }
12008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009   cat >>confdefs.h <<_ACEOF
12010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12011 _ACEOF
12012
12013 fi
12014
12015 done
12016
12017
12018 for ac_header in net/if.h
12019 do
12020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h.  */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h.  */
12032
12033 #if HAVE_SYS_TYPES_H
12034 #include <sys/types.h>
12035 #endif
12036 #if HAVE_SYS_SOCKET
12037 #include <sys/socket.h>
12038 #endif
12039
12040
12041 #include <$ac_header>
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (ac_try="$ac_compile"
12045 case "(($ac_try" in
12046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047   *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050   (eval "$ac_compile") 2>conftest.er1
12051   ac_status=$?
12052   grep -v '^ *+' conftest.er1 >conftest.err
12053   rm -f conftest.er1
12054   cat conftest.err >&5
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } && {
12057          test -z "$ac_c_werror_flag" ||
12058          test ! -s conftest.err
12059        } && test -s conftest.$ac_objext; then
12060   eval "$as_ac_Header=yes"
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065         eval "$as_ac_Header=no"
12066 fi
12067
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069 fi
12070 ac_res=`eval echo '${'$as_ac_Header'}'`
12071                { echo "$as_me:$LINENO: result: $ac_res" >&5
12072 echo "${ECHO_T}$ac_res" >&6; }
12073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12074   cat >>confdefs.h <<_ACEOF
12075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12076 _ACEOF
12077
12078 fi
12079
12080 done
12081
12082
12083 for ac_func in vprintf
12084 do
12085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h.  */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h.  */
12097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12099 #define $ac_func innocuous_$ac_func
12100
12101 /* System header to define __stub macros and hopefully few prototypes,
12102     which can conflict with char $ac_func (); below.
12103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104     <limits.h> exists even on freestanding compilers.  */
12105
12106 #ifdef __STDC__
12107 # include <limits.h>
12108 #else
12109 # include <assert.h>
12110 #endif
12111
12112 #undef $ac_func
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115    Use char because int might match the return type of a GCC
12116    builtin and then its argument prototype would still apply.  */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char $ac_func ();
12121 /* The GNU C library defines this for functions which it implements
12122     to always fail with ENOSYS.  Some functions are actually named
12123     something starting with __ and the normal name is an alias.  */
12124 #if defined __stub_$ac_func || defined __stub___$ac_func
12125 choke me
12126 #endif
12127
12128 int
12129 main ()
12130 {
12131 return $ac_func ();
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_link") 2>conftest.er1
12144   ac_status=$?
12145   grep -v '^ *+' conftest.er1 >conftest.err
12146   rm -f conftest.er1
12147   cat conftest.err >&5
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } && {
12150          test -z "$ac_c_werror_flag" ||
12151          test ! -s conftest.err
12152        } && test -s conftest$ac_exeext &&
12153        $as_test_x conftest$ac_exeext; then
12154   eval "$as_ac_var=yes"
12155 else
12156   echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12158
12159         eval "$as_ac_var=no"
12160 fi
12161
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163       conftest$ac_exeext conftest.$ac_ext
12164 fi
12165 ac_res=`eval echo '${'$as_ac_var'}'`
12166                { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12168 if test `eval echo '${'$as_ac_var'}'` = yes; then
12169   cat >>confdefs.h <<_ACEOF
12170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12171 _ACEOF
12172
12173 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12174 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12175 if test "${ac_cv_func__doprnt+set}" = set; then
12176   echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178   cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h.  */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h.  */
12184 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12186 #define _doprnt innocuous__doprnt
12187
12188 /* System header to define __stub macros and hopefully few prototypes,
12189     which can conflict with char _doprnt (); below.
12190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12191     <limits.h> exists even on freestanding compilers.  */
12192
12193 #ifdef __STDC__
12194 # include <limits.h>
12195 #else
12196 # include <assert.h>
12197 #endif
12198
12199 #undef _doprnt
12200
12201 /* Override any GCC internal prototype to avoid an error.
12202    Use char because int might match the return type of a GCC
12203    builtin and then its argument prototype would still apply.  */
12204 #ifdef __cplusplus
12205 extern "C"
12206 #endif
12207 char _doprnt ();
12208 /* The GNU C library defines this for functions which it implements
12209     to always fail with ENOSYS.  Some functions are actually named
12210     something starting with __ and the normal name is an alias.  */
12211 #if defined __stub__doprnt || defined __stub____doprnt
12212 choke me
12213 #endif
12214
12215 int
12216 main ()
12217 {
12218 return _doprnt ();
12219   ;
12220   return 0;
12221 }
12222 _ACEOF
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227   *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230   (eval "$ac_link") 2>conftest.er1
12231   ac_status=$?
12232   grep -v '^ *+' conftest.er1 >conftest.err
12233   rm -f conftest.er1
12234   cat conftest.err >&5
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); } && {
12237          test -z "$ac_c_werror_flag" ||
12238          test ! -s conftest.err
12239        } && test -s conftest$ac_exeext &&
12240        $as_test_x conftest$ac_exeext; then
12241   ac_cv_func__doprnt=yes
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246         ac_cv_func__doprnt=no
12247 fi
12248
12249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12250       conftest$ac_exeext conftest.$ac_ext
12251 fi
12252 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12253 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12254 if test $ac_cv_func__doprnt = yes; then
12255
12256 cat >>confdefs.h <<\_ACEOF
12257 #define HAVE_DOPRNT 1
12258 _ACEOF
12259
12260 fi
12261
12262 fi
12263 done
12264
12265
12266 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12267 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12268 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h.  */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h.  */
12277 #include <dirent.h>
12278
12279 int
12280 main ()
12281 {
12282 static struct dirent ac_aggr;
12283 if (ac_aggr.d_reclen)
12284 return 0;
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_compile") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } && {
12303          test -z "$ac_c_werror_flag" ||
12304          test ! -s conftest.err
12305        } && test -s conftest.$ac_objext; then
12306   ac_cv_member_struct_dirent_d_reclen=yes
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311         cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h.  */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h.  */
12317 #include <dirent.h>
12318
12319 int
12320 main ()
12321 {
12322 static struct dirent ac_aggr;
12323 if (sizeof ac_aggr.d_reclen)
12324 return 0;
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (ac_try="$ac_compile"
12331 case "(($ac_try" in
12332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333   *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336   (eval "$ac_compile") 2>conftest.er1
12337   ac_status=$?
12338   grep -v '^ *+' conftest.er1 >conftest.err
12339   rm -f conftest.er1
12340   cat conftest.err >&5
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); } && {
12343          test -z "$ac_c_werror_flag" ||
12344          test ! -s conftest.err
12345        } && test -s conftest.$ac_objext; then
12346   ac_cv_member_struct_dirent_d_reclen=yes
12347 else
12348   echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12350
12351         ac_cv_member_struct_dirent_d_reclen=no
12352 fi
12353
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12355 fi
12356
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 fi
12359 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12360 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12361 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12362   cat >>confdefs.h <<\_ACEOF
12363 #define HAVE_RECLEN_DIRENT 1
12364 _ACEOF
12365
12366 fi
12367
12368 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12369 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12370 if test "${ac_cv_type_ssize_t+set}" = set; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   cat >conftest.$ac_ext <<_ACEOF
12374 /* confdefs.h.  */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h.  */
12379 #include <sys/types.h>
12380
12381 typedef ssize_t ac__type_new_;
12382 int
12383 main ()
12384 {
12385 if ((ac__type_new_ *) 0)
12386   return 0;
12387 if (sizeof (ac__type_new_))
12388   return 0;
12389   ;
12390   return 0;
12391 }
12392 _ACEOF
12393 rm -f conftest.$ac_objext
12394 if { (ac_try="$ac_compile"
12395 case "(($ac_try" in
12396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397   *) ac_try_echo=$ac_try;;
12398 esac
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400   (eval "$ac_compile") 2>conftest.er1
12401   ac_status=$?
12402   grep -v '^ *+' conftest.er1 >conftest.err
12403   rm -f conftest.er1
12404   cat conftest.err >&5
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); } && {
12407          test -z "$ac_c_werror_flag" ||
12408          test ! -s conftest.err
12409        } && test -s conftest.$ac_objext; then
12410   ac_cv_type_ssize_t=yes
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415         ac_cv_type_ssize_t=no
12416 fi
12417
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 fi
12420 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12421 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12422 if test $ac_cv_type_ssize_t = yes; then
12423   cat >>confdefs.h <<\_ACEOF
12424 #define HAVE_TYPE_SSIZE_T 1
12425 _ACEOF
12426
12427 fi
12428
12429 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12430 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12431 if test "${ac_cv_have_decl_llseek+set}" = set; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440 #include <unistd.h>
12441
12442 int
12443 main ()
12444 {
12445 #ifndef llseek
12446   (void) llseek;
12447 #endif
12448
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext
12454 if { (ac_try="$ac_compile"
12455 case "(($ac_try" in
12456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457   *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460   (eval "$ac_compile") 2>conftest.er1
12461   ac_status=$?
12462   grep -v '^ *+' conftest.er1 >conftest.err
12463   rm -f conftest.er1
12464   cat conftest.err >&5
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); } && {
12467          test -z "$ac_c_werror_flag" ||
12468          test ! -s conftest.err
12469        } && test -s conftest.$ac_objext; then
12470   ac_cv_have_decl_llseek=yes
12471 else
12472   echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12474
12475         ac_cv_have_decl_llseek=no
12476 fi
12477
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 fi
12480 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12481 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12482 if test $ac_cv_have_decl_llseek = yes; then
12483   cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_LLSEEK_PROTOTYPE 1
12485 _ACEOF
12486
12487 fi
12488
12489 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12490 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12491 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   cat >conftest.$ac_ext <<_ACEOF
12495 /* confdefs.h.  */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h.  */
12500 #define _LARGEFILE_SOURCE
12501                  #define _LARGEFILE64_SOURCE
12502                  #include <unistd.h>
12503
12504 int
12505 main ()
12506 {
12507 #ifndef lseek64
12508   (void) lseek64;
12509 #endif
12510
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext
12516 if { (ac_try="$ac_compile"
12517 case "(($ac_try" in
12518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519   *) ac_try_echo=$ac_try;;
12520 esac
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522   (eval "$ac_compile") 2>conftest.er1
12523   ac_status=$?
12524   grep -v '^ *+' conftest.er1 >conftest.err
12525   rm -f conftest.er1
12526   cat conftest.err >&5
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } && {
12529          test -z "$ac_c_werror_flag" ||
12530          test ! -s conftest.err
12531        } && test -s conftest.$ac_objext; then
12532   ac_cv_have_decl_lseek64=yes
12533 else
12534   echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12536
12537         ac_cv_have_decl_lseek64=no
12538 fi
12539
12540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12541 fi
12542 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12543 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12544 if test $ac_cv_have_decl_lseek64 = yes; then
12545   cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_LSEEK64_PROTOTYPE 1
12547 _ACEOF
12548
12549 fi
12550
12551 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12552   # if cross-compiling, with no cached values, just assume something common.
12553   ac_cv_sizeof_short=2
12554   ac_cv_sizeof_int=4
12555   ac_cv_sizeof_long=4
12556   ac_cv_sizeof_long_long=8
12557   { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12558 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12559 fi
12560 { echo "$as_me:$LINENO: checking for short" >&5
12561 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12562 if test "${ac_cv_type_short+set}" = set; then
12563   echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565   cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h.  */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h.  */
12571 $ac_includes_default
12572 typedef short ac__type_new_;
12573 int
12574 main ()
12575 {
12576 if ((ac__type_new_ *) 0)
12577   return 0;
12578 if (sizeof (ac__type_new_))
12579   return 0;
12580   ;
12581   return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext
12585 if { (ac_try="$ac_compile"
12586 case "(($ac_try" in
12587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588   *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591   (eval "$ac_compile") 2>conftest.er1
12592   ac_status=$?
12593   grep -v '^ *+' conftest.er1 >conftest.err
12594   rm -f conftest.er1
12595   cat conftest.err >&5
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); } && {
12598          test -z "$ac_c_werror_flag" ||
12599          test ! -s conftest.err
12600        } && test -s conftest.$ac_objext; then
12601   ac_cv_type_short=yes
12602 else
12603   echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12605
12606         ac_cv_type_short=no
12607 fi
12608
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610 fi
12611 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12612 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12613
12614 # The cast to long int works around a bug in the HP C Compiler
12615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12617 # This bug is HP SR number 8606223364.
12618 { echo "$as_me:$LINENO: checking size of short" >&5
12619 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12620 if test "${ac_cv_sizeof_short+set}" = set; then
12621   echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623   if test "$cross_compiling" = yes; then
12624   # Depending upon the size, compute the lo and hi bounds.
12625 cat >conftest.$ac_ext <<_ACEOF
12626 /* confdefs.h.  */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h.  */
12631 $ac_includes_default
12632    typedef short ac__type_sizeof_;
12633 int
12634 main ()
12635 {
12636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12637 test_array [0] = 0
12638
12639   ;
12640   return 0;
12641 }
12642 _ACEOF
12643 rm -f conftest.$ac_objext
12644 if { (ac_try="$ac_compile"
12645 case "(($ac_try" in
12646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647   *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650   (eval "$ac_compile") 2>conftest.er1
12651   ac_status=$?
12652   grep -v '^ *+' conftest.er1 >conftest.err
12653   rm -f conftest.er1
12654   cat conftest.err >&5
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } && {
12657          test -z "$ac_c_werror_flag" ||
12658          test ! -s conftest.err
12659        } && test -s conftest.$ac_objext; then
12660   ac_lo=0 ac_mid=0
12661   while :; do
12662     cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h.  */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h.  */
12668 $ac_includes_default
12669    typedef short ac__type_sizeof_;
12670 int
12671 main ()
12672 {
12673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12674 test_array [0] = 0
12675
12676   ;
12677   return 0;
12678 }
12679 _ACEOF
12680 rm -f conftest.$ac_objext
12681 if { (ac_try="$ac_compile"
12682 case "(($ac_try" in
12683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684   *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687   (eval "$ac_compile") 2>conftest.er1
12688   ac_status=$?
12689   grep -v '^ *+' conftest.er1 >conftest.err
12690   rm -f conftest.er1
12691   cat conftest.err >&5
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } && {
12694          test -z "$ac_c_werror_flag" ||
12695          test ! -s conftest.err
12696        } && test -s conftest.$ac_objext; then
12697   ac_hi=$ac_mid; break
12698 else
12699   echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12701
12702         ac_lo=`expr $ac_mid + 1`
12703                         if test $ac_lo -le $ac_mid; then
12704                           ac_lo= ac_hi=
12705                           break
12706                         fi
12707                         ac_mid=`expr 2 '*' $ac_mid + 1`
12708 fi
12709
12710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12711   done
12712 else
12713   echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12715
12716         cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h.  */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h.  */
12722 $ac_includes_default
12723    typedef short ac__type_sizeof_;
12724 int
12725 main ()
12726 {
12727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12728 test_array [0] = 0
12729
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 rm -f conftest.$ac_objext
12735 if { (ac_try="$ac_compile"
12736 case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741   (eval "$ac_compile") 2>conftest.er1
12742   ac_status=$?
12743   grep -v '^ *+' conftest.er1 >conftest.err
12744   rm -f conftest.er1
12745   cat conftest.err >&5
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); } && {
12748          test -z "$ac_c_werror_flag" ||
12749          test ! -s conftest.err
12750        } && test -s conftest.$ac_objext; then
12751   ac_hi=-1 ac_mid=-1
12752   while :; do
12753     cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h.  */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h.  */
12759 $ac_includes_default
12760    typedef short ac__type_sizeof_;
12761 int
12762 main ()
12763 {
12764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12765 test_array [0] = 0
12766
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 rm -f conftest.$ac_objext
12772 if { (ac_try="$ac_compile"
12773 case "(($ac_try" in
12774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775   *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778   (eval "$ac_compile") 2>conftest.er1
12779   ac_status=$?
12780   grep -v '^ *+' conftest.er1 >conftest.err
12781   rm -f conftest.er1
12782   cat conftest.err >&5
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); } && {
12785          test -z "$ac_c_werror_flag" ||
12786          test ! -s conftest.err
12787        } && test -s conftest.$ac_objext; then
12788   ac_lo=$ac_mid; break
12789 else
12790   echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12792
12793         ac_hi=`expr '(' $ac_mid ')' - 1`
12794                         if test $ac_mid -le $ac_hi; then
12795                           ac_lo= ac_hi=
12796                           break
12797                         fi
12798                         ac_mid=`expr 2 '*' $ac_mid`
12799 fi
12800
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802   done
12803 else
12804   echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12806
12807         ac_lo= ac_hi=
12808 fi
12809
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811 fi
12812
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 # Binary search between lo and hi bounds.
12815 while test "x$ac_lo" != "x$ac_hi"; do
12816   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12817   cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h.  */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h.  */
12823 $ac_includes_default
12824    typedef short ac__type_sizeof_;
12825 int
12826 main ()
12827 {
12828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12829 test_array [0] = 0
12830
12831   ;
12832   return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext
12836 if { (ac_try="$ac_compile"
12837 case "(($ac_try" in
12838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839   *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842   (eval "$ac_compile") 2>conftest.er1
12843   ac_status=$?
12844   grep -v '^ *+' conftest.er1 >conftest.err
12845   rm -f conftest.er1
12846   cat conftest.err >&5
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } && {
12849          test -z "$ac_c_werror_flag" ||
12850          test ! -s conftest.err
12851        } && test -s conftest.$ac_objext; then
12852   ac_hi=$ac_mid
12853 else
12854   echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857         ac_lo=`expr '(' $ac_mid ')' + 1`
12858 fi
12859
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 done
12862 case $ac_lo in
12863 ?*) ac_cv_sizeof_short=$ac_lo;;
12864 '') if test "$ac_cv_type_short" = yes; then
12865      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12866 See \`config.log' for more details." >&5
12867 echo "$as_me: error: cannot compute sizeof (short)
12868 See \`config.log' for more details." >&2;}
12869    { (exit 77); exit 77; }; }
12870    else
12871      ac_cv_sizeof_short=0
12872    fi ;;
12873 esac
12874 else
12875   cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881 $ac_includes_default
12882    typedef short ac__type_sizeof_;
12883 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12884 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12885 #include <stdio.h>
12886 #include <stdlib.h>
12887 int
12888 main ()
12889 {
12890
12891   FILE *f = fopen ("conftest.val", "w");
12892   if (! f)
12893     return 1;
12894   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12895     {
12896       long int i = longval ();
12897       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12898         return 1;
12899       fprintf (f, "%ld\n", i);
12900     }
12901   else
12902     {
12903       unsigned long int i = ulongval ();
12904       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12905         return 1;
12906       fprintf (f, "%lu\n", i);
12907     }
12908   return ferror (f) || fclose (f) != 0;
12909
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 rm -f conftest$ac_exeext
12915 if { (ac_try="$ac_link"
12916 case "(($ac_try" in
12917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918   *) ac_try_echo=$ac_try;;
12919 esac
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921   (eval "$ac_link") 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12925   { (case "(($ac_try" in
12926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927   *) ac_try_echo=$ac_try;;
12928 esac
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930   (eval "$ac_try") 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; }; then
12934   ac_cv_sizeof_short=`cat conftest.val`
12935 else
12936   echo "$as_me: program exited with status $ac_status" >&5
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12939
12940 ( exit $ac_status )
12941 if test "$ac_cv_type_short" = yes; then
12942      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12943 See \`config.log' for more details." >&5
12944 echo "$as_me: error: cannot compute sizeof (short)
12945 See \`config.log' for more details." >&2;}
12946    { (exit 77); exit 77; }; }
12947    else
12948      ac_cv_sizeof_short=0
12949    fi
12950 fi
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12952 fi
12953 rm -f conftest.val
12954 fi
12955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12956 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12957
12958
12959
12960 cat >>confdefs.h <<_ACEOF
12961 #define SIZEOF_SHORT $ac_cv_sizeof_short
12962 _ACEOF
12963
12964
12965 { echo "$as_me:$LINENO: checking for int" >&5
12966 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12967 if test "${ac_cv_type_int+set}" = set; then
12968   echo $ECHO_N "(cached) $ECHO_C" >&6
12969 else
12970   cat >conftest.$ac_ext <<_ACEOF
12971 /* confdefs.h.  */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h.  */
12976 $ac_includes_default
12977 typedef int ac__type_new_;
12978 int
12979 main ()
12980 {
12981 if ((ac__type_new_ *) 0)
12982   return 0;
12983 if (sizeof (ac__type_new_))
12984   return 0;
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 rm -f conftest.$ac_objext
12990 if { (ac_try="$ac_compile"
12991 case "(($ac_try" in
12992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993   *) ac_try_echo=$ac_try;;
12994 esac
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996   (eval "$ac_compile") 2>conftest.er1
12997   ac_status=$?
12998   grep -v '^ *+' conftest.er1 >conftest.err
12999   rm -f conftest.er1
13000   cat conftest.err >&5
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); } && {
13003          test -z "$ac_c_werror_flag" ||
13004          test ! -s conftest.err
13005        } && test -s conftest.$ac_objext; then
13006   ac_cv_type_int=yes
13007 else
13008   echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011         ac_cv_type_int=no
13012 fi
13013
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015 fi
13016 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13017 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13018
13019 # The cast to long int works around a bug in the HP C Compiler
13020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13021 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13022 # This bug is HP SR number 8606223364.
13023 { echo "$as_me:$LINENO: checking size of int" >&5
13024 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13025 if test "${ac_cv_sizeof_int+set}" = set; then
13026   echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028   if test "$cross_compiling" = yes; then
13029   # Depending upon the size, compute the lo and hi bounds.
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h.  */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h.  */
13036 $ac_includes_default
13037    typedef int ac__type_sizeof_;
13038 int
13039 main ()
13040 {
13041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13042 test_array [0] = 0
13043
13044   ;
13045   return 0;
13046 }
13047 _ACEOF
13048 rm -f conftest.$ac_objext
13049 if { (ac_try="$ac_compile"
13050 case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055   (eval "$ac_compile") 2>conftest.er1
13056   ac_status=$?
13057   grep -v '^ *+' conftest.er1 >conftest.err
13058   rm -f conftest.er1
13059   cat conftest.err >&5
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); } && {
13062          test -z "$ac_c_werror_flag" ||
13063          test ! -s conftest.err
13064        } && test -s conftest.$ac_objext; then
13065   ac_lo=0 ac_mid=0
13066   while :; do
13067     cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h.  */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h.  */
13073 $ac_includes_default
13074    typedef int ac__type_sizeof_;
13075 int
13076 main ()
13077 {
13078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13079 test_array [0] = 0
13080
13081   ;
13082   return 0;
13083 }
13084 _ACEOF
13085 rm -f conftest.$ac_objext
13086 if { (ac_try="$ac_compile"
13087 case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_compile") 2>conftest.er1
13093   ac_status=$?
13094   grep -v '^ *+' conftest.er1 >conftest.err
13095   rm -f conftest.er1
13096   cat conftest.err >&5
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); } && {
13099          test -z "$ac_c_werror_flag" ||
13100          test ! -s conftest.err
13101        } && test -s conftest.$ac_objext; then
13102   ac_hi=$ac_mid; break
13103 else
13104   echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13106
13107         ac_lo=`expr $ac_mid + 1`
13108                         if test $ac_lo -le $ac_mid; then
13109                           ac_lo= ac_hi=
13110                           break
13111                         fi
13112                         ac_mid=`expr 2 '*' $ac_mid + 1`
13113 fi
13114
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13116   done
13117 else
13118   echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121         cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127 $ac_includes_default
13128    typedef int ac__type_sizeof_;
13129 int
13130 main ()
13131 {
13132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13133 test_array [0] = 0
13134
13135   ;
13136   return 0;
13137 }
13138 _ACEOF
13139 rm -f conftest.$ac_objext
13140 if { (ac_try="$ac_compile"
13141 case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146   (eval "$ac_compile") 2>conftest.er1
13147   ac_status=$?
13148   grep -v '^ *+' conftest.er1 >conftest.err
13149   rm -f conftest.er1
13150   cat conftest.err >&5
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); } && {
13153          test -z "$ac_c_werror_flag" ||
13154          test ! -s conftest.err
13155        } && test -s conftest.$ac_objext; then
13156   ac_hi=-1 ac_mid=-1
13157   while :; do
13158     cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h.  */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h.  */
13164 $ac_includes_default
13165    typedef int ac__type_sizeof_;
13166 int
13167 main ()
13168 {
13169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13170 test_array [0] = 0
13171
13172   ;
13173   return 0;
13174 }
13175 _ACEOF
13176 rm -f conftest.$ac_objext
13177 if { (ac_try="$ac_compile"
13178 case "(($ac_try" in
13179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180   *) ac_try_echo=$ac_try;;
13181 esac
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183   (eval "$ac_compile") 2>conftest.er1
13184   ac_status=$?
13185   grep -v '^ *+' conftest.er1 >conftest.err
13186   rm -f conftest.er1
13187   cat conftest.err >&5
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); } && {
13190          test -z "$ac_c_werror_flag" ||
13191          test ! -s conftest.err
13192        } && test -s conftest.$ac_objext; then
13193   ac_lo=$ac_mid; break
13194 else
13195   echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13197
13198         ac_hi=`expr '(' $ac_mid ')' - 1`
13199                         if test $ac_mid -le $ac_hi; then
13200                           ac_lo= ac_hi=
13201                           break
13202                         fi
13203                         ac_mid=`expr 2 '*' $ac_mid`
13204 fi
13205
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207   done
13208 else
13209   echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212         ac_lo= ac_hi=
13213 fi
13214
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 fi
13217
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 # Binary search between lo and hi bounds.
13220 while test "x$ac_lo" != "x$ac_hi"; do
13221   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13222   cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h.  */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h.  */
13228 $ac_includes_default
13229    typedef int ac__type_sizeof_;
13230 int
13231 main ()
13232 {
13233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13234 test_array [0] = 0
13235
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest.$ac_objext
13241 if { (ac_try="$ac_compile"
13242 case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247   (eval "$ac_compile") 2>conftest.er1
13248   ac_status=$?
13249   grep -v '^ *+' conftest.er1 >conftest.err
13250   rm -f conftest.er1
13251   cat conftest.err >&5
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } && {
13254          test -z "$ac_c_werror_flag" ||
13255          test ! -s conftest.err
13256        } && test -s conftest.$ac_objext; then
13257   ac_hi=$ac_mid
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262         ac_lo=`expr '(' $ac_mid ')' + 1`
13263 fi
13264
13265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13266 done
13267 case $ac_lo in
13268 ?*) ac_cv_sizeof_int=$ac_lo;;
13269 '') if test "$ac_cv_type_int" = yes; then
13270      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13271 See \`config.log' for more details." >&5
13272 echo "$as_me: error: cannot compute sizeof (int)
13273 See \`config.log' for more details." >&2;}
13274    { (exit 77); exit 77; }; }
13275    else
13276      ac_cv_sizeof_int=0
13277    fi ;;
13278 esac
13279 else
13280   cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286 $ac_includes_default
13287    typedef int ac__type_sizeof_;
13288 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13289 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13290 #include <stdio.h>
13291 #include <stdlib.h>
13292 int
13293 main ()
13294 {
13295
13296   FILE *f = fopen ("conftest.val", "w");
13297   if (! f)
13298     return 1;
13299   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13300     {
13301       long int i = longval ();
13302       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13303         return 1;
13304       fprintf (f, "%ld\n", i);
13305     }
13306   else
13307     {
13308       unsigned long int i = ulongval ();
13309       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13310         return 1;
13311       fprintf (f, "%lu\n", i);
13312     }
13313   return ferror (f) || fclose (f) != 0;
13314
13315   ;
13316   return 0;
13317 }
13318 _ACEOF
13319 rm -f conftest$ac_exeext
13320 if { (ac_try="$ac_link"
13321 case "(($ac_try" in
13322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323   *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326   (eval "$ac_link") 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13330   { (case "(($ac_try" in
13331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332   *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335   (eval "$ac_try") 2>&5
13336   ac_status=$?
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); }; }; then
13339   ac_cv_sizeof_int=`cat conftest.val`
13340 else
13341   echo "$as_me: program exited with status $ac_status" >&5
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345 ( exit $ac_status )
13346 if test "$ac_cv_type_int" = yes; then
13347      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13348 See \`config.log' for more details." >&5
13349 echo "$as_me: error: cannot compute sizeof (int)
13350 See \`config.log' for more details." >&2;}
13351    { (exit 77); exit 77; }; }
13352    else
13353      ac_cv_sizeof_int=0
13354    fi
13355 fi
13356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13357 fi
13358 rm -f conftest.val
13359 fi
13360 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13361 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13362
13363
13364
13365 cat >>confdefs.h <<_ACEOF
13366 #define SIZEOF_INT $ac_cv_sizeof_int
13367 _ACEOF
13368
13369
13370 { echo "$as_me:$LINENO: checking for long" >&5
13371 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13372 if test "${ac_cv_type_long+set}" = set; then
13373   echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375   cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h.  */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h.  */
13381 $ac_includes_default
13382 typedef long ac__type_new_;
13383 int
13384 main ()
13385 {
13386 if ((ac__type_new_ *) 0)
13387   return 0;
13388 if (sizeof (ac__type_new_))
13389   return 0;
13390   ;
13391   return 0;
13392 }
13393 _ACEOF
13394 rm -f conftest.$ac_objext
13395 if { (ac_try="$ac_compile"
13396 case "(($ac_try" in
13397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398   *) ac_try_echo=$ac_try;;
13399 esac
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401   (eval "$ac_compile") 2>conftest.er1
13402   ac_status=$?
13403   grep -v '^ *+' conftest.er1 >conftest.err
13404   rm -f conftest.er1
13405   cat conftest.err >&5
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); } && {
13408          test -z "$ac_c_werror_flag" ||
13409          test ! -s conftest.err
13410        } && test -s conftest.$ac_objext; then
13411   ac_cv_type_long=yes
13412 else
13413   echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416         ac_cv_type_long=no
13417 fi
13418
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 fi
13421 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13422 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13423
13424 # The cast to long int works around a bug in the HP C Compiler
13425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13427 # This bug is HP SR number 8606223364.
13428 { echo "$as_me:$LINENO: checking size of long" >&5
13429 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13430 if test "${ac_cv_sizeof_long+set}" = set; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433   if test "$cross_compiling" = yes; then
13434   # Depending upon the size, compute the lo and hi bounds.
13435 cat >conftest.$ac_ext <<_ACEOF
13436 /* confdefs.h.  */
13437 _ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h.  */
13441 $ac_includes_default
13442    typedef long ac__type_sizeof_;
13443 int
13444 main ()
13445 {
13446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13447 test_array [0] = 0
13448
13449   ;
13450   return 0;
13451 }
13452 _ACEOF
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457   *) ac_try_echo=$ac_try;;
13458 esac
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460   (eval "$ac_compile") 2>conftest.er1
13461   ac_status=$?
13462   grep -v '^ *+' conftest.er1 >conftest.err
13463   rm -f conftest.er1
13464   cat conftest.err >&5
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } && {
13467          test -z "$ac_c_werror_flag" ||
13468          test ! -s conftest.err
13469        } && test -s conftest.$ac_objext; then
13470   ac_lo=0 ac_mid=0
13471   while :; do
13472     cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478 $ac_includes_default
13479    typedef long ac__type_sizeof_;
13480 int
13481 main ()
13482 {
13483 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13484 test_array [0] = 0
13485
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest.$ac_objext
13491 if { (ac_try="$ac_compile"
13492 case "(($ac_try" in
13493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494   *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497   (eval "$ac_compile") 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } && {
13504          test -z "$ac_c_werror_flag" ||
13505          test ! -s conftest.err
13506        } && test -s conftest.$ac_objext; then
13507   ac_hi=$ac_mid; break
13508 else
13509   echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13511
13512         ac_lo=`expr $ac_mid + 1`
13513                         if test $ac_lo -le $ac_mid; then
13514                           ac_lo= ac_hi=
13515                           break
13516                         fi
13517                         ac_mid=`expr 2 '*' $ac_mid + 1`
13518 fi
13519
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521   done
13522 else
13523   echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526         cat >conftest.$ac_ext <<_ACEOF
13527 /* confdefs.h.  */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h.  */
13532 $ac_includes_default
13533    typedef long ac__type_sizeof_;
13534 int
13535 main ()
13536 {
13537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13538 test_array [0] = 0
13539
13540   ;
13541   return 0;
13542 }
13543 _ACEOF
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548   *) ac_try_echo=$ac_try;;
13549 esac
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551   (eval "$ac_compile") 2>conftest.er1
13552   ac_status=$?
13553   grep -v '^ *+' conftest.er1 >conftest.err
13554   rm -f conftest.er1
13555   cat conftest.err >&5
13556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557   (exit $ac_status); } && {
13558          test -z "$ac_c_werror_flag" ||
13559          test ! -s conftest.err
13560        } && test -s conftest.$ac_objext; then
13561   ac_hi=-1 ac_mid=-1
13562   while :; do
13563     cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h.  */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h.  */
13569 $ac_includes_default
13570    typedef long ac__type_sizeof_;
13571 int
13572 main ()
13573 {
13574 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13575 test_array [0] = 0
13576
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 rm -f conftest.$ac_objext
13582 if { (ac_try="$ac_compile"
13583 case "(($ac_try" in
13584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585   *) ac_try_echo=$ac_try;;
13586 esac
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588   (eval "$ac_compile") 2>conftest.er1
13589   ac_status=$?
13590   grep -v '^ *+' conftest.er1 >conftest.err
13591   rm -f conftest.er1
13592   cat conftest.err >&5
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } && {
13595          test -z "$ac_c_werror_flag" ||
13596          test ! -s conftest.err
13597        } && test -s conftest.$ac_objext; then
13598   ac_lo=$ac_mid; break
13599 else
13600   echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13602
13603         ac_hi=`expr '(' $ac_mid ')' - 1`
13604                         if test $ac_mid -le $ac_hi; then
13605                           ac_lo= ac_hi=
13606                           break
13607                         fi
13608                         ac_mid=`expr 2 '*' $ac_mid`
13609 fi
13610
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612   done
13613 else
13614   echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13616
13617         ac_lo= ac_hi=
13618 fi
13619
13620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13621 fi
13622
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 # Binary search between lo and hi bounds.
13625 while test "x$ac_lo" != "x$ac_hi"; do
13626   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13627   cat >conftest.$ac_ext <<_ACEOF
13628 /* confdefs.h.  */
13629 _ACEOF
13630 cat confdefs.h >>conftest.$ac_ext
13631 cat >>conftest.$ac_ext <<_ACEOF
13632 /* end confdefs.h.  */
13633 $ac_includes_default
13634    typedef long ac__type_sizeof_;
13635 int
13636 main ()
13637 {
13638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13639 test_array [0] = 0
13640
13641   ;
13642   return 0;
13643 }
13644 _ACEOF
13645 rm -f conftest.$ac_objext
13646 if { (ac_try="$ac_compile"
13647 case "(($ac_try" in
13648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649   *) ac_try_echo=$ac_try;;
13650 esac
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652   (eval "$ac_compile") 2>conftest.er1
13653   ac_status=$?
13654   grep -v '^ *+' conftest.er1 >conftest.err
13655   rm -f conftest.er1
13656   cat conftest.err >&5
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); } && {
13659          test -z "$ac_c_werror_flag" ||
13660          test ! -s conftest.err
13661        } && test -s conftest.$ac_objext; then
13662   ac_hi=$ac_mid
13663 else
13664   echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13666
13667         ac_lo=`expr '(' $ac_mid ')' + 1`
13668 fi
13669
13670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671 done
13672 case $ac_lo in
13673 ?*) ac_cv_sizeof_long=$ac_lo;;
13674 '') if test "$ac_cv_type_long" = yes; then
13675      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13676 See \`config.log' for more details." >&5
13677 echo "$as_me: error: cannot compute sizeof (long)
13678 See \`config.log' for more details." >&2;}
13679    { (exit 77); exit 77; }; }
13680    else
13681      ac_cv_sizeof_long=0
13682    fi ;;
13683 esac
13684 else
13685   cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691 $ac_includes_default
13692    typedef long ac__type_sizeof_;
13693 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13694 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13695 #include <stdio.h>
13696 #include <stdlib.h>
13697 int
13698 main ()
13699 {
13700
13701   FILE *f = fopen ("conftest.val", "w");
13702   if (! f)
13703     return 1;
13704   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13705     {
13706       long int i = longval ();
13707       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13708         return 1;
13709       fprintf (f, "%ld\n", i);
13710     }
13711   else
13712     {
13713       unsigned long int i = ulongval ();
13714       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13715         return 1;
13716       fprintf (f, "%lu\n", i);
13717     }
13718   return ferror (f) || fclose (f) != 0;
13719
13720   ;
13721   return 0;
13722 }
13723 _ACEOF
13724 rm -f conftest$ac_exeext
13725 if { (ac_try="$ac_link"
13726 case "(($ac_try" in
13727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728   *) ac_try_echo=$ac_try;;
13729 esac
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731   (eval "$ac_link") 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13735   { (case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740   (eval "$ac_try") 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; }; then
13744   ac_cv_sizeof_long=`cat conftest.val`
13745 else
13746   echo "$as_me: program exited with status $ac_status" >&5
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 ( exit $ac_status )
13751 if test "$ac_cv_type_long" = yes; then
13752      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13753 See \`config.log' for more details." >&5
13754 echo "$as_me: error: cannot compute sizeof (long)
13755 See \`config.log' for more details." >&2;}
13756    { (exit 77); exit 77; }; }
13757    else
13758      ac_cv_sizeof_long=0
13759    fi
13760 fi
13761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13762 fi
13763 rm -f conftest.val
13764 fi
13765 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13766 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13767
13768
13769
13770 cat >>confdefs.h <<_ACEOF
13771 #define SIZEOF_LONG $ac_cv_sizeof_long
13772 _ACEOF
13773
13774
13775 { echo "$as_me:$LINENO: checking for long long" >&5
13776 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13777 if test "${ac_cv_type_long_long+set}" = set; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h.  */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h.  */
13786 $ac_includes_default
13787 typedef long long ac__type_new_;
13788 int
13789 main ()
13790 {
13791 if ((ac__type_new_ *) 0)
13792   return 0;
13793 if (sizeof (ac__type_new_))
13794   return 0;
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 rm -f conftest.$ac_objext
13800 if { (ac_try="$ac_compile"
13801 case "(($ac_try" in
13802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803   *) ac_try_echo=$ac_try;;
13804 esac
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806   (eval "$ac_compile") 2>conftest.er1
13807   ac_status=$?
13808   grep -v '^ *+' conftest.er1 >conftest.err
13809   rm -f conftest.er1
13810   cat conftest.err >&5
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); } && {
13813          test -z "$ac_c_werror_flag" ||
13814          test ! -s conftest.err
13815        } && test -s conftest.$ac_objext; then
13816   ac_cv_type_long_long=yes
13817 else
13818   echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13820
13821         ac_cv_type_long_long=no
13822 fi
13823
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 fi
13826 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13827 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13828
13829 # The cast to long int works around a bug in the HP C Compiler
13830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13832 # This bug is HP SR number 8606223364.
13833 { echo "$as_me:$LINENO: checking size of long long" >&5
13834 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13835 if test "${ac_cv_sizeof_long_long+set}" = set; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838   if test "$cross_compiling" = yes; then
13839   # Depending upon the size, compute the lo and hi bounds.
13840 cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846 $ac_includes_default
13847    typedef long long ac__type_sizeof_;
13848 int
13849 main ()
13850 {
13851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13852 test_array [0] = 0
13853
13854   ;
13855   return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (ac_try="$ac_compile"
13860 case "(($ac_try" in
13861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862   *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865   (eval "$ac_compile") 2>conftest.er1
13866   ac_status=$?
13867   grep -v '^ *+' conftest.er1 >conftest.err
13868   rm -f conftest.er1
13869   cat conftest.err >&5
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); } && {
13872          test -z "$ac_c_werror_flag" ||
13873          test ! -s conftest.err
13874        } && test -s conftest.$ac_objext; then
13875   ac_lo=0 ac_mid=0
13876   while :; do
13877     cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 $ac_includes_default
13884    typedef long long ac__type_sizeof_;
13885 int
13886 main ()
13887 {
13888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13889 test_array [0] = 0
13890
13891   ;
13892   return 0;
13893 }
13894 _ACEOF
13895 rm -f conftest.$ac_objext
13896 if { (ac_try="$ac_compile"
13897 case "(($ac_try" in
13898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899   *) ac_try_echo=$ac_try;;
13900 esac
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902   (eval "$ac_compile") 2>conftest.er1
13903   ac_status=$?
13904   grep -v '^ *+' conftest.er1 >conftest.err
13905   rm -f conftest.er1
13906   cat conftest.err >&5
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); } && {
13909          test -z "$ac_c_werror_flag" ||
13910          test ! -s conftest.err
13911        } && test -s conftest.$ac_objext; then
13912   ac_hi=$ac_mid; break
13913 else
13914   echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13916
13917         ac_lo=`expr $ac_mid + 1`
13918                         if test $ac_lo -le $ac_mid; then
13919                           ac_lo= ac_hi=
13920                           break
13921                         fi
13922                         ac_mid=`expr 2 '*' $ac_mid + 1`
13923 fi
13924
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13926   done
13927 else
13928   echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13930
13931         cat >conftest.$ac_ext <<_ACEOF
13932 /* confdefs.h.  */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h.  */
13937 $ac_includes_default
13938    typedef long long ac__type_sizeof_;
13939 int
13940 main ()
13941 {
13942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13943 test_array [0] = 0
13944
13945   ;
13946   return 0;
13947 }
13948 _ACEOF
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953   *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956   (eval "$ac_compile") 2>conftest.er1
13957   ac_status=$?
13958   grep -v '^ *+' conftest.er1 >conftest.err
13959   rm -f conftest.er1
13960   cat conftest.err >&5
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); } && {
13963          test -z "$ac_c_werror_flag" ||
13964          test ! -s conftest.err
13965        } && test -s conftest.$ac_objext; then
13966   ac_hi=-1 ac_mid=-1
13967   while :; do
13968     cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h.  */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h.  */
13974 $ac_includes_default
13975    typedef long long ac__type_sizeof_;
13976 int
13977 main ()
13978 {
13979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13980 test_array [0] = 0
13981
13982   ;
13983   return 0;
13984 }
13985 _ACEOF
13986 rm -f conftest.$ac_objext
13987 if { (ac_try="$ac_compile"
13988 case "(($ac_try" in
13989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990   *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993   (eval "$ac_compile") 2>conftest.er1
13994   ac_status=$?
13995   grep -v '^ *+' conftest.er1 >conftest.err
13996   rm -f conftest.er1
13997   cat conftest.err >&5
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); } && {
14000          test -z "$ac_c_werror_flag" ||
14001          test ! -s conftest.err
14002        } && test -s conftest.$ac_objext; then
14003   ac_lo=$ac_mid; break
14004 else
14005   echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008         ac_hi=`expr '(' $ac_mid ')' - 1`
14009                         if test $ac_mid -le $ac_hi; then
14010                           ac_lo= ac_hi=
14011                           break
14012                         fi
14013                         ac_mid=`expr 2 '*' $ac_mid`
14014 fi
14015
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017   done
14018 else
14019   echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14021
14022         ac_lo= ac_hi=
14023 fi
14024
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 fi
14027
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 # Binary search between lo and hi bounds.
14030 while test "x$ac_lo" != "x$ac_hi"; do
14031   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14032   cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h.  */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h.  */
14038 $ac_includes_default
14039    typedef long long ac__type_sizeof_;
14040 int
14041 main ()
14042 {
14043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14044 test_array [0] = 0
14045
14046   ;
14047   return 0;
14048 }
14049 _ACEOF
14050 rm -f conftest.$ac_objext
14051 if { (ac_try="$ac_compile"
14052 case "(($ac_try" in
14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054   *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057   (eval "$ac_compile") 2>conftest.er1
14058   ac_status=$?
14059   grep -v '^ *+' conftest.er1 >conftest.err
14060   rm -f conftest.er1
14061   cat conftest.err >&5
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); } && {
14064          test -z "$ac_c_werror_flag" ||
14065          test ! -s conftest.err
14066        } && test -s conftest.$ac_objext; then
14067   ac_hi=$ac_mid
14068 else
14069   echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072         ac_lo=`expr '(' $ac_mid ')' + 1`
14073 fi
14074
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 done
14077 case $ac_lo in
14078 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14079 '') if test "$ac_cv_type_long_long" = yes; then
14080      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14081 See \`config.log' for more details." >&5
14082 echo "$as_me: error: cannot compute sizeof (long long)
14083 See \`config.log' for more details." >&2;}
14084    { (exit 77); exit 77; }; }
14085    else
14086      ac_cv_sizeof_long_long=0
14087    fi ;;
14088 esac
14089 else
14090   cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096 $ac_includes_default
14097    typedef long long ac__type_sizeof_;
14098 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14099 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14100 #include <stdio.h>
14101 #include <stdlib.h>
14102 int
14103 main ()
14104 {
14105
14106   FILE *f = fopen ("conftest.val", "w");
14107   if (! f)
14108     return 1;
14109   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14110     {
14111       long int i = longval ();
14112       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14113         return 1;
14114       fprintf (f, "%ld\n", i);
14115     }
14116   else
14117     {
14118       unsigned long int i = ulongval ();
14119       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14120         return 1;
14121       fprintf (f, "%lu\n", i);
14122     }
14123   return ferror (f) || fclose (f) != 0;
14124
14125   ;
14126   return 0;
14127 }
14128 _ACEOF
14129 rm -f conftest$ac_exeext
14130 if { (ac_try="$ac_link"
14131 case "(($ac_try" in
14132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133   *) ac_try_echo=$ac_try;;
14134 esac
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136   (eval "$ac_link") 2>&5
14137   ac_status=$?
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14140   { (case "(($ac_try" in
14141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142   *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145   (eval "$ac_try") 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; }; then
14149   ac_cv_sizeof_long_long=`cat conftest.val`
14150 else
14151   echo "$as_me: program exited with status $ac_status" >&5
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155 ( exit $ac_status )
14156 if test "$ac_cv_type_long_long" = yes; then
14157      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14158 See \`config.log' for more details." >&5
14159 echo "$as_me: error: cannot compute sizeof (long long)
14160 See \`config.log' for more details." >&2;}
14161    { (exit 77); exit 77; }; }
14162    else
14163      ac_cv_sizeof_long_long=0
14164    fi
14165 fi
14166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14167 fi
14168 rm -f conftest.val
14169 fi
14170 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14171 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14172
14173
14174
14175 cat >>confdefs.h <<_ACEOF
14176 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14177 _ACEOF
14178
14179
14180 SIZEOF_SHORT=$ac_cv_sizeof_short
14181 SIZEOF_INT=$ac_cv_sizeof_int
14182 SIZEOF_LONG=$ac_cv_sizeof_long
14183 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14184
14185
14186
14187
14188 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14189 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14190 if test "${ac_cv_c_bigendian+set}" = set; then
14191   echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193   # See if sys/param.h defines the BYTE_ORDER macro.
14194 cat >conftest.$ac_ext <<_ACEOF
14195 /* confdefs.h.  */
14196 _ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h.  */
14200 #include <sys/types.h>
14201 #include <sys/param.h>
14202
14203 int
14204 main ()
14205 {
14206 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14207         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14208  bogus endian macros
14209 #endif
14210
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext
14216 if { (ac_try="$ac_compile"
14217 case "(($ac_try" in
14218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219   *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222   (eval "$ac_compile") 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } && {
14229          test -z "$ac_c_werror_flag" ||
14230          test ! -s conftest.err
14231        } && test -s conftest.$ac_objext; then
14232   # It does; now see whether it defined to BIG_ENDIAN or not.
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h.  */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h.  */
14239 #include <sys/types.h>
14240 #include <sys/param.h>
14241
14242 int
14243 main ()
14244 {
14245 #if BYTE_ORDER != BIG_ENDIAN
14246  not big endian
14247 #endif
14248
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (ac_try="$ac_compile"
14255 case "(($ac_try" in
14256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257   *) ac_try_echo=$ac_try;;
14258 esac
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260   (eval "$ac_compile") 2>conftest.er1
14261   ac_status=$?
14262   grep -v '^ *+' conftest.er1 >conftest.err
14263   rm -f conftest.er1
14264   cat conftest.err >&5
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); } && {
14267          test -z "$ac_c_werror_flag" ||
14268          test ! -s conftest.err
14269        } && test -s conftest.$ac_objext; then
14270   ac_cv_c_bigendian=yes
14271 else
14272   echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275         ac_cv_c_bigendian=no
14276 fi
14277
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 else
14280   echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283         # It does not; compile a test program.
14284 if test "$cross_compiling" = yes; then
14285   # try to guess the endianness by grepping values into an object file
14286   ac_cv_c_bigendian=unknown
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14294 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14295 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14296 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14297 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14298 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14299 int
14300 main ()
14301 {
14302  _ascii (); _ebcdic ();
14303   ;
14304   return 0;
14305 }
14306 _ACEOF
14307 rm -f conftest.$ac_objext
14308 if { (ac_try="$ac_compile"
14309 case "(($ac_try" in
14310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311   *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314   (eval "$ac_compile") 2>conftest.er1
14315   ac_status=$?
14316   grep -v '^ *+' conftest.er1 >conftest.err
14317   rm -f conftest.er1
14318   cat conftest.err >&5
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } && {
14321          test -z "$ac_c_werror_flag" ||
14322          test ! -s conftest.err
14323        } && test -s conftest.$ac_objext; then
14324   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14325   ac_cv_c_bigendian=yes
14326 fi
14327 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14328   if test "$ac_cv_c_bigendian" = unknown; then
14329     ac_cv_c_bigendian=no
14330   else
14331     # finding both strings is unlikely to happen, but who knows?
14332     ac_cv_c_bigendian=unknown
14333   fi
14334 fi
14335 else
14336   echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339
14340 fi
14341
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 else
14344   cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h.  */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h.  */
14350 $ac_includes_default
14351 int
14352 main ()
14353 {
14354
14355   /* Are we little or big endian?  From Harbison&Steele.  */
14356   union
14357   {
14358     long int l;
14359     char c[sizeof (long int)];
14360   } u;
14361   u.l = 1;
14362   return u.c[sizeof (long int) - 1] == 1;
14363
14364   ;
14365   return 0;
14366 }
14367 _ACEOF
14368 rm -f conftest$ac_exeext
14369 if { (ac_try="$ac_link"
14370 case "(($ac_try" in
14371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372   *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375   (eval "$ac_link") 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14379   { (case "(($ac_try" in
14380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381   *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384   (eval "$ac_try") 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; }; then
14388   ac_cv_c_bigendian=no
14389 else
14390   echo "$as_me: program exited with status $ac_status" >&5
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ( exit $ac_status )
14395 ac_cv_c_bigendian=yes
14396 fi
14397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14398 fi
14399
14400
14401 fi
14402
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 fi
14405 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14406 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14407 case $ac_cv_c_bigendian in
14408   yes)
14409
14410 cat >>confdefs.h <<\_ACEOF
14411 #define WORDS_BIGENDIAN 1
14412 _ACEOF
14413  ;;
14414   no)
14415      ;;
14416   *)
14417     { { echo "$as_me:$LINENO: error: unknown endianness
14418 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14419 echo "$as_me: error: unknown endianness
14420 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14421    { (exit 1); exit 1; }; } ;;
14422 esac
14423
14424 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14425 ASM_TYPES_HEADER=./asm_types.h
14426
14427
14428 for ac_header in inttypes.h
14429 do
14430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14432   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14435   echo $ECHO_N "(cached) $ECHO_C" >&6
14436 fi
14437 ac_res=`eval echo '${'$as_ac_Header'}'`
14438                { echo "$as_me:$LINENO: result: $ac_res" >&5
14439 echo "${ECHO_T}$ac_res" >&6; }
14440 else
14441   # Is the header compilable?
14442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h.  */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h.  */
14450 $ac_includes_default
14451 #include <$ac_header>
14452 _ACEOF
14453 rm -f conftest.$ac_objext
14454 if { (ac_try="$ac_compile"
14455 case "(($ac_try" in
14456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457   *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460   (eval "$ac_compile") 2>conftest.er1
14461   ac_status=$?
14462   grep -v '^ *+' conftest.er1 >conftest.err
14463   rm -f conftest.er1
14464   cat conftest.err >&5
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); } && {
14467          test -z "$ac_c_werror_flag" ||
14468          test ! -s conftest.err
14469        } && test -s conftest.$ac_objext; then
14470   ac_header_compiler=yes
14471 else
14472   echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14474
14475         ac_header_compiler=no
14476 fi
14477
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14480 echo "${ECHO_T}$ac_header_compiler" >&6; }
14481
14482 # Is the header present?
14483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h.  */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h.  */
14491 #include <$ac_header>
14492 _ACEOF
14493 if { (ac_try="$ac_cpp conftest.$ac_ext"
14494 case "(($ac_try" in
14495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496   *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14500   ac_status=$?
14501   grep -v '^ *+' conftest.er1 >conftest.err
14502   rm -f conftest.er1
14503   cat conftest.err >&5
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); } >/dev/null && {
14506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14507          test ! -s conftest.err
14508        }; then
14509   ac_header_preproc=yes
14510 else
14511   echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14513
14514   ac_header_preproc=no
14515 fi
14516
14517 rm -f conftest.err conftest.$ac_ext
14518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14519 echo "${ECHO_T}$ac_header_preproc" >&6; }
14520
14521 # So?  What about this header?
14522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14523   yes:no: )
14524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14528     ac_header_preproc=yes
14529     ;;
14530   no:yes:* )
14531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14533     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14534 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14535     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14537     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14538 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14541     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14543
14544     ;;
14545 esac
14546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14549   echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551   eval "$as_ac_Header=\$ac_header_preproc"
14552 fi
14553 ac_res=`eval echo '${'$as_ac_Header'}'`
14554                { echo "$as_me:$LINENO: result: $ac_res" >&5
14555 echo "${ECHO_T}$ac_res" >&6; }
14556
14557 fi
14558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14559   cat >>confdefs.h <<_ACEOF
14560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14561 _ACEOF
14562
14563 fi
14564
14565 done
14566
14567 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14568 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14569 if test "${ac_cv_type_intptr_t+set}" = set; then
14570   echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14572   cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h.  */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h.  */
14578 $ac_includes_default
14579 typedef intptr_t ac__type_new_;
14580 int
14581 main ()
14582 {
14583 if ((ac__type_new_ *) 0)
14584   return 0;
14585 if (sizeof (ac__type_new_))
14586   return 0;
14587   ;
14588   return 0;
14589 }
14590 _ACEOF
14591 rm -f conftest.$ac_objext
14592 if { (ac_try="$ac_compile"
14593 case "(($ac_try" in
14594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595   *) ac_try_echo=$ac_try;;
14596 esac
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598   (eval "$ac_compile") 2>conftest.er1
14599   ac_status=$?
14600   grep -v '^ *+' conftest.er1 >conftest.err
14601   rm -f conftest.er1
14602   cat conftest.err >&5
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } && {
14605          test -z "$ac_c_werror_flag" ||
14606          test ! -s conftest.err
14607        } && test -s conftest.$ac_objext; then
14608   ac_cv_type_intptr_t=yes
14609 else
14610   echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14612
14613         ac_cv_type_intptr_t=no
14614 fi
14615
14616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617 fi
14618 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14619 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14620 if test $ac_cv_type_intptr_t = yes; then
14621
14622 cat >>confdefs.h <<_ACEOF
14623 #define HAVE_INTPTR_T 1
14624 _ACEOF
14625
14626
14627 fi
14628
14629 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14630 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14631 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14632   echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634   cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h.  */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h.  */
14640 #include <sys/stat.h>
14641 int
14642 main ()
14643 {
14644 struct stat stat; stat.st_flags = 0;
14645   ;
14646   return 0;
14647 }
14648 _ACEOF
14649 rm -f conftest.$ac_objext
14650 if { (ac_try="$ac_compile"
14651 case "(($ac_try" in
14652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653   *) ac_try_echo=$ac_try;;
14654 esac
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656   (eval "$ac_compile") 2>conftest.er1
14657   ac_status=$?
14658   grep -v '^ *+' conftest.er1 >conftest.err
14659   rm -f conftest.er1
14660   cat conftest.err >&5
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); } && {
14663          test -z "$ac_c_werror_flag" ||
14664          test ! -s conftest.err
14665        } && test -s conftest.$ac_objext; then
14666   e2fsprogs_cv_struct_st_flags=yes
14667 else
14668   echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671         e2fsprogs_cv_struct_st_flags=no
14672 fi
14673
14674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14675 fi
14676
14677 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14678 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14679 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14680   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14681 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14682   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685   cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h.  */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h.  */
14691 #include <sys/stat.h>
14692 int
14693 main ()
14694 {
14695 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14696   ;
14697   return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext
14701 if { (ac_try="$ac_compile"
14702 case "(($ac_try" in
14703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704   *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707   (eval "$ac_compile") 2>conftest.er1
14708   ac_status=$?
14709   grep -v '^ *+' conftest.er1 >conftest.err
14710   rm -f conftest.er1
14711   cat conftest.err >&5
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); } && {
14714          test -z "$ac_c_werror_flag" ||
14715          test ! -s conftest.err
14716        } && test -s conftest.$ac_objext; then
14717   e2fsprogs_cv_struct_st_flags_immut=yes
14718 else
14719   echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14721
14722         e2fsprogs_cv_struct_st_flags_immut=no
14723 fi
14724
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 fi
14727
14728   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14729 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14730   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14731           cat >>confdefs.h <<\_ACEOF
14732 #define HAVE_STAT_FLAGS 1
14733 _ACEOF
14734
14735   fi
14736 fi
14737 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14738 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14739 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14740   echo $ECHO_N "(cached) $ECHO_C" >&6
14741 else
14742   cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h.  */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h.  */
14748 #include <sys/types.h>
14749          #include <sys/socket.h>
14750
14751 int
14752 main ()
14753 {
14754 static struct sockaddr ac_aggr;
14755 if (ac_aggr.sa_len)
14756 return 0;
14757   ;
14758   return 0;
14759 }
14760 _ACEOF
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765   *) ac_try_echo=$ac_try;;
14766 esac
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768   (eval "$ac_compile") 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } && {
14775          test -z "$ac_c_werror_flag" ||
14776          test ! -s conftest.err
14777        } && test -s conftest.$ac_objext; then
14778   ac_cv_member_struct_sockaddr_sa_len=yes
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783         cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h.  */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h.  */
14789 #include <sys/types.h>
14790          #include <sys/socket.h>
14791
14792 int
14793 main ()
14794 {
14795 static struct sockaddr ac_aggr;
14796 if (sizeof ac_aggr.sa_len)
14797 return 0;
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 rm -f conftest.$ac_objext
14803 if { (ac_try="$ac_compile"
14804 case "(($ac_try" in
14805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806   *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809   (eval "$ac_compile") 2>conftest.er1
14810   ac_status=$?
14811   grep -v '^ *+' conftest.er1 >conftest.err
14812   rm -f conftest.er1
14813   cat conftest.err >&5
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); } && {
14816          test -z "$ac_c_werror_flag" ||
14817          test ! -s conftest.err
14818        } && test -s conftest.$ac_objext; then
14819   ac_cv_member_struct_sockaddr_sa_len=yes
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824         ac_cv_member_struct_sockaddr_sa_len=no
14825 fi
14826
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 fi
14829
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831 fi
14832 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14833 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14834 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14835
14836 cat >>confdefs.h <<_ACEOF
14837 #define HAVE_SA_LEN 1
14838 _ACEOF
14839
14840 fi
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871 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
14872 do
14873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14877   echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879   cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h.  */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h.  */
14885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14887 #define $ac_func innocuous_$ac_func
14888
14889 /* System header to define __stub macros and hopefully few prototypes,
14890     which can conflict with char $ac_func (); below.
14891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14892     <limits.h> exists even on freestanding compilers.  */
14893
14894 #ifdef __STDC__
14895 # include <limits.h>
14896 #else
14897 # include <assert.h>
14898 #endif
14899
14900 #undef $ac_func
14901
14902 /* Override any GCC internal prototype to avoid an error.
14903    Use char because int might match the return type of a GCC
14904    builtin and then its argument prototype would still apply.  */
14905 #ifdef __cplusplus
14906 extern "C"
14907 #endif
14908 char $ac_func ();
14909 /* The GNU C library defines this for functions which it implements
14910     to always fail with ENOSYS.  Some functions are actually named
14911     something starting with __ and the normal name is an alias.  */
14912 #if defined __stub_$ac_func || defined __stub___$ac_func
14913 choke me
14914 #endif
14915
14916 int
14917 main ()
14918 {
14919 return $ac_func ();
14920   ;
14921   return 0;
14922 }
14923 _ACEOF
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (ac_try="$ac_link"
14926 case "(($ac_try" in
14927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928   *) ac_try_echo=$ac_try;;
14929 esac
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931   (eval "$ac_link") 2>conftest.er1
14932   ac_status=$?
14933   grep -v '^ *+' conftest.er1 >conftest.err
14934   rm -f conftest.er1
14935   cat conftest.err >&5
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); } && {
14938          test -z "$ac_c_werror_flag" ||
14939          test ! -s conftest.err
14940        } && test -s conftest$ac_exeext &&
14941        $as_test_x conftest$ac_exeext; then
14942   eval "$as_ac_var=yes"
14943 else
14944   echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14946
14947         eval "$as_ac_var=no"
14948 fi
14949
14950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14951       conftest$ac_exeext conftest.$ac_ext
14952 fi
14953 ac_res=`eval echo '${'$as_ac_var'}'`
14954                { echo "$as_me:$LINENO: result: $ac_res" >&5
14955 echo "${ECHO_T}$ac_res" >&6; }
14956 if test `eval echo '${'$as_ac_var'}'` = yes; then
14957   cat >>confdefs.h <<_ACEOF
14958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14959 _ACEOF
14960
14961 fi
14962 done
14963
14964 SOCKET_LIB=''
14965 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14966 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14967 if test "${ac_cv_lib_socket_socket+set}" = set; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970   ac_check_lib_save_LIBS=$LIBS
14971 LIBS="-lsocket  $LIBS"
14972 cat >conftest.$ac_ext <<_ACEOF
14973 /* confdefs.h.  */
14974 _ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h.  */
14978
14979 /* Override any GCC internal prototype to avoid an error.
14980    Use char because int might match the return type of a GCC
14981    builtin and then its argument prototype would still apply.  */
14982 #ifdef __cplusplus
14983 extern "C"
14984 #endif
14985 char socket ();
14986 int
14987 main ()
14988 {
14989 return socket ();
14990   ;
14991   return 0;
14992 }
14993 _ACEOF
14994 rm -f conftest.$ac_objext conftest$ac_exeext
14995 if { (ac_try="$ac_link"
14996 case "(($ac_try" in
14997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998   *) ac_try_echo=$ac_try;;
14999 esac
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001   (eval "$ac_link") 2>conftest.er1
15002   ac_status=$?
15003   grep -v '^ *+' conftest.er1 >conftest.err
15004   rm -f conftest.er1
15005   cat conftest.err >&5
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); } && {
15008          test -z "$ac_c_werror_flag" ||
15009          test ! -s conftest.err
15010        } && test -s conftest$ac_exeext &&
15011        $as_test_x conftest$ac_exeext; then
15012   ac_cv_lib_socket_socket=yes
15013 else
15014   echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15016
15017         ac_cv_lib_socket_socket=no
15018 fi
15019
15020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15021       conftest$ac_exeext conftest.$ac_ext
15022 LIBS=$ac_check_lib_save_LIBS
15023 fi
15024 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15025 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15026 if test $ac_cv_lib_socket_socket = yes; then
15027   SOCKET_LIB=-lsocket
15028 fi
15029
15030
15031 DLOPEN_LIB=''
15032 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15033 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15034 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15035   echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15037   ac_check_lib_save_LIBS=$LIBS
15038 LIBS="-ldl  $LIBS"
15039 cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h.  */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h.  */
15045
15046 /* Override any GCC internal prototype to avoid an error.
15047    Use char because int might match the return type of a GCC
15048    builtin and then its argument prototype would still apply.  */
15049 #ifdef __cplusplus
15050 extern "C"
15051 #endif
15052 char dlopen ();
15053 int
15054 main ()
15055 {
15056 return dlopen ();
15057   ;
15058   return 0;
15059 }
15060 _ACEOF
15061 rm -f conftest.$ac_objext conftest$ac_exeext
15062 if { (ac_try="$ac_link"
15063 case "(($ac_try" in
15064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065   *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068   (eval "$ac_link") 2>conftest.er1
15069   ac_status=$?
15070   grep -v '^ *+' conftest.er1 >conftest.err
15071   rm -f conftest.er1
15072   cat conftest.err >&5
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); } && {
15075          test -z "$ac_c_werror_flag" ||
15076          test ! -s conftest.err
15077        } && test -s conftest$ac_exeext &&
15078        $as_test_x conftest$ac_exeext; then
15079   ac_cv_lib_dl_dlopen=yes
15080 else
15081   echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15083
15084         ac_cv_lib_dl_dlopen=no
15085 fi
15086
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088       conftest$ac_exeext conftest.$ac_ext
15089 LIBS=$ac_check_lib_save_LIBS
15090 fi
15091 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15092 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15093 if test $ac_cv_lib_dl_dlopen = yes; then
15094   DLOPEN_LIB=-ldl
15095 cat >>confdefs.h <<\_ACEOF
15096 #define HAVE_DLOPEN 1
15097 _ACEOF
15098
15099 fi
15100
15101
15102 { echo "$as_me:$LINENO: checking for optreset" >&5
15103 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15104 if test "${ac_cv_have_optreset+set}" = set; then
15105   echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107   cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h.  */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h.  */
15113 #include <unistd.h>
15114
15115 _ACEOF
15116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15117   $EGREP "optreset" >/dev/null 2>&1; then
15118   ac_cv_have_optreset=yes
15119 else
15120   ac_cv_have_optreset=no
15121 fi
15122 rm -f conftest*
15123
15124 fi
15125 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15126 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15127 if test $ac_cv_have_optreset = yes; then
15128   cat >>confdefs.h <<\_ACEOF
15129 #define HAVE_OPTRESET 1
15130 _ACEOF
15131
15132 fi
15133 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15134 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15135 if diff -u $0 $0 > /dev/null 2>&1 ; then
15136    UNI_DIFF_OPTS=-u
15137 else
15138    UNI_DIFF_OPTS=-c
15139 fi
15140 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15141 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15142
15143 case "$host_os" in
15144 linux*)
15145         cat >>confdefs.h <<\_ACEOF
15146 #define HAVE_EXT2_IOCTLS 1
15147 _ACEOF
15148
15149         ;;
15150 esac
15151 LINUX_CMT="#"
15152 CYGWIN_CMT="#"
15153 UNIX_CMT=
15154 case "$host_os" in
15155 linux*)
15156         LINUX_CMT=
15157         ;;
15158 cygwin)
15159         CYGWIN_CMT=
15160         UNIX_CMT="#"
15161         ;;
15162 esac
15163
15164
15165
15166 case "$host_os" in
15167 linux* | gnu* | k*bsd*-gnu)
15168         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15169                 root_prefix="";
15170                 echo "On $host_os systems, root_prefix defaults to ''"
15171         fi
15172         ;;
15173 esac
15174 case "$host_os" in
15175 linux* | gnu* | k*bsd*-gnu)
15176         if test "$prefix" = NONE ; then
15177                 prefix="/usr";
15178                 echo "On $host_os systems, prefix defaults to /usr"
15179                 if test "$mandir" = '${prefix}/man' ; then
15180                         echo "...and mandir defaults to /usr/share/man"
15181                         mandir=/usr/share/man
15182                 fi
15183         fi
15184 ;;
15185 esac
15186 if test "$root_prefix" = NONE ; then
15187         if test "$prefix" = NONE ; then
15188                 root_prefix="$ac_default_prefix"
15189         else
15190                 root_prefix="$prefix"
15191         fi
15192         root_bindir=$bindir
15193         root_sbindir=$sbindir
15194         root_libdir=$libdir
15195         root_sysconfdir=$sysconfdir
15196 else
15197         root_bindir='${root_prefix}/bin'
15198         root_sbindir='${root_prefix}/sbin'
15199         root_libdir='${root_prefix}/lib'
15200         root_sysconfdir='${root_prefix}/etc'
15201 fi
15202 if test "$bindir" != '${exec_prefix}/bin'; then
15203     root_bindir=$bindir
15204     echo "Setting root_bindir to $root_bindir"
15205 fi
15206 if test "$sbindir" != '${exec_prefix}/sbin'; then
15207     root_sbindir=$sbindir
15208     echo "Setting root_sbindir to $root_sbindir"
15209 fi
15210 if test "$libdir" != '${exec_prefix}/lib'; then
15211     root_libdir=$libdir
15212     echo "Setting root_libdir to $root_libdir"
15213 fi
15214 if test "$sysconfdir" != '${prefix}/etc'; then
15215     root_sysconfdir=$sysconfdir
15216     echo "Setting root_sysconfdir to $root_sysconfdir"
15217 fi
15218
15219
15220
15221
15222
15223 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15224 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15225 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15226   echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15229 cat >conftest.$ac_ext <<_ACEOF
15230 /* confdefs.h.  */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h.  */
15235 #include <stdio.h>
15236 int
15237 main ()
15238 {
15239 fflush(stdout);
15240   ;
15241   return 0;
15242 }
15243 _ACEOF
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (ac_try="$ac_link"
15246 case "(($ac_try" in
15247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248   *) ac_try_echo=$ac_try;;
15249 esac
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251   (eval "$ac_link") 2>conftest.er1
15252   ac_status=$?
15253   grep -v '^ *+' conftest.er1 >conftest.err
15254   rm -f conftest.er1
15255   cat conftest.err >&5
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); } && {
15258          test -z "$ac_c_werror_flag" ||
15259          test ! -s conftest.err
15260        } && test -s conftest$ac_exeext &&
15261        $as_test_x conftest$ac_exeext; then
15262   ac_cv_e2fsprogs_use_static=yes
15263 else
15264   echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15266
15267         ac_cv_e2fsprogs_use_static=no
15268 fi
15269
15270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15271       conftest$ac_exeext conftest.$ac_ext
15272 LDFLAGS=$SAVE_LDFLAGS
15273 fi
15274
15275 case "$host_os" in
15276 solaris2.*)
15277         ac_cv_e2fsprogs_use_static=no
15278 ;;
15279 esac
15280 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15281 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15282 LDFLAG_STATIC=
15283 if test $ac_cv_e2fsprogs_use_static = yes; then
15284         LDFLAG_STATIC=-static
15285 fi
15286
15287 case "$host_os" in
15288 darwin*)
15289         echo "Using Apple Darwin / GNU libintl workaround"
15290         cat >>confdefs.h <<\_ACEOF
15291 #define _INTL_REDIRECT_MACROS 1
15292 _ACEOF
15293
15294         ;;
15295 esac
15296 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15297 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15298
15299
15300 if test "$cross_compiling" = yes ; then
15301   DO_TEST_SUITE=
15302 else
15303   DO_TEST_SUITE=check
15304 fi
15305
15306 INTL_FLAGS=
15307 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15308         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15309 fi
15310
15311 if test $cross_compiling = no; then
15312    BUILD_CFLAGS="$CFLAGS"
15313    BUILD_LDFLAGS="$LDFLAGS"
15314 else
15315    BUILD_CFLAGS=
15316    BUILD_LDFLAGS=
15317 fi
15318
15319
15320 test -d lib || mkdir lib
15321 test -d include || mkdir include
15322 test -d include/linux || mkdir include/linux
15323 test -d include/asm || mkdir include/asm
15324 for i in MCONFIG Makefile e2fsprogs.spec \
15325         util/Makefile util/subst.conf util/gen-tarball \
15326         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15327         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15328         lib/uuid/Makefile lib/uuid/uuid_types.h \
15329         lib/blkid/Makefile lib/blkid/blkid_types.h \
15330         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15331         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15332         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15333         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15334         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15335         if test -d `dirname ${srcdir}/$i` ; then
15336                 outlist="$outlist $i"
15337         fi
15338 done
15339 ac_config_files="$ac_config_files $outlist"
15340
15341 cat >confcache <<\_ACEOF
15342 # This file is a shell script that caches the results of configure
15343 # tests run on this system so they can be shared between configure
15344 # scripts and configure runs, see configure's option --config-cache.
15345 # It is not useful on other systems.  If it contains results you don't
15346 # want to keep, you may remove or edit it.
15347 #
15348 # config.status only pays attention to the cache file if you give it
15349 # the --recheck option to rerun configure.
15350 #
15351 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15353 # following values.
15354
15355 _ACEOF
15356
15357 # The following way of writing the cache mishandles newlines in values,
15358 # but we know of no workaround that is simple, portable, and efficient.
15359 # So, we kill variables containing newlines.
15360 # Ultrix sh set writes to stderr and can't be redirected directly,
15361 # and sets the high bit in the cache file unless we assign to the vars.
15362 (
15363   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15364     eval ac_val=\$$ac_var
15365     case $ac_val in #(
15366     *${as_nl}*)
15367       case $ac_var in #(
15368       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15369 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15370       esac
15371       case $ac_var in #(
15372       _ | IFS | as_nl) ;; #(
15373       *) $as_unset $ac_var ;;
15374       esac ;;
15375     esac
15376   done
15377
15378   (set) 2>&1 |
15379     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15380     *${as_nl}ac_space=\ *)
15381       # `set' does not quote correctly, so add quotes (double-quote
15382       # substitution turns \\\\ into \\, and sed turns \\ into \).
15383       sed -n \
15384         "s/'/'\\\\''/g;
15385           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15386       ;; #(
15387     *)
15388       # `set' quotes correctly as required by POSIX, so do not add quotes.
15389       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15390       ;;
15391     esac |
15392     sort
15393 ) |
15394   sed '
15395      /^ac_cv_env_/b end
15396      t clear
15397      :clear
15398      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15399      t end
15400      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15401      :end' >>confcache
15402 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15403   if test -w "$cache_file"; then
15404     test "x$cache_file" != "x/dev/null" &&
15405       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15406 echo "$as_me: updating cache $cache_file" >&6;}
15407     cat confcache >$cache_file
15408   else
15409     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15410 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15411   fi
15412 fi
15413 rm -f confcache
15414
15415 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15416 # Let make expand exec_prefix.
15417 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15418
15419 # Transform confdefs.h into DEFS.
15420 # Protect against shell expansion while executing Makefile rules.
15421 # Protect against Makefile macro expansion.
15422 #
15423 # If the first sed substitution is executed (which looks for macros that
15424 # take arguments), then branch to the quote section.  Otherwise,
15425 # look for a macro that doesn't take arguments.
15426 ac_script='
15427 t clear
15428 :clear
15429 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15430 t quote
15431 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15432 t quote
15433 b any
15434 :quote
15435 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15436 s/\[/\\&/g
15437 s/\]/\\&/g
15438 s/\$/$$/g
15439 H
15440 :any
15441 ${
15442         g
15443         s/^\n//
15444         s/\n/ /g
15445         p
15446 }
15447 '
15448 DEFS=`sed -n "$ac_script" confdefs.h`
15449
15450
15451 ac_libobjs=
15452 ac_ltlibobjs=
15453 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15454   # 1. Remove the extension, and $U if already installed.
15455   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15456   ac_i=`echo "$ac_i" | sed "$ac_script"`
15457   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15458   #    will be set to the directory where LIBOBJS objects are built.
15459   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15460   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15461 done
15462 LIBOBJS=$ac_libobjs
15463
15464 LTLIBOBJS=$ac_ltlibobjs
15465
15466
15467
15468 : ${CONFIG_STATUS=./config.status}
15469 ac_clean_files_save=$ac_clean_files
15470 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15471 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15472 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15473 cat >$CONFIG_STATUS <<_ACEOF
15474 #! $SHELL
15475 # Generated by $as_me.
15476 # Run this file to recreate the current configuration.
15477 # Compiler output produced by configure, useful for debugging
15478 # configure, is in config.log if it exists.
15479
15480 debug=false
15481 ac_cs_recheck=false
15482 ac_cs_silent=false
15483 SHELL=\${CONFIG_SHELL-$SHELL}
15484 _ACEOF
15485
15486 cat >>$CONFIG_STATUS <<\_ACEOF
15487 ## --------------------- ##
15488 ## M4sh Initialization.  ##
15489 ## --------------------- ##
15490
15491 # Be more Bourne compatible
15492 DUALCASE=1; export DUALCASE # for MKS sh
15493 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15494   emulate sh
15495   NULLCMD=:
15496   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15497   # is contrary to our usage.  Disable this feature.
15498   alias -g '${1+"$@"}'='"$@"'
15499   setopt NO_GLOB_SUBST
15500 else
15501   case `(set -o) 2>/dev/null` in
15502   *posix*) set -o posix ;;
15503 esac
15504
15505 fi
15506
15507
15508
15509
15510 # PATH needs CR
15511 # Avoid depending upon Character Ranges.
15512 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15513 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15514 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15515 as_cr_digits='0123456789'
15516 as_cr_alnum=$as_cr_Letters$as_cr_digits
15517
15518 # The user is always right.
15519 if test "${PATH_SEPARATOR+set}" != set; then
15520   echo "#! /bin/sh" >conf$$.sh
15521   echo  "exit 0"   >>conf$$.sh
15522   chmod +x conf$$.sh
15523   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15524     PATH_SEPARATOR=';'
15525   else
15526     PATH_SEPARATOR=:
15527   fi
15528   rm -f conf$$.sh
15529 fi
15530
15531 # Support unset when possible.
15532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15533   as_unset=unset
15534 else
15535   as_unset=false
15536 fi
15537
15538
15539 # IFS
15540 # We need space, tab and new line, in precisely that order.  Quoting is
15541 # there to prevent editors from complaining about space-tab.
15542 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15543 # splitting by setting IFS to empty value.)
15544 as_nl='
15545 '
15546 IFS=" ""        $as_nl"
15547
15548 # Find who we are.  Look in the path if we contain no directory separator.
15549 case $0 in
15550   *[\\/]* ) as_myself=$0 ;;
15551   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15552 for as_dir in $PATH
15553 do
15554   IFS=$as_save_IFS
15555   test -z "$as_dir" && as_dir=.
15556   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15557 done
15558 IFS=$as_save_IFS
15559
15560      ;;
15561 esac
15562 # We did not find ourselves, most probably we were run as `sh COMMAND'
15563 # in which case we are not to be found in the path.
15564 if test "x$as_myself" = x; then
15565   as_myself=$0
15566 fi
15567 if test ! -f "$as_myself"; then
15568   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15569   { (exit 1); exit 1; }
15570 fi
15571
15572 # Work around bugs in pre-3.0 UWIN ksh.
15573 for as_var in ENV MAIL MAILPATH
15574 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15575 done
15576 PS1='$ '
15577 PS2='> '
15578 PS4='+ '
15579
15580 # NLS nuisances.
15581 for as_var in \
15582   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15583   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15584   LC_TELEPHONE LC_TIME
15585 do
15586   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15587     eval $as_var=C; export $as_var
15588   else
15589     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15590   fi
15591 done
15592
15593 # Required to use basename.
15594 if expr a : '\(a\)' >/dev/null 2>&1 &&
15595    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15596   as_expr=expr
15597 else
15598   as_expr=false
15599 fi
15600
15601 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15602   as_basename=basename
15603 else
15604   as_basename=false
15605 fi
15606
15607
15608 # Name of the executable.
15609 as_me=`$as_basename -- "$0" ||
15610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15611          X"$0" : 'X\(//\)$' \| \
15612          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15613 echo X/"$0" |
15614     sed '/^.*\/\([^/][^/]*\)\/*$/{
15615             s//\1/
15616             q
15617           }
15618           /^X\/\(\/\/\)$/{
15619             s//\1/
15620             q
15621           }
15622           /^X\/\(\/\).*/{
15623             s//\1/
15624             q
15625           }
15626           s/.*/./; q'`
15627
15628 # CDPATH.
15629 $as_unset CDPATH
15630
15631
15632
15633   as_lineno_1=$LINENO
15634   as_lineno_2=$LINENO
15635   test "x$as_lineno_1" != "x$as_lineno_2" &&
15636   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15637
15638   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15639   # uniformly replaced by the line number.  The first 'sed' inserts a
15640   # line-number line after each line using $LINENO; the second 'sed'
15641   # does the real work.  The second script uses 'N' to pair each
15642   # line-number line with the line containing $LINENO, and appends
15643   # trailing '-' during substitution so that $LINENO is not a special
15644   # case at line end.
15645   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15646   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15647   # E. McMahon (1931-1989) for sed's syntax.  :-)
15648   sed -n '
15649     p
15650     /[$]LINENO/=
15651   ' <$as_myself |
15652     sed '
15653       s/[$]LINENO.*/&-/
15654       t lineno
15655       b
15656       :lineno
15657       N
15658       :loop
15659       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15660       t loop
15661       s/-\n.*//
15662     ' >$as_me.lineno &&
15663   chmod +x "$as_me.lineno" ||
15664     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15665    { (exit 1); exit 1; }; }
15666
15667   # Don't try to exec as it changes $[0], causing all sort of problems
15668   # (the dirname of $[0] is not the place where we might find the
15669   # original and so on.  Autoconf is especially sensitive to this).
15670   . "./$as_me.lineno"
15671   # Exit status is that of the last command.
15672   exit
15673 }
15674
15675
15676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15677   as_dirname=dirname
15678 else
15679   as_dirname=false
15680 fi
15681
15682 ECHO_C= ECHO_N= ECHO_T=
15683 case `echo -n x` in
15684 -n*)
15685   case `echo 'x\c'` in
15686   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15687   *)   ECHO_C='\c';;
15688   esac;;
15689 *)
15690   ECHO_N='-n';;
15691 esac
15692
15693 if expr a : '\(a\)' >/dev/null 2>&1 &&
15694    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15695   as_expr=expr
15696 else
15697   as_expr=false
15698 fi
15699
15700 rm -f conf$$ conf$$.exe conf$$.file
15701 if test -d conf$$.dir; then
15702   rm -f conf$$.dir/conf$$.file
15703 else
15704   rm -f conf$$.dir
15705   mkdir conf$$.dir
15706 fi
15707 echo >conf$$.file
15708 if ln -s conf$$.file conf$$ 2>/dev/null; then
15709   as_ln_s='ln -s'
15710   # ... but there are two gotchas:
15711   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15712   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15713   # In both cases, we have to default to `cp -p'.
15714   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15715     as_ln_s='cp -p'
15716 elif ln conf$$.file conf$$ 2>/dev/null; then
15717   as_ln_s=ln
15718 else
15719   as_ln_s='cp -p'
15720 fi
15721 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15722 rmdir conf$$.dir 2>/dev/null
15723
15724 if mkdir -p . 2>/dev/null; then
15725   as_mkdir_p=:
15726 else
15727   test -d ./-p && rmdir ./-p
15728   as_mkdir_p=false
15729 fi
15730
15731 if test -x / >/dev/null 2>&1; then
15732   as_test_x='test -x'
15733 else
15734   if ls -dL / >/dev/null 2>&1; then
15735     as_ls_L_option=L
15736   else
15737     as_ls_L_option=
15738   fi
15739   as_test_x='
15740     eval sh -c '\''
15741       if test -d "$1"; then
15742         test -d "$1/.";
15743       else
15744         case $1 in
15745         -*)set "./$1";;
15746         esac;
15747         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15748         ???[sx]*):;;*)false;;esac;fi
15749     '\'' sh
15750   '
15751 fi
15752 as_executable_p=$as_test_x
15753
15754 # Sed expression to map a string onto a valid CPP name.
15755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15756
15757 # Sed expression to map a string onto a valid variable name.
15758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15759
15760
15761 exec 6>&1
15762
15763 # Save the log message, to keep $[0] and so on meaningful, and to
15764 # report actual input values of CONFIG_FILES etc. instead of their
15765 # values after options handling.
15766 ac_log="
15767 This file was extended by $as_me, which was
15768 generated by GNU Autoconf 2.61.  Invocation command line was
15769
15770   CONFIG_FILES    = $CONFIG_FILES
15771   CONFIG_HEADERS  = $CONFIG_HEADERS
15772   CONFIG_LINKS    = $CONFIG_LINKS
15773   CONFIG_COMMANDS = $CONFIG_COMMANDS
15774   $ $0 $@
15775
15776 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15777 "
15778
15779 _ACEOF
15780
15781 cat >>$CONFIG_STATUS <<_ACEOF
15782 # Files that config.status was made for.
15783 config_files="$ac_config_files"
15784 config_commands="$ac_config_commands"
15785
15786 _ACEOF
15787
15788 cat >>$CONFIG_STATUS <<\_ACEOF
15789 ac_cs_usage="\
15790 \`$as_me' instantiates files from templates according to the
15791 current configuration.
15792
15793 Usage: $0 [OPTIONS] [FILE]...
15794
15795   -h, --help       print this help, then exit
15796   -V, --version    print version number and configuration settings, then exit
15797   -q, --quiet      do not print progress messages
15798   -d, --debug      don't remove temporary files
15799       --recheck    update $as_me by reconfiguring in the same conditions
15800   --file=FILE[:TEMPLATE]
15801                    instantiate the configuration file FILE
15802
15803 Configuration files:
15804 $config_files
15805
15806 Configuration commands:
15807 $config_commands
15808
15809 Report bugs to <bug-autoconf@gnu.org>."
15810
15811 _ACEOF
15812 cat >>$CONFIG_STATUS <<_ACEOF
15813 ac_cs_version="\\
15814 config.status
15815 configured by $0, generated by GNU Autoconf 2.61,
15816   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15817
15818 Copyright (C) 2006 Free Software Foundation, Inc.
15819 This config.status script is free software; the Free Software Foundation
15820 gives unlimited permission to copy, distribute and modify it."
15821
15822 ac_pwd='$ac_pwd'
15823 srcdir='$srcdir'
15824 INSTALL='$INSTALL'
15825 _ACEOF
15826
15827 cat >>$CONFIG_STATUS <<\_ACEOF
15828 # If no file are specified by the user, then we need to provide default
15829 # value.  By we need to know if files were specified by the user.
15830 ac_need_defaults=:
15831 while test $# != 0
15832 do
15833   case $1 in
15834   --*=*)
15835     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15836     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15837     ac_shift=:
15838     ;;
15839   *)
15840     ac_option=$1
15841     ac_optarg=$2
15842     ac_shift=shift
15843     ;;
15844   esac
15845
15846   case $ac_option in
15847   # Handling of the options.
15848   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15849     ac_cs_recheck=: ;;
15850   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15851     echo "$ac_cs_version"; exit ;;
15852   --debug | --debu | --deb | --de | --d | -d )
15853     debug=: ;;
15854   --file | --fil | --fi | --f )
15855     $ac_shift
15856     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15857     ac_need_defaults=false;;
15858   --he | --h |  --help | --hel | -h )
15859     echo "$ac_cs_usage"; exit ;;
15860   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15861   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15862     ac_cs_silent=: ;;
15863
15864   # This is an error.
15865   -*) { echo "$as_me: error: unrecognized option: $1
15866 Try \`$0 --help' for more information." >&2
15867    { (exit 1); exit 1; }; } ;;
15868
15869   *) ac_config_targets="$ac_config_targets $1"
15870      ac_need_defaults=false ;;
15871
15872   esac
15873   shift
15874 done
15875
15876 ac_configure_extra_args=
15877
15878 if $ac_cs_silent; then
15879   exec 6>/dev/null
15880   ac_configure_extra_args="$ac_configure_extra_args --silent"
15881 fi
15882
15883 _ACEOF
15884 cat >>$CONFIG_STATUS <<_ACEOF
15885 if \$ac_cs_recheck; then
15886   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15887   CONFIG_SHELL=$SHELL
15888   export CONFIG_SHELL
15889   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15890 fi
15891
15892 _ACEOF
15893 cat >>$CONFIG_STATUS <<\_ACEOF
15894 exec 5>>config.log
15895 {
15896   echo
15897   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15898 ## Running $as_me. ##
15899 _ASBOX
15900   echo "$ac_log"
15901 } >&5
15902
15903 _ACEOF
15904 cat >>$CONFIG_STATUS <<_ACEOF
15905 #
15906 # INIT-COMMANDS
15907 #
15908 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15909     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15910     # from automake.
15911     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15912     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15913     LINGUAS="${LINGUAS-%UNSET%}"
15914
15915
15916 _ACEOF
15917
15918 cat >>$CONFIG_STATUS <<\_ACEOF
15919
15920 # Handling of arguments.
15921 for ac_config_target in $ac_config_targets
15922 do
15923   case $ac_config_target in
15924     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15925     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15926
15927   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15928 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15929    { (exit 1); exit 1; }; };;
15930   esac
15931 done
15932
15933
15934 # If the user did not use the arguments to specify the items to instantiate,
15935 # then the envvar interface is used.  Set only those that are not.
15936 # We use the long form for the default assignment because of an extremely
15937 # bizarre bug on SunOS 4.1.3.
15938 if $ac_need_defaults; then
15939   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15940   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15941 fi
15942
15943 # Have a temporary directory for convenience.  Make it in the build tree
15944 # simply because there is no reason against having it here, and in addition,
15945 # creating and moving files from /tmp can sometimes cause problems.
15946 # Hook for its removal unless debugging.
15947 # Note that there is a small window in which the directory will not be cleaned:
15948 # after its creation but before its name has been assigned to `$tmp'.
15949 $debug ||
15950 {
15951   tmp=
15952   trap 'exit_status=$?
15953   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15954 ' 0
15955   trap '{ (exit 1); exit 1; }' 1 2 13 15
15956 }
15957 # Create a (secure) tmp directory for tmp files.
15958
15959 {
15960   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15961   test -n "$tmp" && test -d "$tmp"
15962 }  ||
15963 {
15964   tmp=./conf$$-$RANDOM
15965   (umask 077 && mkdir "$tmp")
15966 } ||
15967 {
15968    echo "$me: cannot create a temporary directory in ." >&2
15969    { (exit 1); exit 1; }
15970 }
15971
15972 #
15973 # Set up the sed scripts for CONFIG_FILES section.
15974 #
15975
15976 # No need to generate the scripts if there are no CONFIG_FILES.
15977 # This happens for instance when ./config.status config.h
15978 if test -n "$CONFIG_FILES"; then
15979
15980 _ACEOF
15981
15982 # Create sed commands to just substitute file output variables.
15983
15984 # Remaining file output variables are in a fragment that also has non-file
15985 # output varibles.
15986
15987
15988
15989 ac_delim='%!_!# '
15990 for ac_last_try in false false false false false :; do
15991   cat >conf$$subs.sed <<_ACEOF
15992 SHELL!$SHELL$ac_delim
15993 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15994 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15995 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15996 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15997 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15998 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15999 exec_prefix!$exec_prefix$ac_delim
16000 prefix!$prefix$ac_delim
16001 program_transform_name!$program_transform_name$ac_delim
16002 bindir!$bindir$ac_delim
16003 sbindir!$sbindir$ac_delim
16004 libexecdir!$libexecdir$ac_delim
16005 datarootdir!$datarootdir$ac_delim
16006 datadir!$datadir$ac_delim
16007 sysconfdir!$sysconfdir$ac_delim
16008 sharedstatedir!$sharedstatedir$ac_delim
16009 localstatedir!$localstatedir$ac_delim
16010 includedir!$includedir$ac_delim
16011 oldincludedir!$oldincludedir$ac_delim
16012 docdir!$docdir$ac_delim
16013 infodir!$infodir$ac_delim
16014 htmldir!$htmldir$ac_delim
16015 dvidir!$dvidir$ac_delim
16016 pdfdir!$pdfdir$ac_delim
16017 psdir!$psdir$ac_delim
16018 libdir!$libdir$ac_delim
16019 localedir!$localedir$ac_delim
16020 mandir!$mandir$ac_delim
16021 DEFS!$DEFS$ac_delim
16022 ECHO_C!$ECHO_C$ac_delim
16023 ECHO_N!$ECHO_N$ac_delim
16024 ECHO_T!$ECHO_T$ac_delim
16025 LIBS!$LIBS$ac_delim
16026 build_alias!$build_alias$ac_delim
16027 host_alias!$host_alias$ac_delim
16028 target_alias!$target_alias$ac_delim
16029 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16030 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16031 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16032 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16033 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16034 build!$build$ac_delim
16035 build_cpu!$build_cpu$ac_delim
16036 build_vendor!$build_vendor$ac_delim
16037 build_os!$build_os$ac_delim
16038 host!$host$ac_delim
16039 host_cpu!$host_cpu$ac_delim
16040 host_vendor!$host_vendor$ac_delim
16041 host_os!$host_os$ac_delim
16042 CC!$CC$ac_delim
16043 CFLAGS!$CFLAGS$ac_delim
16044 LDFLAGS!$LDFLAGS$ac_delim
16045 CPPFLAGS!$CPPFLAGS$ac_delim
16046 ac_ct_CC!$ac_ct_CC$ac_delim
16047 EXEEXT!$EXEEXT$ac_delim
16048 OBJEXT!$OBJEXT$ac_delim
16049 CPP!$CPP$ac_delim
16050 LD!$LD$ac_delim
16051 GREP!$GREP$ac_delim
16052 EGREP!$EGREP$ac_delim
16053 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16054 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16055 HTREE_CMT!$HTREE_CMT$ac_delim
16056 ELF_CMT!$ELF_CMT$ac_delim
16057 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16058 PROFILE_CMT!$PROFILE_CMT$ac_delim
16059 CHECKER_CMT!$CHECKER_CMT$ac_delim
16060 LIB_EXT!$LIB_EXT$ac_delim
16061 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16062 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16063 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16064 IMAGER_CMT!$IMAGER_CMT$ac_delim
16065 RESIZER_CMT!$RESIZER_CMT$ac_delim
16066 FSCK_PROG!$FSCK_PROG$ac_delim
16067 FSCK_MAN!$FSCK_MAN$ac_delim
16068 _ACEOF
16069
16070   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16071     break
16072   elif $ac_last_try; then
16073     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16074 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16075    { (exit 1); exit 1; }; }
16076   else
16077     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16078   fi
16079 done
16080
16081 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16082 if test -n "$ac_eof"; then
16083   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16084   ac_eof=`expr $ac_eof + 1`
16085 fi
16086
16087 cat >>$CONFIG_STATUS <<_ACEOF
16088 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16090 /^[      ]*@MCONFIG@[    ]*$/{
16091 r $MCONFIG
16092 d
16093 }
16094 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
16095 r $MAKEFILE_ELF
16096 d
16097 }
16098 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
16099 r $MAKEFILE_BSDLIB
16100 d
16101 }
16102 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
16103 r $MAKEFILE_PROFILE
16104 d
16105 }
16106 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
16107 r $MAKEFILE_CHECKER
16108 d
16109 }
16110 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
16111 r $MAKEFILE_LIBRARY
16112 d
16113 }
16114 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
16115 r $ASM_TYPES_HEADER
16116 d
16117 }
16118 _ACEOF
16119 sed '
16120 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16121 s/^/s,@/; s/!/@,|#_!!_#|/
16122 :n
16123 t n
16124 s/'"$ac_delim"'$/,g/; t
16125 s/$/\\/; p
16126 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16127 ' >>$CONFIG_STATUS <conf$$subs.sed
16128 rm -f conf$$subs.sed
16129 cat >>$CONFIG_STATUS <<_ACEOF
16130 CEOF$ac_eof
16131 _ACEOF
16132
16133
16134 ac_delim='%!_!# '
16135 for ac_last_try in false false false false false :; do
16136   cat >conf$$subs.sed <<_ACEOF
16137 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16138 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16139 PKG_CONFIG!$PKG_CONFIG$ac_delim
16140 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16141 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16142 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16143 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16144 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16145 UUIDD_CMT!$UUIDD_CMT$ac_delim
16146 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16147 PACKAGE!$PACKAGE$ac_delim
16148 VERSION!$VERSION$ac_delim
16149 SET_MAKE!$SET_MAKE$ac_delim
16150 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16151 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16152 INSTALL_DATA!$INSTALL_DATA$ac_delim
16153 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16154 USE_NLS!$USE_NLS$ac_delim
16155 MSGFMT!$MSGFMT$ac_delim
16156 GMSGFMT!$GMSGFMT$ac_delim
16157 XGETTEXT!$XGETTEXT$ac_delim
16158 MSGMERGE!$MSGMERGE$ac_delim
16159 RANLIB!$RANLIB$ac_delim
16160 ALLOCA!$ALLOCA$ac_delim
16161 GLIBC21!$GLIBC21$ac_delim
16162 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16163 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16164 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16165 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16166 LIBICONV!$LIBICONV$ac_delim
16167 LTLIBICONV!$LTLIBICONV$ac_delim
16168 INTLBISON!$INTLBISON$ac_delim
16169 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16170 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16171 CATOBJEXT!$CATOBJEXT$ac_delim
16172 DATADIRNAME!$DATADIRNAME$ac_delim
16173 INSTOBJEXT!$INSTOBJEXT$ac_delim
16174 GENCAT!$GENCAT$ac_delim
16175 INTLOBJS!$INTLOBJS$ac_delim
16176 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16177 INTLLIBS!$INTLLIBS$ac_delim
16178 LIBINTL!$LIBINTL$ac_delim
16179 LTLIBINTL!$LTLIBINTL$ac_delim
16180 POSUB!$POSUB$ac_delim
16181 BINARY_TYPE!$BINARY_TYPE$ac_delim
16182 LN!$LN$ac_delim
16183 LN_S!$LN_S$ac_delim
16184 MV!$MV$ac_delim
16185 CP!$CP$ac_delim
16186 RM!$RM$ac_delim
16187 CHMOD!$CHMOD$ac_delim
16188 AWK!$AWK$ac_delim
16189 SED!$SED$ac_delim
16190 PERL!$PERL$ac_delim
16191 LDCONFIG!$LDCONFIG$ac_delim
16192 AR!$AR$ac_delim
16193 STRIP!$STRIP$ac_delim
16194 MAKEINFO!$MAKEINFO$ac_delim
16195 BUILD_CC!$BUILD_CC$ac_delim
16196 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16197 SIZEOF_INT!$SIZEOF_INT$ac_delim
16198 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16199 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16200 SOCKET_LIB!$SOCKET_LIB$ac_delim
16201 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16202 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16203 LINUX_CMT!$LINUX_CMT$ac_delim
16204 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16205 UNIX_CMT!$UNIX_CMT$ac_delim
16206 root_prefix!$root_prefix$ac_delim
16207 root_bindir!$root_bindir$ac_delim
16208 root_sbindir!$root_sbindir$ac_delim
16209 root_libdir!$root_libdir$ac_delim
16210 root_sysconfdir!$root_sysconfdir$ac_delim
16211 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16212 SS_DIR!$SS_DIR$ac_delim
16213 ET_DIR!$ET_DIR$ac_delim
16214 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16215 INTL_FLAGS!$INTL_FLAGS$ac_delim
16216 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16217 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16218 LIBOBJS!$LIBOBJS$ac_delim
16219 LTLIBOBJS!$LTLIBOBJS$ac_delim
16220 _ACEOF
16221
16222   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
16223     break
16224   elif $ac_last_try; then
16225     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16226 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16227    { (exit 1); exit 1; }; }
16228   else
16229     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16230   fi
16231 done
16232
16233 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16234 if test -n "$ac_eof"; then
16235   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16236   ac_eof=`expr $ac_eof + 1`
16237 fi
16238
16239 cat >>$CONFIG_STATUS <<_ACEOF
16240 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16242 _ACEOF
16243 sed '
16244 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16245 s/^/s,@/; s/!/@,|#_!!_#|/
16246 :n
16247 t n
16248 s/'"$ac_delim"'$/,g/; t
16249 s/$/\\/; p
16250 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16251 ' >>$CONFIG_STATUS <conf$$subs.sed
16252 rm -f conf$$subs.sed
16253 cat >>$CONFIG_STATUS <<_ACEOF
16254 :end
16255 s/|#_!!_#|//g
16256 CEOF$ac_eof
16257 _ACEOF
16258
16259
16260 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16261 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16262 # trailing colons and then remove the whole line if VPATH becomes empty
16263 # (actually we leave an empty line to preserve line numbers).
16264 if test "x$srcdir" = x.; then
16265   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16266 s/:*\$(srcdir):*/:/
16267 s/:*\${srcdir}:*/:/
16268 s/:*@srcdir@:*/:/
16269 s/^\([^=]*=[     ]*\):*/\1/
16270 s/:*$//
16271 s/^[^=]*=[       ]*$//
16272 }'
16273 fi
16274
16275 cat >>$CONFIG_STATUS <<\_ACEOF
16276 fi # test -n "$CONFIG_FILES"
16277
16278
16279 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
16280 do
16281   case $ac_tag in
16282   :[FHLC]) ac_mode=$ac_tag; continue;;
16283   esac
16284   case $ac_mode$ac_tag in
16285   :[FHL]*:*);;
16286   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16287 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16288    { (exit 1); exit 1; }; };;
16289   :[FH]-) ac_tag=-:-;;
16290   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16291   esac
16292   ac_save_IFS=$IFS
16293   IFS=:
16294   set x $ac_tag
16295   IFS=$ac_save_IFS
16296   shift
16297   ac_file=$1
16298   shift
16299
16300   case $ac_mode in
16301   :L) ac_source=$1;;
16302   :[FH])
16303     ac_file_inputs=
16304     for ac_f
16305     do
16306       case $ac_f in
16307       -) ac_f="$tmp/stdin";;
16308       *) # Look for the file first in the build tree, then in the source tree
16309          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16310          # because $ac_f cannot contain `:'.
16311          test -f "$ac_f" ||
16312            case $ac_f in
16313            [\\/$]*) false;;
16314            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16315            esac ||
16316            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16317 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16318    { (exit 1); exit 1; }; };;
16319       esac
16320       ac_file_inputs="$ac_file_inputs $ac_f"
16321     done
16322
16323     # Let's still pretend it is `configure' which instantiates (i.e., don't
16324     # use $as_me), people would be surprised to read:
16325     #    /* config.h.  Generated by config.status.  */
16326     configure_input="Generated from "`IFS=:
16327           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16328     if test x"$ac_file" != x-; then
16329       configure_input="$ac_file.  $configure_input"
16330       { echo "$as_me:$LINENO: creating $ac_file" >&5
16331 echo "$as_me: creating $ac_file" >&6;}
16332     fi
16333
16334     case $ac_tag in
16335     *:-:* | *:-) cat >"$tmp/stdin";;
16336     esac
16337     ;;
16338   esac
16339
16340   ac_dir=`$as_dirname -- "$ac_file" ||
16341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16342          X"$ac_file" : 'X\(//\)[^/]' \| \
16343          X"$ac_file" : 'X\(//\)$' \| \
16344          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16345 echo X"$ac_file" |
16346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16347             s//\1/
16348             q
16349           }
16350           /^X\(\/\/\)[^/].*/{
16351             s//\1/
16352             q
16353           }
16354           /^X\(\/\/\)$/{
16355             s//\1/
16356             q
16357           }
16358           /^X\(\/\).*/{
16359             s//\1/
16360             q
16361           }
16362           s/.*/./; q'`
16363   { as_dir="$ac_dir"
16364   case $as_dir in #(
16365   -*) as_dir=./$as_dir;;
16366   esac
16367   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16368     as_dirs=
16369     while :; do
16370       case $as_dir in #(
16371       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16372       *) as_qdir=$as_dir;;
16373       esac
16374       as_dirs="'$as_qdir' $as_dirs"
16375       as_dir=`$as_dirname -- "$as_dir" ||
16376 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16377          X"$as_dir" : 'X\(//\)[^/]' \| \
16378          X"$as_dir" : 'X\(//\)$' \| \
16379          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16380 echo X"$as_dir" |
16381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16382             s//\1/
16383             q
16384           }
16385           /^X\(\/\/\)[^/].*/{
16386             s//\1/
16387             q
16388           }
16389           /^X\(\/\/\)$/{
16390             s//\1/
16391             q
16392           }
16393           /^X\(\/\).*/{
16394             s//\1/
16395             q
16396           }
16397           s/.*/./; q'`
16398       test -d "$as_dir" && break
16399     done
16400     test -z "$as_dirs" || eval "mkdir $as_dirs"
16401   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16402 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16403    { (exit 1); exit 1; }; }; }
16404   ac_builddir=.
16405
16406 case "$ac_dir" in
16407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16408 *)
16409   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16410   # A ".." for each directory in $ac_dir_suffix.
16411   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16412   case $ac_top_builddir_sub in
16413   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16414   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16415   esac ;;
16416 esac
16417 ac_abs_top_builddir=$ac_pwd
16418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16419 # for backward compatibility:
16420 ac_top_builddir=$ac_top_build_prefix
16421
16422 case $srcdir in
16423   .)  # We are building in place.
16424     ac_srcdir=.
16425     ac_top_srcdir=$ac_top_builddir_sub
16426     ac_abs_top_srcdir=$ac_pwd ;;
16427   [\\/]* | ?:[\\/]* )  # Absolute name.
16428     ac_srcdir=$srcdir$ac_dir_suffix;
16429     ac_top_srcdir=$srcdir
16430     ac_abs_top_srcdir=$srcdir ;;
16431   *) # Relative name.
16432     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16433     ac_top_srcdir=$ac_top_build_prefix$srcdir
16434     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16435 esac
16436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16437
16438
16439   case $ac_mode in
16440   :F)
16441   #
16442   # CONFIG_FILE
16443   #
16444
16445   case $INSTALL in
16446   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16447   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16448   esac
16449 _ACEOF
16450
16451 cat >>$CONFIG_STATUS <<\_ACEOF
16452 # If the template does not know about datarootdir, expand it.
16453 # FIXME: This hack should be removed a few years after 2.60.
16454 ac_datarootdir_hack=; ac_datarootdir_seen=
16455
16456 case `sed -n '/datarootdir/ {
16457   p
16458   q
16459 }
16460 /@datadir@/p
16461 /@docdir@/p
16462 /@infodir@/p
16463 /@localedir@/p
16464 /@mandir@/p
16465 ' $ac_file_inputs` in
16466 *datarootdir*) ac_datarootdir_seen=yes;;
16467 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16468   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16469 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16470 _ACEOF
16471 cat >>$CONFIG_STATUS <<_ACEOF
16472   ac_datarootdir_hack='
16473   s&@datadir@&$datadir&g
16474   s&@docdir@&$docdir&g
16475   s&@infodir@&$infodir&g
16476   s&@localedir@&$localedir&g
16477   s&@mandir@&$mandir&g
16478     s&\\\${datarootdir}&$datarootdir&g' ;;
16479 esac
16480 _ACEOF
16481
16482 # Neutralize VPATH when `$srcdir' = `.'.
16483 # Shell code in configure.ac might set extrasub.
16484 # FIXME: do we really want to maintain this feature?
16485 cat >>$CONFIG_STATUS <<_ACEOF
16486   sed "$ac_vpsub
16487 $extrasub
16488 _ACEOF
16489 cat >>$CONFIG_STATUS <<\_ACEOF
16490 :t
16491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16492 s&@configure_input@&$configure_input&;t t
16493 s&@top_builddir@&$ac_top_builddir_sub&;t t
16494 s&@srcdir@&$ac_srcdir&;t t
16495 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16496 s&@top_srcdir@&$ac_top_srcdir&;t t
16497 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16498 s&@builddir@&$ac_builddir&;t t
16499 s&@abs_builddir@&$ac_abs_builddir&;t t
16500 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16501 s&@INSTALL@&$ac_INSTALL&;t t
16502 $ac_datarootdir_hack
16503 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16504
16505 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16506   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16507   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16508   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16509 which seems to be undefined.  Please make sure it is defined." >&5
16510 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16511 which seems to be undefined.  Please make sure it is defined." >&2;}
16512
16513   rm -f "$tmp/stdin"
16514   case $ac_file in
16515   -) cat "$tmp/out"; rm -f "$tmp/out";;
16516   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16517   esac
16518  ;;
16519
16520
16521   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16522 echo "$as_me: executing $ac_file commands" >&6;}
16523  ;;
16524   esac
16525
16526
16527   case $ac_file$ac_mode in
16528     "default-1":C)
16529     for ac_file in $CONFIG_FILES; do
16530       # Support "outfile[:infile[:infile...]]"
16531       case "$ac_file" in
16532         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16533       esac
16534       # PO directories have a Makefile.in generated from Makefile.in.in.
16535       case "$ac_file" in */Makefile.in)
16536         # Adjust a relative srcdir.
16537         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16538         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16539         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16540         # In autoconf-2.13 it is called $ac_given_srcdir.
16541         # In autoconf-2.50 it is called $srcdir.
16542         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16543         case "$ac_given_srcdir" in
16544           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16545           /*) top_srcdir="$ac_given_srcdir" ;;
16546           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16547         esac
16548         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16549           rm -f "$ac_dir/POTFILES"
16550           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16551           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16552           POMAKEFILEDEPS="POTFILES.in"
16553           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16554           # on $ac_dir but don't depend on user-specified configuration
16555           # parameters.
16556           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16557             # The LINGUAS file contains the set of available languages.
16558             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16559               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16560             fi
16561             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16562             # Hide the ALL_LINGUAS assigment from automake.
16563             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16564             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16565           else
16566             # The set of available languages was given in configure.in.
16567             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16568           fi
16569           # Compute POFILES
16570           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16571           # Compute UPDATEPOFILES
16572           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16573           # Compute DUMMYPOFILES
16574           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16575           # Compute GMOFILES
16576           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16577           case "$ac_given_srcdir" in
16578             .) srcdirpre= ;;
16579             *) srcdirpre='$(srcdir)/' ;;
16580           esac
16581           POFILES=
16582           UPDATEPOFILES=
16583           DUMMYPOFILES=
16584           GMOFILES=
16585           for lang in $ALL_LINGUAS; do
16586             POFILES="$POFILES $srcdirpre$lang.po"
16587             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16588             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16589             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16590           done
16591           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16592           # environment variable.
16593           INST_LINGUAS=
16594           if test -n "$ALL_LINGUAS"; then
16595             for presentlang in $ALL_LINGUAS; do
16596               useit=no
16597               if test "%UNSET%" != "$LINGUAS"; then
16598                 desiredlanguages="$LINGUAS"
16599               else
16600                 desiredlanguages="$ALL_LINGUAS"
16601               fi
16602               for desiredlang in $desiredlanguages; do
16603                 # Use the presentlang catalog if desiredlang is
16604                 #   a. equal to presentlang, or
16605                 #   b. a variant of presentlang (because in this case,
16606                 #      presentlang can be used as a fallback for messages
16607                 #      which are not translated in the desiredlang catalog).
16608                 case "$desiredlang" in
16609                   "$presentlang"*) useit=yes;;
16610                 esac
16611               done
16612               if test $useit = yes; then
16613                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16614               fi
16615             done
16616           fi
16617           CATALOGS=
16618           if test -n "$INST_LINGUAS"; then
16619             for lang in $INST_LINGUAS; do
16620               CATALOGS="$CATALOGS $lang.gmo"
16621             done
16622           fi
16623           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16624           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"
16625           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16626             if test -f "$f"; then
16627               case "$f" in
16628                 *.orig | *.bak | *~) ;;
16629                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16630               esac
16631             fi
16632           done
16633         fi
16634         ;;
16635       esac
16636     done ;;
16637
16638   esac
16639 done # for ac_tag
16640
16641
16642 { (exit 0); exit 0; }
16643 _ACEOF
16644 chmod +x $CONFIG_STATUS
16645 ac_clean_files=$ac_clean_files_save
16646
16647
16648 # configure is writing to config.log, and then calls config.status.
16649 # config.status does its own redirection, appending to config.log.
16650 # Unfortunately, on DOS this fails, as config.log is still kept open
16651 # by configure, so config.status won't be able to write to it; its
16652 # output is simply discarded.  So we exec the FD to /dev/null,
16653 # effectively closing config.log, so it can be properly (re)opened and
16654 # appended to by config.status.  When coming back to configure, we
16655 # need to make the FD available again.
16656 if test "$no_create" != yes; then
16657   ac_cs_success=:
16658   ac_config_status_args=
16659   test "$silent" = yes &&
16660     ac_config_status_args="$ac_config_status_args --quiet"
16661   exec 5>/dev/null
16662   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16663   exec 5>>config.log
16664   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16665   # would make configure fail if this is the last instruction.
16666   $ac_cs_success || { (exit 1); exit 1; }
16667 fi
16668
16669 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16670