Whamcloud - gitweb
Merge branch 'maint' into next
[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 BUILD_CC
750 SIZEOF_SHORT
751 SIZEOF_INT
752 SIZEOF_LONG
753 SIZEOF_LONG_LONG
754 SOCKET_LIB
755 DLOPEN_LIB
756 UNI_DIFF_OPTS
757 LINUX_CMT
758 CYGWIN_CMT
759 UNIX_CMT
760 root_prefix
761 root_bindir
762 root_sbindir
763 root_libdir
764 root_sysconfdir
765 LDFLAG_STATIC
766 SS_DIR
767 ET_DIR
768 DO_TEST_SUITE
769 INTL_FLAGS
770 BUILD_CFLAGS
771 BUILD_LDFLAGS
772 LIBOBJS
773 LTLIBOBJS'
774 ac_subst_files='MCONFIG
775 MAKEFILE_ELF
776 MAKEFILE_BSDLIB
777 MAKEFILE_PROFILE
778 MAKEFILE_CHECKER
779 MAKEFILE_LIBRARY
780 ASM_TYPES_HEADER'
781       ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CPP
790 PKG_CONFIG'
791
792
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
812
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
838
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843   # If the previous option needs an argument, assign it.
844   if test -n "$ac_prev"; then
845     eval $ac_prev=\$ac_option
846     ac_prev=
847     continue
848   fi
849
850   case $ac_option in
851   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852   *)    ac_optarg=yes ;;
853   esac
854
855   # Accept the important Cygnus configure options, so we can diagnose typos.
856
857   case $ac_dashdash$ac_option in
858   --)
859     ac_dashdash=yes ;;
860
861   -bindir | --bindir | --bindi | --bind | --bin | --bi)
862     ac_prev=bindir ;;
863   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864     bindir=$ac_optarg ;;
865
866   -build | --build | --buil | --bui | --bu)
867     ac_prev=build_alias ;;
868   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869     build_alias=$ac_optarg ;;
870
871   -cache-file | --cache-file | --cache-fil | --cache-fi \
872   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873     ac_prev=cache_file ;;
874   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876     cache_file=$ac_optarg ;;
877
878   --config-cache | -C)
879     cache_file=config.cache ;;
880
881   -datadir | --datadir | --datadi | --datad)
882     ac_prev=datadir ;;
883   -datadir=* | --datadir=* | --datadi=* | --datad=*)
884     datadir=$ac_optarg ;;
885
886   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887   | --dataroo | --dataro | --datar)
888     ac_prev=datarootdir ;;
889   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891     datarootdir=$ac_optarg ;;
892
893   -disable-* | --disable-*)
894     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895     # Reject names that are not valid shell variable names.
896     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
897       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
898    { (exit 1); exit 1; }; }
899     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
900     eval enable_$ac_feature=no ;;
901
902   -docdir | --docdir | --docdi | --doc | --do)
903     ac_prev=docdir ;;
904   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905     docdir=$ac_optarg ;;
906
907   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908     ac_prev=dvidir ;;
909   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910     dvidir=$ac_optarg ;;
911
912   -enable-* | --enable-*)
913     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914     # Reject names that are not valid shell variable names.
915     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
916       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
917    { (exit 1); exit 1; }; }
918     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
919     eval enable_$ac_feature=\$ac_optarg ;;
920
921   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923   | --exec | --exe | --ex)
924     ac_prev=exec_prefix ;;
925   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927   | --exec=* | --exe=* | --ex=*)
928     exec_prefix=$ac_optarg ;;
929
930   -gas | --gas | --ga | --g)
931     # Obsolete; use --with-gas.
932     with_gas=yes ;;
933
934   -help | --help | --hel | --he | -h)
935     ac_init_help=long ;;
936   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937     ac_init_help=recursive ;;
938   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939     ac_init_help=short ;;
940
941   -host | --host | --hos | --ho)
942     ac_prev=host_alias ;;
943   -host=* | --host=* | --hos=* | --ho=*)
944     host_alias=$ac_optarg ;;
945
946   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947     ac_prev=htmldir ;;
948   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949   | --ht=*)
950     htmldir=$ac_optarg ;;
951
952   -includedir | --includedir | --includedi | --included | --include \
953   | --includ | --inclu | --incl | --inc)
954     ac_prev=includedir ;;
955   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956   | --includ=* | --inclu=* | --incl=* | --inc=*)
957     includedir=$ac_optarg ;;
958
959   -infodir | --infodir | --infodi | --infod | --info | --inf)
960     ac_prev=infodir ;;
961   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962     infodir=$ac_optarg ;;
963
964   -libdir | --libdir | --libdi | --libd)
965     ac_prev=libdir ;;
966   -libdir=* | --libdir=* | --libdi=* | --libd=*)
967     libdir=$ac_optarg ;;
968
969   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970   | --libexe | --libex | --libe)
971     ac_prev=libexecdir ;;
972   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973   | --libexe=* | --libex=* | --libe=*)
974     libexecdir=$ac_optarg ;;
975
976   -localedir | --localedir | --localedi | --localed | --locale)
977     ac_prev=localedir ;;
978   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979     localedir=$ac_optarg ;;
980
981   -localstatedir | --localstatedir | --localstatedi | --localstated \
982   | --localstate | --localstat | --localsta | --localst | --locals)
983     ac_prev=localstatedir ;;
984   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986     localstatedir=$ac_optarg ;;
987
988   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989     ac_prev=mandir ;;
990   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991     mandir=$ac_optarg ;;
992
993   -nfp | --nfp | --nf)
994     # Obsolete; use --without-fp.
995     with_fp=no ;;
996
997   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998   | --no-cr | --no-c | -n)
999     no_create=yes ;;
1000
1001   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003     no_recursion=yes ;;
1004
1005   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007   | --oldin | --oldi | --old | --ol | --o)
1008     ac_prev=oldincludedir ;;
1009   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012     oldincludedir=$ac_optarg ;;
1013
1014   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015     ac_prev=prefix ;;
1016   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017     prefix=$ac_optarg ;;
1018
1019   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020   | --program-pre | --program-pr | --program-p)
1021     ac_prev=program_prefix ;;
1022   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024     program_prefix=$ac_optarg ;;
1025
1026   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027   | --program-suf | --program-su | --program-s)
1028     ac_prev=program_suffix ;;
1029   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031     program_suffix=$ac_optarg ;;
1032
1033   -program-transform-name | --program-transform-name \
1034   | --program-transform-nam | --program-transform-na \
1035   | --program-transform-n | --program-transform- \
1036   | --program-transform | --program-transfor \
1037   | --program-transfo | --program-transf \
1038   | --program-trans | --program-tran \
1039   | --progr-tra | --program-tr | --program-t)
1040     ac_prev=program_transform_name ;;
1041   -program-transform-name=* | --program-transform-name=* \
1042   | --program-transform-nam=* | --program-transform-na=* \
1043   | --program-transform-n=* | --program-transform-=* \
1044   | --program-transform=* | --program-transfor=* \
1045   | --program-transfo=* | --program-transf=* \
1046   | --program-trans=* | --program-tran=* \
1047   | --progr-tra=* | --program-tr=* | --program-t=*)
1048     program_transform_name=$ac_optarg ;;
1049
1050   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051     ac_prev=pdfdir ;;
1052   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053     pdfdir=$ac_optarg ;;
1054
1055   -psdir | --psdir | --psdi | --psd | --ps)
1056     ac_prev=psdir ;;
1057   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058     psdir=$ac_optarg ;;
1059
1060   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061   | -silent | --silent | --silen | --sile | --sil)
1062     silent=yes ;;
1063
1064   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065     ac_prev=sbindir ;;
1066   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067   | --sbi=* | --sb=*)
1068     sbindir=$ac_optarg ;;
1069
1070   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072   | --sharedst | --shareds | --shared | --share | --shar \
1073   | --sha | --sh)
1074     ac_prev=sharedstatedir ;;
1075   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078   | --sha=* | --sh=*)
1079     sharedstatedir=$ac_optarg ;;
1080
1081   -site | --site | --sit)
1082     ac_prev=site ;;
1083   -site=* | --site=* | --sit=*)
1084     site=$ac_optarg ;;
1085
1086   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087     ac_prev=srcdir ;;
1088   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089     srcdir=$ac_optarg ;;
1090
1091   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092   | --syscon | --sysco | --sysc | --sys | --sy)
1093     ac_prev=sysconfdir ;;
1094   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096     sysconfdir=$ac_optarg ;;
1097
1098   -target | --target | --targe | --targ | --tar | --ta | --t)
1099     ac_prev=target_alias ;;
1100   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101     target_alias=$ac_optarg ;;
1102
1103   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104     verbose=yes ;;
1105
1106   -version | --version | --versio | --versi | --vers | -V)
1107     ac_init_version=: ;;
1108
1109   -with-* | --with-*)
1110     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111     # Reject names that are not valid shell variable names.
1112     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113       { echo "$as_me: error: invalid package name: $ac_package" >&2
1114    { (exit 1); exit 1; }; }
1115     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1116     eval with_$ac_package=\$ac_optarg ;;
1117
1118   -without-* | --without-*)
1119     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120     # Reject names that are not valid shell variable names.
1121     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122       { echo "$as_me: error: invalid package name: $ac_package" >&2
1123    { (exit 1); exit 1; }; }
1124     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1125     eval with_$ac_package=no ;;
1126
1127   --x)
1128     # Obsolete; use --with-x.
1129     with_x=yes ;;
1130
1131   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132   | --x-incl | --x-inc | --x-in | --x-i)
1133     ac_prev=x_includes ;;
1134   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136     x_includes=$ac_optarg ;;
1137
1138   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140     ac_prev=x_libraries ;;
1141   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143     x_libraries=$ac_optarg ;;
1144
1145   -*) { echo "$as_me: error: unrecognized option: $ac_option
1146 Try \`$0 --help' for more information." >&2
1147    { (exit 1); exit 1; }; }
1148     ;;
1149
1150   *=*)
1151     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1155    { (exit 1); exit 1; }; }
1156     eval $ac_envvar=\$ac_optarg
1157     export $ac_envvar ;;
1158
1159   *)
1160     # FIXME: should be removed in autoconf 3.0.
1161     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165     ;;
1166
1167   esac
1168 done
1169
1170 if test -n "$ac_prev"; then
1171   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172   { echo "$as_me: error: missing argument to $ac_option" >&2
1173    { (exit 1); exit 1; }; }
1174 fi
1175
1176 # Be sure to have absolute directory names.
1177 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178                 datadir sysconfdir sharedstatedir localstatedir includedir \
1179                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180                 libdir localedir mandir
1181 do
1182   eval ac_val=\$$ac_var
1183   case $ac_val in
1184     [\\/$]* | ?:[\\/]* )  continue;;
1185     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186   esac
1187   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1188    { (exit 1); exit 1; }; }
1189 done
1190
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1197
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200   if test "x$build_alias" = x; then
1201     cross_compiling=maybe
1202     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203     If a cross compiler is detected then cross compile mode will be used." >&2
1204   elif test "x$build_alias" != "x$host_alias"; then
1205     cross_compiling=yes
1206   fi
1207 fi
1208
1209 ac_tool_prefix=
1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
1212 test "$silent" = yes && exec 6>/dev/null
1213
1214
1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di=`ls -di .` &&
1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218   { echo "$as_me: error: Working directory cannot be determined" >&2
1219    { (exit 1); exit 1; }; }
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221   { echo "$as_me: error: pwd does not report name of working directory" >&2
1222    { (exit 1); exit 1; }; }
1223
1224
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227   ac_srcdir_defaulted=yes
1228   # Try the directory containing this script, then the parent directory.
1229   ac_confdir=`$as_dirname -- "$0" ||
1230 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231          X"$0" : 'X\(//\)[^/]' \| \
1232          X"$0" : 'X\(//\)$' \| \
1233          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1234 echo X"$0" |
1235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\/\)[^/].*/{
1240             s//\1/
1241             q
1242           }
1243           /^X\(\/\/\)$/{
1244             s//\1/
1245             q
1246           }
1247           /^X\(\/\).*/{
1248             s//\1/
1249             q
1250           }
1251           s/.*/./; q'`
1252   srcdir=$ac_confdir
1253   if test ! -r "$srcdir/$ac_unique_file"; then
1254     srcdir=..
1255   fi
1256 else
1257   ac_srcdir_defaulted=no
1258 fi
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1262    { (exit 1); exit 1; }; }
1263 fi
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 ac_abs_confdir=`(
1266         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1267    { (exit 1); exit 1; }; }
1268         pwd)`
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271   srcdir=.
1272 fi
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1276 case $srcdir in
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 esac
1279 for ac_var in $ac_precious_vars; do
1280   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281   eval ac_env_${ac_var}_value=\$${ac_var}
1282   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 done
1285
1286 #
1287 # Report the --help message.
1288 #
1289 if test "$ac_init_help" = "long"; then
1290   # Omit some internal or obsolete options to make the list less imposing.
1291   # This message is too long to be a string in the A/UX 3.1 sh.
1292   cat <<_ACEOF
1293 \`configure' configures this package to adapt to many kinds of systems.
1294
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1296
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE.  See below for descriptions of some of the useful variables.
1299
1300 Defaults for the options are specified in brackets.
1301
1302 Configuration:
1303   -h, --help              display this help and exit
1304       --help=short        display options specific to this package
1305       --help=recursive    display the short help of all the included packages
1306   -V, --version           display version information and exit
1307   -q, --quiet, --silent   do not print \`checking...' messages
1308       --cache-file=FILE   cache test results in FILE [disabled]
1309   -C, --config-cache      alias for \`--cache-file=config.cache'
1310   -n, --no-create         do not create output files
1311       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1312
1313 Installation directories:
1314   --prefix=PREFIX         install architecture-independent files in PREFIX
1315                           [$ac_default_prefix]
1316   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1317                           [PREFIX]
1318
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1323
1324 For better control, use the options below.
1325
1326 Fine tuning of the installation directories:
1327   --bindir=DIR           user executables [EPREFIX/bin]
1328   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1329   --libexecdir=DIR       program executables [EPREFIX/libexec]
1330   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1331   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1332   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1333   --libdir=DIR           object code libraries [EPREFIX/lib]
1334   --includedir=DIR       C header files [PREFIX/include]
1335   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1336   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1337   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1338   --infodir=DIR          info documentation [DATAROOTDIR/info]
1339   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1340   --mandir=DIR           man documentation [DATAROOTDIR/man]
1341   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1342   --htmldir=DIR          html documentation [DOCDIR]
1343   --dvidir=DIR           dvi documentation [DOCDIR]
1344   --pdfdir=DIR           pdf documentation [DOCDIR]
1345   --psdir=DIR            ps documentation [DOCDIR]
1346 _ACEOF
1347
1348   cat <<\_ACEOF
1349
1350 System types:
1351   --build=BUILD     configure for building on BUILD [guessed]
1352   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1353 _ACEOF
1354 fi
1355
1356 if test -n "$ac_init_help"; then
1357
1358   cat <<\_ACEOF
1359
1360 Optional Features:
1361   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1362   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1363   --enable-maintainer-mode enable makefile rules useful for maintainers
1364   --enable-compression    enable EXPERIMENTAL compression support
1365   --enable-htree          enable EXPERIMENTAL htree directory support
1366   --enable-elf-shlibs     select ELF shared libraries
1367   --enable-bsd-shlibs     select BSD shared libraries
1368   --enable-profile        build profiling libraries
1369   --enable-checker        build checker libraries
1370   --enable-jbd-debug      enable journal debugging
1371   --enable-blkid-debug    enable blkid debugging
1372   --enable-testio-debug   enable the use of the test I/O manager for debugging
1373   --disable-debugfs       disable support of debugfs program
1374   --disable-imager        disable support of e2image program
1375   --disable-resizer       disable support of e2resize program
1376   --enable-fsck           build fsck wrapper program
1377   --enable-e2initrd-helper build e2initrd-helper program
1378   --enable-blkid-devmapper  build with device-mapper support
1379   --disable-tls           disable use of thread local support
1380   --disable-uuidd         disable building the uuid daemon
1381   --disable-nls           do not use Native Language Support
1382   --disable-rpath         do not hardcode runtime library paths
1383
1384 Optional Packages:
1385   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1386   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1387   --with-diet-libc        use diet libc
1388   --with-cc=COMPILER      select compiler to use
1389   --with-linker=LINKER    select linker to use
1390   --with-ccopts=CCOPTS    select compiler command line options
1391   --with-ldopts=LDOPTS    select linker command line options
1392   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1393   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1394   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1395   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1396   --with-included-gettext use the GNU gettext library included here
1397   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1398   --without-libintl-prefix     don't search for libintl in includedir and libdir
1399
1400 Some influential environment variables:
1401   CC          C compiler command
1402   CFLAGS      C compiler flags
1403   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1404               nonstandard directory <lib dir>
1405   LIBS        libraries to pass to the linker, e.g. -l<library>
1406   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407               you have headers in a nonstandard directory <include dir>
1408   CPP         C preprocessor
1409   PKG_CONFIG  path to pkg-config utility
1410
1411 Use these variables to override the choices made by `configure' or to help
1412 it to find libraries and programs with nonstandard names/locations.
1413
1414 _ACEOF
1415 ac_status=$?
1416 fi
1417
1418 if test "$ac_init_help" = "recursive"; then
1419   # If there are subdirs, report their specific --help.
1420   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421     test -d "$ac_dir" || continue
1422     ac_builddir=.
1423
1424 case "$ac_dir" in
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *)
1427   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1428   # A ".." for each directory in $ac_dir_suffix.
1429   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1430   case $ac_top_builddir_sub in
1431   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433   esac ;;
1434 esac
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1439
1440 case $srcdir in
1441   .)  # We are building in place.
1442     ac_srcdir=.
1443     ac_top_srcdir=$ac_top_builddir_sub
1444     ac_abs_top_srcdir=$ac_pwd ;;
1445   [\\/]* | ?:[\\/]* )  # Absolute name.
1446     ac_srcdir=$srcdir$ac_dir_suffix;
1447     ac_top_srcdir=$srcdir
1448     ac_abs_top_srcdir=$srcdir ;;
1449   *) # Relative name.
1450     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451     ac_top_srcdir=$ac_top_build_prefix$srcdir
1452     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 esac
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455
1456     cd "$ac_dir" || { ac_status=$?; continue; }
1457     # Check for guested configure.
1458     if test -f "$ac_srcdir/configure.gnu"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461     elif test -f "$ac_srcdir/configure"; then
1462       echo &&
1463       $SHELL "$ac_srcdir/configure" --help=recursive
1464     else
1465       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466     fi || ac_status=$?
1467     cd "$ac_pwd" || { ac_status=$?; break; }
1468   done
1469 fi
1470
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473   cat <<\_ACEOF
1474 configure
1475 generated by GNU Autoconf 2.61
1476
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482   exit
1483 fi
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1487
1488 It was created by $as_me, which was
1489 generated by GNU Autoconf 2.61.  Invocation command line was
1490
1491   $ $0 $@
1492
1493 _ACEOF
1494 exec 5>>config.log
1495 {
1496 cat <<_ASUNAME
1497 ## --------- ##
1498 ## Platform. ##
1499 ## --------- ##
1500
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1506
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1509
1510 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1511 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1514 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1515 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1516 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1517
1518 _ASUNAME
1519
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1522 do
1523   IFS=$as_save_IFS
1524   test -z "$as_dir" && as_dir=.
1525   echo "PATH: $as_dir"
1526 done
1527 IFS=$as_save_IFS
1528
1529 } >&5
1530
1531 cat >&5 <<_ACEOF
1532
1533
1534 ## ----------- ##
1535 ## Core tests. ##
1536 ## ----------- ##
1537
1538 _ACEOF
1539
1540
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1546 ac_configure_args=
1547 ac_configure_args0=
1548 ac_configure_args1=
1549 ac_must_keep_next=false
1550 for ac_pass in 1 2
1551 do
1552   for ac_arg
1553   do
1554     case $ac_arg in
1555     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557     | -silent | --silent | --silen | --sile | --sil)
1558       continue ;;
1559     *\'*)
1560       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1561     esac
1562     case $ac_pass in
1563     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1564     2)
1565       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566       if test $ac_must_keep_next = true; then
1567         ac_must_keep_next=false # Got value, back to normal.
1568       else
1569         case $ac_arg in
1570           *=* | --config-cache | -C | -disable-* | --disable-* \
1571           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573           | -with-* | --with-* | -without-* | --without-* | --x)
1574             case "$ac_configure_args0 " in
1575               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1576             esac
1577             ;;
1578           -* ) ac_must_keep_next=true ;;
1579         esac
1580       fi
1581       ac_configure_args="$ac_configure_args '$ac_arg'"
1582       ;;
1583     esac
1584   done
1585 done
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1588
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log.  We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595   # Save into config.log some information that might help in debugging.
1596   {
1597     echo
1598
1599     cat <<\_ASBOX
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1603 _ASBOX
1604     echo
1605     # The following way of writing the cache mishandles newlines in values,
1606 (
1607   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608     eval ac_val=\$$ac_var
1609     case $ac_val in #(
1610     *${as_nl}*)
1611       case $ac_var in #(
1612       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1613 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1614       esac
1615       case $ac_var in #(
1616       _ | IFS | as_nl) ;; #(
1617       *) $as_unset $ac_var ;;
1618       esac ;;
1619     esac
1620   done
1621   (set) 2>&1 |
1622     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1623     *${as_nl}ac_space=\ *)
1624       sed -n \
1625         "s/'\''/'\''\\\\'\'''\''/g;
1626           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1627       ;; #(
1628     *)
1629       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1630       ;;
1631     esac |
1632     sort
1633 )
1634     echo
1635
1636     cat <<\_ASBOX
1637 ## ----------------- ##
1638 ## Output variables. ##
1639 ## ----------------- ##
1640 _ASBOX
1641     echo
1642     for ac_var in $ac_subst_vars
1643     do
1644       eval ac_val=\$$ac_var
1645       case $ac_val in
1646       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647       esac
1648       echo "$ac_var='\''$ac_val'\''"
1649     done | sort
1650     echo
1651
1652     if test -n "$ac_subst_files"; then
1653       cat <<\_ASBOX
1654 ## ------------------- ##
1655 ## File substitutions. ##
1656 ## ------------------- ##
1657 _ASBOX
1658       echo
1659       for ac_var in $ac_subst_files
1660       do
1661         eval ac_val=\$$ac_var
1662         case $ac_val in
1663         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1664         esac
1665         echo "$ac_var='\''$ac_val'\''"
1666       done | sort
1667       echo
1668     fi
1669
1670     if test -s confdefs.h; then
1671       cat <<\_ASBOX
1672 ## ----------- ##
1673 ## confdefs.h. ##
1674 ## ----------- ##
1675 _ASBOX
1676       echo
1677       cat confdefs.h
1678       echo
1679     fi
1680     test "$ac_signal" != 0 &&
1681       echo "$as_me: caught signal $ac_signal"
1682     echo "$as_me: exit $exit_status"
1683   } >&5
1684   rm -f core *.core core.conftest.* &&
1685     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1686     exit $exit_status
1687 ' 0
1688 for ac_signal in 1 2 13 15; do
1689   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1690 done
1691 ac_signal=0
1692
1693 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1694 rm -f -r conftest* confdefs.h
1695
1696 # Predefined preprocessor variables.
1697
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_NAME "$PACKAGE_NAME"
1700 _ACEOF
1701
1702
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1705 _ACEOF
1706
1707
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1710 _ACEOF
1711
1712
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_STRING "$PACKAGE_STRING"
1715 _ACEOF
1716
1717
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1720 _ACEOF
1721
1722
1723 # Let the site file select an alternate cache file if it wants to.
1724 # Prefer explicitly selected file to automatically selected ones.
1725 if test -n "$CONFIG_SITE"; then
1726   set x "$CONFIG_SITE"
1727 elif test "x$prefix" != xNONE; then
1728   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1729 else
1730   set x "$ac_default_prefix/share/config.site" \
1731         "$ac_default_prefix/etc/config.site"
1732 fi
1733 shift
1734 for ac_site_file
1735 do
1736   if test -r "$ac_site_file"; then
1737     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1738 echo "$as_me: loading site script $ac_site_file" >&6;}
1739     sed 's/^/| /' "$ac_site_file" >&5
1740     . "$ac_site_file"
1741   fi
1742 done
1743
1744 if test -r "$cache_file"; then
1745   # Some versions of bash will fail to source /dev/null (special
1746   # files actually), so we avoid doing that.
1747   if test -f "$cache_file"; then
1748     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1749 echo "$as_me: loading cache $cache_file" >&6;}
1750     case $cache_file in
1751       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1752       *)                      . "./$cache_file";;
1753     esac
1754   fi
1755 else
1756   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1757 echo "$as_me: creating cache $cache_file" >&6;}
1758   >$cache_file
1759 fi
1760
1761 # Check that the precious variables saved in the cache have kept the same
1762 # value.
1763 ac_cache_corrupted=false
1764 for ac_var in $ac_precious_vars; do
1765   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1766   eval ac_new_set=\$ac_env_${ac_var}_set
1767   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1768   eval ac_new_val=\$ac_env_${ac_var}_value
1769   case $ac_old_set,$ac_new_set in
1770     set,)
1771       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1772 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1773       ac_cache_corrupted=: ;;
1774     ,set)
1775       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1776 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1777       ac_cache_corrupted=: ;;
1778     ,);;
1779     *)
1780       if test "x$ac_old_val" != "x$ac_new_val"; then
1781         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1782 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1783         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1784 echo "$as_me:   former value:  $ac_old_val" >&2;}
1785         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1786 echo "$as_me:   current value: $ac_new_val" >&2;}
1787         ac_cache_corrupted=:
1788       fi;;
1789   esac
1790   # Pass precious variables to config.status.
1791   if test "$ac_new_set" = set; then
1792     case $ac_new_val in
1793     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1794     *) ac_arg=$ac_var=$ac_new_val ;;
1795     esac
1796     case " $ac_configure_args " in
1797       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1798       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1799     esac
1800   fi
1801 done
1802 if $ac_cache_corrupted; then
1803   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1804 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1805   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1806 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1807    { (exit 1); exit 1; }; }
1808 fi
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826 ac_ext=c
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831
1832
1833
1834 ac_aux_dir=
1835 for ac_dir in config "$srcdir"/config; do
1836   if test -f "$ac_dir/install-sh"; then
1837     ac_aux_dir=$ac_dir
1838     ac_install_sh="$ac_aux_dir/install-sh -c"
1839     break
1840   elif test -f "$ac_dir/install.sh"; then
1841     ac_aux_dir=$ac_dir
1842     ac_install_sh="$ac_aux_dir/install.sh -c"
1843     break
1844   elif test -f "$ac_dir/shtool"; then
1845     ac_aux_dir=$ac_dir
1846     ac_install_sh="$ac_aux_dir/shtool install -c"
1847     break
1848   fi
1849 done
1850 if test -z "$ac_aux_dir"; then
1851   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1852 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1853    { (exit 1); exit 1; }; }
1854 fi
1855
1856 # These three variables are undocumented and unsupported,
1857 # and are intended to be withdrawn in a future Autoconf release.
1858 # They can cause serious problems if a builder's source tree is in a directory
1859 # whose full name contains unusual characters.
1860 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1861 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1862 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1863
1864
1865 MCONFIG=./MCONFIG
1866
1867 BINARY_TYPE=bin
1868 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1869         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1870 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1871         | tr \" " "`
1872 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1873 MONTH=`echo $DATE | awk -F- '{print $2}'`
1874 YEAR=`echo $DATE | awk -F- '{print $3}'`
1875
1876 if expr $YEAR ">" 1900 > /dev/null ; then
1877         E2FSPROGS_YEAR=$YEAR
1878 elif expr $YEAR ">" 90 >/dev/null ; then
1879         E2FSPROGS_YEAR=19$YEAR
1880 else
1881         E2FSPROGS_YEAR=20$YEAR
1882 fi
1883
1884 case $MONTH in
1885 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1886 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1887 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1888 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1889 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1890 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1891 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1892 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1893 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1894 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1895 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1896 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1897 *)      echo "Unknown month $MONTH??" ;;
1898 esac
1899
1900 base_ver=`echo $E2FSPROGS_VERSION | \
1901                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1902 pre_vers=`echo $base_ver 0.01 - p | dc`
1903
1904 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1905
1906 case $E2FSPROGS_VERSION in
1907 *-WIP|pre-*)
1908         E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1909         ;;
1910 *)
1911         E2FSPROGS_PKGVER="$base_ver"
1912         ;;
1913 esac
1914
1915 unset DATE MONTH YEAR base_ver pre_vers date_spec
1916 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1917 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1918
1919
1920
1921
1922
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927    { (exit 1); exit 1; }; }
1928
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940    { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944    { (exit 1); exit 1; }; }
1945
1946 fi
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1950 *-*-*) ;;
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953    { (exit 1); exit 1; }; };;
1954 esac
1955 build=$ac_cv_build
1956 ac_save_IFS=$IFS; IFS='-'
1957 set x $ac_cv_build
1958 shift
1959 build_cpu=$1
1960 build_vendor=$2
1961 shift; shift
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1964 build_os=$*
1965 IFS=$ac_save_IFS
1966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1967
1968
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test "x$host_alias" = x; then
1975   ac_cv_host=$ac_cv_build
1976 else
1977   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983 fi
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1986 case $ac_cv_host in
1987 *-*-*) ;;
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990    { (exit 1); exit 1; }; };;
1991 esac
1992 host=$ac_cv_host
1993 ac_save_IFS=$IFS; IFS='-'
1994 set x $ac_cv_host
1995 shift
1996 host_cpu=$1
1997 host_vendor=$2
1998 shift; shift
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2001 host_os=$*
2002 IFS=$ac_save_IFS
2003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2004
2005
2006
2007 # Check whether --with-diet-libc was given.
2008 if test "${with_diet_libc+set}" = set; then
2009   withval=$with_diet_libc; CC="diet cc -nostdinc"
2010 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2011 echo "${ECHO_T}CC=$CC" >&6; }
2012 fi
2013
2014 # Check whether --with-cc was given.
2015 if test "${with_cc+set}" = set; then
2016   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2017 echo "${ECHO_T}CC=$withval" >&6; }
2018 CC=$withval
2019 else
2020   if test -z "$CC" ; then CC=cc; fi
2021 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2022 echo "${ECHO_T}CC defaults to $CC" >&6; }
2023 fi
2024 export CC
2025
2026 ac_ext=c
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031 if test -n "$ac_tool_prefix"; then
2032   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037   echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039   if test -n "$CC"; then
2040   ac_cv_prog_CC="$CC" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045   IFS=$as_save_IFS
2046   test -z "$as_dir" && as_dir=.
2047   for ac_exec_ext in '' $ac_executable_extensions; do
2048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051     break 2
2052   fi
2053 done
2054 done
2055 IFS=$as_save_IFS
2056
2057 fi
2058 fi
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061   { echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6; }
2063 else
2064   { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2066 fi
2067
2068
2069 fi
2070 if test -z "$ac_cv_prog_CC"; then
2071   ac_ct_CC=$CC
2072   # Extract the first word of "gcc", so it can be a program name with args.
2073 set dummy gcc; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077   echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079   if test -n "$ac_ct_CC"; then
2080   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085   IFS=$as_save_IFS
2086   test -z "$as_dir" && as_dir=.
2087   for ac_exec_ext in '' $ac_executable_extensions; do
2088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089     ac_cv_prog_ac_ct_CC="gcc"
2090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091     break 2
2092   fi
2093 done
2094 done
2095 IFS=$as_save_IFS
2096
2097 fi
2098 fi
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6; }
2103 else
2104   { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2106 fi
2107
2108   if test "x$ac_ct_CC" = x; then
2109     CC=""
2110   else
2111     case $cross_compiling:$ac_tool_warned in
2112 yes:)
2113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet.  If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&5
2116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2117 whose name does not start with the host triplet.  If you think this
2118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2119 ac_tool_warned=yes ;;
2120 esac
2121     CC=$ac_ct_CC
2122   fi
2123 else
2124   CC="$ac_cv_prog_CC"
2125 fi
2126
2127 if test -z "$CC"; then
2128           if test -n "$ac_tool_prefix"; then
2129     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}cc; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$CC"; then
2137   ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146     ac_cv_prog_CC="${ac_tool_prefix}cc"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152 IFS=$as_save_IFS
2153
2154 fi
2155 fi
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158   { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2160 else
2161   { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2163 fi
2164
2165
2166   fi
2167 fi
2168 if test -z "$CC"; then
2169   # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$CC"; then
2177   ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179   ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2182 do
2183   IFS=$as_save_IFS
2184   test -z "$as_dir" && as_dir=.
2185   for ac_exec_ext in '' $ac_executable_extensions; do
2186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188        ac_prog_rejected=yes
2189        continue
2190      fi
2191     ac_cv_prog_CC="cc"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197 IFS=$as_save_IFS
2198
2199 if test $ac_prog_rejected = yes; then
2200   # We found a bogon in the path, so make sure we never use it.
2201   set dummy $ac_cv_prog_CC
2202   shift
2203   if test $# != 0; then
2204     # We chose a different compiler from the bogus one.
2205     # However, it has the same basename, so the bogon will be chosen
2206     # first if we set CC to just the basename; use the full file name.
2207     shift
2208     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2209   fi
2210 fi
2211 fi
2212 fi
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215   { echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6; }
2217 else
2218   { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2220 fi
2221
2222
2223 fi
2224 if test -z "$CC"; then
2225   if test -n "$ac_tool_prefix"; then
2226   for ac_prog in cl.exe
2227   do
2228     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   if test -n "$CC"; then
2236   ac_cv_prog_CC="$CC" # Let the user override the test.
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2240 do
2241   IFS=$as_save_IFS
2242   test -z "$as_dir" && as_dir=.
2243   for ac_exec_ext in '' $ac_executable_extensions; do
2244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247     break 2
2248   fi
2249 done
2250 done
2251 IFS=$as_save_IFS
2252
2253 fi
2254 fi
2255 CC=$ac_cv_prog_CC
2256 if test -n "$CC"; then
2257   { echo "$as_me:$LINENO: result: $CC" >&5
2258 echo "${ECHO_T}$CC" >&6; }
2259 else
2260   { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2262 fi
2263
2264
2265     test -n "$CC" && break
2266   done
2267 fi
2268 if test -z "$CC"; then
2269   ac_ct_CC=$CC
2270   for ac_prog in cl.exe
2271 do
2272   # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$ac_ct_CC"; then
2280   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285   IFS=$as_save_IFS
2286   test -z "$as_dir" && as_dir=.
2287   for ac_exec_ext in '' $ac_executable_extensions; do
2288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289     ac_cv_prog_ac_ct_CC="$ac_prog"
2290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291     break 2
2292   fi
2293 done
2294 done
2295 IFS=$as_save_IFS
2296
2297 fi
2298 fi
2299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300 if test -n "$ac_ct_CC"; then
2301   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302 echo "${ECHO_T}$ac_ct_CC" >&6; }
2303 else
2304   { echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6; }
2306 fi
2307
2308
2309   test -n "$ac_ct_CC" && break
2310 done
2311
2312   if test "x$ac_ct_CC" = x; then
2313     CC=""
2314   else
2315     case $cross_compiling:$ac_tool_warned in
2316 yes:)
2317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet.  If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&5
2320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet.  If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323 ac_tool_warned=yes ;;
2324 esac
2325     CC=$ac_ct_CC
2326   fi
2327 fi
2328
2329 fi
2330
2331
2332 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: no acceptable C compiler found in \$PATH
2335 See \`config.log' for more details." >&2;}
2336    { (exit 1); exit 1; }; }
2337
2338 # Provide some information about the compiler.
2339 echo "$as_me:$LINENO: checking for C compiler version" >&5
2340 ac_compiler=`set X $ac_compile; echo $2`
2341 { (ac_try="$ac_compiler --version >&5"
2342 case "(($ac_try" in
2343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344   *) ac_try_echo=$ac_try;;
2345 esac
2346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2347   (eval "$ac_compiler --version >&5") 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }
2351 { (ac_try="$ac_compiler -v >&5"
2352 case "(($ac_try" in
2353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354   *) ac_try_echo=$ac_try;;
2355 esac
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357   (eval "$ac_compiler -v >&5") 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }
2361 { (ac_try="$ac_compiler -V >&5"
2362 case "(($ac_try" in
2363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364   *) ac_try_echo=$ac_try;;
2365 esac
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367   (eval "$ac_compiler -V >&5") 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }
2371
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h.  */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h.  */
2378
2379 int
2380 main ()
2381 {
2382
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2391 # of exeext.
2392 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2395 #
2396 # List of possible output files, starting from the most likely.
2397 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2398 # only as a last resort.  b.out is created by i960 compilers.
2399 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2400 #
2401 # The IRIX 6 linker writes into existing files which may not be
2402 # executable, retaining their permissions.  Remove them first so a
2403 # subsequent execution test works.
2404 ac_rmfiles=
2405 for ac_file in $ac_files
2406 do
2407   case $ac_file in
2408     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2409     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2410   esac
2411 done
2412 rm -f $ac_rmfiles
2413
2414 if { (ac_try="$ac_link_default"
2415 case "(($ac_try" in
2416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417   *) ac_try_echo=$ac_try;;
2418 esac
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420   (eval "$ac_link_default") 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; then
2424   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2426 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2427 # so that the user can short-circuit this test for compilers unknown to
2428 # Autoconf.
2429 for ac_file in $ac_files ''
2430 do
2431   test -f "$ac_file" || continue
2432   case $ac_file in
2433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2434         ;;
2435     [ab].out )
2436         # We found the default executable, but exeext='' is most
2437         # certainly right.
2438         break;;
2439     *.* )
2440         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2441         then :; else
2442            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2443         fi
2444         # We set ac_cv_exeext here because the later test for it is not
2445         # safe: cross compilers may not add the suffix if given an `-o'
2446         # argument, so we may need to know it at that point already.
2447         # Even if this section looks crufty: it has the advantage of
2448         # actually working.
2449         break;;
2450     * )
2451         break;;
2452   esac
2453 done
2454 test "$ac_cv_exeext" = no && ac_cv_exeext=
2455
2456 else
2457   ac_file=''
2458 fi
2459
2460 { echo "$as_me:$LINENO: result: $ac_file" >&5
2461 echo "${ECHO_T}$ac_file" >&6; }
2462 if test -z "$ac_file"; then
2463   echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2465
2466 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: C compiler cannot create executables
2469 See \`config.log' for more details." >&2;}
2470    { (exit 77); exit 77; }; }
2471 fi
2472
2473 ac_exeext=$ac_cv_exeext
2474
2475 # Check that the compiler produces executables we can run.  If not, either
2476 # the compiler is broken, or we cross compile.
2477 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2478 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2479 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2480 # If not cross compiling, check that we can run a simple program.
2481 if test "$cross_compiling" != yes; then
2482   if { ac_try='./$ac_file'
2483   { (case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488   (eval "$ac_try") 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }; }; then
2492     cross_compiling=no
2493   else
2494     if test "$cross_compiling" = maybe; then
2495         cross_compiling=yes
2496     else
2497         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2498 If you meant to cross compile, use \`--host'.
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: cannot run C compiled programs.
2501 If you meant to cross compile, use \`--host'.
2502 See \`config.log' for more details." >&2;}
2503    { (exit 1); exit 1; }; }
2504     fi
2505   fi
2506 fi
2507 { echo "$as_me:$LINENO: result: yes" >&5
2508 echo "${ECHO_T}yes" >&6; }
2509
2510 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2511 ac_clean_files=$ac_clean_files_save
2512 # Check that the compiler produces executables we can run.  If not, either
2513 # the compiler is broken, or we cross compile.
2514 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2515 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2516 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2517 echo "${ECHO_T}$cross_compiling" >&6; }
2518
2519 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2520 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2521 if { (ac_try="$ac_link"
2522 case "(($ac_try" in
2523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524   *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527   (eval "$ac_link") 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; then
2531   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2532 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2533 # work properly (i.e., refer to `conftest.exe'), while it won't with
2534 # `rm'.
2535 for ac_file in conftest.exe conftest conftest.*; do
2536   test -f "$ac_file" || continue
2537   case $ac_file in
2538     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2539     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2540           break;;
2541     * ) break;;
2542   esac
2543 done
2544 else
2545   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2548 See \`config.log' for more details." >&2;}
2549    { (exit 1); exit 1; }; }
2550 fi
2551
2552 rm -f conftest$ac_cv_exeext
2553 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2554 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2555
2556 rm -f conftest.$ac_ext
2557 EXEEXT=$ac_cv_exeext
2558 ac_exeext=$EXEEXT
2559 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2560 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2561 if test "${ac_cv_objext+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h.  */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h.  */
2570
2571 int
2572 main ()
2573 {
2574
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.o conftest.obj
2580 if { (ac_try="$ac_compile"
2581 case "(($ac_try" in
2582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583   *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586   (eval "$ac_compile") 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; then
2590   for ac_file in conftest.o conftest.obj conftest.*; do
2591   test -f "$ac_file" || continue;
2592   case $ac_file in
2593     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2594     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2595        break;;
2596   esac
2597 done
2598 else
2599   echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2601
2602 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2605 See \`config.log' for more details." >&2;}
2606    { (exit 1); exit 1; }; }
2607 fi
2608
2609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2610 fi
2611 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2612 echo "${ECHO_T}$ac_cv_objext" >&6; }
2613 OBJEXT=$ac_cv_objext
2614 ac_objext=$OBJEXT
2615 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2616 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2617 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h.  */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h.  */
2626
2627 int
2628 main ()
2629 {
2630 #ifndef __GNUC__
2631        choke me
2632 #endif
2633
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (ac_try="$ac_compile"
2640 case "(($ac_try" in
2641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642   *) ac_try_echo=$ac_try;;
2643 esac
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645   (eval "$ac_compile") 2>conftest.er1
2646   ac_status=$?
2647   grep -v '^ *+' conftest.er1 >conftest.err
2648   rm -f conftest.er1
2649   cat conftest.err >&5
2650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); } && {
2652          test -z "$ac_c_werror_flag" ||
2653          test ! -s conftest.err
2654        } && test -s conftest.$ac_objext; then
2655   ac_compiler_gnu=yes
2656 else
2657   echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2659
2660         ac_compiler_gnu=no
2661 fi
2662
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2665
2666 fi
2667 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2669 GCC=`test $ac_compiler_gnu = yes && echo yes`
2670 ac_test_CFLAGS=${CFLAGS+set}
2671 ac_save_CFLAGS=$CFLAGS
2672 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2673 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_cc_g+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   ac_save_c_werror_flag=$ac_c_werror_flag
2678    ac_c_werror_flag=yes
2679    ac_cv_prog_cc_g=no
2680    CFLAGS="-g"
2681    cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687
2688 int
2689 main ()
2690 {
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compile") 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } && {
2710          test -z "$ac_c_werror_flag" ||
2711          test ! -s conftest.err
2712        } && test -s conftest.$ac_objext; then
2713   ac_cv_prog_cc_g=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718         CFLAGS=""
2719       cat >conftest.$ac_ext <<_ACEOF
2720 /* confdefs.h.  */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h.  */
2725
2726 int
2727 main ()
2728 {
2729
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (ac_try="$ac_compile"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_compile") 2>conftest.er1
2742   ac_status=$?
2743   grep -v '^ *+' conftest.er1 >conftest.err
2744   rm -f conftest.er1
2745   cat conftest.err >&5
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); } && {
2748          test -z "$ac_c_werror_flag" ||
2749          test ! -s conftest.err
2750        } && test -s conftest.$ac_objext; then
2751   :
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756         ac_c_werror_flag=$ac_save_c_werror_flag
2757          CFLAGS="-g"
2758          cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h.  */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h.  */
2764
2765 int
2766 main ()
2767 {
2768
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2775 case "(($ac_try" in
2776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777   *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780   (eval "$ac_compile") 2>conftest.er1
2781   ac_status=$?
2782   grep -v '^ *+' conftest.er1 >conftest.err
2783   rm -f conftest.er1
2784   cat conftest.err >&5
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } && {
2787          test -z "$ac_c_werror_flag" ||
2788          test ! -s conftest.err
2789        } && test -s conftest.$ac_objext; then
2790   ac_cv_prog_cc_g=yes
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795
2796 fi
2797
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 fi
2800
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 fi
2803
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805    ac_c_werror_flag=$ac_save_c_werror_flag
2806 fi
2807 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2809 if test "$ac_test_CFLAGS" = set; then
2810   CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812   if test "$GCC" = yes; then
2813     CFLAGS="-g -O2"
2814   else
2815     CFLAGS="-g"
2816   fi
2817 else
2818   if test "$GCC" = yes; then
2819     CFLAGS="-O2"
2820   else
2821     CFLAGS=
2822   fi
2823 fi
2824 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2825 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_cc_c89+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   ac_cv_prog_cc_c89=no
2830 ac_save_CC=$CC
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837 #include <stdarg.h>
2838 #include <stdio.h>
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2845      char **p;
2846      int i;
2847 {
2848   return p[i];
2849 }
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2851 {
2852   char *s;
2853   va_list v;
2854   va_start (v,p);
2855   s = g (p, va_arg (v,int));
2856   va_end (v);
2857   return s;
2858 }
2859
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2861    function prototypes and stuff, but not '\xHH' hex character constants.
2862    These don't provoke an error unfortunately, instead are silently treated
2863    as 'x'.  The following induces an error, until -std is added to get
2864    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2865    array size at least.  It's necessary to write '\x00'==0 to get something
2866    that's true only with -std.  */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2868
2869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870    inside strings and character constants.  */
2871 #define FOO(x) 'x'
2872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2873
2874 int test (int i, double x);
2875 struct s1 {int (*f) (int a);};
2876 struct s2 {int (*f) (double a);};
2877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878 int argc;
2879 char **argv;
2880 int
2881 main ()
2882 {
2883 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2890 do
2891   CC="$ac_save_CC $ac_arg"
2892   rm -f conftest.$ac_objext
2893 if { (ac_try="$ac_compile"
2894 case "(($ac_try" in
2895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896   *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899   (eval "$ac_compile") 2>conftest.er1
2900   ac_status=$?
2901   grep -v '^ *+' conftest.er1 >conftest.err
2902   rm -f conftest.er1
2903   cat conftest.err >&5
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); } && {
2906          test -z "$ac_c_werror_flag" ||
2907          test ! -s conftest.err
2908        } && test -s conftest.$ac_objext; then
2909   ac_cv_prog_cc_c89=$ac_arg
2910 else
2911   echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914
2915 fi
2916
2917 rm -f core conftest.err conftest.$ac_objext
2918   test "x$ac_cv_prog_cc_c89" != "xno" && break
2919 done
2920 rm -f conftest.$ac_ext
2921 CC=$ac_save_CC
2922
2923 fi
2924 # AC_CACHE_VAL
2925 case "x$ac_cv_prog_cc_c89" in
2926   x)
2927     { echo "$as_me:$LINENO: result: none needed" >&5
2928 echo "${ECHO_T}none needed" >&6; } ;;
2929   xno)
2930     { echo "$as_me:$LINENO: result: unsupported" >&5
2931 echo "${ECHO_T}unsupported" >&6; } ;;
2932   *)
2933     CC="$CC $ac_cv_prog_cc_c89"
2934     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2935 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2936 esac
2937
2938
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944
2945 ac_ext=c
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2951 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2952 # On Suns, sometimes $CPP names a directory.
2953 if test -n "$CPP" && test -d "$CPP"; then
2954   CPP=
2955 fi
2956 if test -z "$CPP"; then
2957   if test "${ac_cv_prog_CPP+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960       # Double quotes because CPP needs to be expanded
2961     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962     do
2963       ac_preproc_ok=false
2964 for ac_c_preproc_warn_flag in '' yes
2965 do
2966   # Use a header file that comes with gcc, so configuring glibc
2967   # with a fresh cross-compiler works.
2968   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2969   # <limits.h> exists even on freestanding compilers.
2970   # On the NeXT, cc -E runs the code through the compiler's parser,
2971   # not just through cpp. "Syntax error" is here to catch this case.
2972   cat >conftest.$ac_ext <<_ACEOF
2973 /* confdefs.h.  */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h.  */
2978 #ifdef __STDC__
2979 # include <limits.h>
2980 #else
2981 # include <assert.h>
2982 #endif
2983                      Syntax error
2984 _ACEOF
2985 if { (ac_try="$ac_cpp conftest.$ac_ext"
2986 case "(($ac_try" in
2987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988   *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2992   ac_status=$?
2993   grep -v '^ *+' conftest.er1 >conftest.err
2994   rm -f conftest.er1
2995   cat conftest.err >&5
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); } >/dev/null && {
2998          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2999          test ! -s conftest.err
3000        }; then
3001   :
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006   # Broken: fails on valid input.
3007 continue
3008 fi
3009
3010 rm -f conftest.err conftest.$ac_ext
3011
3012   # OK, works on sane cases.  Now check whether nonexistent headers
3013   # can be detected and how.
3014   cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h.  */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h.  */
3020 #include <ac_nonexistent.h>
3021 _ACEOF
3022 if { (ac_try="$ac_cpp conftest.$ac_ext"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } >/dev/null && {
3035          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036          test ! -s conftest.err
3037        }; then
3038   # Broken: success on invalid input.
3039 continue
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044   # Passes both tests.
3045 ac_preproc_ok=:
3046 break
3047 fi
3048
3049 rm -f conftest.err conftest.$ac_ext
3050
3051 done
3052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053 rm -f conftest.err conftest.$ac_ext
3054 if $ac_preproc_ok; then
3055   break
3056 fi
3057
3058     done
3059     ac_cv_prog_CPP=$CPP
3060
3061 fi
3062   CPP=$ac_cv_prog_CPP
3063 else
3064   ac_cv_prog_CPP=$CPP
3065 fi
3066 { echo "$as_me:$LINENO: result: $CPP" >&5
3067 echo "${ECHO_T}$CPP" >&6; }
3068 ac_preproc_ok=false
3069 for ac_c_preproc_warn_flag in '' yes
3070 do
3071   # Use a header file that comes with gcc, so configuring glibc
3072   # with a fresh cross-compiler works.
3073   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074   # <limits.h> exists even on freestanding compilers.
3075   # On the NeXT, cc -E runs the code through the compiler's parser,
3076   # not just through cpp. "Syntax error" is here to catch this case.
3077   cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083 #ifdef __STDC__
3084 # include <limits.h>
3085 #else
3086 # include <assert.h>
3087 #endif
3088                      Syntax error
3089 _ACEOF
3090 if { (ac_try="$ac_cpp conftest.$ac_ext"
3091 case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3097   ac_status=$?
3098   grep -v '^ *+' conftest.er1 >conftest.err
3099   rm -f conftest.er1
3100   cat conftest.err >&5
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } >/dev/null && {
3103          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3104          test ! -s conftest.err
3105        }; then
3106   :
3107 else
3108   echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111   # Broken: fails on valid input.
3112 continue
3113 fi
3114
3115 rm -f conftest.err conftest.$ac_ext
3116
3117   # OK, works on sane cases.  Now check whether nonexistent headers
3118   # can be detected and how.
3119   cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125 #include <ac_nonexistent.h>
3126 _ACEOF
3127 if { (ac_try="$ac_cpp conftest.$ac_ext"
3128 case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3134   ac_status=$?
3135   grep -v '^ *+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } >/dev/null && {
3140          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141          test ! -s conftest.err
3142        }; then
3143   # Broken: success on invalid input.
3144 continue
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149   # Passes both tests.
3150 ac_preproc_ok=:
3151 break
3152 fi
3153
3154 rm -f conftest.err conftest.$ac_ext
3155
3156 done
3157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158 rm -f conftest.err conftest.$ac_ext
3159 if $ac_preproc_ok; then
3160   :
3161 else
3162   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&2;}
3166    { (exit 1); exit 1; }; }
3167 fi
3168
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174
3175
3176 # Check whether --with-linker was given.
3177 if test "${with_linker+set}" = set; then
3178   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3179 echo "${ECHO_T}LD=$withval" >&6; }
3180 LD=$withval
3181 else
3182   if test -z "$LD" ; then LD=$CC; fi
3183 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3184 echo "${ECHO_T}LD defaults to $LD" >&6; }
3185 fi
3186 export LD
3187
3188
3189 # Check whether --with-ccopts was given.
3190 if test "${with_ccopts+set}" = set; then
3191   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3192 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3193 CFLAGS=$withval
3194 fi
3195
3196
3197 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3198 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3199 if test "${ac_cv_path_GREP+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202   # Extract the first word of "grep ggrep" to use in msg output
3203 if test -z "$GREP"; then
3204 set dummy grep ggrep; ac_prog_name=$2
3205 if test "${ac_cv_path_GREP+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   ac_path_GREP_found=false
3209 # Loop through the user's path and test for each of PROGNAME-LIST
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215   for ac_prog in grep ggrep; do
3216   for ac_exec_ext in '' $ac_executable_extensions; do
3217     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3218     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3219     # Check for GNU ac_path_GREP and select it if it is found.
3220   # Check for GNU $ac_path_GREP
3221 case `"$ac_path_GREP" --version 2>&1` in
3222 *GNU*)
3223   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3224 *)
3225   ac_count=0
3226   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3227   while :
3228   do
3229     cat "conftest.in" "conftest.in" >"conftest.tmp"
3230     mv "conftest.tmp" "conftest.in"
3231     cp "conftest.in" "conftest.nl"
3232     echo 'GREP' >> "conftest.nl"
3233     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3234     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3235     ac_count=`expr $ac_count + 1`
3236     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3237       # Best one so far, save it but keep looking for a better one
3238       ac_cv_path_GREP="$ac_path_GREP"
3239       ac_path_GREP_max=$ac_count
3240     fi
3241     # 10*(2^10) chars as input seems more than enough
3242     test $ac_count -gt 10 && break
3243   done
3244   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3245 esac
3246
3247
3248     $ac_path_GREP_found && break 3
3249   done
3250 done
3251
3252 done
3253 IFS=$as_save_IFS
3254
3255
3256 fi
3257
3258 GREP="$ac_cv_path_GREP"
3259 if test -z "$GREP"; then
3260   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3261 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3262    { (exit 1); exit 1; }; }
3263 fi
3264
3265 else
3266   ac_cv_path_GREP=$GREP
3267 fi
3268
3269
3270 fi
3271 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3272 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3273  GREP="$ac_cv_path_GREP"
3274
3275
3276 { echo "$as_me:$LINENO: checking for egrep" >&5
3277 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3278 if test "${ac_cv_path_EGREP+set}" = set; then
3279   echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3282    then ac_cv_path_EGREP="$GREP -E"
3283    else
3284      # Extract the first word of "egrep" to use in msg output
3285 if test -z "$EGREP"; then
3286 set dummy egrep; ac_prog_name=$2
3287 if test "${ac_cv_path_EGREP+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290   ac_path_EGREP_found=false
3291 # Loop through the user's path and test for each of PROGNAME-LIST
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_prog in egrep; do
3298   for ac_exec_ext in '' $ac_executable_extensions; do
3299     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3300     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3301     # Check for GNU ac_path_EGREP and select it if it is found.
3302   # Check for GNU $ac_path_EGREP
3303 case `"$ac_path_EGREP" --version 2>&1` in
3304 *GNU*)
3305   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3306 *)
3307   ac_count=0
3308   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3309   while :
3310   do
3311     cat "conftest.in" "conftest.in" >"conftest.tmp"
3312     mv "conftest.tmp" "conftest.in"
3313     cp "conftest.in" "conftest.nl"
3314     echo 'EGREP' >> "conftest.nl"
3315     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3316     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3317     ac_count=`expr $ac_count + 1`
3318     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3319       # Best one so far, save it but keep looking for a better one
3320       ac_cv_path_EGREP="$ac_path_EGREP"
3321       ac_path_EGREP_max=$ac_count
3322     fi
3323     # 10*(2^10) chars as input seems more than enough
3324     test $ac_count -gt 10 && break
3325   done
3326   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3327 esac
3328
3329
3330     $ac_path_EGREP_found && break 3
3331   done
3332 done
3333
3334 done
3335 IFS=$as_save_IFS
3336
3337
3338 fi
3339
3340 EGREP="$ac_cv_path_EGREP"
3341 if test -z "$EGREP"; then
3342   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3343 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3344    { (exit 1); exit 1; }; }
3345 fi
3346
3347 else
3348   ac_cv_path_EGREP=$EGREP
3349 fi
3350
3351
3352    fi
3353 fi
3354 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3355 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3356  EGREP="$ac_cv_path_EGREP"
3357
3358
3359 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3360 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3361 if test "${ac_cv_header_stdc+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3370 #include <stdlib.h>
3371 #include <stdarg.h>
3372 #include <string.h>
3373 #include <float.h>
3374
3375 int
3376 main ()
3377 {
3378
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext
3384 if { (ac_try="$ac_compile"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390   (eval "$ac_compile") 2>conftest.er1
3391   ac_status=$?
3392   grep -v '^ *+' conftest.er1 >conftest.err
3393   rm -f conftest.er1
3394   cat conftest.err >&5
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); } && {
3397          test -z "$ac_c_werror_flag" ||
3398          test ! -s conftest.err
3399        } && test -s conftest.$ac_objext; then
3400   ac_cv_header_stdc=yes
3401 else
3402   echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405         ac_cv_header_stdc=no
3406 fi
3407
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409
3410 if test $ac_cv_header_stdc = yes; then
3411   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #include <string.h>
3419
3420 _ACEOF
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422   $EGREP "memchr" >/dev/null 2>&1; then
3423   :
3424 else
3425   ac_cv_header_stdc=no
3426 fi
3427 rm -f conftest*
3428
3429 fi
3430
3431 if test $ac_cv_header_stdc = yes; then
3432   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3433   cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h.  */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h.  */
3439 #include <stdlib.h>
3440
3441 _ACEOF
3442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443   $EGREP "free" >/dev/null 2>&1; then
3444   :
3445 else
3446   ac_cv_header_stdc=no
3447 fi
3448 rm -f conftest*
3449
3450 fi
3451
3452 if test $ac_cv_header_stdc = yes; then
3453   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3454   if test "$cross_compiling" = yes; then
3455   :
3456 else
3457   cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h.  */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h.  */
3463 #include <ctype.h>
3464 #include <stdlib.h>
3465 #if ((' ' & 0x0FF) == 0x020)
3466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3468 #else
3469 # define ISLOWER(c) \
3470                    (('a' <= (c) && (c) <= 'i') \
3471                      || ('j' <= (c) && (c) <= 'r') \
3472                      || ('s' <= (c) && (c) <= 'z'))
3473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3474 #endif
3475
3476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3477 int
3478 main ()
3479 {
3480   int i;
3481   for (i = 0; i < 256; i++)
3482     if (XOR (islower (i), ISLOWER (i))
3483         || toupper (i) != TOUPPER (i))
3484       return 2;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest$ac_exeext
3489 if { (ac_try="$ac_link"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495   (eval "$ac_link") 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3499   { (case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_try") 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }; }; then
3508   :
3509 else
3510   echo "$as_me: program exited with status $ac_status" >&5
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514 ( exit $ac_status )
3515 ac_cv_header_stdc=no
3516 fi
3517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3518 fi
3519
3520
3521 fi
3522 fi
3523 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3524 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3525 if test $ac_cv_header_stdc = yes; then
3526
3527 cat >>confdefs.h <<\_ACEOF
3528 #define STDC_HEADERS 1
3529 _ACEOF
3530
3531 fi
3532
3533 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3544                   inttypes.h stdint.h unistd.h
3545 do
3546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h.  */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h.  */
3558 $ac_includes_default
3559
3560 #include <$ac_header>
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (ac_try="$ac_compile"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569   (eval "$ac_compile") 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } && {
3576          test -z "$ac_c_werror_flag" ||
3577          test ! -s conftest.err
3578        } && test -s conftest.$ac_objext; then
3579   eval "$as_ac_Header=yes"
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584         eval "$as_ac_Header=no"
3585 fi
3586
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 fi
3589 ac_res=`eval echo '${'$as_ac_Header'}'`
3590                { echo "$as_me:$LINENO: result: $ac_res" >&5
3591 echo "${ECHO_T}$ac_res" >&6; }
3592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3593   cat >>confdefs.h <<_ACEOF
3594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3595 _ACEOF
3596
3597 fi
3598
3599 done
3600
3601
3602 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3603   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3604 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3605 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 fi
3608 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3609 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3610 else
3611   # Is the header compilable?
3612 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3613 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3614 cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h.  */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h.  */
3620 $ac_includes_default
3621 #include <linux/fs.h>
3622 _ACEOF
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3625 case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_compile") 2>conftest.er1
3631   ac_status=$?
3632   grep -v '^ *+' conftest.er1 >conftest.err
3633   rm -f conftest.er1
3634   cat conftest.err >&5
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); } && {
3637          test -z "$ac_c_werror_flag" ||
3638          test ! -s conftest.err
3639        } && test -s conftest.$ac_objext; then
3640   ac_header_compiler=yes
3641 else
3642   echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645         ac_header_compiler=no
3646 fi
3647
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3650 echo "${ECHO_T}$ac_header_compiler" >&6; }
3651
3652 # Is the header present?
3653 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3654 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #include <linux/fs.h>
3662 _ACEOF
3663 if { (ac_try="$ac_cpp conftest.$ac_ext"
3664 case "(($ac_try" in
3665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666   *) ac_try_echo=$ac_try;;
3667 esac
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3670   ac_status=$?
3671   grep -v '^ *+' conftest.er1 >conftest.err
3672   rm -f conftest.er1
3673   cat conftest.err >&5
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); } >/dev/null && {
3676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677          test ! -s conftest.err
3678        }; then
3679   ac_header_preproc=yes
3680 else
3681   echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684   ac_header_preproc=no
3685 fi
3686
3687 rm -f conftest.err conftest.$ac_ext
3688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3689 echo "${ECHO_T}$ac_header_preproc" >&6; }
3690
3691 # So?  What about this header?
3692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3693   yes:no: )
3694     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3695 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3696     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3697 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3698     ac_header_preproc=yes
3699     ;;
3700   no:yes:* )
3701     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3702 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3703     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3704 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3705     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3706 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3707     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3708 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3709     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3710 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3711     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3712 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3713
3714     ;;
3715 esac
3716 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3717 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3718 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   ac_cv_header_linux_fs_h=$ac_header_preproc
3722 fi
3723 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3724 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3725
3726 fi
3727 if test $ac_cv_header_linux_fs_h = yes; then
3728   linux_headers=yes
3729 else
3730   linux_headers=no
3731 fi
3732
3733
3734 if test "$linux_headers" != yes; then
3735   LINUX_INCLUDE='-I$(top_builddir)/include'
3736 fi
3737
3738 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3739 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3740 if test "$GCC" = yes
3741 then
3742     case "$host_cpu" in
3743         alpha)          addcflags="-mieee" ;;
3744     esac
3745 fi
3746 if test "x$addcflags" != x
3747 then
3748     { echo "$as_me:$LINENO: result: $addcflags" >&5
3749 echo "${ECHO_T}$addcflags" >&6; }
3750     CFLAGS="$addcflags $CFLAGS"
3751 else
3752     { echo "$as_me:$LINENO: result: (none)" >&5
3753 echo "${ECHO_T}(none)" >&6; }
3754 fi
3755 LIB_EXT=.a
3756 STATIC_LIB_EXT=.a
3757 PROFILE_LIB_EXT=.a
3758
3759 # Check whether --with-ldopts was given.
3760 if test "${with_ldopts+set}" = set; then
3761   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3762 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3763 LDFLAGS=$withval
3764 else
3765   LDFLAGS=
3766 fi
3767
3768
3769 # Check whether --with-root-prefix was given.
3770 if test "${with_root_prefix+set}" = set; then
3771   withval=$with_root_prefix; root_prefix=$withval
3772 else
3773   root_prefix=NONE
3774 fi
3775 # Check whether --enable-maintainer-mode was given.
3776 if test "${enable_maintainer_mode+set}" = set; then
3777   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3778 then
3779         MAINTAINER_CMT=#
3780         echo "Disabling maintainer mode"
3781 else
3782         MAINTAINER_CMT=
3783         echo "Enabling maintainer mode"
3784 fi
3785
3786 else
3787   MAINTAINER_CMT=#
3788 echo "Disabling maintainer mode by default"
3789
3790 fi
3791
3792
3793 # Check whether --enable-compression was given.
3794 if test "${enable_compression+set}" = set; then
3795   enableval=$enable_compression; if test "$enableval" = "no"
3796 then
3797         echo "Disabling compression support"
3798 else
3799         cat >>confdefs.h <<\_ACEOF
3800 #define ENABLE_COMPRESSION 1
3801 _ACEOF
3802
3803         echo "Enabling compression support"
3804         echo "WARNING: Compression support is experimental"
3805 fi
3806
3807 else
3808   echo "Disabling compression support by default"
3809
3810 fi
3811
3812 # Check whether --enable-htree was given.
3813 if test "${enable_htree+set}" = set; then
3814   enableval=$enable_htree; if test "$enableval" = "no"
3815 then
3816         HTREE_CMT=#
3817         echo "Disabling htree directory support"
3818 else
3819         HTREE_CMT=
3820         cat >>confdefs.h <<\_ACEOF
3821 #define ENABLE_HTREE 1
3822 _ACEOF
3823
3824         echo "Enabling htree directory support"
3825 fi
3826
3827 else
3828   HTREE_CMT=
3829 cat >>confdefs.h <<\_ACEOF
3830 #define ENABLE_HTREE 1
3831 _ACEOF
3832
3833 echo "Enabling htree directory support by default"
3834
3835 fi
3836
3837
3838 E2_PKG_CONFIG_STATIC=--static
3839 # Check whether --enable-elf-shlibs was given.
3840 if test "${enable_elf_shlibs+set}" = set; then
3841   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3842 then
3843         ELF_CMT=#
3844         MAKEFILE_ELF=/dev/null
3845         echo "Disabling ELF shared libraries"
3846 else
3847         E2_PKG_CONFIG_STATIC=
3848         ELF_CMT=
3849         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3850         case "$host_os" in
3851         solaris2.*)
3852                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3853         ;;
3854         esac
3855         BINARY_TYPE=elfbin
3856         LIB_EXT=.so
3857         echo "Enabling ELF shared libraries"
3858 fi
3859
3860 else
3861   MAKEFILE_ELF=/dev/null
3862 ELF_CMT=#
3863 echo "Disabling ELF shared libraries by default"
3864
3865 fi
3866
3867
3868
3869 # Check whether --enable-bsd-shlibs was given.
3870 if test "${enable_bsd_shlibs+set}" = set; then
3871   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3872 then
3873         BSDLIB_CMT=#
3874         MAKEFILE_BSDLIB=/dev/null
3875         echo "Disabling BSD shared libraries"
3876 else
3877         E2_PKG_CONFIG_STATIC=
3878         BSDLIB_CMT=
3879         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3880         LIB_EXT=.so
3881         case "$host_os" in
3882         darwin*)
3883                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3884                 LIB_EXT=.dylib
3885         ;;
3886         esac
3887         echo "Enabling BSD shared libraries"
3888 fi
3889
3890 else
3891   MAKEFILE_BSDLIB=/dev/null
3892 BSDLIB_CMT=#
3893 echo "Disabling BSD shared libraries by default"
3894
3895 fi
3896
3897
3898
3899 # Check whether --enable-profile was given.
3900 if test "${enable_profile+set}" = set; then
3901   enableval=$enable_profile; if test "$enableval" = "no"
3902 then
3903         PROFILE_CMT=#
3904         MAKEFILE_PROFILE=/dev/null
3905         echo "Disabling profiling libraries"
3906 else
3907         PROFILE_CMT=
3908         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3909         PROFILED_LIB_EXT=_p.a
3910         echo "Building profiling libraries"
3911 fi
3912
3913 else
3914   PROFILE_CMT=#
3915 MAKEFILE_PROFILE=/dev/null
3916 echo "Disabling profiling libraries by default"
3917
3918 fi
3919
3920
3921
3922 # Check whether --enable-checker was given.
3923 if test "${enable_checker+set}" = set; then
3924   enableval=$enable_checker; if test "$enableval" = "no"
3925 then
3926         CHECKER_CMT=#
3927         MAKEFILE_CHECKER=/dev/null
3928         echo "Disabling checker libraries"
3929 else
3930         CHECKER_CMT=
3931         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3932         echo "Building checker libraries"
3933 fi
3934
3935 else
3936   CHECKER_CMT=#
3937 MAKEFILE_CHECKER=/dev/null
3938 echo "Disabling checker libraries by default"
3939
3940 fi
3941
3942
3943
3944
3945
3946
3947 # Check whether --enable-jbd-debug was given.
3948 if test "${enable_jbd_debug+set}" = set; then
3949   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3950 then
3951         echo "Disabling journal debugging"
3952 else
3953         cat >>confdefs.h <<\_ACEOF
3954 #define CONFIG_JBD_DEBUG 1
3955 _ACEOF
3956
3957         echo "Enabling journal debugging"
3958 fi
3959
3960 else
3961   echo "Disabling journal debugging by default"
3962
3963 fi
3964
3965 # Check whether --enable-blkid-debug was given.
3966 if test "${enable_blkid_debug+set}" = set; then
3967   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3968 then
3969         echo "Disabling blkid debugging"
3970 else
3971         cat >>confdefs.h <<\_ACEOF
3972 #define CONFIG_BLKID_DEBUG 1
3973 _ACEOF
3974
3975         echo "Enabling blkid debugging"
3976 fi
3977
3978 else
3979   echo "Disabling blkid debugging by default"
3980
3981 fi
3982
3983 # Check whether --enable-testio-debug was given.
3984 if test "${enable_testio_debug+set}" = set; then
3985   enableval=$enable_testio_debug; if test "$enableval" = "no"
3986 then
3987         echo "Disabling testio debugging"
3988 else
3989         cat >>confdefs.h <<\_ACEOF
3990 #define CONFIG_TESTIO_DEBUG 1
3991 _ACEOF
3992
3993         echo "Enabling testio debugging"
3994 fi
3995
3996 else
3997   echo "Disabling testio debugging by default"
3998
3999 fi
4000
4001 # Check whether --enable-debugfs was given.
4002 if test "${enable_debugfs+set}" = set; then
4003   enableval=$enable_debugfs; if test "$enableval" = "no"
4004 then
4005         echo "Disabling debugfs support"
4006         DEBUGFS_CMT="#"
4007 else
4008         DEBUGFS_CMT=
4009         echo "Enabling debugfs support"
4010 fi
4011
4012 else
4013   echo "Enabling debugfs support by default"
4014 DEBUGFS_CMT=
4015
4016 fi
4017
4018
4019 # Check whether --enable-imager was given.
4020 if test "${enable_imager+set}" = set; then
4021   enableval=$enable_imager; if test "$enableval" = "no"
4022 then
4023         echo "Disabling e2image support"
4024         IMAGER_CMT="#"
4025 else
4026         IMAGER_CMT=
4027         echo "Enabling e2image support"
4028 fi
4029
4030 else
4031   echo "Enabling e2image support by default"
4032 IMAGER_CMT=
4033
4034 fi
4035
4036
4037 # Check whether --enable-resizer was given.
4038 if test "${enable_resizer+set}" = set; then
4039   enableval=$enable_resizer; if test "$enableval" = "no"
4040 then
4041         echo "Disabling e2resize support"
4042         RESIZER_CMT="#"
4043 else
4044         RESIZER_CMT=
4045         echo "Enabling e2resize support"
4046 fi
4047
4048 else
4049   echo "Enabling e2resize support by default"
4050 RESIZER_CMT=
4051
4052 fi
4053
4054
4055 # Check whether --enable-fsck was given.
4056 if test "${enable_fsck+set}" = set; then
4057   enableval=$enable_fsck; if test "$enableval" = "no"
4058 then
4059         FSCK_PROG='' FSCK_MAN=''
4060         echo "Not building fsck wrapper"
4061 else
4062         FSCK_PROG=fsck FSCK_MAN=fsck.8
4063         echo "Building fsck wrapper"
4064 fi
4065
4066 else
4067   case "$host_os" in
4068   gnu*)
4069     FSCK_PROG='' FSCK_MAN=''
4070     echo "Not building fsck wrapper by default"
4071     ;;
4072   *)
4073     FSCK_PROG=fsck FSCK_MAN=fsck.8
4074     echo "Building fsck wrapper by default"
4075 esac
4076
4077 fi
4078
4079
4080
4081 # Check whether --enable-e2initrd-helper was given.
4082 if test "${enable_e2initrd_helper+set}" = set; then
4083   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4084 then
4085         E2INITRD_PROG='' E2INITRD_MAN=''
4086         echo "Not building e2initrd helper"
4087 else
4088         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4089         echo "Building e2initrd helper"
4090 fi
4091
4092 else
4093   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4094 echo "Building e2initrd helper by default"
4095
4096 fi
4097
4098
4099
4100 STATIC_BLKID_DEVMAPPER_LIBS=''
4101 # Check whether --enable-blkid-devmapper was given.
4102 if test "${enable_blkid_devmapper+set}" = set; then
4103   enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4104 then
4105         echo "Disabling device-mapper support"
4106         DEVMAPPER_REQ=''
4107         DEVMAPPER_LIBS=''
4108         STATIC_DEVMAPPER_LIBS=''
4109 else
4110         cat >>confdefs.h <<\_ACEOF
4111 #define HAVE_DEVMAPPER 1
4112 _ACEOF
4113
4114         echo "Enabling device-mapper support"
4115
4116
4117
4118 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4119         if test -n "$ac_tool_prefix"; then
4120   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   case $PKG_CONFIG in
4128   [\\/]* | ?:[\\/]*)
4129   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4130   ;;
4131   *)
4132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145 IFS=$as_save_IFS
4146
4147   ;;
4148 esac
4149 fi
4150 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4151 if test -n "$PKG_CONFIG"; then
4152   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4153 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4154 else
4155   { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4157 fi
4158
4159
4160 fi
4161 if test -z "$ac_cv_path_PKG_CONFIG"; then
4162   ac_pt_PKG_CONFIG=$PKG_CONFIG
4163   # Extract the first word of "pkg-config", so it can be a program name with args.
4164 set dummy pkg-config; ac_word=$2
4165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   case $ac_pt_PKG_CONFIG in
4171   [\\/]* | ?:[\\/]*)
4172   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4173   ;;
4174   *)
4175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180   for ac_exec_ext in '' $ac_executable_extensions; do
4181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187 done
4188 IFS=$as_save_IFS
4189
4190   ;;
4191 esac
4192 fi
4193 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4194 if test -n "$ac_pt_PKG_CONFIG"; then
4195   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4196 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4197 else
4198   { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4200 fi
4201
4202   if test "x$ac_pt_PKG_CONFIG" = x; then
4203     PKG_CONFIG=""
4204   else
4205     case $cross_compiling:$ac_tool_warned in
4206 yes:)
4207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4208 whose name does not start with the host triplet.  If you think this
4209 configuration is useful to you, please write to autoconf@gnu.org." >&5
4210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4211 whose name does not start with the host triplet.  If you think this
4212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215     PKG_CONFIG=$ac_pt_PKG_CONFIG
4216   fi
4217 else
4218   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4219 fi
4220
4221 fi
4222 if test -n "$PKG_CONFIG"; then
4223         _pkg_min_version=0.9.0
4224         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4225 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4226         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4227                 { echo "$as_me:$LINENO: result: yes" >&5
4228 echo "${ECHO_T}yes" >&6; }
4229         else
4230                 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4232                 PKG_CONFIG=""
4233         fi
4234
4235 fi
4236
4237         if test -z "$PKG_CONFIG"; then
4238                 echo "pkg-config not installed; please install it."
4239                 exit 1;
4240         fi
4241
4242         { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4243 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4244 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   ac_check_lib_save_LIBS=$LIBS
4248 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255
4256 /* Override any GCC internal prototype to avoid an error.
4257    Use char because int might match the return type of a GCC
4258    builtin and then its argument prototype would still apply.  */
4259 #ifdef __cplusplus
4260 extern "C"
4261 #endif
4262 char dm_tree_create ();
4263 int
4264 main ()
4265 {
4266 return dm_tree_create ();
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (ac_try="$ac_link"
4273 case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278   (eval "$ac_link") 2>conftest.er1
4279   ac_status=$?
4280   grep -v '^ *+' conftest.er1 >conftest.err
4281   rm -f conftest.er1
4282   cat conftest.err >&5
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); } && {
4285          test -z "$ac_c_werror_flag" ||
4286          test ! -s conftest.err
4287        } && test -s conftest$ac_exeext &&
4288        $as_test_x conftest$ac_exeext; then
4289   ac_cv_lib_devmapper_dm_tree_create=yes
4290 else
4291   echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294         ac_cv_lib_devmapper_dm_tree_create=no
4295 fi
4296
4297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4298       conftest$ac_exeext conftest.$ac_ext
4299 LIBS=$ac_check_lib_save_LIBS
4300 fi
4301 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4302 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4303 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4304   DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4305                  STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4306                  DEVMAPPER_REQ="devmapper";
4307                  DEVMAPPER_PC_LIBS="-ldevmapper"
4308 else
4309   { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4310 echo "$as_me: error: device-mapper library not found" >&2;}
4311    { (exit 1); exit 1; }; }
4312 fi
4313
4314         # work around stupid devmapper.pc bug in Debian
4315         case "$STATIC_DEVMAPPER_LIBS" in
4316         *pthread*)
4317             ;;
4318         *)
4319             echo "Working around Debian bug #390243..."
4320             STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4321             ;;
4322         esac
4323         if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4324             DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4325             STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4326         fi
4327 fi
4328
4329 else
4330   echo "Disabling device-mapper support by default"
4331
4332 fi
4333
4334
4335
4336
4337
4338
4339 # Check whether --enable-tls was given.
4340 if test "${enable_tls+set}" = set; then
4341   enableval=$enable_tls; if test "$enableval" = "no"
4342 then
4343         try_tls=""
4344         echo "Disabling thread local support"
4345 else
4346         try_tls="yes"
4347         echo "Enabling thread local support"
4348 fi
4349
4350 else
4351   try_tls="yes"
4352 echo "Try using thread local support by default"
4353
4354 fi
4355
4356 if test "$try_tls" = "yes"
4357 then
4358
4359   { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4360 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4361   if test "${ac_cv_tls+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364
4365     ax_tls_keywords="__thread __declspec(thread) none"
4366     for ax_tls_keyword in $ax_tls_keywords; do
4367        case $ax_tls_keyword in
4368           none) ac_cv_tls=none ; break ;;
4369           *)
4370              cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 #include <stdlib.h>
4377                  static void
4378                  foo(void) {
4379                  static  $ax_tls_keyword  int bar;
4380                  exit(1);
4381                  }
4382 int
4383 main ()
4384 {
4385
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.$ac_objext
4391 if { (ac_try="$ac_compile"
4392 case "(($ac_try" in
4393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394   *) ac_try_echo=$ac_try;;
4395 esac
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397   (eval "$ac_compile") 2>conftest.er1
4398   ac_status=$?
4399   grep -v '^ *+' conftest.er1 >conftest.err
4400   rm -f conftest.er1
4401   cat conftest.err >&5
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); } && {
4404          test -z "$ac_c_werror_flag" ||
4405          test ! -s conftest.err
4406        } && test -s conftest.$ac_objext; then
4407   ac_cv_tls=$ax_tls_keyword ; break
4408 else
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412         ac_cv_tls=none
4413
4414 fi
4415
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417           esac
4418     done
4419
4420 fi
4421
4422
4423   if test "$ac_cv_tls" != "none"; then
4424
4425 cat >>confdefs.h <<_ACEOF
4426 #define TLS $ac_cv_tls
4427 _ACEOF
4428
4429   fi
4430   { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4431 echo "${ECHO_T}$ac_cv_tls" >&6; }
4432
4433 fi
4434 # Check whether --enable-uuidd was given.
4435 if test "${enable_uuidd+set}" = set; then
4436   enableval=$enable_uuidd; if test "$enableval" = "no"
4437 then
4438         echo "Not building uuidd"
4439         UUIDD_CMT="#"
4440 else
4441         cat >>confdefs.h <<\_ACEOF
4442 #define USE_UUIDD 1
4443 _ACEOF
4444
4445         UUIDD_CMT=""
4446         echo "Building uuidd"
4447 fi
4448
4449 else
4450   cat >>confdefs.h <<\_ACEOF
4451 #define USE_UUIDD 1
4452 _ACEOF
4453
4454 UUIDD_CMT=""
4455 echo "Building uuidd by default"
4456
4457 fi
4458
4459
4460 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4461
4462 GETTEXT_PACKAGE=e2fsprogs
4463 PACKAGE=e2fsprogs
4464 VERSION="$E2FSPROGS_VERSION"
4465 VERSION=0.14.1
4466 cat >>confdefs.h <<_ACEOF
4467 #define PACKAGE "$PACKAGE"
4468 _ACEOF
4469
4470 cat >>confdefs.h <<_ACEOF
4471 #define VERSION "$VERSION"
4472 _ACEOF
4473
4474
4475
4476
4477
4478 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4479 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4480 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4481 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   cat >conftest.make <<\_ACEOF
4485 SHELL = /bin/sh
4486 all:
4487         @echo '@@@%%%=$(MAKE)=@@@%%%'
4488 _ACEOF
4489 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4490 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4491   *@@@%%%=?*=@@@%%%*)
4492     eval ac_cv_prog_make_${ac_make}_set=yes;;
4493   *)
4494     eval ac_cv_prog_make_${ac_make}_set=no;;
4495 esac
4496 rm -f conftest.make
4497 fi
4498 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4499   { echo "$as_me:$LINENO: result: yes" >&5
4500 echo "${ECHO_T}yes" >&6; }
4501   SET_MAKE=
4502 else
4503   { echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6; }
4505   SET_MAKE="MAKE=${MAKE-make}"
4506 fi
4507
4508 # Find a good install program.  We prefer a C program (faster),
4509 # so one script is as good as another.  But avoid the broken or
4510 # incompatible versions:
4511 # SysV /etc/install, /usr/sbin/install
4512 # SunOS /usr/etc/install
4513 # IRIX /sbin/install
4514 # AIX /bin/install
4515 # AmigaOS /C/install, which installs bootblocks on floppy discs
4516 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4517 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4518 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4519 # OS/2's system install, which has a completely different semantic
4520 # ./install, which can be erroneously created by make from ./install.sh.
4521 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4522 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4523 if test -z "$INSTALL"; then
4524 if test "${ac_cv_path_install+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530   IFS=$as_save_IFS
4531   test -z "$as_dir" && as_dir=.
4532   # Account for people who put trailing slashes in PATH elements.
4533 case $as_dir/ in
4534   ./ | .// | /cC/* | \
4535   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4536   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4537   /usr/ucb/* ) ;;
4538   *)
4539     # OSF1 and SCO ODT 3.0 have their own names for install.
4540     # Don't use installbsd from OSF since it installs stuff as root
4541     # by default.
4542     for ac_prog in ginstall scoinst install; do
4543       for ac_exec_ext in '' $ac_executable_extensions; do
4544         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4545           if test $ac_prog = install &&
4546             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4547             # AIX install.  It has an incompatible calling convention.
4548             :
4549           elif test $ac_prog = install &&
4550             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4551             # program-specific install script used by HP pwplus--don't use.
4552             :
4553           else
4554             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4555             break 3
4556           fi
4557         fi
4558       done
4559     done
4560     ;;
4561 esac
4562 done
4563 IFS=$as_save_IFS
4564
4565
4566 fi
4567   if test "${ac_cv_path_install+set}" = set; then
4568     INSTALL=$ac_cv_path_install
4569   else
4570     # As a last resort, use the slow shell script.  Don't cache a
4571     # value for INSTALL within a source directory, because that will
4572     # break other packages using the cache if that directory is
4573     # removed, or if the value is a relative name.
4574     INSTALL=$ac_install_sh
4575   fi
4576 fi
4577 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4578 echo "${ECHO_T}$INSTALL" >&6; }
4579
4580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4581 # It thinks the first close brace ends the variable substitution.
4582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4583
4584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4585
4586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4587
4588
4589         MKINSTALLDIRS=
4590   if test -n "$ac_aux_dir"; then
4591     case "$ac_aux_dir" in
4592       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4593       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4594     esac
4595   fi
4596   if test -z "$MKINSTALLDIRS"; then
4597     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4598   fi
4599
4600
4601
4602   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4603 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4604     # Check whether --enable-nls was given.
4605 if test "${enable_nls+set}" = set; then
4606   enableval=$enable_nls; USE_NLS=$enableval
4607 else
4608   USE_NLS=yes
4609 fi
4610
4611   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4612 echo "${ECHO_T}$USE_NLS" >&6; }
4613
4614
4615
4616
4617
4618
4619 # Prepare PATH_SEPARATOR.
4620 # The user is always right.
4621 if test "${PATH_SEPARATOR+set}" != set; then
4622   echo "#! /bin/sh" >conf$$.sh
4623   echo  "exit 0"   >>conf$$.sh
4624   chmod +x conf$$.sh
4625   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4626     PATH_SEPARATOR=';'
4627   else
4628     PATH_SEPARATOR=:
4629   fi
4630   rm -f conf$$.sh
4631 fi
4632
4633 # Find out how to test for executable files. Don't use a zero-byte file,
4634 # as systems may use methods other than mode bits to determine executability.
4635 cat >conf$$.file <<_ASEOF
4636 #! /bin/sh
4637 exit 0
4638 _ASEOF
4639 chmod +x conf$$.file
4640 if test -x conf$$.file >/dev/null 2>&1; then
4641   ac_executable_p="test -x"
4642 else
4643   ac_executable_p="test -f"
4644 fi
4645 rm -f conf$$.file
4646
4647 # Extract the first word of "msgfmt", so it can be a program name with args.
4648 set dummy msgfmt; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_path_MSGFMT+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   case "$MSGFMT" in
4655   [\\/]* | ?:[\\/]*)
4656     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4657     ;;
4658   *)
4659     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4660     for ac_dir in $PATH; do
4661       IFS="$ac_save_IFS"
4662       test -z "$ac_dir" && ac_dir=.
4663       for ac_exec_ext in '' $ac_executable_extensions; do
4664         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4665           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4666      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4667             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4668             break 2
4669           fi
4670         fi
4671       done
4672     done
4673     IFS="$ac_save_IFS"
4674   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4675     ;;
4676 esac
4677 fi
4678 MSGFMT="$ac_cv_path_MSGFMT"
4679 if test "$MSGFMT" != ":"; then
4680   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4681 echo "${ECHO_T}$MSGFMT" >&6; }
4682 else
4683   { echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6; }
4685 fi
4686
4687   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4688 set dummy gmsgfmt; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4692   echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694   case $GMSGFMT in
4695   [\\/]* | ?:[\\/]*)
4696   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4697   ;;
4698   *)
4699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702   IFS=$as_save_IFS
4703   test -z "$as_dir" && as_dir=.
4704   for ac_exec_ext in '' $ac_executable_extensions; do
4705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708     break 2
4709   fi
4710 done
4711 done
4712 IFS=$as_save_IFS
4713
4714   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4715   ;;
4716 esac
4717 fi
4718 GMSGFMT=$ac_cv_path_GMSGFMT
4719 if test -n "$GMSGFMT"; then
4720   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4721 echo "${ECHO_T}$GMSGFMT" >&6; }
4722 else
4723   { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4725 fi
4726
4727
4728
4729
4730 # Prepare PATH_SEPARATOR.
4731 # The user is always right.
4732 if test "${PATH_SEPARATOR+set}" != set; then
4733   echo "#! /bin/sh" >conf$$.sh
4734   echo  "exit 0"   >>conf$$.sh
4735   chmod +x conf$$.sh
4736   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4737     PATH_SEPARATOR=';'
4738   else
4739     PATH_SEPARATOR=:
4740   fi
4741   rm -f conf$$.sh
4742 fi
4743
4744 # Find out how to test for executable files. Don't use a zero-byte file,
4745 # as systems may use methods other than mode bits to determine executability.
4746 cat >conf$$.file <<_ASEOF
4747 #! /bin/sh
4748 exit 0
4749 _ASEOF
4750 chmod +x conf$$.file
4751 if test -x conf$$.file >/dev/null 2>&1; then
4752   ac_executable_p="test -x"
4753 else
4754   ac_executable_p="test -f"
4755 fi
4756 rm -f conf$$.file
4757
4758 # Extract the first word of "xgettext", so it can be a program name with args.
4759 set dummy xgettext; ac_word=$2
4760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   case "$XGETTEXT" in
4766   [\\/]* | ?:[\\/]*)
4767     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4768     ;;
4769   *)
4770     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4771     for ac_dir in $PATH; do
4772       IFS="$ac_save_IFS"
4773       test -z "$ac_dir" && ac_dir=.
4774       for ac_exec_ext in '' $ac_executable_extensions; do
4775         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4776           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4777      (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
4778             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4779             break 2
4780           fi
4781         fi
4782       done
4783     done
4784     IFS="$ac_save_IFS"
4785   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4786     ;;
4787 esac
4788 fi
4789 XGETTEXT="$ac_cv_path_XGETTEXT"
4790 if test "$XGETTEXT" != ":"; then
4791   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4792 echo "${ECHO_T}$XGETTEXT" >&6; }
4793 else
4794   { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4796 fi
4797
4798     rm -f messages.po
4799
4800
4801 # Prepare PATH_SEPARATOR.
4802 # The user is always right.
4803 if test "${PATH_SEPARATOR+set}" != set; then
4804   echo "#! /bin/sh" >conf$$.sh
4805   echo  "exit 0"   >>conf$$.sh
4806   chmod +x conf$$.sh
4807   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4808     PATH_SEPARATOR=';'
4809   else
4810     PATH_SEPARATOR=:
4811   fi
4812   rm -f conf$$.sh
4813 fi
4814
4815 # Find out how to test for executable files. Don't use a zero-byte file,
4816 # as systems may use methods other than mode bits to determine executability.
4817 cat >conf$$.file <<_ASEOF
4818 #! /bin/sh
4819 exit 0
4820 _ASEOF
4821 chmod +x conf$$.file
4822 if test -x conf$$.file >/dev/null 2>&1; then
4823   ac_executable_p="test -x"
4824 else
4825   ac_executable_p="test -f"
4826 fi
4827 rm -f conf$$.file
4828
4829 # Extract the first word of "msgmerge", so it can be a program name with args.
4830 set dummy msgmerge; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836   case "$MSGMERGE" in
4837   [\\/]* | ?:[\\/]*)
4838     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4839     ;;
4840   *)
4841     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4842     for ac_dir in $PATH; do
4843       IFS="$ac_save_IFS"
4844       test -z "$ac_dir" && ac_dir=.
4845       for ac_exec_ext in '' $ac_executable_extensions; do
4846         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4847           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4848             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4849             break 2
4850           fi
4851         fi
4852       done
4853     done
4854     IFS="$ac_save_IFS"
4855   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4856     ;;
4857 esac
4858 fi
4859 MSGMERGE="$ac_cv_path_MSGMERGE"
4860 if test "$MSGMERGE" != ":"; then
4861   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4862 echo "${ECHO_T}$MSGMERGE" >&6; }
4863 else
4864   { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4866 fi
4867
4868
4869       if test "$GMSGFMT" != ":"; then
4870             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4871        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4872       : ;
4873     else
4874       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4875       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4876 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4877       GMSGFMT=":"
4878     fi
4879   fi
4880
4881       if test "$XGETTEXT" != ":"; then
4882             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4883        (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
4884       : ;
4885     else
4886       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4887 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4888       XGETTEXT=":"
4889     fi
4890         rm -f messages.po
4891   fi
4892
4893   ac_config_commands="$ac_config_commands default-1"
4894
4895
4896 if test -n "$ac_tool_prefix"; then
4897   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4901 if test "${ac_cv_prog_RANLIB+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   if test -n "$RANLIB"; then
4905   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912   for ac_exec_ext in '' $ac_executable_extensions; do
4913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919 done
4920 IFS=$as_save_IFS
4921
4922 fi
4923 fi
4924 RANLIB=$ac_cv_prog_RANLIB
4925 if test -n "$RANLIB"; then
4926   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4927 echo "${ECHO_T}$RANLIB" >&6; }
4928 else
4929   { echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6; }
4931 fi
4932
4933
4934 fi
4935 if test -z "$ac_cv_prog_RANLIB"; then
4936   ac_ct_RANLIB=$RANLIB
4937   # Extract the first word of "ranlib", so it can be a program name with args.
4938 set dummy ranlib; ac_word=$2
4939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   if test -n "$ac_ct_RANLIB"; then
4945   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952   for ac_exec_ext in '' $ac_executable_extensions; do
4953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954     ac_cv_prog_ac_ct_RANLIB="ranlib"
4955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959 done
4960 IFS=$as_save_IFS
4961
4962 fi
4963 fi
4964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4965 if test -n "$ac_ct_RANLIB"; then
4966   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4967 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4968 else
4969   { echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6; }
4971 fi
4972
4973   if test "x$ac_ct_RANLIB" = x; then
4974     RANLIB=":"
4975   else
4976     case $cross_compiling:$ac_tool_warned in
4977 yes:)
4978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4979 whose name does not start with the host triplet.  If you think this
4980 configuration is useful to you, please write to autoconf@gnu.org." >&5
4981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4982 whose name does not start with the host triplet.  If you think this
4983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4984 ac_tool_warned=yes ;;
4985 esac
4986     RANLIB=$ac_ct_RANLIB
4987   fi
4988 else
4989   RANLIB="$ac_cv_prog_RANLIB"
4990 fi
4991
4992
4993         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4994 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4995 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   ac_check_lib_save_LIBS=$LIBS
4999 LIBS="-lcposix  $LIBS"
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h.  */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h.  */
5006
5007 /* Override any GCC internal prototype to avoid an error.
5008    Use char because int might match the return type of a GCC
5009    builtin and then its argument prototype would still apply.  */
5010 #ifdef __cplusplus
5011 extern "C"
5012 #endif
5013 char strerror ();
5014 int
5015 main ()
5016 {
5017 return strerror ();
5018   ;
5019   return 0;
5020 }
5021 _ACEOF
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5024 case "(($ac_try" in
5025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026   *) ac_try_echo=$ac_try;;
5027 esac
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029   (eval "$ac_link") 2>conftest.er1
5030   ac_status=$?
5031   grep -v '^ *+' conftest.er1 >conftest.err
5032   rm -f conftest.er1
5033   cat conftest.err >&5
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } && {
5036          test -z "$ac_c_werror_flag" ||
5037          test ! -s conftest.err
5038        } && test -s conftest$ac_exeext &&
5039        $as_test_x conftest$ac_exeext; then
5040   ac_cv_lib_cposix_strerror=yes
5041 else
5042   echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045         ac_cv_lib_cposix_strerror=no
5046 fi
5047
5048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5049       conftest$ac_exeext conftest.$ac_ext
5050 LIBS=$ac_check_lib_save_LIBS
5051 fi
5052 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5053 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5054 if test $ac_cv_lib_cposix_strerror = yes; then
5055   LIBS="$LIBS -lcposix"
5056 fi
5057
5058
5059
5060 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5061 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5062 if test "${ac_cv_c_const+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h.  */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h.  */
5071
5072 int
5073 main ()
5074 {
5075 /* FIXME: Include the comments suggested by Paul. */
5076 #ifndef __cplusplus
5077   /* Ultrix mips cc rejects this.  */
5078   typedef int charset[2];
5079   const charset cs;
5080   /* SunOS 4.1.1 cc rejects this.  */
5081   char const *const *pcpcc;
5082   char **ppc;
5083   /* NEC SVR4.0.2 mips cc rejects this.  */
5084   struct point {int x, y;};
5085   static struct point const zero = {0,0};
5086   /* AIX XL C 1.02.0.0 rejects this.
5087      It does not let you subtract one const X* pointer from another in
5088      an arm of an if-expression whose if-part is not a constant
5089      expression */
5090   const char *g = "string";
5091   pcpcc = &g + (g ? g-g : 0);
5092   /* HPUX 7.0 cc rejects these. */
5093   ++pcpcc;
5094   ppc = (char**) pcpcc;
5095   pcpcc = (char const *const *) ppc;
5096   { /* SCO 3.2v4 cc rejects this.  */
5097     char *t;
5098     char const *s = 0 ? (char *) 0 : (char const *) 0;
5099
5100     *t++ = 0;
5101     if (s) return 0;
5102   }
5103   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5104     int x[] = {25, 17};
5105     const int *foo = &x[0];
5106     ++foo;
5107   }
5108   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5109     typedef const int *iptr;
5110     iptr p = 0;
5111     ++p;
5112   }
5113   { /* AIX XL C 1.02.0.0 rejects this saying
5114        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5115     struct s { int j; const int *ap[3]; };
5116     struct s *b; b->j = 5;
5117   }
5118   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5119     const int foo = 10;
5120     if (!foo) return 0;
5121   }
5122   return !cs[0] && !zero.x;
5123 #endif
5124
5125   ;
5126   return 0;
5127 }
5128 _ACEOF
5129 rm -f conftest.$ac_objext
5130 if { (ac_try="$ac_compile"
5131 case "(($ac_try" in
5132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133   *) ac_try_echo=$ac_try;;
5134 esac
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136   (eval "$ac_compile") 2>conftest.er1
5137   ac_status=$?
5138   grep -v '^ *+' conftest.er1 >conftest.err
5139   rm -f conftest.er1
5140   cat conftest.err >&5
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); } && {
5143          test -z "$ac_c_werror_flag" ||
5144          test ! -s conftest.err
5145        } && test -s conftest.$ac_objext; then
5146   ac_cv_c_const=yes
5147 else
5148   echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151         ac_cv_c_const=no
5152 fi
5153
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 fi
5156 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5157 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5158 if test $ac_cv_c_const = no; then
5159
5160 cat >>confdefs.h <<\_ACEOF
5161 #define const
5162 _ACEOF
5163
5164 fi
5165
5166
5167   { echo "$as_me:$LINENO: checking for signed" >&5
5168 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5169 if test "${bh_cv_c_signed+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h.  */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h.  */
5178
5179 int
5180 main ()
5181 {
5182 signed char x;
5183   ;
5184   return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (ac_try="$ac_compile"
5189 case "(($ac_try" in
5190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191   *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194   (eval "$ac_compile") 2>conftest.er1
5195   ac_status=$?
5196   grep -v '^ *+' conftest.er1 >conftest.err
5197   rm -f conftest.er1
5198   cat conftest.err >&5
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); } && {
5201          test -z "$ac_c_werror_flag" ||
5202          test ! -s conftest.err
5203        } && test -s conftest.$ac_objext; then
5204   bh_cv_c_signed=yes
5205 else
5206   echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209         bh_cv_c_signed=no
5210 fi
5211
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 fi
5214 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5215 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5216   if test $bh_cv_c_signed = no; then
5217
5218 cat >>confdefs.h <<\_ACEOF
5219 #define signed
5220 _ACEOF
5221
5222   fi
5223
5224 { echo "$as_me:$LINENO: checking for inline" >&5
5225 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5226 if test "${ac_cv_c_inline+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   ac_cv_c_inline=no
5230 for ac_kw in inline __inline__ __inline; do
5231   cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237 #ifndef __cplusplus
5238 typedef int foo_t;
5239 static $ac_kw foo_t static_foo () {return 0; }
5240 $ac_kw foo_t foo () {return 0; }
5241 #endif
5242
5243 _ACEOF
5244 rm -f conftest.$ac_objext
5245 if { (ac_try="$ac_compile"
5246 case "(($ac_try" in
5247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248   *) ac_try_echo=$ac_try;;
5249 esac
5250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5251   (eval "$ac_compile") 2>conftest.er1
5252   ac_status=$?
5253   grep -v '^ *+' conftest.er1 >conftest.err
5254   rm -f conftest.er1
5255   cat conftest.err >&5
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); } && {
5258          test -z "$ac_c_werror_flag" ||
5259          test ! -s conftest.err
5260        } && test -s conftest.$ac_objext; then
5261   ac_cv_c_inline=$ac_kw
5262 else
5263   echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266
5267 fi
5268
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270   test "$ac_cv_c_inline" != no && break
5271 done
5272
5273 fi
5274 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5275 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5276
5277
5278 case $ac_cv_c_inline in
5279   inline | yes) ;;
5280   *)
5281     case $ac_cv_c_inline in
5282       no) ac_val=;;
5283       *) ac_val=$ac_cv_c_inline;;
5284     esac
5285     cat >>confdefs.h <<_ACEOF
5286 #ifndef __cplusplus
5287 #define inline $ac_val
5288 #endif
5289 _ACEOF
5290     ;;
5291 esac
5292
5293 { echo "$as_me:$LINENO: checking for off_t" >&5
5294 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5295 if test "${ac_cv_type_off_t+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h.  */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h.  */
5304 $ac_includes_default
5305 typedef off_t ac__type_new_;
5306 int
5307 main ()
5308 {
5309 if ((ac__type_new_ *) 0)
5310   return 0;
5311 if (sizeof (ac__type_new_))
5312   return 0;
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (ac_try="$ac_compile"
5319 case "(($ac_try" in
5320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321   *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324   (eval "$ac_compile") 2>conftest.er1
5325   ac_status=$?
5326   grep -v '^ *+' conftest.er1 >conftest.err
5327   rm -f conftest.er1
5328   cat conftest.err >&5
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } && {
5331          test -z "$ac_c_werror_flag" ||
5332          test ! -s conftest.err
5333        } && test -s conftest.$ac_objext; then
5334   ac_cv_type_off_t=yes
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339         ac_cv_type_off_t=no
5340 fi
5341
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 fi
5344 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5345 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5346 if test $ac_cv_type_off_t = yes; then
5347   :
5348 else
5349
5350 cat >>confdefs.h <<_ACEOF
5351 #define off_t long int
5352 _ACEOF
5353
5354 fi
5355
5356 { echo "$as_me:$LINENO: checking for size_t" >&5
5357 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5358 if test "${ac_cv_type_size_t+set}" = set; then
5359   echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361   cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h.  */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h.  */
5367 $ac_includes_default
5368 typedef size_t ac__type_new_;
5369 int
5370 main ()
5371 {
5372 if ((ac__type_new_ *) 0)
5373   return 0;
5374 if (sizeof (ac__type_new_))
5375   return 0;
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (ac_try="$ac_compile"
5382 case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387   (eval "$ac_compile") 2>conftest.er1
5388   ac_status=$?
5389   grep -v '^ *+' conftest.er1 >conftest.err
5390   rm -f conftest.er1
5391   cat conftest.err >&5
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); } && {
5394          test -z "$ac_c_werror_flag" ||
5395          test ! -s conftest.err
5396        } && test -s conftest.$ac_objext; then
5397   ac_cv_type_size_t=yes
5398 else
5399   echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402         ac_cv_type_size_t=no
5403 fi
5404
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5408 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5409 if test $ac_cv_type_size_t = yes; then
5410   :
5411 else
5412
5413 cat >>confdefs.h <<_ACEOF
5414 #define size_t unsigned int
5415 _ACEOF
5416
5417 fi
5418
5419
5420   { echo "$as_me:$LINENO: checking for long long" >&5
5421 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5422 if test "${ac_cv_type_long_long+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5431 long long ll = 1LL; int i = 63;
5432 int
5433 main ()
5434 {
5435 long long llmax = (long long) -1;
5436      return ll << i | ll >> i | llmax / ll | llmax % ll;
5437   ;
5438   return 0;
5439 }
5440 _ACEOF
5441 rm -f conftest.$ac_objext conftest$ac_exeext
5442 if { (ac_try="$ac_link"
5443 case "(($ac_try" in
5444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445   *) ac_try_echo=$ac_try;;
5446 esac
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448   (eval "$ac_link") 2>conftest.er1
5449   ac_status=$?
5450   grep -v '^ *+' conftest.er1 >conftest.err
5451   rm -f conftest.er1
5452   cat conftest.err >&5
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); } && {
5455          test -z "$ac_c_werror_flag" ||
5456          test ! -s conftest.err
5457        } && test -s conftest$ac_exeext &&
5458        $as_test_x conftest$ac_exeext; then
5459   ac_cv_type_long_long=yes
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464         ac_cv_type_long_long=no
5465 fi
5466
5467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5468       conftest$ac_exeext conftest.$ac_ext
5469 fi
5470 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5471 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5472   if test $ac_cv_type_long_long = yes; then
5473
5474 cat >>confdefs.h <<\_ACEOF
5475 #define HAVE_LONG_LONG 1
5476 _ACEOF
5477
5478   fi
5479
5480
5481   { echo "$as_me:$LINENO: checking for long double" >&5
5482 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5483 if test "${gt_cv_c_long_double+set}" = set; then
5484   echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486   if test "$GCC" = yes; then
5487        gt_cv_c_long_double=yes
5488      else
5489        cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h.  */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h.  */
5495
5496          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5497          long double foo = 0.0;
5498          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5499          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5500
5501 int
5502 main ()
5503 {
5504
5505   ;
5506   return 0;
5507 }
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (ac_try="$ac_compile"
5511 case "(($ac_try" in
5512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513   *) ac_try_echo=$ac_try;;
5514 esac
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516   (eval "$ac_compile") 2>conftest.er1
5517   ac_status=$?
5518   grep -v '^ *+' conftest.er1 >conftest.err
5519   rm -f conftest.er1
5520   cat conftest.err >&5
5521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522   (exit $ac_status); } && {
5523          test -z "$ac_c_werror_flag" ||
5524          test ! -s conftest.err
5525        } && test -s conftest.$ac_objext; then
5526   gt_cv_c_long_double=yes
5527 else
5528   echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531         gt_cv_c_long_double=no
5532 fi
5533
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535      fi
5536 fi
5537 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5538 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5539   if test $gt_cv_c_long_double = yes; then
5540
5541 cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_LONG_DOUBLE 1
5543 _ACEOF
5544
5545   fi
5546
5547
5548   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5549 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5550 if test "${gt_cv_c_wchar_t+set}" = set; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553   cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559 #include <stddef.h>
5560        wchar_t foo = (wchar_t)'\0';
5561 int
5562 main ()
5563 {
5564
5565   ;
5566   return 0;
5567 }
5568 _ACEOF
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5571 case "(($ac_try" in
5572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573   *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576   (eval "$ac_compile") 2>conftest.er1
5577   ac_status=$?
5578   grep -v '^ *+' conftest.er1 >conftest.err
5579   rm -f conftest.er1
5580   cat conftest.err >&5
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); } && {
5583          test -z "$ac_c_werror_flag" ||
5584          test ! -s conftest.err
5585        } && test -s conftest.$ac_objext; then
5586   gt_cv_c_wchar_t=yes
5587 else
5588   echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5590
5591         gt_cv_c_wchar_t=no
5592 fi
5593
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 fi
5596 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5597 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5598   if test $gt_cv_c_wchar_t = yes; then
5599
5600 cat >>confdefs.h <<\_ACEOF
5601 #define HAVE_WCHAR_T 1
5602 _ACEOF
5603
5604   fi
5605
5606
5607   { echo "$as_me:$LINENO: checking for wint_t" >&5
5608 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5609 if test "${gt_cv_c_wint_t+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h.  */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h.  */
5618 #include <wchar.h>
5619        wint_t foo = (wchar_t)'\0';
5620 int
5621 main ()
5622 {
5623
5624   ;
5625   return 0;
5626 }
5627 _ACEOF
5628 rm -f conftest.$ac_objext
5629 if { (ac_try="$ac_compile"
5630 case "(($ac_try" in
5631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632   *) ac_try_echo=$ac_try;;
5633 esac
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635   (eval "$ac_compile") 2>conftest.er1
5636   ac_status=$?
5637   grep -v '^ *+' conftest.er1 >conftest.err
5638   rm -f conftest.er1
5639   cat conftest.err >&5
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } && {
5642          test -z "$ac_c_werror_flag" ||
5643          test ! -s conftest.err
5644        } && test -s conftest.$ac_objext; then
5645   gt_cv_c_wint_t=yes
5646 else
5647   echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650         gt_cv_c_wint_t=no
5651 fi
5652
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 fi
5655 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5656 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5657   if test $gt_cv_c_wint_t = yes; then
5658
5659 cat >>confdefs.h <<\_ACEOF
5660 #define HAVE_WINT_T 1
5661 _ACEOF
5662
5663   fi
5664
5665
5666   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5667 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5668 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h.  */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h.  */
5677 #include <sys/types.h>
5678 #include <inttypes.h>
5679 int
5680 main ()
5681 {
5682 uintmax_t i = (uintmax_t) -1;
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (ac_try="$ac_compile"
5689 case "(($ac_try" in
5690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691   *) ac_try_echo=$ac_try;;
5692 esac
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694   (eval "$ac_compile") 2>conftest.er1
5695   ac_status=$?
5696   grep -v '^ *+' conftest.er1 >conftest.err
5697   rm -f conftest.er1
5698   cat conftest.err >&5
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } && {
5701          test -z "$ac_c_werror_flag" ||
5702          test ! -s conftest.err
5703        } && test -s conftest.$ac_objext; then
5704   jm_ac_cv_header_inttypes_h=yes
5705 else
5706   echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709         jm_ac_cv_header_inttypes_h=no
5710 fi
5711
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 fi
5714 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5715 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5716   if test $jm_ac_cv_header_inttypes_h = yes; then
5717
5718 cat >>confdefs.h <<_ACEOF
5719 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5720 _ACEOF
5721
5722   fi
5723
5724
5725   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5726 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5727 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736 #include <sys/types.h>
5737 #include <stdint.h>
5738 int
5739 main ()
5740 {
5741 uintmax_t i = (uintmax_t) -1;
5742   ;
5743   return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5748 case "(($ac_try" in
5749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750   *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753   (eval "$ac_compile") 2>conftest.er1
5754   ac_status=$?
5755   grep -v '^ *+' conftest.er1 >conftest.err
5756   rm -f conftest.er1
5757   cat conftest.err >&5
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); } && {
5760          test -z "$ac_c_werror_flag" ||
5761          test ! -s conftest.err
5762        } && test -s conftest.$ac_objext; then
5763   jm_ac_cv_header_stdint_h=yes
5764 else
5765   echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768         jm_ac_cv_header_stdint_h=no
5769 fi
5770
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 fi
5773 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5774 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5775   if test $jm_ac_cv_header_stdint_h = yes; then
5776
5777 cat >>confdefs.h <<_ACEOF
5778 #define HAVE_STDINT_H_WITH_UINTMAX 1
5779 _ACEOF
5780
5781   fi
5782
5783
5784
5785
5786   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5787 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5788 if test "${gt_cv_c_intmax_t+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h.  */
5797
5798 #include <stddef.h>
5799 #include <stdlib.h>
5800 #if HAVE_STDINT_H_WITH_UINTMAX
5801 #include <stdint.h>
5802 #endif
5803 #if HAVE_INTTYPES_H_WITH_UINTMAX
5804 #include <inttypes.h>
5805 #endif
5806
5807 int
5808 main ()
5809 {
5810 intmax_t x = -1;
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5817 case "(($ac_try" in
5818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819   *) ac_try_echo=$ac_try;;
5820 esac
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822   (eval "$ac_compile") 2>conftest.er1
5823   ac_status=$?
5824   grep -v '^ *+' conftest.er1 >conftest.err
5825   rm -f conftest.er1
5826   cat conftest.err >&5
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); } && {
5829          test -z "$ac_c_werror_flag" ||
5830          test ! -s conftest.err
5831        } && test -s conftest.$ac_objext; then
5832   gt_cv_c_intmax_t=yes
5833 else
5834   echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837         gt_cv_c_intmax_t=no
5838 fi
5839
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 fi
5842 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5843 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5844   if test $gt_cv_c_intmax_t = yes; then
5845
5846 cat >>confdefs.h <<\_ACEOF
5847 #define HAVE_INTMAX_T 1
5848 _ACEOF
5849
5850   fi
5851
5852
5853
5854   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5855 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5856 if test "${gt_cv_func_printf_posix+set}" = set; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859
5860       if test "$cross_compiling" = yes; then
5861
5862         cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h.  */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h.  */
5868
5869 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5870   notposix
5871 #endif
5872
5873 _ACEOF
5874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5875   $EGREP "notposix" >/dev/null 2>&1; then
5876   gt_cv_func_printf_posix="guessing no"
5877 else
5878   gt_cv_func_printf_posix="guessing yes"
5879 fi
5880 rm -f conftest*
5881
5882
5883 else
5884   cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h.  */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h.  */
5890
5891 #include <stdio.h>
5892 #include <string.h>
5893 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5894    dollar expansion (possibly an autoconf bug).  */
5895 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5896 static char buf[100];
5897 int main ()
5898 {
5899   sprintf (buf, format, 33, 55);
5900   return (strcmp (buf, "55 33") != 0);
5901 }
5902 _ACEOF
5903 rm -f conftest$ac_exeext
5904 if { (ac_try="$ac_link"
5905 case "(($ac_try" in
5906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907   *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910   (eval "$ac_link") 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5914   { (case "(($ac_try" in
5915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916   *) ac_try_echo=$ac_try;;
5917 esac
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919   (eval "$ac_try") 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; }; then
5923   gt_cv_func_printf_posix=yes
5924 else
5925   echo "$as_me: program exited with status $ac_status" >&5
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5928
5929 ( exit $ac_status )
5930 gt_cv_func_printf_posix=no
5931 fi
5932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5933 fi
5934
5935
5936
5937 fi
5938 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5939 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5940   case $gt_cv_func_printf_posix in
5941     *yes)
5942
5943 cat >>confdefs.h <<\_ACEOF
5944 #define HAVE_POSIX_PRINTF 1
5945 _ACEOF
5946
5947       ;;
5948   esac
5949
5950 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5951 # for constant arguments.  Useless!
5952 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5953 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5954 if test "${ac_cv_working_alloca_h+set}" = set; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963 #include <alloca.h>
5964 int
5965 main ()
5966 {
5967 char *p = (char *) alloca (2 * sizeof (int));
5968                           if (p) return 0;
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (ac_try="$ac_link"
5975 case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980   (eval "$ac_link") 2>conftest.er1
5981   ac_status=$?
5982   grep -v '^ *+' conftest.er1 >conftest.err
5983   rm -f conftest.er1
5984   cat conftest.err >&5
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } && {
5987          test -z "$ac_c_werror_flag" ||
5988          test ! -s conftest.err
5989        } && test -s conftest$ac_exeext &&
5990        $as_test_x conftest$ac_exeext; then
5991   ac_cv_working_alloca_h=yes
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996         ac_cv_working_alloca_h=no
5997 fi
5998
5999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6000       conftest$ac_exeext conftest.$ac_ext
6001 fi
6002 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6003 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6004 if test $ac_cv_working_alloca_h = yes; then
6005
6006 cat >>confdefs.h <<\_ACEOF
6007 #define HAVE_ALLOCA_H 1
6008 _ACEOF
6009
6010 fi
6011
6012 { echo "$as_me:$LINENO: checking for alloca" >&5
6013 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6014 if test "${ac_cv_func_alloca_works+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h.  */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h.  */
6023 #ifdef __GNUC__
6024 # define alloca __builtin_alloca
6025 #else
6026 # ifdef _MSC_VER
6027 #  include <malloc.h>
6028 #  define alloca _alloca
6029 # else
6030 #  ifdef HAVE_ALLOCA_H
6031 #   include <alloca.h>
6032 #  else
6033 #   ifdef _AIX
6034  #pragma alloca
6035 #   else
6036 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6037 char *alloca ();
6038 #    endif
6039 #   endif
6040 #  endif
6041 # endif
6042 #endif
6043
6044 int
6045 main ()
6046 {
6047 char *p = (char *) alloca (1);
6048                                     if (p) return 0;
6049   ;
6050   return 0;
6051 }
6052 _ACEOF
6053 rm -f conftest.$ac_objext conftest$ac_exeext
6054 if { (ac_try="$ac_link"
6055 case "(($ac_try" in
6056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057   *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060   (eval "$ac_link") 2>conftest.er1
6061   ac_status=$?
6062   grep -v '^ *+' conftest.er1 >conftest.err
6063   rm -f conftest.er1
6064   cat conftest.err >&5
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); } && {
6067          test -z "$ac_c_werror_flag" ||
6068          test ! -s conftest.err
6069        } && test -s conftest$ac_exeext &&
6070        $as_test_x conftest$ac_exeext; then
6071   ac_cv_func_alloca_works=yes
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076         ac_cv_func_alloca_works=no
6077 fi
6078
6079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6080       conftest$ac_exeext conftest.$ac_ext
6081 fi
6082 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6083 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6084
6085 if test $ac_cv_func_alloca_works = yes; then
6086
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_ALLOCA 1
6089 _ACEOF
6090
6091 else
6092   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6093 # that cause trouble.  Some versions do not even contain alloca or
6094 # contain a buggy version.  If you still want to use their alloca,
6095 # use ar to extract alloca.o from them instead of compiling alloca.c.
6096
6097 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6098
6099 cat >>confdefs.h <<\_ACEOF
6100 #define C_ALLOCA 1
6101 _ACEOF
6102
6103
6104 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6105 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6106 if test "${ac_cv_os_cray+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h.  */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h.  */
6115 #if defined CRAY && ! defined CRAY2
6116 webecray
6117 #else
6118 wenotbecray
6119 #endif
6120
6121 _ACEOF
6122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123   $EGREP "webecray" >/dev/null 2>&1; then
6124   ac_cv_os_cray=yes
6125 else
6126   ac_cv_os_cray=no
6127 fi
6128 rm -f conftest*
6129
6130 fi
6131 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6132 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6133 if test $ac_cv_os_cray = yes; then
6134   for ac_func in _getb67 GETB67 getb67; do
6135     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6149 #define $ac_func innocuous_$ac_func
6150
6151 /* System header to define __stub macros and hopefully few prototypes,
6152     which can conflict with char $ac_func (); below.
6153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6154     <limits.h> exists even on freestanding compilers.  */
6155
6156 #ifdef __STDC__
6157 # include <limits.h>
6158 #else
6159 # include <assert.h>
6160 #endif
6161
6162 #undef $ac_func
6163
6164 /* Override any GCC internal prototype to avoid an error.
6165    Use char because int might match the return type of a GCC
6166    builtin and then its argument prototype would still apply.  */
6167 #ifdef __cplusplus
6168 extern "C"
6169 #endif
6170 char $ac_func ();
6171 /* The GNU C library defines this for functions which it implements
6172     to always fail with ENOSYS.  Some functions are actually named
6173     something starting with __ and the normal name is an alias.  */
6174 #if defined __stub_$ac_func || defined __stub___$ac_func
6175 choke me
6176 #endif
6177
6178 int
6179 main ()
6180 {
6181 return $ac_func ();
6182   ;
6183   return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (ac_try="$ac_link"
6188 case "(($ac_try" in
6189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190   *) ac_try_echo=$ac_try;;
6191 esac
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193   (eval "$ac_link") 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } && {
6200          test -z "$ac_c_werror_flag" ||
6201          test ! -s conftest.err
6202        } && test -s conftest$ac_exeext &&
6203        $as_test_x conftest$ac_exeext; then
6204   eval "$as_ac_var=yes"
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209         eval "$as_ac_var=no"
6210 fi
6211
6212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6213       conftest$ac_exeext conftest.$ac_ext
6214 fi
6215 ac_res=`eval echo '${'$as_ac_var'}'`
6216                { echo "$as_me:$LINENO: result: $ac_res" >&5
6217 echo "${ECHO_T}$ac_res" >&6; }
6218 if test `eval echo '${'$as_ac_var'}'` = yes; then
6219
6220 cat >>confdefs.h <<_ACEOF
6221 #define CRAY_STACKSEG_END $ac_func
6222 _ACEOF
6223
6224     break
6225 fi
6226
6227   done
6228 fi
6229
6230 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6231 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6232 if test "${ac_cv_c_stack_direction+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   if test "$cross_compiling" = yes; then
6236   ac_cv_c_stack_direction=0
6237 else
6238   cat >conftest.$ac_ext <<_ACEOF
6239 /* confdefs.h.  */
6240 _ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h.  */
6244 $ac_includes_default
6245 int
6246 find_stack_direction ()
6247 {
6248   static char *addr = 0;
6249   auto char dummy;
6250   if (addr == 0)
6251     {
6252       addr = &dummy;
6253       return find_stack_direction ();
6254     }
6255   else
6256     return (&dummy > addr) ? 1 : -1;
6257 }
6258
6259 int
6260 main ()
6261 {
6262   return find_stack_direction () < 0;
6263 }
6264 _ACEOF
6265 rm -f conftest$ac_exeext
6266 if { (ac_try="$ac_link"
6267 case "(($ac_try" in
6268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269   *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272   (eval "$ac_link") 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6276   { (case "(($ac_try" in
6277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278   *) ac_try_echo=$ac_try;;
6279 esac
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281   (eval "$ac_try") 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); }; }; then
6285   ac_cv_c_stack_direction=1
6286 else
6287   echo "$as_me: program exited with status $ac_status" >&5
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 ( exit $ac_status )
6292 ac_cv_c_stack_direction=-1
6293 fi
6294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6295 fi
6296
6297
6298 fi
6299 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6300 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6301
6302 cat >>confdefs.h <<_ACEOF
6303 #define STACK_DIRECTION $ac_cv_c_stack_direction
6304 _ACEOF
6305
6306
6307 fi
6308
6309
6310
6311 for ac_header in stdlib.h unistd.h
6312 do
6313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6315   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 fi
6320 ac_res=`eval echo '${'$as_ac_Header'}'`
6321                { echo "$as_me:$LINENO: result: $ac_res" >&5
6322 echo "${ECHO_T}$ac_res" >&6; }
6323 else
6324   # Is the header compilable?
6325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333 $ac_includes_default
6334 #include <$ac_header>
6335 _ACEOF
6336 rm -f conftest.$ac_objext
6337 if { (ac_try="$ac_compile"
6338 case "(($ac_try" in
6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340   *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343   (eval "$ac_compile") 2>conftest.er1
6344   ac_status=$?
6345   grep -v '^ *+' conftest.er1 >conftest.err
6346   rm -f conftest.er1
6347   cat conftest.err >&5
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } && {
6350          test -z "$ac_c_werror_flag" ||
6351          test ! -s conftest.err
6352        } && test -s conftest.$ac_objext; then
6353   ac_header_compiler=yes
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358         ac_header_compiler=no
6359 fi
6360
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363 echo "${ECHO_T}$ac_header_compiler" >&6; }
6364
6365 # Is the header present?
6366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374 #include <$ac_header>
6375 _ACEOF
6376 if { (ac_try="$ac_cpp conftest.$ac_ext"
6377 case "(($ac_try" in
6378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379   *) ac_try_echo=$ac_try;;
6380 esac
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6383   ac_status=$?
6384   grep -v '^ *+' conftest.er1 >conftest.err
6385   rm -f conftest.er1
6386   cat conftest.err >&5
6387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388   (exit $ac_status); } >/dev/null && {
6389          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6390          test ! -s conftest.err
6391        }; then
6392   ac_header_preproc=yes
6393 else
6394   echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397   ac_header_preproc=no
6398 fi
6399
6400 rm -f conftest.err conftest.$ac_ext
6401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6402 echo "${ECHO_T}$ac_header_preproc" >&6; }
6403
6404 # So?  What about this header?
6405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6406   yes:no: )
6407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6411     ac_header_preproc=yes
6412     ;;
6413   no:yes:* )
6414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6426
6427     ;;
6428 esac
6429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   eval "$as_ac_Header=\$ac_header_preproc"
6435 fi
6436 ac_res=`eval echo '${'$as_ac_Header'}'`
6437                { echo "$as_me:$LINENO: result: $ac_res" >&5
6438 echo "${ECHO_T}$ac_res" >&6; }
6439
6440 fi
6441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442   cat >>confdefs.h <<_ACEOF
6443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444 _ACEOF
6445
6446 fi
6447
6448 done
6449
6450
6451 for ac_func in getpagesize
6452 do
6453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h.  */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h.  */
6465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6467 #define $ac_func innocuous_$ac_func
6468
6469 /* System header to define __stub macros and hopefully few prototypes,
6470     which can conflict with char $ac_func (); below.
6471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6472     <limits.h> exists even on freestanding compilers.  */
6473
6474 #ifdef __STDC__
6475 # include <limits.h>
6476 #else
6477 # include <assert.h>
6478 #endif
6479
6480 #undef $ac_func
6481
6482 /* Override any GCC internal prototype to avoid an error.
6483    Use char because int might match the return type of a GCC
6484    builtin and then its argument prototype would still apply.  */
6485 #ifdef __cplusplus
6486 extern "C"
6487 #endif
6488 char $ac_func ();
6489 /* The GNU C library defines this for functions which it implements
6490     to always fail with ENOSYS.  Some functions are actually named
6491     something starting with __ and the normal name is an alias.  */
6492 #if defined __stub_$ac_func || defined __stub___$ac_func
6493 choke me
6494 #endif
6495
6496 int
6497 main ()
6498 {
6499 return $ac_func ();
6500   ;
6501   return 0;
6502 }
6503 _ACEOF
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (ac_try="$ac_link"
6506 case "(($ac_try" in
6507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508   *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511   (eval "$ac_link") 2>conftest.er1
6512   ac_status=$?
6513   grep -v '^ *+' conftest.er1 >conftest.err
6514   rm -f conftest.er1
6515   cat conftest.err >&5
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } && {
6518          test -z "$ac_c_werror_flag" ||
6519          test ! -s conftest.err
6520        } && test -s conftest$ac_exeext &&
6521        $as_test_x conftest$ac_exeext; then
6522   eval "$as_ac_var=yes"
6523 else
6524   echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6526
6527         eval "$as_ac_var=no"
6528 fi
6529
6530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6531       conftest$ac_exeext conftest.$ac_ext
6532 fi
6533 ac_res=`eval echo '${'$as_ac_var'}'`
6534                { echo "$as_me:$LINENO: result: $ac_res" >&5
6535 echo "${ECHO_T}$ac_res" >&6; }
6536 if test `eval echo '${'$as_ac_var'}'` = yes; then
6537   cat >>confdefs.h <<_ACEOF
6538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6539 _ACEOF
6540
6541 fi
6542 done
6543
6544 { echo "$as_me:$LINENO: checking for working mmap" >&5
6545 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6546 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   if test "$cross_compiling" = yes; then
6550   ac_cv_func_mmap_fixed_mapped=no
6551 else
6552   cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h.  */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h.  */
6558 $ac_includes_default
6559 /* malloc might have been renamed as rpl_malloc. */
6560 #undef malloc
6561
6562 /* Thanks to Mike Haertel and Jim Avera for this test.
6563    Here is a matrix of mmap possibilities:
6564         mmap private not fixed
6565         mmap private fixed at somewhere currently unmapped
6566         mmap private fixed at somewhere already mapped
6567         mmap shared not fixed
6568         mmap shared fixed at somewhere currently unmapped
6569         mmap shared fixed at somewhere already mapped
6570    For private mappings, we should verify that changes cannot be read()
6571    back from the file, nor mmap's back from the file at a different
6572    address.  (There have been systems where private was not correctly
6573    implemented like the infamous i386 svr4.0, and systems where the
6574    VM page cache was not coherent with the file system buffer cache
6575    like early versions of FreeBSD and possibly contemporary NetBSD.)
6576    For shared mappings, we should conversely verify that changes get
6577    propagated back to all the places they're supposed to be.
6578
6579    Grep wants private fixed already mapped.
6580    The main things grep needs to know about mmap are:
6581    * does it exist and is it safe to write into the mmap'd area
6582    * how to use it (BSD variants)  */
6583
6584 #include <fcntl.h>
6585 #include <sys/mman.h>
6586
6587 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6588 char *malloc ();
6589 #endif
6590
6591 /* This mess was copied from the GNU getpagesize.h.  */
6592 #ifndef HAVE_GETPAGESIZE
6593 /* Assume that all systems that can run configure have sys/param.h.  */
6594 # ifndef HAVE_SYS_PARAM_H
6595 #  define HAVE_SYS_PARAM_H 1
6596 # endif
6597
6598 # ifdef _SC_PAGESIZE
6599 #  define getpagesize() sysconf(_SC_PAGESIZE)
6600 # else /* no _SC_PAGESIZE */
6601 #  ifdef HAVE_SYS_PARAM_H
6602 #   include <sys/param.h>
6603 #   ifdef EXEC_PAGESIZE
6604 #    define getpagesize() EXEC_PAGESIZE
6605 #   else /* no EXEC_PAGESIZE */
6606 #    ifdef NBPG
6607 #     define getpagesize() NBPG * CLSIZE
6608 #     ifndef CLSIZE
6609 #      define CLSIZE 1
6610 #     endif /* no CLSIZE */
6611 #    else /* no NBPG */
6612 #     ifdef NBPC
6613 #      define getpagesize() NBPC
6614 #     else /* no NBPC */
6615 #      ifdef PAGESIZE
6616 #       define getpagesize() PAGESIZE
6617 #      endif /* PAGESIZE */
6618 #     endif /* no NBPC */
6619 #    endif /* no NBPG */
6620 #   endif /* no EXEC_PAGESIZE */
6621 #  else /* no HAVE_SYS_PARAM_H */
6622 #   define getpagesize() 8192   /* punt totally */
6623 #  endif /* no HAVE_SYS_PARAM_H */
6624 # endif /* no _SC_PAGESIZE */
6625
6626 #endif /* no HAVE_GETPAGESIZE */
6627
6628 int
6629 main ()
6630 {
6631   char *data, *data2, *data3;
6632   int i, pagesize;
6633   int fd;
6634
6635   pagesize = getpagesize ();
6636
6637   /* First, make a file with some known garbage in it. */
6638   data = (char *) malloc (pagesize);
6639   if (!data)
6640     return 1;
6641   for (i = 0; i < pagesize; ++i)
6642     *(data + i) = rand ();
6643   umask (0);
6644   fd = creat ("conftest.mmap", 0600);
6645   if (fd < 0)
6646     return 1;
6647   if (write (fd, data, pagesize) != pagesize)
6648     return 1;
6649   close (fd);
6650
6651   /* Next, try to mmap the file at a fixed address which already has
6652      something else allocated at it.  If we can, also make sure that
6653      we see the same garbage.  */
6654   fd = open ("conftest.mmap", O_RDWR);
6655   if (fd < 0)
6656     return 1;
6657   data2 = (char *) malloc (2 * pagesize);
6658   if (!data2)
6659     return 1;
6660   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6661   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6662                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6663     return 1;
6664   for (i = 0; i < pagesize; ++i)
6665     if (*(data + i) != *(data2 + i))
6666       return 1;
6667
6668   /* Finally, make sure that changes to the mapped area do not
6669      percolate back to the file as seen by read().  (This is a bug on
6670      some variants of i386 svr4.0.)  */
6671   for (i = 0; i < pagesize; ++i)
6672     *(data2 + i) = *(data2 + i) + 1;
6673   data3 = (char *) malloc (pagesize);
6674   if (!data3)
6675     return 1;
6676   if (read (fd, data3, pagesize) != pagesize)
6677     return 1;
6678   for (i = 0; i < pagesize; ++i)
6679     if (*(data + i) != *(data3 + i))
6680       return 1;
6681   close (fd);
6682   return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest$ac_exeext
6686 if { (ac_try="$ac_link"
6687 case "(($ac_try" in
6688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689   *) ac_try_echo=$ac_try;;
6690 esac
6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692   (eval "$ac_link") 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6696   { (case "(($ac_try" in
6697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698   *) ac_try_echo=$ac_try;;
6699 esac
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701   (eval "$ac_try") 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }; }; then
6705   ac_cv_func_mmap_fixed_mapped=yes
6706 else
6707   echo "$as_me: program exited with status $ac_status" >&5
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711 ( exit $ac_status )
6712 ac_cv_func_mmap_fixed_mapped=no
6713 fi
6714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6715 fi
6716
6717
6718 fi
6719 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6720 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6721 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6722
6723 cat >>confdefs.h <<\_ACEOF
6724 #define HAVE_MMAP 1
6725 _ACEOF
6726
6727 fi
6728 rm -f conftest.mmap
6729
6730
6731     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6732 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6733 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h.  */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h.  */
6742
6743 #include <features.h>
6744 #ifdef __GNU_LIBRARY__
6745  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6746   Lucky GNU user
6747  #endif
6748 #endif
6749
6750 _ACEOF
6751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6753   ac_cv_gnu_library_2_1=yes
6754 else
6755   ac_cv_gnu_library_2_1=no
6756 fi
6757 rm -f conftest*
6758
6759
6760
6761 fi
6762 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6763 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6764
6765     GLIBC21="$ac_cv_gnu_library_2_1"
6766
6767
6768
6769
6770   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6771 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6772 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775
6776       if test "$cross_compiling" = yes; then
6777
6778           # Guess based on the CPU.
6779           case "$host_cpu" in
6780             alpha* | i3456786 | m68k | s390*)
6781               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6782             *)
6783               gt_cv_int_divbyzero_sigfpe="guessing no";;
6784           esac
6785
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793
6794 #include <stdlib.h>
6795 #include <signal.h>
6796
6797 static void
6798 #ifdef __cplusplus
6799 sigfpe_handler (int sig)
6800 #else
6801 sigfpe_handler (sig) int sig;
6802 #endif
6803 {
6804   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6805   exit (sig != SIGFPE);
6806 }
6807
6808 int x = 1;
6809 int y = 0;
6810 int z;
6811 int nan;
6812
6813 int main ()
6814 {
6815   signal (SIGFPE, sigfpe_handler);
6816 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6817 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6818   signal (SIGTRAP, sigfpe_handler);
6819 #endif
6820 /* Linux/SPARC yields signal SIGILL.  */
6821 #if defined (__sparc__) && defined (__linux__)
6822   signal (SIGILL, sigfpe_handler);
6823 #endif
6824
6825   z = x / y;
6826   nan = y / y;
6827   exit (1);
6828 }
6829
6830 _ACEOF
6831 rm -f conftest$ac_exeext
6832 if { (ac_try="$ac_link"
6833 case "(($ac_try" in
6834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835   *) ac_try_echo=$ac_try;;
6836 esac
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838   (eval "$ac_link") 2>&5
6839   ac_status=$?
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6842   { (case "(($ac_try" in
6843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844   *) ac_try_echo=$ac_try;;
6845 esac
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847   (eval "$ac_try") 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; }; then
6851   gt_cv_int_divbyzero_sigfpe=yes
6852 else
6853   echo "$as_me: program exited with status $ac_status" >&5
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ( exit $ac_status )
6858 gt_cv_int_divbyzero_sigfpe=no
6859 fi
6860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6861 fi
6862
6863
6864
6865 fi
6866 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6867 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6868   case "$gt_cv_int_divbyzero_sigfpe" in
6869     *yes) value=1;;
6870     *) value=0;;
6871   esac
6872
6873 cat >>confdefs.h <<_ACEOF
6874 #define INTDIV0_RAISES_SIGFPE $value
6875 _ACEOF
6876
6877
6878
6879   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6880 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6881 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h.  */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h.  */
6890 unsigned long long ull = 1ULL; int i = 63;
6891 int
6892 main ()
6893 {
6894 unsigned long long ullmax = (unsigned long long) -1;
6895      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6896   ;
6897   return 0;
6898 }
6899 _ACEOF
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (ac_try="$ac_link"
6902 case "(($ac_try" in
6903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904   *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907   (eval "$ac_link") 2>conftest.er1
6908   ac_status=$?
6909   grep -v '^ *+' conftest.er1 >conftest.err
6910   rm -f conftest.er1
6911   cat conftest.err >&5
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } && {
6914          test -z "$ac_c_werror_flag" ||
6915          test ! -s conftest.err
6916        } && test -s conftest$ac_exeext &&
6917        $as_test_x conftest$ac_exeext; then
6918   ac_cv_type_unsigned_long_long=yes
6919 else
6920   echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6922
6923         ac_cv_type_unsigned_long_long=no
6924 fi
6925
6926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6927       conftest$ac_exeext conftest.$ac_ext
6928 fi
6929 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6930 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6931   if test $ac_cv_type_unsigned_long_long = yes; then
6932
6933 cat >>confdefs.h <<\_ACEOF
6934 #define HAVE_UNSIGNED_LONG_LONG 1
6935 _ACEOF
6936
6937   fi
6938
6939
6940
6941
6942   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6943
6944     test $ac_cv_type_unsigned_long_long = yes \
6945       && ac_type='unsigned long long' \
6946       || ac_type='unsigned long'
6947
6948 cat >>confdefs.h <<_ACEOF
6949 #define uintmax_t $ac_type
6950 _ACEOF
6951
6952   else
6953
6954 cat >>confdefs.h <<\_ACEOF
6955 #define HAVE_UINTMAX_T 1
6956 _ACEOF
6957
6958   fi
6959
6960
6961   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6962 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6963 if test "${gt_cv_header_inttypes_h+set}" = set; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966
6967     cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h.  */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h.  */
6973 #include <sys/types.h>
6974 #include <inttypes.h>
6975 int
6976 main ()
6977 {
6978
6979   ;
6980   return 0;
6981 }
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6985 case "(($ac_try" in
6986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987   *) ac_try_echo=$ac_try;;
6988 esac
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990   (eval "$ac_compile") 2>conftest.er1
6991   ac_status=$?
6992   grep -v '^ *+' conftest.er1 >conftest.err
6993   rm -f conftest.er1
6994   cat conftest.err >&5
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); } && {
6997          test -z "$ac_c_werror_flag" ||
6998          test ! -s conftest.err
6999        } && test -s conftest.$ac_objext; then
7000   gt_cv_header_inttypes_h=yes
7001 else
7002   echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005         gt_cv_header_inttypes_h=no
7006 fi
7007
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009
7010 fi
7011 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7012 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7013   if test $gt_cv_header_inttypes_h = yes; then
7014
7015 cat >>confdefs.h <<_ACEOF
7016 #define HAVE_INTTYPES_H 1
7017 _ACEOF
7018
7019   fi
7020
7021
7022
7023   if test $gt_cv_header_inttypes_h = yes; then
7024     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7025 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7026 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029
7030         cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h.  */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h.  */
7036 #include <inttypes.h>
7037 #ifdef PRId32
7038 char *p = PRId32;
7039 #endif
7040
7041 int
7042 main ()
7043 {
7044
7045   ;
7046   return 0;
7047 }
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7051 case "(($ac_try" in
7052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053   *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056   (eval "$ac_compile") 2>conftest.er1
7057   ac_status=$?
7058   grep -v '^ *+' conftest.er1 >conftest.err
7059   rm -f conftest.er1
7060   cat conftest.err >&5
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); } && {
7063          test -z "$ac_c_werror_flag" ||
7064          test ! -s conftest.err
7065        } && test -s conftest.$ac_objext; then
7066   gt_cv_inttypes_pri_broken=no
7067 else
7068   echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071         gt_cv_inttypes_pri_broken=yes
7072 fi
7073
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075
7076 fi
7077 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7078 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7079   fi
7080   if test "$gt_cv_inttypes_pri_broken" = yes; then
7081
7082 cat >>confdefs.h <<_ACEOF
7083 #define PRI_MACROS_BROKEN 1
7084 _ACEOF
7085
7086   fi
7087
7088
7089
7090 for ac_header in stdint.h
7091 do
7092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7094   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 fi
7099 ac_res=`eval echo '${'$as_ac_Header'}'`
7100                { echo "$as_me:$LINENO: result: $ac_res" >&5
7101 echo "${ECHO_T}$ac_res" >&6; }
7102 else
7103   # Is the header compilable?
7104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112 $ac_includes_default
7113 #include <$ac_header>
7114 _ACEOF
7115 rm -f conftest.$ac_objext
7116 if { (ac_try="$ac_compile"
7117 case "(($ac_try" in
7118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119   *) ac_try_echo=$ac_try;;
7120 esac
7121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122   (eval "$ac_compile") 2>conftest.er1
7123   ac_status=$?
7124   grep -v '^ *+' conftest.er1 >conftest.err
7125   rm -f conftest.er1
7126   cat conftest.err >&5
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); } && {
7129          test -z "$ac_c_werror_flag" ||
7130          test ! -s conftest.err
7131        } && test -s conftest.$ac_objext; then
7132   ac_header_compiler=yes
7133 else
7134   echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137         ac_header_compiler=no
7138 fi
7139
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7142 echo "${ECHO_T}$ac_header_compiler" >&6; }
7143
7144 # Is the header present?
7145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7147 cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h.  */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h.  */
7153 #include <$ac_header>
7154 _ACEOF
7155 if { (ac_try="$ac_cpp conftest.$ac_ext"
7156 case "(($ac_try" in
7157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158   *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7162   ac_status=$?
7163   grep -v '^ *+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } >/dev/null && {
7168          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7169          test ! -s conftest.err
7170        }; then
7171   ac_header_preproc=yes
7172 else
7173   echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7175
7176   ac_header_preproc=no
7177 fi
7178
7179 rm -f conftest.err conftest.$ac_ext
7180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7181 echo "${ECHO_T}$ac_header_preproc" >&6; }
7182
7183 # So?  What about this header?
7184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7185   yes:no: )
7186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7190     ac_header_preproc=yes
7191     ;;
7192   no:yes:* )
7193     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7195     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7196 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7197     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7199     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7200 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7203     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7205
7206     ;;
7207 esac
7208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   eval "$as_ac_Header=\$ac_header_preproc"
7214 fi
7215 ac_res=`eval echo '${'$as_ac_Header'}'`
7216                { echo "$as_me:$LINENO: result: $ac_res" >&5
7217 echo "${ECHO_T}$ac_res" >&6; }
7218
7219 fi
7220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7221   cat >>confdefs.h <<_ACEOF
7222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7223 _ACEOF
7224
7225 fi
7226
7227 done
7228
7229     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7230 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7231   result=
7232   cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h.  */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h.  */
7238
7239 #include <limits.h>
7240 #if HAVE_STDINT_H
7241 #include <stdint.h>
7242 #endif
7243 #ifdef SIZE_MAX
7244 Found it
7245 #endif
7246
7247 _ACEOF
7248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7249   $EGREP "Found it" >/dev/null 2>&1; then
7250   result=yes
7251 fi
7252 rm -f conftest*
7253
7254   if test -z "$result"; then
7255                     if test "$cross_compiling" = yes; then
7256   # Depending upon the size, compute the lo and hi bounds.
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h.  */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h.  */
7263 #include <stddef.h>
7264 int
7265 main ()
7266 {
7267 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7268 test_array [0] = 0
7269
7270   ;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest.$ac_objext
7275 if { (ac_try="$ac_compile"
7276 case "(($ac_try" in
7277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278   *) ac_try_echo=$ac_try;;
7279 esac
7280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281   (eval "$ac_compile") 2>conftest.er1
7282   ac_status=$?
7283   grep -v '^ *+' conftest.er1 >conftest.err
7284   rm -f conftest.er1
7285   cat conftest.err >&5
7286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287   (exit $ac_status); } && {
7288          test -z "$ac_c_werror_flag" ||
7289          test ! -s conftest.err
7290        } && test -s conftest.$ac_objext; then
7291   ac_lo=0 ac_mid=0
7292   while :; do
7293     cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h.  */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h.  */
7299 #include <stddef.h>
7300 int
7301 main ()
7302 {
7303 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7304 test_array [0] = 0
7305
7306   ;
7307   return 0;
7308 }
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7312 case "(($ac_try" in
7313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314   *) ac_try_echo=$ac_try;;
7315 esac
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317   (eval "$ac_compile") 2>conftest.er1
7318   ac_status=$?
7319   grep -v '^ *+' conftest.er1 >conftest.err
7320   rm -f conftest.er1
7321   cat conftest.err >&5
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); } && {
7324          test -z "$ac_c_werror_flag" ||
7325          test ! -s conftest.err
7326        } && test -s conftest.$ac_objext; then
7327   ac_hi=$ac_mid; break
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7331
7332         ac_lo=`expr $ac_mid + 1`
7333                         if test $ac_lo -le $ac_mid; then
7334                           ac_lo= ac_hi=
7335                           break
7336                         fi
7337                         ac_mid=`expr 2 '*' $ac_mid + 1`
7338 fi
7339
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341   done
7342 else
7343   echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346         cat >conftest.$ac_ext <<_ACEOF
7347 /* confdefs.h.  */
7348 _ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h.  */
7352 #include <stddef.h>
7353 int
7354 main ()
7355 {
7356 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7357 test_array [0] = 0
7358
7359   ;
7360   return 0;
7361 }
7362 _ACEOF
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7365 case "(($ac_try" in
7366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367   *) ac_try_echo=$ac_try;;
7368 esac
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370   (eval "$ac_compile") 2>conftest.er1
7371   ac_status=$?
7372   grep -v '^ *+' conftest.er1 >conftest.err
7373   rm -f conftest.er1
7374   cat conftest.err >&5
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); } && {
7377          test -z "$ac_c_werror_flag" ||
7378          test ! -s conftest.err
7379        } && test -s conftest.$ac_objext; then
7380   ac_hi=-1 ac_mid=-1
7381   while :; do
7382     cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388 #include <stddef.h>
7389 int
7390 main ()
7391 {
7392 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7393 test_array [0] = 0
7394
7395   ;
7396   return 0;
7397 }
7398 _ACEOF
7399 rm -f conftest.$ac_objext
7400 if { (ac_try="$ac_compile"
7401 case "(($ac_try" in
7402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403   *) ac_try_echo=$ac_try;;
7404 esac
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406   (eval "$ac_compile") 2>conftest.er1
7407   ac_status=$?
7408   grep -v '^ *+' conftest.er1 >conftest.err
7409   rm -f conftest.er1
7410   cat conftest.err >&5
7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412   (exit $ac_status); } && {
7413          test -z "$ac_c_werror_flag" ||
7414          test ! -s conftest.err
7415        } && test -s conftest.$ac_objext; then
7416   ac_lo=$ac_mid; break
7417 else
7418   echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421         ac_hi=`expr '(' $ac_mid ')' - 1`
7422                         if test $ac_mid -le $ac_hi; then
7423                           ac_lo= ac_hi=
7424                           break
7425                         fi
7426                         ac_mid=`expr 2 '*' $ac_mid`
7427 fi
7428
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430   done
7431 else
7432   echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435         ac_lo= ac_hi=
7436 fi
7437
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 fi
7440
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 # Binary search between lo and hi bounds.
7443 while test "x$ac_lo" != "x$ac_hi"; do
7444   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7445   cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h.  */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h.  */
7451 #include <stddef.h>
7452 int
7453 main ()
7454 {
7455 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7456 test_array [0] = 0
7457
7458   ;
7459   return 0;
7460 }
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7464 case "(($ac_try" in
7465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466   *) ac_try_echo=$ac_try;;
7467 esac
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469   (eval "$ac_compile") 2>conftest.er1
7470   ac_status=$?
7471   grep -v '^ *+' conftest.er1 >conftest.err
7472   rm -f conftest.er1
7473   cat conftest.err >&5
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); } && {
7476          test -z "$ac_c_werror_flag" ||
7477          test ! -s conftest.err
7478        } && test -s conftest.$ac_objext; then
7479   ac_hi=$ac_mid
7480 else
7481   echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484         ac_lo=`expr '(' $ac_mid ')' + 1`
7485 fi
7486
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488 done
7489 case $ac_lo in
7490 ?*) res_hi=$ac_lo;;
7491 '') result=? ;;
7492 esac
7493 else
7494   cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h.  */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h.  */
7500 #include <stddef.h>
7501 static long int longval () { return ~(size_t)0 / 10; }
7502 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7503 #include <stdio.h>
7504 #include <stdlib.h>
7505 int
7506 main ()
7507 {
7508
7509   FILE *f = fopen ("conftest.val", "w");
7510   if (! f)
7511     return 1;
7512   if ((~(size_t)0 / 10) < 0)
7513     {
7514       long int i = longval ();
7515       if (i != (~(size_t)0 / 10))
7516         return 1;
7517       fprintf (f, "%ld\n", i);
7518     }
7519   else
7520     {
7521       unsigned long int i = ulongval ();
7522       if (i != (~(size_t)0 / 10))
7523         return 1;
7524       fprintf (f, "%lu\n", i);
7525     }
7526   return ferror (f) || fclose (f) != 0;
7527
7528   ;
7529   return 0;
7530 }
7531 _ACEOF
7532 rm -f conftest$ac_exeext
7533 if { (ac_try="$ac_link"
7534 case "(($ac_try" in
7535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536   *) ac_try_echo=$ac_try;;
7537 esac
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539   (eval "$ac_link") 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7543   { (case "(($ac_try" in
7544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545   *) ac_try_echo=$ac_try;;
7546 esac
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548   (eval "$ac_try") 2>&5
7549   ac_status=$?
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); }; }; then
7552   res_hi=`cat conftest.val`
7553 else
7554   echo "$as_me: program exited with status $ac_status" >&5
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 ( exit $ac_status )
7559 result=?
7560 fi
7561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7562 fi
7563 rm -f conftest.val
7564
7565     if test "$cross_compiling" = yes; then
7566   # Depending upon the size, compute the lo and hi bounds.
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h.  */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h.  */
7573 #include <stddef.h>
7574 int
7575 main ()
7576 {
7577 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7578 test_array [0] = 0
7579
7580   ;
7581   return 0;
7582 }
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (ac_try="$ac_compile"
7586 case "(($ac_try" in
7587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588   *) ac_try_echo=$ac_try;;
7589 esac
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591   (eval "$ac_compile") 2>conftest.er1
7592   ac_status=$?
7593   grep -v '^ *+' conftest.er1 >conftest.err
7594   rm -f conftest.er1
7595   cat conftest.err >&5
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); } && {
7598          test -z "$ac_c_werror_flag" ||
7599          test ! -s conftest.err
7600        } && test -s conftest.$ac_objext; then
7601   ac_lo=0 ac_mid=0
7602   while :; do
7603     cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h.  */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h.  */
7609 #include <stddef.h>
7610 int
7611 main ()
7612 {
7613 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7614 test_array [0] = 0
7615
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7622 case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627   (eval "$ac_compile") 2>conftest.er1
7628   ac_status=$?
7629   grep -v '^ *+' conftest.er1 >conftest.err
7630   rm -f conftest.er1
7631   cat conftest.err >&5
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } && {
7634          test -z "$ac_c_werror_flag" ||
7635          test ! -s conftest.err
7636        } && test -s conftest.$ac_objext; then
7637   ac_hi=$ac_mid; break
7638 else
7639   echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642         ac_lo=`expr $ac_mid + 1`
7643                         if test $ac_lo -le $ac_mid; then
7644                           ac_lo= ac_hi=
7645                           break
7646                         fi
7647                         ac_mid=`expr 2 '*' $ac_mid + 1`
7648 fi
7649
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651   done
7652 else
7653   echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7655
7656         cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h.  */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h.  */
7662 #include <stddef.h>
7663 int
7664 main ()
7665 {
7666 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7667 test_array [0] = 0
7668
7669   ;
7670   return 0;
7671 }
7672 _ACEOF
7673 rm -f conftest.$ac_objext
7674 if { (ac_try="$ac_compile"
7675 case "(($ac_try" in
7676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677   *) ac_try_echo=$ac_try;;
7678 esac
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680   (eval "$ac_compile") 2>conftest.er1
7681   ac_status=$?
7682   grep -v '^ *+' conftest.er1 >conftest.err
7683   rm -f conftest.er1
7684   cat conftest.err >&5
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); } && {
7687          test -z "$ac_c_werror_flag" ||
7688          test ! -s conftest.err
7689        } && test -s conftest.$ac_objext; then
7690   ac_hi=-1 ac_mid=-1
7691   while :; do
7692     cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h.  */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h.  */
7698 #include <stddef.h>
7699 int
7700 main ()
7701 {
7702 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7703 test_array [0] = 0
7704
7705   ;
7706   return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7711 case "(($ac_try" in
7712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713   *) ac_try_echo=$ac_try;;
7714 esac
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716   (eval "$ac_compile") 2>conftest.er1
7717   ac_status=$?
7718   grep -v '^ *+' conftest.er1 >conftest.err
7719   rm -f conftest.er1
7720   cat conftest.err >&5
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); } && {
7723          test -z "$ac_c_werror_flag" ||
7724          test ! -s conftest.err
7725        } && test -s conftest.$ac_objext; then
7726   ac_lo=$ac_mid; break
7727 else
7728   echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7730
7731         ac_hi=`expr '(' $ac_mid ')' - 1`
7732                         if test $ac_mid -le $ac_hi; then
7733                           ac_lo= ac_hi=
7734                           break
7735                         fi
7736                         ac_mid=`expr 2 '*' $ac_mid`
7737 fi
7738
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740   done
7741 else
7742   echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7744
7745         ac_lo= ac_hi=
7746 fi
7747
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 fi
7750
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 # Binary search between lo and hi bounds.
7753 while test "x$ac_lo" != "x$ac_hi"; do
7754   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7755   cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761 #include <stddef.h>
7762 int
7763 main ()
7764 {
7765 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7766 test_array [0] = 0
7767
7768   ;
7769   return 0;
7770 }
7771 _ACEOF
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7774 case "(($ac_try" in
7775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776   *) ac_try_echo=$ac_try;;
7777 esac
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779   (eval "$ac_compile") 2>conftest.er1
7780   ac_status=$?
7781   grep -v '^ *+' conftest.er1 >conftest.err
7782   rm -f conftest.er1
7783   cat conftest.err >&5
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } && {
7786          test -z "$ac_c_werror_flag" ||
7787          test ! -s conftest.err
7788        } && test -s conftest.$ac_objext; then
7789   ac_hi=$ac_mid
7790 else
7791   echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794         ac_lo=`expr '(' $ac_mid ')' + 1`
7795 fi
7796
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 done
7799 case $ac_lo in
7800 ?*) res_lo=$ac_lo;;
7801 '') result=? ;;
7802 esac
7803 else
7804   cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h.  */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h.  */
7810 #include <stddef.h>
7811 static long int longval () { return ~(size_t)0 % 10; }
7812 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7813 #include <stdio.h>
7814 #include <stdlib.h>
7815 int
7816 main ()
7817 {
7818
7819   FILE *f = fopen ("conftest.val", "w");
7820   if (! f)
7821     return 1;
7822   if ((~(size_t)0 % 10) < 0)
7823     {
7824       long int i = longval ();
7825       if (i != (~(size_t)0 % 10))
7826         return 1;
7827       fprintf (f, "%ld\n", i);
7828     }
7829   else
7830     {
7831       unsigned long int i = ulongval ();
7832       if (i != (~(size_t)0 % 10))
7833         return 1;
7834       fprintf (f, "%lu\n", i);
7835     }
7836   return ferror (f) || fclose (f) != 0;
7837
7838   ;
7839   return 0;
7840 }
7841 _ACEOF
7842 rm -f conftest$ac_exeext
7843 if { (ac_try="$ac_link"
7844 case "(($ac_try" in
7845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846   *) ac_try_echo=$ac_try;;
7847 esac
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849   (eval "$ac_link") 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7853   { (case "(($ac_try" in
7854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855   *) ac_try_echo=$ac_try;;
7856 esac
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858   (eval "$ac_try") 2>&5
7859   ac_status=$?
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); }; }; then
7862   res_lo=`cat conftest.val`
7863 else
7864   echo "$as_me: program exited with status $ac_status" >&5
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 ( exit $ac_status )
7869 result=?
7870 fi
7871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7872 fi
7873 rm -f conftest.val
7874
7875     if test "$cross_compiling" = yes; then
7876   # Depending upon the size, compute the lo and hi bounds.
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h.  */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h.  */
7883 #include <stddef.h>
7884 int
7885 main ()
7886 {
7887 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7888 test_array [0] = 0
7889
7890   ;
7891   return 0;
7892 }
7893 _ACEOF
7894 rm -f conftest.$ac_objext
7895 if { (ac_try="$ac_compile"
7896 case "(($ac_try" in
7897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898   *) ac_try_echo=$ac_try;;
7899 esac
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901   (eval "$ac_compile") 2>conftest.er1
7902   ac_status=$?
7903   grep -v '^ *+' conftest.er1 >conftest.err
7904   rm -f conftest.er1
7905   cat conftest.err >&5
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } && {
7908          test -z "$ac_c_werror_flag" ||
7909          test ! -s conftest.err
7910        } && test -s conftest.$ac_objext; then
7911   ac_lo=0 ac_mid=0
7912   while :; do
7913     cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919 #include <stddef.h>
7920 int
7921 main ()
7922 {
7923 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7924 test_array [0] = 0
7925
7926   ;
7927   return 0;
7928 }
7929 _ACEOF
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7932 case "(($ac_try" in
7933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934   *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937   (eval "$ac_compile") 2>conftest.er1
7938   ac_status=$?
7939   grep -v '^ *+' conftest.er1 >conftest.err
7940   rm -f conftest.er1
7941   cat conftest.err >&5
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); } && {
7944          test -z "$ac_c_werror_flag" ||
7945          test ! -s conftest.err
7946        } && test -s conftest.$ac_objext; then
7947   ac_hi=$ac_mid; break
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952         ac_lo=`expr $ac_mid + 1`
7953                         if test $ac_lo -le $ac_mid; then
7954                           ac_lo= ac_hi=
7955                           break
7956                         fi
7957                         ac_mid=`expr 2 '*' $ac_mid + 1`
7958 fi
7959
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961   done
7962 else
7963   echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966         cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h.  */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h.  */
7972 #include <stddef.h>
7973 int
7974 main ()
7975 {
7976 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7977 test_array [0] = 0
7978
7979   ;
7980   return 0;
7981 }
7982 _ACEOF
7983 rm -f conftest.$ac_objext
7984 if { (ac_try="$ac_compile"
7985 case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990   (eval "$ac_compile") 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
7994   cat conftest.err >&5
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } && {
7997          test -z "$ac_c_werror_flag" ||
7998          test ! -s conftest.err
7999        } && test -s conftest.$ac_objext; then
8000   ac_hi=-1 ac_mid=-1
8001   while :; do
8002     cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h.  */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h.  */
8008 #include <stddef.h>
8009 int
8010 main ()
8011 {
8012 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8013 test_array [0] = 0
8014
8015   ;
8016   return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext
8020 if { (ac_try="$ac_compile"
8021 case "(($ac_try" in
8022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023   *) ac_try_echo=$ac_try;;
8024 esac
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026   (eval "$ac_compile") 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } && {
8033          test -z "$ac_c_werror_flag" ||
8034          test ! -s conftest.err
8035        } && test -s conftest.$ac_objext; then
8036   ac_lo=$ac_mid; break
8037 else
8038   echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8040
8041         ac_hi=`expr '(' $ac_mid ')' - 1`
8042                         if test $ac_mid -le $ac_hi; then
8043                           ac_lo= ac_hi=
8044                           break
8045                         fi
8046                         ac_mid=`expr 2 '*' $ac_mid`
8047 fi
8048
8049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8050   done
8051 else
8052   echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055         ac_lo= ac_hi=
8056 fi
8057
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 fi
8060
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 # Binary search between lo and hi bounds.
8063 while test "x$ac_lo" != "x$ac_hi"; do
8064   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8065   cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h.  */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h.  */
8071 #include <stddef.h>
8072 int
8073 main ()
8074 {
8075 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8076 test_array [0] = 0
8077
8078   ;
8079   return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8084 case "(($ac_try" in
8085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086   *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089   (eval "$ac_compile") 2>conftest.er1
8090   ac_status=$?
8091   grep -v '^ *+' conftest.er1 >conftest.err
8092   rm -f conftest.er1
8093   cat conftest.err >&5
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); } && {
8096          test -z "$ac_c_werror_flag" ||
8097          test ! -s conftest.err
8098        } && test -s conftest.$ac_objext; then
8099   ac_hi=$ac_mid
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104         ac_lo=`expr '(' $ac_mid ')' + 1`
8105 fi
8106
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 done
8109 case $ac_lo in
8110 ?*) fits_in_uint=$ac_lo;;
8111 '') result=? ;;
8112 esac
8113 else
8114   cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h.  */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h.  */
8120 #include <stddef.h>
8121 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8122 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8123 #include <stdio.h>
8124 #include <stdlib.h>
8125 int
8126 main ()
8127 {
8128
8129   FILE *f = fopen ("conftest.val", "w");
8130   if (! f)
8131     return 1;
8132   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8133     {
8134       long int i = longval ();
8135       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8136         return 1;
8137       fprintf (f, "%ld\n", i);
8138     }
8139   else
8140     {
8141       unsigned long int i = ulongval ();
8142       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8143         return 1;
8144       fprintf (f, "%lu\n", i);
8145     }
8146   return ferror (f) || fclose (f) != 0;
8147
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 rm -f conftest$ac_exeext
8153 if { (ac_try="$ac_link"
8154 case "(($ac_try" in
8155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156   *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159   (eval "$ac_link") 2>&5
8160   ac_status=$?
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8163   { (case "(($ac_try" in
8164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165   *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168   (eval "$ac_try") 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   fits_in_uint=`cat conftest.val`
8173 else
8174   echo "$as_me: program exited with status $ac_status" >&5
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 ( exit $ac_status )
8179 result=?
8180 fi
8181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8182 fi
8183 rm -f conftest.val
8184
8185     if test "$fits_in_uint" = 1; then
8186                   cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h.  */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h.  */
8192 #include <stddef.h>
8193         extern size_t foo;
8194         extern unsigned long foo;
8195
8196 int
8197 main ()
8198 {
8199
8200   ;
8201   return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8206 case "(($ac_try" in
8207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208   *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211   (eval "$ac_compile") 2>conftest.er1
8212   ac_status=$?
8213   grep -v '^ *+' conftest.er1 >conftest.err
8214   rm -f conftest.er1
8215   cat conftest.err >&5
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); } && {
8218          test -z "$ac_c_werror_flag" ||
8219          test ! -s conftest.err
8220        } && test -s conftest.$ac_objext; then
8221   fits_in_uint=0
8222 else
8223   echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226
8227 fi
8228
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230     fi
8231     if test -z "$result"; then
8232       if test "$fits_in_uint" = 1; then
8233         result="$res_hi$res_lo"U
8234       else
8235         result="$res_hi$res_lo"UL
8236       fi
8237     else
8238             result='~(size_t)0'
8239     fi
8240   fi
8241   { echo "$as_me:$LINENO: result: $result" >&5
8242 echo "${ECHO_T}$result" >&6; }
8243   if test "$result" != yes; then
8244
8245 cat >>confdefs.h <<_ACEOF
8246 #define SIZE_MAX $result
8247 _ACEOF
8248
8249   fi
8250
8251
8252
8253
8254 for ac_header in stdint.h
8255 do
8256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8258   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 fi
8263 ac_res=`eval echo '${'$as_ac_Header'}'`
8264                { echo "$as_me:$LINENO: result: $ac_res" >&5
8265 echo "${ECHO_T}$ac_res" >&6; }
8266 else
8267   # Is the header compilable?
8268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h.  */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h.  */
8276 $ac_includes_default
8277 #include <$ac_header>
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8281 case "(($ac_try" in
8282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283   *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286   (eval "$ac_compile") 2>conftest.er1
8287   ac_status=$?
8288   grep -v '^ *+' conftest.er1 >conftest.err
8289   rm -f conftest.er1
8290   cat conftest.err >&5
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); } && {
8293          test -z "$ac_c_werror_flag" ||
8294          test ! -s conftest.err
8295        } && test -s conftest.$ac_objext; then
8296   ac_header_compiler=yes
8297 else
8298   echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301         ac_header_compiler=no
8302 fi
8303
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8306 echo "${ECHO_T}$ac_header_compiler" >&6; }
8307
8308 # Is the header present?
8309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h.  */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h.  */
8317 #include <$ac_header>
8318 _ACEOF
8319 if { (ac_try="$ac_cpp conftest.$ac_ext"
8320 case "(($ac_try" in
8321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322   *) ac_try_echo=$ac_try;;
8323 esac
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8326   ac_status=$?
8327   grep -v '^ *+' conftest.er1 >conftest.err
8328   rm -f conftest.er1
8329   cat conftest.err >&5
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); } >/dev/null && {
8332          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8333          test ! -s conftest.err
8334        }; then
8335   ac_header_preproc=yes
8336 else
8337   echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340   ac_header_preproc=no
8341 fi
8342
8343 rm -f conftest.err conftest.$ac_ext
8344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345 echo "${ECHO_T}$ac_header_preproc" >&6; }
8346
8347 # So?  What about this header?
8348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8349   yes:no: )
8350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8354     ac_header_preproc=yes
8355     ;;
8356   no:yes:* )
8357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8369
8370     ;;
8371 esac
8372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8375   echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377   eval "$as_ac_Header=\$ac_header_preproc"
8378 fi
8379 ac_res=`eval echo '${'$as_ac_Header'}'`
8380                { echo "$as_me:$LINENO: result: $ac_res" >&5
8381 echo "${ECHO_T}$ac_res" >&6; }
8382
8383 fi
8384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385   cat >>confdefs.h <<_ACEOF
8386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387 _ACEOF
8388
8389 fi
8390
8391 done
8392
8393
8394
8395       if test "X$prefix" = "XNONE"; then
8396     acl_final_prefix="$ac_default_prefix"
8397   else
8398     acl_final_prefix="$prefix"
8399   fi
8400   if test "X$exec_prefix" = "XNONE"; then
8401     acl_final_exec_prefix='${prefix}'
8402   else
8403     acl_final_exec_prefix="$exec_prefix"
8404   fi
8405   acl_save_prefix="$prefix"
8406   prefix="$acl_final_prefix"
8407   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8408   prefix="$acl_save_prefix"
8409
8410
8411 # Check whether --with-gnu-ld was given.
8412 if test "${with_gnu_ld+set}" = set; then
8413   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8414 else
8415   with_gnu_ld=no
8416 fi
8417
8418 # Prepare PATH_SEPARATOR.
8419 # The user is always right.
8420 if test "${PATH_SEPARATOR+set}" != set; then
8421   echo "#! /bin/sh" >conf$$.sh
8422   echo  "exit 0"   >>conf$$.sh
8423   chmod +x conf$$.sh
8424   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8425     PATH_SEPARATOR=';'
8426   else
8427     PATH_SEPARATOR=:
8428   fi
8429   rm -f conf$$.sh
8430 fi
8431 ac_prog=ld
8432 if test "$GCC" = yes; then
8433   # Check if gcc -print-prog-name=ld gives a path.
8434   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8435 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8436   case $host in
8437   *-*-mingw*)
8438     # gcc leaves a trailing carriage return which upsets mingw
8439     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8440   *)
8441     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8442   esac
8443   case $ac_prog in
8444     # Accept absolute paths.
8445     [\\/]* | [A-Za-z]:[\\/]*)
8446       re_direlt='/[^/][^/]*/\.\./'
8447       # Canonicalize the path of ld
8448       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8449       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8450         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8451       done
8452       test -z "$LD" && LD="$ac_prog"
8453       ;;
8454   "")
8455     # If it fails, then pretend we aren't using GCC.
8456     ac_prog=ld
8457     ;;
8458   *)
8459     # If it is relative, then search for the first ld in PATH.
8460     with_gnu_ld=unknown
8461     ;;
8462   esac
8463 elif test "$with_gnu_ld" = yes; then
8464   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8465 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8466 else
8467   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8468 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8469 fi
8470 if test "${acl_cv_path_LD+set}" = set; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   if test -z "$LD"; then
8474   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8475   for ac_dir in $PATH; do
8476     test -z "$ac_dir" && ac_dir=.
8477     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8478       acl_cv_path_LD="$ac_dir/$ac_prog"
8479       # Check to see if the program is GNU ld.  I'd rather use --version,
8480       # but apparently some GNU ld's only accept -v.
8481       # Break only if it was the GNU/non-GNU ld that we prefer.
8482       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8483       *GNU* | *'with BFD'*)
8484         test "$with_gnu_ld" != no && break ;;
8485       *)
8486         test "$with_gnu_ld" != yes && break ;;
8487       esac
8488     fi
8489   done
8490   IFS="$ac_save_ifs"
8491 else
8492   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8493 fi
8494 fi
8495
8496 LD="$acl_cv_path_LD"
8497 if test -n "$LD"; then
8498   { echo "$as_me:$LINENO: result: $LD" >&5
8499 echo "${ECHO_T}$LD" >&6; }
8500 else
8501   { echo "$as_me:$LINENO: result: no" >&5
8502 echo "${ECHO_T}no" >&6; }
8503 fi
8504 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8505 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8506    { (exit 1); exit 1; }; }
8507 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8508 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8509 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8513 case `$LD -v 2>&1 </dev/null` in
8514 *GNU* | *'with BFD'*)
8515   acl_cv_prog_gnu_ld=yes ;;
8516 *)
8517   acl_cv_prog_gnu_ld=no ;;
8518 esac
8519 fi
8520 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8521 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8522 with_gnu_ld=$acl_cv_prog_gnu_ld
8523
8524
8525
8526                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8527 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8528 if test "${acl_cv_rpath+set}" = set; then
8529   echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531
8532     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8533     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8534     . ./conftest.sh
8535     rm -f ./conftest.sh
8536     acl_cv_rpath=done
8537
8538 fi
8539 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8540 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8541   wl="$acl_cv_wl"
8542   libext="$acl_cv_libext"
8543   shlibext="$acl_cv_shlibext"
8544   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8545   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8546   hardcode_direct="$acl_cv_hardcode_direct"
8547   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8548     # Check whether --enable-rpath was given.
8549 if test "${enable_rpath+set}" = set; then
8550   enableval=$enable_rpath; :
8551 else
8552   enable_rpath=yes
8553 fi
8554
8555
8556
8557
8558
8559
8560
8561
8562     use_additional=yes
8563
8564   acl_save_prefix="$prefix"
8565   prefix="$acl_final_prefix"
8566   acl_save_exec_prefix="$exec_prefix"
8567   exec_prefix="$acl_final_exec_prefix"
8568
8569     eval additional_includedir=\"$includedir\"
8570     eval additional_libdir=\"$libdir\"
8571
8572   exec_prefix="$acl_save_exec_prefix"
8573   prefix="$acl_save_prefix"
8574
8575
8576 # Check whether --with-libiconv-prefix was given.
8577 if test "${with_libiconv_prefix+set}" = set; then
8578   withval=$with_libiconv_prefix;
8579     if test "X$withval" = "Xno"; then
8580       use_additional=no
8581     else
8582       if test "X$withval" = "X"; then
8583
8584   acl_save_prefix="$prefix"
8585   prefix="$acl_final_prefix"
8586   acl_save_exec_prefix="$exec_prefix"
8587   exec_prefix="$acl_final_exec_prefix"
8588
8589           eval additional_includedir=\"$includedir\"
8590           eval additional_libdir=\"$libdir\"
8591
8592   exec_prefix="$acl_save_exec_prefix"
8593   prefix="$acl_save_prefix"
8594
8595       else
8596         additional_includedir="$withval/include"
8597         additional_libdir="$withval/lib"
8598       fi
8599     fi
8600
8601 fi
8602
8603       LIBICONV=
8604   LTLIBICONV=
8605   INCICONV=
8606   rpathdirs=
8607   ltrpathdirs=
8608   names_already_handled=
8609   names_next_round='iconv '
8610   while test -n "$names_next_round"; do
8611     names_this_round="$names_next_round"
8612     names_next_round=
8613     for name in $names_this_round; do
8614       already_handled=
8615       for n in $names_already_handled; do
8616         if test "$n" = "$name"; then
8617           already_handled=yes
8618           break
8619         fi
8620       done
8621       if test -z "$already_handled"; then
8622         names_already_handled="$names_already_handled $name"
8623                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8624         eval value=\"\$HAVE_LIB$uppername\"
8625         if test -n "$value"; then
8626           if test "$value" = yes; then
8627             eval value=\"\$LIB$uppername\"
8628             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8629             eval value=\"\$LTLIB$uppername\"
8630             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8631           else
8632                                     :
8633           fi
8634         else
8635                               found_dir=
8636           found_la=
8637           found_so=
8638           found_a=
8639           if test $use_additional = yes; then
8640             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8641               found_dir="$additional_libdir"
8642               found_so="$additional_libdir/lib$name.$shlibext"
8643               if test -f "$additional_libdir/lib$name.la"; then
8644                 found_la="$additional_libdir/lib$name.la"
8645               fi
8646             else
8647               if test -f "$additional_libdir/lib$name.$libext"; then
8648                 found_dir="$additional_libdir"
8649                 found_a="$additional_libdir/lib$name.$libext"
8650                 if test -f "$additional_libdir/lib$name.la"; then
8651                   found_la="$additional_libdir/lib$name.la"
8652                 fi
8653               fi
8654             fi
8655           fi
8656           if test "X$found_dir" = "X"; then
8657             for x in $LDFLAGS $LTLIBICONV; do
8658
8659   acl_save_prefix="$prefix"
8660   prefix="$acl_final_prefix"
8661   acl_save_exec_prefix="$exec_prefix"
8662   exec_prefix="$acl_final_exec_prefix"
8663   eval x=\"$x\"
8664   exec_prefix="$acl_save_exec_prefix"
8665   prefix="$acl_save_prefix"
8666
8667               case "$x" in
8668                 -L*)
8669                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8670                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8671                     found_dir="$dir"
8672                     found_so="$dir/lib$name.$shlibext"
8673                     if test -f "$dir/lib$name.la"; then
8674                       found_la="$dir/lib$name.la"
8675                     fi
8676                   else
8677                     if test -f "$dir/lib$name.$libext"; then
8678                       found_dir="$dir"
8679                       found_a="$dir/lib$name.$libext"
8680                       if test -f "$dir/lib$name.la"; then
8681                         found_la="$dir/lib$name.la"
8682                       fi
8683                     fi
8684                   fi
8685                   ;;
8686               esac
8687               if test "X$found_dir" != "X"; then
8688                 break
8689               fi
8690             done
8691           fi
8692           if test "X$found_dir" != "X"; then
8693                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8694             if test "X$found_so" != "X"; then
8695                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8696                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8697               else
8698                                                                                 haveit=
8699                 for x in $ltrpathdirs; do
8700                   if test "X$x" = "X$found_dir"; then
8701                     haveit=yes
8702                     break
8703                   fi
8704                 done
8705                 if test -z "$haveit"; then
8706                   ltrpathdirs="$ltrpathdirs $found_dir"
8707                 fi
8708                                 if test "$hardcode_direct" = yes; then
8709                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8710                 else
8711                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8712                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8713                                                             haveit=
8714                     for x in $rpathdirs; do
8715                       if test "X$x" = "X$found_dir"; then
8716                         haveit=yes
8717                         break
8718                       fi
8719                     done
8720                     if test -z "$haveit"; then
8721                       rpathdirs="$rpathdirs $found_dir"
8722                     fi
8723                   else
8724                                                                                 haveit=
8725                     for x in $LDFLAGS $LIBICONV; do
8726
8727   acl_save_prefix="$prefix"
8728   prefix="$acl_final_prefix"
8729   acl_save_exec_prefix="$exec_prefix"
8730   exec_prefix="$acl_final_exec_prefix"
8731   eval x=\"$x\"
8732   exec_prefix="$acl_save_exec_prefix"
8733   prefix="$acl_save_prefix"
8734
8735                       if test "X$x" = "X-L$found_dir"; then
8736                         haveit=yes
8737                         break
8738                       fi
8739                     done
8740                     if test -z "$haveit"; then
8741                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8742                     fi
8743                     if test "$hardcode_minus_L" != no; then
8744                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8745                     else
8746                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8747                     fi
8748                   fi
8749                 fi
8750               fi
8751             else
8752               if test "X$found_a" != "X"; then
8753                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8754               else
8755                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8756               fi
8757             fi
8758                         additional_includedir=
8759             case "$found_dir" in
8760               */lib | */lib/)
8761                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8762                 additional_includedir="$basedir/include"
8763                 ;;
8764             esac
8765             if test "X$additional_includedir" != "X"; then
8766                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8767                 haveit=
8768                 if test "X$additional_includedir" = "X/usr/local/include"; then
8769                   if test -n "$GCC"; then
8770                     case $host_os in
8771                       linux*) haveit=yes;;
8772                     esac
8773                   fi
8774                 fi
8775                 if test -z "$haveit"; then
8776                   for x in $CPPFLAGS $INCICONV; do
8777
8778   acl_save_prefix="$prefix"
8779   prefix="$acl_final_prefix"
8780   acl_save_exec_prefix="$exec_prefix"
8781   exec_prefix="$acl_final_exec_prefix"
8782   eval x=\"$x\"
8783   exec_prefix="$acl_save_exec_prefix"
8784   prefix="$acl_save_prefix"
8785
8786                     if test "X$x" = "X-I$additional_includedir"; then
8787                       haveit=yes
8788                       break
8789                     fi
8790                   done
8791                   if test -z "$haveit"; then
8792                     if test -d "$additional_includedir"; then
8793                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8794                     fi
8795                   fi
8796                 fi
8797               fi
8798             fi
8799                         if test -n "$found_la"; then
8800                                                         save_libdir="$libdir"
8801               case "$found_la" in
8802                 */* | *\\*) . "$found_la" ;;
8803                 *) . "./$found_la" ;;
8804               esac
8805               libdir="$save_libdir"
8806                             for dep in $dependency_libs; do
8807                 case "$dep" in
8808                   -L*)
8809                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8810                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8811                       haveit=
8812                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8813                         if test -n "$GCC"; then
8814                           case $host_os in
8815                             linux*) haveit=yes;;
8816                           esac
8817                         fi
8818                       fi
8819                       if test -z "$haveit"; then
8820                         haveit=
8821                         for x in $LDFLAGS $LIBICONV; do
8822
8823   acl_save_prefix="$prefix"
8824   prefix="$acl_final_prefix"
8825   acl_save_exec_prefix="$exec_prefix"
8826   exec_prefix="$acl_final_exec_prefix"
8827   eval x=\"$x\"
8828   exec_prefix="$acl_save_exec_prefix"
8829   prefix="$acl_save_prefix"
8830
8831                           if test "X$x" = "X-L$additional_libdir"; then
8832                             haveit=yes
8833                             break
8834                           fi
8835                         done
8836                         if test -z "$haveit"; then
8837                           if test -d "$additional_libdir"; then
8838                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8839                           fi
8840                         fi
8841                         haveit=
8842                         for x in $LDFLAGS $LTLIBICONV; do
8843
8844   acl_save_prefix="$prefix"
8845   prefix="$acl_final_prefix"
8846   acl_save_exec_prefix="$exec_prefix"
8847   exec_prefix="$acl_final_exec_prefix"
8848   eval x=\"$x\"
8849   exec_prefix="$acl_save_exec_prefix"
8850   prefix="$acl_save_prefix"
8851
8852                           if test "X$x" = "X-L$additional_libdir"; then
8853                             haveit=yes
8854                             break
8855                           fi
8856                         done
8857                         if test -z "$haveit"; then
8858                           if test -d "$additional_libdir"; then
8859                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8860                           fi
8861                         fi
8862                       fi
8863                     fi
8864                     ;;
8865                   -R*)
8866                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8867                     if test "$enable_rpath" != no; then
8868                                                                   haveit=
8869                       for x in $rpathdirs; do
8870                         if test "X$x" = "X$dir"; then
8871                           haveit=yes
8872                           break
8873                         fi
8874                       done
8875                       if test -z "$haveit"; then
8876                         rpathdirs="$rpathdirs $dir"
8877                       fi
8878                                                                   haveit=
8879                       for x in $ltrpathdirs; do
8880                         if test "X$x" = "X$dir"; then
8881                           haveit=yes
8882                           break
8883                         fi
8884                       done
8885                       if test -z "$haveit"; then
8886                         ltrpathdirs="$ltrpathdirs $dir"
8887                       fi
8888                     fi
8889                     ;;
8890                   -l*)
8891                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8892                     ;;
8893                   *.la)
8894                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8895                     ;;
8896                   *)
8897                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8898                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8899                     ;;
8900                 esac
8901               done
8902             fi
8903           else
8904                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8905             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8906           fi
8907         fi
8908       fi
8909     done
8910   done
8911   if test "X$rpathdirs" != "X"; then
8912     if test -n "$hardcode_libdir_separator"; then
8913                         alldirs=
8914       for found_dir in $rpathdirs; do
8915         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8916       done
8917             acl_save_libdir="$libdir"
8918       libdir="$alldirs"
8919       eval flag=\"$hardcode_libdir_flag_spec\"
8920       libdir="$acl_save_libdir"
8921       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8922     else
8923             for found_dir in $rpathdirs; do
8924         acl_save_libdir="$libdir"
8925         libdir="$found_dir"
8926         eval flag=\"$hardcode_libdir_flag_spec\"
8927         libdir="$acl_save_libdir"
8928         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8929       done
8930     fi
8931   fi
8932   if test "X$ltrpathdirs" != "X"; then
8933             for found_dir in $ltrpathdirs; do
8934       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8935     done
8936   fi
8937
8938
8939
8940
8941
8942
8943
8944
8945   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8946 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8947 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950   cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956 $ac_includes_default
8957 typedef ptrdiff_t ac__type_new_;
8958 int
8959 main ()
8960 {
8961 if ((ac__type_new_ *) 0)
8962   return 0;
8963 if (sizeof (ac__type_new_))
8964   return 0;
8965   ;
8966   return 0;
8967 }
8968 _ACEOF
8969 rm -f conftest.$ac_objext
8970 if { (ac_try="$ac_compile"
8971 case "(($ac_try" in
8972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973   *) ac_try_echo=$ac_try;;
8974 esac
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976   (eval "$ac_compile") 2>conftest.er1
8977   ac_status=$?
8978   grep -v '^ *+' conftest.er1 >conftest.err
8979   rm -f conftest.er1
8980   cat conftest.err >&5
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); } && {
8983          test -z "$ac_c_werror_flag" ||
8984          test ! -s conftest.err
8985        } && test -s conftest.$ac_objext; then
8986   ac_cv_type_ptrdiff_t=yes
8987 else
8988   echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8990
8991         ac_cv_type_ptrdiff_t=no
8992 fi
8993
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 fi
8996 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8997 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8998 if test $ac_cv_type_ptrdiff_t = yes; then
8999   :
9000 else
9001
9002 cat >>confdefs.h <<\_ACEOF
9003 #define ptrdiff_t long
9004 _ACEOF
9005
9006
9007 fi
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9020 stdlib.h string.h unistd.h sys/param.h
9021 do
9022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9024   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9027   echo $ECHO_N "(cached) $ECHO_C" >&6
9028 fi
9029 ac_res=`eval echo '${'$as_ac_Header'}'`
9030                { echo "$as_me:$LINENO: result: $ac_res" >&5
9031 echo "${ECHO_T}$ac_res" >&6; }
9032 else
9033   # Is the header compilable?
9034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9036 cat >conftest.$ac_ext <<_ACEOF
9037 /* confdefs.h.  */
9038 _ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h.  */
9042 $ac_includes_default
9043 #include <$ac_header>
9044 _ACEOF
9045 rm -f conftest.$ac_objext
9046 if { (ac_try="$ac_compile"
9047 case "(($ac_try" in
9048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049   *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052   (eval "$ac_compile") 2>conftest.er1
9053   ac_status=$?
9054   grep -v '^ *+' conftest.er1 >conftest.err
9055   rm -f conftest.er1
9056   cat conftest.err >&5
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); } && {
9059          test -z "$ac_c_werror_flag" ||
9060          test ! -s conftest.err
9061        } && test -s conftest.$ac_objext; then
9062   ac_header_compiler=yes
9063 else
9064   echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067         ac_header_compiler=no
9068 fi
9069
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9072 echo "${ECHO_T}$ac_header_compiler" >&6; }
9073
9074 # Is the header present?
9075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9077 cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h.  */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h.  */
9083 #include <$ac_header>
9084 _ACEOF
9085 if { (ac_try="$ac_cpp conftest.$ac_ext"
9086 case "(($ac_try" in
9087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088   *) ac_try_echo=$ac_try;;
9089 esac
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9092   ac_status=$?
9093   grep -v '^ *+' conftest.er1 >conftest.err
9094   rm -f conftest.er1
9095   cat conftest.err >&5
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); } >/dev/null && {
9098          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9099          test ! -s conftest.err
9100        }; then
9101   ac_header_preproc=yes
9102 else
9103   echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9105
9106   ac_header_preproc=no
9107 fi
9108
9109 rm -f conftest.err conftest.$ac_ext
9110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9111 echo "${ECHO_T}$ac_header_preproc" >&6; }
9112
9113 # So?  What about this header?
9114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9115   yes:no: )
9116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9120     ac_header_preproc=yes
9121     ;;
9122   no:yes:* )
9123     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9125     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9126 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9127     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9129     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9130 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9133     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9135
9136     ;;
9137 esac
9138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9141   echo $ECHO_N "(cached) $ECHO_C" >&6
9142 else
9143   eval "$as_ac_Header=\$ac_header_preproc"
9144 fi
9145 ac_res=`eval echo '${'$as_ac_Header'}'`
9146                { echo "$as_me:$LINENO: result: $ac_res" >&5
9147 echo "${ECHO_T}$ac_res" >&6; }
9148
9149 fi
9150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9151   cat >>confdefs.h <<_ACEOF
9152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9153 _ACEOF
9154
9155 fi
9156
9157 done
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9183 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9184 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9185 __fsetlocking
9186 do
9187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9191   echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193   cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h.  */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h.  */
9199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9201 #define $ac_func innocuous_$ac_func
9202
9203 /* System header to define __stub macros and hopefully few prototypes,
9204     which can conflict with char $ac_func (); below.
9205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9206     <limits.h> exists even on freestanding compilers.  */
9207
9208 #ifdef __STDC__
9209 # include <limits.h>
9210 #else
9211 # include <assert.h>
9212 #endif
9213
9214 #undef $ac_func
9215
9216 /* Override any GCC internal prototype to avoid an error.
9217    Use char because int might match the return type of a GCC
9218    builtin and then its argument prototype would still apply.  */
9219 #ifdef __cplusplus
9220 extern "C"
9221 #endif
9222 char $ac_func ();
9223 /* The GNU C library defines this for functions which it implements
9224     to always fail with ENOSYS.  Some functions are actually named
9225     something starting with __ and the normal name is an alias.  */
9226 #if defined __stub_$ac_func || defined __stub___$ac_func
9227 choke me
9228 #endif
9229
9230 int
9231 main ()
9232 {
9233 return $ac_func ();
9234   ;
9235   return 0;
9236 }
9237 _ACEOF
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (ac_try="$ac_link"
9240 case "(($ac_try" in
9241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242   *) ac_try_echo=$ac_try;;
9243 esac
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245   (eval "$ac_link") 2>conftest.er1
9246   ac_status=$?
9247   grep -v '^ *+' conftest.er1 >conftest.err
9248   rm -f conftest.er1
9249   cat conftest.err >&5
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } && {
9252          test -z "$ac_c_werror_flag" ||
9253          test ! -s conftest.err
9254        } && test -s conftest$ac_exeext &&
9255        $as_test_x conftest$ac_exeext; then
9256   eval "$as_ac_var=yes"
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261         eval "$as_ac_var=no"
9262 fi
9263
9264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9265       conftest$ac_exeext conftest.$ac_ext
9266 fi
9267 ac_res=`eval echo '${'$as_ac_var'}'`
9268                { echo "$as_me:$LINENO: result: $ac_res" >&5
9269 echo "${ECHO_T}$ac_res" >&6; }
9270 if test `eval echo '${'$as_ac_var'}'` = yes; then
9271   cat >>confdefs.h <<_ACEOF
9272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9273 _ACEOF
9274
9275 fi
9276 done
9277
9278
9279
9280   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9281 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9282 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285   cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291 #include <stdio.h>
9292 int
9293 main ()
9294 {
9295
9296 #ifndef _snprintf
9297   char *p = (char *) _snprintf;
9298 #endif
9299
9300   ;
9301   return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext
9305 if { (ac_try="$ac_compile"
9306 case "(($ac_try" in
9307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308   *) ac_try_echo=$ac_try;;
9309 esac
9310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9311   (eval "$ac_compile") 2>conftest.er1
9312   ac_status=$?
9313   grep -v '^ *+' conftest.er1 >conftest.err
9314   rm -f conftest.er1
9315   cat conftest.err >&5
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } && {
9318          test -z "$ac_c_werror_flag" ||
9319          test ! -s conftest.err
9320        } && test -s conftest.$ac_objext; then
9321   ac_cv_have_decl__snprintf=yes
9322 else
9323   echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9325
9326         ac_cv_have_decl__snprintf=no
9327 fi
9328
9329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9330 fi
9331 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9332 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9333   if test $ac_cv_have_decl__snprintf = yes; then
9334     gt_value=1
9335   else
9336     gt_value=0
9337   fi
9338
9339 cat >>confdefs.h <<_ACEOF
9340 #define HAVE_DECL__SNPRINTF $gt_value
9341 _ACEOF
9342
9343
9344
9345   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9346 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9347 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350   cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h.  */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h.  */
9356 #include <stdio.h>
9357 int
9358 main ()
9359 {
9360
9361 #ifndef _snwprintf
9362   char *p = (char *) _snwprintf;
9363 #endif
9364
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9371 case "(($ac_try" in
9372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373   *) ac_try_echo=$ac_try;;
9374 esac
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376   (eval "$ac_compile") 2>conftest.er1
9377   ac_status=$?
9378   grep -v '^ *+' conftest.er1 >conftest.err
9379   rm -f conftest.er1
9380   cat conftest.err >&5
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); } && {
9383          test -z "$ac_c_werror_flag" ||
9384          test ! -s conftest.err
9385        } && test -s conftest.$ac_objext; then
9386   ac_cv_have_decl__snwprintf=yes
9387 else
9388   echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391         ac_cv_have_decl__snwprintf=no
9392 fi
9393
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 fi
9396 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9397 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9398   if test $ac_cv_have_decl__snwprintf = yes; then
9399     gt_value=1
9400   else
9401     gt_value=0
9402   fi
9403
9404 cat >>confdefs.h <<_ACEOF
9405 #define HAVE_DECL__SNWPRINTF $gt_value
9406 _ACEOF
9407
9408
9409
9410
9411   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9412 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9413 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h.  */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h.  */
9422 #include <stdio.h>
9423 int
9424 main ()
9425 {
9426
9427 #ifndef feof_unlocked
9428   char *p = (char *) feof_unlocked;
9429 #endif
9430
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 rm -f conftest.$ac_objext
9436 if { (ac_try="$ac_compile"
9437 case "(($ac_try" in
9438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439   *) ac_try_echo=$ac_try;;
9440 esac
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442   (eval "$ac_compile") 2>conftest.er1
9443   ac_status=$?
9444   grep -v '^ *+' conftest.er1 >conftest.err
9445   rm -f conftest.er1
9446   cat conftest.err >&5
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); } && {
9449          test -z "$ac_c_werror_flag" ||
9450          test ! -s conftest.err
9451        } && test -s conftest.$ac_objext; then
9452   ac_cv_have_decl_feof_unlocked=yes
9453 else
9454   echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9456
9457         ac_cv_have_decl_feof_unlocked=no
9458 fi
9459
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461 fi
9462 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9463 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9464   if test $ac_cv_have_decl_feof_unlocked = yes; then
9465     gt_value=1
9466   else
9467     gt_value=0
9468   fi
9469
9470 cat >>confdefs.h <<_ACEOF
9471 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9472 _ACEOF
9473
9474
9475
9476   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9477 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9478 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9479   echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481   cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h.  */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h.  */
9487 #include <stdio.h>
9488 int
9489 main ()
9490 {
9491
9492 #ifndef fgets_unlocked
9493   char *p = (char *) fgets_unlocked;
9494 #endif
9495
9496   ;
9497   return 0;
9498 }
9499 _ACEOF
9500 rm -f conftest.$ac_objext
9501 if { (ac_try="$ac_compile"
9502 case "(($ac_try" in
9503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504   *) ac_try_echo=$ac_try;;
9505 esac
9506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507   (eval "$ac_compile") 2>conftest.er1
9508   ac_status=$?
9509   grep -v '^ *+' conftest.er1 >conftest.err
9510   rm -f conftest.er1
9511   cat conftest.err >&5
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); } && {
9514          test -z "$ac_c_werror_flag" ||
9515          test ! -s conftest.err
9516        } && test -s conftest.$ac_objext; then
9517   ac_cv_have_decl_fgets_unlocked=yes
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522         ac_cv_have_decl_fgets_unlocked=no
9523 fi
9524
9525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9526 fi
9527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9528 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9529   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9530     gt_value=1
9531   else
9532     gt_value=0
9533   fi
9534
9535 cat >>confdefs.h <<_ACEOF
9536 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9537 _ACEOF
9538
9539
9540
9541   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9542 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9543 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h.  */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h.  */
9552 #include <stdio.h>
9553 int
9554 main ()
9555 {
9556
9557 #ifndef getc_unlocked
9558   char *p = (char *) getc_unlocked;
9559 #endif
9560
9561   ;
9562   return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext
9566 if { (ac_try="$ac_compile"
9567 case "(($ac_try" in
9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569   *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572   (eval "$ac_compile") 2>conftest.er1
9573   ac_status=$?
9574   grep -v '^ *+' conftest.er1 >conftest.err
9575   rm -f conftest.er1
9576   cat conftest.err >&5
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); } && {
9579          test -z "$ac_c_werror_flag" ||
9580          test ! -s conftest.err
9581        } && test -s conftest.$ac_objext; then
9582   ac_cv_have_decl_getc_unlocked=yes
9583 else
9584   echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587         ac_cv_have_decl_getc_unlocked=no
9588 fi
9589
9590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591 fi
9592 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9593 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9594   if test $ac_cv_have_decl_getc_unlocked = yes; then
9595     gt_value=1
9596   else
9597     gt_value=0
9598   fi
9599
9600 cat >>confdefs.h <<_ACEOF
9601 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9602 _ACEOF
9603
9604
9605
9606   case $gt_cv_func_printf_posix in
9607     *yes) HAVE_POSIX_PRINTF=1 ;;
9608     *) HAVE_POSIX_PRINTF=0 ;;
9609   esac
9610
9611   if test "$ac_cv_func_asprintf" = yes; then
9612     HAVE_ASPRINTF=1
9613   else
9614     HAVE_ASPRINTF=0
9615   fi
9616
9617   if test "$ac_cv_func_snprintf" = yes; then
9618     HAVE_SNPRINTF=1
9619   else
9620     HAVE_SNPRINTF=0
9621   fi
9622
9623   if test "$ac_cv_func_wprintf" = yes; then
9624     HAVE_WPRINTF=1
9625   else
9626     HAVE_WPRINTF=0
9627   fi
9628
9629
9630
9631
9632
9633
9634
9635           am_save_CPPFLAGS="$CPPFLAGS"
9636
9637   for element in $INCICONV; do
9638     haveit=
9639     for x in $CPPFLAGS; do
9640
9641   acl_save_prefix="$prefix"
9642   prefix="$acl_final_prefix"
9643   acl_save_exec_prefix="$exec_prefix"
9644   exec_prefix="$acl_final_exec_prefix"
9645   eval x=\"$x\"
9646   exec_prefix="$acl_save_exec_prefix"
9647   prefix="$acl_save_prefix"
9648
9649       if test "X$x" = "X$element"; then
9650         haveit=yes
9651         break
9652       fi
9653     done
9654     if test -z "$haveit"; then
9655       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9656     fi
9657   done
9658
9659
9660   { echo "$as_me:$LINENO: checking for iconv" >&5
9661 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9662 if test "${am_cv_func_iconv+set}" = set; then
9663   echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665
9666     am_cv_func_iconv="no, consider installing GNU libiconv"
9667     am_cv_lib_iconv=no
9668     cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h.  */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h.  */
9674 #include <stdlib.h>
9675 #include <iconv.h>
9676 int
9677 main ()
9678 {
9679 iconv_t cd = iconv_open("","");
9680        iconv(cd,NULL,NULL,NULL,NULL);
9681        iconv_close(cd);
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (ac_try="$ac_link"
9688 case "(($ac_try" in
9689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690   *) ac_try_echo=$ac_try;;
9691 esac
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693   (eval "$ac_link") 2>conftest.er1
9694   ac_status=$?
9695   grep -v '^ *+' conftest.er1 >conftest.err
9696   rm -f conftest.er1
9697   cat conftest.err >&5
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } && {
9700          test -z "$ac_c_werror_flag" ||
9701          test ! -s conftest.err
9702        } && test -s conftest$ac_exeext &&
9703        $as_test_x conftest$ac_exeext; then
9704   am_cv_func_iconv=yes
9705 else
9706   echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709
9710 fi
9711
9712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9713       conftest$ac_exeext conftest.$ac_ext
9714     if test "$am_cv_func_iconv" != yes; then
9715       am_save_LIBS="$LIBS"
9716       LIBS="$LIBS $LIBICONV"
9717       cat >conftest.$ac_ext <<_ACEOF
9718 /* confdefs.h.  */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h.  */
9723 #include <stdlib.h>
9724 #include <iconv.h>
9725 int
9726 main ()
9727 {
9728 iconv_t cd = iconv_open("","");
9729          iconv(cd,NULL,NULL,NULL,NULL);
9730          iconv_close(cd);
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9737 case "(($ac_try" in
9738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739   *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742   (eval "$ac_link") 2>conftest.er1
9743   ac_status=$?
9744   grep -v '^ *+' conftest.er1 >conftest.err
9745   rm -f conftest.er1
9746   cat conftest.err >&5
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } && {
9749          test -z "$ac_c_werror_flag" ||
9750          test ! -s conftest.err
9751        } && test -s conftest$ac_exeext &&
9752        $as_test_x conftest$ac_exeext; then
9753   am_cv_lib_iconv=yes
9754         am_cv_func_iconv=yes
9755 else
9756   echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759
9760 fi
9761
9762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9763       conftest$ac_exeext conftest.$ac_ext
9764       LIBS="$am_save_LIBS"
9765     fi
9766
9767 fi
9768 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9769 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9770   if test "$am_cv_func_iconv" = yes; then
9771
9772 cat >>confdefs.h <<\_ACEOF
9773 #define HAVE_ICONV 1
9774 _ACEOF
9775
9776   fi
9777   if test "$am_cv_lib_iconv" = yes; then
9778     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9779 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9780     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9781 echo "${ECHO_T}$LIBICONV" >&6; }
9782   else
9783             CPPFLAGS="$am_save_CPPFLAGS"
9784     LIBICONV=
9785     LTLIBICONV=
9786   fi
9787
9788
9789
9790   if test "$am_cv_func_iconv" = yes; then
9791     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9792 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9793     if test "${am_cv_proto_iconv+set}" = set; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796
9797       cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h.  */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h.  */
9803
9804 #include <stdlib.h>
9805 #include <iconv.h>
9806 extern
9807 #ifdef __cplusplus
9808 "C"
9809 #endif
9810 #if defined(__STDC__) || defined(__cplusplus)
9811 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9812 #else
9813 size_t iconv();
9814 #endif
9815
9816 int
9817 main ()
9818 {
9819
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext
9825 if { (ac_try="$ac_compile"
9826 case "(($ac_try" in
9827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828   *) ac_try_echo=$ac_try;;
9829 esac
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831   (eval "$ac_compile") 2>conftest.er1
9832   ac_status=$?
9833   grep -v '^ *+' conftest.er1 >conftest.err
9834   rm -f conftest.er1
9835   cat conftest.err >&5
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } && {
9838          test -z "$ac_c_werror_flag" ||
9839          test ! -s conftest.err
9840        } && test -s conftest.$ac_objext; then
9841   am_cv_proto_iconv_arg1=""
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846         am_cv_proto_iconv_arg1="const"
9847 fi
9848
9849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850       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);"
9851 fi
9852
9853     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9854     { echo "$as_me:$LINENO: result: ${ac_t:-
9855          }$am_cv_proto_iconv" >&5
9856 echo "${ECHO_T}${ac_t:-
9857          }$am_cv_proto_iconv" >&6; }
9858
9859 cat >>confdefs.h <<_ACEOF
9860 #define ICONV_CONST $am_cv_proto_iconv_arg1
9861 _ACEOF
9862
9863   fi
9864
9865
9866   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9867 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9868 if test "${am_cv_langinfo_codeset+set}" = set; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871   cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h.  */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h.  */
9877 #include <langinfo.h>
9878 int
9879 main ()
9880 {
9881 char* cs = nl_langinfo(CODESET);
9882   ;
9883   return 0;
9884 }
9885 _ACEOF
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9888 case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_link") 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } && {
9900          test -z "$ac_c_werror_flag" ||
9901          test ! -s conftest.err
9902        } && test -s conftest$ac_exeext &&
9903        $as_test_x conftest$ac_exeext; then
9904   am_cv_langinfo_codeset=yes
9905 else
9906   echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909         am_cv_langinfo_codeset=no
9910 fi
9911
9912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9913       conftest$ac_exeext conftest.$ac_ext
9914
9915 fi
9916 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9917 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9918   if test $am_cv_langinfo_codeset = yes; then
9919
9920 cat >>confdefs.h <<\_ACEOF
9921 #define HAVE_LANGINFO_CODESET 1
9922 _ACEOF
9923
9924   fi
9925
9926   if test $ac_cv_header_locale_h = yes; then
9927
9928   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9929 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9930 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9931   echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933   cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h.  */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h.  */
9939 #include <locale.h>
9940 int
9941 main ()
9942 {
9943 return LC_MESSAGES
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955   (eval "$ac_link") 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } && {
9962          test -z "$ac_c_werror_flag" ||
9963          test ! -s conftest.err
9964        } && test -s conftest$ac_exeext &&
9965        $as_test_x conftest$ac_exeext; then
9966   am_cv_val_LC_MESSAGES=yes
9967 else
9968   echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971         am_cv_val_LC_MESSAGES=no
9972 fi
9973
9974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9975       conftest$ac_exeext conftest.$ac_ext
9976 fi
9977 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9978 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9979   if test $am_cv_val_LC_MESSAGES = yes; then
9980
9981 cat >>confdefs.h <<\_ACEOF
9982 #define HAVE_LC_MESSAGES 1
9983 _ACEOF
9984
9985   fi
9986
9987   fi
9988
9989                       for ac_prog in bison
9990 do
9991   # Extract the first word of "$ac_prog", so it can be a program name with args.
9992 set dummy $ac_prog; ac_word=$2
9993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9995 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998   if test -n "$INTLBISON"; then
9999   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10000 else
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10003 do
10004   IFS=$as_save_IFS
10005   test -z "$as_dir" && as_dir=.
10006   for ac_exec_ext in '' $ac_executable_extensions; do
10007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008     ac_cv_prog_INTLBISON="$ac_prog"
10009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10010     break 2
10011   fi
10012 done
10013 done
10014 IFS=$as_save_IFS
10015
10016 fi
10017 fi
10018 INTLBISON=$ac_cv_prog_INTLBISON
10019 if test -n "$INTLBISON"; then
10020   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10021 echo "${ECHO_T}$INTLBISON" >&6; }
10022 else
10023   { echo "$as_me:$LINENO: result: no" >&5
10024 echo "${ECHO_T}no" >&6; }
10025 fi
10026
10027
10028   test -n "$INTLBISON" && break
10029 done
10030
10031   if test -z "$INTLBISON"; then
10032     ac_verc_fail=yes
10033   else
10034         { echo "$as_me:$LINENO: checking version of bison" >&5
10035 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10036     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10037     case $ac_prog_version in
10038       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10039       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10040          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10041       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10042     esac
10043     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10044 echo "${ECHO_T}$ac_prog_version" >&6; }
10045   fi
10046   if test $ac_verc_fail = yes; then
10047     INTLBISON=:
10048   fi
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10066 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10067     # Check whether --enable-nls was given.
10068 if test "${enable_nls+set}" = set; then
10069   enableval=$enable_nls; USE_NLS=$enableval
10070 else
10071   USE_NLS=yes
10072 fi
10073
10074   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10075 echo "${ECHO_T}$USE_NLS" >&6; }
10076
10077
10078
10079
10080     BUILD_INCLUDED_LIBINTL=no
10081     USE_INCLUDED_LIBINTL=no
10082
10083   LIBINTL=
10084   LTLIBINTL=
10085   POSUB=
10086
10087     if test "$USE_NLS" = "yes"; then
10088     gt_use_preinstalled_gnugettext=no
10089
10090       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10091 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10092
10093 # Check whether --with-included-gettext was given.
10094 if test "${with_included_gettext+set}" = set; then
10095   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10096 else
10097   nls_cv_force_use_gnu_gettext=no
10098 fi
10099
10100       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10101 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10102
10103       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10104       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10105
10106
10107
10108
10109
10110
10111         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10112 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10113 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10114   echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116   cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h.  */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h.  */
10122 #include <libintl.h>
10123 extern int _nl_msg_cat_cntr;
10124 extern int *_nl_domain_bindings;
10125 int
10126 main ()
10127 {
10128 bindtextdomain ("", "");
10129 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138   *) ac_try_echo=$ac_try;;
10139 esac
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141   (eval "$ac_link") 2>conftest.er1
10142   ac_status=$?
10143   grep -v '^ *+' conftest.er1 >conftest.err
10144   rm -f conftest.er1
10145   cat conftest.err >&5
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); } && {
10148          test -z "$ac_c_werror_flag" ||
10149          test ! -s conftest.err
10150        } && test -s conftest$ac_exeext &&
10151        $as_test_x conftest$ac_exeext; then
10152   gt_cv_func_gnugettext1_libc=yes
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157         gt_cv_func_gnugettext1_libc=no
10158 fi
10159
10160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10161       conftest$ac_exeext conftest.$ac_ext
10162 fi
10163 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10164 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10165
10166         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10167
10168
10169
10170     use_additional=yes
10171
10172   acl_save_prefix="$prefix"
10173   prefix="$acl_final_prefix"
10174   acl_save_exec_prefix="$exec_prefix"
10175   exec_prefix="$acl_final_exec_prefix"
10176
10177     eval additional_includedir=\"$includedir\"
10178     eval additional_libdir=\"$libdir\"
10179
10180   exec_prefix="$acl_save_exec_prefix"
10181   prefix="$acl_save_prefix"
10182
10183
10184 # Check whether --with-libintl-prefix was given.
10185 if test "${with_libintl_prefix+set}" = set; then
10186   withval=$with_libintl_prefix;
10187     if test "X$withval" = "Xno"; then
10188       use_additional=no
10189     else
10190       if test "X$withval" = "X"; then
10191
10192   acl_save_prefix="$prefix"
10193   prefix="$acl_final_prefix"
10194   acl_save_exec_prefix="$exec_prefix"
10195   exec_prefix="$acl_final_exec_prefix"
10196
10197           eval additional_includedir=\"$includedir\"
10198           eval additional_libdir=\"$libdir\"
10199
10200   exec_prefix="$acl_save_exec_prefix"
10201   prefix="$acl_save_prefix"
10202
10203       else
10204         additional_includedir="$withval/include"
10205         additional_libdir="$withval/lib"
10206       fi
10207     fi
10208
10209 fi
10210
10211       LIBINTL=
10212   LTLIBINTL=
10213   INCINTL=
10214   rpathdirs=
10215   ltrpathdirs=
10216   names_already_handled=
10217   names_next_round='intl '
10218   while test -n "$names_next_round"; do
10219     names_this_round="$names_next_round"
10220     names_next_round=
10221     for name in $names_this_round; do
10222       already_handled=
10223       for n in $names_already_handled; do
10224         if test "$n" = "$name"; then
10225           already_handled=yes
10226           break
10227         fi
10228       done
10229       if test -z "$already_handled"; then
10230         names_already_handled="$names_already_handled $name"
10231                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10232         eval value=\"\$HAVE_LIB$uppername\"
10233         if test -n "$value"; then
10234           if test "$value" = yes; then
10235             eval value=\"\$LIB$uppername\"
10236             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10237             eval value=\"\$LTLIB$uppername\"
10238             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10239           else
10240                                     :
10241           fi
10242         else
10243                               found_dir=
10244           found_la=
10245           found_so=
10246           found_a=
10247           if test $use_additional = yes; then
10248             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10249               found_dir="$additional_libdir"
10250               found_so="$additional_libdir/lib$name.$shlibext"
10251               if test -f "$additional_libdir/lib$name.la"; then
10252                 found_la="$additional_libdir/lib$name.la"
10253               fi
10254             else
10255               if test -f "$additional_libdir/lib$name.$libext"; then
10256                 found_dir="$additional_libdir"
10257                 found_a="$additional_libdir/lib$name.$libext"
10258                 if test -f "$additional_libdir/lib$name.la"; then
10259                   found_la="$additional_libdir/lib$name.la"
10260                 fi
10261               fi
10262             fi
10263           fi
10264           if test "X$found_dir" = "X"; then
10265             for x in $LDFLAGS $LTLIBINTL; do
10266
10267   acl_save_prefix="$prefix"
10268   prefix="$acl_final_prefix"
10269   acl_save_exec_prefix="$exec_prefix"
10270   exec_prefix="$acl_final_exec_prefix"
10271   eval x=\"$x\"
10272   exec_prefix="$acl_save_exec_prefix"
10273   prefix="$acl_save_prefix"
10274
10275               case "$x" in
10276                 -L*)
10277                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10278                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10279                     found_dir="$dir"
10280                     found_so="$dir/lib$name.$shlibext"
10281                     if test -f "$dir/lib$name.la"; then
10282                       found_la="$dir/lib$name.la"
10283                     fi
10284                   else
10285                     if test -f "$dir/lib$name.$libext"; then
10286                       found_dir="$dir"
10287                       found_a="$dir/lib$name.$libext"
10288                       if test -f "$dir/lib$name.la"; then
10289                         found_la="$dir/lib$name.la"
10290                       fi
10291                     fi
10292                   fi
10293                   ;;
10294               esac
10295               if test "X$found_dir" != "X"; then
10296                 break
10297               fi
10298             done
10299           fi
10300           if test "X$found_dir" != "X"; then
10301                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10302             if test "X$found_so" != "X"; then
10303                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10304                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10305               else
10306                                                                                 haveit=
10307                 for x in $ltrpathdirs; do
10308                   if test "X$x" = "X$found_dir"; then
10309                     haveit=yes
10310                     break
10311                   fi
10312                 done
10313                 if test -z "$haveit"; then
10314                   ltrpathdirs="$ltrpathdirs $found_dir"
10315                 fi
10316                                 if test "$hardcode_direct" = yes; then
10317                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10318                 else
10319                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10320                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10321                                                             haveit=
10322                     for x in $rpathdirs; do
10323                       if test "X$x" = "X$found_dir"; then
10324                         haveit=yes
10325                         break
10326                       fi
10327                     done
10328                     if test -z "$haveit"; then
10329                       rpathdirs="$rpathdirs $found_dir"
10330                     fi
10331                   else
10332                                                                                 haveit=
10333                     for x in $LDFLAGS $LIBINTL; do
10334
10335   acl_save_prefix="$prefix"
10336   prefix="$acl_final_prefix"
10337   acl_save_exec_prefix="$exec_prefix"
10338   exec_prefix="$acl_final_exec_prefix"
10339   eval x=\"$x\"
10340   exec_prefix="$acl_save_exec_prefix"
10341   prefix="$acl_save_prefix"
10342
10343                       if test "X$x" = "X-L$found_dir"; then
10344                         haveit=yes
10345                         break
10346                       fi
10347                     done
10348                     if test -z "$haveit"; then
10349                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10350                     fi
10351                     if test "$hardcode_minus_L" != no; then
10352                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10353                     else
10354                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10355                     fi
10356                   fi
10357                 fi
10358               fi
10359             else
10360               if test "X$found_a" != "X"; then
10361                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10362               else
10363                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10364               fi
10365             fi
10366                         additional_includedir=
10367             case "$found_dir" in
10368               */lib | */lib/)
10369                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10370                 additional_includedir="$basedir/include"
10371                 ;;
10372             esac
10373             if test "X$additional_includedir" != "X"; then
10374                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10375                 haveit=
10376                 if test "X$additional_includedir" = "X/usr/local/include"; then
10377                   if test -n "$GCC"; then
10378                     case $host_os in
10379                       linux*) haveit=yes;;
10380                     esac
10381                   fi
10382                 fi
10383                 if test -z "$haveit"; then
10384                   for x in $CPPFLAGS $INCINTL; do
10385
10386   acl_save_prefix="$prefix"
10387   prefix="$acl_final_prefix"
10388   acl_save_exec_prefix="$exec_prefix"
10389   exec_prefix="$acl_final_exec_prefix"
10390   eval x=\"$x\"
10391   exec_prefix="$acl_save_exec_prefix"
10392   prefix="$acl_save_prefix"
10393
10394                     if test "X$x" = "X-I$additional_includedir"; then
10395                       haveit=yes
10396                       break
10397                     fi
10398                   done
10399                   if test -z "$haveit"; then
10400                     if test -d "$additional_includedir"; then
10401                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10402                     fi
10403                   fi
10404                 fi
10405               fi
10406             fi
10407                         if test -n "$found_la"; then
10408                                                         save_libdir="$libdir"
10409               case "$found_la" in
10410                 */* | *\\*) . "$found_la" ;;
10411                 *) . "./$found_la" ;;
10412               esac
10413               libdir="$save_libdir"
10414                             for dep in $dependency_libs; do
10415                 case "$dep" in
10416                   -L*)
10417                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10418                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10419                       haveit=
10420                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10421                         if test -n "$GCC"; then
10422                           case $host_os in
10423                             linux*) haveit=yes;;
10424                           esac
10425                         fi
10426                       fi
10427                       if test -z "$haveit"; then
10428                         haveit=
10429                         for x in $LDFLAGS $LIBINTL; do
10430
10431   acl_save_prefix="$prefix"
10432   prefix="$acl_final_prefix"
10433   acl_save_exec_prefix="$exec_prefix"
10434   exec_prefix="$acl_final_exec_prefix"
10435   eval x=\"$x\"
10436   exec_prefix="$acl_save_exec_prefix"
10437   prefix="$acl_save_prefix"
10438
10439                           if test "X$x" = "X-L$additional_libdir"; then
10440                             haveit=yes
10441                             break
10442                           fi
10443                         done
10444                         if test -z "$haveit"; then
10445                           if test -d "$additional_libdir"; then
10446                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10447                           fi
10448                         fi
10449                         haveit=
10450                         for x in $LDFLAGS $LTLIBINTL; do
10451
10452   acl_save_prefix="$prefix"
10453   prefix="$acl_final_prefix"
10454   acl_save_exec_prefix="$exec_prefix"
10455   exec_prefix="$acl_final_exec_prefix"
10456   eval x=\"$x\"
10457   exec_prefix="$acl_save_exec_prefix"
10458   prefix="$acl_save_prefix"
10459
10460                           if test "X$x" = "X-L$additional_libdir"; then
10461                             haveit=yes
10462                             break
10463                           fi
10464                         done
10465                         if test -z "$haveit"; then
10466                           if test -d "$additional_libdir"; then
10467                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10468                           fi
10469                         fi
10470                       fi
10471                     fi
10472                     ;;
10473                   -R*)
10474                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10475                     if test "$enable_rpath" != no; then
10476                                                                   haveit=
10477                       for x in $rpathdirs; do
10478                         if test "X$x" = "X$dir"; then
10479                           haveit=yes
10480                           break
10481                         fi
10482                       done
10483                       if test -z "$haveit"; then
10484                         rpathdirs="$rpathdirs $dir"
10485                       fi
10486                                                                   haveit=
10487                       for x in $ltrpathdirs; do
10488                         if test "X$x" = "X$dir"; then
10489                           haveit=yes
10490                           break
10491                         fi
10492                       done
10493                       if test -z "$haveit"; then
10494                         ltrpathdirs="$ltrpathdirs $dir"
10495                       fi
10496                     fi
10497                     ;;
10498                   -l*)
10499                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10500                     ;;
10501                   *.la)
10502                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10503                     ;;
10504                   *)
10505                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10506                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10507                     ;;
10508                 esac
10509               done
10510             fi
10511           else
10512                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10513             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10514           fi
10515         fi
10516       fi
10517     done
10518   done
10519   if test "X$rpathdirs" != "X"; then
10520     if test -n "$hardcode_libdir_separator"; then
10521                         alldirs=
10522       for found_dir in $rpathdirs; do
10523         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10524       done
10525             acl_save_libdir="$libdir"
10526       libdir="$alldirs"
10527       eval flag=\"$hardcode_libdir_flag_spec\"
10528       libdir="$acl_save_libdir"
10529       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10530     else
10531             for found_dir in $rpathdirs; do
10532         acl_save_libdir="$libdir"
10533         libdir="$found_dir"
10534         eval flag=\"$hardcode_libdir_flag_spec\"
10535         libdir="$acl_save_libdir"
10536         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10537       done
10538     fi
10539   fi
10540   if test "X$ltrpathdirs" != "X"; then
10541             for found_dir in $ltrpathdirs; do
10542       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10543     done
10544   fi
10545
10546           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10547 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10548 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   gt_save_CPPFLAGS="$CPPFLAGS"
10552             CPPFLAGS="$CPPFLAGS $INCINTL"
10553             gt_save_LIBS="$LIBS"
10554             LIBS="$LIBS $LIBINTL"
10555                         cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h.  */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h.  */
10561 #include <libintl.h>
10562 extern int _nl_msg_cat_cntr;
10563 extern
10564 #ifdef __cplusplus
10565 "C"
10566 #endif
10567 const char *_nl_expand_alias ();
10568 int
10569 main ()
10570 {
10571 bindtextdomain ("", "");
10572 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10573   ;
10574   return 0;
10575 }
10576 _ACEOF
10577 rm -f conftest.$ac_objext conftest$ac_exeext
10578 if { (ac_try="$ac_link"
10579 case "(($ac_try" in
10580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581   *) ac_try_echo=$ac_try;;
10582 esac
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584   (eval "$ac_link") 2>conftest.er1
10585   ac_status=$?
10586   grep -v '^ *+' conftest.er1 >conftest.err
10587   rm -f conftest.er1
10588   cat conftest.err >&5
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } && {
10591          test -z "$ac_c_werror_flag" ||
10592          test ! -s conftest.err
10593        } && test -s conftest$ac_exeext &&
10594        $as_test_x conftest$ac_exeext; then
10595   gt_cv_func_gnugettext1_libintl=yes
10596 else
10597   echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10599
10600         gt_cv_func_gnugettext1_libintl=no
10601 fi
10602
10603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10604       conftest$ac_exeext conftest.$ac_ext
10605                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10606               LIBS="$LIBS $LIBICONV"
10607               cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613 #include <libintl.h>
10614 extern int _nl_msg_cat_cntr;
10615 extern
10616 #ifdef __cplusplus
10617 "C"
10618 #endif
10619 const char *_nl_expand_alias ();
10620 int
10621 main ()
10622 {
10623 bindtextdomain ("", "");
10624 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10625   ;
10626   return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633   *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636   (eval "$ac_link") 2>conftest.er1
10637   ac_status=$?
10638   grep -v '^ *+' conftest.er1 >conftest.err
10639   rm -f conftest.er1
10640   cat conftest.err >&5
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } && {
10643          test -z "$ac_c_werror_flag" ||
10644          test ! -s conftest.err
10645        } && test -s conftest$ac_exeext &&
10646        $as_test_x conftest$ac_exeext; then
10647   LIBINTL="$LIBINTL $LIBICONV"
10648                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10649                 gt_cv_func_gnugettext1_libintl=yes
10650
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655
10656 fi
10657
10658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10659       conftest$ac_exeext conftest.$ac_ext
10660             fi
10661             CPPFLAGS="$gt_save_CPPFLAGS"
10662             LIBS="$gt_save_LIBS"
10663 fi
10664 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10665 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10666         fi
10667
10668                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10669            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10670                 && test "$PACKAGE" != gettext-runtime \
10671                 && test "$PACKAGE" != gettext-tools; }; then
10672           gt_use_preinstalled_gnugettext=yes
10673         else
10674                     LIBINTL=
10675           LTLIBINTL=
10676           INCINTL=
10677         fi
10678
10679
10680         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10681                               nls_cv_use_gnu_gettext=yes
10682         fi
10683       fi
10684
10685       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10686                 BUILD_INCLUDED_LIBINTL=yes
10687         USE_INCLUDED_LIBINTL=yes
10688         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10689         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10690         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10691       fi
10692
10693       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10694          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10695                 CATOBJEXT=.gmo
10696       fi
10697
10698
10699     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10700        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10701
10702 cat >>confdefs.h <<\_ACEOF
10703 #define ENABLE_NLS 1
10704 _ACEOF
10705
10706     else
10707       USE_NLS=no
10708     fi
10709   fi
10710
10711   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10712 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10713   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10714 echo "${ECHO_T}$USE_NLS" >&6; }
10715   if test "$USE_NLS" = "yes"; then
10716     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10717 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10718     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10719       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10720         gt_source="external libintl"
10721       else
10722         gt_source="libc"
10723       fi
10724     else
10725       gt_source="included intl directory"
10726     fi
10727     { echo "$as_me:$LINENO: result: $gt_source" >&5
10728 echo "${ECHO_T}$gt_source" >&6; }
10729   fi
10730
10731   if test "$USE_NLS" = "yes"; then
10732
10733     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10734       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10735         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10736 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10737         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10738 echo "${ECHO_T}$LIBINTL" >&6; }
10739
10740   for element in $INCINTL; do
10741     haveit=
10742     for x in $CPPFLAGS; do
10743
10744   acl_save_prefix="$prefix"
10745   prefix="$acl_final_prefix"
10746   acl_save_exec_prefix="$exec_prefix"
10747   exec_prefix="$acl_final_exec_prefix"
10748   eval x=\"$x\"
10749   exec_prefix="$acl_save_exec_prefix"
10750   prefix="$acl_save_prefix"
10751
10752       if test "X$x" = "X$element"; then
10753         haveit=yes
10754         break
10755       fi
10756     done
10757     if test -z "$haveit"; then
10758       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10759     fi
10760   done
10761
10762       fi
10763
10764
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_GETTEXT 1
10767 _ACEOF
10768
10769
10770 cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_DCGETTEXT 1
10772 _ACEOF
10773
10774     fi
10775
10776         POSUB=po
10777   fi
10778
10779
10780             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10781       BUILD_INCLUDED_LIBINTL=yes
10782     fi
10783
10784
10785
10786
10787
10788         nls_cv_header_intl=
10789     nls_cv_header_libgt=
10790
10791         DATADIRNAME=share
10792
10793
10794         INSTOBJEXT=.mo
10795
10796
10797         GENCAT=gencat
10798
10799
10800         if test "$USE_INCLUDED_LIBINTL" = yes; then
10801       INTLOBJS="\$(GETTOBJS)"
10802     fi
10803
10804
10805         INTL_LIBTOOL_SUFFIX_PREFIX=
10806
10807
10808
10809     INTLLIBS="$LIBINTL"
10810
10811
10812
10813
10814
10815
10816
10817 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10819 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10820 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823   cat >conftest.make <<\_ACEOF
10824 SHELL = /bin/sh
10825 all:
10826         @echo '@@@%%%=$(MAKE)=@@@%%%'
10827 _ACEOF
10828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10830   *@@@%%%=?*=@@@%%%*)
10831     eval ac_cv_prog_make_${ac_make}_set=yes;;
10832   *)
10833     eval ac_cv_prog_make_${ac_make}_set=no;;
10834 esac
10835 rm -f conftest.make
10836 fi
10837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10838   { echo "$as_me:$LINENO: result: yes" >&5
10839 echo "${ECHO_T}yes" >&6; }
10840   SET_MAKE=
10841 else
10842   { echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6; }
10844   SET_MAKE="MAKE=${MAKE-make}"
10845 fi
10846
10847 # Extract the first word of "ln", so it can be a program name with args.
10848 set dummy ln; ac_word=$2
10849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10851 if test "${ac_cv_path_LN+set}" = set; then
10852   echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854   case $LN in
10855   [\\/]* | ?:[\\/]*)
10856   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10857   ;;
10858   *)
10859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10861 do
10862   IFS=$as_save_IFS
10863   test -z "$as_dir" && as_dir=.
10864   for ac_exec_ext in '' $ac_executable_extensions; do
10865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10868     break 2
10869   fi
10870 done
10871 done
10872 IFS=$as_save_IFS
10873
10874   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10875   ;;
10876 esac
10877 fi
10878 LN=$ac_cv_path_LN
10879 if test -n "$LN"; then
10880   { echo "$as_me:$LINENO: result: $LN" >&5
10881 echo "${ECHO_T}$LN" >&6; }
10882 else
10883   { echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6; }
10885 fi
10886
10887
10888 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10889 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10890 LN_S=$as_ln_s
10891 if test "$LN_S" = "ln -s"; then
10892   { echo "$as_me:$LINENO: result: yes" >&5
10893 echo "${ECHO_T}yes" >&6; }
10894 else
10895   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10896 echo "${ECHO_T}no, using $LN_S" >&6; }
10897 fi
10898
10899 # Extract the first word of "mv", so it can be a program name with args.
10900 set dummy mv; ac_word=$2
10901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10903 if test "${ac_cv_path_MV+set}" = set; then
10904   echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906   case $MV in
10907   [\\/]* | ?:[\\/]*)
10908   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10909   ;;
10910   *)
10911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10913 do
10914   IFS=$as_save_IFS
10915   test -z "$as_dir" && as_dir=.
10916   for ac_exec_ext in '' $ac_executable_extensions; do
10917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10918     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10920     break 2
10921   fi
10922 done
10923 done
10924 IFS=$as_save_IFS
10925
10926   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10927   ;;
10928 esac
10929 fi
10930 MV=$ac_cv_path_MV
10931 if test -n "$MV"; then
10932   { echo "$as_me:$LINENO: result: $MV" >&5
10933 echo "${ECHO_T}$MV" >&6; }
10934 else
10935   { echo "$as_me:$LINENO: result: no" >&5
10936 echo "${ECHO_T}no" >&6; }
10937 fi
10938
10939
10940 # Extract the first word of "cp", so it can be a program name with args.
10941 set dummy cp; ac_word=$2
10942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10944 if test "${ac_cv_path_CP+set}" = set; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947   case $CP in
10948   [\\/]* | ?:[\\/]*)
10949   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10950   ;;
10951   *)
10952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10954 do
10955   IFS=$as_save_IFS
10956   test -z "$as_dir" && as_dir=.
10957   for ac_exec_ext in '' $ac_executable_extensions; do
10958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10959     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961     break 2
10962   fi
10963 done
10964 done
10965 IFS=$as_save_IFS
10966
10967   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10968   ;;
10969 esac
10970 fi
10971 CP=$ac_cv_path_CP
10972 if test -n "$CP"; then
10973   { echo "$as_me:$LINENO: result: $CP" >&5
10974 echo "${ECHO_T}$CP" >&6; }
10975 else
10976   { echo "$as_me:$LINENO: result: no" >&5
10977 echo "${ECHO_T}no" >&6; }
10978 fi
10979
10980
10981 # Extract the first word of "rm", so it can be a program name with args.
10982 set dummy rm; ac_word=$2
10983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10985 if test "${ac_cv_path_RM+set}" = set; then
10986   echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988   case $RM in
10989   [\\/]* | ?:[\\/]*)
10990   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10991   ;;
10992   *)
10993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10995 do
10996   IFS=$as_save_IFS
10997   test -z "$as_dir" && as_dir=.
10998   for ac_exec_ext in '' $ac_executable_extensions; do
10999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11000     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11002     break 2
11003   fi
11004 done
11005 done
11006 IFS=$as_save_IFS
11007
11008   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11009   ;;
11010 esac
11011 fi
11012 RM=$ac_cv_path_RM
11013 if test -n "$RM"; then
11014   { echo "$as_me:$LINENO: result: $RM" >&5
11015 echo "${ECHO_T}$RM" >&6; }
11016 else
11017   { echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6; }
11019 fi
11020
11021
11022 # Extract the first word of "chmod", so it can be a program name with args.
11023 set dummy chmod; ac_word=$2
11024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11026 if test "${ac_cv_path_CHMOD+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   case $CHMOD in
11030   [\\/]* | ?:[\\/]*)
11031   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11032   ;;
11033   *)
11034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11036 do
11037   IFS=$as_save_IFS
11038   test -z "$as_dir" && as_dir=.
11039   for ac_exec_ext in '' $ac_executable_extensions; do
11040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11041     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11043     break 2
11044   fi
11045 done
11046 done
11047 IFS=$as_save_IFS
11048
11049   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11050   ;;
11051 esac
11052 fi
11053 CHMOD=$ac_cv_path_CHMOD
11054 if test -n "$CHMOD"; then
11055   { echo "$as_me:$LINENO: result: $CHMOD" >&5
11056 echo "${ECHO_T}$CHMOD" >&6; }
11057 else
11058   { echo "$as_me:$LINENO: result: no" >&5
11059 echo "${ECHO_T}no" >&6; }
11060 fi
11061
11062
11063 for ac_prog in gawk mawk nawk awk
11064 do
11065   # Extract the first word of "$ac_prog", so it can be a program name with args.
11066 set dummy $ac_prog; ac_word=$2
11067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11069 if test "${ac_cv_prog_AWK+set}" = set; then
11070   echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072   if test -n "$AWK"; then
11073   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11074 else
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11077 do
11078   IFS=$as_save_IFS
11079   test -z "$as_dir" && as_dir=.
11080   for ac_exec_ext in '' $ac_executable_extensions; do
11081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082     ac_cv_prog_AWK="$ac_prog"
11083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11084     break 2
11085   fi
11086 done
11087 done
11088 IFS=$as_save_IFS
11089
11090 fi
11091 fi
11092 AWK=$ac_cv_prog_AWK
11093 if test -n "$AWK"; then
11094   { echo "$as_me:$LINENO: result: $AWK" >&5
11095 echo "${ECHO_T}$AWK" >&6; }
11096 else
11097   { echo "$as_me:$LINENO: result: no" >&5
11098 echo "${ECHO_T}no" >&6; }
11099 fi
11100
11101
11102   test -n "$AWK" && break
11103 done
11104
11105 { echo "$as_me:$LINENO: checking for egrep" >&5
11106 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11107 if test "${ac_cv_path_EGREP+set}" = set; then
11108   echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11111    then ac_cv_path_EGREP="$GREP -E"
11112    else
11113      # Extract the first word of "egrep" to use in msg output
11114 if test -z "$EGREP"; then
11115 set dummy egrep; ac_prog_name=$2
11116 if test "${ac_cv_path_EGREP+set}" = set; then
11117   echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119   ac_path_EGREP_found=false
11120 # Loop through the user's path and test for each of PROGNAME-LIST
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11123 do
11124   IFS=$as_save_IFS
11125   test -z "$as_dir" && as_dir=.
11126   for ac_prog in egrep; do
11127   for ac_exec_ext in '' $ac_executable_extensions; do
11128     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11129     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11130     # Check for GNU ac_path_EGREP and select it if it is found.
11131   # Check for GNU $ac_path_EGREP
11132 case `"$ac_path_EGREP" --version 2>&1` in
11133 *GNU*)
11134   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11135 *)
11136   ac_count=0
11137   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11138   while :
11139   do
11140     cat "conftest.in" "conftest.in" >"conftest.tmp"
11141     mv "conftest.tmp" "conftest.in"
11142     cp "conftest.in" "conftest.nl"
11143     echo 'EGREP' >> "conftest.nl"
11144     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11145     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11146     ac_count=`expr $ac_count + 1`
11147     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11148       # Best one so far, save it but keep looking for a better one
11149       ac_cv_path_EGREP="$ac_path_EGREP"
11150       ac_path_EGREP_max=$ac_count
11151     fi
11152     # 10*(2^10) chars as input seems more than enough
11153     test $ac_count -gt 10 && break
11154   done
11155   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11156 esac
11157
11158
11159     $ac_path_EGREP_found && break 3
11160   done
11161 done
11162
11163 done
11164 IFS=$as_save_IFS
11165
11166
11167 fi
11168
11169 EGREP="$ac_cv_path_EGREP"
11170 if test -z "$EGREP"; then
11171   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11172 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11173    { (exit 1); exit 1; }; }
11174 fi
11175
11176 else
11177   ac_cv_path_EGREP=$EGREP
11178 fi
11179
11180
11181    fi
11182 fi
11183 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11184 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11185  EGREP="$ac_cv_path_EGREP"
11186
11187
11188 # Extract the first word of "sed", so it can be a program name with args.
11189 set dummy sed; ac_word=$2
11190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11192 if test "${ac_cv_path_SED+set}" = set; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   case $SED in
11196   [\\/]* | ?:[\\/]*)
11197   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11198   ;;
11199   *)
11200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11202 do
11203   IFS=$as_save_IFS
11204   test -z "$as_dir" && as_dir=.
11205   for ac_exec_ext in '' $ac_executable_extensions; do
11206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11207     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11209     break 2
11210   fi
11211 done
11212 done
11213 IFS=$as_save_IFS
11214
11215   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11216   ;;
11217 esac
11218 fi
11219 SED=$ac_cv_path_SED
11220 if test -n "$SED"; then
11221   { echo "$as_me:$LINENO: result: $SED" >&5
11222 echo "${ECHO_T}$SED" >&6; }
11223 else
11224   { echo "$as_me:$LINENO: result: no" >&5
11225 echo "${ECHO_T}no" >&6; }
11226 fi
11227
11228
11229 # Extract the first word of "perl", so it can be a program name with args.
11230 set dummy perl; ac_word=$2
11231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11233 if test "${ac_cv_path_PERL+set}" = set; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236   case $PERL in
11237   [\\/]* | ?:[\\/]*)
11238   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11239   ;;
11240   *)
11241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11243 do
11244   IFS=$as_save_IFS
11245   test -z "$as_dir" && as_dir=.
11246   for ac_exec_ext in '' $ac_executable_extensions; do
11247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11248     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11250     break 2
11251   fi
11252 done
11253 done
11254 IFS=$as_save_IFS
11255
11256   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11257   ;;
11258 esac
11259 fi
11260 PERL=$ac_cv_path_PERL
11261 if test -n "$PERL"; then
11262   { echo "$as_me:$LINENO: result: $PERL" >&5
11263 echo "${ECHO_T}$PERL" >&6; }
11264 else
11265   { echo "$as_me:$LINENO: result: no" >&5
11266 echo "${ECHO_T}no" >&6; }
11267 fi
11268
11269
11270 # Extract the first word of "ldconfig", so it can be a program name with args.
11271 set dummy ldconfig; ac_word=$2
11272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11274 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11275   echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277   case $LDCONFIG in
11278   [\\/]* | ?:[\\/]*)
11279   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11280   ;;
11281   *)
11282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11284 do
11285   IFS=$as_save_IFS
11286   test -z "$as_dir" && as_dir=.
11287   for ac_exec_ext in '' $ac_executable_extensions; do
11288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11291     break 2
11292   fi
11293 done
11294 done
11295 IFS=$as_save_IFS
11296
11297   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11298   ;;
11299 esac
11300 fi
11301 LDCONFIG=$ac_cv_path_LDCONFIG
11302 if test -n "$LDCONFIG"; then
11303   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11304 echo "${ECHO_T}$LDCONFIG" >&6; }
11305 else
11306   { echo "$as_me:$LINENO: result: no" >&5
11307 echo "${ECHO_T}no" >&6; }
11308 fi
11309
11310
11311 if test -n "$ac_tool_prefix"; then
11312   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11313 set dummy ${ac_tool_prefix}ar; ac_word=$2
11314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11316 if test "${ac_cv_prog_AR+set}" = set; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319   if test -n "$AR"; then
11320   ac_cv_prog_AR="$AR" # Let the user override the test.
11321 else
11322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323 for as_dir in $PATH
11324 do
11325   IFS=$as_save_IFS
11326   test -z "$as_dir" && as_dir=.
11327   for ac_exec_ext in '' $ac_executable_extensions; do
11328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11329     ac_cv_prog_AR="${ac_tool_prefix}ar"
11330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11331     break 2
11332   fi
11333 done
11334 done
11335 IFS=$as_save_IFS
11336
11337 fi
11338 fi
11339 AR=$ac_cv_prog_AR
11340 if test -n "$AR"; then
11341   { echo "$as_me:$LINENO: result: $AR" >&5
11342 echo "${ECHO_T}$AR" >&6; }
11343 else
11344   { echo "$as_me:$LINENO: result: no" >&5
11345 echo "${ECHO_T}no" >&6; }
11346 fi
11347
11348
11349 fi
11350 if test -z "$ac_cv_prog_AR"; then
11351   ac_ct_AR=$AR
11352   # Extract the first word of "ar", so it can be a program name with args.
11353 set dummy ar; ac_word=$2
11354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11356 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359   if test -n "$ac_ct_AR"; then
11360   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11361 else
11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363 for as_dir in $PATH
11364 do
11365   IFS=$as_save_IFS
11366   test -z "$as_dir" && as_dir=.
11367   for ac_exec_ext in '' $ac_executable_extensions; do
11368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11369     ac_cv_prog_ac_ct_AR="ar"
11370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11371     break 2
11372   fi
11373 done
11374 done
11375 IFS=$as_save_IFS
11376
11377 fi
11378 fi
11379 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11380 if test -n "$ac_ct_AR"; then
11381   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11382 echo "${ECHO_T}$ac_ct_AR" >&6; }
11383 else
11384   { echo "$as_me:$LINENO: result: no" >&5
11385 echo "${ECHO_T}no" >&6; }
11386 fi
11387
11388   if test "x$ac_ct_AR" = x; then
11389     AR="ar"
11390   else
11391     case $cross_compiling:$ac_tool_warned in
11392 yes:)
11393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11394 whose name does not start with the host triplet.  If you think this
11395 configuration is useful to you, please write to autoconf@gnu.org." >&5
11396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11397 whose name does not start with the host triplet.  If you think this
11398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11399 ac_tool_warned=yes ;;
11400 esac
11401     AR=$ac_ct_AR
11402   fi
11403 else
11404   AR="$ac_cv_prog_AR"
11405 fi
11406
11407 if test -n "$ac_tool_prefix"; then
11408   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11412 if test "${ac_cv_prog_RANLIB+set}" = set; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415   if test -n "$RANLIB"; then
11416   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11417 else
11418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11419 for as_dir in $PATH
11420 do
11421   IFS=$as_save_IFS
11422   test -z "$as_dir" && as_dir=.
11423   for ac_exec_ext in '' $ac_executable_extensions; do
11424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11425     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11427     break 2
11428   fi
11429 done
11430 done
11431 IFS=$as_save_IFS
11432
11433 fi
11434 fi
11435 RANLIB=$ac_cv_prog_RANLIB
11436 if test -n "$RANLIB"; then
11437   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11438 echo "${ECHO_T}$RANLIB" >&6; }
11439 else
11440   { echo "$as_me:$LINENO: result: no" >&5
11441 echo "${ECHO_T}no" >&6; }
11442 fi
11443
11444
11445 fi
11446 if test -z "$ac_cv_prog_RANLIB"; then
11447   ac_ct_RANLIB=$RANLIB
11448   # Extract the first word of "ranlib", so it can be a program name with args.
11449 set dummy ranlib; ac_word=$2
11450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11452 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11453   echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455   if test -n "$ac_ct_RANLIB"; then
11456   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11457 else
11458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459 for as_dir in $PATH
11460 do
11461   IFS=$as_save_IFS
11462   test -z "$as_dir" && as_dir=.
11463   for ac_exec_ext in '' $ac_executable_extensions; do
11464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11465     ac_cv_prog_ac_ct_RANLIB="ranlib"
11466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11467     break 2
11468   fi
11469 done
11470 done
11471 IFS=$as_save_IFS
11472
11473 fi
11474 fi
11475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11476 if test -n "$ac_ct_RANLIB"; then
11477   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11478 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11479 else
11480   { echo "$as_me:$LINENO: result: no" >&5
11481 echo "${ECHO_T}no" >&6; }
11482 fi
11483
11484   if test "x$ac_ct_RANLIB" = x; then
11485     RANLIB=":"
11486   else
11487     case $cross_compiling:$ac_tool_warned in
11488 yes:)
11489 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11490 whose name does not start with the host triplet.  If you think this
11491 configuration is useful to you, please write to autoconf@gnu.org." >&5
11492 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11493 whose name does not start with the host triplet.  If you think this
11494 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11495 ac_tool_warned=yes ;;
11496 esac
11497     RANLIB=$ac_ct_RANLIB
11498   fi
11499 else
11500   RANLIB="$ac_cv_prog_RANLIB"
11501 fi
11502
11503 if test -n "$ac_tool_prefix"; then
11504   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11505 set dummy ${ac_tool_prefix}strip; ac_word=$2
11506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11508 if test "${ac_cv_prog_STRIP+set}" = set; then
11509   echo $ECHO_N "(cached) $ECHO_C" >&6
11510 else
11511   if test -n "$STRIP"; then
11512   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11513 else
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11516 do
11517   IFS=$as_save_IFS
11518   test -z "$as_dir" && as_dir=.
11519   for ac_exec_ext in '' $ac_executable_extensions; do
11520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11523     break 2
11524   fi
11525 done
11526 done
11527 IFS=$as_save_IFS
11528
11529 fi
11530 fi
11531 STRIP=$ac_cv_prog_STRIP
11532 if test -n "$STRIP"; then
11533   { echo "$as_me:$LINENO: result: $STRIP" >&5
11534 echo "${ECHO_T}$STRIP" >&6; }
11535 else
11536   { echo "$as_me:$LINENO: result: no" >&5
11537 echo "${ECHO_T}no" >&6; }
11538 fi
11539
11540
11541 fi
11542 if test -z "$ac_cv_prog_STRIP"; then
11543   ac_ct_STRIP=$STRIP
11544   # Extract the first word of "strip", so it can be a program name with args.
11545 set dummy strip; ac_word=$2
11546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11548 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11549   echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551   if test -n "$ac_ct_STRIP"; then
11552   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11553 else
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11556 do
11557   IFS=$as_save_IFS
11558   test -z "$as_dir" && as_dir=.
11559   for ac_exec_ext in '' $ac_executable_extensions; do
11560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11561     ac_cv_prog_ac_ct_STRIP="strip"
11562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11563     break 2
11564   fi
11565 done
11566 done
11567 IFS=$as_save_IFS
11568
11569 fi
11570 fi
11571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11572 if test -n "$ac_ct_STRIP"; then
11573   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11574 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11575 else
11576   { echo "$as_me:$LINENO: result: no" >&5
11577 echo "${ECHO_T}no" >&6; }
11578 fi
11579
11580   if test "x$ac_ct_STRIP" = x; then
11581     STRIP=":"
11582   else
11583     case $cross_compiling:$ac_tool_warned in
11584 yes:)
11585 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11586 whose name does not start with the host triplet.  If you think this
11587 configuration is useful to you, please write to autoconf@gnu.org." >&5
11588 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11589 whose name does not start with the host triplet.  If you think this
11590 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11591 ac_tool_warned=yes ;;
11592 esac
11593     STRIP=$ac_ct_STRIP
11594   fi
11595 else
11596   STRIP="$ac_cv_prog_STRIP"
11597 fi
11598
11599 # Find a good install program.  We prefer a C program (faster),
11600 # so one script is as good as another.  But avoid the broken or
11601 # incompatible versions:
11602 # SysV /etc/install, /usr/sbin/install
11603 # SunOS /usr/etc/install
11604 # IRIX /sbin/install
11605 # AIX /bin/install
11606 # AmigaOS /C/install, which installs bootblocks on floppy discs
11607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11610 # OS/2's system install, which has a completely different semantic
11611 # ./install, which can be erroneously created by make from ./install.sh.
11612 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11613 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11614 if test -z "$INSTALL"; then
11615 if test "${ac_cv_path_install+set}" = set; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11620 do
11621   IFS=$as_save_IFS
11622   test -z "$as_dir" && as_dir=.
11623   # Account for people who put trailing slashes in PATH elements.
11624 case $as_dir/ in
11625   ./ | .// | /cC/* | \
11626   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11627   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11628   /usr/ucb/* ) ;;
11629   *)
11630     # OSF1 and SCO ODT 3.0 have their own names for install.
11631     # Don't use installbsd from OSF since it installs stuff as root
11632     # by default.
11633     for ac_prog in ginstall scoinst install; do
11634       for ac_exec_ext in '' $ac_executable_extensions; do
11635         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11636           if test $ac_prog = install &&
11637             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11638             # AIX install.  It has an incompatible calling convention.
11639             :
11640           elif test $ac_prog = install &&
11641             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11642             # program-specific install script used by HP pwplus--don't use.
11643             :
11644           else
11645             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11646             break 3
11647           fi
11648         fi
11649       done
11650     done
11651     ;;
11652 esac
11653 done
11654 IFS=$as_save_IFS
11655
11656
11657 fi
11658   if test "${ac_cv_path_install+set}" = set; then
11659     INSTALL=$ac_cv_path_install
11660   else
11661     # As a last resort, use the slow shell script.  Don't cache a
11662     # value for INSTALL within a source directory, because that will
11663     # break other packages using the cache if that directory is
11664     # removed, or if the value is a relative name.
11665     INSTALL=$ac_install_sh
11666   fi
11667 fi
11668 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11669 echo "${ECHO_T}$INSTALL" >&6; }
11670
11671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11672 # It thinks the first close brace ends the variable substitution.
11673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11674
11675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11676
11677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11678
11679 # See if we need a separate native compiler.
11680 if test $cross_compiling = no; then
11681   BUILD_CC="$CC"
11682
11683 else
11684   for ac_prog in gcc cc
11685 do
11686   # Extract the first word of "$ac_prog", so it can be a program name with args.
11687 set dummy $ac_prog; ac_word=$2
11688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11691   echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693   if test -n "$BUILD_CC"; then
11694   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11695 else
11696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697 for as_dir in $PATH
11698 do
11699   IFS=$as_save_IFS
11700   test -z "$as_dir" && as_dir=.
11701   for ac_exec_ext in '' $ac_executable_extensions; do
11702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11703     ac_cv_prog_BUILD_CC="$ac_prog"
11704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11705     break 2
11706   fi
11707 done
11708 done
11709 IFS=$as_save_IFS
11710
11711 fi
11712 fi
11713 BUILD_CC=$ac_cv_prog_BUILD_CC
11714 if test -n "$BUILD_CC"; then
11715   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11716 echo "${ECHO_T}$BUILD_CC" >&6; }
11717 else
11718   { echo "$as_me:$LINENO: result: no" >&5
11719 echo "${ECHO_T}no" >&6; }
11720 fi
11721
11722
11723   test -n "$BUILD_CC" && break
11724 done
11725
11726 fi
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760 for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h sys/syscall.h net/if_dl.h netinet/in.h utime.h
11761 do
11762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767   echo $ECHO_N "(cached) $ECHO_C" >&6
11768 fi
11769 ac_res=`eval echo '${'$as_ac_Header'}'`
11770                { echo "$as_me:$LINENO: result: $ac_res" >&5
11771 echo "${ECHO_T}$ac_res" >&6; }
11772 else
11773   # Is the header compilable?
11774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h.  */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h.  */
11782 $ac_includes_default
11783 #include <$ac_header>
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792   (eval "$ac_compile") 2>conftest.er1
11793   ac_status=$?
11794   grep -v '^ *+' conftest.er1 >conftest.err
11795   rm -f conftest.er1
11796   cat conftest.err >&5
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); } && {
11799          test -z "$ac_c_werror_flag" ||
11800          test ! -s conftest.err
11801        } && test -s conftest.$ac_objext; then
11802   ac_header_compiler=yes
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807         ac_header_compiler=no
11808 fi
11809
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11812 echo "${ECHO_T}$ac_header_compiler" >&6; }
11813
11814 # Is the header present?
11815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11823 #include <$ac_header>
11824 _ACEOF
11825 if { (ac_try="$ac_cpp conftest.$ac_ext"
11826 case "(($ac_try" in
11827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828   *) ac_try_echo=$ac_try;;
11829 esac
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11832   ac_status=$?
11833   grep -v '^ *+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } >/dev/null && {
11838          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11839          test ! -s conftest.err
11840        }; then
11841   ac_header_preproc=yes
11842 else
11843   echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846   ac_header_preproc=no
11847 fi
11848
11849 rm -f conftest.err conftest.$ac_ext
11850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11851 echo "${ECHO_T}$ac_header_preproc" >&6; }
11852
11853 # So?  What about this header?
11854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11855   yes:no: )
11856     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11860     ac_header_preproc=yes
11861     ;;
11862   no:yes:* )
11863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11865     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11866 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11867     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11869     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11870 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11873     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11875
11876     ;;
11877 esac
11878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11881   echo $ECHO_N "(cached) $ECHO_C" >&6
11882 else
11883   eval "$as_ac_Header=\$ac_header_preproc"
11884 fi
11885 ac_res=`eval echo '${'$as_ac_Header'}'`
11886                { echo "$as_me:$LINENO: result: $ac_res" >&5
11887 echo "${ECHO_T}$ac_res" >&6; }
11888
11889 fi
11890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11891   cat >>confdefs.h <<_ACEOF
11892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11893 _ACEOF
11894
11895 fi
11896
11897 done
11898
11899
11900
11901 for ac_header in sys/disk.h sys/mount.h
11902 do
11903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907   echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909   cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915
11916 #if HAVE_SYS_QUEUE_H
11917 #include <sys/queue.h>
11918 #endif
11919
11920
11921 #include <$ac_header>
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930   (eval "$ac_compile") 2>conftest.er1
11931   ac_status=$?
11932   grep -v '^ *+' conftest.er1 >conftest.err
11933   rm -f conftest.er1
11934   cat conftest.err >&5
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } && {
11937          test -z "$ac_c_werror_flag" ||
11938          test ! -s conftest.err
11939        } && test -s conftest.$ac_objext; then
11940   eval "$as_ac_Header=yes"
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945         eval "$as_ac_Header=no"
11946 fi
11947
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 fi
11950 ac_res=`eval echo '${'$as_ac_Header'}'`
11951                { echo "$as_me:$LINENO: result: $ac_res" >&5
11952 echo "${ECHO_T}$ac_res" >&6; }
11953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954   cat >>confdefs.h <<_ACEOF
11955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 _ACEOF
11957
11958 fi
11959
11960 done
11961
11962
11963 for ac_header in net/if.h
11964 do
11965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h.  */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h.  */
11977
11978 #if HAVE_SYS_TYPES_H
11979 #include <sys/types.h>
11980 #endif
11981 #if HAVE_SYS_SOCKET
11982 #include <sys/socket.h>
11983 #endif
11984
11985
11986 #include <$ac_header>
11987 _ACEOF
11988 rm -f conftest.$ac_objext
11989 if { (ac_try="$ac_compile"
11990 case "(($ac_try" in
11991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992   *) ac_try_echo=$ac_try;;
11993 esac
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995   (eval "$ac_compile") 2>conftest.er1
11996   ac_status=$?
11997   grep -v '^ *+' conftest.er1 >conftest.err
11998   rm -f conftest.er1
11999   cat conftest.err >&5
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); } && {
12002          test -z "$ac_c_werror_flag" ||
12003          test ! -s conftest.err
12004        } && test -s conftest.$ac_objext; then
12005   eval "$as_ac_Header=yes"
12006 else
12007   echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12009
12010         eval "$as_ac_Header=no"
12011 fi
12012
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 fi
12015 ac_res=`eval echo '${'$as_ac_Header'}'`
12016                { echo "$as_me:$LINENO: result: $ac_res" >&5
12017 echo "${ECHO_T}$ac_res" >&6; }
12018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12019   cat >>confdefs.h <<_ACEOF
12020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12021 _ACEOF
12022
12023 fi
12024
12025 done
12026
12027
12028 for ac_func in vprintf
12029 do
12030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12044 #define $ac_func innocuous_$ac_func
12045
12046 /* System header to define __stub macros and hopefully few prototypes,
12047     which can conflict with char $ac_func (); below.
12048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049     <limits.h> exists even on freestanding compilers.  */
12050
12051 #ifdef __STDC__
12052 # include <limits.h>
12053 #else
12054 # include <assert.h>
12055 #endif
12056
12057 #undef $ac_func
12058
12059 /* Override any GCC internal prototype to avoid an error.
12060    Use char because int might match the return type of a GCC
12061    builtin and then its argument prototype would still apply.  */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char $ac_func ();
12066 /* The GNU C library defines this for functions which it implements
12067     to always fail with ENOSYS.  Some functions are actually named
12068     something starting with __ and the normal name is an alias.  */
12069 #if defined __stub_$ac_func || defined __stub___$ac_func
12070 choke me
12071 #endif
12072
12073 int
12074 main ()
12075 {
12076 return $ac_func ();
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (ac_try="$ac_link"
12083 case "(($ac_try" in
12084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085   *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088   (eval "$ac_link") 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } && {
12095          test -z "$ac_c_werror_flag" ||
12096          test ! -s conftest.err
12097        } && test -s conftest$ac_exeext &&
12098        $as_test_x conftest$ac_exeext; then
12099   eval "$as_ac_var=yes"
12100 else
12101   echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12103
12104         eval "$as_ac_var=no"
12105 fi
12106
12107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12108       conftest$ac_exeext conftest.$ac_ext
12109 fi
12110 ac_res=`eval echo '${'$as_ac_var'}'`
12111                { echo "$as_me:$LINENO: result: $ac_res" >&5
12112 echo "${ECHO_T}$ac_res" >&6; }
12113 if test `eval echo '${'$as_ac_var'}'` = yes; then
12114   cat >>confdefs.h <<_ACEOF
12115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12116 _ACEOF
12117
12118 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12119 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12120 if test "${ac_cv_func__doprnt+set}" = set; then
12121   echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123   cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h.  */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h.  */
12129 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12131 #define _doprnt innocuous__doprnt
12132
12133 /* System header to define __stub macros and hopefully few prototypes,
12134     which can conflict with char _doprnt (); below.
12135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12136     <limits.h> exists even on freestanding compilers.  */
12137
12138 #ifdef __STDC__
12139 # include <limits.h>
12140 #else
12141 # include <assert.h>
12142 #endif
12143
12144 #undef _doprnt
12145
12146 /* Override any GCC internal prototype to avoid an error.
12147    Use char because int might match the return type of a GCC
12148    builtin and then its argument prototype would still apply.  */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char _doprnt ();
12153 /* The GNU C library defines this for functions which it implements
12154     to always fail with ENOSYS.  Some functions are actually named
12155     something starting with __ and the normal name is an alias.  */
12156 #if defined __stub__doprnt || defined __stub____doprnt
12157 choke me
12158 #endif
12159
12160 int
12161 main ()
12162 {
12163 return _doprnt ();
12164   ;
12165   return 0;
12166 }
12167 _ACEOF
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (ac_try="$ac_link"
12170 case "(($ac_try" in
12171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172   *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175   (eval "$ac_link") 2>conftest.er1
12176   ac_status=$?
12177   grep -v '^ *+' conftest.er1 >conftest.err
12178   rm -f conftest.er1
12179   cat conftest.err >&5
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } && {
12182          test -z "$ac_c_werror_flag" ||
12183          test ! -s conftest.err
12184        } && test -s conftest$ac_exeext &&
12185        $as_test_x conftest$ac_exeext; then
12186   ac_cv_func__doprnt=yes
12187 else
12188   echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12190
12191         ac_cv_func__doprnt=no
12192 fi
12193
12194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12195       conftest$ac_exeext conftest.$ac_ext
12196 fi
12197 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12198 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12199 if test $ac_cv_func__doprnt = yes; then
12200
12201 cat >>confdefs.h <<\_ACEOF
12202 #define HAVE_DOPRNT 1
12203 _ACEOF
12204
12205 fi
12206
12207 fi
12208 done
12209
12210
12211 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12212 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12213 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12214   echo $ECHO_N "(cached) $ECHO_C" >&6
12215 else
12216   cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h.  */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h.  */
12222 #include <dirent.h>
12223
12224 int
12225 main ()
12226 {
12227 static struct dirent ac_aggr;
12228 if (ac_aggr.d_reclen)
12229 return 0;
12230   ;
12231   return 0;
12232 }
12233 _ACEOF
12234 rm -f conftest.$ac_objext
12235 if { (ac_try="$ac_compile"
12236 case "(($ac_try" in
12237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238   *) ac_try_echo=$ac_try;;
12239 esac
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241   (eval "$ac_compile") 2>conftest.er1
12242   ac_status=$?
12243   grep -v '^ *+' conftest.er1 >conftest.err
12244   rm -f conftest.er1
12245   cat conftest.err >&5
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); } && {
12248          test -z "$ac_c_werror_flag" ||
12249          test ! -s conftest.err
12250        } && test -s conftest.$ac_objext; then
12251   ac_cv_member_struct_dirent_d_reclen=yes
12252 else
12253   echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255
12256         cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h.  */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h.  */
12262 #include <dirent.h>
12263
12264 int
12265 main ()
12266 {
12267 static struct dirent ac_aggr;
12268 if (sizeof ac_aggr.d_reclen)
12269 return 0;
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (ac_try="$ac_compile"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_compile") 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } && {
12288          test -z "$ac_c_werror_flag" ||
12289          test ! -s conftest.err
12290        } && test -s conftest.$ac_objext; then
12291   ac_cv_member_struct_dirent_d_reclen=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296         ac_cv_member_struct_dirent_d_reclen=no
12297 fi
12298
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300 fi
12301
12302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 fi
12304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12305 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12306 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12307   cat >>confdefs.h <<\_ACEOF
12308 #define HAVE_RECLEN_DIRENT 1
12309 _ACEOF
12310
12311 fi
12312
12313 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12314 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12315 if test "${ac_cv_type_ssize_t+set}" = set; then
12316   echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318   cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h.  */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h.  */
12324 #include <sys/types.h>
12325
12326 typedef ssize_t ac__type_new_;
12327 int
12328 main ()
12329 {
12330 if ((ac__type_new_ *) 0)
12331   return 0;
12332 if (sizeof (ac__type_new_))
12333   return 0;
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 rm -f conftest.$ac_objext
12339 if { (ac_try="$ac_compile"
12340 case "(($ac_try" in
12341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342   *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345   (eval "$ac_compile") 2>conftest.er1
12346   ac_status=$?
12347   grep -v '^ *+' conftest.er1 >conftest.err
12348   rm -f conftest.er1
12349   cat conftest.err >&5
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } && {
12352          test -z "$ac_c_werror_flag" ||
12353          test ! -s conftest.err
12354        } && test -s conftest.$ac_objext; then
12355   ac_cv_type_ssize_t=yes
12356 else
12357   echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360         ac_cv_type_ssize_t=no
12361 fi
12362
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364 fi
12365 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12366 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12367 if test $ac_cv_type_ssize_t = yes; then
12368   cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_TYPE_SSIZE_T 1
12370 _ACEOF
12371
12372 fi
12373
12374 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12375 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12376 if test "${ac_cv_have_decl_llseek+set}" = set; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379   cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385 #include <unistd.h>
12386
12387 int
12388 main ()
12389 {
12390 #ifndef llseek
12391   (void) llseek;
12392 #endif
12393
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext
12399 if { (ac_try="$ac_compile"
12400 case "(($ac_try" in
12401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402   *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405   (eval "$ac_compile") 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } && {
12412          test -z "$ac_c_werror_flag" ||
12413          test ! -s conftest.err
12414        } && test -s conftest.$ac_objext; then
12415   ac_cv_have_decl_llseek=yes
12416 else
12417   echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12419
12420         ac_cv_have_decl_llseek=no
12421 fi
12422
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 fi
12425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12426 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12427 if test $ac_cv_have_decl_llseek = yes; then
12428   cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_LLSEEK_PROTOTYPE 1
12430 _ACEOF
12431
12432 fi
12433
12434 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12435 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12436 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12437   echo $ECHO_N "(cached) $ECHO_C" >&6
12438 else
12439   cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h.  */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h.  */
12445 #define _LARGEFILE_SOURCE
12446                  #define _LARGEFILE64_SOURCE
12447                  #include <unistd.h>
12448
12449 int
12450 main ()
12451 {
12452 #ifndef lseek64
12453   (void) lseek64;
12454 #endif
12455
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 rm -f conftest.$ac_objext
12461 if { (ac_try="$ac_compile"
12462 case "(($ac_try" in
12463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464   *) ac_try_echo=$ac_try;;
12465 esac
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467   (eval "$ac_compile") 2>conftest.er1
12468   ac_status=$?
12469   grep -v '^ *+' conftest.er1 >conftest.err
12470   rm -f conftest.er1
12471   cat conftest.err >&5
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); } && {
12474          test -z "$ac_c_werror_flag" ||
12475          test ! -s conftest.err
12476        } && test -s conftest.$ac_objext; then
12477   ac_cv_have_decl_lseek64=yes
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482         ac_cv_have_decl_lseek64=no
12483 fi
12484
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486 fi
12487 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12488 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12489 if test $ac_cv_have_decl_lseek64 = yes; then
12490   cat >>confdefs.h <<\_ACEOF
12491 #define HAVE_LSEEK64_PROTOTYPE 1
12492 _ACEOF
12493
12494 fi
12495
12496 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12497   # if cross-compiling, with no cached values, just assume something common.
12498   ac_cv_sizeof_short=2
12499   ac_cv_sizeof_int=4
12500   ac_cv_sizeof_long=4
12501   ac_cv_sizeof_long_long=8
12502   { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12503 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12504 fi
12505 { echo "$as_me:$LINENO: checking for short" >&5
12506 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12507 if test "${ac_cv_type_short+set}" = set; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h.  */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h.  */
12516 $ac_includes_default
12517 typedef short ac__type_new_;
12518 int
12519 main ()
12520 {
12521 if ((ac__type_new_ *) 0)
12522   return 0;
12523 if (sizeof (ac__type_new_))
12524   return 0;
12525   ;
12526   return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext
12530 if { (ac_try="$ac_compile"
12531 case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_compile") 2>conftest.er1
12537   ac_status=$?
12538   grep -v '^ *+' conftest.er1 >conftest.err
12539   rm -f conftest.er1
12540   cat conftest.err >&5
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } && {
12543          test -z "$ac_c_werror_flag" ||
12544          test ! -s conftest.err
12545        } && test -s conftest.$ac_objext; then
12546   ac_cv_type_short=yes
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551         ac_cv_type_short=no
12552 fi
12553
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 fi
12556 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12557 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12558
12559 # The cast to long int works around a bug in the HP C Compiler
12560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12562 # This bug is HP SR number 8606223364.
12563 { echo "$as_me:$LINENO: checking size of short" >&5
12564 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12565 if test "${ac_cv_sizeof_short+set}" = set; then
12566   echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568   if test "$cross_compiling" = yes; then
12569   # Depending upon the size, compute the lo and hi bounds.
12570 cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h.  */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h.  */
12576 $ac_includes_default
12577    typedef short ac__type_sizeof_;
12578 int
12579 main ()
12580 {
12581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12582 test_array [0] = 0
12583
12584   ;
12585   return 0;
12586 }
12587 _ACEOF
12588 rm -f conftest.$ac_objext
12589 if { (ac_try="$ac_compile"
12590 case "(($ac_try" in
12591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592   *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595   (eval "$ac_compile") 2>conftest.er1
12596   ac_status=$?
12597   grep -v '^ *+' conftest.er1 >conftest.err
12598   rm -f conftest.er1
12599   cat conftest.err >&5
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } && {
12602          test -z "$ac_c_werror_flag" ||
12603          test ! -s conftest.err
12604        } && test -s conftest.$ac_objext; then
12605   ac_lo=0 ac_mid=0
12606   while :; do
12607     cat >conftest.$ac_ext <<_ACEOF
12608 /* confdefs.h.  */
12609 _ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h.  */
12613 $ac_includes_default
12614    typedef short ac__type_sizeof_;
12615 int
12616 main ()
12617 {
12618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12619 test_array [0] = 0
12620
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 rm -f conftest.$ac_objext
12626 if { (ac_try="$ac_compile"
12627 case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_compile") 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } && {
12639          test -z "$ac_c_werror_flag" ||
12640          test ! -s conftest.err
12641        } && test -s conftest.$ac_objext; then
12642   ac_hi=$ac_mid; break
12643 else
12644   echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647         ac_lo=`expr $ac_mid + 1`
12648                         if test $ac_lo -le $ac_mid; then
12649                           ac_lo= ac_hi=
12650                           break
12651                         fi
12652                         ac_mid=`expr 2 '*' $ac_mid + 1`
12653 fi
12654
12655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12656   done
12657 else
12658   echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661         cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h.  */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h.  */
12667 $ac_includes_default
12668    typedef short ac__type_sizeof_;
12669 int
12670 main ()
12671 {
12672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12673 test_array [0] = 0
12674
12675   ;
12676   return 0;
12677 }
12678 _ACEOF
12679 rm -f conftest.$ac_objext
12680 if { (ac_try="$ac_compile"
12681 case "(($ac_try" in
12682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683   *) ac_try_echo=$ac_try;;
12684 esac
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686   (eval "$ac_compile") 2>conftest.er1
12687   ac_status=$?
12688   grep -v '^ *+' conftest.er1 >conftest.err
12689   rm -f conftest.er1
12690   cat conftest.err >&5
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); } && {
12693          test -z "$ac_c_werror_flag" ||
12694          test ! -s conftest.err
12695        } && test -s conftest.$ac_objext; then
12696   ac_hi=-1 ac_mid=-1
12697   while :; do
12698     cat >conftest.$ac_ext <<_ACEOF
12699 /* confdefs.h.  */
12700 _ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h.  */
12704 $ac_includes_default
12705    typedef short ac__type_sizeof_;
12706 int
12707 main ()
12708 {
12709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12710 test_array [0] = 0
12711
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 rm -f conftest.$ac_objext
12717 if { (ac_try="$ac_compile"
12718 case "(($ac_try" in
12719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720   *) ac_try_echo=$ac_try;;
12721 esac
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723   (eval "$ac_compile") 2>conftest.er1
12724   ac_status=$?
12725   grep -v '^ *+' conftest.er1 >conftest.err
12726   rm -f conftest.er1
12727   cat conftest.err >&5
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); } && {
12730          test -z "$ac_c_werror_flag" ||
12731          test ! -s conftest.err
12732        } && test -s conftest.$ac_objext; then
12733   ac_lo=$ac_mid; break
12734 else
12735   echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738         ac_hi=`expr '(' $ac_mid ')' - 1`
12739                         if test $ac_mid -le $ac_hi; then
12740                           ac_lo= ac_hi=
12741                           break
12742                         fi
12743                         ac_mid=`expr 2 '*' $ac_mid`
12744 fi
12745
12746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747   done
12748 else
12749   echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12751
12752         ac_lo= ac_hi=
12753 fi
12754
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 fi
12757
12758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 # Binary search between lo and hi bounds.
12760 while test "x$ac_lo" != "x$ac_hi"; do
12761   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12762   cat >conftest.$ac_ext <<_ACEOF
12763 /* confdefs.h.  */
12764 _ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h.  */
12768 $ac_includes_default
12769    typedef short ac__type_sizeof_;
12770 int
12771 main ()
12772 {
12773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12774 test_array [0] = 0
12775
12776   ;
12777   return 0;
12778 }
12779 _ACEOF
12780 rm -f conftest.$ac_objext
12781 if { (ac_try="$ac_compile"
12782 case "(($ac_try" in
12783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784   *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787   (eval "$ac_compile") 2>conftest.er1
12788   ac_status=$?
12789   grep -v '^ *+' conftest.er1 >conftest.err
12790   rm -f conftest.er1
12791   cat conftest.err >&5
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); } && {
12794          test -z "$ac_c_werror_flag" ||
12795          test ! -s conftest.err
12796        } && test -s conftest.$ac_objext; then
12797   ac_hi=$ac_mid
12798 else
12799   echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802         ac_lo=`expr '(' $ac_mid ')' + 1`
12803 fi
12804
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 done
12807 case $ac_lo in
12808 ?*) ac_cv_sizeof_short=$ac_lo;;
12809 '') if test "$ac_cv_type_short" = yes; then
12810      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12811 See \`config.log' for more details." >&5
12812 echo "$as_me: error: cannot compute sizeof (short)
12813 See \`config.log' for more details." >&2;}
12814    { (exit 77); exit 77; }; }
12815    else
12816      ac_cv_sizeof_short=0
12817    fi ;;
12818 esac
12819 else
12820   cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826 $ac_includes_default
12827    typedef short ac__type_sizeof_;
12828 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12829 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12830 #include <stdio.h>
12831 #include <stdlib.h>
12832 int
12833 main ()
12834 {
12835
12836   FILE *f = fopen ("conftest.val", "w");
12837   if (! f)
12838     return 1;
12839   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12840     {
12841       long int i = longval ();
12842       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12843         return 1;
12844       fprintf (f, "%ld\n", i);
12845     }
12846   else
12847     {
12848       unsigned long int i = ulongval ();
12849       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12850         return 1;
12851       fprintf (f, "%lu\n", i);
12852     }
12853   return ferror (f) || fclose (f) != 0;
12854
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest$ac_exeext
12860 if { (ac_try="$ac_link"
12861 case "(($ac_try" in
12862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863   *) ac_try_echo=$ac_try;;
12864 esac
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866   (eval "$ac_link") 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12870   { (case "(($ac_try" in
12871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872   *) ac_try_echo=$ac_try;;
12873 esac
12874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12875   (eval "$ac_try") 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); }; }; then
12879   ac_cv_sizeof_short=`cat conftest.val`
12880 else
12881   echo "$as_me: program exited with status $ac_status" >&5
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 ( exit $ac_status )
12886 if test "$ac_cv_type_short" = yes; then
12887      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12888 See \`config.log' for more details." >&5
12889 echo "$as_me: error: cannot compute sizeof (short)
12890 See \`config.log' for more details." >&2;}
12891    { (exit 77); exit 77; }; }
12892    else
12893      ac_cv_sizeof_short=0
12894    fi
12895 fi
12896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12897 fi
12898 rm -f conftest.val
12899 fi
12900 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12901 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12902
12903
12904
12905 cat >>confdefs.h <<_ACEOF
12906 #define SIZEOF_SHORT $ac_cv_sizeof_short
12907 _ACEOF
12908
12909
12910 { echo "$as_me:$LINENO: checking for int" >&5
12911 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12912 if test "${ac_cv_type_int+set}" = set; then
12913   echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915   cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h.  */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h.  */
12921 $ac_includes_default
12922 typedef int ac__type_new_;
12923 int
12924 main ()
12925 {
12926 if ((ac__type_new_ *) 0)
12927   return 0;
12928 if (sizeof (ac__type_new_))
12929   return 0;
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 rm -f conftest.$ac_objext
12935 if { (ac_try="$ac_compile"
12936 case "(($ac_try" in
12937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938   *) ac_try_echo=$ac_try;;
12939 esac
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941   (eval "$ac_compile") 2>conftest.er1
12942   ac_status=$?
12943   grep -v '^ *+' conftest.er1 >conftest.err
12944   rm -f conftest.er1
12945   cat conftest.err >&5
12946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947   (exit $ac_status); } && {
12948          test -z "$ac_c_werror_flag" ||
12949          test ! -s conftest.err
12950        } && test -s conftest.$ac_objext; then
12951   ac_cv_type_int=yes
12952 else
12953   echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956         ac_cv_type_int=no
12957 fi
12958
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 fi
12961 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12962 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12963
12964 # The cast to long int works around a bug in the HP C Compiler
12965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12967 # This bug is HP SR number 8606223364.
12968 { echo "$as_me:$LINENO: checking size of int" >&5
12969 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12970 if test "${ac_cv_sizeof_int+set}" = set; then
12971   echo $ECHO_N "(cached) $ECHO_C" >&6
12972 else
12973   if test "$cross_compiling" = yes; then
12974   # Depending upon the size, compute the lo and hi bounds.
12975 cat >conftest.$ac_ext <<_ACEOF
12976 /* confdefs.h.  */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h.  */
12981 $ac_includes_default
12982    typedef int ac__type_sizeof_;
12983 int
12984 main ()
12985 {
12986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12987 test_array [0] = 0
12988
12989   ;
12990   return 0;
12991 }
12992 _ACEOF
12993 rm -f conftest.$ac_objext
12994 if { (ac_try="$ac_compile"
12995 case "(($ac_try" in
12996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997   *) ac_try_echo=$ac_try;;
12998 esac
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000   (eval "$ac_compile") 2>conftest.er1
13001   ac_status=$?
13002   grep -v '^ *+' conftest.er1 >conftest.err
13003   rm -f conftest.er1
13004   cat conftest.err >&5
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); } && {
13007          test -z "$ac_c_werror_flag" ||
13008          test ! -s conftest.err
13009        } && test -s conftest.$ac_objext; then
13010   ac_lo=0 ac_mid=0
13011   while :; do
13012     cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h.  */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h.  */
13018 $ac_includes_default
13019    typedef int ac__type_sizeof_;
13020 int
13021 main ()
13022 {
13023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13024 test_array [0] = 0
13025
13026   ;
13027   return 0;
13028 }
13029 _ACEOF
13030 rm -f conftest.$ac_objext
13031 if { (ac_try="$ac_compile"
13032 case "(($ac_try" in
13033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034   *) ac_try_echo=$ac_try;;
13035 esac
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037   (eval "$ac_compile") 2>conftest.er1
13038   ac_status=$?
13039   grep -v '^ *+' conftest.er1 >conftest.err
13040   rm -f conftest.er1
13041   cat conftest.err >&5
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); } && {
13044          test -z "$ac_c_werror_flag" ||
13045          test ! -s conftest.err
13046        } && test -s conftest.$ac_objext; then
13047   ac_hi=$ac_mid; break
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052         ac_lo=`expr $ac_mid + 1`
13053                         if test $ac_lo -le $ac_mid; then
13054                           ac_lo= ac_hi=
13055                           break
13056                         fi
13057                         ac_mid=`expr 2 '*' $ac_mid + 1`
13058 fi
13059
13060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13061   done
13062 else
13063   echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13065
13066         cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h.  */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h.  */
13072 $ac_includes_default
13073    typedef int ac__type_sizeof_;
13074 int
13075 main ()
13076 {
13077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13078 test_array [0] = 0
13079
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 rm -f conftest.$ac_objext
13085 if { (ac_try="$ac_compile"
13086 case "(($ac_try" in
13087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088   *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091   (eval "$ac_compile") 2>conftest.er1
13092   ac_status=$?
13093   grep -v '^ *+' conftest.er1 >conftest.err
13094   rm -f conftest.er1
13095   cat conftest.err >&5
13096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); } && {
13098          test -z "$ac_c_werror_flag" ||
13099          test ! -s conftest.err
13100        } && test -s conftest.$ac_objext; then
13101   ac_hi=-1 ac_mid=-1
13102   while :; do
13103     cat >conftest.$ac_ext <<_ACEOF
13104 /* confdefs.h.  */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h.  */
13109 $ac_includes_default
13110    typedef int ac__type_sizeof_;
13111 int
13112 main ()
13113 {
13114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13115 test_array [0] = 0
13116
13117   ;
13118   return 0;
13119 }
13120 _ACEOF
13121 rm -f conftest.$ac_objext
13122 if { (ac_try="$ac_compile"
13123 case "(($ac_try" in
13124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125   *) ac_try_echo=$ac_try;;
13126 esac
13127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128   (eval "$ac_compile") 2>conftest.er1
13129   ac_status=$?
13130   grep -v '^ *+' conftest.er1 >conftest.err
13131   rm -f conftest.er1
13132   cat conftest.err >&5
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); } && {
13135          test -z "$ac_c_werror_flag" ||
13136          test ! -s conftest.err
13137        } && test -s conftest.$ac_objext; then
13138   ac_lo=$ac_mid; break
13139 else
13140   echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13142
13143         ac_hi=`expr '(' $ac_mid ')' - 1`
13144                         if test $ac_mid -le $ac_hi; then
13145                           ac_lo= ac_hi=
13146                           break
13147                         fi
13148                         ac_mid=`expr 2 '*' $ac_mid`
13149 fi
13150
13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152   done
13153 else
13154   echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13156
13157         ac_lo= ac_hi=
13158 fi
13159
13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161 fi
13162
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 # Binary search between lo and hi bounds.
13165 while test "x$ac_lo" != "x$ac_hi"; do
13166   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13167   cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h.  */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h.  */
13173 $ac_includes_default
13174    typedef int ac__type_sizeof_;
13175 int
13176 main ()
13177 {
13178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13179 test_array [0] = 0
13180
13181   ;
13182   return 0;
13183 }
13184 _ACEOF
13185 rm -f conftest.$ac_objext
13186 if { (ac_try="$ac_compile"
13187 case "(($ac_try" in
13188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189   *) ac_try_echo=$ac_try;;
13190 esac
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192   (eval "$ac_compile") 2>conftest.er1
13193   ac_status=$?
13194   grep -v '^ *+' conftest.er1 >conftest.err
13195   rm -f conftest.er1
13196   cat conftest.err >&5
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); } && {
13199          test -z "$ac_c_werror_flag" ||
13200          test ! -s conftest.err
13201        } && test -s conftest.$ac_objext; then
13202   ac_hi=$ac_mid
13203 else
13204   echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13206
13207         ac_lo=`expr '(' $ac_mid ')' + 1`
13208 fi
13209
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 done
13212 case $ac_lo in
13213 ?*) ac_cv_sizeof_int=$ac_lo;;
13214 '') if test "$ac_cv_type_int" = yes; then
13215      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13216 See \`config.log' for more details." >&5
13217 echo "$as_me: error: cannot compute sizeof (int)
13218 See \`config.log' for more details." >&2;}
13219    { (exit 77); exit 77; }; }
13220    else
13221      ac_cv_sizeof_int=0
13222    fi ;;
13223 esac
13224 else
13225   cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231 $ac_includes_default
13232    typedef int ac__type_sizeof_;
13233 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13234 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13235 #include <stdio.h>
13236 #include <stdlib.h>
13237 int
13238 main ()
13239 {
13240
13241   FILE *f = fopen ("conftest.val", "w");
13242   if (! f)
13243     return 1;
13244   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13245     {
13246       long int i = longval ();
13247       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13248         return 1;
13249       fprintf (f, "%ld\n", i);
13250     }
13251   else
13252     {
13253       unsigned long int i = ulongval ();
13254       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13255         return 1;
13256       fprintf (f, "%lu\n", i);
13257     }
13258   return ferror (f) || fclose (f) != 0;
13259
13260   ;
13261   return 0;
13262 }
13263 _ACEOF
13264 rm -f conftest$ac_exeext
13265 if { (ac_try="$ac_link"
13266 case "(($ac_try" in
13267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268   *) ac_try_echo=$ac_try;;
13269 esac
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271   (eval "$ac_link") 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13275   { (case "(($ac_try" in
13276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277   *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280   (eval "$ac_try") 2>&5
13281   ac_status=$?
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); }; }; then
13284   ac_cv_sizeof_int=`cat conftest.val`
13285 else
13286   echo "$as_me: program exited with status $ac_status" >&5
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290 ( exit $ac_status )
13291 if test "$ac_cv_type_int" = yes; then
13292      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13293 See \`config.log' for more details." >&5
13294 echo "$as_me: error: cannot compute sizeof (int)
13295 See \`config.log' for more details." >&2;}
13296    { (exit 77); exit 77; }; }
13297    else
13298      ac_cv_sizeof_int=0
13299    fi
13300 fi
13301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13302 fi
13303 rm -f conftest.val
13304 fi
13305 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13306 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13307
13308
13309
13310 cat >>confdefs.h <<_ACEOF
13311 #define SIZEOF_INT $ac_cv_sizeof_int
13312 _ACEOF
13313
13314
13315 { echo "$as_me:$LINENO: checking for long" >&5
13316 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13317 if test "${ac_cv_type_long+set}" = set; then
13318   echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320   cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h.  */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h.  */
13326 $ac_includes_default
13327 typedef long ac__type_new_;
13328 int
13329 main ()
13330 {
13331 if ((ac__type_new_ *) 0)
13332   return 0;
13333 if (sizeof (ac__type_new_))
13334   return 0;
13335   ;
13336   return 0;
13337 }
13338 _ACEOF
13339 rm -f conftest.$ac_objext
13340 if { (ac_try="$ac_compile"
13341 case "(($ac_try" in
13342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343   *) ac_try_echo=$ac_try;;
13344 esac
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346   (eval "$ac_compile") 2>conftest.er1
13347   ac_status=$?
13348   grep -v '^ *+' conftest.er1 >conftest.err
13349   rm -f conftest.er1
13350   cat conftest.err >&5
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); } && {
13353          test -z "$ac_c_werror_flag" ||
13354          test ! -s conftest.err
13355        } && test -s conftest.$ac_objext; then
13356   ac_cv_type_long=yes
13357 else
13358   echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361         ac_cv_type_long=no
13362 fi
13363
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365 fi
13366 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13367 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13368
13369 # The cast to long int works around a bug in the HP C Compiler
13370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13372 # This bug is HP SR number 8606223364.
13373 { echo "$as_me:$LINENO: checking size of long" >&5
13374 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13375 if test "${ac_cv_sizeof_long+set}" = set; then
13376   echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378   if test "$cross_compiling" = yes; then
13379   # Depending upon the size, compute the lo and hi bounds.
13380 cat >conftest.$ac_ext <<_ACEOF
13381 /* confdefs.h.  */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h.  */
13386 $ac_includes_default
13387    typedef long ac__type_sizeof_;
13388 int
13389 main ()
13390 {
13391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13392 test_array [0] = 0
13393
13394   ;
13395   return 0;
13396 }
13397 _ACEOF
13398 rm -f conftest.$ac_objext
13399 if { (ac_try="$ac_compile"
13400 case "(($ac_try" in
13401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402   *) ac_try_echo=$ac_try;;
13403 esac
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405   (eval "$ac_compile") 2>conftest.er1
13406   ac_status=$?
13407   grep -v '^ *+' conftest.er1 >conftest.err
13408   rm -f conftest.er1
13409   cat conftest.err >&5
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } && {
13412          test -z "$ac_c_werror_flag" ||
13413          test ! -s conftest.err
13414        } && test -s conftest.$ac_objext; then
13415   ac_lo=0 ac_mid=0
13416   while :; do
13417     cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 $ac_includes_default
13424    typedef long ac__type_sizeof_;
13425 int
13426 main ()
13427 {
13428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13429 test_array [0] = 0
13430
13431   ;
13432   return 0;
13433 }
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (ac_try="$ac_compile"
13437 case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_compile") 2>conftest.er1
13443   ac_status=$?
13444   grep -v '^ *+' conftest.er1 >conftest.err
13445   rm -f conftest.er1
13446   cat conftest.err >&5
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } && {
13449          test -z "$ac_c_werror_flag" ||
13450          test ! -s conftest.err
13451        } && test -s conftest.$ac_objext; then
13452   ac_hi=$ac_mid; break
13453 else
13454   echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13456
13457         ac_lo=`expr $ac_mid + 1`
13458                         if test $ac_lo -le $ac_mid; then
13459                           ac_lo= ac_hi=
13460                           break
13461                         fi
13462                         ac_mid=`expr 2 '*' $ac_mid + 1`
13463 fi
13464
13465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13466   done
13467 else
13468   echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471         cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h.  */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h.  */
13477 $ac_includes_default
13478    typedef long ac__type_sizeof_;
13479 int
13480 main ()
13481 {
13482 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13483 test_array [0] = 0
13484
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493   *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496   (eval "$ac_compile") 2>conftest.er1
13497   ac_status=$?
13498   grep -v '^ *+' conftest.er1 >conftest.err
13499   rm -f conftest.er1
13500   cat conftest.err >&5
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); } && {
13503          test -z "$ac_c_werror_flag" ||
13504          test ! -s conftest.err
13505        } && test -s conftest.$ac_objext; then
13506   ac_hi=-1 ac_mid=-1
13507   while :; do
13508     cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h.  */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h.  */
13514 $ac_includes_default
13515    typedef long ac__type_sizeof_;
13516 int
13517 main ()
13518 {
13519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13520 test_array [0] = 0
13521
13522   ;
13523   return 0;
13524 }
13525 _ACEOF
13526 rm -f conftest.$ac_objext
13527 if { (ac_try="$ac_compile"
13528 case "(($ac_try" in
13529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530   *) ac_try_echo=$ac_try;;
13531 esac
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533   (eval "$ac_compile") 2>conftest.er1
13534   ac_status=$?
13535   grep -v '^ *+' conftest.er1 >conftest.err
13536   rm -f conftest.er1
13537   cat conftest.err >&5
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); } && {
13540          test -z "$ac_c_werror_flag" ||
13541          test ! -s conftest.err
13542        } && test -s conftest.$ac_objext; then
13543   ac_lo=$ac_mid; break
13544 else
13545   echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13547
13548         ac_hi=`expr '(' $ac_mid ')' - 1`
13549                         if test $ac_mid -le $ac_hi; then
13550                           ac_lo= ac_hi=
13551                           break
13552                         fi
13553                         ac_mid=`expr 2 '*' $ac_mid`
13554 fi
13555
13556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557   done
13558 else
13559   echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13561
13562         ac_lo= ac_hi=
13563 fi
13564
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 fi
13567
13568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569 # Binary search between lo and hi bounds.
13570 while test "x$ac_lo" != "x$ac_hi"; do
13571   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13572   cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578 $ac_includes_default
13579    typedef long ac__type_sizeof_;
13580 int
13581 main ()
13582 {
13583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13584 test_array [0] = 0
13585
13586   ;
13587   return 0;
13588 }
13589 _ACEOF
13590 rm -f conftest.$ac_objext
13591 if { (ac_try="$ac_compile"
13592 case "(($ac_try" in
13593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594   *) ac_try_echo=$ac_try;;
13595 esac
13596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13597   (eval "$ac_compile") 2>conftest.er1
13598   ac_status=$?
13599   grep -v '^ *+' conftest.er1 >conftest.err
13600   rm -f conftest.er1
13601   cat conftest.err >&5
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); } && {
13604          test -z "$ac_c_werror_flag" ||
13605          test ! -s conftest.err
13606        } && test -s conftest.$ac_objext; then
13607   ac_hi=$ac_mid
13608 else
13609   echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13611
13612         ac_lo=`expr '(' $ac_mid ')' + 1`
13613 fi
13614
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 done
13617 case $ac_lo in
13618 ?*) ac_cv_sizeof_long=$ac_lo;;
13619 '') if test "$ac_cv_type_long" = yes; then
13620      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13621 See \`config.log' for more details." >&5
13622 echo "$as_me: error: cannot compute sizeof (long)
13623 See \`config.log' for more details." >&2;}
13624    { (exit 77); exit 77; }; }
13625    else
13626      ac_cv_sizeof_long=0
13627    fi ;;
13628 esac
13629 else
13630   cat >conftest.$ac_ext <<_ACEOF
13631 /* confdefs.h.  */
13632 _ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h.  */
13636 $ac_includes_default
13637    typedef long ac__type_sizeof_;
13638 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13639 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13640 #include <stdio.h>
13641 #include <stdlib.h>
13642 int
13643 main ()
13644 {
13645
13646   FILE *f = fopen ("conftest.val", "w");
13647   if (! f)
13648     return 1;
13649   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13650     {
13651       long int i = longval ();
13652       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13653         return 1;
13654       fprintf (f, "%ld\n", i);
13655     }
13656   else
13657     {
13658       unsigned long int i = ulongval ();
13659       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13660         return 1;
13661       fprintf (f, "%lu\n", i);
13662     }
13663   return ferror (f) || fclose (f) != 0;
13664
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 rm -f conftest$ac_exeext
13670 if { (ac_try="$ac_link"
13671 case "(($ac_try" in
13672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673   *) ac_try_echo=$ac_try;;
13674 esac
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676   (eval "$ac_link") 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13680   { (case "(($ac_try" in
13681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682   *) ac_try_echo=$ac_try;;
13683 esac
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685   (eval "$ac_try") 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; }; then
13689   ac_cv_sizeof_long=`cat conftest.val`
13690 else
13691   echo "$as_me: program exited with status $ac_status" >&5
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13694
13695 ( exit $ac_status )
13696 if test "$ac_cv_type_long" = yes; then
13697      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13698 See \`config.log' for more details." >&5
13699 echo "$as_me: error: cannot compute sizeof (long)
13700 See \`config.log' for more details." >&2;}
13701    { (exit 77); exit 77; }; }
13702    else
13703      ac_cv_sizeof_long=0
13704    fi
13705 fi
13706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13707 fi
13708 rm -f conftest.val
13709 fi
13710 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13711 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13712
13713
13714
13715 cat >>confdefs.h <<_ACEOF
13716 #define SIZEOF_LONG $ac_cv_sizeof_long
13717 _ACEOF
13718
13719
13720 { echo "$as_me:$LINENO: checking for long long" >&5
13721 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13722 if test "${ac_cv_type_long_long+set}" = set; then
13723   echo $ECHO_N "(cached) $ECHO_C" >&6
13724 else
13725   cat >conftest.$ac_ext <<_ACEOF
13726 /* confdefs.h.  */
13727 _ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h.  */
13731 $ac_includes_default
13732 typedef long long ac__type_new_;
13733 int
13734 main ()
13735 {
13736 if ((ac__type_new_ *) 0)
13737   return 0;
13738 if (sizeof (ac__type_new_))
13739   return 0;
13740   ;
13741   return 0;
13742 }
13743 _ACEOF
13744 rm -f conftest.$ac_objext
13745 if { (ac_try="$ac_compile"
13746 case "(($ac_try" in
13747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748   *) ac_try_echo=$ac_try;;
13749 esac
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751   (eval "$ac_compile") 2>conftest.er1
13752   ac_status=$?
13753   grep -v '^ *+' conftest.er1 >conftest.err
13754   rm -f conftest.er1
13755   cat conftest.err >&5
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } && {
13758          test -z "$ac_c_werror_flag" ||
13759          test ! -s conftest.err
13760        } && test -s conftest.$ac_objext; then
13761   ac_cv_type_long_long=yes
13762 else
13763   echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13765
13766         ac_cv_type_long_long=no
13767 fi
13768
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13770 fi
13771 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13772 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13773
13774 # The cast to long int works around a bug in the HP C Compiler
13775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13777 # This bug is HP SR number 8606223364.
13778 { echo "$as_me:$LINENO: checking size of long long" >&5
13779 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13780 if test "${ac_cv_sizeof_long_long+set}" = set; then
13781   echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783   if test "$cross_compiling" = yes; then
13784   # Depending upon the size, compute the lo and hi bounds.
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791 $ac_includes_default
13792    typedef long long ac__type_sizeof_;
13793 int
13794 main ()
13795 {
13796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13797 test_array [0] = 0
13798
13799   ;
13800   return 0;
13801 }
13802 _ACEOF
13803 rm -f conftest.$ac_objext
13804 if { (ac_try="$ac_compile"
13805 case "(($ac_try" in
13806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807   *) ac_try_echo=$ac_try;;
13808 esac
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810   (eval "$ac_compile") 2>conftest.er1
13811   ac_status=$?
13812   grep -v '^ *+' conftest.er1 >conftest.err
13813   rm -f conftest.er1
13814   cat conftest.err >&5
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); } && {
13817          test -z "$ac_c_werror_flag" ||
13818          test ! -s conftest.err
13819        } && test -s conftest.$ac_objext; then
13820   ac_lo=0 ac_mid=0
13821   while :; do
13822     cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h.  */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h.  */
13828 $ac_includes_default
13829    typedef long long ac__type_sizeof_;
13830 int
13831 main ()
13832 {
13833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13834 test_array [0] = 0
13835
13836   ;
13837   return 0;
13838 }
13839 _ACEOF
13840 rm -f conftest.$ac_objext
13841 if { (ac_try="$ac_compile"
13842 case "(($ac_try" in
13843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844   *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847   (eval "$ac_compile") 2>conftest.er1
13848   ac_status=$?
13849   grep -v '^ *+' conftest.er1 >conftest.err
13850   rm -f conftest.er1
13851   cat conftest.err >&5
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } && {
13854          test -z "$ac_c_werror_flag" ||
13855          test ! -s conftest.err
13856        } && test -s conftest.$ac_objext; then
13857   ac_hi=$ac_mid; break
13858 else
13859   echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13861
13862         ac_lo=`expr $ac_mid + 1`
13863                         if test $ac_lo -le $ac_mid; then
13864                           ac_lo= ac_hi=
13865                           break
13866                         fi
13867                         ac_mid=`expr 2 '*' $ac_mid + 1`
13868 fi
13869
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871   done
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876         cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h.  */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h.  */
13882 $ac_includes_default
13883    typedef long long ac__type_sizeof_;
13884 int
13885 main ()
13886 {
13887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13888 test_array [0] = 0
13889
13890   ;
13891   return 0;
13892 }
13893 _ACEOF
13894 rm -f conftest.$ac_objext
13895 if { (ac_try="$ac_compile"
13896 case "(($ac_try" in
13897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898   *) ac_try_echo=$ac_try;;
13899 esac
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901   (eval "$ac_compile") 2>conftest.er1
13902   ac_status=$?
13903   grep -v '^ *+' conftest.er1 >conftest.err
13904   rm -f conftest.er1
13905   cat conftest.err >&5
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); } && {
13908          test -z "$ac_c_werror_flag" ||
13909          test ! -s conftest.err
13910        } && test -s conftest.$ac_objext; then
13911   ac_hi=-1 ac_mid=-1
13912   while :; do
13913     cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h.  */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h.  */
13919 $ac_includes_default
13920    typedef long long ac__type_sizeof_;
13921 int
13922 main ()
13923 {
13924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13925 test_array [0] = 0
13926
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (ac_try="$ac_compile"
13933 case "(($ac_try" in
13934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935   *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938   (eval "$ac_compile") 2>conftest.er1
13939   ac_status=$?
13940   grep -v '^ *+' conftest.er1 >conftest.err
13941   rm -f conftest.er1
13942   cat conftest.err >&5
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } && {
13945          test -z "$ac_c_werror_flag" ||
13946          test ! -s conftest.err
13947        } && test -s conftest.$ac_objext; then
13948   ac_lo=$ac_mid; break
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953         ac_hi=`expr '(' $ac_mid ')' - 1`
13954                         if test $ac_mid -le $ac_hi; then
13955                           ac_lo= ac_hi=
13956                           break
13957                         fi
13958                         ac_mid=`expr 2 '*' $ac_mid`
13959 fi
13960
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962   done
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967         ac_lo= ac_hi=
13968 fi
13969
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971 fi
13972
13973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13974 # Binary search between lo and hi bounds.
13975 while test "x$ac_lo" != "x$ac_hi"; do
13976   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13977   cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983 $ac_includes_default
13984    typedef long long ac__type_sizeof_;
13985 int
13986 main ()
13987 {
13988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13989 test_array [0] = 0
13990
13991   ;
13992   return 0;
13993 }
13994 _ACEOF
13995 rm -f conftest.$ac_objext
13996 if { (ac_try="$ac_compile"
13997 case "(($ac_try" in
13998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999   *) ac_try_echo=$ac_try;;
14000 esac
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002   (eval "$ac_compile") 2>conftest.er1
14003   ac_status=$?
14004   grep -v '^ *+' conftest.er1 >conftest.err
14005   rm -f conftest.er1
14006   cat conftest.err >&5
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); } && {
14009          test -z "$ac_c_werror_flag" ||
14010          test ! -s conftest.err
14011        } && test -s conftest.$ac_objext; then
14012   ac_hi=$ac_mid
14013 else
14014   echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14016
14017         ac_lo=`expr '(' $ac_mid ')' + 1`
14018 fi
14019
14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14021 done
14022 case $ac_lo in
14023 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14024 '') if test "$ac_cv_type_long_long" = yes; then
14025      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14026 See \`config.log' for more details." >&5
14027 echo "$as_me: error: cannot compute sizeof (long long)
14028 See \`config.log' for more details." >&2;}
14029    { (exit 77); exit 77; }; }
14030    else
14031      ac_cv_sizeof_long_long=0
14032    fi ;;
14033 esac
14034 else
14035   cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h.  */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h.  */
14041 $ac_includes_default
14042    typedef long long ac__type_sizeof_;
14043 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14044 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14045 #include <stdio.h>
14046 #include <stdlib.h>
14047 int
14048 main ()
14049 {
14050
14051   FILE *f = fopen ("conftest.val", "w");
14052   if (! f)
14053     return 1;
14054   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14055     {
14056       long int i = longval ();
14057       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14058         return 1;
14059       fprintf (f, "%ld\n", i);
14060     }
14061   else
14062     {
14063       unsigned long int i = ulongval ();
14064       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14065         return 1;
14066       fprintf (f, "%lu\n", i);
14067     }
14068   return ferror (f) || fclose (f) != 0;
14069
14070   ;
14071   return 0;
14072 }
14073 _ACEOF
14074 rm -f conftest$ac_exeext
14075 if { (ac_try="$ac_link"
14076 case "(($ac_try" in
14077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078   *) ac_try_echo=$ac_try;;
14079 esac
14080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081   (eval "$ac_link") 2>&5
14082   ac_status=$?
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14085   { (case "(($ac_try" in
14086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087   *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090   (eval "$ac_try") 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; }; then
14094   ac_cv_sizeof_long_long=`cat conftest.val`
14095 else
14096   echo "$as_me: program exited with status $ac_status" >&5
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 ( exit $ac_status )
14101 if test "$ac_cv_type_long_long" = yes; then
14102      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14103 See \`config.log' for more details." >&5
14104 echo "$as_me: error: cannot compute sizeof (long long)
14105 See \`config.log' for more details." >&2;}
14106    { (exit 77); exit 77; }; }
14107    else
14108      ac_cv_sizeof_long_long=0
14109    fi
14110 fi
14111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14112 fi
14113 rm -f conftest.val
14114 fi
14115 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14116 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14117
14118
14119
14120 cat >>confdefs.h <<_ACEOF
14121 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14122 _ACEOF
14123
14124
14125 SIZEOF_SHORT=$ac_cv_sizeof_short
14126 SIZEOF_INT=$ac_cv_sizeof_int
14127 SIZEOF_LONG=$ac_cv_sizeof_long
14128 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14129
14130
14131
14132
14133 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14135 if test "${ac_cv_c_bigendian+set}" = set; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   # See if sys/param.h defines the BYTE_ORDER macro.
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h.  */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h.  */
14145 #include <sys/types.h>
14146 #include <sys/param.h>
14147
14148 int
14149 main ()
14150 {
14151 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14152         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14153  bogus endian macros
14154 #endif
14155
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 rm -f conftest.$ac_objext
14161 if { (ac_try="$ac_compile"
14162 case "(($ac_try" in
14163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164   *) ac_try_echo=$ac_try;;
14165 esac
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167   (eval "$ac_compile") 2>conftest.er1
14168   ac_status=$?
14169   grep -v '^ *+' conftest.er1 >conftest.err
14170   rm -f conftest.er1
14171   cat conftest.err >&5
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); } && {
14174          test -z "$ac_c_werror_flag" ||
14175          test ! -s conftest.err
14176        } && test -s conftest.$ac_objext; then
14177   # It does; now see whether it defined to BIG_ENDIAN or not.
14178 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h.  */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h.  */
14184 #include <sys/types.h>
14185 #include <sys/param.h>
14186
14187 int
14188 main ()
14189 {
14190 #if BYTE_ORDER != BIG_ENDIAN
14191  not big endian
14192 #endif
14193
14194   ;
14195   return 0;
14196 }
14197 _ACEOF
14198 rm -f conftest.$ac_objext
14199 if { (ac_try="$ac_compile"
14200 case "(($ac_try" in
14201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202   *) ac_try_echo=$ac_try;;
14203 esac
14204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205   (eval "$ac_compile") 2>conftest.er1
14206   ac_status=$?
14207   grep -v '^ *+' conftest.er1 >conftest.err
14208   rm -f conftest.er1
14209   cat conftest.err >&5
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); } && {
14212          test -z "$ac_c_werror_flag" ||
14213          test ! -s conftest.err
14214        } && test -s conftest.$ac_objext; then
14215   ac_cv_c_bigendian=yes
14216 else
14217   echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220         ac_cv_c_bigendian=no
14221 fi
14222
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 else
14225   echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228         # It does not; compile a test program.
14229 if test "$cross_compiling" = yes; then
14230   # try to guess the endianness by grepping values into an object file
14231   ac_cv_c_bigendian=unknown
14232   cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14239 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14240 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14241 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14242 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14243 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14244 int
14245 main ()
14246 {
14247  _ascii (); _ebcdic ();
14248   ;
14249   return 0;
14250 }
14251 _ACEOF
14252 rm -f conftest.$ac_objext
14253 if { (ac_try="$ac_compile"
14254 case "(($ac_try" in
14255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256   *) ac_try_echo=$ac_try;;
14257 esac
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259   (eval "$ac_compile") 2>conftest.er1
14260   ac_status=$?
14261   grep -v '^ *+' conftest.er1 >conftest.err
14262   rm -f conftest.er1
14263   cat conftest.err >&5
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); } && {
14266          test -z "$ac_c_werror_flag" ||
14267          test ! -s conftest.err
14268        } && test -s conftest.$ac_objext; then
14269   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14270   ac_cv_c_bigendian=yes
14271 fi
14272 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14273   if test "$ac_cv_c_bigendian" = unknown; then
14274     ac_cv_c_bigendian=no
14275   else
14276     # finding both strings is unlikely to happen, but who knows?
14277     ac_cv_c_bigendian=unknown
14278   fi
14279 fi
14280 else
14281   echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284
14285 fi
14286
14287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288 else
14289   cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h.  */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h.  */
14295 $ac_includes_default
14296 int
14297 main ()
14298 {
14299
14300   /* Are we little or big endian?  From Harbison&Steele.  */
14301   union
14302   {
14303     long int l;
14304     char c[sizeof (long int)];
14305   } u;
14306   u.l = 1;
14307   return u.c[sizeof (long int) - 1] == 1;
14308
14309   ;
14310   return 0;
14311 }
14312 _ACEOF
14313 rm -f conftest$ac_exeext
14314 if { (ac_try="$ac_link"
14315 case "(($ac_try" in
14316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317   *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320   (eval "$ac_link") 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14324   { (case "(($ac_try" in
14325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326   *) ac_try_echo=$ac_try;;
14327 esac
14328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329   (eval "$ac_try") 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }; then
14333   ac_cv_c_bigendian=no
14334 else
14335   echo "$as_me: program exited with status $ac_status" >&5
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 ( exit $ac_status )
14340 ac_cv_c_bigendian=yes
14341 fi
14342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14343 fi
14344
14345
14346 fi
14347
14348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14349 fi
14350 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14351 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14352 case $ac_cv_c_bigendian in
14353   yes)
14354
14355 cat >>confdefs.h <<\_ACEOF
14356 #define WORDS_BIGENDIAN 1
14357 _ACEOF
14358  ;;
14359   no)
14360      ;;
14361   *)
14362     { { echo "$as_me:$LINENO: error: unknown endianness
14363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14364 echo "$as_me: error: unknown endianness
14365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14366    { (exit 1); exit 1; }; } ;;
14367 esac
14368
14369 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14370 ASM_TYPES_HEADER=./asm_types.h
14371
14372
14373 for ac_header in inttypes.h
14374 do
14375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14377   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14380   echo $ECHO_N "(cached) $ECHO_C" >&6
14381 fi
14382 ac_res=`eval echo '${'$as_ac_Header'}'`
14383                { echo "$as_me:$LINENO: result: $ac_res" >&5
14384 echo "${ECHO_T}$ac_res" >&6; }
14385 else
14386   # Is the header compilable?
14387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14389 cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h.  */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h.  */
14395 $ac_includes_default
14396 #include <$ac_header>
14397 _ACEOF
14398 rm -f conftest.$ac_objext
14399 if { (ac_try="$ac_compile"
14400 case "(($ac_try" in
14401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402   *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405   (eval "$ac_compile") 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } && {
14412          test -z "$ac_c_werror_flag" ||
14413          test ! -s conftest.err
14414        } && test -s conftest.$ac_objext; then
14415   ac_header_compiler=yes
14416 else
14417   echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14419
14420         ac_header_compiler=no
14421 fi
14422
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14425 echo "${ECHO_T}$ac_header_compiler" >&6; }
14426
14427 # Is the header present?
14428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h.  */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h.  */
14436 #include <$ac_header>
14437 _ACEOF
14438 if { (ac_try="$ac_cpp conftest.$ac_ext"
14439 case "(($ac_try" in
14440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441   *) ac_try_echo=$ac_try;;
14442 esac
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14445   ac_status=$?
14446   grep -v '^ *+' conftest.er1 >conftest.err
14447   rm -f conftest.er1
14448   cat conftest.err >&5
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); } >/dev/null && {
14451          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14452          test ! -s conftest.err
14453        }; then
14454   ac_header_preproc=yes
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459   ac_header_preproc=no
14460 fi
14461
14462 rm -f conftest.err conftest.$ac_ext
14463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14464 echo "${ECHO_T}$ac_header_preproc" >&6; }
14465
14466 # So?  What about this header?
14467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14468   yes:no: )
14469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14473     ac_header_preproc=yes
14474     ;;
14475   no:yes:* )
14476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14478     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14479 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14480     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14482     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14483 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14486     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14488
14489     ;;
14490 esac
14491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14494   echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496   eval "$as_ac_Header=\$ac_header_preproc"
14497 fi
14498 ac_res=`eval echo '${'$as_ac_Header'}'`
14499                { echo "$as_me:$LINENO: result: $ac_res" >&5
14500 echo "${ECHO_T}$ac_res" >&6; }
14501
14502 fi
14503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14504   cat >>confdefs.h <<_ACEOF
14505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14506 _ACEOF
14507
14508 fi
14509
14510 done
14511
14512 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14513 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14514 if test "${ac_cv_type_intptr_t+set}" = set; then
14515   echo $ECHO_N "(cached) $ECHO_C" >&6
14516 else
14517   cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523 $ac_includes_default
14524 typedef intptr_t ac__type_new_;
14525 int
14526 main ()
14527 {
14528 if ((ac__type_new_ *) 0)
14529   return 0;
14530 if (sizeof (ac__type_new_))
14531   return 0;
14532   ;
14533   return 0;
14534 }
14535 _ACEOF
14536 rm -f conftest.$ac_objext
14537 if { (ac_try="$ac_compile"
14538 case "(($ac_try" in
14539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540   *) ac_try_echo=$ac_try;;
14541 esac
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543   (eval "$ac_compile") 2>conftest.er1
14544   ac_status=$?
14545   grep -v '^ *+' conftest.er1 >conftest.err
14546   rm -f conftest.er1
14547   cat conftest.err >&5
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); } && {
14550          test -z "$ac_c_werror_flag" ||
14551          test ! -s conftest.err
14552        } && test -s conftest.$ac_objext; then
14553   ac_cv_type_intptr_t=yes
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558         ac_cv_type_intptr_t=no
14559 fi
14560
14561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562 fi
14563 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14564 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14565 if test $ac_cv_type_intptr_t = yes; then
14566
14567 cat >>confdefs.h <<_ACEOF
14568 #define HAVE_INTPTR_T 1
14569 _ACEOF
14570
14571
14572 fi
14573
14574 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14575 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14576 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579   cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h.  */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h.  */
14585 #include <sys/stat.h>
14586 int
14587 main ()
14588 {
14589 struct stat stat; stat.st_flags = 0;
14590   ;
14591   return 0;
14592 }
14593 _ACEOF
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598   *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601   (eval "$ac_compile") 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } && {
14608          test -z "$ac_c_werror_flag" ||
14609          test ! -s conftest.err
14610        } && test -s conftest.$ac_objext; then
14611   e2fsprogs_cv_struct_st_flags=yes
14612 else
14613   echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616         e2fsprogs_cv_struct_st_flags=no
14617 fi
14618
14619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14620 fi
14621
14622 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14623 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14624 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14625   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14626 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14627   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14628   echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630   cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h.  */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h.  */
14636 #include <sys/stat.h>
14637 int
14638 main ()
14639 {
14640 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14641   ;
14642   return 0;
14643 }
14644 _ACEOF
14645 rm -f conftest.$ac_objext
14646 if { (ac_try="$ac_compile"
14647 case "(($ac_try" in
14648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649   *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652   (eval "$ac_compile") 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } && {
14659          test -z "$ac_c_werror_flag" ||
14660          test ! -s conftest.err
14661        } && test -s conftest.$ac_objext; then
14662   e2fsprogs_cv_struct_st_flags_immut=yes
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667         e2fsprogs_cv_struct_st_flags_immut=no
14668 fi
14669
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671 fi
14672
14673   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14674 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14675   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14676           cat >>confdefs.h <<\_ACEOF
14677 #define HAVE_STAT_FLAGS 1
14678 _ACEOF
14679
14680   fi
14681 fi
14682 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14683 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14684 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14685   echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687   cat >conftest.$ac_ext <<_ACEOF
14688 /* confdefs.h.  */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h.  */
14693 #include <sys/types.h>
14694          #include <sys/socket.h>
14695
14696 int
14697 main ()
14698 {
14699 static struct sockaddr ac_aggr;
14700 if (ac_aggr.sa_len)
14701 return 0;
14702   ;
14703   return 0;
14704 }
14705 _ACEOF
14706 rm -f conftest.$ac_objext
14707 if { (ac_try="$ac_compile"
14708 case "(($ac_try" in
14709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710   *) ac_try_echo=$ac_try;;
14711 esac
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713   (eval "$ac_compile") 2>conftest.er1
14714   ac_status=$?
14715   grep -v '^ *+' conftest.er1 >conftest.err
14716   rm -f conftest.er1
14717   cat conftest.err >&5
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); } && {
14720          test -z "$ac_c_werror_flag" ||
14721          test ! -s conftest.err
14722        } && test -s conftest.$ac_objext; then
14723   ac_cv_member_struct_sockaddr_sa_len=yes
14724 else
14725   echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728         cat >conftest.$ac_ext <<_ACEOF
14729 /* confdefs.h.  */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h.  */
14734 #include <sys/types.h>
14735          #include <sys/socket.h>
14736
14737 int
14738 main ()
14739 {
14740 static struct sockaddr ac_aggr;
14741 if (sizeof ac_aggr.sa_len)
14742 return 0;
14743   ;
14744   return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest.$ac_objext
14748 if { (ac_try="$ac_compile"
14749 case "(($ac_try" in
14750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751   *) ac_try_echo=$ac_try;;
14752 esac
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754   (eval "$ac_compile") 2>conftest.er1
14755   ac_status=$?
14756   grep -v '^ *+' conftest.er1 >conftest.err
14757   rm -f conftest.er1
14758   cat conftest.err >&5
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); } && {
14761          test -z "$ac_c_werror_flag" ||
14762          test ! -s conftest.err
14763        } && test -s conftest.$ac_objext; then
14764   ac_cv_member_struct_sockaddr_sa_len=yes
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769         ac_cv_member_struct_sockaddr_sa_len=no
14770 fi
14771
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 fi
14774
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 fi
14777 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14778 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14779 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14780
14781 cat >>confdefs.h <<_ACEOF
14782 #define HAVE_SA_LEN 1
14783 _ACEOF
14784
14785 fi
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816 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
14817 do
14818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824   cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h.  */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h.  */
14830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14832 #define $ac_func innocuous_$ac_func
14833
14834 /* System header to define __stub macros and hopefully few prototypes,
14835     which can conflict with char $ac_func (); below.
14836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14837     <limits.h> exists even on freestanding compilers.  */
14838
14839 #ifdef __STDC__
14840 # include <limits.h>
14841 #else
14842 # include <assert.h>
14843 #endif
14844
14845 #undef $ac_func
14846
14847 /* Override any GCC internal prototype to avoid an error.
14848    Use char because int might match the return type of a GCC
14849    builtin and then its argument prototype would still apply.  */
14850 #ifdef __cplusplus
14851 extern "C"
14852 #endif
14853 char $ac_func ();
14854 /* The GNU C library defines this for functions which it implements
14855     to always fail with ENOSYS.  Some functions are actually named
14856     something starting with __ and the normal name is an alias.  */
14857 #if defined __stub_$ac_func || defined __stub___$ac_func
14858 choke me
14859 #endif
14860
14861 int
14862 main ()
14863 {
14864 return $ac_func ();
14865   ;
14866   return 0;
14867 }
14868 _ACEOF
14869 rm -f conftest.$ac_objext conftest$ac_exeext
14870 if { (ac_try="$ac_link"
14871 case "(($ac_try" in
14872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873   *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876   (eval "$ac_link") 2>conftest.er1
14877   ac_status=$?
14878   grep -v '^ *+' conftest.er1 >conftest.err
14879   rm -f conftest.er1
14880   cat conftest.err >&5
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); } && {
14883          test -z "$ac_c_werror_flag" ||
14884          test ! -s conftest.err
14885        } && test -s conftest$ac_exeext &&
14886        $as_test_x conftest$ac_exeext; then
14887   eval "$as_ac_var=yes"
14888 else
14889   echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14891
14892         eval "$as_ac_var=no"
14893 fi
14894
14895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14896       conftest$ac_exeext conftest.$ac_ext
14897 fi
14898 ac_res=`eval echo '${'$as_ac_var'}'`
14899                { echo "$as_me:$LINENO: result: $ac_res" >&5
14900 echo "${ECHO_T}$ac_res" >&6; }
14901 if test `eval echo '${'$as_ac_var'}'` = yes; then
14902   cat >>confdefs.h <<_ACEOF
14903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14904 _ACEOF
14905
14906 fi
14907 done
14908
14909 SOCKET_LIB=''
14910 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14911 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14912 if test "${ac_cv_lib_socket_socket+set}" = set; then
14913   echo $ECHO_N "(cached) $ECHO_C" >&6
14914 else
14915   ac_check_lib_save_LIBS=$LIBS
14916 LIBS="-lsocket  $LIBS"
14917 cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h.  */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h.  */
14923
14924 /* Override any GCC internal prototype to avoid an error.
14925    Use char because int might match the return type of a GCC
14926    builtin and then its argument prototype would still apply.  */
14927 #ifdef __cplusplus
14928 extern "C"
14929 #endif
14930 char socket ();
14931 int
14932 main ()
14933 {
14934 return socket ();
14935   ;
14936   return 0;
14937 }
14938 _ACEOF
14939 rm -f conftest.$ac_objext conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943   *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946   (eval "$ac_link") 2>conftest.er1
14947   ac_status=$?
14948   grep -v '^ *+' conftest.er1 >conftest.err
14949   rm -f conftest.er1
14950   cat conftest.err >&5
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } && {
14953          test -z "$ac_c_werror_flag" ||
14954          test ! -s conftest.err
14955        } && test -s conftest$ac_exeext &&
14956        $as_test_x conftest$ac_exeext; then
14957   ac_cv_lib_socket_socket=yes
14958 else
14959   echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14961
14962         ac_cv_lib_socket_socket=no
14963 fi
14964
14965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14966       conftest$ac_exeext conftest.$ac_ext
14967 LIBS=$ac_check_lib_save_LIBS
14968 fi
14969 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14970 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14971 if test $ac_cv_lib_socket_socket = yes; then
14972   SOCKET_LIB=-lsocket
14973 fi
14974
14975
14976 DLOPEN_LIB=''
14977 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14978 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14980   echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982   ac_check_lib_save_LIBS=$LIBS
14983 LIBS="-ldl  $LIBS"
14984 cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h.  */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h.  */
14990
14991 /* Override any GCC internal prototype to avoid an error.
14992    Use char because int might match the return type of a GCC
14993    builtin and then its argument prototype would still apply.  */
14994 #ifdef __cplusplus
14995 extern "C"
14996 #endif
14997 char dlopen ();
14998 int
14999 main ()
15000 {
15001 return dlopen ();
15002   ;
15003   return 0;
15004 }
15005 _ACEOF
15006 rm -f conftest.$ac_objext conftest$ac_exeext
15007 if { (ac_try="$ac_link"
15008 case "(($ac_try" in
15009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010   *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013   (eval "$ac_link") 2>conftest.er1
15014   ac_status=$?
15015   grep -v '^ *+' conftest.er1 >conftest.err
15016   rm -f conftest.er1
15017   cat conftest.err >&5
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); } && {
15020          test -z "$ac_c_werror_flag" ||
15021          test ! -s conftest.err
15022        } && test -s conftest$ac_exeext &&
15023        $as_test_x conftest$ac_exeext; then
15024   ac_cv_lib_dl_dlopen=yes
15025 else
15026   echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029         ac_cv_lib_dl_dlopen=no
15030 fi
15031
15032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15033       conftest$ac_exeext conftest.$ac_ext
15034 LIBS=$ac_check_lib_save_LIBS
15035 fi
15036 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15038 if test $ac_cv_lib_dl_dlopen = yes; then
15039   DLOPEN_LIB=-ldl
15040 cat >>confdefs.h <<\_ACEOF
15041 #define HAVE_DLOPEN 1
15042 _ACEOF
15043
15044 fi
15045
15046
15047 { echo "$as_me:$LINENO: checking for optreset" >&5
15048 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15049 if test "${ac_cv_have_optreset+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h.  */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h.  */
15058 #include <unistd.h>
15059
15060 _ACEOF
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062   $EGREP "optreset" >/dev/null 2>&1; then
15063   ac_cv_have_optreset=yes
15064 else
15065   ac_cv_have_optreset=no
15066 fi
15067 rm -f conftest*
15068
15069 fi
15070 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15071 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15072 if test $ac_cv_have_optreset = yes; then
15073   cat >>confdefs.h <<\_ACEOF
15074 #define HAVE_OPTRESET 1
15075 _ACEOF
15076
15077 fi
15078 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15079 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15080 if diff -u $0 $0 >& /dev/null ; then
15081    UNI_DIFF_OPTS=-u
15082 else
15083    UNI_DIFF_OPTS=-c
15084 fi
15085 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15086 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15087
15088 case "$host_os" in
15089 linux*)
15090         cat >>confdefs.h <<\_ACEOF
15091 #define HAVE_EXT2_IOCTLS 1
15092 _ACEOF
15093
15094         ;;
15095 esac
15096 LINUX_CMT="#"
15097 CYGWIN_CMT="#"
15098 UNIX_CMT=
15099 case "$host_os" in
15100 linux*)
15101         LINUX_CMT=
15102         ;;
15103 cygwin)
15104         CYGWIN_CMT=
15105         UNIX_CMT="#"
15106         ;;
15107 esac
15108
15109
15110
15111 case "$host_os" in
15112 linux* | gnu* | k*bsd*-gnu)
15113         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15114                 root_prefix="";
15115                 echo "On $host_os systems, root_prefix defaults to ''"
15116         fi
15117         ;;
15118 esac
15119 case "$host_os" in
15120 linux* | gnu* | k*bsd*-gnu)
15121         if test "$prefix" = NONE ; then
15122                 prefix="/usr";
15123                 echo "On $host_os systems, prefix defaults to /usr"
15124                 if test "$mandir" = '${prefix}/man' ; then
15125                         echo "...and mandir defaults to /usr/share/man"
15126                         mandir=/usr/share/man
15127                 fi
15128         fi
15129 ;;
15130 esac
15131 if test "$root_prefix" = NONE ; then
15132         if test "$prefix" = NONE ; then
15133                 root_prefix="$ac_default_prefix"
15134         else
15135                 root_prefix="$prefix"
15136         fi
15137         root_bindir=$bindir
15138         root_sbindir=$sbindir
15139         root_libdir=$libdir
15140         root_sysconfdir=$sysconfdir
15141 else
15142         root_bindir='${root_prefix}/bin'
15143         root_sbindir='${root_prefix}/sbin'
15144         root_libdir='${root_prefix}/lib'
15145         root_sysconfdir='${root_prefix}/etc'
15146 fi
15147 if test "$bindir" != '${exec_prefix}/bin'; then
15148     root_bindir=$bindir
15149     echo "Setting root_bindir to $root_bindir"
15150 fi
15151 if test "$sbindir" != '${exec_prefix}/sbin'; then
15152     root_sbindir=$sbindir
15153     echo "Setting root_sbindir to $root_sbindir"
15154 fi
15155 if test "$libdir" != '${exec_prefix}/lib'; then
15156     root_libdir=$libdir
15157     echo "Setting root_libdir to $root_libdir"
15158 fi
15159 if test "$sysconfdir" != '${prefix}/etc'; then
15160     root_sysconfdir=$sysconfdir
15161     echo "Setting root_sysconfdir to $root_sysconfdir"
15162 fi
15163
15164
15165
15166
15167
15168 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15169 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15170 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15171   echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15174 cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h.  */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h.  */
15180 #include <stdio.h>
15181 int
15182 main ()
15183 {
15184 fflush(stdout);
15185   ;
15186   return 0;
15187 }
15188 _ACEOF
15189 rm -f conftest.$ac_objext conftest$ac_exeext
15190 if { (ac_try="$ac_link"
15191 case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_link") 2>conftest.er1
15197   ac_status=$?
15198   grep -v '^ *+' conftest.er1 >conftest.err
15199   rm -f conftest.er1
15200   cat conftest.err >&5
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } && {
15203          test -z "$ac_c_werror_flag" ||
15204          test ! -s conftest.err
15205        } && test -s conftest$ac_exeext &&
15206        $as_test_x conftest$ac_exeext; then
15207   ac_cv_e2fsprogs_use_static=yes
15208 else
15209   echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212         ac_cv_e2fsprogs_use_static=no
15213 fi
15214
15215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15216       conftest$ac_exeext conftest.$ac_ext
15217 LDFLAGS=$SAVE_LDFLAGS
15218 fi
15219
15220 case "$host_os" in
15221 solaris2.*)
15222         ac_cv_e2fsprogs_use_static=no
15223 ;;
15224 esac
15225 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15226 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15227 LDFLAG_STATIC=
15228 if test $ac_cv_e2fsprogs_use_static = yes; then
15229         LDFLAG_STATIC=-static
15230 fi
15231
15232 case "$host_os" in
15233 darwin*)
15234         echo "Using Apple Darwin / GNU libintl workaround"
15235         cat >>confdefs.h <<\_ACEOF
15236 #define _INTL_REDIRECT_MACROS 1
15237 _ACEOF
15238
15239         ;;
15240 esac
15241 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15242 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15243
15244
15245 if test "$cross_compiling" = yes ; then
15246   DO_TEST_SUITE=
15247 else
15248   DO_TEST_SUITE=check
15249 fi
15250
15251 INTL_FLAGS=
15252 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15253         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15254 fi
15255
15256 if test $cross_compiling = no; then
15257    BUILD_CFLAGS="$CFLAGS"
15258    BUILD_LDFLAGS="$LDFLAGS"
15259 else
15260    BUILD_CFLAGS=
15261    BUILD_LDFLAGS=
15262 fi
15263
15264
15265 test -d lib || mkdir lib
15266 test -d include || mkdir include
15267 test -d include/linux || mkdir include/linux
15268 test -d include/asm || mkdir include/asm
15269 for i in MCONFIG Makefile e2fsprogs.spec \
15270         util/Makefile util/subst.conf util/gen-tarball \
15271         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15272         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15273         lib/uuid/Makefile lib/uuid/uuid_types.h \
15274         lib/blkid/Makefile lib/blkid/blkid_types.h \
15275         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15276         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15277         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15278         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15279         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15280         if test -d `dirname ${srcdir}/$i` ; then
15281                 outlist="$outlist $i"
15282         fi
15283 done
15284 ac_config_files="$ac_config_files $outlist"
15285
15286 cat >confcache <<\_ACEOF
15287 # This file is a shell script that caches the results of configure
15288 # tests run on this system so they can be shared between configure
15289 # scripts and configure runs, see configure's option --config-cache.
15290 # It is not useful on other systems.  If it contains results you don't
15291 # want to keep, you may remove or edit it.
15292 #
15293 # config.status only pays attention to the cache file if you give it
15294 # the --recheck option to rerun configure.
15295 #
15296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15298 # following values.
15299
15300 _ACEOF
15301
15302 # The following way of writing the cache mishandles newlines in values,
15303 # but we know of no workaround that is simple, portable, and efficient.
15304 # So, we kill variables containing newlines.
15305 # Ultrix sh set writes to stderr and can't be redirected directly,
15306 # and sets the high bit in the cache file unless we assign to the vars.
15307 (
15308   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15309     eval ac_val=\$$ac_var
15310     case $ac_val in #(
15311     *${as_nl}*)
15312       case $ac_var in #(
15313       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15314 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15315       esac
15316       case $ac_var in #(
15317       _ | IFS | as_nl) ;; #(
15318       *) $as_unset $ac_var ;;
15319       esac ;;
15320     esac
15321   done
15322
15323   (set) 2>&1 |
15324     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15325     *${as_nl}ac_space=\ *)
15326       # `set' does not quote correctly, so add quotes (double-quote
15327       # substitution turns \\\\ into \\, and sed turns \\ into \).
15328       sed -n \
15329         "s/'/'\\\\''/g;
15330           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15331       ;; #(
15332     *)
15333       # `set' quotes correctly as required by POSIX, so do not add quotes.
15334       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15335       ;;
15336     esac |
15337     sort
15338 ) |
15339   sed '
15340      /^ac_cv_env_/b end
15341      t clear
15342      :clear
15343      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15344      t end
15345      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15346      :end' >>confcache
15347 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15348   if test -w "$cache_file"; then
15349     test "x$cache_file" != "x/dev/null" &&
15350       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15351 echo "$as_me: updating cache $cache_file" >&6;}
15352     cat confcache >$cache_file
15353   else
15354     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15355 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15356   fi
15357 fi
15358 rm -f confcache
15359
15360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15361 # Let make expand exec_prefix.
15362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15363
15364 # Transform confdefs.h into DEFS.
15365 # Protect against shell expansion while executing Makefile rules.
15366 # Protect against Makefile macro expansion.
15367 #
15368 # If the first sed substitution is executed (which looks for macros that
15369 # take arguments), then branch to the quote section.  Otherwise,
15370 # look for a macro that doesn't take arguments.
15371 ac_script='
15372 t clear
15373 :clear
15374 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15375 t quote
15376 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15377 t quote
15378 b any
15379 :quote
15380 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15381 s/\[/\\&/g
15382 s/\]/\\&/g
15383 s/\$/$$/g
15384 H
15385 :any
15386 ${
15387         g
15388         s/^\n//
15389         s/\n/ /g
15390         p
15391 }
15392 '
15393 DEFS=`sed -n "$ac_script" confdefs.h`
15394
15395
15396 ac_libobjs=
15397 ac_ltlibobjs=
15398 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15399   # 1. Remove the extension, and $U if already installed.
15400   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15401   ac_i=`echo "$ac_i" | sed "$ac_script"`
15402   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15403   #    will be set to the directory where LIBOBJS objects are built.
15404   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15405   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15406 done
15407 LIBOBJS=$ac_libobjs
15408
15409 LTLIBOBJS=$ac_ltlibobjs
15410
15411
15412
15413 : ${CONFIG_STATUS=./config.status}
15414 ac_clean_files_save=$ac_clean_files
15415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15416 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15417 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15418 cat >$CONFIG_STATUS <<_ACEOF
15419 #! $SHELL
15420 # Generated by $as_me.
15421 # Run this file to recreate the current configuration.
15422 # Compiler output produced by configure, useful for debugging
15423 # configure, is in config.log if it exists.
15424
15425 debug=false
15426 ac_cs_recheck=false
15427 ac_cs_silent=false
15428 SHELL=\${CONFIG_SHELL-$SHELL}
15429 _ACEOF
15430
15431 cat >>$CONFIG_STATUS <<\_ACEOF
15432 ## --------------------- ##
15433 ## M4sh Initialization.  ##
15434 ## --------------------- ##
15435
15436 # Be more Bourne compatible
15437 DUALCASE=1; export DUALCASE # for MKS sh
15438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15439   emulate sh
15440   NULLCMD=:
15441   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15442   # is contrary to our usage.  Disable this feature.
15443   alias -g '${1+"$@"}'='"$@"'
15444   setopt NO_GLOB_SUBST
15445 else
15446   case `(set -o) 2>/dev/null` in
15447   *posix*) set -o posix ;;
15448 esac
15449
15450 fi
15451
15452
15453
15454
15455 # PATH needs CR
15456 # Avoid depending upon Character Ranges.
15457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15460 as_cr_digits='0123456789'
15461 as_cr_alnum=$as_cr_Letters$as_cr_digits
15462
15463 # The user is always right.
15464 if test "${PATH_SEPARATOR+set}" != set; then
15465   echo "#! /bin/sh" >conf$$.sh
15466   echo  "exit 0"   >>conf$$.sh
15467   chmod +x conf$$.sh
15468   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15469     PATH_SEPARATOR=';'
15470   else
15471     PATH_SEPARATOR=:
15472   fi
15473   rm -f conf$$.sh
15474 fi
15475
15476 # Support unset when possible.
15477 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15478   as_unset=unset
15479 else
15480   as_unset=false
15481 fi
15482
15483
15484 # IFS
15485 # We need space, tab and new line, in precisely that order.  Quoting is
15486 # there to prevent editors from complaining about space-tab.
15487 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15488 # splitting by setting IFS to empty value.)
15489 as_nl='
15490 '
15491 IFS=" ""        $as_nl"
15492
15493 # Find who we are.  Look in the path if we contain no directory separator.
15494 case $0 in
15495   *[\\/]* ) as_myself=$0 ;;
15496   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15497 for as_dir in $PATH
15498 do
15499   IFS=$as_save_IFS
15500   test -z "$as_dir" && as_dir=.
15501   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15502 done
15503 IFS=$as_save_IFS
15504
15505      ;;
15506 esac
15507 # We did not find ourselves, most probably we were run as `sh COMMAND'
15508 # in which case we are not to be found in the path.
15509 if test "x$as_myself" = x; then
15510   as_myself=$0
15511 fi
15512 if test ! -f "$as_myself"; then
15513   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15514   { (exit 1); exit 1; }
15515 fi
15516
15517 # Work around bugs in pre-3.0 UWIN ksh.
15518 for as_var in ENV MAIL MAILPATH
15519 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15520 done
15521 PS1='$ '
15522 PS2='> '
15523 PS4='+ '
15524
15525 # NLS nuisances.
15526 for as_var in \
15527   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15528   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15529   LC_TELEPHONE LC_TIME
15530 do
15531   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15532     eval $as_var=C; export $as_var
15533   else
15534     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15535   fi
15536 done
15537
15538 # Required to use basename.
15539 if expr a : '\(a\)' >/dev/null 2>&1 &&
15540    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15541   as_expr=expr
15542 else
15543   as_expr=false
15544 fi
15545
15546 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15547   as_basename=basename
15548 else
15549   as_basename=false
15550 fi
15551
15552
15553 # Name of the executable.
15554 as_me=`$as_basename -- "$0" ||
15555 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15556          X"$0" : 'X\(//\)$' \| \
15557          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15558 echo X/"$0" |
15559     sed '/^.*\/\([^/][^/]*\)\/*$/{
15560             s//\1/
15561             q
15562           }
15563           /^X\/\(\/\/\)$/{
15564             s//\1/
15565             q
15566           }
15567           /^X\/\(\/\).*/{
15568             s//\1/
15569             q
15570           }
15571           s/.*/./; q'`
15572
15573 # CDPATH.
15574 $as_unset CDPATH
15575
15576
15577
15578   as_lineno_1=$LINENO
15579   as_lineno_2=$LINENO
15580   test "x$as_lineno_1" != "x$as_lineno_2" &&
15581   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15582
15583   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15584   # uniformly replaced by the line number.  The first 'sed' inserts a
15585   # line-number line after each line using $LINENO; the second 'sed'
15586   # does the real work.  The second script uses 'N' to pair each
15587   # line-number line with the line containing $LINENO, and appends
15588   # trailing '-' during substitution so that $LINENO is not a special
15589   # case at line end.
15590   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15591   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15592   # E. McMahon (1931-1989) for sed's syntax.  :-)
15593   sed -n '
15594     p
15595     /[$]LINENO/=
15596   ' <$as_myself |
15597     sed '
15598       s/[$]LINENO.*/&-/
15599       t lineno
15600       b
15601       :lineno
15602       N
15603       :loop
15604       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15605       t loop
15606       s/-\n.*//
15607     ' >$as_me.lineno &&
15608   chmod +x "$as_me.lineno" ||
15609     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15610    { (exit 1); exit 1; }; }
15611
15612   # Don't try to exec as it changes $[0], causing all sort of problems
15613   # (the dirname of $[0] is not the place where we might find the
15614   # original and so on.  Autoconf is especially sensitive to this).
15615   . "./$as_me.lineno"
15616   # Exit status is that of the last command.
15617   exit
15618 }
15619
15620
15621 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15622   as_dirname=dirname
15623 else
15624   as_dirname=false
15625 fi
15626
15627 ECHO_C= ECHO_N= ECHO_T=
15628 case `echo -n x` in
15629 -n*)
15630   case `echo 'x\c'` in
15631   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15632   *)   ECHO_C='\c';;
15633   esac;;
15634 *)
15635   ECHO_N='-n';;
15636 esac
15637
15638 if expr a : '\(a\)' >/dev/null 2>&1 &&
15639    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15640   as_expr=expr
15641 else
15642   as_expr=false
15643 fi
15644
15645 rm -f conf$$ conf$$.exe conf$$.file
15646 if test -d conf$$.dir; then
15647   rm -f conf$$.dir/conf$$.file
15648 else
15649   rm -f conf$$.dir
15650   mkdir conf$$.dir
15651 fi
15652 echo >conf$$.file
15653 if ln -s conf$$.file conf$$ 2>/dev/null; then
15654   as_ln_s='ln -s'
15655   # ... but there are two gotchas:
15656   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15657   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15658   # In both cases, we have to default to `cp -p'.
15659   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15660     as_ln_s='cp -p'
15661 elif ln conf$$.file conf$$ 2>/dev/null; then
15662   as_ln_s=ln
15663 else
15664   as_ln_s='cp -p'
15665 fi
15666 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15667 rmdir conf$$.dir 2>/dev/null
15668
15669 if mkdir -p . 2>/dev/null; then
15670   as_mkdir_p=:
15671 else
15672   test -d ./-p && rmdir ./-p
15673   as_mkdir_p=false
15674 fi
15675
15676 if test -x / >/dev/null 2>&1; then
15677   as_test_x='test -x'
15678 else
15679   if ls -dL / >/dev/null 2>&1; then
15680     as_ls_L_option=L
15681   else
15682     as_ls_L_option=
15683   fi
15684   as_test_x='
15685     eval sh -c '\''
15686       if test -d "$1"; then
15687         test -d "$1/.";
15688       else
15689         case $1 in
15690         -*)set "./$1";;
15691         esac;
15692         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15693         ???[sx]*):;;*)false;;esac;fi
15694     '\'' sh
15695   '
15696 fi
15697 as_executable_p=$as_test_x
15698
15699 # Sed expression to map a string onto a valid CPP name.
15700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15701
15702 # Sed expression to map a string onto a valid variable name.
15703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15704
15705
15706 exec 6>&1
15707
15708 # Save the log message, to keep $[0] and so on meaningful, and to
15709 # report actual input values of CONFIG_FILES etc. instead of their
15710 # values after options handling.
15711 ac_log="
15712 This file was extended by $as_me, which was
15713 generated by GNU Autoconf 2.61.  Invocation command line was
15714
15715   CONFIG_FILES    = $CONFIG_FILES
15716   CONFIG_HEADERS  = $CONFIG_HEADERS
15717   CONFIG_LINKS    = $CONFIG_LINKS
15718   CONFIG_COMMANDS = $CONFIG_COMMANDS
15719   $ $0 $@
15720
15721 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15722 "
15723
15724 _ACEOF
15725
15726 cat >>$CONFIG_STATUS <<_ACEOF
15727 # Files that config.status was made for.
15728 config_files="$ac_config_files"
15729 config_commands="$ac_config_commands"
15730
15731 _ACEOF
15732
15733 cat >>$CONFIG_STATUS <<\_ACEOF
15734 ac_cs_usage="\
15735 \`$as_me' instantiates files from templates according to the
15736 current configuration.
15737
15738 Usage: $0 [OPTIONS] [FILE]...
15739
15740   -h, --help       print this help, then exit
15741   -V, --version    print version number and configuration settings, then exit
15742   -q, --quiet      do not print progress messages
15743   -d, --debug      don't remove temporary files
15744       --recheck    update $as_me by reconfiguring in the same conditions
15745   --file=FILE[:TEMPLATE]
15746                    instantiate the configuration file FILE
15747
15748 Configuration files:
15749 $config_files
15750
15751 Configuration commands:
15752 $config_commands
15753
15754 Report bugs to <bug-autoconf@gnu.org>."
15755
15756 _ACEOF
15757 cat >>$CONFIG_STATUS <<_ACEOF
15758 ac_cs_version="\\
15759 config.status
15760 configured by $0, generated by GNU Autoconf 2.61,
15761   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15762
15763 Copyright (C) 2006 Free Software Foundation, Inc.
15764 This config.status script is free software; the Free Software Foundation
15765 gives unlimited permission to copy, distribute and modify it."
15766
15767 ac_pwd='$ac_pwd'
15768 srcdir='$srcdir'
15769 INSTALL='$INSTALL'
15770 _ACEOF
15771
15772 cat >>$CONFIG_STATUS <<\_ACEOF
15773 # If no file are specified by the user, then we need to provide default
15774 # value.  By we need to know if files were specified by the user.
15775 ac_need_defaults=:
15776 while test $# != 0
15777 do
15778   case $1 in
15779   --*=*)
15780     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15781     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15782     ac_shift=:
15783     ;;
15784   *)
15785     ac_option=$1
15786     ac_optarg=$2
15787     ac_shift=shift
15788     ;;
15789   esac
15790
15791   case $ac_option in
15792   # Handling of the options.
15793   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15794     ac_cs_recheck=: ;;
15795   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15796     echo "$ac_cs_version"; exit ;;
15797   --debug | --debu | --deb | --de | --d | -d )
15798     debug=: ;;
15799   --file | --fil | --fi | --f )
15800     $ac_shift
15801     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15802     ac_need_defaults=false;;
15803   --he | --h |  --help | --hel | -h )
15804     echo "$ac_cs_usage"; exit ;;
15805   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15806   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15807     ac_cs_silent=: ;;
15808
15809   # This is an error.
15810   -*) { echo "$as_me: error: unrecognized option: $1
15811 Try \`$0 --help' for more information." >&2
15812    { (exit 1); exit 1; }; } ;;
15813
15814   *) ac_config_targets="$ac_config_targets $1"
15815      ac_need_defaults=false ;;
15816
15817   esac
15818   shift
15819 done
15820
15821 ac_configure_extra_args=
15822
15823 if $ac_cs_silent; then
15824   exec 6>/dev/null
15825   ac_configure_extra_args="$ac_configure_extra_args --silent"
15826 fi
15827
15828 _ACEOF
15829 cat >>$CONFIG_STATUS <<_ACEOF
15830 if \$ac_cs_recheck; then
15831   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15832   CONFIG_SHELL=$SHELL
15833   export CONFIG_SHELL
15834   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15835 fi
15836
15837 _ACEOF
15838 cat >>$CONFIG_STATUS <<\_ACEOF
15839 exec 5>>config.log
15840 {
15841   echo
15842   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15843 ## Running $as_me. ##
15844 _ASBOX
15845   echo "$ac_log"
15846 } >&5
15847
15848 _ACEOF
15849 cat >>$CONFIG_STATUS <<_ACEOF
15850 #
15851 # INIT-COMMANDS
15852 #
15853 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15854     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15855     # from automake.
15856     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15857     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15858     LINGUAS="${LINGUAS-%UNSET%}"
15859
15860
15861 _ACEOF
15862
15863 cat >>$CONFIG_STATUS <<\_ACEOF
15864
15865 # Handling of arguments.
15866 for ac_config_target in $ac_config_targets
15867 do
15868   case $ac_config_target in
15869     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15870     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15871
15872   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15873 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15874    { (exit 1); exit 1; }; };;
15875   esac
15876 done
15877
15878
15879 # If the user did not use the arguments to specify the items to instantiate,
15880 # then the envvar interface is used.  Set only those that are not.
15881 # We use the long form for the default assignment because of an extremely
15882 # bizarre bug on SunOS 4.1.3.
15883 if $ac_need_defaults; then
15884   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15885   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15886 fi
15887
15888 # Have a temporary directory for convenience.  Make it in the build tree
15889 # simply because there is no reason against having it here, and in addition,
15890 # creating and moving files from /tmp can sometimes cause problems.
15891 # Hook for its removal unless debugging.
15892 # Note that there is a small window in which the directory will not be cleaned:
15893 # after its creation but before its name has been assigned to `$tmp'.
15894 $debug ||
15895 {
15896   tmp=
15897   trap 'exit_status=$?
15898   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15899 ' 0
15900   trap '{ (exit 1); exit 1; }' 1 2 13 15
15901 }
15902 # Create a (secure) tmp directory for tmp files.
15903
15904 {
15905   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15906   test -n "$tmp" && test -d "$tmp"
15907 }  ||
15908 {
15909   tmp=./conf$$-$RANDOM
15910   (umask 077 && mkdir "$tmp")
15911 } ||
15912 {
15913    echo "$me: cannot create a temporary directory in ." >&2
15914    { (exit 1); exit 1; }
15915 }
15916
15917 #
15918 # Set up the sed scripts for CONFIG_FILES section.
15919 #
15920
15921 # No need to generate the scripts if there are no CONFIG_FILES.
15922 # This happens for instance when ./config.status config.h
15923 if test -n "$CONFIG_FILES"; then
15924
15925 _ACEOF
15926
15927 # Create sed commands to just substitute file output variables.
15928
15929 # Remaining file output variables are in a fragment that also has non-file
15930 # output varibles.
15931
15932
15933
15934 ac_delim='%!_!# '
15935 for ac_last_try in false false false false false :; do
15936   cat >conf$$subs.sed <<_ACEOF
15937 SHELL!$SHELL$ac_delim
15938 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15939 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15940 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15941 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15942 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15943 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15944 exec_prefix!$exec_prefix$ac_delim
15945 prefix!$prefix$ac_delim
15946 program_transform_name!$program_transform_name$ac_delim
15947 bindir!$bindir$ac_delim
15948 sbindir!$sbindir$ac_delim
15949 libexecdir!$libexecdir$ac_delim
15950 datarootdir!$datarootdir$ac_delim
15951 datadir!$datadir$ac_delim
15952 sysconfdir!$sysconfdir$ac_delim
15953 sharedstatedir!$sharedstatedir$ac_delim
15954 localstatedir!$localstatedir$ac_delim
15955 includedir!$includedir$ac_delim
15956 oldincludedir!$oldincludedir$ac_delim
15957 docdir!$docdir$ac_delim
15958 infodir!$infodir$ac_delim
15959 htmldir!$htmldir$ac_delim
15960 dvidir!$dvidir$ac_delim
15961 pdfdir!$pdfdir$ac_delim
15962 psdir!$psdir$ac_delim
15963 libdir!$libdir$ac_delim
15964 localedir!$localedir$ac_delim
15965 mandir!$mandir$ac_delim
15966 DEFS!$DEFS$ac_delim
15967 ECHO_C!$ECHO_C$ac_delim
15968 ECHO_N!$ECHO_N$ac_delim
15969 ECHO_T!$ECHO_T$ac_delim
15970 LIBS!$LIBS$ac_delim
15971 build_alias!$build_alias$ac_delim
15972 host_alias!$host_alias$ac_delim
15973 target_alias!$target_alias$ac_delim
15974 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15975 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15976 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15977 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
15978 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
15979 build!$build$ac_delim
15980 build_cpu!$build_cpu$ac_delim
15981 build_vendor!$build_vendor$ac_delim
15982 build_os!$build_os$ac_delim
15983 host!$host$ac_delim
15984 host_cpu!$host_cpu$ac_delim
15985 host_vendor!$host_vendor$ac_delim
15986 host_os!$host_os$ac_delim
15987 CC!$CC$ac_delim
15988 CFLAGS!$CFLAGS$ac_delim
15989 LDFLAGS!$LDFLAGS$ac_delim
15990 CPPFLAGS!$CPPFLAGS$ac_delim
15991 ac_ct_CC!$ac_ct_CC$ac_delim
15992 EXEEXT!$EXEEXT$ac_delim
15993 OBJEXT!$OBJEXT$ac_delim
15994 CPP!$CPP$ac_delim
15995 LD!$LD$ac_delim
15996 GREP!$GREP$ac_delim
15997 EGREP!$EGREP$ac_delim
15998 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15999 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16000 HTREE_CMT!$HTREE_CMT$ac_delim
16001 ELF_CMT!$ELF_CMT$ac_delim
16002 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16003 PROFILE_CMT!$PROFILE_CMT$ac_delim
16004 CHECKER_CMT!$CHECKER_CMT$ac_delim
16005 LIB_EXT!$LIB_EXT$ac_delim
16006 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16007 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16008 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16009 IMAGER_CMT!$IMAGER_CMT$ac_delim
16010 RESIZER_CMT!$RESIZER_CMT$ac_delim
16011 FSCK_PROG!$FSCK_PROG$ac_delim
16012 FSCK_MAN!$FSCK_MAN$ac_delim
16013 _ACEOF
16014
16015   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16016     break
16017   elif $ac_last_try; then
16018     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16019 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16020    { (exit 1); exit 1; }; }
16021   else
16022     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16023   fi
16024 done
16025
16026 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16027 if test -n "$ac_eof"; then
16028   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16029   ac_eof=`expr $ac_eof + 1`
16030 fi
16031
16032 cat >>$CONFIG_STATUS <<_ACEOF
16033 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16035 /^[      ]*@MCONFIG@[    ]*$/{
16036 r $MCONFIG
16037 d
16038 }
16039 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
16040 r $MAKEFILE_ELF
16041 d
16042 }
16043 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
16044 r $MAKEFILE_BSDLIB
16045 d
16046 }
16047 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
16048 r $MAKEFILE_PROFILE
16049 d
16050 }
16051 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
16052 r $MAKEFILE_CHECKER
16053 d
16054 }
16055 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
16056 r $MAKEFILE_LIBRARY
16057 d
16058 }
16059 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
16060 r $ASM_TYPES_HEADER
16061 d
16062 }
16063 _ACEOF
16064 sed '
16065 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16066 s/^/s,@/; s/!/@,|#_!!_#|/
16067 :n
16068 t n
16069 s/'"$ac_delim"'$/,g/; t
16070 s/$/\\/; p
16071 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16072 ' >>$CONFIG_STATUS <conf$$subs.sed
16073 rm -f conf$$subs.sed
16074 cat >>$CONFIG_STATUS <<_ACEOF
16075 CEOF$ac_eof
16076 _ACEOF
16077
16078
16079 ac_delim='%!_!# '
16080 for ac_last_try in false false false false false :; do
16081   cat >conf$$subs.sed <<_ACEOF
16082 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16083 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16084 PKG_CONFIG!$PKG_CONFIG$ac_delim
16085 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16086 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16087 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16088 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16089 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16090 UUIDD_CMT!$UUIDD_CMT$ac_delim
16091 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16092 PACKAGE!$PACKAGE$ac_delim
16093 VERSION!$VERSION$ac_delim
16094 SET_MAKE!$SET_MAKE$ac_delim
16095 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16096 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16097 INSTALL_DATA!$INSTALL_DATA$ac_delim
16098 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16099 USE_NLS!$USE_NLS$ac_delim
16100 MSGFMT!$MSGFMT$ac_delim
16101 GMSGFMT!$GMSGFMT$ac_delim
16102 XGETTEXT!$XGETTEXT$ac_delim
16103 MSGMERGE!$MSGMERGE$ac_delim
16104 RANLIB!$RANLIB$ac_delim
16105 ALLOCA!$ALLOCA$ac_delim
16106 GLIBC21!$GLIBC21$ac_delim
16107 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16108 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16109 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16110 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16111 LIBICONV!$LIBICONV$ac_delim
16112 LTLIBICONV!$LTLIBICONV$ac_delim
16113 INTLBISON!$INTLBISON$ac_delim
16114 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16115 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16116 CATOBJEXT!$CATOBJEXT$ac_delim
16117 DATADIRNAME!$DATADIRNAME$ac_delim
16118 INSTOBJEXT!$INSTOBJEXT$ac_delim
16119 GENCAT!$GENCAT$ac_delim
16120 INTLOBJS!$INTLOBJS$ac_delim
16121 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16122 INTLLIBS!$INTLLIBS$ac_delim
16123 LIBINTL!$LIBINTL$ac_delim
16124 LTLIBINTL!$LTLIBINTL$ac_delim
16125 POSUB!$POSUB$ac_delim
16126 BINARY_TYPE!$BINARY_TYPE$ac_delim
16127 LN!$LN$ac_delim
16128 LN_S!$LN_S$ac_delim
16129 MV!$MV$ac_delim
16130 CP!$CP$ac_delim
16131 RM!$RM$ac_delim
16132 CHMOD!$CHMOD$ac_delim
16133 AWK!$AWK$ac_delim
16134 SED!$SED$ac_delim
16135 PERL!$PERL$ac_delim
16136 LDCONFIG!$LDCONFIG$ac_delim
16137 AR!$AR$ac_delim
16138 STRIP!$STRIP$ac_delim
16139 BUILD_CC!$BUILD_CC$ac_delim
16140 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16141 SIZEOF_INT!$SIZEOF_INT$ac_delim
16142 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16143 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16144 SOCKET_LIB!$SOCKET_LIB$ac_delim
16145 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16146 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16147 LINUX_CMT!$LINUX_CMT$ac_delim
16148 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16149 UNIX_CMT!$UNIX_CMT$ac_delim
16150 root_prefix!$root_prefix$ac_delim
16151 root_bindir!$root_bindir$ac_delim
16152 root_sbindir!$root_sbindir$ac_delim
16153 root_libdir!$root_libdir$ac_delim
16154 root_sysconfdir!$root_sysconfdir$ac_delim
16155 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16156 SS_DIR!$SS_DIR$ac_delim
16157 ET_DIR!$ET_DIR$ac_delim
16158 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16159 INTL_FLAGS!$INTL_FLAGS$ac_delim
16160 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16161 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16162 LIBOBJS!$LIBOBJS$ac_delim
16163 LTLIBOBJS!$LTLIBOBJS$ac_delim
16164 _ACEOF
16165
16166   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
16167     break
16168   elif $ac_last_try; then
16169     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16170 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16171    { (exit 1); exit 1; }; }
16172   else
16173     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16174   fi
16175 done
16176
16177 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16178 if test -n "$ac_eof"; then
16179   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16180   ac_eof=`expr $ac_eof + 1`
16181 fi
16182
16183 cat >>$CONFIG_STATUS <<_ACEOF
16184 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16186 _ACEOF
16187 sed '
16188 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16189 s/^/s,@/; s/!/@,|#_!!_#|/
16190 :n
16191 t n
16192 s/'"$ac_delim"'$/,g/; t
16193 s/$/\\/; p
16194 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16195 ' >>$CONFIG_STATUS <conf$$subs.sed
16196 rm -f conf$$subs.sed
16197 cat >>$CONFIG_STATUS <<_ACEOF
16198 :end
16199 s/|#_!!_#|//g
16200 CEOF$ac_eof
16201 _ACEOF
16202
16203
16204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16206 # trailing colons and then remove the whole line if VPATH becomes empty
16207 # (actually we leave an empty line to preserve line numbers).
16208 if test "x$srcdir" = x.; then
16209   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16210 s/:*\$(srcdir):*/:/
16211 s/:*\${srcdir}:*/:/
16212 s/:*@srcdir@:*/:/
16213 s/^\([^=]*=[     ]*\):*/\1/
16214 s/:*$//
16215 s/^[^=]*=[       ]*$//
16216 }'
16217 fi
16218
16219 cat >>$CONFIG_STATUS <<\_ACEOF
16220 fi # test -n "$CONFIG_FILES"
16221
16222
16223 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
16224 do
16225   case $ac_tag in
16226   :[FHLC]) ac_mode=$ac_tag; continue;;
16227   esac
16228   case $ac_mode$ac_tag in
16229   :[FHL]*:*);;
16230   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16231 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16232    { (exit 1); exit 1; }; };;
16233   :[FH]-) ac_tag=-:-;;
16234   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16235   esac
16236   ac_save_IFS=$IFS
16237   IFS=:
16238   set x $ac_tag
16239   IFS=$ac_save_IFS
16240   shift
16241   ac_file=$1
16242   shift
16243
16244   case $ac_mode in
16245   :L) ac_source=$1;;
16246   :[FH])
16247     ac_file_inputs=
16248     for ac_f
16249     do
16250       case $ac_f in
16251       -) ac_f="$tmp/stdin";;
16252       *) # Look for the file first in the build tree, then in the source tree
16253          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16254          # because $ac_f cannot contain `:'.
16255          test -f "$ac_f" ||
16256            case $ac_f in
16257            [\\/$]*) false;;
16258            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16259            esac ||
16260            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16261 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16262    { (exit 1); exit 1; }; };;
16263       esac
16264       ac_file_inputs="$ac_file_inputs $ac_f"
16265     done
16266
16267     # Let's still pretend it is `configure' which instantiates (i.e., don't
16268     # use $as_me), people would be surprised to read:
16269     #    /* config.h.  Generated by config.status.  */
16270     configure_input="Generated from "`IFS=:
16271           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16272     if test x"$ac_file" != x-; then
16273       configure_input="$ac_file.  $configure_input"
16274       { echo "$as_me:$LINENO: creating $ac_file" >&5
16275 echo "$as_me: creating $ac_file" >&6;}
16276     fi
16277
16278     case $ac_tag in
16279     *:-:* | *:-) cat >"$tmp/stdin";;
16280     esac
16281     ;;
16282   esac
16283
16284   ac_dir=`$as_dirname -- "$ac_file" ||
16285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16286          X"$ac_file" : 'X\(//\)[^/]' \| \
16287          X"$ac_file" : 'X\(//\)$' \| \
16288          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16289 echo X"$ac_file" |
16290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16291             s//\1/
16292             q
16293           }
16294           /^X\(\/\/\)[^/].*/{
16295             s//\1/
16296             q
16297           }
16298           /^X\(\/\/\)$/{
16299             s//\1/
16300             q
16301           }
16302           /^X\(\/\).*/{
16303             s//\1/
16304             q
16305           }
16306           s/.*/./; q'`
16307   { as_dir="$ac_dir"
16308   case $as_dir in #(
16309   -*) as_dir=./$as_dir;;
16310   esac
16311   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16312     as_dirs=
16313     while :; do
16314       case $as_dir in #(
16315       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16316       *) as_qdir=$as_dir;;
16317       esac
16318       as_dirs="'$as_qdir' $as_dirs"
16319       as_dir=`$as_dirname -- "$as_dir" ||
16320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16321          X"$as_dir" : 'X\(//\)[^/]' \| \
16322          X"$as_dir" : 'X\(//\)$' \| \
16323          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16324 echo X"$as_dir" |
16325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16326             s//\1/
16327             q
16328           }
16329           /^X\(\/\/\)[^/].*/{
16330             s//\1/
16331             q
16332           }
16333           /^X\(\/\/\)$/{
16334             s//\1/
16335             q
16336           }
16337           /^X\(\/\).*/{
16338             s//\1/
16339             q
16340           }
16341           s/.*/./; q'`
16342       test -d "$as_dir" && break
16343     done
16344     test -z "$as_dirs" || eval "mkdir $as_dirs"
16345   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16347    { (exit 1); exit 1; }; }; }
16348   ac_builddir=.
16349
16350 case "$ac_dir" in
16351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16352 *)
16353   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16354   # A ".." for each directory in $ac_dir_suffix.
16355   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16356   case $ac_top_builddir_sub in
16357   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16358   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16359   esac ;;
16360 esac
16361 ac_abs_top_builddir=$ac_pwd
16362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16363 # for backward compatibility:
16364 ac_top_builddir=$ac_top_build_prefix
16365
16366 case $srcdir in
16367   .)  # We are building in place.
16368     ac_srcdir=.
16369     ac_top_srcdir=$ac_top_builddir_sub
16370     ac_abs_top_srcdir=$ac_pwd ;;
16371   [\\/]* | ?:[\\/]* )  # Absolute name.
16372     ac_srcdir=$srcdir$ac_dir_suffix;
16373     ac_top_srcdir=$srcdir
16374     ac_abs_top_srcdir=$srcdir ;;
16375   *) # Relative name.
16376     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16377     ac_top_srcdir=$ac_top_build_prefix$srcdir
16378     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16379 esac
16380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16381
16382
16383   case $ac_mode in
16384   :F)
16385   #
16386   # CONFIG_FILE
16387   #
16388
16389   case $INSTALL in
16390   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16391   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16392   esac
16393 _ACEOF
16394
16395 cat >>$CONFIG_STATUS <<\_ACEOF
16396 # If the template does not know about datarootdir, expand it.
16397 # FIXME: This hack should be removed a few years after 2.60.
16398 ac_datarootdir_hack=; ac_datarootdir_seen=
16399
16400 case `sed -n '/datarootdir/ {
16401   p
16402   q
16403 }
16404 /@datadir@/p
16405 /@docdir@/p
16406 /@infodir@/p
16407 /@localedir@/p
16408 /@mandir@/p
16409 ' $ac_file_inputs` in
16410 *datarootdir*) ac_datarootdir_seen=yes;;
16411 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16412   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16413 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16414 _ACEOF
16415 cat >>$CONFIG_STATUS <<_ACEOF
16416   ac_datarootdir_hack='
16417   s&@datadir@&$datadir&g
16418   s&@docdir@&$docdir&g
16419   s&@infodir@&$infodir&g
16420   s&@localedir@&$localedir&g
16421   s&@mandir@&$mandir&g
16422     s&\\\${datarootdir}&$datarootdir&g' ;;
16423 esac
16424 _ACEOF
16425
16426 # Neutralize VPATH when `$srcdir' = `.'.
16427 # Shell code in configure.ac might set extrasub.
16428 # FIXME: do we really want to maintain this feature?
16429 cat >>$CONFIG_STATUS <<_ACEOF
16430   sed "$ac_vpsub
16431 $extrasub
16432 _ACEOF
16433 cat >>$CONFIG_STATUS <<\_ACEOF
16434 :t
16435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16436 s&@configure_input@&$configure_input&;t t
16437 s&@top_builddir@&$ac_top_builddir_sub&;t t
16438 s&@srcdir@&$ac_srcdir&;t t
16439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16440 s&@top_srcdir@&$ac_top_srcdir&;t t
16441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16442 s&@builddir@&$ac_builddir&;t t
16443 s&@abs_builddir@&$ac_abs_builddir&;t t
16444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16445 s&@INSTALL@&$ac_INSTALL&;t t
16446 $ac_datarootdir_hack
16447 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16448
16449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16450   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16451   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16452   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16453 which seems to be undefined.  Please make sure it is defined." >&5
16454 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16455 which seems to be undefined.  Please make sure it is defined." >&2;}
16456
16457   rm -f "$tmp/stdin"
16458   case $ac_file in
16459   -) cat "$tmp/out"; rm -f "$tmp/out";;
16460   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16461   esac
16462  ;;
16463
16464
16465   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16466 echo "$as_me: executing $ac_file commands" >&6;}
16467  ;;
16468   esac
16469
16470
16471   case $ac_file$ac_mode in
16472     "default-1":C)
16473     for ac_file in $CONFIG_FILES; do
16474       # Support "outfile[:infile[:infile...]]"
16475       case "$ac_file" in
16476         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16477       esac
16478       # PO directories have a Makefile.in generated from Makefile.in.in.
16479       case "$ac_file" in */Makefile.in)
16480         # Adjust a relative srcdir.
16481         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16482         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16483         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16484         # In autoconf-2.13 it is called $ac_given_srcdir.
16485         # In autoconf-2.50 it is called $srcdir.
16486         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16487         case "$ac_given_srcdir" in
16488           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16489           /*) top_srcdir="$ac_given_srcdir" ;;
16490           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16491         esac
16492         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16493           rm -f "$ac_dir/POTFILES"
16494           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16495           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16496           POMAKEFILEDEPS="POTFILES.in"
16497           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16498           # on $ac_dir but don't depend on user-specified configuration
16499           # parameters.
16500           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16501             # The LINGUAS file contains the set of available languages.
16502             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16503               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16504             fi
16505             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16506             # Hide the ALL_LINGUAS assigment from automake.
16507             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16508             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16509           else
16510             # The set of available languages was given in configure.in.
16511             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16512           fi
16513           # Compute POFILES
16514           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16515           # Compute UPDATEPOFILES
16516           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16517           # Compute DUMMYPOFILES
16518           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16519           # Compute GMOFILES
16520           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16521           case "$ac_given_srcdir" in
16522             .) srcdirpre= ;;
16523             *) srcdirpre='$(srcdir)/' ;;
16524           esac
16525           POFILES=
16526           UPDATEPOFILES=
16527           DUMMYPOFILES=
16528           GMOFILES=
16529           for lang in $ALL_LINGUAS; do
16530             POFILES="$POFILES $srcdirpre$lang.po"
16531             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16532             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16533             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16534           done
16535           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16536           # environment variable.
16537           INST_LINGUAS=
16538           if test -n "$ALL_LINGUAS"; then
16539             for presentlang in $ALL_LINGUAS; do
16540               useit=no
16541               if test "%UNSET%" != "$LINGUAS"; then
16542                 desiredlanguages="$LINGUAS"
16543               else
16544                 desiredlanguages="$ALL_LINGUAS"
16545               fi
16546               for desiredlang in $desiredlanguages; do
16547                 # Use the presentlang catalog if desiredlang is
16548                 #   a. equal to presentlang, or
16549                 #   b. a variant of presentlang (because in this case,
16550                 #      presentlang can be used as a fallback for messages
16551                 #      which are not translated in the desiredlang catalog).
16552                 case "$desiredlang" in
16553                   "$presentlang"*) useit=yes;;
16554                 esac
16555               done
16556               if test $useit = yes; then
16557                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16558               fi
16559             done
16560           fi
16561           CATALOGS=
16562           if test -n "$INST_LINGUAS"; then
16563             for lang in $INST_LINGUAS; do
16564               CATALOGS="$CATALOGS $lang.gmo"
16565             done
16566           fi
16567           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16568           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"
16569           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16570             if test -f "$f"; then
16571               case "$f" in
16572                 *.orig | *.bak | *~) ;;
16573                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16574               esac
16575             fi
16576           done
16577         fi
16578         ;;
16579       esac
16580     done ;;
16581
16582   esac
16583 done # for ac_tag
16584
16585
16586 { (exit 0); exit 0; }
16587 _ACEOF
16588 chmod +x $CONFIG_STATUS
16589 ac_clean_files=$ac_clean_files_save
16590
16591
16592 # configure is writing to config.log, and then calls config.status.
16593 # config.status does its own redirection, appending to config.log.
16594 # Unfortunately, on DOS this fails, as config.log is still kept open
16595 # by configure, so config.status won't be able to write to it; its
16596 # output is simply discarded.  So we exec the FD to /dev/null,
16597 # effectively closing config.log, so it can be properly (re)opened and
16598 # appended to by config.status.  When coming back to configure, we
16599 # need to make the FD available again.
16600 if test "$no_create" != yes; then
16601   ac_cs_success=:
16602   ac_config_status_args=
16603   test "$silent" = yes &&
16604     ac_config_status_args="$ac_config_status_args --quiet"
16605   exec 5>/dev/null
16606   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16607   exec 5>>config.log
16608   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16609   # would make configure fail if this is the last instruction.
16610   $ac_cs_success || { (exit 1); exit 1; }
16611 fi
16612
16613 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16614